Skip to content

Commit

Permalink
CodeGen from PR 19005 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Change the parameter names to unblock Terraform release (Azure#19005)

* contianerapps: fixing swagger inconsistencies in 2022-01-01-preview

* containerapps: fixing inconsistencies in the 2022-03-01 swagger

* containerapps: updating the examples for 2022-01-01-preview

* containerapps: updating the examples to account for the updated parameter names

* containerapps: fixing linting

* fix probe enums

* Fix revision mode enum

* Fix the policheck error

* Revert "containerapps: fixing linting"

This reverts commit 3c4872f4a43fbe1a285830461f48d8c0a5ffeee8.

* Revert "containerapps: updating the examples for 2022-01-01-preview"

This reverts commit 9b81fbd65652d558c0296d72a63ca1a7c4850e3c.

* Revert "contianerapps: fixing swagger inconsistencies in 2022-01-01-preview"

This reverts commit 553fc551b3239598157238ed6246085748421b87.

* Undo changes to 2022-01-01-preview

* Fix one issue

* fix remaining inconsistency

* fix authConfig and sourceControl names

Co-authored-by: tombuildsstuff <[email protected]>
Co-authored-by: Mike Vu <[email protected]>
  • Loading branch information
3 people committed May 12, 2022
1 parent eae4f8b commit 0e55195
Show file tree
Hide file tree
Showing 21 changed files with 564 additions and 564 deletions.
4 changes: 2 additions & 2 deletions sdk/appcontainers/azure-mgmt-appcontainers/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"commit": "30c98b21ed04e3b6c80debf1e99918b15132e352",
"commit": "32143b0f5f230ee2601e3c5d1990188666a5058d",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/app/resource-manager/readme.md --multiapi --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.7.2",
"autorest_command": "autorest specification/app/resource-manager/readme.md --multiapi --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --python3-only --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.7.2",
"readme": "specification/app/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def __init__(self, client, config, serializer, deserializer) -> None:
def list(
self,
resource_group_name: str,
managed_environment_name: str,
environment_name: str,
**kwargs: Any
) -> AsyncIterable["_models.CertificateCollection"]:
"""Get the Certificates in a given managed environment.
Expand All @@ -58,8 +58,8 @@ def list(
:param resource_group_name: The name of the resource group. The name is case insensitive.
:type resource_group_name: str
:param managed_environment_name: Name of the Managed Environment.
:type managed_environment_name: str
:param environment_name: Name of the Managed Environment.
:type environment_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either CertificateCollection or the result of
cls(response)
Expand All @@ -80,7 +80,7 @@ def prepare_request(next_link=None):
request = build_list_request(
subscription_id=self._config.subscription_id,
resource_group_name=resource_group_name,
managed_environment_name=managed_environment_name,
environment_name=environment_name,
api_version=api_version,
template_url=self.list.metadata['url'],
)
Expand All @@ -92,7 +92,7 @@ def prepare_request(next_link=None):
request = build_list_request(
subscription_id=self._config.subscription_id,
resource_group_name=resource_group_name,
managed_environment_name=managed_environment_name,
environment_name=environment_name,
api_version=api_version,
template_url=next_link,
)
Expand Down Expand Up @@ -129,14 +129,14 @@ async def get_next(next_link=None):
return AsyncItemPaged(
get_next, extract_data
)
list.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}/certificates"} # type: ignore
list.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates"} # type: ignore

@distributed_trace_async
async def get(
self,
resource_group_name: str,
managed_environment_name: str,
name: str,
environment_name: str,
certificate_name: str,
**kwargs: Any
) -> "_models.Certificate":
"""Get the specified Certificate.
Expand All @@ -145,10 +145,10 @@ async def get(
:param resource_group_name: The name of the resource group. The name is case insensitive.
:type resource_group_name: str
:param managed_environment_name: Name of the Managed Environment.
:type managed_environment_name: str
:param name: Name of the Certificate.
:type name: str
:param environment_name: Name of the Managed Environment.
:type environment_name: str
:param certificate_name: Name of the Certificate.
:type certificate_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: Certificate, or the result of cls(response)
:rtype: ~azure.mgmt.appcontainers.models.Certificate
Expand All @@ -166,8 +166,8 @@ async def get(
request = build_get_request(
subscription_id=self._config.subscription_id,
resource_group_name=resource_group_name,
managed_environment_name=managed_environment_name,
name=name,
environment_name=environment_name,
certificate_name=certificate_name,
api_version=api_version,
template_url=self.get.metadata['url'],
)
Expand All @@ -193,15 +193,15 @@ async def get(

return deserialized

get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}/certificates/{name}"} # type: ignore
get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates/{certificateName}"} # type: ignore


@distributed_trace_async
async def create_or_update(
self,
resource_group_name: str,
managed_environment_name: str,
name: str,
environment_name: str,
certificate_name: str,
certificate_envelope: Optional["_models.Certificate"] = None,
**kwargs: Any
) -> "_models.Certificate":
Expand All @@ -211,10 +211,10 @@ async def create_or_update(
:param resource_group_name: The name of the resource group. The name is case insensitive.
:type resource_group_name: str
:param managed_environment_name: Name of the Managed Environment.
:type managed_environment_name: str
:param name: Name of the Certificate.
:type name: str
:param environment_name: Name of the Managed Environment.
:type environment_name: str
:param certificate_name: Name of the Certificate.
:type certificate_name: str
:param certificate_envelope: Certificate to be created or updated. Default value is None.
:type certificate_envelope: ~azure.mgmt.appcontainers.models.Certificate
:keyword callable cls: A custom type or function that will be passed the direct response
Expand All @@ -239,8 +239,8 @@ async def create_or_update(
request = build_create_or_update_request(
subscription_id=self._config.subscription_id,
resource_group_name=resource_group_name,
managed_environment_name=managed_environment_name,
name=name,
environment_name=environment_name,
certificate_name=certificate_name,
api_version=api_version,
content_type=content_type,
json=_json,
Expand Down Expand Up @@ -268,15 +268,15 @@ async def create_or_update(

return deserialized

create_or_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}/certificates/{name}"} # type: ignore
create_or_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates/{certificateName}"} # type: ignore


@distributed_trace_async
async def delete( # pylint: disable=inconsistent-return-statements
self,
resource_group_name: str,
managed_environment_name: str,
name: str,
environment_name: str,
certificate_name: str,
**kwargs: Any
) -> None:
"""Deletes the specified Certificate.
Expand All @@ -285,10 +285,10 @@ async def delete( # pylint: disable=inconsistent-return-statements
:param resource_group_name: The name of the resource group. The name is case insensitive.
:type resource_group_name: str
:param managed_environment_name: Name of the Managed Environment.
:type managed_environment_name: str
:param name: Name of the Certificate.
:type name: str
:param environment_name: Name of the Managed Environment.
:type environment_name: str
:param certificate_name: Name of the Certificate.
:type certificate_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
Expand All @@ -306,8 +306,8 @@ async def delete( # pylint: disable=inconsistent-return-statements
request = build_delete_request(
subscription_id=self._config.subscription_id,
resource_group_name=resource_group_name,
managed_environment_name=managed_environment_name,
name=name,
environment_name=environment_name,
certificate_name=certificate_name,
api_version=api_version,
template_url=self.delete.metadata['url'],
)
Expand All @@ -329,15 +329,15 @@ async def delete( # pylint: disable=inconsistent-return-statements
if cls:
return cls(pipeline_response, None, {})

delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}/certificates/{name}"} # type: ignore
delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates/{certificateName}"} # type: ignore


@distributed_trace_async
async def update(
self,
resource_group_name: str,
managed_environment_name: str,
name: str,
environment_name: str,
certificate_name: str,
certificate_envelope: "_models.CertificatePatch",
**kwargs: Any
) -> "_models.Certificate":
Expand All @@ -347,10 +347,10 @@ async def update(
:param resource_group_name: The name of the resource group. The name is case insensitive.
:type resource_group_name: str
:param managed_environment_name: Name of the Managed Environment.
:type managed_environment_name: str
:param name: Name of the Certificate.
:type name: str
:param environment_name: Name of the Managed Environment.
:type environment_name: str
:param certificate_name: Name of the Certificate.
:type certificate_name: str
:param certificate_envelope: Properties of a certificate that need to be updated.
:type certificate_envelope: ~azure.mgmt.appcontainers.models.CertificatePatch
:keyword callable cls: A custom type or function that will be passed the direct response
Expand All @@ -372,8 +372,8 @@ async def update(
request = build_update_request(
subscription_id=self._config.subscription_id,
resource_group_name=resource_group_name,
managed_environment_name=managed_environment_name,
name=name,
environment_name=environment_name,
certificate_name=certificate_name,
api_version=api_version,
content_type=content_type,
json=_json,
Expand Down Expand Up @@ -401,5 +401,5 @@ async def update(

return deserialized

update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}/certificates/{name}"} # type: ignore
update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates/{certificateName}"} # type: ignore

Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ async def get(
self,
resource_group_name: str,
container_app_name: str,
name: str,
auth_config_name: str,
**kwargs: Any
) -> "_models.AuthConfig":
"""Get a AuthConfig of a Container App.
Expand All @@ -147,8 +147,8 @@ async def get(
:type resource_group_name: str
:param container_app_name: Name of the Container App.
:type container_app_name: str
:param name: Name of the Container App AuthConfig.
:type name: str
:param auth_config_name: Name of the Container App AuthConfig.
:type auth_config_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: AuthConfig, or the result of cls(response)
:rtype: ~azure.mgmt.appcontainers.models.AuthConfig
Expand All @@ -167,7 +167,7 @@ async def get(
subscription_id=self._config.subscription_id,
resource_group_name=resource_group_name,
container_app_name=container_app_name,
name=name,
auth_config_name=auth_config_name,
api_version=api_version,
template_url=self.get.metadata['url'],
)
Expand All @@ -193,15 +193,15 @@ async def get(

return deserialized

get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs/{name}"} # type: ignore
get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs/{authConfigName}"} # type: ignore


@distributed_trace_async
async def create_or_update(
self,
resource_group_name: str,
container_app_name: str,
name: str,
auth_config_name: str,
auth_config_envelope: "_models.AuthConfig",
**kwargs: Any
) -> "_models.AuthConfig":
Expand All @@ -213,8 +213,8 @@ async def create_or_update(
:type resource_group_name: str
:param container_app_name: Name of the Container App.
:type container_app_name: str
:param name: Name of the Container App AuthConfig.
:type name: str
:param auth_config_name: Name of the Container App AuthConfig.
:type auth_config_name: str
:param auth_config_envelope: Properties used to create a Container App AuthConfig.
:type auth_config_envelope: ~azure.mgmt.appcontainers.models.AuthConfig
:keyword callable cls: A custom type or function that will be passed the direct response
Expand All @@ -237,7 +237,7 @@ async def create_or_update(
subscription_id=self._config.subscription_id,
resource_group_name=resource_group_name,
container_app_name=container_app_name,
name=name,
auth_config_name=auth_config_name,
api_version=api_version,
content_type=content_type,
json=_json,
Expand Down Expand Up @@ -265,15 +265,15 @@ async def create_or_update(

return deserialized

create_or_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs/{name}"} # type: ignore
create_or_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs/{authConfigName}"} # type: ignore


@distributed_trace_async
async def delete( # pylint: disable=inconsistent-return-statements
self,
resource_group_name: str,
container_app_name: str,
name: str,
auth_config_name: str,
**kwargs: Any
) -> None:
"""Delete a Container App AuthConfig.
Expand All @@ -284,8 +284,8 @@ async def delete( # pylint: disable=inconsistent-return-statements
:type resource_group_name: str
:param container_app_name: Name of the Container App.
:type container_app_name: str
:param name: Name of the Container App AuthConfig.
:type name: str
:param auth_config_name: Name of the Container App AuthConfig.
:type auth_config_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
Expand All @@ -304,7 +304,7 @@ async def delete( # pylint: disable=inconsistent-return-statements
subscription_id=self._config.subscription_id,
resource_group_name=resource_group_name,
container_app_name=container_app_name,
name=name,
auth_config_name=auth_config_name,
api_version=api_version,
template_url=self.delete.metadata['url'],
)
Expand All @@ -326,5 +326,5 @@ async def delete( # pylint: disable=inconsistent-return-statements
if cls:
return cls(pipeline_response, None, {})

delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs/{name}"} # type: ignore
delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs/{authConfigName}"} # type: ignore

Loading

0 comments on commit 0e55195

Please sign in to comment.