diff --git a/sdk/logz/azure-mgmt-logz/CHANGELOG.md b/sdk/logz/azure-mgmt-logz/CHANGELOG.md index 38915b2ad996..f03cd0b0ab63 100644 --- a/sdk/logz/azure-mgmt-logz/CHANGELOG.md +++ b/sdk/logz/azure-mgmt-logz/CHANGELOG.md @@ -1,5 +1,9 @@ # Release History +## 1.0.0 (2021-09-06) + + - GA release + ## 1.0.0b1 (2021-06-02) * Initial Release diff --git a/sdk/logz/azure-mgmt-logz/_meta.json b/sdk/logz/azure-mgmt-logz/_meta.json index 8f2bc61e2aca..4eaeea86761c 100644 --- a/sdk/logz/azure-mgmt-logz/_meta.json +++ b/sdk/logz/azure-mgmt-logz/_meta.json @@ -1,11 +1,11 @@ { - "autorest": "3.4.2", + "autorest": "3.4.5", "use": [ - "@autorest/python@5.8.0", - "@autorest/modelerfour@4.19.1" + "@autorest/python@5.8.4", + "@autorest/modelerfour@4.19.2" ], - "commit": "0142a08c953656b1a172e1c274d9c8334fff4c65", + "commit": "ca53ed5bcdb43c974a04234fcd27bcfad74d15fa", "repository_url": "https://github.com/Azure/azure-rest-api-specs", - "autorest_command": "autorest specification/logz/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.0 --use=@autorest/modelerfour@4.19.1 --version=3.4.2", + "autorest_command": "autorest specification/logz/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.4 --use=@autorest/modelerfour@4.19.2 --version=3.4.5", "readme": "specification/logz/resource-manager/readme.md" } \ No newline at end of file diff --git a/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/_configuration.py b/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/_configuration.py index 68f9c71936c9..d2ad1bd702b8 100644 --- a/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/_configuration.py +++ b/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/_configuration.py @@ -48,7 +48,7 @@ def __init__( self.credential = credential self.subscription_id = subscription_id - self.api_version = "2020-10-01-preview" + self.api_version = "2020-10-01" self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) kwargs.setdefault('sdk_moniker', 'mgmt-logz/{}'.format(VERSION)) self._configure(**kwargs) diff --git a/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/_metadata.json b/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/_metadata.json index ef2d897672f8..227b84b4549e 100644 --- a/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/_metadata.json +++ b/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/_metadata.json @@ -1,6 +1,6 @@ { - "chosen_version": "2020-10-01-preview", - "total_api_version_list": ["2020-10-01-preview"], + "chosen_version": "2020-10-01", + "total_api_version_list": ["2020-10-01"], "client": { "name": "MicrosoftLogz", "filename": "_microsoft_logz", diff --git a/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/_version.py b/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/_version.py index e5754a47ce68..c47f66669f1b 100644 --- a/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/_version.py +++ b/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "1.0.0b1" +VERSION = "1.0.0" diff --git a/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/aio/_configuration.py b/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/aio/_configuration.py index 72811580bc81..d8326f8e6e5a 100644 --- a/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/aio/_configuration.py +++ b/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/aio/_configuration.py @@ -45,7 +45,7 @@ def __init__( self.credential = credential self.subscription_id = subscription_id - self.api_version = "2020-10-01-preview" + self.api_version = "2020-10-01" self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) kwargs.setdefault('sdk_moniker', 'mgmt-logz/{}'.format(VERSION)) self._configure(**kwargs) diff --git a/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/aio/operations/_monitor_operations.py b/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/aio/operations/_monitor_operations.py index 31387d41f14e..162ecce08f2f 100644 --- a/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/aio/operations/_monitor_operations.py +++ b/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/aio/operations/_monitor_operations.py @@ -66,14 +66,14 @@ async def vm_host_payload( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" # Construct URL url = self.vm_host_payload.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -131,7 +131,7 @@ def list_vm_host_update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" content_type = "application/json" accept = "application/json" @@ -146,7 +146,7 @@ def prepare_request(next_link=None): url = self.list_vm_host_update.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -222,7 +222,7 @@ def list_vm_hosts( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" def prepare_request(next_link=None): @@ -235,7 +235,7 @@ def prepare_request(next_link=None): url = self.list_vm_hosts.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) diff --git a/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/aio/operations/_monitors_operations.py b/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/aio/operations/_monitors_operations.py index c02afcdf91da..56b5d482a305 100644 --- a/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/aio/operations/_monitors_operations.py +++ b/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/aio/operations/_monitors_operations.py @@ -67,7 +67,7 @@ def list_monitored_resources( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" def prepare_request(next_link=None): @@ -80,7 +80,7 @@ def prepare_request(next_link=None): url = self.list_monitored_resources.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -138,7 +138,7 @@ def list_by_subscription( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" def prepare_request(next_link=None): @@ -210,7 +210,7 @@ def list_by_resource_group( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" def prepare_request(next_link=None): @@ -223,7 +223,7 @@ def prepare_request(next_link=None): url = self.list_by_resource_group.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters @@ -286,14 +286,14 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -335,7 +335,7 @@ async def _create_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -343,7 +343,7 @@ async def _create_initial( url = self._create_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -391,9 +391,9 @@ async def begin_create( body: Optional["_models.LogzMonitorResource"] = None, **kwargs: Any ) -> AsyncLROPoller["_models.LogzMonitorResource"]: - """Create a monitor resource. + """Create a monitor resource. This create operation can take upto 10 minutes to complete. - Create a monitor resource. + Create a monitor resource. This create operation can take upto 10 minutes to complete. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str @@ -439,7 +439,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), } @@ -484,7 +484,7 @@ async def update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -492,7 +492,7 @@ async def update( url = self.update.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -540,14 +540,14 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -584,9 +584,9 @@ async def begin_delete( monitor_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: - """Delete a monitor resource. + """Delete a monitor resource. This delete operation can take upto 10 minutes to complete. - Delete a monitor resource. + Delete a monitor resource. This delete operation can take upto 10 minutes to complete. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str @@ -626,7 +626,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), } @@ -672,7 +672,7 @@ def list_user_roles( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" content_type = "application/json" accept = "application/json" @@ -687,7 +687,7 @@ def prepare_request(next_link=None): url = self.list_user_roles.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) diff --git a/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/aio/operations/_single_sign_on_operations.py b/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/aio/operations/_single_sign_on_operations.py index 4b6f543b2cb4..8e7db19a2519 100644 --- a/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/aio/operations/_single_sign_on_operations.py +++ b/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/aio/operations/_single_sign_on_operations.py @@ -67,7 +67,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" def prepare_request(next_link=None): @@ -80,7 +80,7 @@ def prepare_request(next_link=None): url = self.list.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -133,7 +133,7 @@ async def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -141,7 +141,7 @@ async def _create_or_update_initial( url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'configurationName': self._serialize.url("configuration_name", configuration_name, 'str'), } @@ -191,9 +191,10 @@ async def begin_create_or_update( body: Optional["_models.LogzSingleSignOnResource"] = None, **kwargs: Any ) -> AsyncLROPoller["_models.LogzSingleSignOnResource"]: - """Configures single-sign-on for this resource. + """Configures single-sign-on for this resource. This operation can take upto 10 minutes to complete. - Configures single-sign-on for this resource. + Configures single-sign-on for this resource. This operation can take upto 10 minutes to + complete. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str @@ -242,7 +243,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'configurationName': self._serialize.url("configuration_name", configuration_name, 'str'), } @@ -288,14 +289,14 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'configurationName': self._serialize.url("configuration_name", configuration_name, 'str'), } diff --git a/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/aio/operations/_sub_account_operations.py b/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/aio/operations/_sub_account_operations.py index 609a2207b9bc..94f10ba11fa8 100644 --- a/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/aio/operations/_sub_account_operations.py +++ b/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/aio/operations/_sub_account_operations.py @@ -67,7 +67,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" def prepare_request(next_link=None): @@ -80,7 +80,7 @@ def prepare_request(next_link=None): url = self.list.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -133,7 +133,7 @@ async def _create_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -141,7 +141,7 @@ async def _create_initial( url = self._create_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'subAccountName': self._serialize.url("sub_account_name", sub_account_name, 'str'), } @@ -191,9 +191,10 @@ async def begin_create( body: Optional["_models.LogzMonitorResource"] = None, **kwargs: Any ) -> AsyncLROPoller["_models.LogzMonitorResource"]: - """Create sub account under a given monitor resource. + """Create sub account under a given monitor resource. This create operation can take upto 10 minutes to complete. - Create sub account under a given monitor resource. + Create sub account under a given monitor resource. This create operation can take upto 10 + minutes to complete. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str @@ -242,7 +243,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'subAccountName': self._serialize.url("sub_account_name", sub_account_name, 'str'), } @@ -288,14 +289,14 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'subAccountName': self._serialize.url("sub_account_name", sub_account_name, 'str'), } @@ -338,14 +339,14 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'subAccountName': self._serialize.url("sub_account_name", sub_account_name, 'str'), } @@ -384,9 +385,9 @@ async def begin_delete( sub_account_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: - """Delete a sub account resource. + """Delete a sub account resource. This delete operation can take upto 10 minutes to complete. - Delete a sub account resource. + Delete a sub account resource. This delete operation can take upto 10 minutes to complete. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str @@ -429,7 +430,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'subAccountName': self._serialize.url("sub_account_name", sub_account_name, 'str'), } @@ -478,7 +479,7 @@ async def update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -486,7 +487,7 @@ async def update( url = self.update.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'subAccountName': self._serialize.url("sub_account_name", sub_account_name, 'str'), } @@ -551,7 +552,7 @@ def list_monitored_resources( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" def prepare_request(next_link=None): @@ -564,7 +565,7 @@ def prepare_request(next_link=None): url = self.list_monitored_resources.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'subAccountName': self._serialize.url("sub_account_name", sub_account_name, 'str'), } @@ -632,14 +633,14 @@ async def vm_host_payload( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" # Construct URL url = self.vm_host_payload.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'subAccountName': self._serialize.url("sub_account_name", sub_account_name, 'str'), } @@ -701,7 +702,7 @@ def list_vm_host_update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" content_type = "application/json" accept = "application/json" @@ -716,7 +717,7 @@ def prepare_request(next_link=None): url = self.list_vm_host_update.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'subAccountName': self._serialize.url("sub_account_name", sub_account_name, 'str'), } @@ -796,7 +797,7 @@ def list_vm_hosts( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" def prepare_request(next_link=None): @@ -809,7 +810,7 @@ def prepare_request(next_link=None): url = self.list_vm_hosts.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'subAccountName': self._serialize.url("sub_account_name", sub_account_name, 'str'), } diff --git a/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/aio/operations/_sub_account_tag_rules_operations.py b/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/aio/operations/_sub_account_tag_rules_operations.py index 05e7e5cbad3a..62c6d307e3ee 100644 --- a/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/aio/operations/_sub_account_tag_rules_operations.py +++ b/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/aio/operations/_sub_account_tag_rules_operations.py @@ -68,7 +68,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" def prepare_request(next_link=None): @@ -81,7 +81,7 @@ def prepare_request(next_link=None): url = self.list.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'subAccountName': self._serialize.url("sub_account_name", sub_account_name, 'str'), } @@ -155,7 +155,7 @@ async def create_or_update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -163,7 +163,7 @@ async def create_or_update( url = self.create_or_update.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'subAccountName': self._serialize.url("sub_account_name", sub_account_name, 'str'), 'ruleSetName': self._serialize.url("rule_set_name", rule_set_name, 'str'), @@ -232,14 +232,14 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'subAccountName': self._serialize.url("sub_account_name", sub_account_name, 'str'), 'ruleSetName': self._serialize.url("rule_set_name", rule_set_name, 'str'), @@ -301,14 +301,14 @@ async def delete( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" # Construct URL url = self.delete.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'subAccountName': self._serialize.url("sub_account_name", sub_account_name, 'str'), 'ruleSetName': self._serialize.url("rule_set_name", rule_set_name, 'str'), diff --git a/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/aio/operations/_tag_rules_operations.py b/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/aio/operations/_tag_rules_operations.py index a4dd48101394..8b601798141f 100644 --- a/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/aio/operations/_tag_rules_operations.py +++ b/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/aio/operations/_tag_rules_operations.py @@ -65,7 +65,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" def prepare_request(next_link=None): @@ -78,7 +78,7 @@ def prepare_request(next_link=None): url = self.list.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -148,7 +148,7 @@ async def create_or_update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -156,7 +156,7 @@ async def create_or_update( url = self.create_or_update.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'ruleSetName': self._serialize.url("rule_set_name", rule_set_name, 'str'), } @@ -221,14 +221,14 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'ruleSetName': self._serialize.url("rule_set_name", rule_set_name, 'str'), } @@ -286,14 +286,14 @@ async def delete( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" # Construct URL url = self.delete.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'ruleSetName': self._serialize.url("rule_set_name", rule_set_name, 'str'), } diff --git a/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/models/_models.py b/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/models/_models.py index 3f893c547007..06dc00e1fc1e 100644 --- a/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/models/_models.py +++ b/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/models/_models.py @@ -635,11 +635,11 @@ class MonitorProperties(msrest.serialization.Model): "Canceled", "Deleted", "NotSpecified". :vartype provisioning_state: str or ~microsoft_logz.models.ProvisioningState :param monitoring_status: Flag specifying if the resource monitoring is enabled or disabled. - Possible values include: "Enabled", "Disabled". + Possible values include: "Enabled", "Disabled". Default value: "Enabled". :type monitoring_status: str or ~microsoft_logz.models.MonitoringStatus :param marketplace_subscription_status: Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state. Possible - values include: "Active", "Suspended". + values include: "Active", "Suspended". Default value: "Active". :type marketplace_subscription_status: str or ~microsoft_logz.models.MarketplaceSubscriptionStatus :param logz_organization_properties: @@ -677,8 +677,8 @@ def __init__( ): super(MonitorProperties, self).__init__(**kwargs) self.provisioning_state = None - self.monitoring_status = kwargs.get('monitoring_status', None) - self.marketplace_subscription_status = kwargs.get('marketplace_subscription_status', None) + self.monitoring_status = kwargs.get('monitoring_status', "Enabled") + self.marketplace_subscription_status = kwargs.get('marketplace_subscription_status', "Active") self.logz_organization_properties = kwargs.get('logz_organization_properties', None) self.user_info = kwargs.get('user_info', None) self.plan_data = kwargs.get('plan_data', None) @@ -690,7 +690,7 @@ class MonitorUpdateProperties(msrest.serialization.Model): """The set of properties that can be update in a PATCH request to a monitor resource. :param monitoring_status: Flag specifying if the resource monitoring is enabled or disabled. - Possible values include: "Enabled", "Disabled". + Possible values include: "Enabled", "Disabled". Default value: "Enabled". :type monitoring_status: str or ~microsoft_logz.models.MonitoringStatus """ @@ -703,7 +703,7 @@ def __init__( **kwargs ): super(MonitorUpdateProperties, self).__init__(**kwargs) - self.monitoring_status = kwargs.get('monitoring_status', None) + self.monitoring_status = kwargs.get('monitoring_status', "Enabled") class OperationDisplay(msrest.serialization.Model): diff --git a/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/models/_models_py3.py b/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/models/_models_py3.py index a6c3c45a0041..1381e244b47a 100644 --- a/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/models/_models_py3.py +++ b/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/models/_models_py3.py @@ -693,11 +693,11 @@ class MonitorProperties(msrest.serialization.Model): "Canceled", "Deleted", "NotSpecified". :vartype provisioning_state: str or ~microsoft_logz.models.ProvisioningState :param monitoring_status: Flag specifying if the resource monitoring is enabled or disabled. - Possible values include: "Enabled", "Disabled". + Possible values include: "Enabled", "Disabled". Default value: "Enabled". :type monitoring_status: str or ~microsoft_logz.models.MonitoringStatus :param marketplace_subscription_status: Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state. Possible - values include: "Active", "Suspended". + values include: "Active", "Suspended". Default value: "Active". :type marketplace_subscription_status: str or ~microsoft_logz.models.MarketplaceSubscriptionStatus :param logz_organization_properties: @@ -732,8 +732,8 @@ class MonitorProperties(msrest.serialization.Model): def __init__( self, *, - monitoring_status: Optional[Union[str, "MonitoringStatus"]] = None, - marketplace_subscription_status: Optional[Union[str, "MarketplaceSubscriptionStatus"]] = None, + monitoring_status: Optional[Union[str, "MonitoringStatus"]] = "Enabled", + marketplace_subscription_status: Optional[Union[str, "MarketplaceSubscriptionStatus"]] = "Active", logz_organization_properties: Optional["LogzOrganizationProperties"] = None, user_info: Optional["UserInfo"] = None, plan_data: Optional["PlanData"] = None, @@ -754,7 +754,7 @@ class MonitorUpdateProperties(msrest.serialization.Model): """The set of properties that can be update in a PATCH request to a monitor resource. :param monitoring_status: Flag specifying if the resource monitoring is enabled or disabled. - Possible values include: "Enabled", "Disabled". + Possible values include: "Enabled", "Disabled". Default value: "Enabled". :type monitoring_status: str or ~microsoft_logz.models.MonitoringStatus """ @@ -765,7 +765,7 @@ class MonitorUpdateProperties(msrest.serialization.Model): def __init__( self, *, - monitoring_status: Optional[Union[str, "MonitoringStatus"]] = None, + monitoring_status: Optional[Union[str, "MonitoringStatus"]] = "Enabled", **kwargs ): super(MonitorUpdateProperties, self).__init__(**kwargs) diff --git a/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/operations/_monitor_operations.py b/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/operations/_monitor_operations.py index 979a1a49305f..f9d54fa1884a 100644 --- a/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/operations/_monitor_operations.py +++ b/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/operations/_monitor_operations.py @@ -71,14 +71,14 @@ def vm_host_payload( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" # Construct URL url = self.vm_host_payload.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -137,7 +137,7 @@ def list_vm_host_update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" content_type = "application/json" accept = "application/json" @@ -152,7 +152,7 @@ def prepare_request(next_link=None): url = self.list_vm_host_update.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -229,7 +229,7 @@ def list_vm_hosts( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" def prepare_request(next_link=None): @@ -242,7 +242,7 @@ def prepare_request(next_link=None): url = self.list_vm_hosts.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) diff --git a/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/operations/_monitors_operations.py b/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/operations/_monitors_operations.py index 494b17261233..c2d61ed0f876 100644 --- a/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/operations/_monitors_operations.py +++ b/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/operations/_monitors_operations.py @@ -72,7 +72,7 @@ def list_monitored_resources( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" def prepare_request(next_link=None): @@ -85,7 +85,7 @@ def prepare_request(next_link=None): url = self.list_monitored_resources.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -144,7 +144,7 @@ def list_by_subscription( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" def prepare_request(next_link=None): @@ -217,7 +217,7 @@ def list_by_resource_group( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" def prepare_request(next_link=None): @@ -230,7 +230,7 @@ def prepare_request(next_link=None): url = self.list_by_resource_group.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters @@ -294,14 +294,14 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -344,7 +344,7 @@ def _create_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -352,7 +352,7 @@ def _create_initial( url = self._create_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -401,9 +401,9 @@ def begin_create( **kwargs # type: Any ): # type: (...) -> LROPoller["_models.LogzMonitorResource"] - """Create a monitor resource. + """Create a monitor resource. This create operation can take upto 10 minutes to complete. - Create a monitor resource. + Create a monitor resource. This create operation can take upto 10 minutes to complete. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str @@ -449,7 +449,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), } @@ -495,7 +495,7 @@ def update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -503,7 +503,7 @@ def update( url = self.update.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -552,14 +552,14 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -597,9 +597,9 @@ def begin_delete( **kwargs # type: Any ): # type: (...) -> LROPoller[None] - """Delete a monitor resource. + """Delete a monitor resource. This delete operation can take upto 10 minutes to complete. - Delete a monitor resource. + Delete a monitor resource. This delete operation can take upto 10 minutes to complete. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str @@ -639,7 +639,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), } @@ -686,7 +686,7 @@ def list_user_roles( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" content_type = "application/json" accept = "application/json" @@ -701,7 +701,7 @@ def prepare_request(next_link=None): url = self.list_user_roles.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) diff --git a/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/operations/_single_sign_on_operations.py b/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/operations/_single_sign_on_operations.py index 96e2b5600cdb..844f3e7cbf3c 100644 --- a/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/operations/_single_sign_on_operations.py +++ b/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/operations/_single_sign_on_operations.py @@ -72,7 +72,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" def prepare_request(next_link=None): @@ -85,7 +85,7 @@ def prepare_request(next_link=None): url = self.list.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -139,7 +139,7 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -147,7 +147,7 @@ def _create_or_update_initial( url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'configurationName': self._serialize.url("configuration_name", configuration_name, 'str'), } @@ -198,9 +198,10 @@ def begin_create_or_update( **kwargs # type: Any ): # type: (...) -> LROPoller["_models.LogzSingleSignOnResource"] - """Configures single-sign-on for this resource. + """Configures single-sign-on for this resource. This operation can take upto 10 minutes to complete. - Configures single-sign-on for this resource. + Configures single-sign-on for this resource. This operation can take upto 10 minutes to + complete. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str @@ -249,7 +250,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'configurationName': self._serialize.url("configuration_name", configuration_name, 'str'), } @@ -296,14 +297,14 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'configurationName': self._serialize.url("configuration_name", configuration_name, 'str'), } diff --git a/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/operations/_sub_account_operations.py b/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/operations/_sub_account_operations.py index 652db099ee7b..9206cd135ba0 100644 --- a/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/operations/_sub_account_operations.py +++ b/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/operations/_sub_account_operations.py @@ -72,7 +72,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" def prepare_request(next_link=None): @@ -85,7 +85,7 @@ def prepare_request(next_link=None): url = self.list.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -139,7 +139,7 @@ def _create_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -147,7 +147,7 @@ def _create_initial( url = self._create_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'subAccountName': self._serialize.url("sub_account_name", sub_account_name, 'str'), } @@ -198,9 +198,10 @@ def begin_create( **kwargs # type: Any ): # type: (...) -> LROPoller["_models.LogzMonitorResource"] - """Create sub account under a given monitor resource. + """Create sub account under a given monitor resource. This create operation can take upto 10 minutes to complete. - Create sub account under a given monitor resource. + Create sub account under a given monitor resource. This create operation can take upto 10 + minutes to complete. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str @@ -249,7 +250,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'subAccountName': self._serialize.url("sub_account_name", sub_account_name, 'str'), } @@ -296,14 +297,14 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'subAccountName': self._serialize.url("sub_account_name", sub_account_name, 'str'), } @@ -347,14 +348,14 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'subAccountName': self._serialize.url("sub_account_name", sub_account_name, 'str'), } @@ -394,9 +395,9 @@ def begin_delete( **kwargs # type: Any ): # type: (...) -> LROPoller[None] - """Delete a sub account resource. + """Delete a sub account resource. This delete operation can take upto 10 minutes to complete. - Delete a sub account resource. + Delete a sub account resource. This delete operation can take upto 10 minutes to complete. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str @@ -439,7 +440,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'subAccountName': self._serialize.url("sub_account_name", sub_account_name, 'str'), } @@ -489,7 +490,7 @@ def update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -497,7 +498,7 @@ def update( url = self.update.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'subAccountName': self._serialize.url("sub_account_name", sub_account_name, 'str'), } @@ -563,7 +564,7 @@ def list_monitored_resources( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" def prepare_request(next_link=None): @@ -576,7 +577,7 @@ def prepare_request(next_link=None): url = self.list_monitored_resources.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'subAccountName': self._serialize.url("sub_account_name", sub_account_name, 'str'), } @@ -645,14 +646,14 @@ def vm_host_payload( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" # Construct URL url = self.vm_host_payload.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'subAccountName': self._serialize.url("sub_account_name", sub_account_name, 'str'), } @@ -715,7 +716,7 @@ def list_vm_host_update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" content_type = "application/json" accept = "application/json" @@ -730,7 +731,7 @@ def prepare_request(next_link=None): url = self.list_vm_host_update.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'subAccountName': self._serialize.url("sub_account_name", sub_account_name, 'str'), } @@ -811,7 +812,7 @@ def list_vm_hosts( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" def prepare_request(next_link=None): @@ -824,7 +825,7 @@ def prepare_request(next_link=None): url = self.list_vm_hosts.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'subAccountName': self._serialize.url("sub_account_name", sub_account_name, 'str'), } diff --git a/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/operations/_sub_account_tag_rules_operations.py b/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/operations/_sub_account_tag_rules_operations.py index 4a59bc484f54..5c32a196e2ab 100644 --- a/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/operations/_sub_account_tag_rules_operations.py +++ b/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/operations/_sub_account_tag_rules_operations.py @@ -73,7 +73,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" def prepare_request(next_link=None): @@ -86,7 +86,7 @@ def prepare_request(next_link=None): url = self.list.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'subAccountName': self._serialize.url("sub_account_name", sub_account_name, 'str'), } @@ -161,7 +161,7 @@ def create_or_update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -169,7 +169,7 @@ def create_or_update( url = self.create_or_update.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'subAccountName': self._serialize.url("sub_account_name", sub_account_name, 'str'), 'ruleSetName': self._serialize.url("rule_set_name", rule_set_name, 'str'), @@ -239,14 +239,14 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'subAccountName': self._serialize.url("sub_account_name", sub_account_name, 'str'), 'ruleSetName': self._serialize.url("rule_set_name", rule_set_name, 'str'), @@ -309,14 +309,14 @@ def delete( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" # Construct URL url = self.delete.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'subAccountName': self._serialize.url("sub_account_name", sub_account_name, 'str'), 'ruleSetName': self._serialize.url("rule_set_name", rule_set_name, 'str'), diff --git a/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/operations/_tag_rules_operations.py b/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/operations/_tag_rules_operations.py index 20d60b0e9907..52faf9eb75fa 100644 --- a/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/operations/_tag_rules_operations.py +++ b/sdk/logz/azure-mgmt-logz/azure/mgmt/logz/operations/_tag_rules_operations.py @@ -70,7 +70,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" def prepare_request(next_link=None): @@ -83,7 +83,7 @@ def prepare_request(next_link=None): url = self.list.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -154,7 +154,7 @@ def create_or_update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -162,7 +162,7 @@ def create_or_update( url = self.create_or_update.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'ruleSetName': self._serialize.url("rule_set_name", rule_set_name, 'str'), } @@ -228,14 +228,14 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'ruleSetName': self._serialize.url("rule_set_name", rule_set_name, 'str'), } @@ -294,14 +294,14 @@ def delete( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01-preview" + api_version = "2020-10-01" accept = "application/json" # Construct URL url = self.delete.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'monitorName': self._serialize.url("monitor_name", monitor_name, 'str'), 'ruleSetName': self._serialize.url("rule_set_name", rule_set_name, 'str'), }