@@ -379,8 +379,10 @@ def create_account(
379
379
:param str owner_iam_id: The IAM ID of the account owner, such as
380
380
`IBMid-0123ABC`. The IAM ID must already exist.
381
381
:param CreateAccountRequestTraits traits: (optional) The traits object can
382
- be used to opt-out of Multi-Factor Authentication setting when creating a
383
- child account in the enterprise. This is an optional field.
382
+ be used to set properties on child accounts of an enterprise. You can pass
383
+ a field to opt-out of Multi-Factor Authentication setting or setup
384
+ enterprise IAM settings when creating a child account in the enterprise.
385
+ This is an optional field.
384
386
:param dict headers: A `dict` containing the request headers
385
387
:return: A `DetailedResponse` containing the result, headers and HTTP status code.
386
388
:rtype: DetailedResponse with `dict` result representing a `CreateAccountResponse` object
@@ -1314,28 +1316,43 @@ def __ne__(self, other: 'CreateAccountGroupResponse') -> bool:
1314
1316
1315
1317
class CreateAccountRequestTraits :
1316
1318
"""
1317
- The traits object can be used to opt-out of Multi-Factor Authentication setting when
1318
- creating a child account in the enterprise. This is an optional field.
1319
-
1320
- :attr str mfa: (optional) By default MFA will be set on the account. To opt out,
1321
- pass the traits object with the mfa field set to empty string.
1319
+ The traits object can be used to set properties on child accounts of an enterprise.
1320
+ You can pass a field to opt-out of Multi-Factor Authentication setting or setup
1321
+ enterprise IAM settings when creating a child account in the enterprise. This is an
1322
+ optional field.
1323
+
1324
+ :attr str mfa: (optional) By default MFA will be enabled on a child account. To
1325
+ opt out, pass the traits object with the mfa field set to empty string. This is
1326
+ an optional field.
1327
+ :attr bool enterprise_iam_managed: (optional) The Enterprise IAM settings
1328
+ property will be turned off for a newly created child account by default. You
1329
+ can enable this property by passing 'true' in this boolean field. This is an
1330
+ optional field.
1322
1331
"""
1323
1332
1324
- def __init__ (self , * , mfa : str = None ) -> None :
1333
+ def __init__ (self , * , mfa : str = None , enterprise_iam_managed : bool = None ) -> None :
1325
1334
"""
1326
1335
Initialize a CreateAccountRequestTraits object.
1327
1336
1328
- :param str mfa: (optional) By default MFA will be set on the account. To
1329
- opt out, pass the traits object with the mfa field set to empty string.
1337
+ :param str mfa: (optional) By default MFA will be enabled on a child
1338
+ account. To opt out, pass the traits object with the mfa field set to empty
1339
+ string. This is an optional field.
1340
+ :param bool enterprise_iam_managed: (optional) The Enterprise IAM settings
1341
+ property will be turned off for a newly created child account by default.
1342
+ You can enable this property by passing 'true' in this boolean field. This
1343
+ is an optional field.
1330
1344
"""
1331
1345
self .mfa = mfa
1346
+ self .enterprise_iam_managed = enterprise_iam_managed
1332
1347
1333
1348
@classmethod
1334
1349
def from_dict (cls , _dict : Dict ) -> 'CreateAccountRequestTraits' :
1335
1350
"""Initialize a CreateAccountRequestTraits object from a json dictionary."""
1336
1351
args = {}
1337
1352
if 'mfa' in _dict :
1338
1353
args ['mfa' ] = _dict .get ('mfa' )
1354
+ if 'enterprise_iam_managed' in _dict :
1355
+ args ['enterprise_iam_managed' ] = _dict .get ('enterprise_iam_managed' )
1339
1356
return cls (** args )
1340
1357
1341
1358
@classmethod
@@ -1348,6 +1365,8 @@ def to_dict(self) -> Dict:
1348
1365
_dict = {}
1349
1366
if hasattr (self , 'mfa' ) and self .mfa is not None :
1350
1367
_dict ['mfa' ] = self .mfa
1368
+ if hasattr (self , 'enterprise_iam_managed' ) and self .enterprise_iam_managed is not None :
1369
+ _dict ['enterprise_iam_managed' ] = self .enterprise_iam_managed
1351
1370
return _dict
1352
1371
1353
1372
def _to_dict (self ):
0 commit comments