1414# See the License for the specific language governing permissions and
1515# limitations under the License.
1616
17- # IBM OpenAPI SDK Code Generator Version: 99-SNAPSHOT-46891d34-20210426-162952
17+ # IBM OpenAPI SDK Code Generator Version: 3.33.0-caf29bd0-20210603-225214
1818
1919"""
2020The IAM Identity Service API allows for the management of Account Settings and Identities
@@ -2091,7 +2091,9 @@ class ServiceId():
20912091 :attr List[str] unique_instance_crns: (optional) Optional list of CRNs (string
20922092 array) which point to the services connected to the service ID.
20932093 :attr List[EnityHistoryRecord] history: (optional) History of the Service ID.
2094- :attr ApiKey apikey: Response body format for API key V1 REST requests.
2094+ :attr ApiKey apikey: (optional) Api key details for the Service ID. The
2095+ apikey is only included in the response when creating a Service ID with an
2096+ apikey.
20952097 """
20962098
20972099 def __init__ (self ,
@@ -2101,15 +2103,15 @@ def __init__(self,
21012103 locked : bool ,
21022104 account_id : str ,
21032105 name : str ,
2104- apikey : 'ApiKey' ,
21052106 * ,
21062107 context : 'ResponseContext' = None ,
21072108 entity_tag : str = None ,
21082109 created_at : datetime = None ,
21092110 modified_at : datetime = None ,
21102111 description : str = None ,
21112112 unique_instance_crns : List [str ] = None ,
2112- history : List ['EnityHistoryRecord' ] = None ) -> None :
2113+ history : List ['EnityHistoryRecord' ] = None ,
2114+ apikey : 'ApiKey' = None ) -> None :
21132115 """
21142116 Initialize a ServiceId object.
21152117
@@ -2123,7 +2125,6 @@ def __init__(self,
21232125 :param str name: Name of the Service Id. The name is not checked for
21242126 uniqueness. Therefore multiple names with the same value can exist. Access
21252127 is done via the UUID of the Service Id.
2126- :param ApiKey apikey: Response body format for API key V1 REST requests.
21272128 :param ResponseContext context: (optional) Context with key properties for
21282129 problem determination.
21292130 :param str entity_tag: (optional) Version of the service ID details object.
@@ -2140,6 +2141,9 @@ def __init__(self,
21402141 (string array) which point to the services connected to the service ID.
21412142 :param List[EnityHistoryRecord] history: (optional) History of the Service
21422143 ID.
2144+ :param ApiKey apikey: (optional) Api key details for the Service
2145+ ID. The apikey is only included in the response when creating a Service ID
2146+ with an apikey.
21432147 """
21442148 self .context = context
21452149 self .id = id
@@ -2200,8 +2204,6 @@ def from_dict(cls, _dict: Dict) -> 'ServiceId':
22002204 args ['history' ] = [EnityHistoryRecord .from_dict (x ) for x in _dict .get ('history' )]
22012205 if 'apikey' in _dict :
22022206 args ['apikey' ] = ApiKey .from_dict (_dict .get ('apikey' ))
2203- else :
2204- raise ValueError ('Required property \' apikey\' not present in ServiceId JSON' )
22052207 return cls (** args )
22062208
22072209 @classmethod
0 commit comments