Skip to content

Commit

Permalink
fix: consoliate profiles_id and profile_id
Browse files Browse the repository at this point in the history
Signed-off-by: Timothy-Yao <timothy.yao@ibm.com>
  • Loading branch information
tyao117 committed Jan 29, 2024
1 parent df50c80 commit 91ad56e
Show file tree
Hide file tree
Showing 4 changed files with 148 additions and 149 deletions.
16 changes: 8 additions & 8 deletions examples/test_security_and_compliance_center_api_v3_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ def test_get_profile_example(self):
# begin-get_profile

response = security_and_compliance_center_api_service.get_profile(
profiles_id=profile_id_link,
profile_id=profile_id_link,
)
profile = response.get_result()

Expand Down Expand Up @@ -598,7 +598,7 @@ def test_replace_profile_example(self):
}

response = security_and_compliance_center_api_service.replace_profile(
profiles_id=profile_id_link,
profile_id=profile_id_link,
profile_name='test_profile1',
profile_description='test_description1',
profile_type='custom',
Expand Down Expand Up @@ -752,7 +752,7 @@ def test_create_attachment_example(self):
}

response = security_and_compliance_center_api_service.create_attachment(
profiles_id=profile_id_link,
profile_id=profile_id_link,
attachments=[attachments_prototype_model],
)
attachment_prototype = response.get_result()
Expand All @@ -777,7 +777,7 @@ def test_list_attachments_example(self):
all_results = []
pager = AttachmentsPager(
client=security_and_compliance_center_api_service,
profiles_id=profile_id_link,
profile_id=profile_id_link,
x_correlation_id='testString',
x_request_id='testString',
limit=10,
Expand All @@ -804,7 +804,7 @@ def test_get_profile_attachment_example(self):

response = security_and_compliance_center_api_service.get_profile_attachment(
attachment_id=attachment_id_link,
profiles_id=profile_id_link,
profile_id=profile_id_link,
)
attachment_item = response.get_result()

Expand Down Expand Up @@ -857,7 +857,7 @@ def test_replace_profile_attachment_example(self):

response = security_and_compliance_center_api_service.replace_profile_attachment(
attachment_id=attachment_id_link,
profiles_id=profile_id_link,
profile_id=profile_id_link,
scope=[multi_cloud_scope_model],
status='enabled',
schedule='every_30_days',
Expand Down Expand Up @@ -1340,7 +1340,7 @@ def test_delete_profile_attachment_example(self):

response = security_and_compliance_center_api_service.delete_profile_attachment(
attachment_id=attachment_id_link,
profiles_id=profile_id_link,
profile_id=profile_id_link,
)
attachment_item = response.get_result()

Expand All @@ -1361,7 +1361,7 @@ def test_delete_custom_profile_example(self):
# begin-delete_custom_profile

response = security_and_compliance_center_api_service.delete_custom_profile(
profiles_id=profile_id_link,
profile_id=profile_id_link,
)
profile = response.get_result()

Expand Down
Loading

0 comments on commit 91ad56e

Please sign in to comment.