From 384bee006171de12d56475e915207cb12b1ac8af Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 11 May 2022 17:22:58 +0000 Subject: [PATCH] CodeGen from PR 19005 in Azure/azure-rest-api-specs Merge 50eac49ce4626f24f307a3d47f4fec528e54f81e into f699f9210bfb53e5841bd45c5637a122a17ad32b --- .../azure-mgmt-appcontainers/_meta.json | 4 +- .../operations/_certificates_operations.py | 84 +++++------ .../operations/_container_apps_operations.py | 68 ++++----- ...ainer_apps_revision_replicas_operations.py | 10 +- .../_container_apps_revisions_operations.py | 40 +++--- .../operations/_dapr_components_operations.py | 40 +++--- .../_managed_environments_operations.py | 58 ++++---- ...anaged_environments_storages_operations.py | 64 ++++----- .../aio/operations/_namespaces_operations.py | 10 +- .../operations/_certificates_operations.py | 130 +++++++++--------- .../operations/_container_apps_operations.py | 98 ++++++------- ...ainer_apps_revision_replicas_operations.py | 16 +-- .../_container_apps_revisions_operations.py | 64 ++++----- .../operations/_dapr_components_operations.py | 64 ++++----- .../_managed_environments_operations.py | 82 +++++------ ...anaged_environments_storages_operations.py | 100 +++++++------- .../operations/_namespaces_operations.py | 16 +-- 17 files changed, 474 insertions(+), 474 deletions(-) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/_meta.json b/sdk/appcontainers/azure-mgmt-appcontainers/_meta.json index 207ca38f91e78..c47c9d4cd2464 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/_meta.json +++ b/sdk/appcontainers/azure-mgmt-appcontainers/_meta.json @@ -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" } \ No newline at end of file diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_certificates_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_certificates_operations.py index d69728ec40595..f4742e78a51a5 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_certificates_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_certificates_operations.py @@ -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. @@ -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) @@ -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'], ) @@ -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, ) @@ -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. @@ -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 @@ -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'], ) @@ -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": @@ -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 @@ -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, @@ -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. @@ -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 @@ -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'], ) @@ -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": @@ -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 @@ -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, @@ -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 diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_operations.py index e4fa451b21ae1..14252e0ca694a 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_operations.py @@ -208,7 +208,7 @@ async def get_next(next_link=None): async def get( self, resource_group_name: str, - name: str, + container_app_name: str, **kwargs: Any ) -> "_models.ContainerApp": """Get the properties of a Container App. @@ -217,8 +217,8 @@ async def get( :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str - :param name: Name of the Container App. - :type name: str + :param container_app_name: Name of the Container App. + :type container_app_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: ContainerApp, or the result of cls(response) :rtype: ~azure.mgmt.appcontainers.models.ContainerApp @@ -236,7 +236,7 @@ async def get( request = build_get_request( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, - name=name, + container_app_name=container_app_name, api_version=api_version, template_url=self.get.metadata['url'], ) @@ -262,13 +262,13 @@ async def get( return deserialized - get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{name}"} # type: ignore + get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}"} # type: ignore async def _create_or_update_initial( self, resource_group_name: str, - name: str, + container_app_name: str, container_app_envelope: "_models.ContainerApp", **kwargs: Any ) -> "_models.ContainerApp": @@ -286,7 +286,7 @@ async def _create_or_update_initial( request = build_create_or_update_request_initial( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, - name=name, + container_app_name=container_app_name, api_version=api_version, content_type=content_type, json=_json, @@ -317,14 +317,14 @@ async def _create_or_update_initial( return deserialized - _create_or_update_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{name}"} # type: ignore + _create_or_update_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}"} # type: ignore @distributed_trace_async async def begin_create_or_update( self, resource_group_name: str, - name: str, + container_app_name: str, container_app_envelope: "_models.ContainerApp", **kwargs: Any ) -> AsyncLROPoller["_models.ContainerApp"]: @@ -334,8 +334,8 @@ async def begin_create_or_update( :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str - :param name: Name of the Container App. - :type name: str + :param container_app_name: Name of the Container App. + :type container_app_name: str :param container_app_envelope: Properties used to create a container app. :type container_app_envelope: ~azure.mgmt.appcontainers.models.ContainerApp :keyword callable cls: A custom type or function that will be passed the direct response @@ -363,7 +363,7 @@ async def begin_create_or_update( if cont_token is None: raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, - name=name, + container_app_name=container_app_name, container_app_envelope=container_app_envelope, api_version=api_version, content_type=content_type, @@ -392,12 +392,12 @@ def get_long_running_output(pipeline_response): ) return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_create_or_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{name}"} # type: ignore + begin_create_or_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}"} # type: ignore async def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, - name: str, + container_app_name: str, **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] @@ -412,7 +412,7 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements request = build_delete_request_initial( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, - name=name, + container_app_name=container_app_name, api_version=api_version, template_url=self._delete_initial.metadata['url'], ) @@ -433,14 +433,14 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) - _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{name}"} # type: ignore + _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}"} # type: ignore @distributed_trace_async async def begin_delete( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, - name: str, + container_app_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a Container App. @@ -449,8 +449,8 @@ async def begin_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 name: Name of the Container App. - :type name: str + :param container_app_name: Name of the Container App. + :type container_app_name: str :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. Pass in False for @@ -474,7 +474,7 @@ async def begin_delete( # pylint: disable=inconsistent-return-statements if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, - name=name, + container_app_name=container_app_name, api_version=api_version, cls=lambda x,y,z: x, **kwargs @@ -498,12 +498,12 @@ def get_long_running_output(pipeline_response): ) return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{name}"} # type: ignore + begin_delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}"} # type: ignore async def _update_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, - name: str, + container_app_name: str, container_app_envelope: "_models.ContainerApp", **kwargs: Any ) -> None: @@ -521,7 +521,7 @@ async def _update_initial( # pylint: disable=inconsistent-return-statements request = build_update_request_initial( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, - name=name, + container_app_name=container_app_name, api_version=api_version, content_type=content_type, json=_json, @@ -544,14 +544,14 @@ async def _update_initial( # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) - _update_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{name}"} # type: ignore + _update_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}"} # type: ignore @distributed_trace_async async def begin_update( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, - name: str, + container_app_name: str, container_app_envelope: "_models.ContainerApp", **kwargs: Any ) -> AsyncLROPoller[None]: @@ -561,8 +561,8 @@ async def begin_update( # 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 name: Name of the Container App. - :type name: str + :param container_app_name: Name of the Container App. + :type container_app_name: str :param container_app_envelope: Properties of a Container App that need to be updated. :type container_app_envelope: ~azure.mgmt.appcontainers.models.ContainerApp :keyword callable cls: A custom type or function that will be passed the direct response @@ -589,7 +589,7 @@ async def begin_update( # pylint: disable=inconsistent-return-statements if cont_token is None: raw_result = await self._update_initial( resource_group_name=resource_group_name, - name=name, + container_app_name=container_app_name, container_app_envelope=container_app_envelope, api_version=api_version, content_type=content_type, @@ -615,7 +615,7 @@ def get_long_running_output(pipeline_response): ) return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{name}"} # type: ignore + begin_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}"} # type: ignore @distributed_trace_async async def list_custom_host_name_analysis( @@ -686,7 +686,7 @@ async def list_custom_host_name_analysis( async def list_secrets( self, resource_group_name: str, - name: str, + container_app_name: str, **kwargs: Any ) -> "_models.SecretsCollection": """List secrets for a container app. @@ -695,8 +695,8 @@ async def list_secrets( :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str - :param name: Name of the Container App. - :type name: str + :param container_app_name: Name of the Container App. + :type container_app_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: SecretsCollection, or the result of cls(response) :rtype: ~azure.mgmt.appcontainers.models.SecretsCollection @@ -714,7 +714,7 @@ async def list_secrets( request = build_list_secrets_request( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, - name=name, + container_app_name=container_app_name, api_version=api_version, template_url=self.list_secrets.metadata['url'], ) @@ -740,5 +740,5 @@ async def list_secrets( return deserialized - list_secrets.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{name}/listSecrets"} # type: ignore + list_secrets.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/listSecrets"} # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_revision_replicas_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_revision_replicas_operations.py index 54fc63c0cf0f1..be675fe4c67ac 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_revision_replicas_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_revision_replicas_operations.py @@ -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. @@ -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 @@ -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'], ) @@ -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 diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_revisions_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_revisions_operations.py index 362739149d46d..e89886bbb4aa9 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_revisions_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_revisions_operations.py @@ -140,7 +140,7 @@ async def get_revision( self, resource_group_name: str, container_app_name: str, - name: str, + revision_name: str, **kwargs: Any ) -> "_models.Revision": """Get a revision of a Container App. @@ -151,8 +151,8 @@ async def get_revision( :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 Revision. - :type name: str + :param revision_name: Name of the Container App Revision. + :type revision_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: Revision, or the result of cls(response) :rtype: ~azure.mgmt.appcontainers.models.Revision @@ -171,7 +171,7 @@ async def get_revision( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, container_app_name=container_app_name, - name=name, + revision_name=revision_name, api_version=api_version, template_url=self.get_revision.metadata['url'], ) @@ -197,7 +197,7 @@ async def get_revision( return deserialized - get_revision.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{name}"} # type: ignore + get_revision.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}"} # type: ignore @distributed_trace_async @@ -205,7 +205,7 @@ async def activate_revision( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, container_app_name: str, - name: str, + revision_name: str, **kwargs: Any ) -> None: """Activates a revision for a Container App. @@ -216,8 +216,8 @@ async def activate_revision( # 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 Revision. - :type name: str + :param revision_name: Name of the Container App Revision. + :type revision_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 @@ -236,7 +236,7 @@ async def activate_revision( # 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, + revision_name=revision_name, api_version=api_version, template_url=self.activate_revision.metadata['url'], ) @@ -258,7 +258,7 @@ async def activate_revision( # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) - activate_revision.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{name}/activate"} # type: ignore + activate_revision.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/activate"} # type: ignore @distributed_trace_async @@ -266,7 +266,7 @@ async def deactivate_revision( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, container_app_name: str, - name: str, + revision_name: str, **kwargs: Any ) -> None: """Deactivates a revision for a Container App. @@ -277,8 +277,8 @@ async def deactivate_revision( # 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 Revision. - :type name: str + :param revision_name: Name of the Container App Revision. + :type revision_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 @@ -297,7 +297,7 @@ async def deactivate_revision( # 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, + revision_name=revision_name, api_version=api_version, template_url=self.deactivate_revision.metadata['url'], ) @@ -319,7 +319,7 @@ async def deactivate_revision( # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) - deactivate_revision.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{name}/deactivate"} # type: ignore + deactivate_revision.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/deactivate"} # type: ignore @distributed_trace_async @@ -327,7 +327,7 @@ async def restart_revision( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, container_app_name: str, - name: str, + revision_name: str, **kwargs: Any ) -> None: """Restarts a revision for a Container App. @@ -338,8 +338,8 @@ async def restart_revision( # 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 Revision. - :type name: str + :param revision_name: Name of the Container App Revision. + :type revision_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 @@ -358,7 +358,7 @@ async def restart_revision( # 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, + revision_name=revision_name, api_version=api_version, template_url=self.restart_revision.metadata['url'], ) @@ -380,5 +380,5 @@ async def restart_revision( # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) - restart_revision.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{name}/restart"} # type: ignore + restart_revision.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/restart"} # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_dapr_components_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_dapr_components_operations.py index 0d4391f38989a..549c8275319c3 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_dapr_components_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_dapr_components_operations.py @@ -136,7 +136,7 @@ async def get( self, resource_group_name: str, environment_name: str, - name: str, + component_name: str, **kwargs: Any ) -> "_models.DaprComponent": """Get a dapr component. @@ -147,8 +147,8 @@ async def get( :type resource_group_name: str :param environment_name: Name of the Managed Environment. :type environment_name: str - :param name: Name of the Dapr Component. - :type name: str + :param component_name: Name of the Dapr Component. + :type component_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: DaprComponent, or the result of cls(response) :rtype: ~azure.mgmt.appcontainers.models.DaprComponent @@ -167,7 +167,7 @@ async def get( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, environment_name=environment_name, - name=name, + component_name=component_name, api_version=api_version, template_url=self.get.metadata['url'], ) @@ -193,7 +193,7 @@ async def get( return deserialized - get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{name}"} # type: ignore + get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}"} # type: ignore @distributed_trace_async @@ -201,7 +201,7 @@ async def create_or_update( self, resource_group_name: str, environment_name: str, - name: str, + component_name: str, dapr_component_envelope: "_models.DaprComponent", **kwargs: Any ) -> "_models.DaprComponent": @@ -213,8 +213,8 @@ async def create_or_update( :type resource_group_name: str :param environment_name: Name of the Managed Environment. :type environment_name: str - :param name: Name of the Dapr Component. - :type name: str + :param component_name: Name of the Dapr Component. + :type component_name: str :param dapr_component_envelope: Configuration details of the Dapr Component. :type dapr_component_envelope: ~azure.mgmt.appcontainers.models.DaprComponent :keyword callable cls: A custom type or function that will be passed the direct response @@ -237,7 +237,7 @@ async def create_or_update( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, environment_name=environment_name, - name=name, + component_name=component_name, api_version=api_version, content_type=content_type, json=_json, @@ -265,7 +265,7 @@ async def create_or_update( return deserialized - create_or_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{name}"} # type: ignore + create_or_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}"} # type: ignore @distributed_trace_async @@ -273,7 +273,7 @@ async def delete( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, environment_name: str, - name: str, + component_name: str, **kwargs: Any ) -> None: """Delete a Dapr Component. @@ -284,8 +284,8 @@ async def delete( # pylint: disable=inconsistent-return-statements :type resource_group_name: str :param environment_name: Name of the Managed Environment. :type environment_name: str - :param name: Name of the Dapr Component. - :type name: str + :param component_name: Name of the Dapr Component. + :type component_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 @@ -304,7 +304,7 @@ async def delete( # pylint: disable=inconsistent-return-statements subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, environment_name=environment_name, - name=name, + component_name=component_name, api_version=api_version, template_url=self.delete.metadata['url'], ) @@ -326,7 +326,7 @@ 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/{environmentName}/daprComponents/{name}"} # type: ignore + delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}"} # type: ignore @distributed_trace_async @@ -334,7 +334,7 @@ async def list_secrets( self, resource_group_name: str, environment_name: str, - name: str, + component_name: str, **kwargs: Any ) -> "_models.DaprSecretsCollection": """List secrets for a dapr component. @@ -345,8 +345,8 @@ async def list_secrets( :type resource_group_name: str :param environment_name: Name of the Managed Environment. :type environment_name: str - :param name: Name of the Dapr Component. - :type name: str + :param component_name: Name of the Dapr Component. + :type component_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: DaprSecretsCollection, or the result of cls(response) :rtype: ~azure.mgmt.appcontainers.models.DaprSecretsCollection @@ -365,7 +365,7 @@ async def list_secrets( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, environment_name=environment_name, - name=name, + component_name=component_name, api_version=api_version, template_url=self.list_secrets.metadata['url'], ) @@ -391,5 +391,5 @@ async def list_secrets( return deserialized - list_secrets.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{name}/listSecrets"} # type: ignore + list_secrets.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}/listSecrets"} # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environments_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environments_operations.py index d919dde997b28..04589e9efe70b 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environments_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environments_operations.py @@ -208,7 +208,7 @@ async def get_next(next_link=None): async def get( self, resource_group_name: str, - name: str, + environment_name: str, **kwargs: Any ) -> "_models.ManagedEnvironment": """Get the properties of a Managed Environment. @@ -217,8 +217,8 @@ async def get( :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str - :param name: Name of the Environment. - :type name: str + :param environment_name: Name of the Environment. + :type environment_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: ManagedEnvironment, or the result of cls(response) :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironment @@ -236,7 +236,7 @@ async def get( request = build_get_request( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, - name=name, + environment_name=environment_name, api_version=api_version, template_url=self.get.metadata['url'], ) @@ -262,13 +262,13 @@ async def get( return deserialized - get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{name}"} # type: ignore + get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}"} # type: ignore async def _create_or_update_initial( self, resource_group_name: str, - name: str, + environment_name: str, environment_envelope: "_models.ManagedEnvironment", **kwargs: Any ) -> "_models.ManagedEnvironment": @@ -286,7 +286,7 @@ async def _create_or_update_initial( request = build_create_or_update_request_initial( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, - name=name, + environment_name=environment_name, api_version=api_version, content_type=content_type, json=_json, @@ -317,14 +317,14 @@ async def _create_or_update_initial( return deserialized - _create_or_update_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{name}"} # type: ignore + _create_or_update_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}"} # type: ignore @distributed_trace_async async def begin_create_or_update( self, resource_group_name: str, - name: str, + environment_name: str, environment_envelope: "_models.ManagedEnvironment", **kwargs: Any ) -> AsyncLROPoller["_models.ManagedEnvironment"]: @@ -334,8 +334,8 @@ async def begin_create_or_update( :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str - :param name: Name of the Environment. - :type name: str + :param environment_name: Name of the Environment. + :type environment_name: str :param environment_envelope: Configuration details of the Environment. :type environment_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironment :keyword callable cls: A custom type or function that will be passed the direct response @@ -363,7 +363,7 @@ async def begin_create_or_update( if cont_token is None: raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, - name=name, + environment_name=environment_name, environment_envelope=environment_envelope, api_version=api_version, content_type=content_type, @@ -392,12 +392,12 @@ def get_long_running_output(pipeline_response): ) return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_create_or_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{name}"} # type: ignore + begin_create_or_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}"} # type: ignore async def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, - name: str, + environment_name: str, **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] @@ -412,7 +412,7 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements request = build_delete_request_initial( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, - name=name, + environment_name=environment_name, api_version=api_version, template_url=self._delete_initial.metadata['url'], ) @@ -433,14 +433,14 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) - _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{name}"} # type: ignore + _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}"} # type: ignore @distributed_trace_async async def begin_delete( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, - name: str, + environment_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a Managed Environment. @@ -449,8 +449,8 @@ async def begin_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 name: Name of the Environment. - :type name: str + :param environment_name: Name of the Environment. + :type environment_name: str :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. Pass in False for @@ -474,7 +474,7 @@ async def begin_delete( # pylint: disable=inconsistent-return-statements if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, - name=name, + environment_name=environment_name, api_version=api_version, cls=lambda x,y,z: x, **kwargs @@ -498,12 +498,12 @@ def get_long_running_output(pipeline_response): ) return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{name}"} # type: ignore + begin_delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}"} # type: ignore async def _update_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, - name: str, + environment_name: str, environment_envelope: "_models.ManagedEnvironment", **kwargs: Any ) -> None: @@ -521,7 +521,7 @@ async def _update_initial( # pylint: disable=inconsistent-return-statements request = build_update_request_initial( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, - name=name, + environment_name=environment_name, api_version=api_version, content_type=content_type, json=_json, @@ -544,14 +544,14 @@ async def _update_initial( # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) - _update_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{name}"} # type: ignore + _update_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}"} # type: ignore @distributed_trace_async async def begin_update( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, - name: str, + environment_name: str, environment_envelope: "_models.ManagedEnvironment", **kwargs: Any ) -> AsyncLROPoller[None]: @@ -561,8 +561,8 @@ async def begin_update( # 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 name: Name of the Environment. - :type name: str + :param environment_name: Name of the Environment. + :type environment_name: str :param environment_envelope: Configuration details of the Environment. :type environment_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironment :keyword callable cls: A custom type or function that will be passed the direct response @@ -589,7 +589,7 @@ async def begin_update( # pylint: disable=inconsistent-return-statements if cont_token is None: raw_result = await self._update_initial( resource_group_name=resource_group_name, - name=name, + environment_name=environment_name, environment_envelope=environment_envelope, api_version=api_version, content_type=content_type, @@ -615,4 +615,4 @@ def get_long_running_output(pipeline_response): ) return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{name}"} # type: ignore + begin_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}"} # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environments_storages_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environments_storages_operations.py index 420dc70a2e7b1..5a62d101684a0 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environments_storages_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environments_storages_operations.py @@ -47,7 +47,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def list( self, resource_group_name: str, - env_name: str, + environment_name: str, **kwargs: Any ) -> "_models.ManagedEnvironmentStoragesCollection": """Get all storages for a managedEnvironment. @@ -56,8 +56,8 @@ async def list( :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str - :param env_name: Name of the Environment. - :type env_name: str + :param environment_name: Name of the Environment. + :type environment_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: ManagedEnvironmentStoragesCollection, or the result of cls(response) :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStoragesCollection @@ -75,7 +75,7 @@ async def list( request = build_list_request( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, - env_name=env_name, + environment_name=environment_name, api_version=api_version, template_url=self.list.metadata['url'], ) @@ -101,15 +101,15 @@ async def list( return deserialized - list.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{envName}/storages"} # type: ignore + list.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages"} # type: ignore @distributed_trace_async async def get( self, resource_group_name: str, - env_name: str, - name: str, + environment_name: str, + storage_name: str, **kwargs: Any ) -> "_models.ManagedEnvironmentStorage": """Get storage for a managedEnvironment. @@ -118,10 +118,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 env_name: Name of the Environment. - :type env_name: str - :param name: Name of the storage. - :type name: str + :param environment_name: Name of the Environment. + :type environment_name: str + :param storage_name: Name of the storage. + :type storage_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: ManagedEnvironmentStorage, or the result of cls(response) :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStorage @@ -139,8 +139,8 @@ async def get( request = build_get_request( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, - env_name=env_name, - name=name, + environment_name=environment_name, + storage_name=storage_name, api_version=api_version, template_url=self.get.metadata['url'], ) @@ -166,15 +166,15 @@ async def get( return deserialized - get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{envName}/storages/{name}"} # type: ignore + get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages/{storageName}"} # type: ignore @distributed_trace_async async def create_or_update( self, resource_group_name: str, - env_name: str, - name: str, + environment_name: str, + storage_name: str, storage_envelope: "_models.ManagedEnvironmentStorage", **kwargs: Any ) -> "_models.ManagedEnvironmentStorage": @@ -184,10 +184,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 env_name: Name of the Environment. - :type env_name: str - :param name: Name of the storage. - :type name: str + :param environment_name: Name of the Environment. + :type environment_name: str + :param storage_name: Name of the storage. + :type storage_name: str :param storage_envelope: Configuration details of storage. :type storage_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStorage :keyword callable cls: A custom type or function that will be passed the direct response @@ -209,8 +209,8 @@ async def create_or_update( request = build_create_or_update_request( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, - env_name=env_name, - name=name, + environment_name=environment_name, + storage_name=storage_name, api_version=api_version, content_type=content_type, json=_json, @@ -238,15 +238,15 @@ async def create_or_update( return deserialized - create_or_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{envName}/storages/{name}"} # type: ignore + create_or_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages/{storageName}"} # type: ignore @distributed_trace_async async def delete( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, - env_name: str, - name: str, + environment_name: str, + storage_name: str, **kwargs: Any ) -> None: """Delete storage for a managedEnvironment. @@ -255,10 +255,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 env_name: Name of the Environment. - :type env_name: str - :param name: Name of the storage. - :type name: str + :param environment_name: Name of the Environment. + :type environment_name: str + :param storage_name: Name of the storage. + :type storage_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 @@ -276,8 +276,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, - env_name=env_name, - name=name, + environment_name=environment_name, + storage_name=storage_name, api_version=api_version, template_url=self.delete.metadata['url'], ) @@ -299,5 +299,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/managedEnvironments/{envName}/storages/{name}"} # type: ignore + delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages/{storageName}"} # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_namespaces_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_namespaces_operations.py index 0a32907dffb5e..bf9e9706e7bcf 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_namespaces_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_namespaces_operations.py @@ -47,7 +47,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def check_name_availability( self, resource_group_name: str, - managed_environment_name: str, + environment_name: str, check_name_availability_request: "_models.CheckNameAvailabilityRequest", **kwargs: Any ) -> "_models.CheckNameAvailabilityResponse": @@ -57,8 +57,8 @@ async def check_name_availability( :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 :param check_name_availability_request: The check name availability request. :type check_name_availability_request: ~azure.mgmt.appcontainers.models.CheckNameAvailabilityRequest @@ -81,7 +81,7 @@ async def check_name_availability( request = build_check_name_availability_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, content_type=content_type, json=_json, @@ -109,5 +109,5 @@ async def check_name_availability( return deserialized - check_name_availability.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}/checkNameAvailability"} # type: ignore + check_name_availability.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/checkNameAvailability"} # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_certificates_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_certificates_operations.py index 71cc8a1cb8b30..cb582da44c7d8 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_certificates_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_certificates_operations.py @@ -30,18 +30,18 @@ def build_list_request( subscription_id: str, resource_group_name: str, - managed_environment_name: str, + environment_name: str, **kwargs: Any ) -> HttpRequest: api_version = kwargs.pop('api_version', "2022-03-01") # type: str accept = "application/json" # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}/certificates") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), - "managedEnvironmentName": _SERIALIZER.url("managed_environment_name", managed_environment_name, 'str'), + "environmentName": _SERIALIZER.url("environment_name", environment_name, 'str'), } _url = _format_url_section(_url, **path_format_arguments) @@ -66,20 +66,20 @@ def build_list_request( def build_get_request( subscription_id: str, resource_group_name: str, - managed_environment_name: str, - name: str, + environment_name: str, + certificate_name: str, **kwargs: Any ) -> HttpRequest: api_version = kwargs.pop('api_version', "2022-03-01") # type: str accept = "application/json" # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}/certificates/{name}") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates/{certificateName}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), - "managedEnvironmentName": _SERIALIZER.url("managed_environment_name", managed_environment_name, 'str'), - "name": _SERIALIZER.url("name", name, 'str'), + "environmentName": _SERIALIZER.url("environment_name", environment_name, 'str'), + "certificateName": _SERIALIZER.url("certificate_name", certificate_name, 'str'), } _url = _format_url_section(_url, **path_format_arguments) @@ -104,8 +104,8 @@ def build_get_request( def build_create_or_update_request( subscription_id: str, resource_group_name: str, - managed_environment_name: str, - name: str, + environment_name: str, + certificate_name: str, *, json: JSONType = None, content: Any = None, @@ -116,12 +116,12 @@ def build_create_or_update_request( accept = "application/json" # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}/certificates/{name}") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates/{certificateName}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), - "managedEnvironmentName": _SERIALIZER.url("managed_environment_name", managed_environment_name, 'str'), - "name": _SERIALIZER.url("name", name, 'str'), + "environmentName": _SERIALIZER.url("environment_name", environment_name, 'str'), + "certificateName": _SERIALIZER.url("certificate_name", certificate_name, 'str'), } _url = _format_url_section(_url, **path_format_arguments) @@ -150,20 +150,20 @@ def build_create_or_update_request( def build_delete_request( subscription_id: str, resource_group_name: str, - managed_environment_name: str, - name: str, + environment_name: str, + certificate_name: str, **kwargs: Any ) -> HttpRequest: api_version = kwargs.pop('api_version', "2022-03-01") # type: str accept = "application/json" # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}/certificates/{name}") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates/{certificateName}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), - "managedEnvironmentName": _SERIALIZER.url("managed_environment_name", managed_environment_name, 'str'), - "name": _SERIALIZER.url("name", name, 'str'), + "environmentName": _SERIALIZER.url("environment_name", environment_name, 'str'), + "certificateName": _SERIALIZER.url("certificate_name", certificate_name, 'str'), } _url = _format_url_section(_url, **path_format_arguments) @@ -188,8 +188,8 @@ def build_delete_request( def build_update_request( subscription_id: str, resource_group_name: str, - managed_environment_name: str, - name: str, + environment_name: str, + certificate_name: str, *, json: JSONType = None, content: Any = None, @@ -200,12 +200,12 @@ def build_update_request( accept = "application/json" # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}/certificates/{name}") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates/{certificateName}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), - "managedEnvironmentName": _SERIALIZER.url("managed_environment_name", managed_environment_name, 'str'), - "name": _SERIALIZER.url("name", name, 'str'), + "environmentName": _SERIALIZER.url("environment_name", environment_name, 'str'), + "certificateName": _SERIALIZER.url("certificate_name", certificate_name, 'str'), } _url = _format_url_section(_url, **path_format_arguments) @@ -256,7 +256,7 @@ def __init__(self, client, config, serializer, deserializer): def list( self, resource_group_name: str, - managed_environment_name: str, + environment_name: str, **kwargs: Any ) -> Iterable["_models.CertificateCollection"]: """Get the Certificates in a given managed environment. @@ -265,8 +265,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) @@ -286,7 +286,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'], ) @@ -298,7 +298,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, ) @@ -335,14 +335,14 @@ def get_next(next_link=None): return ItemPaged( 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 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. @@ -351,10 +351,10 @@ 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 @@ -372,8 +372,8 @@ 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'], ) @@ -399,15 +399,15 @@ 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 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": @@ -417,10 +417,10 @@ 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 @@ -445,8 +445,8 @@ 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, @@ -474,15 +474,15 @@ 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 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. @@ -491,10 +491,10 @@ 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 @@ -512,8 +512,8 @@ 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'], ) @@ -535,15 +535,15 @@ 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 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": @@ -553,10 +553,10 @@ 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 @@ -578,8 +578,8 @@ 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, @@ -607,5 +607,5 @@ 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 diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_operations.py index 4a632b875a7a6..23362edb8dd9f 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_operations.py @@ -98,18 +98,18 @@ def build_list_by_resource_group_request( def build_get_request( subscription_id: str, resource_group_name: str, - name: str, + container_app_name: str, **kwargs: Any ) -> HttpRequest: api_version = kwargs.pop('api_version', "2022-03-01") # type: str accept = "application/json" # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{name}") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), - "name": _SERIALIZER.url("name", name, 'str'), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, 'str'), } _url = _format_url_section(_url, **path_format_arguments) @@ -134,7 +134,7 @@ def build_get_request( def build_create_or_update_request_initial( subscription_id: str, resource_group_name: str, - name: str, + container_app_name: str, *, json: JSONType = None, content: Any = None, @@ -145,11 +145,11 @@ def build_create_or_update_request_initial( accept = "application/json" # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{name}") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), - "name": _SERIALIZER.url("name", name, 'str'), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, 'str'), } _url = _format_url_section(_url, **path_format_arguments) @@ -178,18 +178,18 @@ def build_create_or_update_request_initial( def build_delete_request_initial( subscription_id: str, resource_group_name: str, - name: str, + container_app_name: str, **kwargs: Any ) -> HttpRequest: api_version = kwargs.pop('api_version', "2022-03-01") # type: str accept = "application/json" # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{name}") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), - "name": _SERIALIZER.url("name", name, 'str'), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, 'str'), } _url = _format_url_section(_url, **path_format_arguments) @@ -214,7 +214,7 @@ def build_delete_request_initial( def build_update_request_initial( subscription_id: str, resource_group_name: str, - name: str, + container_app_name: str, *, json: JSONType = None, content: Any = None, @@ -225,11 +225,11 @@ def build_update_request_initial( accept = "application/json" # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{name}") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), - "name": _SERIALIZER.url("name", name, 'str'), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, 'str'), } _url = _format_url_section(_url, **path_format_arguments) @@ -298,18 +298,18 @@ def build_list_custom_host_name_analysis_request( def build_list_secrets_request( subscription_id: str, resource_group_name: str, - name: str, + container_app_name: str, **kwargs: Any ) -> HttpRequest: api_version = kwargs.pop('api_version', "2022-03-01") # type: str accept = "application/json" # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{name}/listSecrets") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/listSecrets") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), - "name": _SERIALIZER.url("name", name, 'str'), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, 'str'), } _url = _format_url_section(_url, **path_format_arguments) @@ -511,7 +511,7 @@ def get_next(next_link=None): def get( self, resource_group_name: str, - name: str, + container_app_name: str, **kwargs: Any ) -> "_models.ContainerApp": """Get the properties of a Container App. @@ -520,8 +520,8 @@ def get( :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str - :param name: Name of the Container App. - :type name: str + :param container_app_name: Name of the Container App. + :type container_app_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: ContainerApp, or the result of cls(response) :rtype: ~azure.mgmt.appcontainers.models.ContainerApp @@ -539,7 +539,7 @@ def get( request = build_get_request( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, - name=name, + container_app_name=container_app_name, api_version=api_version, template_url=self.get.metadata['url'], ) @@ -565,13 +565,13 @@ def get( return deserialized - get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{name}"} # type: ignore + get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}"} # type: ignore def _create_or_update_initial( self, resource_group_name: str, - name: str, + container_app_name: str, container_app_envelope: "_models.ContainerApp", **kwargs: Any ) -> "_models.ContainerApp": @@ -589,7 +589,7 @@ def _create_or_update_initial( request = build_create_or_update_request_initial( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, - name=name, + container_app_name=container_app_name, api_version=api_version, content_type=content_type, json=_json, @@ -620,14 +620,14 @@ def _create_or_update_initial( return deserialized - _create_or_update_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{name}"} # type: ignore + _create_or_update_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}"} # type: ignore @distributed_trace def begin_create_or_update( self, resource_group_name: str, - name: str, + container_app_name: str, container_app_envelope: "_models.ContainerApp", **kwargs: Any ) -> LROPoller["_models.ContainerApp"]: @@ -637,8 +637,8 @@ def begin_create_or_update( :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str - :param name: Name of the Container App. - :type name: str + :param container_app_name: Name of the Container App. + :type container_app_name: str :param container_app_envelope: Properties used to create a container app. :type container_app_envelope: ~azure.mgmt.appcontainers.models.ContainerApp :keyword callable cls: A custom type or function that will be passed the direct response @@ -666,7 +666,7 @@ def begin_create_or_update( if cont_token is None: raw_result = self._create_or_update_initial( resource_group_name=resource_group_name, - name=name, + container_app_name=container_app_name, container_app_envelope=container_app_envelope, api_version=api_version, content_type=content_type, @@ -695,12 +695,12 @@ def get_long_running_output(pipeline_response): ) return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_create_or_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{name}"} # type: ignore + begin_create_or_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}"} # type: ignore def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, - name: str, + container_app_name: str, **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] @@ -715,7 +715,7 @@ def _delete_initial( # pylint: disable=inconsistent-return-statements request = build_delete_request_initial( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, - name=name, + container_app_name=container_app_name, api_version=api_version, template_url=self._delete_initial.metadata['url'], ) @@ -736,14 +736,14 @@ def _delete_initial( # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) - _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{name}"} # type: ignore + _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}"} # type: ignore @distributed_trace def begin_delete( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, - name: str, + container_app_name: str, **kwargs: Any ) -> LROPoller[None]: """Delete a Container App. @@ -752,8 +752,8 @@ def begin_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 name: Name of the Container App. - :type name: str + :param container_app_name: Name of the Container App. + :type container_app_name: str :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. Pass in False for this @@ -777,7 +777,7 @@ def begin_delete( # pylint: disable=inconsistent-return-statements if cont_token is None: raw_result = self._delete_initial( resource_group_name=resource_group_name, - name=name, + container_app_name=container_app_name, api_version=api_version, cls=lambda x,y,z: x, **kwargs @@ -801,12 +801,12 @@ def get_long_running_output(pipeline_response): ) return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{name}"} # type: ignore + begin_delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}"} # type: ignore def _update_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, - name: str, + container_app_name: str, container_app_envelope: "_models.ContainerApp", **kwargs: Any ) -> None: @@ -824,7 +824,7 @@ def _update_initial( # pylint: disable=inconsistent-return-statements request = build_update_request_initial( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, - name=name, + container_app_name=container_app_name, api_version=api_version, content_type=content_type, json=_json, @@ -847,14 +847,14 @@ def _update_initial( # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) - _update_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{name}"} # type: ignore + _update_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}"} # type: ignore @distributed_trace def begin_update( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, - name: str, + container_app_name: str, container_app_envelope: "_models.ContainerApp", **kwargs: Any ) -> LROPoller[None]: @@ -864,8 +864,8 @@ def begin_update( # 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 name: Name of the Container App. - :type name: str + :param container_app_name: Name of the Container App. + :type container_app_name: str :param container_app_envelope: Properties of a Container App that need to be updated. :type container_app_envelope: ~azure.mgmt.appcontainers.models.ContainerApp :keyword callable cls: A custom type or function that will be passed the direct response @@ -892,7 +892,7 @@ def begin_update( # pylint: disable=inconsistent-return-statements if cont_token is None: raw_result = self._update_initial( resource_group_name=resource_group_name, - name=name, + container_app_name=container_app_name, container_app_envelope=container_app_envelope, api_version=api_version, content_type=content_type, @@ -918,7 +918,7 @@ def get_long_running_output(pipeline_response): ) return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{name}"} # type: ignore + begin_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}"} # type: ignore @distributed_trace def list_custom_host_name_analysis( @@ -989,7 +989,7 @@ def list_custom_host_name_analysis( def list_secrets( self, resource_group_name: str, - name: str, + container_app_name: str, **kwargs: Any ) -> "_models.SecretsCollection": """List secrets for a container app. @@ -998,8 +998,8 @@ def list_secrets( :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str - :param name: Name of the Container App. - :type name: str + :param container_app_name: Name of the Container App. + :type container_app_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: SecretsCollection, or the result of cls(response) :rtype: ~azure.mgmt.appcontainers.models.SecretsCollection @@ -1017,7 +1017,7 @@ def list_secrets( request = build_list_secrets_request( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, - name=name, + container_app_name=container_app_name, api_version=api_version, template_url=self.list_secrets.metadata['url'], ) @@ -1043,5 +1043,5 @@ def list_secrets( return deserialized - list_secrets.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{name}/listSecrets"} # type: ignore + list_secrets.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/listSecrets"} # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_revision_replicas_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_revision_replicas_operations.py index a086c086c3478..ea265a1598bf1 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_revision_replicas_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_revision_replicas_operations.py @@ -30,20 +30,20 @@ def build_get_replica_request( resource_group_name: str, container_app_name: str, revision_name: str, - name: str, + replica_name: str, **kwargs: Any ) -> HttpRequest: api_version = kwargs.pop('api_version', "2022-03-01") # type: str accept = "application/json" # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/replicas/{name}") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/replicas/{replicaName}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, 'str'), "revisionName": _SERIALIZER.url("revision_name", revision_name, 'str'), - "name": _SERIALIZER.url("name", name, 'str'), + "replicaName": _SERIALIZER.url("replica_name", replica_name, 'str'), } _url = _format_url_section(_url, **path_format_arguments) @@ -130,7 +130,7 @@ 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. @@ -143,8 +143,8 @@ 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 @@ -164,7 +164,7 @@ 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'], ) @@ -190,7 +190,7 @@ 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 diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_revisions_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_revisions_operations.py index 0c1e98d9de882..680c301f55cd4 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_revisions_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_revisions_operations.py @@ -70,19 +70,19 @@ def build_get_revision_request( subscription_id: str, resource_group_name: str, container_app_name: str, - name: str, + revision_name: str, **kwargs: Any ) -> HttpRequest: api_version = kwargs.pop('api_version', "2022-03-01") # type: str accept = "application/json" # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{name}") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, 'str'), - "name": _SERIALIZER.url("name", name, 'str'), + "revisionName": _SERIALIZER.url("revision_name", revision_name, 'str'), } _url = _format_url_section(_url, **path_format_arguments) @@ -108,19 +108,19 @@ def build_activate_revision_request( subscription_id: str, resource_group_name: str, container_app_name: str, - name: str, + revision_name: str, **kwargs: Any ) -> HttpRequest: api_version = kwargs.pop('api_version', "2022-03-01") # type: str accept = "application/json" # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{name}/activate") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/activate") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, 'str'), - "name": _SERIALIZER.url("name", name, 'str'), + "revisionName": _SERIALIZER.url("revision_name", revision_name, 'str'), } _url = _format_url_section(_url, **path_format_arguments) @@ -146,19 +146,19 @@ def build_deactivate_revision_request( subscription_id: str, resource_group_name: str, container_app_name: str, - name: str, + revision_name: str, **kwargs: Any ) -> HttpRequest: api_version = kwargs.pop('api_version', "2022-03-01") # type: str accept = "application/json" # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{name}/deactivate") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/deactivate") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, 'str'), - "name": _SERIALIZER.url("name", name, 'str'), + "revisionName": _SERIALIZER.url("revision_name", revision_name, 'str'), } _url = _format_url_section(_url, **path_format_arguments) @@ -184,19 +184,19 @@ def build_restart_revision_request( subscription_id: str, resource_group_name: str, container_app_name: str, - name: str, + revision_name: str, **kwargs: Any ) -> HttpRequest: api_version = kwargs.pop('api_version', "2022-03-01") # type: str accept = "application/json" # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{name}/restart") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/restart") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, 'str'), - "name": _SERIALIZER.url("name", name, 'str'), + "revisionName": _SERIALIZER.url("revision_name", revision_name, 'str'), } _url = _format_url_section(_url, **path_format_arguments) @@ -333,7 +333,7 @@ def get_revision( self, resource_group_name: str, container_app_name: str, - name: str, + revision_name: str, **kwargs: Any ) -> "_models.Revision": """Get a revision of a Container App. @@ -344,8 +344,8 @@ def get_revision( :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 Revision. - :type name: str + :param revision_name: Name of the Container App Revision. + :type revision_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: Revision, or the result of cls(response) :rtype: ~azure.mgmt.appcontainers.models.Revision @@ -364,7 +364,7 @@ def get_revision( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, container_app_name=container_app_name, - name=name, + revision_name=revision_name, api_version=api_version, template_url=self.get_revision.metadata['url'], ) @@ -390,7 +390,7 @@ def get_revision( return deserialized - get_revision.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{name}"} # type: ignore + get_revision.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}"} # type: ignore @distributed_trace @@ -398,7 +398,7 @@ def activate_revision( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, container_app_name: str, - name: str, + revision_name: str, **kwargs: Any ) -> None: """Activates a revision for a Container App. @@ -409,8 +409,8 @@ def activate_revision( # 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 Revision. - :type name: str + :param revision_name: Name of the Container App Revision. + :type revision_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 @@ -429,7 +429,7 @@ def activate_revision( # 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, + revision_name=revision_name, api_version=api_version, template_url=self.activate_revision.metadata['url'], ) @@ -451,7 +451,7 @@ def activate_revision( # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) - activate_revision.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{name}/activate"} # type: ignore + activate_revision.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/activate"} # type: ignore @distributed_trace @@ -459,7 +459,7 @@ def deactivate_revision( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, container_app_name: str, - name: str, + revision_name: str, **kwargs: Any ) -> None: """Deactivates a revision for a Container App. @@ -470,8 +470,8 @@ def deactivate_revision( # 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 Revision. - :type name: str + :param revision_name: Name of the Container App Revision. + :type revision_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 @@ -490,7 +490,7 @@ def deactivate_revision( # 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, + revision_name=revision_name, api_version=api_version, template_url=self.deactivate_revision.metadata['url'], ) @@ -512,7 +512,7 @@ def deactivate_revision( # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) - deactivate_revision.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{name}/deactivate"} # type: ignore + deactivate_revision.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/deactivate"} # type: ignore @distributed_trace @@ -520,7 +520,7 @@ def restart_revision( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, container_app_name: str, - name: str, + revision_name: str, **kwargs: Any ) -> None: """Restarts a revision for a Container App. @@ -531,8 +531,8 @@ def restart_revision( # 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 Revision. - :type name: str + :param revision_name: Name of the Container App Revision. + :type revision_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 @@ -551,7 +551,7 @@ def restart_revision( # 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, + revision_name=revision_name, api_version=api_version, template_url=self.restart_revision.metadata['url'], ) @@ -573,5 +573,5 @@ def restart_revision( # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) - restart_revision.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{name}/restart"} # type: ignore + restart_revision.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/restart"} # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_dapr_components_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_dapr_components_operations.py index 19927a386a1f2..3e466039fbfb4 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_dapr_components_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_dapr_components_operations.py @@ -67,19 +67,19 @@ def build_get_request( subscription_id: str, resource_group_name: str, environment_name: str, - name: str, + component_name: str, **kwargs: Any ) -> HttpRequest: api_version = kwargs.pop('api_version', "2022-03-01") # type: str accept = "application/json" # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{name}") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), "environmentName": _SERIALIZER.url("environment_name", environment_name, 'str'), - "name": _SERIALIZER.url("name", name, 'str'), + "componentName": _SERIALIZER.url("component_name", component_name, 'str'), } _url = _format_url_section(_url, **path_format_arguments) @@ -105,7 +105,7 @@ def build_create_or_update_request( subscription_id: str, resource_group_name: str, environment_name: str, - name: str, + component_name: str, *, json: JSONType = None, content: Any = None, @@ -116,12 +116,12 @@ def build_create_or_update_request( accept = "application/json" # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{name}") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), "environmentName": _SERIALIZER.url("environment_name", environment_name, 'str'), - "name": _SERIALIZER.url("name", name, 'str'), + "componentName": _SERIALIZER.url("component_name", component_name, 'str'), } _url = _format_url_section(_url, **path_format_arguments) @@ -151,19 +151,19 @@ def build_delete_request( subscription_id: str, resource_group_name: str, environment_name: str, - name: str, + component_name: str, **kwargs: Any ) -> HttpRequest: api_version = kwargs.pop('api_version', "2022-03-01") # type: str accept = "application/json" # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{name}") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), "environmentName": _SERIALIZER.url("environment_name", environment_name, 'str'), - "name": _SERIALIZER.url("name", name, 'str'), + "componentName": _SERIALIZER.url("component_name", component_name, 'str'), } _url = _format_url_section(_url, **path_format_arguments) @@ -189,19 +189,19 @@ def build_list_secrets_request( subscription_id: str, resource_group_name: str, environment_name: str, - name: str, + component_name: str, **kwargs: Any ) -> HttpRequest: api_version = kwargs.pop('api_version', "2022-03-01") # type: str accept = "application/json" # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{name}/listSecrets") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}/listSecrets") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), "environmentName": _SERIALIZER.url("environment_name", environment_name, 'str'), - "name": _SERIALIZER.url("name", name, 'str'), + "componentName": _SERIALIZER.url("component_name", component_name, 'str'), } _url = _format_url_section(_url, **path_format_arguments) @@ -334,7 +334,7 @@ def get( self, resource_group_name: str, environment_name: str, - name: str, + component_name: str, **kwargs: Any ) -> "_models.DaprComponent": """Get a dapr component. @@ -345,8 +345,8 @@ def get( :type resource_group_name: str :param environment_name: Name of the Managed Environment. :type environment_name: str - :param name: Name of the Dapr Component. - :type name: str + :param component_name: Name of the Dapr Component. + :type component_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: DaprComponent, or the result of cls(response) :rtype: ~azure.mgmt.appcontainers.models.DaprComponent @@ -365,7 +365,7 @@ def get( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, environment_name=environment_name, - name=name, + component_name=component_name, api_version=api_version, template_url=self.get.metadata['url'], ) @@ -391,7 +391,7 @@ def get( return deserialized - get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{name}"} # type: ignore + get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}"} # type: ignore @distributed_trace @@ -399,7 +399,7 @@ def create_or_update( self, resource_group_name: str, environment_name: str, - name: str, + component_name: str, dapr_component_envelope: "_models.DaprComponent", **kwargs: Any ) -> "_models.DaprComponent": @@ -411,8 +411,8 @@ def create_or_update( :type resource_group_name: str :param environment_name: Name of the Managed Environment. :type environment_name: str - :param name: Name of the Dapr Component. - :type name: str + :param component_name: Name of the Dapr Component. + :type component_name: str :param dapr_component_envelope: Configuration details of the Dapr Component. :type dapr_component_envelope: ~azure.mgmt.appcontainers.models.DaprComponent :keyword callable cls: A custom type or function that will be passed the direct response @@ -435,7 +435,7 @@ def create_or_update( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, environment_name=environment_name, - name=name, + component_name=component_name, api_version=api_version, content_type=content_type, json=_json, @@ -463,7 +463,7 @@ def create_or_update( return deserialized - create_or_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{name}"} # type: ignore + create_or_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}"} # type: ignore @distributed_trace @@ -471,7 +471,7 @@ def delete( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, environment_name: str, - name: str, + component_name: str, **kwargs: Any ) -> None: """Delete a Dapr Component. @@ -482,8 +482,8 @@ def delete( # pylint: disable=inconsistent-return-statements :type resource_group_name: str :param environment_name: Name of the Managed Environment. :type environment_name: str - :param name: Name of the Dapr Component. - :type name: str + :param component_name: Name of the Dapr Component. + :type component_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 @@ -502,7 +502,7 @@ def delete( # pylint: disable=inconsistent-return-statements subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, environment_name=environment_name, - name=name, + component_name=component_name, api_version=api_version, template_url=self.delete.metadata['url'], ) @@ -524,7 +524,7 @@ 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/{environmentName}/daprComponents/{name}"} # type: ignore + delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}"} # type: ignore @distributed_trace @@ -532,7 +532,7 @@ def list_secrets( self, resource_group_name: str, environment_name: str, - name: str, + component_name: str, **kwargs: Any ) -> "_models.DaprSecretsCollection": """List secrets for a dapr component. @@ -543,8 +543,8 @@ def list_secrets( :type resource_group_name: str :param environment_name: Name of the Managed Environment. :type environment_name: str - :param name: Name of the Dapr Component. - :type name: str + :param component_name: Name of the Dapr Component. + :type component_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: DaprSecretsCollection, or the result of cls(response) :rtype: ~azure.mgmt.appcontainers.models.DaprSecretsCollection @@ -563,7 +563,7 @@ def list_secrets( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, environment_name=environment_name, - name=name, + component_name=component_name, api_version=api_version, template_url=self.list_secrets.metadata['url'], ) @@ -589,5 +589,5 @@ def list_secrets( return deserialized - list_secrets.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{name}/listSecrets"} # type: ignore + list_secrets.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}/listSecrets"} # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environments_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environments_operations.py index 9c5f63340d6d7..ff89f77a69298 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environments_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environments_operations.py @@ -98,18 +98,18 @@ def build_list_by_resource_group_request( def build_get_request( subscription_id: str, resource_group_name: str, - name: str, + environment_name: str, **kwargs: Any ) -> HttpRequest: api_version = kwargs.pop('api_version', "2022-03-01") # type: str accept = "application/json" # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{name}") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), - "name": _SERIALIZER.url("name", name, 'str'), + "environmentName": _SERIALIZER.url("environment_name", environment_name, 'str'), } _url = _format_url_section(_url, **path_format_arguments) @@ -134,7 +134,7 @@ def build_get_request( def build_create_or_update_request_initial( subscription_id: str, resource_group_name: str, - name: str, + environment_name: str, *, json: JSONType = None, content: Any = None, @@ -145,11 +145,11 @@ def build_create_or_update_request_initial( accept = "application/json" # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{name}") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), - "name": _SERIALIZER.url("name", name, 'str'), + "environmentName": _SERIALIZER.url("environment_name", environment_name, 'str'), } _url = _format_url_section(_url, **path_format_arguments) @@ -178,18 +178,18 @@ def build_create_or_update_request_initial( def build_delete_request_initial( subscription_id: str, resource_group_name: str, - name: str, + environment_name: str, **kwargs: Any ) -> HttpRequest: api_version = kwargs.pop('api_version', "2022-03-01") # type: str accept = "application/json" # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{name}") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), - "name": _SERIALIZER.url("name", name, 'str'), + "environmentName": _SERIALIZER.url("environment_name", environment_name, 'str'), } _url = _format_url_section(_url, **path_format_arguments) @@ -214,7 +214,7 @@ def build_delete_request_initial( def build_update_request_initial( subscription_id: str, resource_group_name: str, - name: str, + environment_name: str, *, json: JSONType = None, content: Any = None, @@ -225,11 +225,11 @@ def build_update_request_initial( accept = "application/json" # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{name}") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), - "name": _SERIALIZER.url("name", name, 'str'), + "environmentName": _SERIALIZER.url("environment_name", environment_name, 'str'), } _url = _format_url_section(_url, **path_format_arguments) @@ -437,7 +437,7 @@ def get_next(next_link=None): def get( self, resource_group_name: str, - name: str, + environment_name: str, **kwargs: Any ) -> "_models.ManagedEnvironment": """Get the properties of a Managed Environment. @@ -446,8 +446,8 @@ def get( :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str - :param name: Name of the Environment. - :type name: str + :param environment_name: Name of the Environment. + :type environment_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: ManagedEnvironment, or the result of cls(response) :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironment @@ -465,7 +465,7 @@ def get( request = build_get_request( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, - name=name, + environment_name=environment_name, api_version=api_version, template_url=self.get.metadata['url'], ) @@ -491,13 +491,13 @@ def get( return deserialized - get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{name}"} # type: ignore + get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}"} # type: ignore def _create_or_update_initial( self, resource_group_name: str, - name: str, + environment_name: str, environment_envelope: "_models.ManagedEnvironment", **kwargs: Any ) -> "_models.ManagedEnvironment": @@ -515,7 +515,7 @@ def _create_or_update_initial( request = build_create_or_update_request_initial( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, - name=name, + environment_name=environment_name, api_version=api_version, content_type=content_type, json=_json, @@ -546,14 +546,14 @@ def _create_or_update_initial( return deserialized - _create_or_update_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{name}"} # type: ignore + _create_or_update_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}"} # type: ignore @distributed_trace def begin_create_or_update( self, resource_group_name: str, - name: str, + environment_name: str, environment_envelope: "_models.ManagedEnvironment", **kwargs: Any ) -> LROPoller["_models.ManagedEnvironment"]: @@ -563,8 +563,8 @@ def begin_create_or_update( :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str - :param name: Name of the Environment. - :type name: str + :param environment_name: Name of the Environment. + :type environment_name: str :param environment_envelope: Configuration details of the Environment. :type environment_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironment :keyword callable cls: A custom type or function that will be passed the direct response @@ -592,7 +592,7 @@ def begin_create_or_update( if cont_token is None: raw_result = self._create_or_update_initial( resource_group_name=resource_group_name, - name=name, + environment_name=environment_name, environment_envelope=environment_envelope, api_version=api_version, content_type=content_type, @@ -621,12 +621,12 @@ def get_long_running_output(pipeline_response): ) return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_create_or_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{name}"} # type: ignore + begin_create_or_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}"} # type: ignore def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, - name: str, + environment_name: str, **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] @@ -641,7 +641,7 @@ def _delete_initial( # pylint: disable=inconsistent-return-statements request = build_delete_request_initial( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, - name=name, + environment_name=environment_name, api_version=api_version, template_url=self._delete_initial.metadata['url'], ) @@ -662,14 +662,14 @@ def _delete_initial( # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) - _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{name}"} # type: ignore + _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}"} # type: ignore @distributed_trace def begin_delete( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, - name: str, + environment_name: str, **kwargs: Any ) -> LROPoller[None]: """Delete a Managed Environment. @@ -678,8 +678,8 @@ def begin_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 name: Name of the Environment. - :type name: str + :param environment_name: Name of the Environment. + :type environment_name: str :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. Pass in False for this @@ -703,7 +703,7 @@ def begin_delete( # pylint: disable=inconsistent-return-statements if cont_token is None: raw_result = self._delete_initial( resource_group_name=resource_group_name, - name=name, + environment_name=environment_name, api_version=api_version, cls=lambda x,y,z: x, **kwargs @@ -727,12 +727,12 @@ def get_long_running_output(pipeline_response): ) return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{name}"} # type: ignore + begin_delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}"} # type: ignore def _update_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, - name: str, + environment_name: str, environment_envelope: "_models.ManagedEnvironment", **kwargs: Any ) -> None: @@ -750,7 +750,7 @@ def _update_initial( # pylint: disable=inconsistent-return-statements request = build_update_request_initial( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, - name=name, + environment_name=environment_name, api_version=api_version, content_type=content_type, json=_json, @@ -773,14 +773,14 @@ def _update_initial( # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) - _update_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{name}"} # type: ignore + _update_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}"} # type: ignore @distributed_trace def begin_update( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, - name: str, + environment_name: str, environment_envelope: "_models.ManagedEnvironment", **kwargs: Any ) -> LROPoller[None]: @@ -790,8 +790,8 @@ def begin_update( # 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 name: Name of the Environment. - :type name: str + :param environment_name: Name of the Environment. + :type environment_name: str :param environment_envelope: Configuration details of the Environment. :type environment_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironment :keyword callable cls: A custom type or function that will be passed the direct response @@ -818,7 +818,7 @@ def begin_update( # pylint: disable=inconsistent-return-statements if cont_token is None: raw_result = self._update_initial( resource_group_name=resource_group_name, - name=name, + environment_name=environment_name, environment_envelope=environment_envelope, api_version=api_version, content_type=content_type, @@ -844,4 +844,4 @@ def get_long_running_output(pipeline_response): ) return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{name}"} # type: ignore + begin_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}"} # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environments_storages_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environments_storages_operations.py index 1cbf9eba9bf4a..89642445aa0b0 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environments_storages_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environments_storages_operations.py @@ -29,18 +29,18 @@ def build_list_request( subscription_id: str, resource_group_name: str, - env_name: str, + environment_name: str, **kwargs: Any ) -> HttpRequest: api_version = kwargs.pop('api_version', "2022-03-01") # type: str accept = "application/json" # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{envName}/storages") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), - "envName": _SERIALIZER.url("env_name", env_name, 'str'), + "environmentName": _SERIALIZER.url("environment_name", environment_name, 'str'), } _url = _format_url_section(_url, **path_format_arguments) @@ -65,20 +65,20 @@ def build_list_request( def build_get_request( subscription_id: str, resource_group_name: str, - env_name: str, - name: str, + environment_name: str, + storage_name: str, **kwargs: Any ) -> HttpRequest: api_version = kwargs.pop('api_version', "2022-03-01") # type: str accept = "application/json" # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{envName}/storages/{name}") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages/{storageName}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), - "envName": _SERIALIZER.url("env_name", env_name, 'str'), - "name": _SERIALIZER.url("name", name, 'str'), + "environmentName": _SERIALIZER.url("environment_name", environment_name, 'str'), + "storageName": _SERIALIZER.url("storage_name", storage_name, 'str'), } _url = _format_url_section(_url, **path_format_arguments) @@ -103,8 +103,8 @@ def build_get_request( def build_create_or_update_request( subscription_id: str, resource_group_name: str, - env_name: str, - name: str, + environment_name: str, + storage_name: str, *, json: JSONType = None, content: Any = None, @@ -115,12 +115,12 @@ def build_create_or_update_request( accept = "application/json" # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{envName}/storages/{name}") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages/{storageName}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), - "envName": _SERIALIZER.url("env_name", env_name, 'str'), - "name": _SERIALIZER.url("name", name, 'str'), + "environmentName": _SERIALIZER.url("environment_name", environment_name, 'str'), + "storageName": _SERIALIZER.url("storage_name", storage_name, 'str'), } _url = _format_url_section(_url, **path_format_arguments) @@ -149,20 +149,20 @@ def build_create_or_update_request( def build_delete_request( subscription_id: str, resource_group_name: str, - env_name: str, - name: str, + environment_name: str, + storage_name: str, **kwargs: Any ) -> HttpRequest: api_version = kwargs.pop('api_version', "2022-03-01") # type: str accept = "application/json" # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{envName}/storages/{name}") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages/{storageName}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), - "envName": _SERIALIZER.url("env_name", env_name, 'str'), - "name": _SERIALIZER.url("name", name, 'str'), + "environmentName": _SERIALIZER.url("environment_name", environment_name, 'str'), + "storageName": _SERIALIZER.url("storage_name", storage_name, 'str'), } _url = _format_url_section(_url, **path_format_arguments) @@ -209,7 +209,7 @@ def __init__(self, client, config, serializer, deserializer): def list( self, resource_group_name: str, - env_name: str, + environment_name: str, **kwargs: Any ) -> "_models.ManagedEnvironmentStoragesCollection": """Get all storages for a managedEnvironment. @@ -218,8 +218,8 @@ def list( :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str - :param env_name: Name of the Environment. - :type env_name: str + :param environment_name: Name of the Environment. + :type environment_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: ManagedEnvironmentStoragesCollection, or the result of cls(response) :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStoragesCollection @@ -237,7 +237,7 @@ def list( request = build_list_request( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, - env_name=env_name, + environment_name=environment_name, api_version=api_version, template_url=self.list.metadata['url'], ) @@ -263,15 +263,15 @@ def list( return deserialized - list.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{envName}/storages"} # type: ignore + list.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages"} # type: ignore @distributed_trace def get( self, resource_group_name: str, - env_name: str, - name: str, + environment_name: str, + storage_name: str, **kwargs: Any ) -> "_models.ManagedEnvironmentStorage": """Get storage for a managedEnvironment. @@ -280,10 +280,10 @@ def get( :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str - :param env_name: Name of the Environment. - :type env_name: str - :param name: Name of the storage. - :type name: str + :param environment_name: Name of the Environment. + :type environment_name: str + :param storage_name: Name of the storage. + :type storage_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: ManagedEnvironmentStorage, or the result of cls(response) :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStorage @@ -301,8 +301,8 @@ def get( request = build_get_request( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, - env_name=env_name, - name=name, + environment_name=environment_name, + storage_name=storage_name, api_version=api_version, template_url=self.get.metadata['url'], ) @@ -328,15 +328,15 @@ def get( return deserialized - get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{envName}/storages/{name}"} # type: ignore + get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages/{storageName}"} # type: ignore @distributed_trace def create_or_update( self, resource_group_name: str, - env_name: str, - name: str, + environment_name: str, + storage_name: str, storage_envelope: "_models.ManagedEnvironmentStorage", **kwargs: Any ) -> "_models.ManagedEnvironmentStorage": @@ -346,10 +346,10 @@ 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 env_name: Name of the Environment. - :type env_name: str - :param name: Name of the storage. - :type name: str + :param environment_name: Name of the Environment. + :type environment_name: str + :param storage_name: Name of the storage. + :type storage_name: str :param storage_envelope: Configuration details of storage. :type storage_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStorage :keyword callable cls: A custom type or function that will be passed the direct response @@ -371,8 +371,8 @@ def create_or_update( request = build_create_or_update_request( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, - env_name=env_name, - name=name, + environment_name=environment_name, + storage_name=storage_name, api_version=api_version, content_type=content_type, json=_json, @@ -400,15 +400,15 @@ def create_or_update( return deserialized - create_or_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{envName}/storages/{name}"} # type: ignore + create_or_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages/{storageName}"} # type: ignore @distributed_trace def delete( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, - env_name: str, - name: str, + environment_name: str, + storage_name: str, **kwargs: Any ) -> None: """Delete storage for a managedEnvironment. @@ -417,10 +417,10 @@ 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 env_name: Name of the Environment. - :type env_name: str - :param name: Name of the storage. - :type name: str + :param environment_name: Name of the Environment. + :type environment_name: str + :param storage_name: Name of the storage. + :type storage_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 @@ -438,8 +438,8 @@ def delete( # pylint: disable=inconsistent-return-statements request = build_delete_request( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, - env_name=env_name, - name=name, + environment_name=environment_name, + storage_name=storage_name, api_version=api_version, template_url=self.delete.metadata['url'], ) @@ -461,5 +461,5 @@ 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/{envName}/storages/{name}"} # type: ignore + delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages/{storageName}"} # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_namespaces_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_namespaces_operations.py index 0c56116c57053..59f158efe0d75 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_namespaces_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_namespaces_operations.py @@ -29,7 +29,7 @@ def build_check_name_availability_request( subscription_id: str, resource_group_name: str, - managed_environment_name: str, + environment_name: str, *, json: JSONType = None, content: Any = None, @@ -40,11 +40,11 @@ def build_check_name_availability_request( accept = "application/json" # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}/checkNameAvailability") # pylint: disable=line-too-long + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/checkNameAvailability") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), - "managedEnvironmentName": _SERIALIZER.url("managed_environment_name", managed_environment_name, 'str'), + "environmentName": _SERIALIZER.url("environment_name", environment_name, 'str'), } _url = _format_url_section(_url, **path_format_arguments) @@ -95,7 +95,7 @@ def __init__(self, client, config, serializer, deserializer): def check_name_availability( self, resource_group_name: str, - managed_environment_name: str, + environment_name: str, check_name_availability_request: "_models.CheckNameAvailabilityRequest", **kwargs: Any ) -> "_models.CheckNameAvailabilityResponse": @@ -105,8 +105,8 @@ def check_name_availability( :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 :param check_name_availability_request: The check name availability request. :type check_name_availability_request: ~azure.mgmt.appcontainers.models.CheckNameAvailabilityRequest @@ -129,7 +129,7 @@ def check_name_availability( request = build_check_name_availability_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, content_type=content_type, json=_json, @@ -157,5 +157,5 @@ def check_name_availability( return deserialized - check_name_availability.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}/checkNameAvailability"} # type: ignore + check_name_availability.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/checkNameAvailability"} # type: ignore