Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SDK #22

Merged
merged 2 commits into from
Aug 16, 2021
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
Original file line number Diff line number Diff line change
Expand Up @@ -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))
yuwzho marked this conversation as resolved.
Show resolved Hide resolved
except ResourceNotFoundError:
# Excepted case
pass
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down Expand Up @@ -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)
Expand All @@ -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.
Expand All @@ -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.
Expand All @@ -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
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1651,21 +1651,21 @@ 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,
**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):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
Expand All @@ -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"]
Expand All @@ -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.
Expand All @@ -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
)
Expand Down