Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions examples/test_iam_identity_v1_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -2082,6 +2082,58 @@ def test_delete_profile_example(self):
except ApiException as e:
pytest.fail(str(e))

@needscredentials
def test_get_account_limits_example(self):
"""
get_account_limits request example
"""
try:
print('\nget_account_limits() result:')

# begin-getAccountLimits

response = iam_identity_service.get_account_limits(
account_id=account_id,
)
identity_limits_usage_response = response.get_result()

print(json.dumps(identity_limits_usage_response, indent=2))

# end-getAccountLimits

except ApiException as e:
pytest.fail(str(e))

@needscredentials
def test_bulk_list_account_entity_consumption_example(self):
"""
bulk_list_account_entity_consumption request example
"""
try:
print('\nbulk_list_account_entity_consumption() result:')

# begin-bulkListAccountEntityConsumption

response = iam_identity_service.bulk_list_account_entity_consumption(
account_id=account_id,
serviceid_groups=True,
serviceids_per_group=['ServiceIdGroup-12345678-1234-1234-1234-123456789abc'],
profiles=True,
apikeys_per_identity=['iam-ServiceId-12345678-1234-1234-1234-123456789def'],
templates=True,
template_versions_per_template=['AccountSettingsTemplate-12345678-1234-1234-1234-123456789abc'],
idps=True,
claim_rules_per_group=['AccessGroupId-12345678-1234-1234-1234-123456789abc'],
)
identity_limits_usage_response = response.get_result()

print(json.dumps(identity_limits_usage_response, indent=2))

# end-bulkListAccountEntityConsumption

except ApiException as e:
pytest.fail(str(e))


# endregion
##############################################################################
Expand Down
Loading
Loading