From 91ad56e38e8542262226f10497dcd4cbdf9e2742 Mon Sep 17 00:00:00 2001 From: Timothy-Yao Date: Mon, 29 Jan 2024 14:05:07 -0600 Subject: [PATCH] fix: consoliate profiles_id and profile_id Signed-off-by: Timothy-Yao --- ...y_and_compliance_center_api_v3_examples.py | 16 +-- .../security_and_compliance_center_api_v3.py | 120 +++++++++--------- ...t_security_and_compliance_center_api_v3.py | 61 +++++---- ...t_security_and_compliance_center_api_v3.py | 100 +++++++-------- 4 files changed, 148 insertions(+), 149 deletions(-) diff --git a/examples/test_security_and_compliance_center_api_v3_examples.py b/examples/test_security_and_compliance_center_api_v3_examples.py index a4ad40f..4c31cc2 100644 --- a/examples/test_security_and_compliance_center_api_v3_examples.py +++ b/examples/test_security_and_compliance_center_api_v3_examples.py @@ -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() @@ -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', @@ -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() @@ -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, @@ -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() @@ -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', @@ -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() @@ -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() diff --git a/ibm_scc/security_and_compliance_center_api_v3.py b/ibm_scc/security_and_compliance_center_api_v3.py index 2ea1d90..6a2b3c8 100644 --- a/ibm_scc/security_and_compliance_center_api_v3.py +++ b/ibm_scc/security_and_compliance_center_api_v3.py @@ -901,7 +901,7 @@ def create_profile( def delete_custom_profile( self, - profiles_id: str, + profile_id: str, *, x_correlation_id: str = None, x_request_id: str = None, @@ -915,7 +915,7 @@ def delete_custom_profile( profiles, see [Building custom profiles](https://test.cloud.ibm.com/docs/security-compliance?topic=security-compliance-build-custom-profiles&interface=api). - :param str profiles_id: The profile ID. + :param str profile_id: The profile ID. :param str x_correlation_id: (optional) The supplied or generated value of this header is logged for a request and repeated in a response header for the corresponding response. The same value is used for downstream requests @@ -931,8 +931,8 @@ def delete_custom_profile( :rtype: DetailedResponse with `dict` result representing a `Profile` object """ - if not profiles_id: - raise ValueError('profiles_id must be provided') + if not profile_id: + raise ValueError('profile_id must be provided') headers = { 'X-Correlation-ID': x_correlation_id, 'X-Request-ID': x_request_id, @@ -949,10 +949,10 @@ def delete_custom_profile( del kwargs['headers'] headers['Accept'] = 'application/json' - path_param_keys = ['profiles_id'] - path_param_values = self.encode_path_vars(profiles_id) + path_param_keys = ['profile_id'] + path_param_values = self.encode_path_vars(profile_id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/profiles/{profiles_id}'.format(**path_param_dict) + url = '/profiles/{profile_id}'.format(**path_param_dict) request = self.prepare_request( method='DELETE', url=url, @@ -964,7 +964,7 @@ def delete_custom_profile( def get_profile( self, - profiles_id: str, + profile_id: str, *, x_correlation_id: str = None, x_request_id: str = None, @@ -978,7 +978,7 @@ def get_profile( [Building custom profiles](https://test.cloud.ibm.com/docs/security-compliance?topic=security-compliance-build-custom-profiles&interface=api). - :param str profiles_id: The profile ID. + :param str profile_id: The profile ID. :param str x_correlation_id: (optional) The supplied or generated value of this header is logged for a request and repeated in a response header for the corresponding response. The same value is used for downstream requests @@ -994,8 +994,8 @@ def get_profile( :rtype: DetailedResponse with `dict` result representing a `Profile` object """ - if not profiles_id: - raise ValueError('profiles_id must be provided') + if not profile_id: + raise ValueError('profile_id must be provided') headers = { 'X-Correlation-ID': x_correlation_id, 'X-Request-ID': x_request_id, @@ -1012,10 +1012,10 @@ def get_profile( del kwargs['headers'] headers['Accept'] = 'application/json' - path_param_keys = ['profiles_id'] - path_param_values = self.encode_path_vars(profiles_id) + path_param_keys = ['profile_id'] + path_param_values = self.encode_path_vars(profile_id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/profiles/{profiles_id}'.format(**path_param_dict) + url = '/profiles/{profile_id}'.format(**path_param_dict) request = self.prepare_request( method='GET', url=url, @@ -1027,7 +1027,7 @@ def get_profile( def replace_profile( self, - profiles_id: str, + profile_id: str, profile_name: str, profile_description: str, profile_type: str, @@ -1046,7 +1046,7 @@ def replace_profile( library as a starting point. For more information, see [Building custom profiles](https://test.cloud.ibm.com/docs/security-compliance?topic=security-compliance-build-custom-profiles&interface=api). - :param str profiles_id: The profile ID. + :param str profile_id: The profile ID. :param str profile_name: The name of the profile. :param str profile_description: The description of the profile. :param str profile_type: The profile type. @@ -1069,8 +1069,8 @@ def replace_profile( :rtype: DetailedResponse with `dict` result representing a `Profile` object """ - if not profiles_id: - raise ValueError('profiles_id must be provided') + if not profile_id: + raise ValueError('profile_id must be provided') if profile_name is None: raise ValueError('profile_name must be provided') if profile_description is None: @@ -1110,10 +1110,10 @@ def replace_profile( del kwargs['headers'] headers['Accept'] = 'application/json' - path_param_keys = ['profiles_id'] - path_param_values = self.encode_path_vars(profiles_id) + path_param_keys = ['profile_id'] + path_param_values = self.encode_path_vars(profile_id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/profiles/{profiles_id}'.format(**path_param_dict) + url = '/profiles/{profile_id}'.format(**path_param_dict) request = self.prepare_request( method='PUT', url=url, @@ -1534,7 +1534,7 @@ def replace_rule( def list_attachments( self, - profiles_id: str, + profile_id: str, *, x_correlation_id: str = None, x_request_id: str = None, @@ -1551,7 +1551,7 @@ def list_attachments( information, see [Running an evaluation for IBM Cloud](https://test.cloud.ibm.com/docs/security-compliance?topic=security-compliance-scan-resources). - :param str profiles_id: The profile ID. + :param str profile_id: The profile ID. :param str x_correlation_id: (optional) The supplied or generated value of this header is logged for a request and repeated in a response header for the corresponding response. The same value is used for downstream requests @@ -1571,8 +1571,8 @@ def list_attachments( :rtype: DetailedResponse with `dict` result representing a `AttachmentCollection` object """ - if not profiles_id: - raise ValueError('profiles_id must be provided') + if not profile_id: + raise ValueError('profile_id must be provided') headers = { 'X-Correlation-ID': x_correlation_id, 'X-Request-ID': x_request_id, @@ -1594,10 +1594,10 @@ def list_attachments( del kwargs['headers'] headers['Accept'] = 'application/json' - path_param_keys = ['profiles_id'] - path_param_values = self.encode_path_vars(profiles_id) + path_param_keys = ['profile_id'] + path_param_values = self.encode_path_vars(profile_id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/profiles/{profiles_id}/attachments'.format(**path_param_dict) + url = '/profiles/{profile_id}/attachments'.format(**path_param_dict) request = self.prepare_request( method='GET', url=url, @@ -1610,7 +1610,7 @@ def list_attachments( def create_attachment( self, - profiles_id: str, + profile_id: str, attachments: List['AttachmentsPrototype'], *, profile_id: str = None, @@ -1626,7 +1626,7 @@ def create_attachment( [Running an evaluation for IBM Cloud](https://test.cloud.ibm.com/docs/security-compliance?topic=security-compliance-scan-resources). - :param str profiles_id: The profile ID. + :param str profile_id: The profile ID. :param List[AttachmentsPrototype] attachments: The array that displays all of the available attachments. :param str profile_id: (optional) The ID of the profile that is specified @@ -1646,8 +1646,8 @@ def create_attachment( :rtype: DetailedResponse with `dict` result representing a `AttachmentPrototype` object """ - if not profiles_id: - raise ValueError('profiles_id must be provided') + if not profile_id: + raise ValueError('profile_id must be provided') if attachments is None: raise ValueError('attachments must be provided') attachments = [convert_model(x) for x in attachments] @@ -1675,10 +1675,10 @@ def create_attachment( del kwargs['headers'] headers['Accept'] = 'application/json' - path_param_keys = ['profiles_id'] - path_param_values = self.encode_path_vars(profiles_id) + path_param_keys = ['profile_id'] + path_param_values = self.encode_path_vars(profile_id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/profiles/{profiles_id}/attachments'.format(**path_param_dict) + url = '/profiles/{profile_id}/attachments'.format(**path_param_dict) request = self.prepare_request( method='POST', url=url, @@ -1692,7 +1692,7 @@ def create_attachment( def delete_profile_attachment( self, attachment_id: str, - profiles_id: str, + profile_id: str, *, x_correlation_id: str = None, x_request_id: str = None, @@ -1707,7 +1707,7 @@ def delete_profile_attachment( Cloud](https://test.cloud.ibm.com/docs/security-compliance?topic=security-compliance-scan-resources). :param str attachment_id: The attachment ID. - :param str profiles_id: The profile ID. + :param str profile_id: The profile ID. :param str x_correlation_id: (optional) The supplied or generated value of this header is logged for a request and repeated in a response header for the corresponding response. The same value is used for downstream requests @@ -1725,8 +1725,8 @@ def delete_profile_attachment( if not attachment_id: raise ValueError('attachment_id must be provided') - if not profiles_id: - raise ValueError('profiles_id must be provided') + if not profile_id: + raise ValueError('profile_id must be provided') headers = { 'X-Correlation-ID': x_correlation_id, 'X-Request-ID': x_request_id, @@ -1743,10 +1743,10 @@ def delete_profile_attachment( del kwargs['headers'] headers['Accept'] = 'application/json' - path_param_keys = ['attachment_id', 'profiles_id'] - path_param_values = self.encode_path_vars(attachment_id, profiles_id) + path_param_keys = ['attachment_id', 'profile_id'] + path_param_values = self.encode_path_vars(attachment_id, profile_id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/profiles/{profiles_id}/attachments/{attachment_id}'.format(**path_param_dict) + url = '/profiles/{profile_id}/attachments/{attachment_id}'.format(**path_param_dict) request = self.prepare_request( method='DELETE', url=url, @@ -1759,7 +1759,7 @@ def delete_profile_attachment( def get_profile_attachment( self, attachment_id: str, - profiles_id: str, + profile_id: str, *, x_correlation_id: str = None, x_request_id: str = None, @@ -1774,7 +1774,7 @@ def get_profile_attachment( Cloud](https://test.cloud.ibm.com/docs/security-compliance?topic=security-compliance-scan-resources). :param str attachment_id: The attachment ID. - :param str profiles_id: The profile ID. + :param str profile_id: The profile ID. :param str x_correlation_id: (optional) The supplied or generated value of this header is logged for a request and repeated in a response header for the corresponding response. The same value is used for downstream requests @@ -1792,8 +1792,8 @@ def get_profile_attachment( if not attachment_id: raise ValueError('attachment_id must be provided') - if not profiles_id: - raise ValueError('profiles_id must be provided') + if not profile_id: + raise ValueError('profile_id must be provided') headers = { 'X-Correlation-ID': x_correlation_id, 'X-Request-ID': x_request_id, @@ -1810,10 +1810,10 @@ def get_profile_attachment( del kwargs['headers'] headers['Accept'] = 'application/json' - path_param_keys = ['attachment_id', 'profiles_id'] - path_param_values = self.encode_path_vars(attachment_id, profiles_id) + path_param_keys = ['attachment_id', 'profile_id'] + path_param_values = self.encode_path_vars(attachment_id, profile_id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/profiles/{profiles_id}/attachments/{attachment_id}'.format(**path_param_dict) + url = '/profiles/{profile_id}/attachments/{attachment_id}'.format(**path_param_dict) request = self.prepare_request( method='GET', url=url, @@ -1826,7 +1826,7 @@ def get_profile_attachment( def replace_profile_attachment( self, attachment_id: str, - profiles_id: str, + profile_id: str, *, id: str = None, profile_id: str = None, @@ -1858,7 +1858,7 @@ def replace_profile_attachment( Cloud](https://test.cloud.ibm.com/docs/security-compliance?topic=security-compliance-scan-resources). :param str attachment_id: The attachment ID. - :param str profiles_id: The profile ID. + :param str profile_id: The profile ID. :param str id: (optional) The ID of the attachment. :param str profile_id: (optional) The ID of the profile that is specified in the attachment. @@ -1902,8 +1902,8 @@ def replace_profile_attachment( if not attachment_id: raise ValueError('attachment_id must be provided') - if not profiles_id: - raise ValueError('profiles_id must be provided') + if not profile_id: + raise ValueError('profile_id must be provided') if scope is not None: scope = [convert_model(x) for x in scope] if created_on is not None: @@ -1957,10 +1957,10 @@ def replace_profile_attachment( del kwargs['headers'] headers['Accept'] = 'application/json' - path_param_keys = ['attachment_id', 'profiles_id'] - path_param_values = self.encode_path_vars(attachment_id, profiles_id) + path_param_keys = ['attachment_id', 'profile_id'] + path_param_values = self.encode_path_vars(attachment_id, profile_id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/profiles/{profiles_id}/attachments/{attachment_id}'.format(**path_param_dict) + url = '/profiles/{profile_id}/attachments/{attachment_id}'.format(**path_param_dict) request = self.prepare_request( method='PUT', url=url, @@ -12798,14 +12798,14 @@ def __init__( self, *, client: SecurityAndComplianceCenterApiV3, - profiles_id: str, + profile_id: str, x_correlation_id: str = None, x_request_id: str = None, limit: int = None, ) -> None: """ Initialize a AttachmentsPager object. - :param str profiles_id: The profile ID. + :param str profile_id: The profile ID. :param str x_correlation_id: (optional) The supplied or generated value of this header is logged for a request and repeated in a response header for the corresponding response. The same value is used for downstream requests @@ -12822,7 +12822,7 @@ def __init__( self._has_next = True self._client = client self._page_context = {'next': None} - self._profiles_id = profiles_id + self._profile_id = profile_id self._x_correlation_id = x_correlation_id self._x_request_id = x_request_id self._limit = limit @@ -12843,7 +12843,7 @@ def get_next(self) -> List[dict]: raise StopIteration(message='No more results available') result = self._client.list_attachments( - profiles_id=self._profiles_id, + profile_id=self._profile_id, x_correlation_id=self._x_correlation_id, x_request_id=self._x_request_id, limit=self._limit, diff --git a/test/integration/test_security_and_compliance_center_api_v3.py b/test/integration/test_security_and_compliance_center_api_v3.py index a1e8e80..d98a84a 100644 --- a/test/integration/test_security_and_compliance_center_api_v3.py +++ b/test/integration/test_security_and_compliance_center_api_v3.py @@ -26,26 +26,26 @@ config_file = 'security_and_compliance_center_api_v3.env' # Variables to hold link values -account_id_for_report_link = None -attachment_id_for_report_link = None -attachment_id_link = None -control_library_id_link = None -e_tag_link = None -event_notifications_crn_for_update_settings_link = None -group_id_for_report_link = None -object_storage_bucket_for_update_settings_link = None -object_storage_crn_for_update_settings_link = None -object_storage_location_for_update_settings_link = None -profile_id_for_report_link = None -profile_id_link = None -provider_type_id_link = None -provider_type_instance_id_link = None -report_id_for_report_link = None -rule_id_link = None -type_for_report_link = None -account_id = None -instance_id = None -create_scan_attachment_id = None +account_id_for_report_link = "" +attachment_id_for_report_link = "" +attachment_id_link = "" +control_library_id_link = "" +e_tag_link = "" +event_notifications_crn_for_update_settings_link = "" +group_id_for_report_link = "" +object_storage_bucket_for_update_settings_link = "" +object_storage_crn_for_update_settings_link = "" +object_storage_location_for_update_settings_link = "" +profile_id_for_report_link = "" +profile_id_link = "" +provider_type_id_link = "" +provider_type_instance_id_link = "" +report_id_for_report_link = "" +rule_id_link = "" +type_for_report_link = "" +account_id = "" +instance_id = "" +create_scan_attachment_id = "" class TestSecurityAndComplianceCenterApiV3: """ @@ -514,7 +514,7 @@ def test_list_profiles_with_pager(self): @needscredentials def test_get_profile(self): response = self.security_and_compliance_center_api_service.get_profile( - profiles_id=profile_id_link, + profile_id=profile_id_link, x_correlation_id='testString', x_request_id='testString', ) @@ -541,7 +541,7 @@ def test_replace_profile(self): } response = self.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', @@ -675,9 +675,8 @@ def test_create_attachment(self): 'attachment_parameters': [attachment_parameter_prototype_model], } response = self.security_and_compliance_center_api_service.create_attachment( - profiles_id=profile_id_link, - attachments=[attachments_prototype_model], profile_id=profile_id_link, + attachments=[attachments_prototype_model], x_correlation_id='testString', x_request_id='testString', ) @@ -692,7 +691,7 @@ def test_create_attachment(self): @needscredentials def test_list_attachments(self): response = self.security_and_compliance_center_api_service.list_attachments( - profiles_id=profile_id_link, + profile_id=profile_id_link, x_correlation_id='testString', x_request_id='testString', limit=50, @@ -708,7 +707,7 @@ def test_list_attachments_with_pager(self): # Test get_next(). pager = AttachmentsPager( client=self.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, @@ -721,7 +720,7 @@ def test_list_attachments_with_pager(self): # Test get_all(). pager = AttachmentsPager( client=self.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, @@ -736,7 +735,7 @@ def test_list_attachments_with_pager(self): def test_get_profile_attachment(self): response = self.security_and_compliance_center_api_service.get_profile_attachment( attachment_id=attachment_id_link, - profiles_id=profile_id_link, + profile_id=profile_id_link, x_correlation_id='testString', x_request_id='testString', ) @@ -789,7 +788,7 @@ def test_replace_profile_attachment(self): response = self.security_and_compliance_center_api_service.replace_profile_attachment( attachment_id=attachment_id_link, - profiles_id=profile_id_link, + profile_id=profile_id_link, id='testString', profile_id=profile_id_link, account_id=account_id, @@ -1227,7 +1226,7 @@ def test_get_provider_types_instances(self): def test_delete_profile_attachment(self): response = self.security_and_compliance_center_api_service.delete_profile_attachment( attachment_id=attachment_id_link, - profiles_id=profile_id_link, + profile_id=profile_id_link, x_correlation_id='testString', x_request_id='testString', ) @@ -1239,7 +1238,7 @@ def test_delete_profile_attachment(self): @needscredentials def test_delete_custom_profile(self): response = self.security_and_compliance_center_api_service.delete_custom_profile( - profiles_id=profile_id_link, + profile_id=profile_id_link, x_correlation_id='testString', x_request_id='testString', ) diff --git a/test/unit/test_security_and_compliance_center_api_v3.py b/test/unit/test_security_and_compliance_center_api_v3.py index 98bb3ef..818f914 100644 --- a/test/unit/test_security_and_compliance_center_api_v3.py +++ b/test/unit/test_security_and_compliance_center_api_v3.py @@ -1962,13 +1962,13 @@ def test_delete_custom_profile_all_params(self): ) # Set up parameter values - profiles_id = 'testString' + profile_id = 'testString' x_correlation_id = 'testString' x_request_id = 'testString' # Invoke method response = _service.delete_custom_profile( - profiles_id, + profile_id, x_correlation_id=x_correlation_id, x_request_id=x_request_id, headers={}, @@ -2004,11 +2004,11 @@ def test_delete_custom_profile_required_params(self): ) # Set up parameter values - profiles_id = 'testString' + profile_id = 'testString' # Invoke method response = _service.delete_custom_profile( - profiles_id, + profile_id, headers={}, ) @@ -2042,11 +2042,11 @@ def test_delete_custom_profile_value_error(self): ) # Set up parameter values - profiles_id = 'testString' + profile_id = 'testString' # Pass in all but one required param and check for a ValueError req_param_dict = { - "profiles_id": profiles_id, + "profile_id": profile_id, } for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} @@ -2085,13 +2085,13 @@ def test_get_profile_all_params(self): ) # Set up parameter values - profiles_id = 'testString' + profile_id = 'testString' x_correlation_id = 'testString' x_request_id = 'testString' # Invoke method response = _service.get_profile( - profiles_id, + profile_id, x_correlation_id=x_correlation_id, x_request_id=x_request_id, headers={}, @@ -2127,11 +2127,11 @@ def test_get_profile_required_params(self): ) # Set up parameter values - profiles_id = 'testString' + profile_id = 'testString' # Invoke method response = _service.get_profile( - profiles_id, + profile_id, headers={}, ) @@ -2165,11 +2165,11 @@ def test_get_profile_value_error(self): ) # Set up parameter values - profiles_id = 'testString' + profile_id = 'testString' # Pass in all but one required param and check for a ValueError req_param_dict = { - "profiles_id": profiles_id, + "profile_id": profile_id, } for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} @@ -2222,7 +2222,7 @@ def test_replace_profile_all_params(self): default_parameters_prototype_model['parameter_type'] = 'numeric' # Set up parameter values - profiles_id = 'testString' + profile_id = 'testString' profile_name = 'test_profile1' profile_description = 'test_description1' profile_type = 'custom' @@ -2233,7 +2233,7 @@ def test_replace_profile_all_params(self): # Invoke method response = _service.replace_profile( - profiles_id, + profile_id, profile_name, profile_description, profile_type, @@ -2295,7 +2295,7 @@ def test_replace_profile_required_params(self): default_parameters_prototype_model['parameter_type'] = 'numeric' # Set up parameter values - profiles_id = 'testString' + profile_id = 'testString' profile_name = 'test_profile1' profile_description = 'test_description1' profile_type = 'custom' @@ -2304,7 +2304,7 @@ def test_replace_profile_required_params(self): # Invoke method response = _service.replace_profile( - profiles_id, + profile_id, profile_name, profile_description, profile_type, @@ -2364,7 +2364,7 @@ def test_replace_profile_value_error(self): default_parameters_prototype_model['parameter_type'] = 'numeric' # Set up parameter values - profiles_id = 'testString' + profile_id = 'testString' profile_name = 'test_profile1' profile_description = 'test_description1' profile_type = 'custom' @@ -2373,7 +2373,7 @@ def test_replace_profile_value_error(self): # Pass in all but one required param and check for a ValueError req_param_dict = { - "profiles_id": profiles_id, + "profile_id": profile_id, "profile_name": profile_name, "profile_description": profile_description, "profile_type": profile_type, @@ -3396,7 +3396,7 @@ def test_list_attachments_all_params(self): ) # Set up parameter values - profiles_id = 'testString' + profile_id = 'testString' x_correlation_id = 'testString' x_request_id = 'testString' limit = 50 @@ -3404,7 +3404,7 @@ def test_list_attachments_all_params(self): # Invoke method response = _service.list_attachments( - profiles_id, + profile_id, x_correlation_id=x_correlation_id, x_request_id=x_request_id, limit=limit, @@ -3447,11 +3447,11 @@ def test_list_attachments_required_params(self): ) # Set up parameter values - profiles_id = 'testString' + profile_id = 'testString' # Invoke method response = _service.list_attachments( - profiles_id, + profile_id, headers={}, ) @@ -3485,11 +3485,11 @@ def test_list_attachments_value_error(self): ) # Set up parameter values - profiles_id = 'testString' + profile_id = 'testString' # Pass in all but one required param and check for a ValueError req_param_dict = { - "profiles_id": profiles_id, + "profile_id": profile_id, } for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} @@ -3533,7 +3533,7 @@ def test_list_attachments_with_pager_get_next(self): all_results = [] pager = AttachmentsPager( client=_service, - profiles_id='testString', + profile_id='testString', x_correlation_id='testString', x_request_id='testString', limit=10, @@ -3571,7 +3571,7 @@ def test_list_attachments_with_pager_get_all(self): # Exercise the pager class for this operation pager = AttachmentsPager( client=_service, - profiles_id='testString', + profile_id='testString', x_correlation_id='testString', x_request_id='testString', limit=10, @@ -3643,7 +3643,7 @@ def test_create_attachment_all_params(self): attachments_prototype_model['attachment_parameters'] = [attachment_parameter_prototype_model] # Set up parameter values - profiles_id = 'testString' + profile_id = 'testString' attachments = [attachments_prototype_model] profile_id = 'testString' x_correlation_id = 'testString' @@ -3651,7 +3651,7 @@ def test_create_attachment_all_params(self): # Invoke method response = _service.create_attachment( - profiles_id, + profile_id, attachments, profile_id=profile_id, x_correlation_id=x_correlation_id, @@ -3733,13 +3733,13 @@ def test_create_attachment_required_params(self): attachments_prototype_model['attachment_parameters'] = [attachment_parameter_prototype_model] # Set up parameter values - profiles_id = 'testString' + profile_id = 'testString' attachments = [attachments_prototype_model] profile_id = 'testString' # Invoke method response = _service.create_attachment( - profiles_id, + profile_id, attachments, profile_id=profile_id, headers={}, @@ -3819,13 +3819,13 @@ def test_create_attachment_value_error(self): attachments_prototype_model['attachment_parameters'] = [attachment_parameter_prototype_model] # Set up parameter values - profiles_id = 'testString' + profile_id = 'testString' attachments = [attachments_prototype_model] profile_id = 'testString' # Pass in all but one required param and check for a ValueError req_param_dict = { - "profiles_id": profiles_id, + "profile_id": profile_id, "attachments": attachments, } for param in req_param_dict.keys(): @@ -3866,14 +3866,14 @@ def test_delete_profile_attachment_all_params(self): # Set up parameter values attachment_id = 'testString' - profiles_id = 'testString' + profile_id = 'testString' x_correlation_id = 'testString' x_request_id = 'testString' # Invoke method response = _service.delete_profile_attachment( attachment_id, - profiles_id, + profile_id, x_correlation_id=x_correlation_id, x_request_id=x_request_id, headers={}, @@ -3910,12 +3910,12 @@ def test_delete_profile_attachment_required_params(self): # Set up parameter values attachment_id = 'testString' - profiles_id = 'testString' + profile_id = 'testString' # Invoke method response = _service.delete_profile_attachment( attachment_id, - profiles_id, + profile_id, headers={}, ) @@ -3950,12 +3950,12 @@ def test_delete_profile_attachment_value_error(self): # Set up parameter values attachment_id = 'testString' - profiles_id = 'testString' + profile_id = 'testString' # Pass in all but one required param and check for a ValueError req_param_dict = { "attachment_id": attachment_id, - "profiles_id": profiles_id, + "profile_id": profile_id, } for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} @@ -3995,14 +3995,14 @@ def test_get_profile_attachment_all_params(self): # Set up parameter values attachment_id = 'testString' - profiles_id = 'testString' + profile_id = 'testString' x_correlation_id = 'testString' x_request_id = 'testString' # Invoke method response = _service.get_profile_attachment( attachment_id, - profiles_id, + profile_id, x_correlation_id=x_correlation_id, x_request_id=x_request_id, headers={}, @@ -4039,12 +4039,12 @@ def test_get_profile_attachment_required_params(self): # Set up parameter values attachment_id = 'testString' - profiles_id = 'testString' + profile_id = 'testString' # Invoke method response = _service.get_profile_attachment( attachment_id, - profiles_id, + profile_id, headers={}, ) @@ -4079,12 +4079,12 @@ def test_get_profile_attachment_value_error(self): # Set up parameter values attachment_id = 'testString' - profiles_id = 'testString' + profile_id = 'testString' # Pass in all but one required param and check for a ValueError req_param_dict = { "attachment_id": attachment_id, - "profiles_id": profiles_id, + "profile_id": profile_id, } for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} @@ -4159,7 +4159,7 @@ def test_replace_profile_attachment_all_params(self): # Set up parameter values attachment_id = 'testString' - profiles_id = 'testString' + profile_id = 'testString' id = 'testString' profile_id = 'testString' account_id = 'testString' @@ -4183,7 +4183,7 @@ def test_replace_profile_attachment_all_params(self): # Invoke method response = _service.replace_profile_attachment( attachment_id, - profiles_id, + profile_id, id=id, profile_id=profile_id, account_id=account_id, @@ -4291,7 +4291,7 @@ def test_replace_profile_attachment_required_params(self): # Set up parameter values attachment_id = 'testString' - profiles_id = 'testString' + profile_id = 'testString' id = 'testString' profile_id = 'testString' account_id = 'testString' @@ -4313,7 +4313,7 @@ def test_replace_profile_attachment_required_params(self): # Invoke method response = _service.replace_profile_attachment( attachment_id, - profiles_id, + profile_id, id=id, profile_id=profile_id, account_id=account_id, @@ -4419,7 +4419,7 @@ def test_replace_profile_attachment_value_error(self): # Set up parameter values attachment_id = 'testString' - profiles_id = 'testString' + profile_id = 'testString' id = 'testString' profile_id = 'testString' account_id = 'testString' @@ -4441,7 +4441,7 @@ def test_replace_profile_attachment_value_error(self): # Pass in all but one required param and check for a ValueError req_param_dict = { "attachment_id": attachment_id, - "profiles_id": profiles_id, + "profile_id": profile_id, } for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()}