1414# See the License for the specific language governing permissions and
1515# limitations under the License.
1616
17- # IBM OpenAPI SDK Code Generator Version: 3.92.2-3f2a0533-20240712-183330
17+ # IBM OpenAPI SDK Code Generator Version: 3.93.0-c40121e6-20240729-182103
1818
1919"""
2020With IBM Cloud® Secrets Manager, you can create, lease, and centrally manage secrets that
@@ -6134,6 +6134,8 @@ class ServiceCredentialsSecretCredentials:
61346134 :param str iam_role_crn: (optional) The IAM role CRN assigned to the generated
61356135 service credentials.
61366136 :param str iam_serviceid_crn: (optional) The IAM Service ID CRN.
6137+
6138+ This type supports additional properties of type object.
61376139 """
61386140
61396141 # The set of defined properties for the class
@@ -6148,21 +6150,26 @@ def __init__(
61486150 iam_apikey_name: Optional[str] = None,
61496151 iam_role_crn: Optional[str] = None,
61506152 iam_serviceid_crn: Optional[str] = None,
6151- **kwargs,
6153+ **kwargs: Optional[object] ,
61526154 ) -> None:
61536155 """
61546156 Initialize a ServiceCredentialsSecretCredentials object.
61556157
6156- :param **kwargs: (optional) Any additional properties.
6158+ :param object **kwargs: (optional) Additional properties of type object
61576159 """
61586160 self.apikey = apikey
61596161 self.iam_apikey_description = iam_apikey_description
61606162 self.iam_apikey_id = iam_apikey_id
61616163 self.iam_apikey_name = iam_apikey_name
61626164 self.iam_role_crn = iam_role_crn
61636165 self.iam_serviceid_crn = iam_serviceid_crn
6164- for _key, _value in kwargs.items():
6165- setattr(self, _key, _value)
6166+ for k, v in kwargs.items():
6167+ if k not in ServiceCredentialsSecretCredentials._properties:
6168+ if not isinstance(v, object):
6169+ raise ValueError('Value for additional property {} must be of type object'.format(k))
6170+ setattr(self, k, v)
6171+ else:
6172+ raise ValueError('Property {} cannot be specified as an additional property'.format(k))
61666173
61676174 @classmethod
61686175 def from_dict(cls, _dict: Dict) -> 'ServiceCredentialsSecretCredentials':
@@ -6180,7 +6187,11 @@ def from_dict(cls, _dict: Dict) -> 'ServiceCredentialsSecretCredentials':
61806187 args['iam_role_crn'] = iam_role_crn
61816188 if (iam_serviceid_crn := _dict.get('iam_serviceid_crn')) is not None:
61826189 args['iam_serviceid_crn'] = iam_serviceid_crn
6183- args.update({k: v for (k, v) in _dict.items() if k not in cls._properties})
6190+ for k, v in _dict.items():
6191+ if k not in cls._properties:
6192+ if not isinstance(v, object):
6193+ raise ValueError('Value for additional property {} must be of type object'.format(k))
6194+ args[k] = v
61846195 return cls(**args)
61856196
61866197 @classmethod
@@ -6203,30 +6214,32 @@ def to_dict(self) -> Dict:
62036214 _dict['iam_role_crn'] = getattr(self, 'iam_role_crn')
62046215 if hasattr(self, 'iam_serviceid_crn') and getattr(self, 'iam_serviceid_crn') is not None:
62056216 _dict['iam_serviceid_crn'] = getattr(self, 'iam_serviceid_crn')
6206- for _key in [k for k in vars(self).keys() if k not in ServiceCredentialsSecretCredentials._properties]:
6207- _dict[_key ] = getattr(self, _key )
6217+ for k in [_k for _k in vars(self).keys() if _k not in ServiceCredentialsSecretCredentials._properties]:
6218+ _dict[k ] = getattr(self, k )
62086219 return _dict
62096220
62106221 def _to_dict(self):
62116222 """Return a json dictionary representing this model."""
62126223 return self.to_dict()
62136224
62146225 def get_properties(self) -> Dict:
6215- """Return a dictionary of arbitrary properties from this instance of ServiceCredentialsSecretCredentials"""
6226+ """Return the additional properties from this instance of ServiceCredentialsSecretCredentials in the form of a dict. """
62166227 _dict = {}
6217-
6218- for _key in [k for k in vars(self).keys() if k not in ServiceCredentialsSecretCredentials._properties]:
6219- _dict[_key] = getattr(self, _key)
6228+ for k in [_k for _k in vars(self).keys() if _k not in ServiceCredentialsSecretCredentials._properties]:
6229+ _dict[k] = getattr(self, k)
62206230 return _dict
62216231
62226232 def set_properties(self, _dict: dict):
6223- """Set a dictionary of arbitrary properties to this instance of ServiceCredentialsSecretCredentials"""
6224- for _key in [k for k in vars(self).keys() if k not in ServiceCredentialsSecretCredentials._properties]:
6225- delattr(self, _key)
6226-
6227- for _key, _value in _dict.items():
6228- if _key not in ServiceCredentialsSecretCredentials._properties:
6229- setattr(self, _key, _value)
6233+ """Set a dictionary of additional properties in this instance of ServiceCredentialsSecretCredentials"""
6234+ for k in [_k for _k in vars(self).keys() if _k not in ServiceCredentialsSecretCredentials._properties]:
6235+ delattr(self, k)
6236+ for k, v in _dict.items():
6237+ if k not in ServiceCredentialsSecretCredentials._properties:
6238+ if not isinstance(v, object):
6239+ raise ValueError('Value for additional property {} must be of type object'.format(k))
6240+ setattr(self, k, v)
6241+ else:
6242+ raise ValueError('Property {} cannot be specified as an additional property'.format(_key))
62306243
62316244 def __str__(self) -> str:
62326245 """Return a `str` version of this ServiceCredentialsSecretCredentials object."""
@@ -6832,6 +6845,8 @@ class ServiceCredentialsSourceServiceParameters:
68326845
68336846 :param str serviceid_crn: (optional) An optional platform defined option to
68346847 reuse an existing IAM Service ID for the role assignment.
6848+
6849+ This type supports additional properties of type object.
68356850 """
68366851
68376852 # The set of defined properties for the class
@@ -6841,26 +6856,35 @@ def __init__(
68416856 self,
68426857 *,
68436858 serviceid_crn: Optional[str] = None,
6844- **kwargs,
6859+ **kwargs: Optional[object] ,
68456860 ) -> None:
68466861 """
68476862 Initialize a ServiceCredentialsSourceServiceParameters object.
68486863
68496864 :param str serviceid_crn: (optional) An optional platform defined option to
68506865 reuse an existing IAM Service ID for the role assignment.
6851- :param **kwargs: (optional) Any additional properties.
6866+ :param object **kwargs: (optional) Additional properties of type object
68526867 """
68536868 self.serviceid_crn = serviceid_crn
6854- for _key, _value in kwargs.items():
6855- setattr(self, _key, _value)
6869+ for k, v in kwargs.items():
6870+ if k not in ServiceCredentialsSourceServiceParameters._properties:
6871+ if not isinstance(v, object):
6872+ raise ValueError('Value for additional property {} must be of type object'.format(k))
6873+ setattr(self, k, v)
6874+ else:
6875+ raise ValueError('Property {} cannot be specified as an additional property'.format(k))
68566876
68576877 @classmethod
68586878 def from_dict(cls, _dict: Dict) -> 'ServiceCredentialsSourceServiceParameters':
68596879 """Initialize a ServiceCredentialsSourceServiceParameters object from a json dictionary."""
68606880 args = {}
68616881 if (serviceid_crn := _dict.get('serviceid_crn')) is not None:
68626882 args['serviceid_crn'] = serviceid_crn
6863- args.update({k: v for (k, v) in _dict.items() if k not in cls._properties})
6883+ for k, v in _dict.items():
6884+ if k not in cls._properties:
6885+ if not isinstance(v, object):
6886+ raise ValueError('Value for additional property {} must be of type object'.format(k))
6887+ args[k] = v
68646888 return cls(**args)
68656889
68666890 @classmethod
@@ -6873,30 +6897,32 @@ def to_dict(self) -> Dict:
68736897 _dict = {}
68746898 if hasattr(self, 'serviceid_crn') and self.serviceid_crn is not None:
68756899 _dict['serviceid_crn'] = self.serviceid_crn
6876- for _key in [k for k in vars(self).keys() if k not in ServiceCredentialsSourceServiceParameters._properties]:
6877- _dict[_key ] = getattr(self, _key )
6900+ for k in [_k for _k in vars(self).keys() if _k not in ServiceCredentialsSourceServiceParameters._properties]:
6901+ _dict[k ] = getattr(self, k )
68786902 return _dict
68796903
68806904 def _to_dict(self):
68816905 """Return a json dictionary representing this model."""
68826906 return self.to_dict()
68836907
68846908 def get_properties(self) -> Dict:
6885- """Return a dictionary of arbitrary properties from this instance of ServiceCredentialsSourceServiceParameters"""
6909+ """Return the additional properties from this instance of ServiceCredentialsSourceServiceParameters in the form of a dict. """
68866910 _dict = {}
6887-
6888- for _key in [k for k in vars(self).keys() if k not in ServiceCredentialsSourceServiceParameters._properties]:
6889- _dict[_key] = getattr(self, _key)
6911+ for k in [_k for _k in vars(self).keys() if _k not in ServiceCredentialsSourceServiceParameters._properties]:
6912+ _dict[k] = getattr(self, k)
68906913 return _dict
68916914
68926915 def set_properties(self, _dict: dict):
6893- """Set a dictionary of arbitrary properties to this instance of ServiceCredentialsSourceServiceParameters"""
6894- for _key in [k for k in vars(self).keys() if k not in ServiceCredentialsSourceServiceParameters._properties]:
6895- delattr(self, _key)
6896-
6897- for _key, _value in _dict.items():
6898- if _key not in ServiceCredentialsSourceServiceParameters._properties:
6899- setattr(self, _key, _value)
6916+ """Set a dictionary of additional properties in this instance of ServiceCredentialsSourceServiceParameters"""
6917+ for k in [_k for _k in vars(self).keys() if _k not in ServiceCredentialsSourceServiceParameters._properties]:
6918+ delattr(self, k)
6919+ for k, v in _dict.items():
6920+ if k not in ServiceCredentialsSourceServiceParameters._properties:
6921+ if not isinstance(v, object):
6922+ raise ValueError('Value for additional property {} must be of type object'.format(k))
6923+ setattr(self, k, v)
6924+ else:
6925+ raise ValueError('Property {} cannot be specified as an additional property'.format(_key))
69006926
69016927 def __str__(self) -> str:
69026928 """Return a `str` version of this ServiceCredentialsSourceServiceParameters object."""
0 commit comments