14
14
# See the License for the specific language governing permissions and
15
15
# limitations under the License.
16
16
17
- # IBM OpenAPI SDK Code Generator Version: 3.87.0-91c7c775-20240320-213027
17
+ # IBM OpenAPI SDK Code Generator Version: 3.89.1-ed9d96f4-20240417-193115
18
18
19
19
"""
20
20
The Enterprise Management API enables you to create and manage an enterprise, account
@@ -1655,17 +1655,22 @@ class CreateAccountResponse:
1655
1655
"""
1656
1656
A newly-created account.
1657
1657
1658
- :attr str account_id: (optional) The ID of the account entity that was created.
1659
- :attr str iam_service_id: (optional) The iam_service_id of the account entity
1658
+ :param str account_id: (optional) The ID of the account entity that was created.
1659
+ :param str iam_service_id: (optional) The iam_service_id of the account entity
1660
1660
that was created.
1661
- :attr str iam_apikey_id: (optional) The iam_apikey_id of the account entity that
1662
- was created.
1663
- :attr str iam_apikey: (optional) The iam_apikey of the account entity with owner
1664
- iam policies that was created.
1661
+ :param str iam_apikey_id: (optional) The iam_apikey_id of the account entity
1662
+ that was created.
1663
+ :param str iam_apikey: (optional) The iam_apikey of the account entity with
1664
+ owner iam policies that was created.
1665
1665
"""
1666
1666
1667
1667
def __init__ (
1668
- self , * , account_id : str = None , iam_service_id : str = None , iam_apikey_id : str = None , iam_apikey : str = None
1668
+ self ,
1669
+ * ,
1670
+ account_id : Optional [str ] = None ,
1671
+ iam_service_id : Optional [str ] = None ,
1672
+ iam_apikey_id : Optional [str ] = None ,
1673
+ iam_apikey : Optional [str ] = None ,
1669
1674
) -> None :
1670
1675
"""
1671
1676
Initialize a CreateAccountResponse object.
@@ -1688,14 +1693,14 @@ def __init__(
1688
1693
def from_dict (cls , _dict : Dict ) -> 'CreateAccountResponse' :
1689
1694
"""Initialize a CreateAccountResponse object from a json dictionary."""
1690
1695
args = {}
1691
- if 'account_id' in _dict :
1692
- args ['account_id' ] = _dict . get ( ' account_id' )
1693
- if 'iam_service_id' in _dict :
1694
- args ['iam_service_id' ] = _dict . get ( ' iam_service_id' )
1695
- if 'iam_apikey_id' in _dict :
1696
- args ['iam_apikey_id' ] = _dict . get ( ' iam_apikey_id' )
1697
- if 'iam_apikey' in _dict :
1698
- args ['iam_apikey' ] = _dict . get ( ' iam_apikey' )
1696
+ if ( account_id := _dict . get ( 'account_id' )) is not None :
1697
+ args ['account_id' ] = account_id
1698
+ if ( iam_service_id := _dict . get ( 'iam_service_id' )) is not None :
1699
+ args ['iam_service_id' ] = iam_service_id
1700
+ if ( iam_apikey_id := _dict . get ( 'iam_apikey_id' )) is not None :
1701
+ args ['iam_apikey_id' ] = iam_apikey_id
1702
+ if ( iam_apikey := _dict . get ( 'iam_apikey' )) is not None :
1703
+ args ['iam_apikey' ] = iam_apikey
1699
1704
return cls (** args )
1700
1705
1701
1706
@classmethod
0 commit comments