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 50eac49ce4626f24f307a3d47f4fec528e54f81e into f699f9210bfb53e5841bd45c5637a122a17ad32b
  • Loading branch information
SDKAuto committed May 11, 2022
1 parent 7b20eb6 commit 384bee0
Show file tree
Hide file tree
Showing 17 changed files with 474 additions and 474 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": "cefa0490362507b9ca73b8f982e1a4f0f1d7a506",
"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

Loading

0 comments on commit 384bee0

Please sign in to comment.