From f1f61c48bf01bed94c9a4901fd2cc7fa65e3fe19 Mon Sep 17 00:00:00 2001 From: ninpan-ms <71061174+ninpan-ms@users.noreply.github.com> Date: Mon, 16 Aug 2021 12:58:22 +0800 Subject: [PATCH] Update SDK (#22) * Update SDK * fix bug --- .../azext_spring_cloud/_validators_enterprise.py | 2 +- .../_configuration_services_operations.py | 13 ++++++------- .../v2022_05_01_preview/models/_models.py | 8 ++++---- .../v2022_05_01_preview/models/_models_py3.py | 10 +++++----- .../_configuration_services_operations.py | 13 ++++++------- 5 files changed, 22 insertions(+), 24 deletions(-) diff --git a/src/spring-cloud/azext_spring_cloud/_validators_enterprise.py b/src/spring-cloud/azext_spring_cloud/_validators_enterprise.py index f7789f7f40e..805def0ea91 100644 --- a/src/spring-cloud/azext_spring_cloud/_validators_enterprise.py +++ b/src/spring-cloud/azext_spring_cloud/_validators_enterprise.py @@ -108,7 +108,7 @@ def validate_buildpacks_binding_not_exist(cmd, namespace): if binding_resource is not None: raise CLIError('Buildpacks Binding {} already exists ' 'in resource group {}, service {}. You can edit it by set command.' - .format(binding_name, resource_group, service)) + .format(namespace.name, namespace.resource_group, namespace.service)) except ResourceNotFoundError: # Excepted case pass diff --git a/src/spring-cloud/azext_spring_cloud/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_configuration_services_operations.py b/src/spring-cloud/azext_spring_cloud/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_configuration_services_operations.py index 018dccc5700..5d237ccbe7d 100644 --- a/src/spring-cloud/azext_spring_cloud/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_configuration_services_operations.py +++ b/src/spring-cloud/azext_spring_cloud/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_configuration_services_operations.py @@ -347,7 +347,7 @@ async def _validate_initial( self, resource_group_name: str, service_name: str, - configuration_service_settings: "_models.ConfigurationServiceSettings", + settings: "_models.ConfigurationServiceSettings", **kwargs: Any ) -> "_models.ConfigurationServiceSettingsValidateResult": cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfigurationServiceSettingsValidateResult"] @@ -378,7 +378,7 @@ async def _validate_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(configuration_service_settings, 'ConfigurationServiceSettings') + body_content = self._serialize.body(settings, 'ConfigurationServiceSettings') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -404,7 +404,7 @@ async def begin_validate( self, resource_group_name: str, service_name: str, - configuration_service_settings: "_models.ConfigurationServiceSettings", + settings: "_models.ConfigurationServiceSettings", **kwargs: Any ) -> AsyncLROPoller["_models.ConfigurationServiceSettingsValidateResult"]: """Check if the Application Configuration Service settings are valid. @@ -414,9 +414,8 @@ async def begin_validate( :type resource_group_name: str :param service_name: The name of the Service resource. :type service_name: str - :param configuration_service_settings: Application Configuration Service settings to be - validated. - :type configuration_service_settings: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceSettings + :param settings: Application Configuration Service settings to be validated. + :type settings: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceSettings :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be AsyncARMPolling. @@ -438,7 +437,7 @@ async def begin_validate( raw_result = await self._validate_initial( resource_group_name=resource_group_name, service_name=service_name, - configuration_service_settings=configuration_service_settings, + settings=settings, cls=lambda x,y,z: x, **kwargs ) diff --git a/src/spring-cloud/azext_spring_cloud/vendored_sdks/appplatform/v2022_05_01_preview/models/_models.py b/src/spring-cloud/azext_spring_cloud/vendored_sdks/appplatform/v2022_05_01_preview/models/_models.py index f4423f72677..d7f21be86e4 100644 --- a/src/spring-cloud/azext_spring_cloud/vendored_sdks/appplatform/v2022_05_01_preview/models/_models.py +++ b/src/spring-cloud/azext_spring_cloud/vendored_sdks/appplatform/v2022_05_01_preview/models/_models.py @@ -1651,13 +1651,13 @@ def __init__( class ConfigurationServiceSettingsValidateResult(msrest.serialization.Model): """Validation result for configuration service settings. - :param git_property_validate_result: Validation result for configuration service settings. - :type git_property_validate_result: + :param git_property_validation_result: Validation result for configuration service settings. + :type git_property_validation_result: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceGitPropertyValidateResult """ _attribute_map = { - 'git_property_validate_result': {'key': 'gitPropertyValidateResult', 'type': 'ConfigurationServiceGitPropertyValidateResult'}, + 'git_property_validation_result': {'key': 'gitPropertyValidationResult', 'type': 'ConfigurationServiceGitPropertyValidateResult'}, } def __init__( @@ -1665,7 +1665,7 @@ def __init__( **kwargs ): super(ConfigurationServiceSettingsValidateResult, self).__init__(**kwargs) - self.git_property_validate_result = kwargs.get('git_property_validate_result', None) + self.git_property_validation_result = kwargs.get('git_property_validation_result', None) class CustomContainer(UserSourceInfo): diff --git a/src/spring-cloud/azext_spring_cloud/vendored_sdks/appplatform/v2022_05_01_preview/models/_models_py3.py b/src/spring-cloud/azext_spring_cloud/vendored_sdks/appplatform/v2022_05_01_preview/models/_models_py3.py index 0724046f270..9582a9ec1e2 100644 --- a/src/spring-cloud/azext_spring_cloud/vendored_sdks/appplatform/v2022_05_01_preview/models/_models_py3.py +++ b/src/spring-cloud/azext_spring_cloud/vendored_sdks/appplatform/v2022_05_01_preview/models/_models_py3.py @@ -1791,23 +1791,23 @@ def __init__( class ConfigurationServiceSettingsValidateResult(msrest.serialization.Model): """Validation result for configuration service settings. - :param git_property_validate_result: Validation result for configuration service settings. - :type git_property_validate_result: + :param git_property_validation_result: Validation result for configuration service settings. + :type git_property_validation_result: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceGitPropertyValidateResult """ _attribute_map = { - 'git_property_validate_result': {'key': 'gitPropertyValidateResult', 'type': 'ConfigurationServiceGitPropertyValidateResult'}, + 'git_property_validation_result': {'key': 'gitPropertyValidationResult', 'type': 'ConfigurationServiceGitPropertyValidateResult'}, } def __init__( self, *, - git_property_validate_result: Optional["ConfigurationServiceGitPropertyValidateResult"] = None, + git_property_validation_result: Optional["ConfigurationServiceGitPropertyValidateResult"] = None, **kwargs ): super(ConfigurationServiceSettingsValidateResult, self).__init__(**kwargs) - self.git_property_validate_result = git_property_validate_result + self.git_property_validation_result = git_property_validation_result class CustomContainer(UserSourceInfo): diff --git a/src/spring-cloud/azext_spring_cloud/vendored_sdks/appplatform/v2022_05_01_preview/operations/_configuration_services_operations.py b/src/spring-cloud/azext_spring_cloud/vendored_sdks/appplatform/v2022_05_01_preview/operations/_configuration_services_operations.py index fe204586802..241ea6c1c4d 100644 --- a/src/spring-cloud/azext_spring_cloud/vendored_sdks/appplatform/v2022_05_01_preview/operations/_configuration_services_operations.py +++ b/src/spring-cloud/azext_spring_cloud/vendored_sdks/appplatform/v2022_05_01_preview/operations/_configuration_services_operations.py @@ -356,7 +356,7 @@ def _validate_initial( self, resource_group_name, # type: str service_name, # type: str - configuration_service_settings, # type: "_models.ConfigurationServiceSettings" + settings, # type: "_models.ConfigurationServiceSettings" **kwargs # type: Any ): # type: (...) -> "_models.ConfigurationServiceSettingsValidateResult" @@ -388,7 +388,7 @@ def _validate_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(configuration_service_settings, 'ConfigurationServiceSettings') + body_content = self._serialize.body(settings, 'ConfigurationServiceSettings') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -414,7 +414,7 @@ def begin_validate( self, resource_group_name, # type: str service_name, # type: str - configuration_service_settings, # type: "_models.ConfigurationServiceSettings" + settings, # type: "_models.ConfigurationServiceSettings" **kwargs # type: Any ): # type: (...) -> LROPoller["_models.ConfigurationServiceSettingsValidateResult"] @@ -425,9 +425,8 @@ def begin_validate( :type resource_group_name: str :param service_name: The name of the Service resource. :type service_name: str - :param configuration_service_settings: Application Configuration Service settings to be - validated. - :type configuration_service_settings: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceSettings + :param settings: Application Configuration Service settings to be validated. + :type settings: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceSettings :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be ARMPolling. @@ -449,7 +448,7 @@ def begin_validate( raw_result = self._validate_initial( resource_group_name=resource_group_name, service_name=service_name, - configuration_service_settings=configuration_service_settings, + settings=settings, cls=lambda x,y,z: x, **kwargs )