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
Merge bb86ee142e7292a01e579cd0ce68ffcefa6e421d into b71da9841769cfdf17c43d3dc58195f1237f1bed
  • Loading branch information
SDKAuto committed May 10, 2022
1 parent d5e45f0 commit 2ac655a
Show file tree
Hide file tree
Showing 15 changed files with 391 additions and 391 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/python@5.13.0",
"@autorest/modelerfour@4.19.3"
],
"commit": "30c98b21ed04e3b6c80debf1e99918b15132e352",
"commit": "defb9e765ca505ff71db1b72deac385808e9b8b8",
"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/python@5.13.0 --use=@autorest/modelerfour@4.19.3 --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/python@5.13.0 --use=@autorest/modelerfour@4.19.3 --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 @@ -49,7 +49,7 @@ async def get_replica(
resource_group_name: str,
container_app_name: str,
revision_name: str,
name: str,
replica_name: str,
**kwargs: Any
) -> "_models.Replica":
"""Get a replica for a Container App Revision.
Expand All @@ -62,8 +62,8 @@ async def get_replica(
:type container_app_name: str
:param revision_name: Name of the Container App Revision.
:type revision_name: str
:param name: Name of the Container App Revision Replica.
:type name: str
:param replica_name: Name of the Container App Revision Replica.
:type replica_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: Replica, or the result of cls(response)
:rtype: ~azure.mgmt.appcontainers.models.Replica
Expand All @@ -83,7 +83,7 @@ async def get_replica(
resource_group_name=resource_group_name,
container_app_name=container_app_name,
revision_name=revision_name,
name=name,
replica_name=replica_name,
api_version=api_version,
template_url=self.get_replica.metadata['url'],
)
Expand All @@ -109,7 +109,7 @@ async def get_replica(

return deserialized

get_replica.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/replicas/{name}"} # type: ignore
get_replica.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/replicas/{replicaName}"} # type: ignore


@distributed_trace_async
Expand Down
Loading

0 comments on commit 2ac655a

Please sign in to comment.