From 6169a66170802ec233a69514843eb0d0e10e8456 Mon Sep 17 00:00:00 2001 From: Azure CLI Bot Date: Mon, 6 Jun 2022 09:24:05 +0800 Subject: [PATCH] [AutoRelease] t2-batch-2022-06-01-88601(Do not merge) (#24659) * code and test * Update CHANGELOG.md Co-authored-by: PythonSdkPipelines Co-authored-by: Yuchao Yan --- sdk/batch/azure-mgmt-batch/CHANGELOG.md | 12 + sdk/batch/azure-mgmt-batch/MANIFEST.in | 1 + sdk/batch/azure-mgmt-batch/_meta.json | 6 +- .../mgmt/batch/_batch_management_client.py | 14 +- .../azure/mgmt/batch/_configuration.py | 12 +- .../azure/mgmt/batch/_metadata.json | 8 +- .../azure/mgmt/batch/_version.py | 2 +- .../batch/aio/_batch_management_client.py | 12 +- .../azure/mgmt/batch/aio/_configuration.py | 12 +- .../aio/operations/_application_operations.py | 66 +- .../_application_package_operations.py | 66 +- .../operations/_batch_account_operations.py | 162 +++-- .../aio/operations/_certificate_operations.py | 97 ++- .../aio/operations/_location_operations.py | 58 +- .../mgmt/batch/aio/operations/_operations.py | 18 +- .../batch/aio/operations/_pool_operations.py | 107 +++- ..._private_endpoint_connection_operations.py | 172 ++++- .../_private_link_resource_operations.py | 31 +- .../azure/mgmt/batch/models/__init__.py | 8 + .../models/_batch_management_client_enums.py | 23 +- .../azure/mgmt/batch/models/_models_py3.py | 211 ++++++- .../operations/_application_operations.py | 178 +++--- .../_application_package_operations.py | 178 +++--- .../operations/_batch_account_operations.py | 420 ++++++++----- .../operations/_certificate_operations.py | 240 ++++--- .../batch/operations/_location_operations.py | 154 +++-- .../mgmt/batch/operations/_operations.py | 39 +- .../mgmt/batch/operations/_pool_operations.py | 271 ++++---- ..._private_endpoint_connection_operations.py | 279 +++++++-- .../_private_link_resource_operations.py | 78 ++- sdk/batch/azure-mgmt-batch/setup.py | 4 + ...Batchtest_mgmt_batch_account_advanced.json | 586 ++++++++---------- ...MgmtBatchtest_mgmt_batch_account_name.json | 62 +- ...MgmtBatchtest_mgmt_batch_applications.json | 322 +++++----- ...MgmtBatchtest_mgmt_batch_byos_account.json | 51 +- ...MgmtBatchtest_mgmt_batch_certificates.json | 225 +++---- ...tBatchtest_mgmt_batch_list_operations.json | 59 +- ....pyTestMgmtBatchtest_mgmt_batch_pools.json | 306 ++++----- ...tchtest_mgmt_batch_subscription_quota.json | 49 +- shared_requirements.txt | 1 + 40 files changed, 2777 insertions(+), 1823 deletions(-) diff --git a/sdk/batch/azure-mgmt-batch/CHANGELOG.md b/sdk/batch/azure-mgmt-batch/CHANGELOG.md index 1b96e1b4e7c4..48f904603380 100644 --- a/sdk/batch/azure-mgmt-batch/CHANGELOG.md +++ b/sdk/batch/azure-mgmt-batch/CHANGELOG.md @@ -1,5 +1,17 @@ # Release History +## 16.2.0 (2022-06-06) + +**Features** + + - Added operation PrivateEndpointConnectionOperations.begin_delete + - Model BatchAccount has a new parameter network_profile + - Model BatchAccount has a new parameter node_management_endpoint + - Model BatchAccountCreateParameters has a new parameter network_profile + - Model BatchAccountUpdateParameters has a new parameter network_profile + - Model BatchAccountUpdateParameters has a new parameter public_network_access + - Model PrivateEndpointConnection has a new parameter group_ids + ## 16.1.0 (2022-02-24) **Features** diff --git a/sdk/batch/azure-mgmt-batch/MANIFEST.in b/sdk/batch/azure-mgmt-batch/MANIFEST.in index 2c31e8da0cb1..416557f0d87d 100644 --- a/sdk/batch/azure-mgmt-batch/MANIFEST.in +++ b/sdk/batch/azure-mgmt-batch/MANIFEST.in @@ -4,3 +4,4 @@ include *.md include azure/__init__.py include azure/mgmt/__init__.py include LICENSE +include azure/mgmt/batch/py.typed diff --git a/sdk/batch/azure-mgmt-batch/_meta.json b/sdk/batch/azure-mgmt-batch/_meta.json index 3e02f4c552c2..e58dbb95f578 100644 --- a/sdk/batch/azure-mgmt-batch/_meta.json +++ b/sdk/batch/azure-mgmt-batch/_meta.json @@ -1,11 +1,11 @@ { "autorest": "3.7.2", "use": [ - "@autorest/python@5.12.0", + "@autorest/python@5.13.0", "@autorest/modelerfour@4.19.3" ], - "commit": "3f59f46d112c58cb8f6231732e88848f0f97872c", + "commit": "5ee062ac3cc2df298ff47bdfc7792d257fd85bb8", "repository_url": "https://github.com/Azure/azure-rest-api-specs", - "autorest_command": "autorest specification/batch/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --track2 --use=@autorest/python@5.12.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2", + "autorest_command": "autorest specification/batch/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", "readme": "specification/batch/resource-manager/readme.md" } \ No newline at end of file diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_batch_management_client.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_batch_management_client.py index 8a21ad06f59c..ce3f8284efbf 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_batch_management_client.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_batch_management_client.py @@ -7,11 +7,12 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING + +from msrest import Deserializer, Serializer from azure.core.rest import HttpRequest, HttpResponse from azure.mgmt.core import ARMPipelineClient -from msrest import Deserializer, Serializer from . import models from ._configuration import BatchManagementClientConfiguration @@ -21,7 +22,7 @@ # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials import TokenCredential -class BatchManagementClient: +class BatchManagementClient: # pylint: disable=too-many-instance-attributes """Batch Client. :ivar batch_account: BatchAccountOperations operations @@ -48,8 +49,11 @@ class BatchManagementClient: :param subscription_id: The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). :type subscription_id: str - :param base_url: Service URL. Default value is 'https://management.azure.com'. + :param base_url: Service URL. Default value is "https://management.azure.com". :type base_url: str + :keyword api_version: Api Version. Default value is "2022-06-01". Note that overriding this + default value may result in unsupported behavior. + :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ @@ -81,7 +85,7 @@ def __init__( def _send_request( self, - request, # type: HttpRequest + request: HttpRequest, **kwargs: Any ) -> HttpResponse: """Runs the network request through the client's chained policies. diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_configuration.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_configuration.py index ecb96ee47c70..f67b4b421e9e 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_configuration.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_configuration.py @@ -19,7 +19,7 @@ from azure.core.credentials import TokenCredential -class BatchManagementClientConfiguration(Configuration): +class BatchManagementClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for BatchManagementClient. Note that all parameters used to create this instance are saved as instance @@ -27,8 +27,12 @@ class BatchManagementClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). + :param subscription_id: The Azure subscription ID. This is a GUID-formatted string (e.g. + 00000000-0000-0000-0000-000000000000). :type subscription_id: str + :keyword api_version: Api Version. Default value is "2022-06-01". Note that overriding this + default value may result in unsupported behavior. + :paramtype api_version: str """ def __init__( @@ -38,6 +42,8 @@ def __init__( **kwargs: Any ) -> None: super(BatchManagementClientConfiguration, self).__init__(**kwargs) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + if credential is None: raise ValueError("Parameter 'credential' must not be None.") if subscription_id is None: @@ -45,7 +51,7 @@ def __init__( self.credential = credential self.subscription_id = subscription_id - self.api_version = "2022-01-01" + self.api_version = api_version self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) kwargs.setdefault('sdk_moniker', 'mgmt-batch/{}'.format(VERSION)) self._configure(**kwargs) diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_metadata.json b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_metadata.json index 09c04c4d7e68..53ef74f54103 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_metadata.json +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_metadata.json @@ -1,6 +1,6 @@ { - "chosen_version": "2022-01-01", - "total_api_version_list": ["2022-01-01"], + "chosen_version": "2022-06-01", + "total_api_version_list": ["2022-06-01"], "client": { "name": "BatchManagementClient", "filename": "_batch_management_client", @@ -10,8 +10,8 @@ "azure_arm": true, "has_lro_operations": true, "client_side_validation": false, - "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"BatchManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}", - "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"], \"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"BatchManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}" + "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"BatchManagementClientConfiguration\"]}, \"thirdparty\": {\"msrest\": [\"Deserializer\", \"Serializer\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}", + "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"], \"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"BatchManagementClientConfiguration\"]}, \"thirdparty\": {\"msrest\": [\"Deserializer\", \"Serializer\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}" }, "global_parameters": { "sync": { diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_version.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_version.py index 7985a146bc0e..2ac18d10425f 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_version.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "16.1.0" +VERSION = "16.2.0" diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/_batch_management_client.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/_batch_management_client.py index 3b1570f8a34f..76d10a467aea 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/_batch_management_client.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/_batch_management_client.py @@ -7,11 +7,12 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING + +from msrest import Deserializer, Serializer from azure.core.rest import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient -from msrest import Deserializer, Serializer from .. import models from ._configuration import BatchManagementClientConfiguration @@ -21,7 +22,7 @@ # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials_async import AsyncTokenCredential -class BatchManagementClient: +class BatchManagementClient: # pylint: disable=too-many-instance-attributes """Batch Client. :ivar batch_account: BatchAccountOperations operations @@ -48,8 +49,11 @@ class BatchManagementClient: :param subscription_id: The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). :type subscription_id: str - :param base_url: Service URL. Default value is 'https://management.azure.com'. + :param base_url: Service URL. Default value is "https://management.azure.com". :type base_url: str + :keyword api_version: Api Version. Default value is "2022-06-01". Note that overriding this + default value may result in unsupported behavior. + :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/_configuration.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/_configuration.py index 6f34152872c5..d33e34cbe6be 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/_configuration.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/_configuration.py @@ -19,7 +19,7 @@ from azure.core.credentials_async import AsyncTokenCredential -class BatchManagementClientConfiguration(Configuration): +class BatchManagementClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for BatchManagementClient. Note that all parameters used to create this instance are saved as instance @@ -27,8 +27,12 @@ class BatchManagementClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). + :param subscription_id: The Azure subscription ID. This is a GUID-formatted string (e.g. + 00000000-0000-0000-0000-000000000000). :type subscription_id: str + :keyword api_version: Api Version. Default value is "2022-06-01". Note that overriding this + default value may result in unsupported behavior. + :paramtype api_version: str """ def __init__( @@ -38,6 +42,8 @@ def __init__( **kwargs: Any ) -> None: super(BatchManagementClientConfiguration, self).__init__(**kwargs) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + if credential is None: raise ValueError("Parameter 'credential' must not be None.") if subscription_id is None: @@ -45,7 +51,7 @@ def __init__( self.credential = credential self.subscription_id = subscription_id - self.api_version = "2022-01-01" + self.api_version = api_version self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) kwargs.setdefault('sdk_moniker', 'mgmt-batch/{}'.format(VERSION)) self._configure(**kwargs) diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_application_operations.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_application_operations.py index a4187f4ad699..69a60adc2147 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_application_operations.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_application_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -63,7 +62,7 @@ async def create( :type account_name: str :param application_name: The name of the application. This must be unique within the account. :type application_name: str - :param parameters: The parameters for the request. + :param parameters: The parameters for the request. Default value is None. :type parameters: ~azure.mgmt.batch.models.Application :keyword callable cls: A custom type or function that will be passed the direct response :return: Application, or the result of cls(response) @@ -76,6 +75,7 @@ async def create( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if parameters is not None: @@ -88,6 +88,7 @@ async def create( account_name=account_name, application_name=application_name, subscription_id=self._config.subscription_id, + api_version=api_version, content_type=content_type, json=_json, template_url=self.create.metadata['url'], @@ -95,7 +96,11 @@ async def create( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -109,11 +114,11 @@ async def create( return deserialized - create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}'} # type: ignore + create.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}"} # type: ignore @distributed_trace_async - async def delete( + async def delete( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, account_name: str, @@ -139,18 +144,25 @@ async def delete( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + request = build_delete_request( resource_group_name=resource_group_name, account_name=account_name, application_name=application_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self.delete.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -160,7 +172,7 @@ async def delete( if cls: return cls(pipeline_response, None, {}) - delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}'} # type: ignore + delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}"} # type: ignore @distributed_trace_async @@ -190,18 +202,25 @@ async def get( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + request = build_get_request( resource_group_name=resource_group_name, account_name=account_name, application_name=application_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self.get.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -215,7 +234,7 @@ async def get( return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}'} # type: ignore + get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}"} # type: ignore @distributed_trace_async @@ -248,6 +267,7 @@ async def update( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] _json = self._serialize.body(parameters, 'Application') @@ -257,6 +277,7 @@ async def update( account_name=account_name, application_name=application_name, subscription_id=self._config.subscription_id, + api_version=api_version, content_type=content_type, json=_json, template_url=self.update.metadata['url'], @@ -264,7 +285,11 @@ async def update( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -278,7 +303,7 @@ async def update( return deserialized - update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}'} # type: ignore + update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}"} # type: ignore @distributed_trace @@ -295,7 +320,8 @@ def list( :type resource_group_name: str :param account_name: The name of the Batch account. :type account_name: str - :param maxresults: The maximum number of items to return in the response. + :param maxresults: The maximum number of items to return in the response. Default value is + None. :type maxresults: int :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ListApplicationsResult or the result of @@ -304,6 +330,8 @@ def list( ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.batch.models.ListApplicationsResult] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.ListApplicationsResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError @@ -316,6 +344,7 @@ def prepare_request(next_link=None): resource_group_name=resource_group_name, account_name=account_name, subscription_id=self._config.subscription_id, + api_version=api_version, maxresults=maxresults, template_url=self.list.metadata['url'], ) @@ -328,6 +357,7 @@ def prepare_request(next_link=None): resource_group_name=resource_group_name, account_name=account_name, subscription_id=self._config.subscription_id, + api_version=api_version, maxresults=maxresults, template_url=next_link, ) @@ -346,7 +376,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -359,4 +393,4 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications'} # type: ignore + list.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications"} # type: ignore diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_application_package_operations.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_application_package_operations.py index 25ea2e2a2920..6d261d671fd4 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_application_package_operations.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_application_package_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -81,6 +80,7 @@ async def activate( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] _json = self._serialize.body(parameters, 'ActivateApplicationPackageParameters') @@ -91,6 +91,7 @@ async def activate( application_name=application_name, version_name=version_name, subscription_id=self._config.subscription_id, + api_version=api_version, content_type=content_type, json=_json, template_url=self.activate.metadata['url'], @@ -98,7 +99,11 @@ async def activate( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -112,7 +117,7 @@ async def activate( return deserialized - activate.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}/activate'} # type: ignore + activate.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}/activate"} # type: ignore @distributed_trace_async @@ -138,7 +143,7 @@ async def create( :type application_name: str :param version_name: The version of the application. :type version_name: str - :param parameters: The parameters for the request. + :param parameters: The parameters for the request. Default value is None. :type parameters: ~azure.mgmt.batch.models.ApplicationPackage :keyword callable cls: A custom type or function that will be passed the direct response :return: ApplicationPackage, or the result of cls(response) @@ -151,6 +156,7 @@ async def create( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if parameters is not None: @@ -164,6 +170,7 @@ async def create( application_name=application_name, version_name=version_name, subscription_id=self._config.subscription_id, + api_version=api_version, content_type=content_type, json=_json, template_url=self.create.metadata['url'], @@ -171,7 +178,11 @@ async def create( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -185,11 +196,11 @@ async def create( return deserialized - create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}'} # type: ignore + create.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}"} # type: ignore @distributed_trace_async - async def delete( + async def delete( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, account_name: str, @@ -218,6 +229,8 @@ async def delete( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + request = build_delete_request( resource_group_name=resource_group_name, @@ -225,12 +238,17 @@ async def delete( application_name=application_name, version_name=version_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self.delete.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -240,7 +258,7 @@ async def delete( if cls: return cls(pipeline_response, None, {}) - delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}'} # type: ignore + delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}"} # type: ignore @distributed_trace_async @@ -273,6 +291,8 @@ async def get( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + request = build_get_request( resource_group_name=resource_group_name, @@ -280,12 +300,17 @@ async def get( application_name=application_name, version_name=version_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self.get.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -299,7 +324,7 @@ async def get( return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}'} # type: ignore + get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}"} # type: ignore @distributed_trace @@ -319,7 +344,8 @@ def list( :type account_name: str :param application_name: The name of the application. This must be unique within the account. :type application_name: str - :param maxresults: The maximum number of items to return in the response. + :param maxresults: The maximum number of items to return in the response. Default value is + None. :type maxresults: int :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ListApplicationPackagesResult or the result of @@ -328,6 +354,8 @@ def list( ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.batch.models.ListApplicationPackagesResult] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.ListApplicationPackagesResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError @@ -341,6 +369,7 @@ def prepare_request(next_link=None): account_name=account_name, application_name=application_name, subscription_id=self._config.subscription_id, + api_version=api_version, maxresults=maxresults, template_url=self.list.metadata['url'], ) @@ -354,6 +383,7 @@ def prepare_request(next_link=None): account_name=account_name, application_name=application_name, subscription_id=self._config.subscription_id, + api_version=api_version, maxresults=maxresults, template_url=next_link, ) @@ -372,7 +402,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -385,4 +419,4 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions'} # type: ignore + list.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions"} # type: ignore diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_batch_account_operations.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_batch_account_operations.py index c8c47ccb4d74..2ab82079ee46 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_batch_account_operations.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_batch_account_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union -import warnings +from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -61,6 +60,7 @@ async def _create_initial( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] _json = self._serialize.body(parameters, 'BatchAccountCreateParameters') @@ -69,6 +69,7 @@ async def _create_initial( resource_group_name=resource_group_name, account_name=account_name, subscription_id=self._config.subscription_id, + api_version=api_version, content_type=content_type, json=_json, template_url=self._create_initial.metadata['url'], @@ -76,7 +77,11 @@ async def _create_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -98,7 +103,7 @@ async def _create_initial( return deserialized - _create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}'} # type: ignore + _create_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}"} # type: ignore @distributed_trace_async @@ -135,8 +140,9 @@ async def begin_create( :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.batch.models.BatchAccount] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.BatchAccount"] lro_delay = kwargs.pop( 'polling_interval', @@ -148,6 +154,7 @@ async def begin_create( resource_group_name=resource_group_name, account_name=account_name, parameters=parameters, + api_version=api_version, content_type=content_type, cls=lambda x,y,z: x, **kwargs @@ -172,10 +179,9 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}'} # type: ignore + begin_create.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}"} # type: ignore @distributed_trace_async async def update( @@ -204,6 +210,7 @@ async def update( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] _json = self._serialize.body(parameters, 'BatchAccountUpdateParameters') @@ -212,6 +219,7 @@ async def update( resource_group_name=resource_group_name, account_name=account_name, subscription_id=self._config.subscription_id, + api_version=api_version, content_type=content_type, json=_json, template_url=self.update.metadata['url'], @@ -219,7 +227,11 @@ async def update( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -233,10 +245,10 @@ async def update( return deserialized - update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}'} # type: ignore + update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}"} # type: ignore - async def _delete_initial( + async def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, account_name: str, @@ -248,17 +260,24 @@ async def _delete_initial( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + request = build_delete_request_initial( resource_group_name=resource_group_name, account_name=account_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self._delete_initial.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200, 202, 204]: @@ -274,11 +293,11 @@ async def _delete_initial( if cls: return cls(pipeline_response, None, response_headers) - _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}'} # type: ignore + _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}"} # type: ignore @distributed_trace_async - async def begin_delete( + async def begin_delete( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, account_name: str, @@ -302,7 +321,8 @@ async def begin_delete( :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( 'polling_interval', @@ -313,6 +333,7 @@ async def begin_delete( raw_result = await self._delete_initial( resource_group_name=resource_group_name, account_name=account_name, + api_version=api_version, cls=lambda x,y,z: x, **kwargs ) @@ -333,10 +354,9 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}'} # type: ignore + begin_delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}"} # type: ignore @distributed_trace_async async def get( @@ -362,17 +382,24 @@ async def get( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + request = build_get_request( resource_group_name=resource_group_name, account_name=account_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self.get.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -386,7 +413,7 @@ async def get( return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}'} # type: ignore + get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}"} # type: ignore @distributed_trace @@ -403,6 +430,8 @@ def list( ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.batch.models.BatchAccountListResult] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.BatchAccountListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError @@ -413,6 +442,7 @@ def prepare_request(next_link=None): request = build_list_request( subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self.list.metadata['url'], ) request = _convert_request(request) @@ -422,6 +452,7 @@ def prepare_request(next_link=None): request = build_list_request( subscription_id=self._config.subscription_id, + api_version=api_version, template_url=next_link, ) request = _convert_request(request) @@ -439,7 +470,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -452,7 +487,7 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Batch/batchAccounts'} # type: ignore + list.metadata = {'url': "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/batchAccounts"} # type: ignore @distributed_trace def list_by_resource_group( @@ -471,6 +506,8 @@ def list_by_resource_group( ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.batch.models.BatchAccountListResult] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.BatchAccountListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError @@ -482,6 +519,7 @@ def prepare_request(next_link=None): request = build_list_by_resource_group_request( resource_group_name=resource_group_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self.list_by_resource_group.metadata['url'], ) request = _convert_request(request) @@ -492,6 +530,7 @@ def prepare_request(next_link=None): request = build_list_by_resource_group_request( resource_group_name=resource_group_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=next_link, ) request = _convert_request(request) @@ -509,7 +548,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -522,10 +565,10 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts'} # type: ignore + list_by_resource_group.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts"} # type: ignore @distributed_trace_async - async def synchronize_auto_storage_keys( + async def synchronize_auto_storage_keys( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, account_name: str, @@ -549,17 +592,24 @@ async def synchronize_auto_storage_keys( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + request = build_synchronize_auto_storage_keys_request( resource_group_name=resource_group_name, account_name=account_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self.synchronize_auto_storage_keys.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [204]: @@ -569,7 +619,7 @@ async def synchronize_auto_storage_keys( if cls: return cls(pipeline_response, None, {}) - synchronize_auto_storage_keys.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/syncAutoStorageKeys'} # type: ignore + synchronize_auto_storage_keys.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/syncAutoStorageKeys"} # type: ignore @distributed_trace_async @@ -604,6 +654,7 @@ async def regenerate_key( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] _json = self._serialize.body(parameters, 'BatchAccountRegenerateKeyParameters') @@ -612,6 +663,7 @@ async def regenerate_key( resource_group_name=resource_group_name, account_name=account_name, subscription_id=self._config.subscription_id, + api_version=api_version, content_type=content_type, json=_json, template_url=self.regenerate_key.metadata['url'], @@ -619,7 +671,11 @@ async def regenerate_key( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -633,7 +689,7 @@ async def regenerate_key( return deserialized - regenerate_key.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/regenerateKeys'} # type: ignore + regenerate_key.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/regenerateKeys"} # type: ignore @distributed_trace_async @@ -665,17 +721,24 @@ async def get_keys( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + request = build_get_keys_request( resource_group_name=resource_group_name, account_name=account_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self.get_keys.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -689,7 +752,7 @@ async def get_keys( return deserialized - get_keys.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/listKeys'} # type: ignore + get_keys.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/listKeys"} # type: ignore @distributed_trace @@ -710,6 +773,8 @@ def list_detectors( :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.batch.models.DetectorListResult] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.DetectorListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError @@ -722,6 +787,7 @@ def prepare_request(next_link=None): resource_group_name=resource_group_name, subscription_id=self._config.subscription_id, account_name=account_name, + api_version=api_version, template_url=self.list_detectors.metadata['url'], ) request = _convert_request(request) @@ -733,6 +799,7 @@ def prepare_request(next_link=None): resource_group_name=resource_group_name, subscription_id=self._config.subscription_id, account_name=account_name, + api_version=api_version, template_url=next_link, ) request = _convert_request(request) @@ -750,7 +817,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -763,7 +834,7 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - list_detectors.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/detectors'} # type: ignore + list_detectors.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/detectors"} # type: ignore @distributed_trace_async async def get_detector( @@ -792,18 +863,25 @@ async def get_detector( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + request = build_get_detector_request( resource_group_name=resource_group_name, subscription_id=self._config.subscription_id, account_name=account_name, detector_id=detector_id, + api_version=api_version, template_url=self.get_detector.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -817,7 +895,7 @@ async def get_detector( return deserialized - get_detector.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/detectors/{detectorId}'} # type: ignore + get_detector.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/detectors/{detectorId}"} # type: ignore @distributed_trace @@ -845,6 +923,8 @@ def list_outbound_network_dependencies_endpoints( ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.batch.models.OutboundEnvironmentEndpointCollection] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.OutboundEnvironmentEndpointCollection"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError @@ -857,6 +937,7 @@ def prepare_request(next_link=None): resource_group_name=resource_group_name, account_name=account_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self.list_outbound_network_dependencies_endpoints.metadata['url'], ) request = _convert_request(request) @@ -868,6 +949,7 @@ def prepare_request(next_link=None): resource_group_name=resource_group_name, account_name=account_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=next_link, ) request = _convert_request(request) @@ -885,7 +967,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -898,4 +984,4 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - list_outbound_network_dependencies_endpoints.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/outboundNetworkDependenciesEndpoints'} # type: ignore + list_outbound_network_dependencies_endpoints.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/outboundNetworkDependenciesEndpoints"} # type: ignore diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_certificate_operations.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_certificate_operations.py index 7e6e6957bd58..644cd1d5a4db 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_certificate_operations.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_certificate_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union -import warnings +from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -64,14 +63,16 @@ def list_by_batch_account( :type resource_group_name: str :param account_name: The name of the Batch account. :type account_name: str - :param maxresults: The maximum number of items to return in the response. + :param maxresults: The maximum number of items to return in the response. Default value is + None. :type maxresults: int :param select: Comma separated list of properties that should be returned. e.g. "properties/provisioningState". Only top level properties under properties/ are valid for - selection. + selection. Default value is None. :type select: str :param filter: OData filter expression. Valid properties for filtering are - "properties/provisioningState", "properties/provisioningStateTransitionTime", "name". + "properties/provisioningState", "properties/provisioningStateTransitionTime", "name". Default + value is None. :type filter: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ListCertificatesResult or the result of @@ -80,6 +81,8 @@ def list_by_batch_account( ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.batch.models.ListCertificatesResult] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.ListCertificatesResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError @@ -92,6 +95,7 @@ def prepare_request(next_link=None): resource_group_name=resource_group_name, account_name=account_name, subscription_id=self._config.subscription_id, + api_version=api_version, maxresults=maxresults, select=select, filter=filter, @@ -106,6 +110,7 @@ def prepare_request(next_link=None): resource_group_name=resource_group_name, account_name=account_name, subscription_id=self._config.subscription_id, + api_version=api_version, maxresults=maxresults, select=select, filter=filter, @@ -126,7 +131,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -139,7 +148,7 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - list_by_batch_account.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates'} # type: ignore + list_by_batch_account.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates"} # type: ignore @distributed_trace_async async def create( @@ -166,10 +175,10 @@ async def create( :type parameters: ~azure.mgmt.batch.models.CertificateCreateOrUpdateParameters :param if_match: The entity state (ETag) version of the certificate to update. A value of "*" can be used to apply the operation only if the certificate already exists. If omitted, this - operation will always be applied. + operation will always be applied. Default value is None. :type if_match: str :param if_none_match: Set to '*' to allow a new certificate to be created, but to prevent - updating an existing certificate. Other values will be ignored. + updating an existing certificate. Other values will be ignored. Default value is None. :type if_none_match: str :keyword callable cls: A custom type or function that will be passed the direct response :return: Certificate, or the result of cls(response) @@ -182,6 +191,7 @@ async def create( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] _json = self._serialize.body(parameters, 'CertificateCreateOrUpdateParameters') @@ -191,6 +201,7 @@ async def create( account_name=account_name, certificate_name=certificate_name, subscription_id=self._config.subscription_id, + api_version=api_version, content_type=content_type, json=_json, if_match=if_match, @@ -200,7 +211,11 @@ async def create( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -217,7 +232,7 @@ async def create( return deserialized - create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}'} # type: ignore + create.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}"} # type: ignore @distributed_trace_async @@ -243,7 +258,7 @@ async def update( :param parameters: Certificate entity to update. :type parameters: ~azure.mgmt.batch.models.CertificateCreateOrUpdateParameters :param if_match: The entity state (ETag) version of the certificate to update. This value can - be omitted or set to "*" to apply the operation unconditionally. + be omitted or set to "*" to apply the operation unconditionally. Default value is None. :type if_match: str :keyword callable cls: A custom type or function that will be passed the direct response :return: Certificate, or the result of cls(response) @@ -256,6 +271,7 @@ async def update( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] _json = self._serialize.body(parameters, 'CertificateCreateOrUpdateParameters') @@ -265,6 +281,7 @@ async def update( account_name=account_name, certificate_name=certificate_name, subscription_id=self._config.subscription_id, + api_version=api_version, content_type=content_type, json=_json, if_match=if_match, @@ -273,7 +290,11 @@ async def update( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -290,10 +311,10 @@ async def update( return deserialized - update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}'} # type: ignore + update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}"} # type: ignore - async def _delete_initial( + async def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, account_name: str, @@ -306,18 +327,25 @@ async def _delete_initial( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + request = build_delete_request_initial( resource_group_name=resource_group_name, account_name=account_name, certificate_name=certificate_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self._delete_initial.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200, 202, 204]: @@ -333,11 +361,11 @@ async def _delete_initial( if cls: return cls(pipeline_response, None, response_headers) - _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}'} # type: ignore + _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}"} # type: ignore @distributed_trace_async - async def begin_delete( + async def begin_delete( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, account_name: str, @@ -366,7 +394,8 @@ async def begin_delete( :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( 'polling_interval', @@ -378,6 +407,7 @@ async def begin_delete( resource_group_name=resource_group_name, account_name=account_name, certificate_name=certificate_name, + api_version=api_version, cls=lambda x,y,z: x, **kwargs ) @@ -398,10 +428,9 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}'} # type: ignore + begin_delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}"} # type: ignore @distributed_trace_async async def get( @@ -432,18 +461,25 @@ async def get( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + request = build_get_request( resource_group_name=resource_group_name, account_name=account_name, certificate_name=certificate_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self.get.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -460,7 +496,7 @@ async def get( return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}'} # type: ignore + get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}"} # type: ignore @distributed_trace_async @@ -499,18 +535,25 @@ async def cancel_deletion( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + request = build_cancel_deletion_request( resource_group_name=resource_group_name, account_name=account_name, certificate_name=certificate_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self.cancel_deletion.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -527,5 +570,5 @@ async def cancel_deletion( return deserialized - cancel_deletion.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}/cancelDelete'} # type: ignore + cancel_deletion.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}/cancelDelete"} # type: ignore diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_location_operations.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_location_operations.py index 547e0b92a3a5..dc40d2bf7e64 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_location_operations.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_location_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -67,16 +66,23 @@ async def get_quotas( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + request = build_get_quotas_request( location_name=location_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self.get_quotas.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -90,7 +96,7 @@ async def get_quotas( return deserialized - get_quotas.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/quotas'} # type: ignore + get_quotas.metadata = {'url': "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/quotas"} # type: ignore @distributed_trace @@ -105,15 +111,19 @@ def list_supported_virtual_machine_skus( :param location_name: The region for which to retrieve Batch service supported SKUs. :type location_name: str - :param maxresults: The maximum number of items to return in the response. + :param maxresults: The maximum number of items to return in the response. Default value is + None. :type maxresults: int :param filter: OData filter expression. Valid properties for filtering are "familyName". + Default value is None. :type filter: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either SupportedSkusResult or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.batch.models.SupportedSkusResult] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.SupportedSkusResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError @@ -125,6 +135,7 @@ def prepare_request(next_link=None): request = build_list_supported_virtual_machine_skus_request( location_name=location_name, subscription_id=self._config.subscription_id, + api_version=api_version, maxresults=maxresults, filter=filter, template_url=self.list_supported_virtual_machine_skus.metadata['url'], @@ -137,6 +148,7 @@ def prepare_request(next_link=None): request = build_list_supported_virtual_machine_skus_request( location_name=location_name, subscription_id=self._config.subscription_id, + api_version=api_version, maxresults=maxresults, filter=filter, template_url=next_link, @@ -156,7 +168,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -169,7 +185,7 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - list_supported_virtual_machine_skus.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/virtualMachineSkus'} # type: ignore + list_supported_virtual_machine_skus.metadata = {'url': "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/virtualMachineSkus"} # type: ignore @distributed_trace def list_supported_cloud_service_skus( @@ -183,15 +199,19 @@ def list_supported_cloud_service_skus( :param location_name: The region for which to retrieve Batch service supported SKUs. :type location_name: str - :param maxresults: The maximum number of items to return in the response. + :param maxresults: The maximum number of items to return in the response. Default value is + None. :type maxresults: int :param filter: OData filter expression. Valid properties for filtering are "familyName". + Default value is None. :type filter: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either SupportedSkusResult or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.batch.models.SupportedSkusResult] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.SupportedSkusResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError @@ -203,6 +223,7 @@ def prepare_request(next_link=None): request = build_list_supported_cloud_service_skus_request( location_name=location_name, subscription_id=self._config.subscription_id, + api_version=api_version, maxresults=maxresults, filter=filter, template_url=self.list_supported_cloud_service_skus.metadata['url'], @@ -215,6 +236,7 @@ def prepare_request(next_link=None): request = build_list_supported_cloud_service_skus_request( location_name=location_name, subscription_id=self._config.subscription_id, + api_version=api_version, maxresults=maxresults, filter=filter, template_url=next_link, @@ -234,7 +256,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -247,7 +273,7 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - list_supported_cloud_service_skus.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/cloudServiceSkus'} # type: ignore + list_supported_cloud_service_skus.metadata = {'url': "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/cloudServiceSkus"} # type: ignore @distributed_trace_async async def check_name_availability( @@ -273,6 +299,7 @@ async def check_name_availability( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] _json = self._serialize.body(parameters, 'CheckNameAvailabilityParameters') @@ -280,6 +307,7 @@ async def check_name_availability( request = build_check_name_availability_request( location_name=location_name, subscription_id=self._config.subscription_id, + api_version=api_version, content_type=content_type, json=_json, template_url=self.check_name_availability.metadata['url'], @@ -287,7 +315,11 @@ async def check_name_availability( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -301,5 +333,5 @@ async def check_name_availability( return deserialized - check_name_availability.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/checkNameAvailability'} # type: ignore + check_name_availability.metadata = {'url': "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/checkNameAvailability"} # type: ignore diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_operations.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_operations.py index aac41489d214..a1c905d00d6d 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_operations.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -15,7 +14,6 @@ from azure.core.pipeline.transport import AsyncHttpResponse from azure.core.rest import HttpRequest from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async from azure.mgmt.core.exceptions import ARMErrorFormat from ... import models as _models @@ -58,6 +56,8 @@ def list( :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.batch.models.OperationListResult] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError @@ -67,6 +67,7 @@ def prepare_request(next_link=None): if not next_link: request = build_list_request( + api_version=api_version, template_url=self.list.metadata['url'], ) request = _convert_request(request) @@ -75,6 +76,7 @@ def prepare_request(next_link=None): else: request = build_list_request( + api_version=api_version, template_url=next_link, ) request = _convert_request(request) @@ -92,7 +94,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -105,4 +111,4 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - list.metadata = {'url': '/providers/Microsoft.Batch/operations'} # type: ignore + list.metadata = {'url': "/providers/Microsoft.Batch/operations"} # type: ignore diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_pool_operations.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_pool_operations.py index 8f9bf1b6bc47..0763264e3e72 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_pool_operations.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_pool_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union -import warnings +from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -64,11 +63,12 @@ def list_by_batch_account( :type resource_group_name: str :param account_name: The name of the Batch account. :type account_name: str - :param maxresults: The maximum number of items to return in the response. + :param maxresults: The maximum number of items to return in the response. Default value is + None. :type maxresults: int :param select: Comma separated list of properties that should be returned. e.g. "properties/provisioningState". Only top level properties under properties/ are valid for - selection. + selection. Default value is None. :type select: str :param filter: OData filter expression. Valid properties for filtering are: @@ -82,13 +82,15 @@ def list_by_batch_account( properties/vmSize properties/interNodeCommunication properties/scaleSettings/autoScale - properties/scaleSettings/fixedScale. + properties/scaleSettings/fixedScale. Default value is None. :type filter: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ListPoolsResult or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.batch.models.ListPoolsResult] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.ListPoolsResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError @@ -101,6 +103,7 @@ def prepare_request(next_link=None): resource_group_name=resource_group_name, account_name=account_name, subscription_id=self._config.subscription_id, + api_version=api_version, maxresults=maxresults, select=select, filter=filter, @@ -115,6 +118,7 @@ def prepare_request(next_link=None): resource_group_name=resource_group_name, account_name=account_name, subscription_id=self._config.subscription_id, + api_version=api_version, maxresults=maxresults, select=select, filter=filter, @@ -135,7 +139,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -148,7 +156,7 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - list_by_batch_account.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools'} # type: ignore + list_by_batch_account.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools"} # type: ignore @distributed_trace_async async def create( @@ -173,10 +181,10 @@ async def create( :type parameters: ~azure.mgmt.batch.models.Pool :param if_match: The entity state (ETag) version of the pool to update. A value of "*" can be used to apply the operation only if the pool already exists. If omitted, this operation will - always be applied. + always be applied. Default value is None. :type if_match: str :param if_none_match: Set to '*' to allow a new pool to be created, but to prevent updating an - existing pool. Other values will be ignored. + existing pool. Other values will be ignored. Default value is None. :type if_none_match: str :keyword callable cls: A custom type or function that will be passed the direct response :return: Pool, or the result of cls(response) @@ -189,6 +197,7 @@ async def create( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] _json = self._serialize.body(parameters, 'Pool') @@ -198,6 +207,7 @@ async def create( account_name=account_name, pool_name=pool_name, subscription_id=self._config.subscription_id, + api_version=api_version, content_type=content_type, json=_json, if_match=if_match, @@ -207,7 +217,11 @@ async def create( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -224,7 +238,7 @@ async def create( return deserialized - create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}'} # type: ignore + create.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}"} # type: ignore @distributed_trace_async @@ -249,7 +263,7 @@ async def update( updated, any property not supplied will be unchanged. :type parameters: ~azure.mgmt.batch.models.Pool :param if_match: The entity state (ETag) version of the pool to update. This value can be - omitted or set to "*" to apply the operation unconditionally. + omitted or set to "*" to apply the operation unconditionally. Default value is None. :type if_match: str :keyword callable cls: A custom type or function that will be passed the direct response :return: Pool, or the result of cls(response) @@ -262,6 +276,7 @@ async def update( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] _json = self._serialize.body(parameters, 'Pool') @@ -271,6 +286,7 @@ async def update( account_name=account_name, pool_name=pool_name, subscription_id=self._config.subscription_id, + api_version=api_version, content_type=content_type, json=_json, if_match=if_match, @@ -279,7 +295,11 @@ async def update( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -296,10 +316,10 @@ async def update( return deserialized - update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}'} # type: ignore + update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}"} # type: ignore - async def _delete_initial( + async def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, account_name: str, @@ -312,18 +332,25 @@ async def _delete_initial( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + request = build_delete_request_initial( resource_group_name=resource_group_name, account_name=account_name, pool_name=pool_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self._delete_initial.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200, 202, 204]: @@ -339,11 +366,11 @@ async def _delete_initial( if cls: return cls(pipeline_response, None, response_headers) - _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}'} # type: ignore + _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}"} # type: ignore @distributed_trace_async - async def begin_delete( + async def begin_delete( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, account_name: str, @@ -370,7 +397,8 @@ async def begin_delete( :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( 'polling_interval', @@ -382,6 +410,7 @@ async def begin_delete( resource_group_name=resource_group_name, account_name=account_name, pool_name=pool_name, + api_version=api_version, cls=lambda x,y,z: x, **kwargs ) @@ -402,10 +431,9 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}'} # type: ignore + begin_delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}"} # type: ignore @distributed_trace_async async def get( @@ -434,18 +462,25 @@ async def get( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + request = build_get_request( resource_group_name=resource_group_name, account_name=account_name, pool_name=pool_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self.get.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -462,7 +497,7 @@ async def get( return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}'} # type: ignore + get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}"} # type: ignore @distributed_trace_async @@ -492,18 +527,25 @@ async def disable_auto_scale( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + request = build_disable_auto_scale_request( resource_group_name=resource_group_name, account_name=account_name, pool_name=pool_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self.disable_auto_scale.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -520,7 +562,7 @@ async def disable_auto_scale( return deserialized - disable_auto_scale.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/disableAutoScale'} # type: ignore + disable_auto_scale.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/disableAutoScale"} # type: ignore @distributed_trace_async @@ -557,18 +599,25 @@ async def stop_resize( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + request = build_stop_resize_request( resource_group_name=resource_group_name, account_name=account_name, pool_name=pool_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self.stop_resize.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -585,5 +634,5 @@ async def stop_resize( return deserialized - stop_resize.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/stopResize'} # type: ignore + stop_resize.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/stopResize"} # type: ignore diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_private_endpoint_connection_operations.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_private_endpoint_connection_operations.py index b5e1d89f13ad..8fc8a3f200a8 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_private_endpoint_connection_operations.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_private_endpoint_connection_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union -import warnings +from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -22,7 +21,7 @@ from ... import models as _models from ..._vendor import _convert_request -from ...operations._private_endpoint_connection_operations import build_get_request, build_list_by_batch_account_request, build_update_request_initial +from ...operations._private_endpoint_connection_operations import build_delete_request_initial, build_get_request, build_list_by_batch_account_request, build_update_request_initial T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -62,7 +61,8 @@ def list_by_batch_account( :type resource_group_name: str :param account_name: The name of the Batch account. :type account_name: str - :param maxresults: The maximum number of items to return in the response. + :param maxresults: The maximum number of items to return in the response. Default value is + None. :type maxresults: int :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ListPrivateEndpointConnectionsResult or the result @@ -71,6 +71,8 @@ def list_by_batch_account( ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.batch.models.ListPrivateEndpointConnectionsResult] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.ListPrivateEndpointConnectionsResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError @@ -83,6 +85,7 @@ def prepare_request(next_link=None): subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, account_name=account_name, + api_version=api_version, maxresults=maxresults, template_url=self.list_by_batch_account.metadata['url'], ) @@ -95,6 +98,7 @@ def prepare_request(next_link=None): subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, account_name=account_name, + api_version=api_version, maxresults=maxresults, template_url=next_link, ) @@ -113,7 +117,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -126,7 +134,7 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - list_by_batch_account.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections'} # type: ignore + list_by_batch_account.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections"} # type: ignore @distributed_trace_async async def get( @@ -156,18 +164,25 @@ async def get( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + request = build_get_request( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, account_name=account_name, private_endpoint_connection_name=private_endpoint_connection_name, + api_version=api_version, template_url=self.get.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -181,7 +196,7 @@ async def get( return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}'} # type: ignore + get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}"} # type: ignore async def _update_initial( @@ -199,6 +214,7 @@ async def _update_initial( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] _json = self._serialize.body(parameters, 'PrivateEndpointConnection') @@ -208,6 +224,7 @@ async def _update_initial( resource_group_name=resource_group_name, account_name=account_name, private_endpoint_connection_name=private_endpoint_connection_name, + api_version=api_version, content_type=content_type, json=_json, if_match=if_match, @@ -216,7 +233,11 @@ async def _update_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200, 202, 204]: @@ -238,7 +259,7 @@ async def _update_initial( return deserialized - _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}'} # type: ignore + _update_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}"} # type: ignore @distributed_trace_async @@ -264,7 +285,8 @@ async def begin_update( are supplied will be updated, any property not supplied will be unchanged. :type parameters: ~azure.mgmt.batch.models.PrivateEndpointConnection :param if_match: The state (ETag) version of the private endpoint connection to update. This - value can be omitted or set to "*" to apply the operation unconditionally. + value can be omitted or set to "*" to apply the operation unconditionally. Default value is + None. :type if_match: 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. @@ -279,8 +301,9 @@ async def begin_update( :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.batch.models.PrivateEndpointConnection] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateEndpointConnection"] lro_delay = kwargs.pop( 'polling_interval', @@ -294,6 +317,7 @@ async def begin_update( private_endpoint_connection_name=private_endpoint_connection_name, parameters=parameters, if_match=if_match, + api_version=api_version, content_type=content_type, cls=lambda x,y,z: x, **kwargs @@ -318,7 +342,123 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + + begin_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}"} # type: ignore + + async def _delete_initial( # pylint: disable=inconsistent-return-statements + self, + resource_group_name: str, + account_name: str, + private_endpoint_connection_name: str, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + + + request = build_delete_request_initial( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + account_name=account_name, + private_endpoint_connection_name=private_endpoint_connection_name, + api_version=api_version, + template_url=self._delete_initial.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + response_headers['Retry-After']=self._deserialize('int', response.headers.get('Retry-After')) + + + if cls: + return cls(pipeline_response, None, response_headers) + + _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}"} # type: ignore + + + @distributed_trace_async + async def begin_delete( # pylint: disable=inconsistent-return-statements + self, + resource_group_name: str, + account_name: str, + private_endpoint_connection_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes the specified private endpoint connection. + + :param resource_group_name: The name of the resource group that contains the Batch account. + :type resource_group_name: str + :param account_name: The name of the Batch account. + :type account_name: str + :param private_endpoint_connection_name: The private endpoint connection name. This must be + unique within the account. + :type private_endpoint_connection_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 + this operation to not poll, or pass in your own initialized polling object for a personal + polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no + Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + account_name=account_name, + private_endpoint_connection_name=private_endpoint_connection_name, + api_version=api_version, + cls=lambda x,y,z: x, + **kwargs + ) + kwargs.pop('error_map', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + + if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}'} # type: ignore + begin_delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}"} # type: ignore diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_private_link_resource_operations.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_private_link_resource_operations.py index c89d5526b011..8e3a435f39ae 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_private_link_resource_operations.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_private_link_resource_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -60,7 +59,8 @@ def list_by_batch_account( :type resource_group_name: str :param account_name: The name of the Batch account. :type account_name: str - :param maxresults: The maximum number of items to return in the response. + :param maxresults: The maximum number of items to return in the response. Default value is + None. :type maxresults: int :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ListPrivateLinkResourcesResult or the result of @@ -69,6 +69,8 @@ def list_by_batch_account( ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.batch.models.ListPrivateLinkResourcesResult] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.ListPrivateLinkResourcesResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError @@ -81,6 +83,7 @@ def prepare_request(next_link=None): subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, account_name=account_name, + api_version=api_version, maxresults=maxresults, template_url=self.list_by_batch_account.metadata['url'], ) @@ -93,6 +96,7 @@ def prepare_request(next_link=None): subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, account_name=account_name, + api_version=api_version, maxresults=maxresults, template_url=next_link, ) @@ -111,7 +115,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -124,7 +132,7 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - list_by_batch_account.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateLinkResources'} # type: ignore + list_by_batch_account.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateLinkResources"} # type: ignore @distributed_trace_async async def get( @@ -154,18 +162,25 @@ async def get( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + request = build_get_request( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, account_name=account_name, private_link_resource_name=private_link_resource_name, + api_version=api_version, template_url=self.get.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -179,5 +194,5 @@ async def get( return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateLinkResources/{privateLinkResourceName}'} # type: ignore + get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateLinkResources/{privateLinkResourceName}"} # type: ignore diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/__init__.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/__init__.py index 0de86b5a4b15..af6716ffd7a8 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/__init__.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/__init__.py @@ -49,10 +49,12 @@ from ._models_py3 import DiffDiskSettings from ._models_py3 import DiskEncryptionConfiguration from ._models_py3 import EncryptionProperties +from ._models_py3 import EndpointAccessProfile from ._models_py3 import EndpointDependency from ._models_py3 import EndpointDetail from ._models_py3 import EnvironmentSetting from ._models_py3 import FixedScaleSettings +from ._models_py3 import IPRule from ._models_py3 import ImageReference from ._models_py3 import InboundNatPool from ._models_py3 import KeyVaultProperties @@ -68,6 +70,7 @@ from ._models_py3 import MountConfiguration from ._models_py3 import NFSMountConfiguration from ._models_py3 import NetworkConfiguration +from ._models_py3 import NetworkProfile from ._models_py3 import NetworkSecurityGroupRule from ._models_py3 import NodePlacementConfiguration from ._models_py3 import OSDisk @@ -122,6 +125,7 @@ DiskEncryptionTarget, DynamicVNetAssignmentScope, ElevationLevel, + EndpointAccessDefaultAction, IPAddressProvisioningType, InboundEndpointProtocol, InterNodeCommunicationState, @@ -186,10 +190,12 @@ 'DiffDiskSettings', 'DiskEncryptionConfiguration', 'EncryptionProperties', + 'EndpointAccessProfile', 'EndpointDependency', 'EndpointDetail', 'EnvironmentSetting', 'FixedScaleSettings', + 'IPRule', 'ImageReference', 'InboundNatPool', 'KeyVaultProperties', @@ -205,6 +211,7 @@ 'MountConfiguration', 'NFSMountConfiguration', 'NetworkConfiguration', + 'NetworkProfile', 'NetworkSecurityGroupRule', 'NodePlacementConfiguration', 'OSDisk', @@ -256,6 +263,7 @@ 'DiskEncryptionTarget', 'DynamicVNetAssignmentScope', 'ElevationLevel', + 'EndpointAccessDefaultAction', 'IPAddressProvisioningType', 'InboundEndpointProtocol', 'InterNodeCommunicationState', diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/_batch_management_client_enums.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/_batch_management_client_enums.py index 94f9dba7d66f..a5b553f83d30 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/_batch_management_client_enums.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/_batch_management_client_enums.py @@ -187,8 +187,8 @@ class DynamicVNetAssignmentScope(with_metaclass(CaseInsensitiveEnumMeta, str, En #: No dynamic VNet assignment is enabled. NONE = "none" - #: Dynamic VNet assignment is done per-job. Don't use this option unless your batch account has - #: been approved to use this feature. + #: Dynamic VNet assignment is done per-job. If this value is set, the network configuration subnet + #: ID must also be set. This feature requires approval before use, please contact support. JOB = "job" class ElevationLevel(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): @@ -200,6 +200,15 @@ class ElevationLevel(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): #: The user is a user with elevated access and operates with full Administrator permissions. ADMIN = "Admin" +class EndpointAccessDefaultAction(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): + """Default action for endpoint access. It is only applicable when publicNetworkAccess is enabled. + """ + + #: Allow client access. + ALLOW = "Allow" + #: Deny client access. + DENY = "Deny" + class InboundEndpointProtocol(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """The protocol of the endpoint. """ @@ -326,14 +335,20 @@ class PrivateEndpointConnectionProvisioningState(with_metaclass(CaseInsensitiveE """The provisioning state of the private endpoint connection. """ - #: The connection status is final and is ready for use if Status is Approved. - SUCCEEDED = "Succeeded" + #: The connection is creating. + CREATING = "Creating" #: The user has requested that the connection status be updated, but the update operation has not #: yet completed. You may not reference the connection when connecting the Batch account. UPDATING = "Updating" + #: The connection is deleting. + DELETING = "Deleting" + #: The connection status is final and is ready for use if Status is Approved. + SUCCEEDED = "Succeeded" #: The user requested that the connection be updated and it failed. You may retry the update #: operation. FAILED = "Failed" + #: The user has cancelled the connection creation. + CANCELLED = "Cancelled" class PrivateLinkServiceConnectionStatus(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """The status of the Batch private endpoint connection diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/_models_py3.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/_models_py3.py index e75663227f39..e0a569a0d8da 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/_models_py3.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/_models_py3.py @@ -766,6 +766,9 @@ class BatchAccount(Resource): :vartype identity: ~azure.mgmt.batch.models.BatchAccountIdentity :ivar account_endpoint: The account endpoint used to interact with the Batch service. :vartype account_endpoint: str + :ivar node_management_endpoint: The endpoint used by compute node to connect to the Batch node + management service. + :vartype node_management_endpoint: str :ivar provisioning_state: The provisioned state of the resource. Possible values include: "Invalid", "Creating", "Deleting", "Succeeded", "Failed", "Cancelled". :vartype provisioning_state: str or ~azure.mgmt.batch.models.ProvisioningState @@ -777,6 +780,9 @@ class BatchAccount(Resource): :ivar public_network_access: If not specified, the default value is 'enabled'. Possible values include: "Enabled", "Disabled". Default value: "Enabled". :vartype public_network_access: str or ~azure.mgmt.batch.models.PublicNetworkAccessType + :ivar network_profile: The network profile only takes effect when publicNetworkAccess is + enabled. + :vartype network_profile: ~azure.mgmt.batch.models.NetworkProfile :ivar private_endpoint_connections: List of private endpoint connections associated with the Batch account. :vartype private_endpoint_connections: list[~azure.mgmt.batch.models.PrivateEndpointConnection] @@ -798,13 +804,10 @@ class BatchAccount(Resource): UserSubscription, quota is managed on the subscription so this value is not returned. :vartype dedicated_core_quota_per_vm_family: list[~azure.mgmt.batch.models.VirtualMachineFamilyCoreQuota] - :ivar dedicated_core_quota_per_vm_family_enforced: Batch is transitioning its core quota system - for dedicated cores to be enforced per Virtual Machine family. During this transitional phase, - the dedicated core quota per Virtual Machine family may not yet be enforced. If this flag is - false, dedicated core quota is enforced via the old dedicatedCoreQuota property on the account - and does not consider Virtual Machine family. If this flag is true, dedicated core quota is - enforced via the dedicatedCoreQuotaPerVMFamily property on the account, and the old - dedicatedCoreQuota does not apply. + :ivar dedicated_core_quota_per_vm_family_enforced: If this flag is true, dedicated core quota + is enforced via both the dedicatedCoreQuotaPerVMFamily and dedicatedCoreQuota properties on the + account. If this flag is false, dedicated core quota is enforced only via the + dedicatedCoreQuota property on the account and does not consider Virtual Machine family. :vartype dedicated_core_quota_per_vm_family_enforced: bool :ivar pool_quota: The pool quota for the Batch account. :vartype pool_quota: int @@ -824,10 +827,10 @@ class BatchAccount(Resource): 'location': {'readonly': True}, 'tags': {'readonly': True}, 'account_endpoint': {'readonly': True}, + 'node_management_endpoint': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'pool_allocation_mode': {'readonly': True}, 'key_vault_reference': {'readonly': True}, - 'public_network_access': {'readonly': True}, 'private_endpoint_connections': {'readonly': True}, 'auto_storage': {'readonly': True}, 'encryption': {'readonly': True}, @@ -848,10 +851,12 @@ class BatchAccount(Resource): 'tags': {'key': 'tags', 'type': '{str}'}, 'identity': {'key': 'identity', 'type': 'BatchAccountIdentity'}, 'account_endpoint': {'key': 'properties.accountEndpoint', 'type': 'str'}, + 'node_management_endpoint': {'key': 'properties.nodeManagementEndpoint', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'pool_allocation_mode': {'key': 'properties.poolAllocationMode', 'type': 'str'}, 'key_vault_reference': {'key': 'properties.keyVaultReference', 'type': 'KeyVaultReference'}, 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, + 'network_profile': {'key': 'properties.networkProfile', 'type': 'NetworkProfile'}, 'private_endpoint_connections': {'key': 'properties.privateEndpointConnections', 'type': '[PrivateEndpointConnection]'}, 'auto_storage': {'key': 'properties.autoStorage', 'type': 'AutoStorageProperties'}, 'encryption': {'key': 'properties.encryption', 'type': 'EncryptionProperties'}, @@ -868,19 +873,29 @@ def __init__( self, *, identity: Optional["BatchAccountIdentity"] = None, + public_network_access: Optional[Union[str, "PublicNetworkAccessType"]] = "Enabled", + network_profile: Optional["NetworkProfile"] = None, **kwargs ): """ :keyword identity: The identity of the Batch account. :paramtype identity: ~azure.mgmt.batch.models.BatchAccountIdentity + :keyword public_network_access: If not specified, the default value is 'enabled'. Possible + values include: "Enabled", "Disabled". Default value: "Enabled". + :paramtype public_network_access: str or ~azure.mgmt.batch.models.PublicNetworkAccessType + :keyword network_profile: The network profile only takes effect when publicNetworkAccess is + enabled. + :paramtype network_profile: ~azure.mgmt.batch.models.NetworkProfile """ super(BatchAccount, self).__init__(**kwargs) self.identity = identity self.account_endpoint = None + self.node_management_endpoint = None self.provisioning_state = None self.pool_allocation_mode = None self.key_vault_reference = None - self.public_network_access = None + self.public_network_access = public_network_access + self.network_profile = network_profile self.private_endpoint_connections = None self.auto_storage = None self.encryption = None @@ -918,6 +933,9 @@ class BatchAccountCreateParameters(msrest.serialization.Model): :ivar public_network_access: If not specified, the default value is 'enabled'. Possible values include: "Enabled", "Disabled". Default value: "Enabled". :vartype public_network_access: str or ~azure.mgmt.batch.models.PublicNetworkAccessType + :ivar network_profile: The network profile only takes effect when publicNetworkAccess is + enabled. + :vartype network_profile: ~azure.mgmt.batch.models.NetworkProfile :ivar encryption: Configures how customer data is encrypted inside the Batch account. By default, accounts are encrypted using a Microsoft managed key. For additional control, a customer-managed key can be used instead. @@ -940,6 +958,7 @@ class BatchAccountCreateParameters(msrest.serialization.Model): 'pool_allocation_mode': {'key': 'properties.poolAllocationMode', 'type': 'str'}, 'key_vault_reference': {'key': 'properties.keyVaultReference', 'type': 'KeyVaultReference'}, 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, + 'network_profile': {'key': 'properties.networkProfile', 'type': 'NetworkProfile'}, 'encryption': {'key': 'properties.encryption', 'type': 'EncryptionProperties'}, 'allowed_authentication_modes': {'key': 'properties.allowedAuthenticationModes', 'type': '[str]'}, } @@ -954,6 +973,7 @@ def __init__( pool_allocation_mode: Optional[Union[str, "PoolAllocationMode"]] = None, key_vault_reference: Optional["KeyVaultReference"] = None, public_network_access: Optional[Union[str, "PublicNetworkAccessType"]] = "Enabled", + network_profile: Optional["NetworkProfile"] = None, encryption: Optional["EncryptionProperties"] = None, allowed_authentication_modes: Optional[List[Union[str, "AuthenticationMode"]]] = None, **kwargs @@ -979,6 +999,9 @@ def __init__( :keyword public_network_access: If not specified, the default value is 'enabled'. Possible values include: "Enabled", "Disabled". Default value: "Enabled". :paramtype public_network_access: str or ~azure.mgmt.batch.models.PublicNetworkAccessType + :keyword network_profile: The network profile only takes effect when publicNetworkAccess is + enabled. + :paramtype network_profile: ~azure.mgmt.batch.models.NetworkProfile :keyword encryption: Configures how customer data is encrypted inside the Batch account. By default, accounts are encrypted using a Microsoft managed key. For additional control, a customer-managed key can be used instead. @@ -997,6 +1020,7 @@ def __init__( self.pool_allocation_mode = pool_allocation_mode self.key_vault_reference = key_vault_reference self.public_network_access = public_network_access + self.network_profile = network_profile self.encryption = encryption self.allowed_authentication_modes = allowed_authentication_modes @@ -1175,6 +1199,12 @@ class BatchAccountUpdateParameters(msrest.serialization.Model): that can be used to authenticate with the data plane. This does not affect authentication with the control plane. :vartype allowed_authentication_modes: list[str or ~azure.mgmt.batch.models.AuthenticationMode] + :ivar public_network_access: If not specified, the default value is 'enabled'. Possible values + include: "Enabled", "Disabled". Default value: "Enabled". + :vartype public_network_access: str or ~azure.mgmt.batch.models.PublicNetworkAccessType + :ivar network_profile: The network profile only takes effect when publicNetworkAccess is + enabled. + :vartype network_profile: ~azure.mgmt.batch.models.NetworkProfile """ _attribute_map = { @@ -1183,6 +1213,8 @@ class BatchAccountUpdateParameters(msrest.serialization.Model): 'auto_storage': {'key': 'properties.autoStorage', 'type': 'AutoStorageBaseProperties'}, 'encryption': {'key': 'properties.encryption', 'type': 'EncryptionProperties'}, 'allowed_authentication_modes': {'key': 'properties.allowedAuthenticationModes', 'type': '[str]'}, + 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, + 'network_profile': {'key': 'properties.networkProfile', 'type': 'NetworkProfile'}, } def __init__( @@ -1193,6 +1225,8 @@ def __init__( auto_storage: Optional["AutoStorageBaseProperties"] = None, encryption: Optional["EncryptionProperties"] = None, allowed_authentication_modes: Optional[List[Union[str, "AuthenticationMode"]]] = None, + public_network_access: Optional[Union[str, "PublicNetworkAccessType"]] = "Enabled", + network_profile: Optional["NetworkProfile"] = None, **kwargs ): """ @@ -1211,6 +1245,12 @@ def __init__( authentication with the control plane. :paramtype allowed_authentication_modes: list[str or ~azure.mgmt.batch.models.AuthenticationMode] + :keyword public_network_access: If not specified, the default value is 'enabled'. Possible + values include: "Enabled", "Disabled". Default value: "Enabled". + :paramtype public_network_access: str or ~azure.mgmt.batch.models.PublicNetworkAccessType + :keyword network_profile: The network profile only takes effect when publicNetworkAccess is + enabled. + :paramtype network_profile: ~azure.mgmt.batch.models.NetworkProfile """ super(BatchAccountUpdateParameters, self).__init__(**kwargs) self.tags = tags @@ -1218,6 +1258,8 @@ def __init__( self.auto_storage = auto_storage self.encryption = encryption self.allowed_authentication_modes = allowed_authentication_modes + self.public_network_access = public_network_access + self.network_profile = network_profile class BatchLocationQuota(msrest.serialization.Model): @@ -2451,6 +2493,46 @@ def __init__( self.key_vault_properties = key_vault_properties +class EndpointAccessProfile(msrest.serialization.Model): + """Network access profile for Batch endpoint. + + All required parameters must be populated in order to send to Azure. + + :ivar default_action: Required. Default action for endpoint access. It is only applicable when + publicNetworkAccess is enabled. Possible values include: "Allow", "Deny". + :vartype default_action: str or ~azure.mgmt.batch.models.EndpointAccessDefaultAction + :ivar ip_rules: Array of IP ranges to filter client IP address. + :vartype ip_rules: list[~azure.mgmt.batch.models.IPRule] + """ + + _validation = { + 'default_action': {'required': True}, + } + + _attribute_map = { + 'default_action': {'key': 'defaultAction', 'type': 'str'}, + 'ip_rules': {'key': 'ipRules', 'type': '[IPRule]'}, + } + + def __init__( + self, + *, + default_action: Union[str, "EndpointAccessDefaultAction"], + ip_rules: Optional[List["IPRule"]] = None, + **kwargs + ): + """ + :keyword default_action: Required. Default action for endpoint access. It is only applicable + when publicNetworkAccess is enabled. Possible values include: "Allow", "Deny". + :paramtype default_action: str or ~azure.mgmt.batch.models.EndpointAccessDefaultAction + :keyword ip_rules: Array of IP ranges to filter client IP address. + :paramtype ip_rules: list[~azure.mgmt.batch.models.IPRule] + """ + super(EndpointAccessProfile, self).__init__(**kwargs) + self.default_action = default_action + self.ip_rules = ip_rules + + class EndpointDependency(msrest.serialization.Model): """A domain name and connection details used to access a dependency. @@ -2778,6 +2860,45 @@ def __init__( self.network_security_group_rules = network_security_group_rules +class IPRule(msrest.serialization.Model): + """Rule to filter client IP address. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar action: Action when client IP address is matched. Has constant value: "Allow". + :vartype action: str + :ivar value: Required. IPv4 address, or IPv4 address range in CIDR format. + :vartype value: str + """ + + _validation = { + 'action': {'required': True, 'constant': True}, + 'value': {'required': True}, + } + + _attribute_map = { + 'action': {'key': 'action', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + action = "Allow" + + def __init__( + self, + *, + value: str, + **kwargs + ): + """ + :keyword value: Required. IPv4 address, or IPv4 address range in CIDR format. + :paramtype value: str + """ + super(IPRule, self).__init__(**kwargs) + self.value = value + + class KeyVaultProperties(msrest.serialization.Model): """KeyVault configuration when using an encryption KeySource of Microsoft.KeyVault. @@ -3280,6 +3401,42 @@ def __init__( self.public_ip_address_configuration = public_ip_address_configuration +class NetworkProfile(msrest.serialization.Model): + """Network profile for Batch account, which contains network rule settings for each endpoint. + + :ivar account_access: Network access profile for batchAccount endpoint (Batch account data + plane API). + :vartype account_access: ~azure.mgmt.batch.models.EndpointAccessProfile + :ivar node_management_access: Network access profile for nodeManagement endpoint (Batch service + managing compute nodes for Batch pools). + :vartype node_management_access: ~azure.mgmt.batch.models.EndpointAccessProfile + """ + + _attribute_map = { + 'account_access': {'key': 'accountAccess', 'type': 'EndpointAccessProfile'}, + 'node_management_access': {'key': 'nodeManagementAccess', 'type': 'EndpointAccessProfile'}, + } + + def __init__( + self, + *, + account_access: Optional["EndpointAccessProfile"] = None, + node_management_access: Optional["EndpointAccessProfile"] = None, + **kwargs + ): + """ + :keyword account_access: Network access profile for batchAccount endpoint (Batch account data + plane API). + :paramtype account_access: ~azure.mgmt.batch.models.EndpointAccessProfile + :keyword node_management_access: Network access profile for nodeManagement endpoint (Batch + service managing compute nodes for Batch pools). + :paramtype node_management_access: ~azure.mgmt.batch.models.EndpointAccessProfile + """ + super(NetworkProfile, self).__init__(**kwargs) + self.account_access = account_access + self.node_management_access = node_management_access + + class NetworkSecurityGroupRule(msrest.serialization.Model): """A network security group rule to apply to an inbound endpoint. @@ -3709,8 +3866,8 @@ class Pool(ProxyResource): :vartype deployment_configuration: ~azure.mgmt.batch.models.DeploymentConfiguration :ivar current_dedicated_nodes: The number of compute nodes currently in the pool. :vartype current_dedicated_nodes: int - :ivar current_low_priority_nodes: The number of Spot/low-priority compute nodes currently in - the pool. + :ivar current_low_priority_nodes: The number of low-priority compute nodes currently in the + pool. :vartype current_low_priority_nodes: int :ivar scale_settings: Defines the desired size of the pool. This can either be 'fixedScale' where the requested targetDedicatedNodes is specified, or 'autoScale' which defines a formula @@ -4008,11 +4165,13 @@ class PrivateEndpointConnection(ProxyResource): :ivar etag: The ETag of the resource, used for concurrency statements. :vartype etag: str :ivar provisioning_state: The provisioning state of the private endpoint connection. Possible - values include: "Succeeded", "Updating", "Failed". + values include: "Creating", "Updating", "Deleting", "Succeeded", "Failed", "Cancelled". :vartype provisioning_state: str or ~azure.mgmt.batch.models.PrivateEndpointConnectionProvisioningState :ivar private_endpoint: The private endpoint of the private endpoint connection. :vartype private_endpoint: ~azure.mgmt.batch.models.PrivateEndpoint + :ivar group_ids: The value has one and only one group id. + :vartype group_ids: list[str] :ivar private_link_service_connection_state: The private link service connection state of the private endpoint connection. :vartype private_link_service_connection_state: @@ -4025,6 +4184,8 @@ class PrivateEndpointConnection(ProxyResource): 'type': {'readonly': True}, 'etag': {'readonly': True}, 'provisioning_state': {'readonly': True}, + 'private_endpoint': {'readonly': True}, + 'group_ids': {'readonly': True}, } _attribute_map = { @@ -4034,19 +4195,17 @@ class PrivateEndpointConnection(ProxyResource): 'etag': {'key': 'etag', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'private_endpoint': {'key': 'properties.privateEndpoint', 'type': 'PrivateEndpoint'}, + 'group_ids': {'key': 'properties.groupIds', 'type': '[str]'}, 'private_link_service_connection_state': {'key': 'properties.privateLinkServiceConnectionState', 'type': 'PrivateLinkServiceConnectionState'}, } def __init__( self, *, - private_endpoint: Optional["PrivateEndpoint"] = None, private_link_service_connection_state: Optional["PrivateLinkServiceConnectionState"] = None, **kwargs ): """ - :keyword private_endpoint: The private endpoint of the private endpoint connection. - :paramtype private_endpoint: ~azure.mgmt.batch.models.PrivateEndpoint :keyword private_link_service_connection_state: The private link service connection state of the private endpoint connection. :paramtype private_link_service_connection_state: @@ -4054,7 +4213,8 @@ def __init__( """ super(PrivateEndpointConnection, self).__init__(**kwargs) self.provisioning_state = None - self.private_endpoint = private_endpoint + self.private_endpoint = None + self.group_ids = None self.private_link_service_connection_state = private_link_service_connection_state @@ -4166,9 +4326,9 @@ class PublicIPAddressConfiguration(msrest.serialization.Model): "UserManaged", "NoPublicIPAddresses". :vartype provision: str or ~azure.mgmt.batch.models.IPAddressProvisioningType :ivar ip_address_ids: The number of IPs specified here limits the maximum size of the Pool - - 100 dedicated nodes or 100 Spot/low-priority nodes can be allocated for each public IP. For - example, a pool needing 250 dedicated VMs would need at least 3 public IPs specified. Each - element of this collection is of the form: + 100 dedicated nodes or 100 low-priority nodes can be allocated for each public IP. For example, + a pool needing 250 dedicated VMs would need at least 3 public IPs specified. Each element of + this collection is of the form: /subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Network/publicIPAddresses/{ip}. :vartype ip_address_ids: list[str] """ @@ -4190,9 +4350,9 @@ def __init__( "UserManaged", "NoPublicIPAddresses". :paramtype provision: str or ~azure.mgmt.batch.models.IPAddressProvisioningType :keyword ip_address_ids: The number of IPs specified here limits the maximum size of the Pool - - 100 dedicated nodes or 100 Spot/low-priority nodes can be allocated for each public IP. For - example, a pool needing 250 dedicated VMs would need at least 3 public IPs specified. Each - element of this collection is of the form: + 100 dedicated nodes or 100 low-priority nodes can be allocated for each public IP. For example, + a pool needing 250 dedicated VMs would need at least 3 public IPs specified. Each element of + this collection is of the form: /subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Network/publicIPAddresses/{ip}. :paramtype ip_address_ids: list[str] """ @@ -4256,8 +4416,7 @@ class ResizeOperationStatus(msrest.serialization.Model): :ivar target_dedicated_nodes: The desired number of dedicated compute nodes in the pool. :vartype target_dedicated_nodes: int - :ivar target_low_priority_nodes: The desired number of Spot/low-priority compute nodes in the - pool. + :ivar target_low_priority_nodes: The desired number of low-priority compute nodes in the pool. :vartype target_low_priority_nodes: int :ivar resize_timeout: The default value is 15 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service returns an error; if you are calling the @@ -4297,8 +4456,8 @@ def __init__( """ :keyword target_dedicated_nodes: The desired number of dedicated compute nodes in the pool. :paramtype target_dedicated_nodes: int - :keyword target_low_priority_nodes: The desired number of Spot/low-priority compute nodes in - the pool. + :keyword target_low_priority_nodes: The desired number of low-priority compute nodes in the + pool. :paramtype target_low_priority_nodes: int :keyword resize_timeout: The default value is 15 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service returns an error; if you are calling diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_application_operations.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_application_operations.py index d1aa63d929df..cc56b50b13ee 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_application_operations.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_application_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,9 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Iterable, Optional, TypeVar + +from msrest import Serializer from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged @@ -16,7 +17,6 @@ from azure.core.rest import HttpRequest from azure.core.tracing.decorator import distributed_trace from azure.mgmt.core.exceptions import ARMErrorFormat -from msrest import Serializer from .. import models as _models from .._vendor import _convert_request, _format_url_section @@ -37,12 +37,12 @@ def build_create_request( content: Any = None, **kwargs: Any ) -> HttpRequest: + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2022-01-01" accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str', max_length=24, min_length=3, pattern=r'^[a-zA-Z0-9]+$'), @@ -50,23 +50,23 @@ def build_create_request( "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, json=json, content=content, **kwargs @@ -80,10 +80,11 @@ def build_delete_request( subscription_id: str, **kwargs: Any ) -> HttpRequest: - api_version = "2022-01-01" + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str', max_length=24, min_length=3, pattern=r'^[a-zA-Z0-9]+$'), @@ -91,21 +92,21 @@ def build_delete_request( "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -117,10 +118,11 @@ def build_get_request( subscription_id: str, **kwargs: Any ) -> HttpRequest: - api_version = "2022-01-01" + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str', max_length=24, min_length=3, pattern=r'^[a-zA-Z0-9]+$'), @@ -128,21 +130,21 @@ def build_get_request( "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -157,12 +159,12 @@ def build_update_request( content: Any = None, **kwargs: Any ) -> HttpRequest: + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2022-01-01" accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str', max_length=24, min_length=3, pattern=r'^[a-zA-Z0-9]+$'), @@ -170,23 +172,23 @@ def build_update_request( "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, json=json, content=content, **kwargs @@ -201,33 +203,34 @@ def build_list_request( maxresults: Optional[int] = None, **kwargs: Any ) -> HttpRequest: - api_version = "2022-01-01" + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str', max_length=24, min_length=3, pattern=r'^[a-zA-Z0-9]+$'), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if maxresults is not None: - query_parameters['maxresults'] = _SERIALIZER.query("maxresults", maxresults, 'int') - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters['maxresults'] = _SERIALIZER.query("maxresults", maxresults, 'int') + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -270,7 +273,7 @@ def create( :type account_name: str :param application_name: The name of the application. This must be unique within the account. :type application_name: str - :param parameters: The parameters for the request. + :param parameters: The parameters for the request. Default value is None. :type parameters: ~azure.mgmt.batch.models.Application :keyword callable cls: A custom type or function that will be passed the direct response :return: Application, or the result of cls(response) @@ -283,6 +286,7 @@ def create( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if parameters is not None: @@ -295,6 +299,7 @@ def create( account_name=account_name, application_name=application_name, subscription_id=self._config.subscription_id, + api_version=api_version, content_type=content_type, json=_json, template_url=self.create.metadata['url'], @@ -302,7 +307,11 @@ def create( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -316,11 +325,11 @@ def create( return deserialized - create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}'} # type: ignore + create.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}"} # type: ignore @distributed_trace - def delete( + def delete( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, account_name: str, @@ -346,18 +355,25 @@ def delete( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + request = build_delete_request( resource_group_name=resource_group_name, account_name=account_name, application_name=application_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self.delete.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -367,7 +383,7 @@ def delete( if cls: return cls(pipeline_response, None, {}) - delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}'} # type: ignore + delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}"} # type: ignore @distributed_trace @@ -397,18 +413,25 @@ def get( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + request = build_get_request( resource_group_name=resource_group_name, account_name=account_name, application_name=application_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self.get.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -422,7 +445,7 @@ def get( return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}'} # type: ignore + get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}"} # type: ignore @distributed_trace @@ -455,6 +478,7 @@ def update( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] _json = self._serialize.body(parameters, 'Application') @@ -464,6 +488,7 @@ def update( account_name=account_name, application_name=application_name, subscription_id=self._config.subscription_id, + api_version=api_version, content_type=content_type, json=_json, template_url=self.update.metadata['url'], @@ -471,7 +496,11 @@ def update( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -485,7 +514,7 @@ def update( return deserialized - update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}'} # type: ignore + update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}"} # type: ignore @distributed_trace @@ -502,7 +531,8 @@ def list( :type resource_group_name: str :param account_name: The name of the Batch account. :type account_name: str - :param maxresults: The maximum number of items to return in the response. + :param maxresults: The maximum number of items to return in the response. Default value is + None. :type maxresults: int :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ListApplicationsResult or the result of @@ -510,6 +540,8 @@ def list( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.batch.models.ListApplicationsResult] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.ListApplicationsResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError @@ -522,6 +554,7 @@ def prepare_request(next_link=None): resource_group_name=resource_group_name, account_name=account_name, subscription_id=self._config.subscription_id, + api_version=api_version, maxresults=maxresults, template_url=self.list.metadata['url'], ) @@ -534,6 +567,7 @@ def prepare_request(next_link=None): resource_group_name=resource_group_name, account_name=account_name, subscription_id=self._config.subscription_id, + api_version=api_version, maxresults=maxresults, template_url=next_link, ) @@ -552,7 +586,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -565,4 +603,4 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications'} # type: ignore + list.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications"} # type: ignore diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_application_package_operations.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_application_package_operations.py index 2245f75e4f00..ab8fda23ca5b 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_application_package_operations.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_application_package_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,9 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Iterable, Optional, TypeVar + +from msrest import Serializer from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged @@ -16,7 +17,6 @@ from azure.core.rest import HttpRequest from azure.core.tracing.decorator import distributed_trace from azure.mgmt.core.exceptions import ARMErrorFormat -from msrest import Serializer from .. import models as _models from .._vendor import _convert_request, _format_url_section @@ -38,12 +38,12 @@ def build_activate_request( content: Any = None, **kwargs: Any ) -> HttpRequest: + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2022-01-01" accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}/activate') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}/activate") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str', max_length=24, min_length=3, pattern=r'^[a-zA-Z0-9]+$'), @@ -52,23 +52,23 @@ def build_activate_request( "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, json=json, content=content, **kwargs @@ -86,12 +86,12 @@ def build_create_request( content: Any = None, **kwargs: Any ) -> HttpRequest: + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2022-01-01" accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str', max_length=24, min_length=3, pattern=r'^[a-zA-Z0-9]+$'), @@ -100,23 +100,23 @@ def build_create_request( "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, json=json, content=content, **kwargs @@ -131,10 +131,11 @@ def build_delete_request( subscription_id: str, **kwargs: Any ) -> HttpRequest: - api_version = "2022-01-01" + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str', max_length=24, min_length=3, pattern=r'^[a-zA-Z0-9]+$'), @@ -143,21 +144,21 @@ def build_delete_request( "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -170,10 +171,11 @@ def build_get_request( subscription_id: str, **kwargs: Any ) -> HttpRequest: - api_version = "2022-01-01" + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str', max_length=24, min_length=3, pattern=r'^[a-zA-Z0-9]+$'), @@ -182,21 +184,21 @@ def build_get_request( "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -210,10 +212,11 @@ def build_list_request( maxresults: Optional[int] = None, **kwargs: Any ) -> HttpRequest: - api_version = "2022-01-01" + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str', max_length=24, min_length=3, pattern=r'^[a-zA-Z0-9]+$'), @@ -221,23 +224,23 @@ def build_list_request( "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if maxresults is not None: - query_parameters['maxresults'] = _SERIALIZER.query("maxresults", maxresults, 'int') - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters['maxresults'] = _SERIALIZER.query("maxresults", maxresults, 'int') + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -298,6 +301,7 @@ def activate( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] _json = self._serialize.body(parameters, 'ActivateApplicationPackageParameters') @@ -308,6 +312,7 @@ def activate( application_name=application_name, version_name=version_name, subscription_id=self._config.subscription_id, + api_version=api_version, content_type=content_type, json=_json, template_url=self.activate.metadata['url'], @@ -315,7 +320,11 @@ def activate( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -329,7 +338,7 @@ def activate( return deserialized - activate.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}/activate'} # type: ignore + activate.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}/activate"} # type: ignore @distributed_trace @@ -355,7 +364,7 @@ def create( :type application_name: str :param version_name: The version of the application. :type version_name: str - :param parameters: The parameters for the request. + :param parameters: The parameters for the request. Default value is None. :type parameters: ~azure.mgmt.batch.models.ApplicationPackage :keyword callable cls: A custom type or function that will be passed the direct response :return: ApplicationPackage, or the result of cls(response) @@ -368,6 +377,7 @@ def create( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if parameters is not None: @@ -381,6 +391,7 @@ def create( application_name=application_name, version_name=version_name, subscription_id=self._config.subscription_id, + api_version=api_version, content_type=content_type, json=_json, template_url=self.create.metadata['url'], @@ -388,7 +399,11 @@ def create( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -402,11 +417,11 @@ def create( return deserialized - create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}'} # type: ignore + create.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}"} # type: ignore @distributed_trace - def delete( + def delete( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, account_name: str, @@ -435,6 +450,8 @@ def delete( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + request = build_delete_request( resource_group_name=resource_group_name, @@ -442,12 +459,17 @@ def delete( application_name=application_name, version_name=version_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self.delete.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -457,7 +479,7 @@ def delete( if cls: return cls(pipeline_response, None, {}) - delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}'} # type: ignore + delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}"} # type: ignore @distributed_trace @@ -490,6 +512,8 @@ def get( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + request = build_get_request( resource_group_name=resource_group_name, @@ -497,12 +521,17 @@ def get( application_name=application_name, version_name=version_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self.get.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -516,7 +545,7 @@ def get( return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}'} # type: ignore + get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}"} # type: ignore @distributed_trace @@ -536,7 +565,8 @@ def list( :type account_name: str :param application_name: The name of the application. This must be unique within the account. :type application_name: str - :param maxresults: The maximum number of items to return in the response. + :param maxresults: The maximum number of items to return in the response. Default value is + None. :type maxresults: int :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ListApplicationPackagesResult or the result of @@ -544,6 +574,8 @@ def list( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.batch.models.ListApplicationPackagesResult] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.ListApplicationPackagesResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError @@ -557,6 +589,7 @@ def prepare_request(next_link=None): account_name=account_name, application_name=application_name, subscription_id=self._config.subscription_id, + api_version=api_version, maxresults=maxresults, template_url=self.list.metadata['url'], ) @@ -570,6 +603,7 @@ def prepare_request(next_link=None): account_name=account_name, application_name=application_name, subscription_id=self._config.subscription_id, + api_version=api_version, maxresults=maxresults, template_url=next_link, ) @@ -588,7 +622,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -601,4 +639,4 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions'} # type: ignore + list.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions"} # type: ignore diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_batch_account_operations.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_batch_account_operations.py index d649bee6d8dc..c184cb9ec99f 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_batch_account_operations.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_batch_account_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,9 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union -import warnings +from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union + +from msrest import Serializer from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged @@ -18,7 +19,6 @@ from azure.core.tracing.decorator import distributed_trace from azure.mgmt.core.exceptions import ARMErrorFormat from azure.mgmt.core.polling.arm_polling import ARMPolling -from msrest import Serializer from .. import models as _models from .._vendor import _convert_request, _format_url_section @@ -38,35 +38,35 @@ def build_create_request_initial( content: Any = None, **kwargs: Any ) -> HttpRequest: + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2022-01-01" accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str', max_length=24, min_length=3, pattern=r'^[a-z0-9]+$'), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, json=json, content=content, **kwargs @@ -82,35 +82,35 @@ def build_update_request( content: Any = None, **kwargs: Any ) -> HttpRequest: + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2022-01-01" accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str', max_length=24, min_length=3, pattern=r'^[a-zA-Z0-9]+$'), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, json=json, content=content, **kwargs @@ -123,31 +123,32 @@ def build_delete_request_initial( subscription_id: str, **kwargs: Any ) -> HttpRequest: - api_version = "2022-01-01" + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str', max_length=24, min_length=3, pattern=r'^[a-zA-Z0-9]+$'), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -158,31 +159,32 @@ def build_get_request( subscription_id: str, **kwargs: Any ) -> HttpRequest: - api_version = "2022-01-01" + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str', max_length=24, min_length=3, pattern=r'^[a-zA-Z0-9]+$'), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -191,29 +193,30 @@ def build_list_request( subscription_id: str, **kwargs: Any ) -> HttpRequest: - api_version = "2022-01-01" + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/providers/Microsoft.Batch/batchAccounts') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/batchAccounts") path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -223,30 +226,31 @@ def build_list_by_resource_group_request( subscription_id: str, **kwargs: Any ) -> HttpRequest: - api_version = "2022-01-01" + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -257,31 +261,32 @@ def build_synchronize_auto_storage_keys_request( subscription_id: str, **kwargs: Any ) -> HttpRequest: - api_version = "2022-01-01" + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/syncAutoStorageKeys') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/syncAutoStorageKeys") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str', max_length=24, min_length=3, pattern=r'^[a-zA-Z0-9]+$'), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -295,35 +300,35 @@ def build_regenerate_key_request( content: Any = None, **kwargs: Any ) -> HttpRequest: + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2022-01-01" accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/regenerateKeys') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/regenerateKeys") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str', max_length=24, min_length=3, pattern=r'^[a-zA-Z0-9]+$'), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, json=json, content=content, **kwargs @@ -336,31 +341,32 @@ def build_get_keys_request( subscription_id: str, **kwargs: Any ) -> HttpRequest: - api_version = "2022-01-01" + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/listKeys') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/listKeys") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str', max_length=24, min_length=3, pattern=r'^[a-zA-Z0-9]+$'), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -371,31 +377,32 @@ def build_list_detectors_request( account_name: str, **kwargs: Any ) -> HttpRequest: - api_version = "2022-01-01" + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/detectors') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/detectors") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str', max_length=24, min_length=3, pattern=r'^[a-zA-Z0-9]+$'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -407,10 +414,11 @@ def build_get_detector_request( detector_id: str, **kwargs: Any ) -> HttpRequest: - api_version = "2022-01-01" + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/detectors/{detectorId}') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/detectors/{detectorId}") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), @@ -418,21 +426,21 @@ def build_get_detector_request( "detectorId": _SERIALIZER.url("detector_id", detector_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -443,31 +451,32 @@ def build_list_outbound_network_dependencies_endpoints_request( subscription_id: str, **kwargs: Any ) -> HttpRequest: - api_version = "2022-01-01" + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/outboundNetworkDependenciesEndpoints') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/outboundNetworkDependenciesEndpoints") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str', max_length=24, min_length=3, pattern=r'^[a-zA-Z0-9]+$'), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -506,6 +515,7 @@ def _create_initial( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] _json = self._serialize.body(parameters, 'BatchAccountCreateParameters') @@ -514,6 +524,7 @@ def _create_initial( resource_group_name=resource_group_name, account_name=account_name, subscription_id=self._config.subscription_id, + api_version=api_version, content_type=content_type, json=_json, template_url=self._create_initial.metadata['url'], @@ -521,7 +532,11 @@ def _create_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -543,7 +558,7 @@ def _create_initial( return deserialized - _create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}'} # type: ignore + _create_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}"} # type: ignore @distributed_trace @@ -580,8 +595,9 @@ def begin_create( :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.batch.models.BatchAccount] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.BatchAccount"] lro_delay = kwargs.pop( 'polling_interval', @@ -593,6 +609,7 @@ def begin_create( resource_group_name=resource_group_name, account_name=account_name, parameters=parameters, + api_version=api_version, content_type=content_type, cls=lambda x,y,z: x, **kwargs @@ -617,10 +634,9 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}'} # type: ignore + begin_create.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}"} # type: ignore @distributed_trace def update( @@ -649,6 +665,7 @@ def update( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] _json = self._serialize.body(parameters, 'BatchAccountUpdateParameters') @@ -657,6 +674,7 @@ def update( resource_group_name=resource_group_name, account_name=account_name, subscription_id=self._config.subscription_id, + api_version=api_version, content_type=content_type, json=_json, template_url=self.update.metadata['url'], @@ -664,7 +682,11 @@ def update( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -678,10 +700,10 @@ def update( return deserialized - update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}'} # type: ignore + update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}"} # type: ignore - def _delete_initial( + def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, account_name: str, @@ -693,17 +715,24 @@ def _delete_initial( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + request = build_delete_request_initial( resource_group_name=resource_group_name, account_name=account_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self._delete_initial.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200, 202, 204]: @@ -719,11 +748,11 @@ def _delete_initial( if cls: return cls(pipeline_response, None, response_headers) - _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}'} # type: ignore + _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}"} # type: ignore @distributed_trace - def begin_delete( + def begin_delete( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, account_name: str, @@ -747,7 +776,8 @@ def begin_delete( :rtype: ~azure.core.polling.LROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.PollingMethod] + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( 'polling_interval', @@ -758,6 +788,7 @@ def begin_delete( raw_result = self._delete_initial( resource_group_name=resource_group_name, account_name=account_name, + api_version=api_version, cls=lambda x,y,z: x, **kwargs ) @@ -778,10 +809,9 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}'} # type: ignore + begin_delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}"} # type: ignore @distributed_trace def get( @@ -807,17 +837,24 @@ def get( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + request = build_get_request( resource_group_name=resource_group_name, account_name=account_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self.get.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -831,7 +868,7 @@ def get( return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}'} # type: ignore + get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}"} # type: ignore @distributed_trace @@ -847,6 +884,8 @@ def list( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.batch.models.BatchAccountListResult] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.BatchAccountListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError @@ -857,6 +896,7 @@ def prepare_request(next_link=None): request = build_list_request( subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self.list.metadata['url'], ) request = _convert_request(request) @@ -866,6 +906,7 @@ def prepare_request(next_link=None): request = build_list_request( subscription_id=self._config.subscription_id, + api_version=api_version, template_url=next_link, ) request = _convert_request(request) @@ -883,7 +924,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -896,7 +941,7 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Batch/batchAccounts'} # type: ignore + list.metadata = {'url': "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/batchAccounts"} # type: ignore @distributed_trace def list_by_resource_group( @@ -914,6 +959,8 @@ def list_by_resource_group( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.batch.models.BatchAccountListResult] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.BatchAccountListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError @@ -925,6 +972,7 @@ def prepare_request(next_link=None): request = build_list_by_resource_group_request( resource_group_name=resource_group_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self.list_by_resource_group.metadata['url'], ) request = _convert_request(request) @@ -935,6 +983,7 @@ def prepare_request(next_link=None): request = build_list_by_resource_group_request( resource_group_name=resource_group_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=next_link, ) request = _convert_request(request) @@ -952,7 +1001,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -965,10 +1018,10 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts'} # type: ignore + list_by_resource_group.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts"} # type: ignore @distributed_trace - def synchronize_auto_storage_keys( + def synchronize_auto_storage_keys( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, account_name: str, @@ -992,17 +1045,24 @@ def synchronize_auto_storage_keys( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + request = build_synchronize_auto_storage_keys_request( resource_group_name=resource_group_name, account_name=account_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self.synchronize_auto_storage_keys.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [204]: @@ -1012,7 +1072,7 @@ def synchronize_auto_storage_keys( if cls: return cls(pipeline_response, None, {}) - synchronize_auto_storage_keys.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/syncAutoStorageKeys'} # type: ignore + synchronize_auto_storage_keys.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/syncAutoStorageKeys"} # type: ignore @distributed_trace @@ -1047,6 +1107,7 @@ def regenerate_key( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] _json = self._serialize.body(parameters, 'BatchAccountRegenerateKeyParameters') @@ -1055,6 +1116,7 @@ def regenerate_key( resource_group_name=resource_group_name, account_name=account_name, subscription_id=self._config.subscription_id, + api_version=api_version, content_type=content_type, json=_json, template_url=self.regenerate_key.metadata['url'], @@ -1062,7 +1124,11 @@ def regenerate_key( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1076,7 +1142,7 @@ def regenerate_key( return deserialized - regenerate_key.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/regenerateKeys'} # type: ignore + regenerate_key.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/regenerateKeys"} # type: ignore @distributed_trace @@ -1108,17 +1174,24 @@ def get_keys( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + request = build_get_keys_request( resource_group_name=resource_group_name, account_name=account_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self.get_keys.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1132,7 +1205,7 @@ def get_keys( return deserialized - get_keys.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/listKeys'} # type: ignore + get_keys.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/listKeys"} # type: ignore @distributed_trace @@ -1153,6 +1226,8 @@ def list_detectors( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.batch.models.DetectorListResult] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.DetectorListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError @@ -1165,6 +1240,7 @@ def prepare_request(next_link=None): resource_group_name=resource_group_name, subscription_id=self._config.subscription_id, account_name=account_name, + api_version=api_version, template_url=self.list_detectors.metadata['url'], ) request = _convert_request(request) @@ -1176,6 +1252,7 @@ def prepare_request(next_link=None): resource_group_name=resource_group_name, subscription_id=self._config.subscription_id, account_name=account_name, + api_version=api_version, template_url=next_link, ) request = _convert_request(request) @@ -1193,7 +1270,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1206,7 +1287,7 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - list_detectors.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/detectors'} # type: ignore + list_detectors.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/detectors"} # type: ignore @distributed_trace def get_detector( @@ -1235,18 +1316,25 @@ def get_detector( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + request = build_get_detector_request( resource_group_name=resource_group_name, subscription_id=self._config.subscription_id, account_name=account_name, detector_id=detector_id, + api_version=api_version, template_url=self.get_detector.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1260,7 +1348,7 @@ def get_detector( return deserialized - get_detector.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/detectors/{detectorId}'} # type: ignore + get_detector.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/detectors/{detectorId}"} # type: ignore @distributed_trace @@ -1288,6 +1376,8 @@ def list_outbound_network_dependencies_endpoints( ~azure.core.paging.ItemPaged[~azure.mgmt.batch.models.OutboundEnvironmentEndpointCollection] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.OutboundEnvironmentEndpointCollection"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError @@ -1300,6 +1390,7 @@ def prepare_request(next_link=None): resource_group_name=resource_group_name, account_name=account_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self.list_outbound_network_dependencies_endpoints.metadata['url'], ) request = _convert_request(request) @@ -1311,6 +1402,7 @@ def prepare_request(next_link=None): resource_group_name=resource_group_name, account_name=account_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=next_link, ) request = _convert_request(request) @@ -1328,7 +1420,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1341,4 +1437,4 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - list_outbound_network_dependencies_endpoints.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/outboundNetworkDependenciesEndpoints'} # type: ignore + list_outbound_network_dependencies_endpoints.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/outboundNetworkDependenciesEndpoints"} # type: ignore diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_certificate_operations.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_certificate_operations.py index 5c08d4507fe8..8791ce8f2bfa 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_certificate_operations.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_certificate_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,9 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union -import warnings +from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union + +from msrest import Serializer from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged @@ -18,7 +19,6 @@ from azure.core.tracing.decorator import distributed_trace from azure.mgmt.core.exceptions import ARMErrorFormat from azure.mgmt.core.polling.arm_polling import ARMPolling -from msrest import Serializer from .. import models as _models from .._vendor import _convert_request, _format_url_section @@ -39,37 +39,38 @@ def build_list_by_batch_account_request( filter: Optional[str] = None, **kwargs: Any ) -> HttpRequest: - api_version = "2022-01-01" + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str', max_length=24, min_length=3, pattern=r'^[a-zA-Z0-9]+$'), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if maxresults is not None: - query_parameters['maxresults'] = _SERIALIZER.query("maxresults", maxresults, 'int') + _query_parameters['maxresults'] = _SERIALIZER.query("maxresults", maxresults, 'int') if select is not None: - query_parameters['$select'] = _SERIALIZER.query("select", select, 'str') + _query_parameters['$select'] = _SERIALIZER.query("select", select, 'str') if filter is not None: - query_parameters['$filter'] = _SERIALIZER.query("filter", filter, 'str') - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters['$filter'] = _SERIALIZER.query("filter", filter, 'str') + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -86,12 +87,12 @@ def build_create_request( if_none_match: Optional[str] = None, **kwargs: Any ) -> HttpRequest: + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2022-01-01" accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str', max_length=24, min_length=3, pattern=r'^[a-zA-Z0-9]+$'), @@ -99,27 +100,27 @@ def build_create_request( "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if if_match is not None: - header_parameters['If-Match'] = _SERIALIZER.header("if_match", if_match, 'str') + _header_parameters['If-Match'] = _SERIALIZER.header("if_match", if_match, 'str') if if_none_match is not None: - header_parameters['If-None-Match'] = _SERIALIZER.header("if_none_match", if_none_match, 'str') + _header_parameters['If-None-Match'] = _SERIALIZER.header("if_none_match", if_none_match, 'str') if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, json=json, content=content, **kwargs @@ -137,12 +138,12 @@ def build_update_request( if_match: Optional[str] = None, **kwargs: Any ) -> HttpRequest: + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2022-01-01" accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str', max_length=24, min_length=3, pattern=r'^[a-zA-Z0-9]+$'), @@ -150,25 +151,25 @@ def build_update_request( "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if if_match is not None: - header_parameters['If-Match'] = _SERIALIZER.header("if_match", if_match, 'str') + _header_parameters['If-Match'] = _SERIALIZER.header("if_match", if_match, 'str') if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, json=json, content=content, **kwargs @@ -182,10 +183,11 @@ def build_delete_request_initial( subscription_id: str, **kwargs: Any ) -> HttpRequest: - api_version = "2022-01-01" + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str', max_length=24, min_length=3, pattern=r'^[a-zA-Z0-9]+$'), @@ -193,21 +195,21 @@ def build_delete_request_initial( "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -219,10 +221,11 @@ def build_get_request( subscription_id: str, **kwargs: Any ) -> HttpRequest: - api_version = "2022-01-01" + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str', max_length=24, min_length=3, pattern=r'^[a-zA-Z0-9]+$'), @@ -230,21 +233,21 @@ def build_get_request( "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -256,10 +259,11 @@ def build_cancel_deletion_request( subscription_id: str, **kwargs: Any ) -> HttpRequest: - api_version = "2022-01-01" + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}/cancelDelete') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}/cancelDelete") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str', max_length=24, min_length=3, pattern=r'^[a-zA-Z0-9]+$'), @@ -267,21 +271,21 @@ def build_cancel_deletion_request( "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -323,14 +327,16 @@ def list_by_batch_account( :type resource_group_name: str :param account_name: The name of the Batch account. :type account_name: str - :param maxresults: The maximum number of items to return in the response. + :param maxresults: The maximum number of items to return in the response. Default value is + None. :type maxresults: int :param select: Comma separated list of properties that should be returned. e.g. "properties/provisioningState". Only top level properties under properties/ are valid for - selection. + selection. Default value is None. :type select: str :param filter: OData filter expression. Valid properties for filtering are - "properties/provisioningState", "properties/provisioningStateTransitionTime", "name". + "properties/provisioningState", "properties/provisioningStateTransitionTime", "name". Default + value is None. :type filter: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ListCertificatesResult or the result of @@ -338,6 +344,8 @@ def list_by_batch_account( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.batch.models.ListCertificatesResult] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.ListCertificatesResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError @@ -350,6 +358,7 @@ def prepare_request(next_link=None): resource_group_name=resource_group_name, account_name=account_name, subscription_id=self._config.subscription_id, + api_version=api_version, maxresults=maxresults, select=select, filter=filter, @@ -364,6 +373,7 @@ def prepare_request(next_link=None): resource_group_name=resource_group_name, account_name=account_name, subscription_id=self._config.subscription_id, + api_version=api_version, maxresults=maxresults, select=select, filter=filter, @@ -384,7 +394,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -397,7 +411,7 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - list_by_batch_account.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates'} # type: ignore + list_by_batch_account.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates"} # type: ignore @distributed_trace def create( @@ -424,10 +438,10 @@ def create( :type parameters: ~azure.mgmt.batch.models.CertificateCreateOrUpdateParameters :param if_match: The entity state (ETag) version of the certificate to update. A value of "*" can be used to apply the operation only if the certificate already exists. If omitted, this - operation will always be applied. + operation will always be applied. Default value is None. :type if_match: str :param if_none_match: Set to '*' to allow a new certificate to be created, but to prevent - updating an existing certificate. Other values will be ignored. + updating an existing certificate. Other values will be ignored. Default value is None. :type if_none_match: str :keyword callable cls: A custom type or function that will be passed the direct response :return: Certificate, or the result of cls(response) @@ -440,6 +454,7 @@ def create( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] _json = self._serialize.body(parameters, 'CertificateCreateOrUpdateParameters') @@ -449,6 +464,7 @@ def create( account_name=account_name, certificate_name=certificate_name, subscription_id=self._config.subscription_id, + api_version=api_version, content_type=content_type, json=_json, if_match=if_match, @@ -458,7 +474,11 @@ def create( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -475,7 +495,7 @@ def create( return deserialized - create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}'} # type: ignore + create.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}"} # type: ignore @distributed_trace @@ -501,7 +521,7 @@ def update( :param parameters: Certificate entity to update. :type parameters: ~azure.mgmt.batch.models.CertificateCreateOrUpdateParameters :param if_match: The entity state (ETag) version of the certificate to update. This value can - be omitted or set to "*" to apply the operation unconditionally. + be omitted or set to "*" to apply the operation unconditionally. Default value is None. :type if_match: str :keyword callable cls: A custom type or function that will be passed the direct response :return: Certificate, or the result of cls(response) @@ -514,6 +534,7 @@ def update( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] _json = self._serialize.body(parameters, 'CertificateCreateOrUpdateParameters') @@ -523,6 +544,7 @@ def update( account_name=account_name, certificate_name=certificate_name, subscription_id=self._config.subscription_id, + api_version=api_version, content_type=content_type, json=_json, if_match=if_match, @@ -531,7 +553,11 @@ def update( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -548,10 +574,10 @@ def update( return deserialized - update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}'} # type: ignore + update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}"} # type: ignore - def _delete_initial( + def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, account_name: str, @@ -564,18 +590,25 @@ def _delete_initial( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + request = build_delete_request_initial( resource_group_name=resource_group_name, account_name=account_name, certificate_name=certificate_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self._delete_initial.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200, 202, 204]: @@ -591,11 +624,11 @@ def _delete_initial( if cls: return cls(pipeline_response, None, response_headers) - _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}'} # type: ignore + _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}"} # type: ignore @distributed_trace - def begin_delete( + def begin_delete( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, account_name: str, @@ -624,7 +657,8 @@ def begin_delete( :rtype: ~azure.core.polling.LROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.PollingMethod] + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( 'polling_interval', @@ -636,6 +670,7 @@ def begin_delete( resource_group_name=resource_group_name, account_name=account_name, certificate_name=certificate_name, + api_version=api_version, cls=lambda x,y,z: x, **kwargs ) @@ -656,10 +691,9 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}'} # type: ignore + begin_delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}"} # type: ignore @distributed_trace def get( @@ -690,18 +724,25 @@ def get( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + request = build_get_request( resource_group_name=resource_group_name, account_name=account_name, certificate_name=certificate_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self.get.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -718,7 +759,7 @@ def get( return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}'} # type: ignore + get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}"} # type: ignore @distributed_trace @@ -757,18 +798,25 @@ def cancel_deletion( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + request = build_cancel_deletion_request( resource_group_name=resource_group_name, account_name=account_name, certificate_name=certificate_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self.cancel_deletion.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -785,5 +833,5 @@ def cancel_deletion( return deserialized - cancel_deletion.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}/cancelDelete'} # type: ignore + cancel_deletion.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}/cancelDelete"} # type: ignore diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_location_operations.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_location_operations.py index 25678be252e2..09cd4e75ad51 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_location_operations.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_location_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,9 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Iterable, Optional, TypeVar + +from msrest import Serializer from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged @@ -16,7 +17,6 @@ from azure.core.rest import HttpRequest from azure.core.tracing.decorator import distributed_trace from azure.mgmt.core.exceptions import ARMErrorFormat -from msrest import Serializer from .. import models as _models from .._vendor import _convert_request, _format_url_section @@ -32,30 +32,31 @@ def build_get_quotas_request( subscription_id: str, **kwargs: Any ) -> HttpRequest: - api_version = "2022-01-01" + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/quotas') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/quotas") # pylint: disable=line-too-long path_format_arguments = { "locationName": _SERIALIZER.url("location_name", location_name, 'str'), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -68,34 +69,35 @@ def build_list_supported_virtual_machine_skus_request( filter: Optional[str] = None, **kwargs: Any ) -> HttpRequest: - api_version = "2022-01-01" + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/virtualMachineSkus') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/virtualMachineSkus") # pylint: disable=line-too-long path_format_arguments = { "locationName": _SERIALIZER.url("location_name", location_name, 'str'), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if maxresults is not None: - query_parameters['maxresults'] = _SERIALIZER.query("maxresults", maxresults, 'int') + _query_parameters['maxresults'] = _SERIALIZER.query("maxresults", maxresults, 'int') if filter is not None: - query_parameters['$filter'] = _SERIALIZER.query("filter", filter, 'str') - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters['$filter'] = _SERIALIZER.query("filter", filter, 'str') + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -108,34 +110,35 @@ def build_list_supported_cloud_service_skus_request( filter: Optional[str] = None, **kwargs: Any ) -> HttpRequest: - api_version = "2022-01-01" + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/cloudServiceSkus') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/cloudServiceSkus") # pylint: disable=line-too-long path_format_arguments = { "locationName": _SERIALIZER.url("location_name", location_name, 'str'), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if maxresults is not None: - query_parameters['maxresults'] = _SERIALIZER.query("maxresults", maxresults, 'int') + _query_parameters['maxresults'] = _SERIALIZER.query("maxresults", maxresults, 'int') if filter is not None: - query_parameters['$filter'] = _SERIALIZER.query("filter", filter, 'str') - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters['$filter'] = _SERIALIZER.query("filter", filter, 'str') + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -148,34 +151,34 @@ def build_check_name_availability_request( content: Any = None, **kwargs: Any ) -> HttpRequest: + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2022-01-01" accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/checkNameAvailability') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/checkNameAvailability") # pylint: disable=line-too-long path_format_arguments = { "locationName": _SERIALIZER.url("location_name", location_name, 'str'), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, json=json, content=content, **kwargs @@ -224,16 +227,23 @@ def get_quotas( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + request = build_get_quotas_request( location_name=location_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self.get_quotas.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -247,7 +257,7 @@ def get_quotas( return deserialized - get_quotas.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/quotas'} # type: ignore + get_quotas.metadata = {'url': "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/quotas"} # type: ignore @distributed_trace @@ -262,15 +272,19 @@ def list_supported_virtual_machine_skus( :param location_name: The region for which to retrieve Batch service supported SKUs. :type location_name: str - :param maxresults: The maximum number of items to return in the response. + :param maxresults: The maximum number of items to return in the response. Default value is + None. :type maxresults: int :param filter: OData filter expression. Valid properties for filtering are "familyName". + Default value is None. :type filter: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either SupportedSkusResult or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.batch.models.SupportedSkusResult] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.SupportedSkusResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError @@ -282,6 +296,7 @@ def prepare_request(next_link=None): request = build_list_supported_virtual_machine_skus_request( location_name=location_name, subscription_id=self._config.subscription_id, + api_version=api_version, maxresults=maxresults, filter=filter, template_url=self.list_supported_virtual_machine_skus.metadata['url'], @@ -294,6 +309,7 @@ def prepare_request(next_link=None): request = build_list_supported_virtual_machine_skus_request( location_name=location_name, subscription_id=self._config.subscription_id, + api_version=api_version, maxresults=maxresults, filter=filter, template_url=next_link, @@ -313,7 +329,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -326,7 +346,7 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - list_supported_virtual_machine_skus.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/virtualMachineSkus'} # type: ignore + list_supported_virtual_machine_skus.metadata = {'url': "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/virtualMachineSkus"} # type: ignore @distributed_trace def list_supported_cloud_service_skus( @@ -340,15 +360,19 @@ def list_supported_cloud_service_skus( :param location_name: The region for which to retrieve Batch service supported SKUs. :type location_name: str - :param maxresults: The maximum number of items to return in the response. + :param maxresults: The maximum number of items to return in the response. Default value is + None. :type maxresults: int :param filter: OData filter expression. Valid properties for filtering are "familyName". + Default value is None. :type filter: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either SupportedSkusResult or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.batch.models.SupportedSkusResult] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.SupportedSkusResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError @@ -360,6 +384,7 @@ def prepare_request(next_link=None): request = build_list_supported_cloud_service_skus_request( location_name=location_name, subscription_id=self._config.subscription_id, + api_version=api_version, maxresults=maxresults, filter=filter, template_url=self.list_supported_cloud_service_skus.metadata['url'], @@ -372,6 +397,7 @@ def prepare_request(next_link=None): request = build_list_supported_cloud_service_skus_request( location_name=location_name, subscription_id=self._config.subscription_id, + api_version=api_version, maxresults=maxresults, filter=filter, template_url=next_link, @@ -391,7 +417,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -404,7 +434,7 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - list_supported_cloud_service_skus.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/cloudServiceSkus'} # type: ignore + list_supported_cloud_service_skus.metadata = {'url': "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/cloudServiceSkus"} # type: ignore @distributed_trace def check_name_availability( @@ -430,6 +460,7 @@ def check_name_availability( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] _json = self._serialize.body(parameters, 'CheckNameAvailabilityParameters') @@ -437,6 +468,7 @@ def check_name_availability( request = build_check_name_availability_request( location_name=location_name, subscription_id=self._config.subscription_id, + api_version=api_version, content_type=content_type, json=_json, template_url=self.check_name_availability.metadata['url'], @@ -444,7 +476,11 @@ def check_name_availability( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -458,5 +494,5 @@ def check_name_availability( return deserialized - check_name_availability.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/checkNameAvailability'} # type: ignore + check_name_availability.metadata = {'url': "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/checkNameAvailability"} # type: ignore diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_operations.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_operations.py index 8df807ca6ed0..59de7fee57a0 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_operations.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,9 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Iterable, Optional, TypeVar + +from msrest import Serializer from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged @@ -16,7 +17,6 @@ from azure.core.rest import HttpRequest from azure.core.tracing.decorator import distributed_trace from azure.mgmt.core.exceptions import ARMErrorFormat -from msrest import Serializer from .. import models as _models from .._vendor import _convert_request @@ -29,24 +29,25 @@ def build_list_request( **kwargs: Any ) -> HttpRequest: - api_version = "2022-01-01" + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/providers/Microsoft.Batch/operations') + _url = kwargs.pop("template_url", "/providers/Microsoft.Batch/operations") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -84,6 +85,8 @@ def list( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.batch.models.OperationListResult] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError @@ -93,6 +96,7 @@ def prepare_request(next_link=None): if not next_link: request = build_list_request( + api_version=api_version, template_url=self.list.metadata['url'], ) request = _convert_request(request) @@ -101,6 +105,7 @@ def prepare_request(next_link=None): else: request = build_list_request( + api_version=api_version, template_url=next_link, ) request = _convert_request(request) @@ -118,7 +123,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -131,4 +140,4 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - list.metadata = {'url': '/providers/Microsoft.Batch/operations'} # type: ignore + list.metadata = {'url': "/providers/Microsoft.Batch/operations"} # type: ignore diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_pool_operations.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_pool_operations.py index a5e45dca7bce..d41200a0f9a8 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_pool_operations.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_pool_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,9 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union -import warnings +from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union + +from msrest import Serializer from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged @@ -18,7 +19,6 @@ from azure.core.tracing.decorator import distributed_trace from azure.mgmt.core.exceptions import ARMErrorFormat from azure.mgmt.core.polling.arm_polling import ARMPolling -from msrest import Serializer from .. import models as _models from .._vendor import _convert_request, _format_url_section @@ -39,37 +39,38 @@ def build_list_by_batch_account_request( filter: Optional[str] = None, **kwargs: Any ) -> HttpRequest: - api_version = "2022-01-01" + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str', max_length=24, min_length=3, pattern=r'^[a-zA-Z0-9]+$'), "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if maxresults is not None: - query_parameters['maxresults'] = _SERIALIZER.query("maxresults", maxresults, 'int') + _query_parameters['maxresults'] = _SERIALIZER.query("maxresults", maxresults, 'int') if select is not None: - query_parameters['$select'] = _SERIALIZER.query("select", select, 'str') + _query_parameters['$select'] = _SERIALIZER.query("select", select, 'str') if filter is not None: - query_parameters['$filter'] = _SERIALIZER.query("filter", filter, 'str') - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters['$filter'] = _SERIALIZER.query("filter", filter, 'str') + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -86,12 +87,12 @@ def build_create_request( if_none_match: Optional[str] = None, **kwargs: Any ) -> HttpRequest: + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2022-01-01" accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str', max_length=24, min_length=3, pattern=r'^[a-zA-Z0-9]+$'), @@ -99,27 +100,27 @@ def build_create_request( "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if if_match is not None: - header_parameters['If-Match'] = _SERIALIZER.header("if_match", if_match, 'str') + _header_parameters['If-Match'] = _SERIALIZER.header("if_match", if_match, 'str') if if_none_match is not None: - header_parameters['If-None-Match'] = _SERIALIZER.header("if_none_match", if_none_match, 'str') + _header_parameters['If-None-Match'] = _SERIALIZER.header("if_none_match", if_none_match, 'str') if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, json=json, content=content, **kwargs @@ -137,12 +138,12 @@ def build_update_request( if_match: Optional[str] = None, **kwargs: Any ) -> HttpRequest: + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2022-01-01" accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str', max_length=24, min_length=3, pattern=r'^[a-zA-Z0-9]+$'), @@ -150,25 +151,25 @@ def build_update_request( "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if if_match is not None: - header_parameters['If-Match'] = _SERIALIZER.header("if_match", if_match, 'str') + _header_parameters['If-Match'] = _SERIALIZER.header("if_match", if_match, 'str') if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, json=json, content=content, **kwargs @@ -182,10 +183,11 @@ def build_delete_request_initial( subscription_id: str, **kwargs: Any ) -> HttpRequest: - api_version = "2022-01-01" + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str', max_length=24, min_length=3, pattern=r'^[a-zA-Z0-9]+$'), @@ -193,21 +195,21 @@ def build_delete_request_initial( "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -219,10 +221,11 @@ def build_get_request( subscription_id: str, **kwargs: Any ) -> HttpRequest: - api_version = "2022-01-01" + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str', max_length=24, min_length=3, pattern=r'^[a-zA-Z0-9]+$'), @@ -230,21 +233,21 @@ def build_get_request( "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -256,10 +259,11 @@ def build_disable_auto_scale_request( subscription_id: str, **kwargs: Any ) -> HttpRequest: - api_version = "2022-01-01" + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/disableAutoScale') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/disableAutoScale") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str', max_length=24, min_length=3, pattern=r'^[a-zA-Z0-9]+$'), @@ -267,21 +271,21 @@ def build_disable_auto_scale_request( "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -293,10 +297,11 @@ def build_stop_resize_request( subscription_id: str, **kwargs: Any ) -> HttpRequest: - api_version = "2022-01-01" + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/stopResize') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/stopResize") # pylint: disable=line-too-long path_format_arguments = { "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str', max_length=24, min_length=3, pattern=r'^[a-zA-Z0-9]+$'), @@ -304,21 +309,21 @@ def build_stop_resize_request( "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -360,11 +365,12 @@ def list_by_batch_account( :type resource_group_name: str :param account_name: The name of the Batch account. :type account_name: str - :param maxresults: The maximum number of items to return in the response. + :param maxresults: The maximum number of items to return in the response. Default value is + None. :type maxresults: int :param select: Comma separated list of properties that should be returned. e.g. "properties/provisioningState". Only top level properties under properties/ are valid for - selection. + selection. Default value is None. :type select: str :param filter: OData filter expression. Valid properties for filtering are: @@ -378,13 +384,15 @@ def list_by_batch_account( properties/vmSize properties/interNodeCommunication properties/scaleSettings/autoScale - properties/scaleSettings/fixedScale. + properties/scaleSettings/fixedScale. Default value is None. :type filter: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ListPoolsResult or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.batch.models.ListPoolsResult] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.ListPoolsResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError @@ -397,6 +405,7 @@ def prepare_request(next_link=None): resource_group_name=resource_group_name, account_name=account_name, subscription_id=self._config.subscription_id, + api_version=api_version, maxresults=maxresults, select=select, filter=filter, @@ -411,6 +420,7 @@ def prepare_request(next_link=None): resource_group_name=resource_group_name, account_name=account_name, subscription_id=self._config.subscription_id, + api_version=api_version, maxresults=maxresults, select=select, filter=filter, @@ -431,7 +441,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -444,7 +458,7 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - list_by_batch_account.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools'} # type: ignore + list_by_batch_account.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools"} # type: ignore @distributed_trace def create( @@ -469,10 +483,10 @@ def create( :type parameters: ~azure.mgmt.batch.models.Pool :param if_match: The entity state (ETag) version of the pool to update. A value of "*" can be used to apply the operation only if the pool already exists. If omitted, this operation will - always be applied. + always be applied. Default value is None. :type if_match: str :param if_none_match: Set to '*' to allow a new pool to be created, but to prevent updating an - existing pool. Other values will be ignored. + existing pool. Other values will be ignored. Default value is None. :type if_none_match: str :keyword callable cls: A custom type or function that will be passed the direct response :return: Pool, or the result of cls(response) @@ -485,6 +499,7 @@ def create( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] _json = self._serialize.body(parameters, 'Pool') @@ -494,6 +509,7 @@ def create( account_name=account_name, pool_name=pool_name, subscription_id=self._config.subscription_id, + api_version=api_version, content_type=content_type, json=_json, if_match=if_match, @@ -503,7 +519,11 @@ def create( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -520,7 +540,7 @@ def create( return deserialized - create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}'} # type: ignore + create.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}"} # type: ignore @distributed_trace @@ -545,7 +565,7 @@ def update( updated, any property not supplied will be unchanged. :type parameters: ~azure.mgmt.batch.models.Pool :param if_match: The entity state (ETag) version of the pool to update. This value can be - omitted or set to "*" to apply the operation unconditionally. + omitted or set to "*" to apply the operation unconditionally. Default value is None. :type if_match: str :keyword callable cls: A custom type or function that will be passed the direct response :return: Pool, or the result of cls(response) @@ -558,6 +578,7 @@ def update( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] _json = self._serialize.body(parameters, 'Pool') @@ -567,6 +588,7 @@ def update( account_name=account_name, pool_name=pool_name, subscription_id=self._config.subscription_id, + api_version=api_version, content_type=content_type, json=_json, if_match=if_match, @@ -575,7 +597,11 @@ def update( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -592,10 +618,10 @@ def update( return deserialized - update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}'} # type: ignore + update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}"} # type: ignore - def _delete_initial( + def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, account_name: str, @@ -608,18 +634,25 @@ def _delete_initial( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + request = build_delete_request_initial( resource_group_name=resource_group_name, account_name=account_name, pool_name=pool_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self._delete_initial.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200, 202, 204]: @@ -635,11 +668,11 @@ def _delete_initial( if cls: return cls(pipeline_response, None, response_headers) - _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}'} # type: ignore + _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}"} # type: ignore @distributed_trace - def begin_delete( + def begin_delete( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, account_name: str, @@ -666,7 +699,8 @@ def begin_delete( :rtype: ~azure.core.polling.LROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.PollingMethod] + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( 'polling_interval', @@ -678,6 +712,7 @@ def begin_delete( resource_group_name=resource_group_name, account_name=account_name, pool_name=pool_name, + api_version=api_version, cls=lambda x,y,z: x, **kwargs ) @@ -698,10 +733,9 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}'} # type: ignore + begin_delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}"} # type: ignore @distributed_trace def get( @@ -730,18 +764,25 @@ def get( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + request = build_get_request( resource_group_name=resource_group_name, account_name=account_name, pool_name=pool_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self.get.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -758,7 +799,7 @@ def get( return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}'} # type: ignore + get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}"} # type: ignore @distributed_trace @@ -788,18 +829,25 @@ def disable_auto_scale( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + request = build_disable_auto_scale_request( resource_group_name=resource_group_name, account_name=account_name, pool_name=pool_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self.disable_auto_scale.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -816,7 +864,7 @@ def disable_auto_scale( return deserialized - disable_auto_scale.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/disableAutoScale'} # type: ignore + disable_auto_scale.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/disableAutoScale"} # type: ignore @distributed_trace @@ -853,18 +901,25 @@ def stop_resize( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + request = build_stop_resize_request( resource_group_name=resource_group_name, account_name=account_name, pool_name=pool_name, subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self.stop_resize.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -881,5 +936,5 @@ def stop_resize( return deserialized - stop_resize.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/stopResize'} # type: ignore + stop_resize.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/stopResize"} # type: ignore diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_private_endpoint_connection_operations.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_private_endpoint_connection_operations.py index dd0b11f03c26..a6200ff466b5 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_private_endpoint_connection_operations.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_private_endpoint_connection_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,9 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union -import warnings +from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union + +from msrest import Serializer from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged @@ -18,7 +19,6 @@ from azure.core.tracing.decorator import distributed_trace from azure.mgmt.core.exceptions import ARMErrorFormat from azure.mgmt.core.polling.arm_polling import ARMPolling -from msrest import Serializer from .. import models as _models from .._vendor import _convert_request, _format_url_section @@ -37,33 +37,34 @@ def build_list_by_batch_account_request( maxresults: Optional[int] = None, **kwargs: Any ) -> HttpRequest: - api_version = "2022-01-01" + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str', max_length=24, min_length=3, pattern=r'^[a-zA-Z0-9]+$'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') if maxresults is not None: - query_parameters['maxresults'] = _SERIALIZER.query("maxresults", maxresults, 'int') + _query_parameters['maxresults'] = _SERIALIZER.query("maxresults", maxresults, 'int') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -75,10 +76,11 @@ def build_get_request( private_endpoint_connection_name: str, **kwargs: Any ) -> HttpRequest: - api_version = "2022-01-01" + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), @@ -86,21 +88,21 @@ def build_get_request( "privateEndpointConnectionName": _SERIALIZER.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str', max_length=101, min_length=1, pattern=r'^[a-zA-Z0-9_-]+\.?[a-fA-F0-9-]*$'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -116,12 +118,12 @@ def build_update_request_initial( if_match: Optional[str] = None, **kwargs: Any ) -> HttpRequest: + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2022-01-01" accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), @@ -129,30 +131,68 @@ def build_update_request_initial( "privateEndpointConnectionName": _SERIALIZER.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str', max_length=101, min_length=1, pattern=r'^[a-zA-Z0-9_-]+\.?[a-fA-F0-9-]*$'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if if_match is not None: - header_parameters['If-Match'] = _SERIALIZER.header("if_match", if_match, 'str') + _header_parameters['If-Match'] = _SERIALIZER.header("if_match", if_match, 'str') if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, json=json, content=content, **kwargs ) + +def build_delete_request_initial( + subscription_id: str, + resource_group_name: str, + account_name: str, + private_endpoint_connection_name: str, + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}") # pylint: disable=line-too-long + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), + "accountName": _SERIALIZER.url("account_name", account_name, 'str', max_length=24, min_length=3, pattern=r'^[a-zA-Z0-9]+$'), + "privateEndpointConnectionName": _SERIALIZER.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str', max_length=101, min_length=1, pattern=r'^[a-zA-Z0-9_-]+\.?[a-fA-F0-9-]*$'), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="DELETE", + url=_url, + params=_query_parameters, + headers=_header_parameters, + **kwargs + ) + class PrivateEndpointConnectionOperations(object): """PrivateEndpointConnectionOperations operations. @@ -189,7 +229,8 @@ def list_by_batch_account( :type resource_group_name: str :param account_name: The name of the Batch account. :type account_name: str - :param maxresults: The maximum number of items to return in the response. + :param maxresults: The maximum number of items to return in the response. Default value is + None. :type maxresults: int :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ListPrivateEndpointConnectionsResult or the result @@ -198,6 +239,8 @@ def list_by_batch_account( ~azure.core.paging.ItemPaged[~azure.mgmt.batch.models.ListPrivateEndpointConnectionsResult] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.ListPrivateEndpointConnectionsResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError @@ -210,6 +253,7 @@ def prepare_request(next_link=None): subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, account_name=account_name, + api_version=api_version, maxresults=maxresults, template_url=self.list_by_batch_account.metadata['url'], ) @@ -222,6 +266,7 @@ def prepare_request(next_link=None): subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, account_name=account_name, + api_version=api_version, maxresults=maxresults, template_url=next_link, ) @@ -240,7 +285,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -253,7 +302,7 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - list_by_batch_account.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections'} # type: ignore + list_by_batch_account.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections"} # type: ignore @distributed_trace def get( @@ -283,18 +332,25 @@ def get( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + request = build_get_request( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, account_name=account_name, private_endpoint_connection_name=private_endpoint_connection_name, + api_version=api_version, template_url=self.get.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -308,7 +364,7 @@ def get( return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}'} # type: ignore + get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}"} # type: ignore def _update_initial( @@ -326,6 +382,7 @@ def _update_initial( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] _json = self._serialize.body(parameters, 'PrivateEndpointConnection') @@ -335,6 +392,7 @@ def _update_initial( resource_group_name=resource_group_name, account_name=account_name, private_endpoint_connection_name=private_endpoint_connection_name, + api_version=api_version, content_type=content_type, json=_json, if_match=if_match, @@ -343,7 +401,11 @@ def _update_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200, 202, 204]: @@ -365,7 +427,7 @@ def _update_initial( return deserialized - _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}'} # type: ignore + _update_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}"} # type: ignore @distributed_trace @@ -391,7 +453,8 @@ def begin_update( are supplied will be updated, any property not supplied will be unchanged. :type parameters: ~azure.mgmt.batch.models.PrivateEndpointConnection :param if_match: The state (ETag) version of the private endpoint connection to update. This - value can be omitted or set to "*" to apply the operation unconditionally. + value can be omitted or set to "*" to apply the operation unconditionally. Default value is + None. :type if_match: 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. @@ -406,8 +469,9 @@ def begin_update( :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.batch.models.PrivateEndpointConnection] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2022-06-01") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.PollingMethod] + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateEndpointConnection"] lro_delay = kwargs.pop( 'polling_interval', @@ -421,6 +485,7 @@ def begin_update( private_endpoint_connection_name=private_endpoint_connection_name, parameters=parameters, if_match=if_match, + api_version=api_version, content_type=content_type, cls=lambda x,y,z: x, **kwargs @@ -445,7 +510,123 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + + begin_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}"} # type: ignore + + def _delete_initial( # pylint: disable=inconsistent-return-statements + self, + resource_group_name: str, + account_name: str, + private_endpoint_connection_name: str, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + + + request = build_delete_request_initial( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + account_name=account_name, + private_endpoint_connection_name=private_endpoint_connection_name, + api_version=api_version, + template_url=self._delete_initial.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + response_headers['Retry-After']=self._deserialize('int', response.headers.get('Retry-After')) + + + if cls: + return cls(pipeline_response, None, response_headers) + + _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}"} # type: ignore + + + @distributed_trace + def begin_delete( # pylint: disable=inconsistent-return-statements + self, + resource_group_name: str, + account_name: str, + private_endpoint_connection_name: str, + **kwargs: Any + ) -> LROPoller[None]: + """Deletes the specified private endpoint connection. + + :param resource_group_name: The name of the resource group that contains the Batch account. + :type resource_group_name: str + :param account_name: The name of the Batch account. + :type account_name: str + :param private_endpoint_connection_name: The private endpoint connection name. This must be + unique within the account. + :type private_endpoint_connection_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 + operation to not poll, or pass in your own initialized polling object for a personal polling + strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no + Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + account_name=account_name, + private_endpoint_connection_name=private_endpoint_connection_name, + api_version=api_version, + cls=lambda x,y,z: x, + **kwargs + ) + kwargs.pop('error_map', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}'} # type: ignore + begin_delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}"} # type: ignore diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_private_link_resource_operations.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_private_link_resource_operations.py index 8e3d15504ab7..51e8c9d7d567 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_private_link_resource_operations.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/operations/_private_link_resource_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,9 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Iterable, Optional, TypeVar + +from msrest import Serializer from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged @@ -16,7 +17,6 @@ from azure.core.rest import HttpRequest from azure.core.tracing.decorator import distributed_trace from azure.mgmt.core.exceptions import ARMErrorFormat -from msrest import Serializer from .. import models as _models from .._vendor import _convert_request, _format_url_section @@ -34,33 +34,34 @@ def build_list_by_batch_account_request( maxresults: Optional[int] = None, **kwargs: Any ) -> HttpRequest: - api_version = "2022-01-01" + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateLinkResources') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateLinkResources") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), "accountName": _SERIALIZER.url("account_name", account_name, 'str', max_length=24, min_length=3, pattern=r'^[a-zA-Z0-9]+$'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') if maxresults is not None: - query_parameters['maxresults'] = _SERIALIZER.query("maxresults", maxresults, 'int') + _query_parameters['maxresults'] = _SERIALIZER.query("maxresults", maxresults, 'int') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -72,10 +73,11 @@ def build_get_request( private_link_resource_name: str, **kwargs: Any ) -> HttpRequest: - api_version = "2022-01-01" + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateLinkResources/{privateLinkResourceName}') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateLinkResources/{privateLinkResourceName}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), @@ -83,21 +85,21 @@ def build_get_request( "privateLinkResourceName": _SERIALIZER.url("private_link_resource_name", private_link_resource_name, 'str', max_length=101, min_length=1, pattern=r'^[a-zA-Z0-9_-]+\.?[a-fA-F0-9-]*$'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_query_parameters, + headers=_header_parameters, **kwargs ) @@ -137,7 +139,8 @@ def list_by_batch_account( :type resource_group_name: str :param account_name: The name of the Batch account. :type account_name: str - :param maxresults: The maximum number of items to return in the response. + :param maxresults: The maximum number of items to return in the response. Default value is + None. :type maxresults: int :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ListPrivateLinkResourcesResult or the result of @@ -145,6 +148,8 @@ def list_by_batch_account( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.batch.models.ListPrivateLinkResourcesResult] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.ListPrivateLinkResourcesResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError @@ -157,6 +162,7 @@ def prepare_request(next_link=None): subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, account_name=account_name, + api_version=api_version, maxresults=maxresults, template_url=self.list_by_batch_account.metadata['url'], ) @@ -169,6 +175,7 @@ def prepare_request(next_link=None): subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, account_name=account_name, + api_version=api_version, maxresults=maxresults, template_url=next_link, ) @@ -187,7 +194,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -200,7 +211,7 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - list_by_batch_account.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateLinkResources'} # type: ignore + list_by_batch_account.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateLinkResources"} # type: ignore @distributed_trace def get( @@ -230,18 +241,25 @@ def get( } error_map.update(kwargs.pop('error_map', {})) + api_version = kwargs.pop('api_version', "2022-06-01") # type: str + request = build_get_request( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, account_name=account_name, private_link_resource_name=private_link_resource_name, + api_version=api_version, template_url=self.get.metadata['url'], ) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -255,5 +273,5 @@ def get( return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateLinkResources/{privateLinkResourceName}'} # type: ignore + get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateLinkResources/{privateLinkResourceName}"} # type: ignore diff --git a/sdk/batch/azure-mgmt-batch/setup.py b/sdk/batch/azure-mgmt-batch/setup.py index 2ab4967be37c..82791da1e054 100644 --- a/sdk/batch/azure-mgmt-batch/setup.py +++ b/sdk/batch/azure-mgmt-batch/setup.py @@ -65,6 +65,10 @@ 'azure', 'azure.mgmt', ]), + include_package_data=True, + package_data={ + 'pytyped': ['py.typed'], + }, install_requires=[ 'msrest>=0.6.21', 'azure-common~=1.1', diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_account_advanced.json b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_account_advanced.json index 3c400eb5bbfd..e0252cb2bb5b 100644 --- a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_account_advanced.json +++ b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_account_advanced.json @@ -7,7 +7,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.9.0b2 Python/3.6.2 (Windows-10-10.0.19041-SP0)" + "User-Agent": "azsdk-python-identity/1.11.0b2 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -17,13 +17,13 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "1753", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:34:12 GMT", + "Date": "Wed, 01 Jun 2022 01:23:04 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12529.17 - SCUS ProdSlices", - "x-ms-request-id": "8c7f786e-c12f-403f-99d8-866be934dd00" + "x-ms-ests-server": "2.1.12821.9 - SCUS ProdSlices", + "X-XSS-Protection": "0" }, "ResponseBody": { "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", @@ -101,7 +101,7 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.9.0b2 Python/3.6.2 (Windows-10-10.0.19041-SP0)" + "User-Agent": "azsdk-python-identity/1.11.0b2 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -111,13 +111,13 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "945", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:34:12 GMT", + "Date": "Wed, 01 Jun 2022 01:23:04 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12559.5 - KRSLR2 ProdSlices", - "x-ms-request-id": "f69e55af-7956-4662-84c1-eece4bd50400" + "x-ms-ests-server": "2.1.12821.9 - NCUS ProdSlices", + "X-XSS-Protection": "0" }, "ResponseBody": { "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.well-known/openid-configuration", @@ -172,28 +172,28 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "client-request-id": "ee4aee08-f543-44b6-8e8d-b0f3fd152630", + "client-request-id": "4eea5ccb-6b40-49f7-a007-194f00a23160", "Connection": "keep-alive", - "Content-Length": "291", + "Content-Length": "286", "Content-Type": "application/x-www-form-urlencoded", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.9.0b2 Python/3.6.2 (Windows-10-10.0.19041-SP0)", + "User-Agent": "azsdk-python-identity/1.11.0b2 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", - "x-client-os": "win32", + "x-client-os": "linux", "x-client-sku": "MSAL.Python", - "x-client-ver": "1.17.0", + "x-client-ver": "1.18.0", "x-ms-lib-capability": "retry-after, h429" }, - "RequestBody": "client_id=a2df54d5-ab03-4725-9b80-9a00b3b1967f\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=0vj7Q%7EIsFayrD0V_8oyOfygU-GE3ELOabq95a\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "RequestBody": "client_id=8c41a920-007a-4844-a189-2d0efe39f51e\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=o0XWF_siD-FhI.5AE83-u0GaQHW_GP7cjy\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", - "client-request-id": "ee4aee08-f543-44b6-8e8d-b0f3fd152630", + "client-request-id": "4eea5ccb-6b40-49f7-a007-194f00a23160", "Content-Length": "93", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:34:12 GMT", + "Date": "Wed, 01 Jun 2022 01:23:04 GMT", "Expires": "-1", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Pragma": "no-cache", @@ -201,8 +201,8 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", - "x-ms-ests-server": "2.1.12529.17 - SCUS ProdSlices", - "x-ms-request-id": "6e4bf0af-5116-48b1-9714-3147539bd500" + "x-ms-ests-server": "2.1.12821.9 - NCUS ProdSlices", + "X-XSS-Protection": "0" }, "ResponseBody": { "token_type": "Bearer", @@ -212,17 +212,15 @@ } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da?api-version=2022-06-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "113", "Content-Type": "application/json", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "507b605c-9f7b-11ec-8f3f-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "location": "eastus", @@ -237,31 +235,28 @@ "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Wed, 09 Mar 2022 07:34:18 GMT", + "Date": "Wed, 01 Jun 2022 01:23:07 GMT", "Expires": "-1", - "Location": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/operationResults/d9d835af-7987-4408-9507-06f05bc3bc2f?api-version=2022-01-01", + "Location": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/operationResults/6b2dc512-695b-450e-a4e9-fe64834c37f5?api-version=2022-06-01", "Pragma": "no-cache", "Retry-After": "15", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "8a9cacec-ddde-47da-b8d2-b1c8c68442aa", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "d9d835af-7987-4408-9507-06f05bc3bc2f", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T073419Z:8a9cacec-ddde-47da-b8d2-b1c8c68442aa" + "x-ms-correlation-request-id": "5c0795be-d695-4243-abe9-ed9ee6d2c9fb", + "x-ms-ratelimit-remaining-subscription-writes": "1189", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T012307Z:5c0795be-d695-4243-abe9-ed9ee6d2c9fb" }, "ResponseBody": null }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/operationResults/d9d835af-7987-4408-9507-06f05bc3bc2f?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/operationResults/6b2dc512-695b-450e-a4e9-fe64834c37f5?api-version=2022-06-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "507b605c-9f7b-11ec-8f3f-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -269,86 +264,85 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:34:34 GMT", - "ETag": "\u00220x8DA019F421CAF31\u0022", + "Date": "Wed, 01 Jun 2022 01:23:22 GMT", + "ETag": "\u00220x8DA436D51D2E45A\u0022", "Expires": "-1", - "Last-Modified": "Wed, 09 Mar 2022 07:34:34 GMT", + "Last-Modified": "Wed, 01 Jun 2022 01:23:22 GMT", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "2147d8b8-594b-406f-a78d-3830f603a2f1", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "3430d276-930b-4a68-a030-cedeca0e3186", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T073434Z:2147d8b8-594b-406f-a78d-3830f603a2f1" + "x-ms-correlation-request-id": "0987c162-06c3-47cc-8837-2e96262846b7", + "x-ms-ratelimit-remaining-subscription-reads": "11983", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T012322Z:0987c162-06c3-47cc-8837-2e96262846b7" }, "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da", "name": "batchpendpointa75328da", "type": "Microsoft.Batch/batchAccounts", "location": "eastus", "properties": { "accountEndpoint": "batchpendpointa75328da.eastus.batch.azure.com", "provisioningState": "Succeeded", - "dedicatedCoreQuota": 500, + "dedicatedCoreQuota": 0, "dedicatedCoreQuotaPerVMFamily": [ { "name": "standardAv2Family", - "coreQuota": 500 + "coreQuota": 0 }, { "name": "standardDv2Family", - "coreQuota": 250 + "coreQuota": 0 }, { "name": "standardDv3Family", - "coreQuota": 500 + "coreQuota": 0 }, { "name": "standardEv3Family", - "coreQuota": 500 + "coreQuota": 0 }, { "name": "standardDSv2Family", - "coreQuota": 250 + "coreQuota": 0 }, { "name": "standardDSv3Family", - "coreQuota": 500 + "coreQuota": 0 }, { "name": "standardESv3Family", - "coreQuota": 500 + "coreQuota": 0 }, { "name": "standardFSv2Family", - "coreQuota": 100 + "coreQuota": 0 }, { "name": "standardNCFamily", - "coreQuota": 24 + "coreQuota": 0 }, { "name": "standardNVFamily", - "coreQuota": 24 + "coreQuota": 0 }, { "name": "standardDDv4Family", - "coreQuota": 100 + "coreQuota": 0 }, { "name": "standardDDSv4Family", - "coreQuota": 100 + "coreQuota": 0 }, { "name": "standardEDv4Family", - "coreQuota": 100 + "coreQuota": 0 }, { "name": "standardEDSv4Family", - "coreQuota": 100 + "coreQuota": 0 }, { "name": "standardA0_A7Family", @@ -513,10 +507,18 @@ { "name": "standardEDSv5Family", "coreQuota": 0 + }, + { + "name": "standardNCADSA100v4Family", + "coreQuota": 0 + }, + { + "name": "standardDADSv5Family", + "coreQuota": 0 } ], "dedicatedCoreQuotaPerVMFamilyEnforced": true, - "lowPriorityCoreQuota": 500, + "lowPriorityCoreQuota": 0, "poolQuota": 100, "activeJobAndJobScheduleQuota": 300, "poolAllocationMode": "BatchService", @@ -532,7 +534,7 @@ ] }, "identity": { - "principalId": "501a3b90-611a-4e4a-9053-503df000c88a", + "principalId": "faa1a0f9-2112-4b38-be6d-86039c2b9f33", "tenantId": "00000000-0000-0000-0000-000000000000", "type": "SystemAssigned" } @@ -545,7 +547,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.9.0b2 Python/3.6.2 (Windows-10-10.0.19041-SP0)" + "User-Agent": "azsdk-python-identity/1.11.0b2 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -555,13 +557,13 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "1753", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:34:34 GMT", + "Date": "Wed, 01 Jun 2022 01:23:22 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12529.17 - WUS2 ProdSlices", - "x-ms-request-id": "f2f8f91a-3a90-44a9-b54b-3ba7af5f1401" + "x-ms-ests-server": "2.1.12821.9 - SCUS ProdSlices", + "X-XSS-Protection": "0" }, "ResponseBody": { "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", @@ -639,7 +641,7 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.9.0b2 Python/3.6.2 (Windows-10-10.0.19041-SP0)" + "User-Agent": "azsdk-python-identity/1.11.0b2 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -649,13 +651,13 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "945", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:34:34 GMT", + "Date": "Wed, 01 Jun 2022 01:23:22 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12559.5 - SEASLR2 ProdSlices", - "x-ms-request-id": "80ac1809-c216-4274-985d-58a757070500" + "x-ms-ests-server": "2.1.12794.7 - SCUS ProdSlices", + "X-XSS-Protection": "0" }, "ResponseBody": { "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.well-known/openid-configuration", @@ -710,28 +712,28 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "client-request-id": "eebf14a0-bbd2-40b2-b00c-4a62f3d44faa", + "client-request-id": "1b0651a5-3236-4ae8-8e56-8a6caf6e9b69", "Connection": "keep-alive", - "Content-Length": "291", + "Content-Length": "286", "Content-Type": "application/x-www-form-urlencoded", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.9.0b2 Python/3.6.2 (Windows-10-10.0.19041-SP0)", + "User-Agent": "azsdk-python-identity/1.11.0b2 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", - "x-client-os": "win32", + "x-client-os": "linux", "x-client-sku": "MSAL.Python", - "x-client-ver": "1.17.0", + "x-client-ver": "1.18.0", "x-ms-lib-capability": "retry-after, h429" }, - "RequestBody": "client_id=a2df54d5-ab03-4725-9b80-9a00b3b1967f\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=0vj7Q%7EIsFayrD0V_8oyOfygU-GE3ELOabq95a\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "RequestBody": "client_id=8c41a920-007a-4844-a189-2d0efe39f51e\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=o0XWF_siD-FhI.5AE83-u0GaQHW_GP7cjy\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", - "client-request-id": "eebf14a0-bbd2-40b2-b00c-4a62f3d44faa", + "client-request-id": "1b0651a5-3236-4ae8-8e56-8a6caf6e9b69", "Content-Length": "93", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:34:34 GMT", + "Date": "Wed, 01 Jun 2022 01:23:22 GMT", "Expires": "-1", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Pragma": "no-cache", @@ -739,8 +741,8 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", - "x-ms-ests-server": "2.1.12529.17 - WUS2 ProdSlices", - "x-ms-request-id": "f2f8f91a-3a90-44a9-b54b-3ba7b95f1401" + "x-ms-ests-server": "2.1.12821.9 - SCUS ProdSlices", + "X-XSS-Protection": "0" }, "ResponseBody": { "token_type": "Bearer", @@ -750,17 +752,15 @@ } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Network/virtualNetworks/vneta75328da?api-version=2020-11-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Network/virtualNetworks/vneta75328da?api-version=2020-11-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "287", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/18.0.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "5df3391c-9f7b-11ec-8d9f-c0b6f9946f2d" + "User-Agent": "azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "location": "eastus", @@ -786,11 +786,11 @@ "StatusCode": 201, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/44e04e7e-1b9f-4010-86c8-f9ba7e6a6fa4?api-version=2020-11-01", + "Azure-AsyncOperation": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/af9f3ba0-e86a-488e-9550-7db8c9c890d3?api-version=2020-11-01", "Cache-Control": "no-cache", "Content-Length": "1380", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:34:36 GMT", + "Date": "Wed, 01 Jun 2022 01:23:24 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "3", @@ -800,21 +800,20 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "191d9b2c-7817-4a11-b474-3795c7eca1b4", - "x-ms-correlation-request-id": "8291f0e5-f400-437f-90cb-077fab02c822", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "44e04e7e-1b9f-4010-86c8-f9ba7e6a6fa4", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T073436Z:8291f0e5-f400-437f-90cb-077fab02c822" + "x-ms-arm-service-request-id": "6e91b19b-02af-46e3-ae9c-f376fd4e87a4", + "x-ms-correlation-request-id": "4c8fdd67-bb08-4179-b6f4-9dc3ae1b9fd2", + "x-ms-ratelimit-remaining-subscription-writes": "1188", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T012324Z:4c8fdd67-bb08-4179-b6f4-9dc3ae1b9fd2" }, "ResponseBody": { "name": "vneta75328da", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Network/virtualNetworks/vneta75328da", - "etag": "W/\u0022242fa883-870c-4bba-9ae5-a08ec7617c51\u0022", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Network/virtualNetworks/vneta75328da", + "etag": "W/\u002295a30a36-1329-4ac4-b630-0bf5b1187fab\u0022", "type": "Microsoft.Network/virtualNetworks", "location": "eastus", "properties": { "provisioningState": "Updating", - "resourceGuid": "6bd1f5a6-b017-49d1-ab71-7abd93360db8", + "resourceGuid": "c24daa2e-e245-46c6-9bc9-84f9f595a5df", "addressSpace": { "addressPrefixes": [ "10.0.0.0/16" @@ -823,8 +822,8 @@ "subnets": [ { "name": "subneta75328da", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Network/virtualNetworks/vneta75328da/subnets/subneta75328da", - "etag": "W/\u0022242fa883-870c-4bba-9ae5-a08ec7617c51\u0022", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Network/virtualNetworks/vneta75328da/subnets/subneta75328da", + "etag": "W/\u002295a30a36-1329-4ac4-b630-0bf5b1187fab\u0022", "properties": { "provisioningState": "Updating", "addressPrefix": "10.0.0.0/24", @@ -841,54 +840,13 @@ } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/44e04e7e-1b9f-4010-86c8-f9ba7e6a6fa4?api-version=2020-11-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "*/*", - "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/18.0.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "5df3391c-9f7b-11ec-8d9f-c0b6f9946f2d" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:34:39 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "72f07f41-ac3f-4993-9f8b-d09d2742d78e", - "x-ms-correlation-request-id": "3a7b95d5-b72e-4ba5-a7ba-da07f7615a6a", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "631d2445-d4f9-434a-8de5-7a5e52507c25", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T073440Z:3a7b95d5-b72e-4ba5-a7ba-da07f7615a6a" - }, - "ResponseBody": { - "status": "InProgress" - } - }, - { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/44e04e7e-1b9f-4010-86c8-f9ba7e6a6fa4?api-version=2020-11-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/af9f3ba0-e86a-488e-9550-7db8c9c890d3?api-version=2020-11-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/18.0.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "5df3391c-9f7b-11ec-8d9f-c0b6f9946f2d" + "User-Agent": "azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -896,7 +854,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:34:49 GMT", + "Date": "Wed, 01 Jun 2022 01:23:27 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -907,26 +865,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "ae707838-4af7-4e62-9010-fefa0e84b7a1", - "x-ms-correlation-request-id": "19276aca-6670-4859-a155-e2a827700488", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "2d84ce21-b889-4b1b-bf18-2c16083173c3", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T073450Z:19276aca-6670-4859-a155-e2a827700488" + "x-ms-arm-service-request-id": "7132a47f-3e9a-490e-baac-2e46e57c4700", + "x-ms-correlation-request-id": "f7d9baf5-a98f-420b-a2bc-c4ce3feae9b5", + "x-ms-ratelimit-remaining-subscription-reads": "11982", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T012327Z:f7d9baf5-a98f-420b-a2bc-c4ce3feae9b5" }, "ResponseBody": { "status": "Succeeded" } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Network/virtualNetworks/vneta75328da?api-version=2020-11-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Network/virtualNetworks/vneta75328da?api-version=2020-11-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/18.0.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "5df3391c-9f7b-11ec-8d9f-c0b6f9946f2d" + "User-Agent": "azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -934,8 +889,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:34:50 GMT", - "ETag": "W/\u0022765c6a63-99de-438c-a92a-96ee023f5000\u0022", + "Date": "Wed, 01 Jun 2022 01:23:27 GMT", + "ETag": "W/\u002284d1151f-011e-4c4c-bb1a-be3d3a46ff5a\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -946,21 +901,20 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "da7f89f8-38e2-408e-8056-60bf95f49e93", - "x-ms-correlation-request-id": "f45b260b-5374-49f1-b1ce-e1a0c273af3e", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "af7b8872-4f77-4cf5-8471-ce7357a489dd", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T073450Z:f45b260b-5374-49f1-b1ce-e1a0c273af3e" + "x-ms-arm-service-request-id": "742e433d-1f9a-436a-9f01-a6fe2c030ea7", + "x-ms-correlation-request-id": "4683552f-49a4-437e-8511-8aef4fa669ed", + "x-ms-ratelimit-remaining-subscription-reads": "11981", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T012327Z:4683552f-49a4-437e-8511-8aef4fa669ed" }, "ResponseBody": { "name": "vneta75328da", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Network/virtualNetworks/vneta75328da", - "etag": "W/\u0022765c6a63-99de-438c-a92a-96ee023f5000\u0022", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Network/virtualNetworks/vneta75328da", + "etag": "W/\u002284d1151f-011e-4c4c-bb1a-be3d3a46ff5a\u0022", "type": "Microsoft.Network/virtualNetworks", "location": "eastus", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "6bd1f5a6-b017-49d1-ab71-7abd93360db8", + "resourceGuid": "c24daa2e-e245-46c6-9bc9-84f9f595a5df", "addressSpace": { "addressPrefixes": [ "10.0.0.0/16" @@ -969,8 +923,8 @@ "subnets": [ { "name": "subneta75328da", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Network/virtualNetworks/vneta75328da/subnets/subneta75328da", - "etag": "W/\u0022765c6a63-99de-438c-a92a-96ee023f5000\u0022", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Network/virtualNetworks/vneta75328da/subnets/subneta75328da", + "etag": "W/\u002284d1151f-011e-4c4c-bb1a-be3d3a46ff5a\u0022", "properties": { "provisioningState": "Succeeded", "addressPrefix": "10.0.0.0/24", @@ -987,29 +941,27 @@ } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Network/privateEndpoints/pea75328da?api-version=2020-11-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Network/privateEndpoints/pea75328da?api-version=2020-11-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "637", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/18.0.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "67a107ba-9f7b-11ec-82f4-c0b6f9946f2d" + "User-Agent": "azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "location": "eastus", "properties": { "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Network/virtualNetworks/vneta75328da/subnets/subneta75328da" + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Network/virtualNetworks/vneta75328da/subnets/subneta75328da" }, "manualPrivateLinkServiceConnections": [ { "name": "peca75328da", "properties": { - "privateLinkServiceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da", + "privateLinkServiceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da", "groupIds": [ "batchAccount" ] @@ -1021,11 +973,11 @@ "StatusCode": 201, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/4922b803-e518-49c1-8820-cdfd06c4d689?api-version=2020-11-01", + "Azure-AsyncOperation": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/3df42537-5e60-4b59-bb29-c4e5c7e2f91b?api-version=2020-11-01", "Cache-Control": "no-cache", "Content-Length": "2264", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:34:52 GMT", + "Date": "Wed, 01 Jun 2022 01:23:28 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -1035,30 +987,29 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "7521436e-1e71-42e7-ac92-ac94b2afdbbc", - "x-ms-correlation-request-id": "2435a196-5492-4831-b600-153b3d778721", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "4922b803-e518-49c1-8820-cdfd06c4d689", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T073452Z:2435a196-5492-4831-b600-153b3d778721" + "x-ms-arm-service-request-id": "4924f070-1fba-43f7-b56a-bbb3804fb4e9", + "x-ms-correlation-request-id": "d71c8dfe-10ba-48bc-acff-8d542b127eef", + "x-ms-ratelimit-remaining-subscription-writes": "1187", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T012328Z:d71c8dfe-10ba-48bc-acff-8d542b127eef" }, "ResponseBody": { "name": "pea75328da", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Network/privateEndpoints/pea75328da", - "etag": "W/\u002240cbbe39-391e-4576-b9ad-ca40f3587a2e\u0022", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Network/privateEndpoints/pea75328da", + "etag": "W/\u00220c2d6707-57d3-4f92-8102-d034e7279a46\u0022", "type": "Microsoft.Network/privateEndpoints", "location": "eastus", "properties": { "provisioningState": "Updating", - "resourceGuid": "a3760477-62bb-4d97-8fd3-392f8fc9b957", + "resourceGuid": "20648a6a-3ad5-42e1-ad4e-73698c662f65", "privateLinkServiceConnections": [], "manualPrivateLinkServiceConnections": [ { "name": "peca75328da", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Network/privateEndpoints/pea75328da/manualPrivateLinkServiceConnections/peca75328da", - "etag": "W/\u002240cbbe39-391e-4576-b9ad-ca40f3587a2e\u0022", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Network/privateEndpoints/pea75328da/manualPrivateLinkServiceConnections/peca75328da", + "etag": "W/\u00220c2d6707-57d3-4f92-8102-d034e7279a46\u0022", "properties": { "provisioningState": "Succeeded", - "privateLinkServiceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da", + "privateLinkServiceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da", "groupIds": [ "batchAccount" ], @@ -1072,11 +1023,11 @@ } ], "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Network/virtualNetworks/vneta75328da/subnets/subneta75328da" + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Network/virtualNetworks/vneta75328da/subnets/subneta75328da" }, "networkInterfaces": [ { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Network/networkInterfaces/pea75328da.nic.81c962ff-680c-4b85-8197-95420e602220" + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Network/networkInterfaces/pea75328da.nic.e7cf3cbd-4c83-4f47-b451-44278859e1a6" } ], "customDnsConfigs": [] @@ -1084,15 +1035,13 @@ } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/4922b803-e518-49c1-8820-cdfd06c4d689?api-version=2020-11-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/3df42537-5e60-4b59-bb29-c4e5c7e2f91b?api-version=2020-11-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/18.0.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "67a107ba-9f7b-11ec-82f4-c0b6f9946f2d" + "User-Agent": "azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1100,7 +1049,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:35:01 GMT", + "Date": "Wed, 01 Jun 2022 01:23:38 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -1112,26 +1061,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "a91853ae-0ca3-4b45-af10-2610751f1578", - "x-ms-correlation-request-id": "96cb3a90-fbbe-425e-9eca-1980ed562d9d", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "09316cc1-2dbc-4ed7-b5f7-300f9ab48151", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T073502Z:96cb3a90-fbbe-425e-9eca-1980ed562d9d" + "x-ms-arm-service-request-id": "c0d9b7a7-75f1-4a59-80bd-6d420af850f7", + "x-ms-correlation-request-id": "475bb4b9-e120-417a-87f9-affe2f72b625", + "x-ms-ratelimit-remaining-subscription-reads": "11980", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T012338Z:475bb4b9-e120-417a-87f9-affe2f72b625" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/4922b803-e518-49c1-8820-cdfd06c4d689?api-version=2020-11-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/3df42537-5e60-4b59-bb29-c4e5c7e2f91b?api-version=2020-11-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/18.0.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "67a107ba-9f7b-11ec-82f4-c0b6f9946f2d" + "User-Agent": "azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1139,7 +1085,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:35:12 GMT", + "Date": "Wed, 01 Jun 2022 01:23:49 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "20", @@ -1151,26 +1097,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "bd352b30-2609-40fb-99db-fa1b976ca43f", - "x-ms-correlation-request-id": "3bbaa459-84c0-45aa-b5d1-f8cb0c896305", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "bfe35515-014a-4289-8a76-8abed740ff97", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T073512Z:3bbaa459-84c0-45aa-b5d1-f8cb0c896305" + "x-ms-arm-service-request-id": "1c23029c-157b-4424-bdef-97e234c48848", + "x-ms-correlation-request-id": "8e4947eb-e34f-4968-8507-9c99bce25032", + "x-ms-ratelimit-remaining-subscription-reads": "11979", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T012349Z:8e4947eb-e34f-4968-8507-9c99bce25032" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/4922b803-e518-49c1-8820-cdfd06c4d689?api-version=2020-11-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/3df42537-5e60-4b59-bb29-c4e5c7e2f91b?api-version=2020-11-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/18.0.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "67a107ba-9f7b-11ec-82f4-c0b6f9946f2d" + "User-Agent": "azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1178,7 +1121,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:35:32 GMT", + "Date": "Wed, 01 Jun 2022 01:24:09 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -1189,26 +1132,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "b4eca0fb-9a9c-4d66-aeb9-d2db6287d036", - "x-ms-correlation-request-id": "03c37798-168d-4266-9100-59856f76256a", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "e47f4613-e5a4-44ac-8865-65762d1b6808", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T073533Z:03c37798-168d-4266-9100-59856f76256a" + "x-ms-arm-service-request-id": "c38f1875-e04c-4927-ab28-64c1d5e46b50", + "x-ms-correlation-request-id": "4594c524-7869-47ca-8bea-48faa64973da", + "x-ms-ratelimit-remaining-subscription-reads": "11978", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T012409Z:4594c524-7869-47ca-8bea-48faa64973da" }, "ResponseBody": { "status": "Succeeded" } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Network/privateEndpoints/pea75328da?api-version=2020-11-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Network/privateEndpoints/pea75328da?api-version=2020-11-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/18.0.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "67a107ba-9f7b-11ec-82f4-c0b6f9946f2d" + "User-Agent": "azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1216,8 +1156,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:35:32 GMT", - "ETag": "W/\u0022dda7c9b6-fb3d-4d4e-a55f-6c40210b17bb\u0022", + "Date": "Wed, 01 Jun 2022 01:24:09 GMT", + "ETag": "W/\u00226f18f05c-08fe-474d-8ff7-224fd90a0226\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -1228,48 +1168,47 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "96522c83-ac22-4dfb-a401-f39ab1255bac", - "x-ms-correlation-request-id": "cf1d05c5-f8e7-4bbe-9726-0e6e6e9894dc", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "23e8ccf8-f992-4204-9857-d116c18f7bac", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T073533Z:cf1d05c5-f8e7-4bbe-9726-0e6e6e9894dc" + "x-ms-arm-service-request-id": "c1f90826-bfec-4f53-b4a3-69e92d0f4d14", + "x-ms-correlation-request-id": "cc6d88b8-a0c8-4a45-a52f-79c85cf16011", + "x-ms-ratelimit-remaining-subscription-reads": "11977", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T012409Z:cc6d88b8-a0c8-4a45-a52f-79c85cf16011" }, "ResponseBody": { "name": "pea75328da", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Network/privateEndpoints/pea75328da", - "etag": "W/\u0022dda7c9b6-fb3d-4d4e-a55f-6c40210b17bb\u0022", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Network/privateEndpoints/pea75328da", + "etag": "W/\u00226f18f05c-08fe-474d-8ff7-224fd90a0226\u0022", "type": "Microsoft.Network/privateEndpoints", "location": "eastus", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "a3760477-62bb-4d97-8fd3-392f8fc9b957", + "resourceGuid": "20648a6a-3ad5-42e1-ad4e-73698c662f65", "privateLinkServiceConnections": [], "manualPrivateLinkServiceConnections": [ { "name": "peca75328da", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Network/privateEndpoints/pea75328da/manualPrivateLinkServiceConnections/peca75328da", - "etag": "W/\u0022dda7c9b6-fb3d-4d4e-a55f-6c40210b17bb\u0022", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Network/privateEndpoints/pea75328da/manualPrivateLinkServiceConnections/peca75328da", + "etag": "W/\u00226f18f05c-08fe-474d-8ff7-224fd90a0226\u0022", "properties": { "provisioningState": "Succeeded", - "privateLinkServiceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da", + "privateLinkServiceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da", "groupIds": [ "batchAccount" ], "privateLinkServiceConnectionState": { "status": "Pending", "description": "Manual approval still required", - "actionsRequired": "Manual approval request" + "actionsRequired": "Manual approval required" } }, "type": "Microsoft.Network/privateEndpoints/manualPrivateLinkServiceConnections" } ], "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Network/virtualNetworks/vneta75328da/subnets/subneta75328da" + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Network/virtualNetworks/vneta75328da/subnets/subneta75328da" }, "networkInterfaces": [ { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Network/networkInterfaces/pea75328da.nic.81c962ff-680c-4b85-8197-95420e602220" + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Network/networkInterfaces/pea75328da.nic.e7cf3cbd-4c83-4f47-b451-44278859e1a6" } ], "customDnsConfigs": [] @@ -1277,15 +1216,13 @@ } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateLinkResources?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateLinkResources?api-version=2022-06-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "810811be-9f7b-11ec-96d6-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1293,7 +1230,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:35:33 GMT", + "Date": "Wed, 01 Jun 2022 01:24:09 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", @@ -1301,16 +1238,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ef2e0cbf-2327-46f8-a747-3c9fa7b51a65", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "447b8c9e-9b65-4b51-a059-104e4bfad252", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T073534Z:ef2e0cbf-2327-46f8-a747-3c9fa7b51a65" + "x-ms-correlation-request-id": "85971cb9-9f3c-4eb9-9c38-86434b00a9fa", + "x-ms-ratelimit-remaining-subscription-reads": "11976", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T012409Z:85971cb9-9f3c-4eb9-9c38-86434b00a9fa" }, "ResponseBody": { "value": [ { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateLinkResources/batchpendpointa75328da", - "name": "batchpendpointa75328da", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateLinkResources/batchAccount", + "name": "batchAccount", "type": "Microsoft.Batch/batchAccounts/privateLinkResources", "properties": { "groupId": "batchAccount", @@ -1326,15 +1262,13 @@ } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateLinkResources/batchpendpointa75328da?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateLinkResources/batchAccount?api-version=2022-06-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "8161677a-9f7b-11ec-8484-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1342,7 +1276,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:35:33 GMT", + "Date": "Wed, 01 Jun 2022 01:24:09 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", @@ -1350,14 +1284,13 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "43b7b48f-4247-4472-821f-79eba26ced51", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "28af4124-39fa-4701-b803-03a5cae2a8bc", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T073534Z:43b7b48f-4247-4472-821f-79eba26ced51" + "x-ms-correlation-request-id": "deb17b09-7b20-4d20-a771-0cff2d1bf7ab", + "x-ms-ratelimit-remaining-subscription-reads": "11975", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T012409Z:deb17b09-7b20-4d20-a771-0cff2d1bf7ab" }, "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateLinkResources/batchpendpointa75328da", - "name": "batchpendpointa75328da", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateLinkResources/batchAccount", + "name": "batchAccount", "type": "Microsoft.Batch/batchAccounts/privateLinkResources", "properties": { "groupId": "batchAccount", @@ -1371,15 +1304,13 @@ } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateEndpointConnections?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateEndpointConnections?api-version=2022-06-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "81983698-9f7b-11ec-8ebf-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1387,7 +1318,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:35:33 GMT", + "Date": "Wed, 01 Jun 2022 01:24:09 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", @@ -1395,43 +1326,43 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "2db7f24f-7f77-4d62-a6a9-cd5b105bd1b1", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "94f33536-677c-48e6-af10-b3035fb068d9", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T073534Z:2db7f24f-7f77-4d62-a6a9-cd5b105bd1b1" + "x-ms-correlation-request-id": "58a492b6-f18f-4ad6-ac60-b75fd1e17248", + "x-ms-ratelimit-remaining-subscription-reads": "11974", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T012409Z:58a492b6-f18f-4ad6-ac60-b75fd1e17248" }, "ResponseBody": { "value": [ { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateEndpointConnections/pea75328da.a3760477-62bb-4d97-8fd3-392f8fc9b957", - "name": "pea75328da.a3760477-62bb-4d97-8fd3-392f8fc9b957", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateEndpointConnections/pea75328da.20648a6a-3ad5-42e1-ad4e-73698c662f65", + "name": "pea75328da.20648a6a-3ad5-42e1-ad4e-73698c662f65", "type": "Microsoft.Batch/batchAccounts/privateEndpointConnections", - "etag": "W/\u00220x8DA019F57FDEECD\u0022", + "etag": "W/\u00220x8DA436D5FFA1910\u0022", "properties": { "provisioningState": "Succeeded", "privateEndpoint": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Network/privateEndpoints/pea75328da" + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Network/privateEndpoints/pea75328da" }, "privateLinkServiceConnectionState": { "status": "Pending", "description": "Manual approval still required", - "actionsRequired": "Manual approval request" - } + "actionsRequired": "Manual approval required" + }, + "groupIds": [ + "batchAccount" + ] } } ] } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateEndpointConnections/pea75328da.a3760477-62bb-4d97-8fd3-392f8fc9b957?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateEndpointConnections/pea75328da.20648a6a-3ad5-42e1-ad4e-73698c662f65?api-version=2022-06-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "81d02e76-9f7b-11ec-83b9-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1439,51 +1370,51 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:35:35 GMT", - "ETag": "W/\u00220x8DA019F57FDEECD\u0022", + "Date": "Wed, 01 Jun 2022 01:24:09 GMT", + "ETag": "W/\u00220x8DA436D5FFA1910\u0022", "Expires": "-1", - "Last-Modified": "Wed, 09 Mar 2022 07:35:11 GMT", + "Last-Modified": "Wed, 01 Jun 2022 01:23:46 GMT", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "9cb28081-d3a6-47b4-b092-e3b06b559331", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "452ad548-b0bc-4724-8e20-cc6d5ff04912", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T073535Z:9cb28081-d3a6-47b4-b092-e3b06b559331" + "x-ms-correlation-request-id": "1ba9841b-109a-49ce-b6a0-65f8f33409cf", + "x-ms-ratelimit-remaining-subscription-reads": "11973", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T012409Z:1ba9841b-109a-49ce-b6a0-65f8f33409cf" }, "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateEndpointConnections/pea75328da.a3760477-62bb-4d97-8fd3-392f8fc9b957", - "name": "pea75328da.a3760477-62bb-4d97-8fd3-392f8fc9b957", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateEndpointConnections/pea75328da.20648a6a-3ad5-42e1-ad4e-73698c662f65", + "name": "pea75328da.20648a6a-3ad5-42e1-ad4e-73698c662f65", "type": "Microsoft.Batch/batchAccounts/privateEndpointConnections", - "etag": "W/\u00220x8DA019F57FDEECD\u0022", + "etag": "W/\u00220x8DA436D5FFA1910\u0022", "properties": { "provisioningState": "Succeeded", "privateEndpoint": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Network/privateEndpoints/pea75328da" + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Network/privateEndpoints/pea75328da" }, "privateLinkServiceConnectionState": { "status": "Pending", "description": "Manual approval still required", - "actionsRequired": "Manual approval request" - } + "actionsRequired": "Manual approval required" + }, + "groupIds": [ + "batchAccount" + ] } } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateEndpointConnections/pea75328da.a3760477-62bb-4d97-8fd3-392f8fc9b957?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateEndpointConnections/pea75328da.20648a6a-3ad5-42e1-ad4e-73698c662f65?api-version=2022-06-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "113", "Content-Type": "application/json", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "8205c534-9f7b-11ec-81b8-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "properties": { @@ -1495,53 +1426,53 @@ }, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateEndpointConnectionResults/Updating$pea75328da.a3760477-62bb-4d97-8fd3-392f8fc9b957$b93240d6-f53f-4a5d-a1b8-9dd8f96a2780?api-version=2022-01-01", + "Azure-AsyncOperation": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateEndpointConnectionResults/Updating$pea75328da.20648a6a-3ad5-42e1-ad4e-73698c662f65$c582a80d-4b35-41e6-9bdc-ed75fcf30cb9?api-version=2022-06-01", "Cache-Control": "no-cache", - "Content-Length": "863", + "Content-Length": "872", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:35:35 GMT", - "ETag": "W/\u00220x8DA019F57FDEECD\u0022", + "Date": "Wed, 01 Jun 2022 01:24:09 GMT", + "ETag": "W/\u00220x8DA436D6DCA9742\u0022", "Expires": "-1", - "Last-Modified": "Wed, 09 Mar 2022 07:35:11 GMT", - "Location": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateEndpointConnectionResults/Updating$pea75328da.a3760477-62bb-4d97-8fd3-392f8fc9b957$b93240d6-f53f-4a5d-a1b8-9dd8f96a2780?api-version=2022-01-01", + "Last-Modified": "Wed, 01 Jun 2022 01:24:09 GMT", + "Location": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateEndpointConnectionResults/Updating$pea75328da.20648a6a-3ad5-42e1-ad4e-73698c662f65$c582a80d-4b35-41e6-9bdc-ed75fcf30cb9?api-version=2022-06-01", "Pragma": "no-cache", "Retry-After": "15", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ea71e260-8aec-4b0f-adf0-d4cff81ea517", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "b93240d6-f53f-4a5d-a1b8-9dd8f96a2780", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T073535Z:ea71e260-8aec-4b0f-adf0-d4cff81ea517" + "x-ms-correlation-request-id": "c0468c25-529c-4c0e-99ae-cf56745e8a18", + "x-ms-ratelimit-remaining-subscription-writes": "1186", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T012409Z:c0468c25-529c-4c0e-99ae-cf56745e8a18" }, "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateEndpointConnections/pea75328da.a3760477-62bb-4d97-8fd3-392f8fc9b957", - "name": "pea75328da.a3760477-62bb-4d97-8fd3-392f8fc9b957", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateEndpointConnections/pea75328da.20648a6a-3ad5-42e1-ad4e-73698c662f65", + "name": "pea75328da.20648a6a-3ad5-42e1-ad4e-73698c662f65", "type": "Microsoft.Batch/batchAccounts/privateEndpointConnections", - "etag": "W/\u00220x8DA019F57FDEECD\u0022", + "etag": "W/\u00220x8DA436D6DCA9742\u0022", "properties": { "provisioningState": "Updating", "privateEndpoint": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Network/privateEndpoints/pea75328da" + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Network/privateEndpoints/pea75328da" }, "privateLinkServiceConnectionState": { "status": "Approved", "description": "Approved for test", - "actionsRequired": "Manual approval request" - } + "actionsRequired": "None" + }, + "groupIds": [ + "batchAccount" + ] } } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateEndpointConnectionResults/Updating$pea75328da.a3760477-62bb-4d97-8fd3-392f8fc9b957$b93240d6-f53f-4a5d-a1b8-9dd8f96a2780?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateEndpointConnectionResults/Updating$pea75328da.20648a6a-3ad5-42e1-ad4e-73698c662f65$c582a80d-4b35-41e6-9bdc-ed75fcf30cb9?api-version=2022-06-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "8205c534-9f7b-11ec-81b8-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1549,7 +1480,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:35:50 GMT", + "Date": "Wed, 01 Jun 2022 01:24:24 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", @@ -1557,26 +1488,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "2e660ad5-fa95-4a04-a08a-d73ac3fbe756", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "d43b40cf-976e-4750-a303-7ffe2a5d7f0b", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T073551Z:2e660ad5-fa95-4a04-a08a-d73ac3fbe756" + "x-ms-correlation-request-id": "efb34faa-cdd4-4f39-a823-7843cac0a579", + "x-ms-ratelimit-remaining-subscription-reads": "11972", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T012425Z:efb34faa-cdd4-4f39-a823-7843cac0a579" }, "ResponseBody": { "status": "Succeeded", - "retryAfter": 0 + "retryAfter": 5 } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateEndpointConnections/pea75328da.a3760477-62bb-4d97-8fd3-392f8fc9b957?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateEndpointConnections/pea75328da.20648a6a-3ad5-42e1-ad4e-73698c662f65?api-version=2022-06-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "8205c534-9f7b-11ec-81b8-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1584,36 +1512,38 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:35:51 GMT", - "ETag": "W/\u00220x8DA019F57FDEECD\u0022", + "Date": "Wed, 01 Jun 2022 01:24:24 GMT", + "ETag": "W/\u00220x8DA436D6DCA9742\u0022", "Expires": "-1", - "Last-Modified": "Wed, 09 Mar 2022 07:35:11 GMT", + "Last-Modified": "Wed, 01 Jun 2022 01:24:09 GMT", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d7641003-532e-45d9-9694-66700371c576", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "a26652e9-2c06-4040-89fa-700a72c8baf5", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T073551Z:d7641003-532e-45d9-9694-66700371c576" + "x-ms-correlation-request-id": "e53fecb3-4d16-473f-bdde-4d6f99e4bb9a", + "x-ms-ratelimit-remaining-subscription-reads": "11971", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T012425Z:e53fecb3-4d16-473f-bdde-4d6f99e4bb9a" }, "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateEndpointConnections/pea75328da.a3760477-62bb-4d97-8fd3-392f8fc9b957", - "name": "pea75328da.a3760477-62bb-4d97-8fd3-392f8fc9b957", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Batch/batchAccounts/batchpendpointa75328da/privateEndpointConnections/pea75328da.20648a6a-3ad5-42e1-ad4e-73698c662f65", + "name": "pea75328da.20648a6a-3ad5-42e1-ad4e-73698c662f65", "type": "Microsoft.Batch/batchAccounts/privateEndpointConnections", - "etag": "W/\u00220x8DA019F57FDEECD\u0022", + "etag": "W/\u00220x8DA436D6DCA9742\u0022", "properties": { "provisioningState": "Succeeded", "privateEndpoint": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-j4svsiaqxr3z3gwjczsgeoooaxe4fxpo65u47uxl5a3jnxsjjtxvas24ukhbdptphcrpumvz53b/providers/Microsoft.Network/privateEndpoints/pea75328da" + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-b25skyw75xdhudx4kx7lj7y3vvkumohdjkdtxkaqpgbncm6qsvspug4lqxl5wdhjlcm4pbbiv23/providers/Microsoft.Network/privateEndpoints/pea75328da" }, "privateLinkServiceConnectionState": { "status": "Approved", "description": "Approved for test", - "actionsRequired": "Manual approval request" - } + "actionsRequired": "None" + }, + "groupIds": [ + "batchAccount" + ] } } } diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_account_name.json b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_account_name.json index a4a538cce13b..1cb613b3ab04 100644 --- a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_account_name.json +++ b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_account_name.json @@ -7,7 +7,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.9.0b2 Python/3.6.2 (Windows-10-10.0.19041-SP0)" + "User-Agent": "azsdk-python-identity/1.11.0b2 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -17,13 +17,13 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "1753", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:17:30 GMT", + "Date": "Wed, 01 Jun 2022 01:08:01 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12529.17 - WUS2 ProdSlices", - "x-ms-request-id": "db162bb1-bb11-4eeb-b61f-1ee81de71b01" + "x-ms-ests-server": "2.1.12821.9 - WUS2 ProdSlices", + "X-XSS-Protection": "0" }, "ResponseBody": { "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", @@ -101,7 +101,7 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.9.0b2 Python/3.6.2 (Windows-10-10.0.19041-SP0)" + "User-Agent": "azsdk-python-identity/1.11.0b2 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -111,13 +111,13 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "945", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:17:30 GMT", + "Date": "Wed, 01 Jun 2022 01:08:01 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12559.5 - SEASLR1 ProdSlices", - "x-ms-request-id": "8b331288-c450-4187-9d17-c832cc010500" + "x-ms-ests-server": "2.1.12821.9 - EUS ProdSlices", + "X-XSS-Protection": "0" }, "ResponseBody": { "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.well-known/openid-configuration", @@ -172,28 +172,28 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "client-request-id": "4a0f944e-be00-4921-9018-7c2ef032eb62", + "client-request-id": "41180e48-ae4f-4ef7-8ff1-541b241f003b", "Connection": "keep-alive", - "Content-Length": "291", + "Content-Length": "286", "Content-Type": "application/x-www-form-urlencoded", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.9.0b2 Python/3.6.2 (Windows-10-10.0.19041-SP0)", + "User-Agent": "azsdk-python-identity/1.11.0b2 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", - "x-client-os": "win32", + "x-client-os": "linux", "x-client-sku": "MSAL.Python", - "x-client-ver": "1.17.0", + "x-client-ver": "1.18.0", "x-ms-lib-capability": "retry-after, h429" }, - "RequestBody": "client_id=a2df54d5-ab03-4725-9b80-9a00b3b1967f\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=0vj7Q%7EIsFayrD0V_8oyOfygU-GE3ELOabq95a\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "RequestBody": "client_id=8c41a920-007a-4844-a189-2d0efe39f51e\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=o0XWF_siD-FhI.5AE83-u0GaQHW_GP7cjy\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", - "client-request-id": "4a0f944e-be00-4921-9018-7c2ef032eb62", + "client-request-id": "41180e48-ae4f-4ef7-8ff1-541b241f003b", "Content-Length": "93", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:17:30 GMT", + "Date": "Wed, 01 Jun 2022 01:08:02 GMT", "Expires": "-1", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Pragma": "no-cache", @@ -201,8 +201,8 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", - "x-ms-ests-server": "2.1.12529.17 - SCUS ProdSlices", - "x-ms-request-id": "5b418973-df91-44b8-917f-07ede833f600" + "x-ms-ests-server": "2.1.12821.9 - EUS ProdSlices", + "X-XSS-Protection": "0" }, "ResponseBody": { "token_type": "Bearer", @@ -212,17 +212,15 @@ } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/eastus/checkNameAvailability?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/eastus/checkNameAvailability?api-version=2022-06-01", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "86", "Content-Type": "application/json", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "faff6428-9f78-11ec-a9e5-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "name": "randombatchaccount@5^$g9873495873", @@ -233,7 +231,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:17:30 GMT", + "Date": "Wed, 01 Jun 2022 01:08:02 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", @@ -241,10 +239,9 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "cd555501-3a36-4e20-bc9b-9d045ff663ad", + "x-ms-correlation-request-id": "4a68e484-701f-4144-ae33-e95294180b9f", "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "15b9db24-c0a0-4934-abb0-2ba9f8873e13", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T071731Z:cd555501-3a36-4e20-bc9b-9d045ff663ad" + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T010803Z:4a68e484-701f-4144-ae33-e95294180b9f" }, "ResponseBody": { "nameAvailable": false, @@ -253,17 +250,15 @@ } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/eastus/checkNameAvailability?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/eastus/checkNameAvailability?api-version=2022-06-01", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "68", "Content-Type": "application/json", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "fbf69c58-9f78-11ec-910b-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "name": "dawatroupp2acct", @@ -274,7 +269,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:17:31 GMT", + "Date": "Wed, 01 Jun 2022 01:08:02 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", @@ -282,10 +277,9 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "0a9e09a8-1eab-400c-b8d0-6084dd06274f", + "x-ms-correlation-request-id": "2298df45-b133-40cb-be41-c25224686e2c", "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "aee7be99-ce05-4c88-b9cd-182439936862", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T071731Z:0a9e09a8-1eab-400c-b8d0-6084dd06274f" + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T010803Z:2298df45-b133-40cb-be41-c25224686e2c" }, "ResponseBody": { "nameAvailable": true diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_applications.json b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_applications.json index 2ac83058c4c2..f0fd1ba1d50c 100644 --- a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_applications.json +++ b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_applications.json @@ -7,7 +7,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.9.0b2 Python/3.6.2 (Windows-10-10.0.19041-SP0)" + "User-Agent": "azsdk-python-identity/1.11.0b2 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -17,13 +17,13 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "1753", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:18:16 GMT", + "Date": "Wed, 01 Jun 2022 01:08:27 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12529.17 - WUS2 ProdSlices", - "x-ms-request-id": "3cbf559f-bd81-4985-87a6-1f2736f92501" + "x-ms-ests-server": "2.1.12821.9 - EUS ProdSlices", + "X-XSS-Protection": "0" }, "ResponseBody": { "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", @@ -101,7 +101,7 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.9.0b2 Python/3.6.2 (Windows-10-10.0.19041-SP0)" + "User-Agent": "azsdk-python-identity/1.11.0b2 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -111,13 +111,13 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "945", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:18:16 GMT", + "Date": "Wed, 01 Jun 2022 01:08:27 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12559.5 - KRSLR2 ProdSlices", - "x-ms-request-id": "5a0e09f4-b458-47e0-94f5-3f8c6b150500" + "x-ms-ests-server": "2.1.12794.7 - SCUS ProdSlices", + "X-XSS-Protection": "0" }, "ResponseBody": { "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.well-known/openid-configuration", @@ -172,28 +172,28 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "client-request-id": "bf586d4a-322d-430b-9b89-dd1b3d7ba78f", + "client-request-id": "3af0b637-be0c-43ec-9c12-c277c10b9903", "Connection": "keep-alive", - "Content-Length": "291", + "Content-Length": "286", "Content-Type": "application/x-www-form-urlencoded", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.9.0b2 Python/3.6.2 (Windows-10-10.0.19041-SP0)", + "User-Agent": "azsdk-python-identity/1.11.0b2 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", - "x-client-os": "win32", + "x-client-os": "linux", "x-client-sku": "MSAL.Python", - "x-client-ver": "1.17.0", + "x-client-ver": "1.18.0", "x-ms-lib-capability": "retry-after, h429" }, - "RequestBody": "client_id=a2df54d5-ab03-4725-9b80-9a00b3b1967f\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=0vj7Q%7EIsFayrD0V_8oyOfygU-GE3ELOabq95a\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "RequestBody": "client_id=8c41a920-007a-4844-a189-2d0efe39f51e\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=o0XWF_siD-FhI.5AE83-u0GaQHW_GP7cjy\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", - "client-request-id": "bf586d4a-322d-430b-9b89-dd1b3d7ba78f", + "client-request-id": "3af0b637-be0c-43ec-9c12-c277c10b9903", "Content-Length": "93", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:18:16 GMT", + "Date": "Wed, 01 Jun 2022 01:08:27 GMT", "Expires": "-1", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Pragma": "no-cache", @@ -201,8 +201,8 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", - "x-ms-ests-server": "2.1.12529.17 - EUS ProdSlices", - "x-ms-request-id": "2659c2cb-b5dd-4aae-88e5-bd273b45ed00" + "x-ms-ests-server": "2.1.12821.9 - EUS ProdSlices", + "X-XSS-Protection": "0" }, "ResponseBody": { "token_type": "Bearer", @@ -212,17 +212,15 @@ } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11?api-version=2022-06-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "286", "Content-Type": "application/json", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "16b0ce14-9f79-11ec-a208-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "location": "eastus", @@ -238,31 +236,28 @@ "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Wed, 09 Mar 2022 07:18:18 GMT", + "Date": "Wed, 01 Jun 2022 01:08:28 GMT", "Expires": "-1", - "Location": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/operationResults/5055ad69-5699-4629-9fb6-6a9724f1b2e5?api-version=2022-01-01", + "Location": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/operationResults/57c4e788-c19c-4bf7-b289-0a9e6cc2faa3?api-version=2022-06-01", "Pragma": "no-cache", "Retry-After": "15", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "c627cea1-9865-4bdb-9203-4ac609ec8a9b", + "x-ms-correlation-request-id": "9af3223a-85ea-467b-ba93-78360f4fd442", "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "5055ad69-5699-4629-9fb6-6a9724f1b2e5", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T071818Z:c627cea1-9865-4bdb-9203-4ac609ec8a9b" + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T010829Z:9af3223a-85ea-467b-ba93-78360f4fd442" }, "ResponseBody": null }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/operationResults/5055ad69-5699-4629-9fb6-6a9724f1b2e5?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/operationResults/57c4e788-c19c-4bf7-b289-0a9e6cc2faa3?api-version=2022-06-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "16b0ce14-9f79-11ec-a208-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -270,20 +265,19 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:18:33 GMT", - "ETag": "\u00220x8DA019D05772B7A\u0022", + "Date": "Wed, 01 Jun 2022 01:08:44 GMT", + "ETag": "\u00220x8DA436B46813623\u0022", "Expires": "-1", - "Last-Modified": "Wed, 09 Mar 2022 07:18:33 GMT", + "Last-Modified": "Wed, 01 Jun 2022 01:08:44 GMT", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "2f3a4db5-7c53-49ba-b73c-05d1715a5407", + "x-ms-correlation-request-id": "a4d604d3-d434-4b58-95b2-d388363f41f3", "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "25b428cd-a400-4a5b-92a8-d899fd5c02c6", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T071833Z:2f3a4db5-7c53-49ba-b73c-05d1715a5407" + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T010844Z:a4d604d3-d434-4b58-95b2-d388363f41f3" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11", @@ -293,63 +287,63 @@ "properties": { "accountEndpoint": "batch11.eastus.batch.azure.com", "provisioningState": "Succeeded", - "dedicatedCoreQuota": 500, + "dedicatedCoreQuota": 0, "dedicatedCoreQuotaPerVMFamily": [ { "name": "standardAv2Family", - "coreQuota": 500 + "coreQuota": 0 }, { "name": "standardDv2Family", - "coreQuota": 250 + "coreQuota": 0 }, { "name": "standardDv3Family", - "coreQuota": 500 + "coreQuota": 0 }, { "name": "standardEv3Family", - "coreQuota": 500 + "coreQuota": 0 }, { "name": "standardDSv2Family", - "coreQuota": 250 + "coreQuota": 0 }, { "name": "standardDSv3Family", - "coreQuota": 500 + "coreQuota": 0 }, { "name": "standardESv3Family", - "coreQuota": 500 + "coreQuota": 0 }, { "name": "standardFSv2Family", - "coreQuota": 100 + "coreQuota": 0 }, { "name": "standardNCFamily", - "coreQuota": 24 + "coreQuota": 0 }, { "name": "standardNVFamily", - "coreQuota": 24 + "coreQuota": 0 }, { "name": "standardDDv4Family", - "coreQuota": 100 + "coreQuota": 0 }, { "name": "standardDDSv4Family", - "coreQuota": 100 + "coreQuota": 0 }, { "name": "standardEDv4Family", - "coreQuota": 100 + "coreQuota": 0 }, { "name": "standardEDSv4Family", - "coreQuota": 100 + "coreQuota": 0 }, { "name": "standardA0_A7Family", @@ -514,15 +508,23 @@ { "name": "standardEDSv5Family", "coreQuota": 0 + }, + { + "name": "standardNCADSA100v4Family", + "coreQuota": 0 + }, + { + "name": "standardDADSv5Family", + "coreQuota": 0 } ], "dedicatedCoreQuotaPerVMFamilyEnforced": true, - "lowPriorityCoreQuota": 500, + "lowPriorityCoreQuota": 0, "poolQuota": 100, "activeJobAndJobScheduleQuota": 300, "autoStorage": { "storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Storage/storageAccounts/batch49e275f", - "lastKeySync": "2022-03-09T07:18:18.4415332Z", + "lastKeySync": "2022-06-01T01:08:29.7589839Z", "authenticationMode": "StorageKeys" }, "poolAllocationMode": "BatchService", @@ -542,46 +544,41 @@ } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/syncAutoStorageKeys?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/syncAutoStorageKeys?api-version=2022-06-01", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "214dd992-9f79-11ec-9a5a-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "Cache-Control": "no-cache", - "Date": "Wed, 09 Mar 2022 07:18:34 GMT", + "Date": "Wed, 01 Jun 2022 01:08:45 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "cc7c1d24-3b1a-45b6-938b-c2b3ca44dd2f", + "x-ms-correlation-request-id": "b4f03378-5535-4141-ad57-a9c2cd9bd700", "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "4fd9d5bb-08df-4a43-a2fa-f47d00101dde", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T071835Z:cc7c1d24-3b1a-45b6-938b-c2b3ca44dd2f" + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T010845Z:b4f03378-5535-4141-ad57-a9c2cd9bd700" }, "ResponseBody": null }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications/my_application_id?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications/my_application_id?api-version=2022-06-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "76", "Content-Type": "application/json", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "22381208-9f79-11ec-a334-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "properties": { @@ -594,26 +591,25 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:18:35 GMT", - "ETag": "W/\u00220x8DA019D06AC7514\u0022", + "Date": "Wed, 01 Jun 2022 01:08:45 GMT", + "ETag": "W/\u00220x8DA436B46E79F52\u0022", "Expires": "-1", - "Last-Modified": "Wed, 09 Mar 2022 07:18:35 GMT", + "Last-Modified": "Wed, 01 Jun 2022 01:08:45 GMT", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "338bb68b-46ef-4f76-955b-ee66fe6fe945", + "x-ms-correlation-request-id": "91866b01-5c13-4d8f-aecb-54cffa0b65bb", "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "141e7724-b5ea-40c3-aa56-703fb1d58167", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T071836Z:338bb68b-46ef-4f76-955b-ee66fe6fe945" + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T010845Z:91866b01-5c13-4d8f-aecb-54cffa0b65bb" }, "ResponseBody": { "type": "Microsoft.Batch/batchAccounts/applications", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications/my_application_id", "name": "my_application_id", - "etag": "W/\u00220x8DA019D06AC7514\u0022", + "etag": "W/\u00220x8DA436B46E79F52\u0022", "properties": { "displayName": "my_application_name", "allowUpdates": true @@ -621,15 +617,13 @@ } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications/my_application_id?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications/my_application_id?api-version=2022-06-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "2288f964-9f79-11ec-9b8e-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -637,26 +631,25 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:18:35 GMT", - "ETag": "W/\u00220x8DA019D06AC7514\u0022", + "Date": "Wed, 01 Jun 2022 01:08:45 GMT", + "ETag": "W/\u00220x8DA436B46E79F52\u0022", "Expires": "-1", - "Last-Modified": "Wed, 09 Mar 2022 07:18:35 GMT", + "Last-Modified": "Wed, 01 Jun 2022 01:08:45 GMT", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ff53ab06-526b-4eb5-a5bc-010f0f0e4274", + "x-ms-correlation-request-id": "35a10a1d-dc65-4fc4-901f-70fc67862904", "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "062e565a-7849-446f-9df1-9ce2e61db04f", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T071836Z:ff53ab06-526b-4eb5-a5bc-010f0f0e4274" + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T010845Z:35a10a1d-dc65-4fc4-901f-70fc67862904" }, "ResponseBody": { "type": "Microsoft.Batch/batchAccounts/applications", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications/my_application_id", "name": "my_application_id", - "etag": "W/\u00220x8DA019D06AC7514\u0022", + "etag": "W/\u00220x8DA436B46E79F52\u0022", "properties": { "displayName": "my_application_name", "allowUpdates": true @@ -664,15 +657,13 @@ } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications?api-version=2022-06-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "22c2b018-9f79-11ec-a61f-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -680,7 +671,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:18:35 GMT", + "Date": "Wed, 01 Jun 2022 01:08:45 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", @@ -688,10 +679,9 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "1eb3e4f1-7ddb-405c-9932-dc7d8aed823c", + "x-ms-correlation-request-id": "ab553aab-3468-4f4e-bc62-fbd664128a26", "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "93bc8a3e-6917-4afc-a246-634f9c8866dc", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T071836Z:1eb3e4f1-7ddb-405c-9932-dc7d8aed823c" + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T010846Z:ab553aab-3468-4f4e-bc62-fbd664128a26" }, "ResponseBody": { "value": [ @@ -699,7 +689,7 @@ "type": "Microsoft.Batch/batchAccounts/applications", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications/my_application_id", "name": "my_application_id", - "etag": "W/\u00220x8DA019D06AC7514\u0022", + "etag": "W/\u00220x8DA436B46E79F52\u0022", "properties": { "displayName": "my_application_name", "allowUpdates": true @@ -709,17 +699,15 @@ } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications/my_application_id/versions/v1.0?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications/my_application_id/versions/v1.0?api-version=2022-06-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "0", "Content-Type": "application/json", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "22fb86e4-9f79-11ec-b41c-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -727,45 +715,42 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:18:37 GMT", - "ETag": "W/\u00220x8DA019D076B3AC3\u0022", + "Date": "Wed, 01 Jun 2022 01:08:46 GMT", + "ETag": "W/\u00220x8DA436B47447F09\u0022", "Expires": "-1", - "Last-Modified": "Wed, 09 Mar 2022 07:18:37 GMT", + "Last-Modified": "Wed, 01 Jun 2022 01:08:46 GMT", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "8238dbd6-030b-489f-95bd-894c1420ef97", + "x-ms-correlation-request-id": "4700598f-026c-4e77-be7c-0fcdde220e26", "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "293f8047-34e8-4e0b-a0f1-98f70d0e07fd", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T071837Z:8238dbd6-030b-489f-95bd-894c1420ef97" + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T010846Z:4700598f-026c-4e77-be7c-0fcdde220e26" }, "ResponseBody": { "type": "Microsoft.Batch/batchAccounts/applications/versions", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications/my_application_id/versions/v1.0", "name": "v1.0", - "etag": "W/\u00220x8DA019D076B3AC3\u0022", + "etag": "W/\u00220x8DA436B47447F09\u0022", "properties": { - "storageUrl": "https://batch49e275f.blob.core.windows.net/app-my-application-id-f29eb0c989ca44438e8714e063d7ea60/v1.0?sv=2018-03-28\u0026sr=b\u0026sig=ewjOMTpIDqbH50fja4HBFT868uGdbH6RUj0fi0linHQ%3D\u0026st=2022-03-09T07%3A13%3A37Z\u0026se=2022-03-09T11%3A18%3A37Z\u0026sp=rw", - "storageUrlExpiry": "2022-03-09T11:18:37.2384238Z", + "storageUrl": "https://batch49e275f.blob.core.windows.net/app-my-application-id-89cc41ae1cf34e429435d0fb0aa8e8ad/v1.0?sv=2018-03-28\u0026sr=b\u0026sig=IjeRChAcZBH8EsUJrzitElvE23BGySofSwA25ZnrMgU%3D\u0026st=2022-06-01T01%3A03%3A46Z\u0026se=2022-06-01T05%3A08%3A46Z\u0026sp=rw", + "storageUrlExpiry": "2022-06-01T05:08:46.4654048Z", "state": "Pending" } } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications/my_application_id/versions/v1.0/activate?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications/my_application_id/versions/v1.0/activate?api-version=2022-06-01", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "17", "Content-Type": "application/json", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "240fefe6-9f79-11ec-8c09-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "format": "zip" @@ -775,47 +760,44 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:18:38 GMT", - "ETag": "W/\u00220x8DA019D087AD305\u0022", + "Date": "Wed, 01 Jun 2022 01:08:46 GMT", + "ETag": "W/\u00220x8DA436B4786879D\u0022", "Expires": "-1", - "Last-Modified": "Wed, 09 Mar 2022 07:18:39 GMT", + "Last-Modified": "Wed, 01 Jun 2022 01:08:46 GMT", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "6144da11-8f5f-4e08-8617-8c73a421346a", + "x-ms-correlation-request-id": "752aff29-f2b9-46db-b919-f65e03d8b391", "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "8be9be96-2c07-4a00-93b9-522467384040", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T071839Z:6144da11-8f5f-4e08-8617-8c73a421346a" + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T010846Z:752aff29-f2b9-46db-b919-f65e03d8b391" }, "ResponseBody": { "type": "Microsoft.Batch/batchAccounts/applications/versions", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications/my_application_id/versions/v1.0", "name": "v1.0", - "etag": "W/\u00220x8DA019D087AD305\u0022", + "etag": "W/\u00220x8DA436B4786879D\u0022", "properties": { - "storageUrl": "https://batch49e275f.blob.core.windows.net/app-my-application-id-f29eb0c989ca44438e8714e063d7ea60/v1.0?sv=2018-03-28\u0026sr=b\u0026sig=6FLY7VpslSiMafWltMwsNBfRSZWhaQnrXOdaLU1yHVI%3D\u0026st=2022-03-09T07%3A13%3A39Z\u0026se=2022-03-09T11%3A18%3A39Z\u0026sp=rw", - "storageUrlExpiry": "2022-03-09T11:18:39.0402425Z", + "storageUrl": "https://batch49e275f.blob.core.windows.net/app-my-application-id-89cc41ae1cf34e429435d0fb0aa8e8ad/v1.0?sv=2018-03-28\u0026sr=b\u0026sig=IjeRChAcZBH8EsUJrzitElvE23BGySofSwA25ZnrMgU%3D\u0026st=2022-06-01T01%3A03%3A46Z\u0026se=2022-06-01T05%3A08%3A46Z\u0026sp=rw", + "storageUrlExpiry": "2022-06-01T05:08:46.7250829Z", "state": "Active", "format": "zip", - "lastActivationTime": "2022-03-09T07:18:39.0033293Z" + "lastActivationTime": "2022-06-01T01:08:46.682079Z" } } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications/my_application_id?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications/my_application_id?api-version=2022-06-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "99", "Content-Type": "application/json", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "24585cd8-9f79-11ec-a514-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "properties": { @@ -829,26 +811,25 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:18:39 GMT", - "ETag": "W/\u00220x8DA019D08C3427B\u0022", + "Date": "Wed, 01 Jun 2022 01:08:46 GMT", + "ETag": "W/\u00220x8DA436B47A7ED81\u0022", "Expires": "-1", - "Last-Modified": "Wed, 09 Mar 2022 07:18:39 GMT", + "Last-Modified": "Wed, 01 Jun 2022 01:08:46 GMT", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "242997fa-1379-42f8-9ed2-06dd8652127f", + "x-ms-correlation-request-id": "e6e74b96-6630-47da-b017-ba17bbb288eb", "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "b9e6bf4a-6db9-42ff-8737-b8ae09d1d1c6", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T071839Z:242997fa-1379-42f8-9ed2-06dd8652127f" + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T010846Z:e6e74b96-6630-47da-b017-ba17bbb288eb" }, "ResponseBody": { "type": "Microsoft.Batch/batchAccounts/applications", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications/my_application_id", "name": "my_application_id", - "etag": "W/\u00220x8DA019D08C3427B\u0022", + "etag": "W/\u00220x8DA436B47A7ED81\u0022", "properties": { "displayName": "my_updated_name", "allowUpdates": false, @@ -857,15 +838,13 @@ } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications/my_application_id/versions/v1.0?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications/my_application_id/versions/v1.0?api-version=2022-06-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "249e491e-9f79-11ec-baa1-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -873,153 +852,140 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:18:39 GMT", - "ETag": "W/\u00220x8DA019D087AD305\u0022", + "Date": "Wed, 01 Jun 2022 01:08:46 GMT", + "ETag": "W/\u00220x8DA436B4786879D\u0022", "Expires": "-1", - "Last-Modified": "Wed, 09 Mar 2022 07:18:39 GMT", + "Last-Modified": "Wed, 01 Jun 2022 01:08:46 GMT", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "8f672738-b648-4dfa-ad2f-45e3fbe759c7", + "x-ms-correlation-request-id": "8ee21470-cc99-401e-9269-5478fcb207dc", "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "64bf0078-9c29-4bda-8665-79bb21c405e4", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T071839Z:8f672738-b648-4dfa-ad2f-45e3fbe759c7" + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T010847Z:8ee21470-cc99-401e-9269-5478fcb207dc" }, "ResponseBody": { "type": "Microsoft.Batch/batchAccounts/applications/versions", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications/my_application_id/versions/v1.0", "name": "v1.0", - "etag": "W/\u00220x8DA019D087AD305\u0022", + "etag": "W/\u00220x8DA436B4786879D\u0022", "properties": { - "storageUrl": "https://batch49e275f.blob.core.windows.net/app-my-application-id-f29eb0c989ca44438e8714e063d7ea60/v1.0?sv=2018-03-28\u0026sr=b\u0026sig=udthKBgDsWUvllJlIsSL08DCPYTogT3VIDKdlNeLrNs%3D\u0026st=2022-03-09T07%3A13%3A39Z\u0026se=2022-03-09T11%3A18%3A39Z\u0026sp=r", - "storageUrlExpiry": "2022-03-09T11:18:39.910501Z", + "storageUrl": "https://batch49e275f.blob.core.windows.net/app-my-application-id-89cc41ae1cf34e429435d0fb0aa8e8ad/v1.0?sv=2018-03-28\u0026sr=b\u0026sig=XNhwSHHopFfSoGAssJYBJvMQMD1Dv7ylWaSFOx%2FDHtM%3D\u0026st=2022-06-01T01%3A03%3A47Z\u0026se=2022-06-01T05%3A08%3A47Z\u0026sp=r", + "storageUrlExpiry": "2022-06-01T05:08:47.0794548Z", "state": "Active", "format": "zip", - "lastActivationTime": "2022-03-09T07:18:39.0033293Z" + "lastActivationTime": "2022-06-01T01:08:46.682079Z" } } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications/my_application_id/versions/v1.0?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications/my_application_id/versions/v1.0?api-version=2022-06-01", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "24d95474-9f79-11ec-9f43-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Wed, 09 Mar 2022 07:18:39 GMT", + "Date": "Wed, 01 Jun 2022 01:08:46 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "da8dfe46-8178-41e0-88a3-83d6325d62c6", + "x-ms-correlation-request-id": "58908a57-aa4d-47a3-a3b8-5cee15fb5fa8", "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "11d00080-9767-4957-87ac-1388d33fccdc", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T071840Z:da8dfe46-8178-41e0-88a3-83d6325d62c6" + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T010847Z:58908a57-aa4d-47a3-a3b8-5cee15fb5fa8" }, "ResponseBody": null }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications/my_application_id?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11/applications/my_application_id?api-version=2022-06-01", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "251ed118-9f79-11ec-83cb-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Wed, 09 Mar 2022 07:18:40 GMT", + "Date": "Wed, 01 Jun 2022 01:08:47 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ad530777-995b-41ee-b13f-f84e5f109c7c", + "x-ms-correlation-request-id": "2d4dec54-7ac6-4074-9418-1bd785093bc3", "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "455984fd-ae19-4b0e-a9a4-5bb93ab49ea7", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T071840Z:ad530777-995b-41ee-b13f-f84e5f109c7c" + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T010847Z:2d4dec54-7ac6-4074-9418-1bd785093bc3" }, "ResponseBody": null }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-49e275f/providers/Microsoft.Batch/batchAccounts/batch11?api-version=2022-06-01", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "25613180-9f79-11ec-b190-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Wed, 09 Mar 2022 07:18:40 GMT", + "Date": "Wed, 01 Jun 2022 01:08:47 GMT", "Expires": "-1", - "Location": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/eastus/accountOperationResults/batch11-4823ae60-ca60-4991-8d90-12addc6bdaec?api-version=2022-01-01", + "Location": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/eastus/accountOperationResults/batch11-6aff7a16-fad8-45e1-ae76-479aa444d010?api-version=2022-06-01", "Pragma": "no-cache", "Retry-After": "15", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00f4914a-5f64-4259-a79e-0d5a9fb5db58", + "x-ms-correlation-request-id": "dd247921-4591-4023-b1ce-6104909f1559", "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "4823ae60-ca60-4991-8d90-12addc6bdaec", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T071841Z:00f4914a-5f64-4259-a79e-0d5a9fb5db58" + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T010847Z:dd247921-4591-4023-b1ce-6104909f1559" }, "ResponseBody": null }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/eastus/accountOperationResults/batch11-4823ae60-ca60-4991-8d90-12addc6bdaec?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/eastus/accountOperationResults/batch11-6aff7a16-fad8-45e1-ae76-479aa444d010?api-version=2022-06-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "25613180-9f79-11ec-b190-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Wed, 09 Mar 2022 07:18:56 GMT", + "Date": "Wed, 01 Jun 2022 01:09:03 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e594877f-967b-4fe4-a4bd-1f104457b2ff", + "x-ms-correlation-request-id": "edc3bf01-2fa3-4cf8-b8fa-ab08fb78eeda", "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "621fc565-1d21-4ae4-89b1-bb84fbca9acb", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T071856Z:e594877f-967b-4fe4-a4bd-1f104457b2ff" + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T010903Z:edc3bf01-2fa3-4cf8-b8fa-ab08fb78eeda" }, "ResponseBody": null } diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_byos_account.json b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_byos_account.json index 9afa6512877d..212d0e7854aa 100644 --- a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_byos_account.json +++ b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_byos_account.json @@ -7,7 +7,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.9.0b2 Python/3.6.2 (Windows-10-10.0.19041-SP0)" + "User-Agent": "azsdk-python-identity/1.11.0b2 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -17,13 +17,13 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "1753", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:17:36 GMT", + "Date": "Wed, 01 Jun 2022 01:08:03 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12529.17 - SCUS ProdSlices", - "x-ms-request-id": "0b3ba2f2-03d4-41c2-b096-bb05fab1e600" + "x-ms-ests-server": "2.1.12821.9 - WUS2 ProdSlices", + "X-XSS-Protection": "0" }, "ResponseBody": { "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", @@ -101,7 +101,7 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.9.0b2 Python/3.6.2 (Windows-10-10.0.19041-SP0)" + "User-Agent": "azsdk-python-identity/1.11.0b2 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -111,13 +111,13 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "945", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:17:36 GMT", + "Date": "Wed, 01 Jun 2022 01:08:03 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12559.5 - KRSLR2 ProdSlices", - "x-ms-request-id": "80337237-7571-4bfb-b6a2-408a62db0400" + "x-ms-ests-server": "2.1.12794.7 - EUS ProdSlices", + "X-XSS-Protection": "0" }, "ResponseBody": { "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.well-known/openid-configuration", @@ -172,28 +172,28 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "client-request-id": "09d7710e-c487-404d-b018-4c641b792c1d", + "client-request-id": "4c5a6bef-359e-4f41-89c6-66e829fc7c45", "Connection": "keep-alive", - "Content-Length": "291", + "Content-Length": "286", "Content-Type": "application/x-www-form-urlencoded", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.9.0b2 Python/3.6.2 (Windows-10-10.0.19041-SP0)", + "User-Agent": "azsdk-python-identity/1.11.0b2 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", - "x-client-os": "win32", + "x-client-os": "linux", "x-client-sku": "MSAL.Python", - "x-client-ver": "1.17.0", + "x-client-ver": "1.18.0", "x-ms-lib-capability": "retry-after, h429" }, - "RequestBody": "client_id=a2df54d5-ab03-4725-9b80-9a00b3b1967f\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=0vj7Q%7EIsFayrD0V_8oyOfygU-GE3ELOabq95a\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "RequestBody": "client_id=8c41a920-007a-4844-a189-2d0efe39f51e\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=o0XWF_siD-FhI.5AE83-u0GaQHW_GP7cjy\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", - "client-request-id": "09d7710e-c487-404d-b018-4c641b792c1d", + "client-request-id": "4c5a6bef-359e-4f41-89c6-66e829fc7c45", "Content-Length": "93", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:17:37 GMT", + "Date": "Wed, 01 Jun 2022 01:08:03 GMT", "Expires": "-1", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Pragma": "no-cache", @@ -201,8 +201,8 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", - "x-ms-ests-server": "2.1.12529.17 - NCUS ProdSlices", - "x-ms-request-id": "57ec52df-a24e-469f-8355-a3e04233c600" + "x-ms-ests-server": "2.1.12821.9 - SCUS ProdSlices", + "X-XSS-Protection": "0" }, "ResponseBody": { "token_type": "Bearer", @@ -212,17 +212,15 @@ } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-4d42761/providers/Microsoft.Batch/batchAccounts/batch4d42761?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-4d42761/providers/Microsoft.Batch/batchAccounts/batch4d42761?api-version=2022-06-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "114", "Content-Type": "application/json", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "ff2cd98a-9f78-11ec-9004-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "location": "eastus", @@ -236,21 +234,20 @@ "Cache-Control": "no-cache", "Content-Length": "359", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:17:38 GMT", + "Date": "Wed, 01 Jun 2022 01:08:05 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e89da51e-5f4e-4574-8ee2-fff3e5e43d6d", + "x-ms-correlation-request-id": "de9de1c3-ddd3-465e-8c56-d387fbebd5ca", "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "1f3d18d4-25a1-4b71-8e3e-69542efee8e9", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T071739Z:e89da51e-5f4e-4574-8ee2-fff3e5e43d6d" + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T010805Z:de9de1c3-ddd3-465e-8c56-d387fbebd5ca" }, "ResponseBody": { "error": { "code": "InvalidRequestBody", - "message": "The specified Request Body is not syntactically valid.\nRequestId:1f3d18d4-25a1-4b71-8e3e-69542efee8e9\nTime:2022-03-09T07:17:39.6946626Z", + "message": "The specified Request Body is not syntactically valid.\nRequestId:11d986f2-2e39-4198-b40d-6739366f5107\nTime:2022-06-01T01:08:05.6852909Z", "target": "BatchAccount", "details": [ { diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_certificates.json b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_certificates.json index 44e71e3524ec..ffb421ed468e 100644 --- a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_certificates.json +++ b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_certificates.json @@ -7,7 +7,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.9.0b2 Python/3.6.2 (Windows-10-10.0.19041-SP0)" + "User-Agent": "azsdk-python-identity/1.11.0b2 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -17,13 +17,13 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "1753", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:19:34 GMT", + "Date": "Wed, 01 Jun 2022 01:09:23 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12529.17 - EUS ProdSlices", - "x-ms-request-id": "c7e3dfdc-fb0b-4354-986c-fb5a3453ca00" + "x-ms-ests-server": "2.1.12821.9 - EUS ProdSlices", + "X-XSS-Protection": "0" }, "ResponseBody": { "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", @@ -101,7 +101,7 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.9.0b2 Python/3.6.2 (Windows-10-10.0.19041-SP0)" + "User-Agent": "azsdk-python-identity/1.11.0b2 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -111,13 +111,13 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "945", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:19:34 GMT", + "Date": "Wed, 01 Jun 2022 01:09:23 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12559.5 - KRSLR2 ProdSlices", - "x-ms-request-id": "5a0e09f4-b458-47e0-94f5-3f8c55180500" + "x-ms-ests-server": "2.1.12821.9 - WUS2 ProdSlices", + "X-XSS-Protection": "0" }, "ResponseBody": { "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.well-known/openid-configuration", @@ -172,28 +172,28 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "client-request-id": "a1098dd0-434c-4fd9-9f7b-ce05b28a652c", + "client-request-id": "c12e10e2-3552-4b95-885e-d833cfb84a37", "Connection": "keep-alive", - "Content-Length": "291", + "Content-Length": "286", "Content-Type": "application/x-www-form-urlencoded", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.9.0b2 Python/3.6.2 (Windows-10-10.0.19041-SP0)", + "User-Agent": "azsdk-python-identity/1.11.0b2 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", - "x-client-os": "win32", + "x-client-os": "linux", "x-client-sku": "MSAL.Python", - "x-client-ver": "1.17.0", + "x-client-ver": "1.18.0", "x-ms-lib-capability": "retry-after, h429" }, - "RequestBody": "client_id=a2df54d5-ab03-4725-9b80-9a00b3b1967f\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=0vj7Q%7EIsFayrD0V_8oyOfygU-GE3ELOabq95a\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "RequestBody": "client_id=8c41a920-007a-4844-a189-2d0efe39f51e\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=o0XWF_siD-FhI.5AE83-u0GaQHW_GP7cjy\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", - "client-request-id": "a1098dd0-434c-4fd9-9f7b-ce05b28a652c", + "client-request-id": "c12e10e2-3552-4b95-885e-d833cfb84a37", "Content-Length": "93", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:19:34 GMT", + "Date": "Wed, 01 Jun 2022 01:09:23 GMT", "Expires": "-1", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Pragma": "no-cache", @@ -201,8 +201,8 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", - "x-ms-ests-server": "2.1.12529.17 - EUS ProdSlices", - "x-ms-request-id": "38f87e6d-f091-44c4-b7ea-19be31a6e100" + "x-ms-ests-server": "2.1.12821.9 - EUS ProdSlices", + "X-XSS-Protection": "0" }, "ResponseBody": { "token_type": "Bearer", @@ -212,17 +212,15 @@ } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2022-06-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "2277", "Content-Type": "application/json", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "45324c88-9f79-11ec-b24e-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "properties": { @@ -238,46 +236,43 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:19:35 GMT", - "ETag": "W/\u00220x8DA019D2AB10ECC\u0022", + "Date": "Wed, 01 Jun 2022 01:09:24 GMT", + "ETag": "W/\u00220x8DA436B5DFB27AA\u0022", "Expires": "-1", - "Last-Modified": "Wed, 09 Mar 2022 07:19:36 GMT", + "Last-Modified": "Wed, 01 Jun 2022 01:09:24 GMT", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "b2192661-a5a7-4d94-8fb8-719dcb253704", + "x-ms-correlation-request-id": "e8fd7976-3f00-49f3-a423-e3278c4b51fe", "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "2e1f25f7-96f9-4cdc-81ba-6963f608be80", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T071936Z:b2192661-a5a7-4d94-8fb8-719dcb253704" + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T010924Z:e8fd7976-3f00-49f3-a423-e3278c4b51fe" }, "ResponseBody": { "name": "sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7", "type": "Microsoft.Batch/batchAccounts/certificates", - "etag": "W/\u00220x8DA019D2AB10ECC\u0022", + "etag": "W/\u00220x8DA436B5DFB27AA\u0022", "properties": { "thumbprintAlgorithm": "sha1", "thumbprint": "cff2ab63c8c955aaf71989efa641b906558d9fb7", "provisioningState": "Succeeded", - "provisioningStateTransitionTime": "2022-03-09T07:19:36.4039927Z", + "provisioningStateTransitionTime": "2022-06-01T01:09:24.3606668Z", "format": "Pfx", "publicData": "MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd\u002BnalxwlQ9\u002BqbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq\u002Bx1LG83761Ir8PiSy\u002B6oxwCHOaYZyvheW0PByntC/WFwUipfn78" } } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificates?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificates?api-version=2022-06-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "468bbc1a-9f79-11ec-ba40-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -285,7 +280,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:19:36 GMT", + "Date": "Wed, 01 Jun 2022 01:09:24 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", @@ -293,10 +288,9 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a5991207-333f-41e4-9489-f00ce843e56d", + "x-ms-correlation-request-id": "63fdb09d-e4f8-44a1-8398-85daef5b457b", "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "194a16f0-f443-4936-b567-d90714d54de5", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T071936Z:a5991207-333f-41e4-9489-f00ce843e56d" + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T010924Z:63fdb09d-e4f8-44a1-8398-85daef5b457b" }, "ResponseBody": { "value": [ @@ -304,12 +298,12 @@ "name": "sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7", "type": "Microsoft.Batch/batchAccounts/certificates", - "etag": "W/\u00220x8DA019D2AB10ECC\u0022", + "etag": "W/\u00220x8DA436B5DFB27AA\u0022", "properties": { "thumbprintAlgorithm": "sha1", "thumbprint": "cff2ab63c8c955aaf71989efa641b906558d9fb7", "provisioningState": "Succeeded", - "provisioningStateTransitionTime": "2022-03-09T07:19:36.4039927Z", + "provisioningStateTransitionTime": "2022-06-01T01:09:24.3606668Z", "format": "Pfx", "publicData": "MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd\u002BnalxwlQ9\u002BqbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq\u002Bx1LG83761Ir8PiSy\u002B6oxwCHOaYZyvheW0PByntC/WFwUipfn78" } @@ -318,15 +312,13 @@ } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2022-06-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "46c9a99e-9f79-11ec-9bf1-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -334,48 +326,45 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:19:36 GMT", - "ETag": "W/\u00220x8DA019D2AB10ECC\u0022", + "Date": "Wed, 01 Jun 2022 01:09:24 GMT", + "ETag": "W/\u00220x8DA436B5DFB27AA\u0022", "Expires": "-1", - "Last-Modified": "Wed, 09 Mar 2022 07:19:36 GMT", + "Last-Modified": "Wed, 01 Jun 2022 01:09:24 GMT", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "16c1d338-e6de-4c0c-9bd5-df84eb35cc48", + "x-ms-correlation-request-id": "1b2f67bd-fa57-4cd4-a080-e70d078775d1", "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "c2982a74-6504-4d2d-bdb2-0705803d768c", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T071937Z:16c1d338-e6de-4c0c-9bd5-df84eb35cc48" + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T010924Z:1b2f67bd-fa57-4cd4-a080-e70d078775d1" }, "ResponseBody": { "name": "sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7", "type": "Microsoft.Batch/batchAccounts/certificates", - "etag": "W/\u00220x8DA019D2AB10ECC\u0022", + "etag": "W/\u00220x8DA436B5DFB27AA\u0022", "properties": { "thumbprintAlgorithm": "sha1", "thumbprint": "cff2ab63c8c955aaf71989efa641b906558d9fb7", "provisioningState": "Succeeded", - "provisioningStateTransitionTime": "2022-03-09T07:19:36.4039927Z", + "provisioningStateTransitionTime": "2022-06-01T01:09:24.3606668Z", "format": "Pfx", "publicData": "MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd\u002BnalxwlQ9\u002BqbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq\u002Bx1LG83761Ir8PiSy\u002B6oxwCHOaYZyvheW0PByntC/WFwUipfn78" } } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2022-06-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "2171", "Content-Type": "application/json", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "4708afe2-9f79-11ec-8083-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "properties": { @@ -388,47 +377,44 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:19:36 GMT", - "ETag": "W/\u00220x8DA019D2AB10ECC\u0022", + "Date": "Wed, 01 Jun 2022 01:09:24 GMT", + "ETag": "W/\u00220x8DA436B5DFB27AA\u0022", "Expires": "-1", - "Last-Modified": "Wed, 09 Mar 2022 07:19:36 GMT", + "Last-Modified": "Wed, 01 Jun 2022 01:09:24 GMT", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "127c032b-80f3-4246-88b4-8c339c094e29", + "x-ms-correlation-request-id": "1fb381ff-7c0f-4567-b67e-aeb8829a6dc2", "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "2dfdc7e4-b2ba-4e8d-a1f8-9e7825a1a62b", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T071937Z:127c032b-80f3-4246-88b4-8c339c094e29" + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T010924Z:1fb381ff-7c0f-4567-b67e-aeb8829a6dc2" }, "ResponseBody": { "name": "sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7", "type": "Microsoft.Batch/batchAccounts/certificates", - "etag": "W/\u00220x8DA019D2AB10ECC\u0022", + "etag": "W/\u00220x8DA436B5DFB27AA\u0022", "properties": { "thumbprintAlgorithm": "sha1", "thumbprint": "cff2ab63c8c955aaf71989efa641b906558d9fb7", "provisioningState": "Succeeded", - "provisioningStateTransitionTime": "2022-03-09T07:19:36.4039927Z", + "provisioningStateTransitionTime": "2022-06-01T01:09:24.3606668Z", "format": "Pfx", "publicData": "MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd\u002BnalxwlQ9\u002BqbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq\u002Bx1LG83761Ir8PiSy\u002B6oxwCHOaYZyvheW0PByntC/WFwUipfn78" } } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7/cancelDelete?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7/cancelDelete?api-version=2022-06-01", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "474bc674-9f79-11ec-bc16-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -436,218 +422,199 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:19:38 GMT", - "ETag": "W/\u00220x8DA019D2AB10ECC\u0022", + "Date": "Wed, 01 Jun 2022 01:09:24 GMT", + "ETag": "W/\u00220x8DA436B5DFB27AA\u0022", "Expires": "-1", - "Last-Modified": "Wed, 09 Mar 2022 07:19:36 GMT", + "Last-Modified": "Wed, 01 Jun 2022 01:09:24 GMT", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "4f90b186-1a8d-4fc4-af87-11b25a729724", + "x-ms-correlation-request-id": "ddc4acad-bc7c-49da-bb22-30356eb83a98", "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "3bd2dd37-765c-45b1-816e-9e91082d3fb4", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T071938Z:4f90b186-1a8d-4fc4-af87-11b25a729724" + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T010925Z:ddc4acad-bc7c-49da-bb22-30356eb83a98" }, "ResponseBody": { "name": "sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7", "type": "Microsoft.Batch/batchAccounts/certificates", - "etag": "W/\u00220x8DA019D2AB10ECC\u0022", + "etag": "W/\u00220x8DA436B5DFB27AA\u0022", "properties": { "thumbprintAlgorithm": "sha1", "thumbprint": "cff2ab63c8c955aaf71989efa641b906558d9fb7", "provisioningState": "Succeeded", - "provisioningStateTransitionTime": "2022-03-09T07:19:36.4039927Z", + "provisioningStateTransitionTime": "2022-06-01T01:09:24.3606668Z", "format": "Pfx", "publicData": "MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd\u002BnalxwlQ9\u002BqbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq\u002Bx1LG83761Ir8PiSy\u002B6oxwCHOaYZyvheW0PByntC/WFwUipfn78" } } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2022-06-01", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "4790e1ee-9f79-11ec-9499-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Wed, 09 Mar 2022 07:19:38 GMT", + "Date": "Wed, 01 Jun 2022 01:09:25 GMT", "Expires": "-1", - "Location": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8DA019D2C008AD2?api-version=2022-01-01", + "Location": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8DA436B5E7D6AFB?api-version=2022-06-01", "Pragma": "no-cache", "Retry-After": "15", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d4ecd20e-d3d8-4f85-bfbb-6190d490ee52", + "x-ms-correlation-request-id": "b60b38fe-08c9-4cf0-a421-c3006424440f", "x-ms-ratelimit-remaining-subscription-deletes": "14996", - "x-ms-request-id": "39c57d7a-aa6b-4dbb-840c-ff8b25e96f37", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T071938Z:d4ecd20e-d3d8-4f85-bfbb-6190d490ee52" + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T010925Z:b60b38fe-08c9-4cf0-a421-c3006424440f" }, "ResponseBody": null }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8DA019D2C008AD2?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8DA436B5E7D6AFB?api-version=2022-06-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "4790e1ee-9f79-11ec-9499-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Wed, 09 Mar 2022 07:19:53 GMT", + "Date": "Wed, 01 Jun 2022 01:09:39 GMT", "Expires": "-1", - "Location": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8da019d2c008ad2?api-version=2022-01-01", + "Location": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8da436b5e7d6afb?api-version=2022-06-01", "Pragma": "no-cache", "Retry-After": "15", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "425828b1-38ff-4516-b8c6-ba338a01dc10", + "x-ms-correlation-request-id": "9b451bfa-bca4-43c6-a3da-f385a6e17219", "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "244b758c-8635-4c71-a5cc-2594712d2784", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T071954Z:425828b1-38ff-4516-b8c6-ba338a01dc10" + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T010940Z:9b451bfa-bca4-43c6-a3da-f385a6e17219" }, "ResponseBody": null }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8da019d2c008ad2?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8da436b5e7d6afb?api-version=2022-06-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "4790e1ee-9f79-11ec-9499-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Wed, 09 Mar 2022 07:20:09 GMT", + "Date": "Wed, 01 Jun 2022 01:09:55 GMT", "Expires": "-1", - "Location": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8da019d2c008ad2?api-version=2022-01-01", + "Location": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8da436b5e7d6afb?api-version=2022-06-01", "Pragma": "no-cache", "Retry-After": "15", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "fc8b22dc-add5-46b3-8543-107da46699b9", + "x-ms-correlation-request-id": "0885148a-2346-46f1-8f96-38c22cde46f7", "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "bcd23f8c-7411-4112-96a0-e34e457cd979", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T072009Z:fc8b22dc-add5-46b3-8543-107da46699b9" + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T010955Z:0885148a-2346-46f1-8f96-38c22cde46f7" }, "ResponseBody": null }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8da019d2c008ad2?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8da436b5e7d6afb?api-version=2022-06-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "4790e1ee-9f79-11ec-9499-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Wed, 09 Mar 2022 07:20:24 GMT", + "Date": "Wed, 01 Jun 2022 01:10:10 GMT", "Expires": "-1", - "Location": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8da019d2c008ad2?api-version=2022-01-01", + "Location": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8da436b5e7d6afb?api-version=2022-06-01", "Pragma": "no-cache", "Retry-After": "15", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "bf1e1a96-e52d-4739-9e8c-6b54063223f5", + "x-ms-correlation-request-id": "5110b34a-1ffa-4510-8b51-1e0d12311196", "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "cba1df90-3523-4f8e-958e-8ed9ae711065", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T072024Z:bf1e1a96-e52d-4739-9e8c-6b54063223f5" + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T011010Z:5110b34a-1ffa-4510-8b51-1e0d12311196" }, "ResponseBody": null }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8da019d2c008ad2?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8da436b5e7d6afb?api-version=2022-06-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "4790e1ee-9f79-11ec-9499-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Wed, 09 Mar 2022 07:20:39 GMT", + "Date": "Wed, 01 Jun 2022 01:10:25 GMT", "Expires": "-1", - "Location": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8da019d2c008ad2?api-version=2022-01-01", + "Location": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8da436b5e7d6afb?api-version=2022-06-01", "Pragma": "no-cache", "Retry-After": "15", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "58747b8d-e426-40bb-a2ca-f92d17bd66f9", + "x-ms-correlation-request-id": "3ccb81b9-87b2-408d-9d63-66829112b7cb", "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "88539842-6b8a-4a2b-af63-7496e47d1066", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T072040Z:58747b8d-e426-40bb-a2ca-f92d17bd66f9" + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T011025Z:3ccb81b9-87b2-408d-9d63-66829112b7cb" }, "ResponseBody": null }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8da019d2c008ad2?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-3ef274e/providers/Microsoft.Batch/batchAccounts/batch113ef274e/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8da436b5e7d6afb?api-version=2022-06-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "4790e1ee-9f79-11ec-9499-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Wed, 09 Mar 2022 07:20:55 GMT", + "Date": "Wed, 01 Jun 2022 01:10:41 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "70b3d100-013a-4c1a-80d6-5ef1dc99dd4e", + "x-ms-correlation-request-id": "c6fc2718-a6b3-4e4f-989e-761695fbaf2f", "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "aac9a5cd-42f6-4841-9d47-10f981339ae2", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T072055Z:70b3d100-013a-4c1a-80d6-5ef1dc99dd4e" + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T011041Z:c6fc2718-a6b3-4e4f-989e-761695fbaf2f" }, "ResponseBody": null } diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_list_operations.json b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_list_operations.json index 614d627c6fc2..4b40063f3d0b 100644 --- a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_list_operations.json +++ b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_list_operations.json @@ -7,7 +7,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.9.0b2 Python/3.6.2 (Windows-10-10.0.19041-SP0)" + "User-Agent": "azsdk-python-identity/1.11.0b2 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -17,13 +17,13 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "1753", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:17:24 GMT", + "Date": "Wed, 01 Jun 2022 01:07:58 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12529.17 - WUS2 ProdSlices", - "x-ms-request-id": "b5248c18-fe4d-404d-948c-6d8699082900" + "x-ms-ests-server": "2.1.12821.9 - SCUS ProdSlices", + "X-XSS-Protection": "0" }, "ResponseBody": { "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", @@ -101,7 +101,7 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.9.0b2 Python/3.6.2 (Windows-10-10.0.19041-SP0)" + "User-Agent": "azsdk-python-identity/1.11.0b2 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -111,13 +111,13 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "945", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:17:24 GMT", + "Date": "Wed, 01 Jun 2022 01:07:58 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12559.5 - KRSLR2 ProdSlices", - "x-ms-request-id": "80337237-7571-4bfb-b6a2-408aeada0400" + "x-ms-ests-server": "2.1.12794.7 - NCUS ProdSlices", + "X-XSS-Protection": "0" }, "ResponseBody": { "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.well-known/openid-configuration", @@ -172,28 +172,28 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "client-request-id": "0b48007f-cafa-4253-bc2e-83fd00efc59d", + "client-request-id": "32e7cc19-faf8-4ec4-8db3-c944920742c4", "Connection": "keep-alive", - "Content-Length": "291", + "Content-Length": "286", "Content-Type": "application/x-www-form-urlencoded", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.9.0b2 Python/3.6.2 (Windows-10-10.0.19041-SP0)", + "User-Agent": "azsdk-python-identity/1.11.0b2 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", - "x-client-os": "win32", + "x-client-os": "linux", "x-client-sku": "MSAL.Python", - "x-client-ver": "1.17.0", + "x-client-ver": "1.18.0", "x-ms-lib-capability": "retry-after, h429" }, - "RequestBody": "client_id=a2df54d5-ab03-4725-9b80-9a00b3b1967f\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=0vj7Q%7EIsFayrD0V_8oyOfygU-GE3ELOabq95a\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "RequestBody": "client_id=8c41a920-007a-4844-a189-2d0efe39f51e\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=o0XWF_siD-FhI.5AE83-u0GaQHW_GP7cjy\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", - "client-request-id": "0b48007f-cafa-4253-bc2e-83fd00efc59d", + "client-request-id": "32e7cc19-faf8-4ec4-8db3-c944920742c4", "Content-Length": "93", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:17:24 GMT", + "Date": "Wed, 01 Jun 2022 01:07:59 GMT", "Expires": "-1", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Pragma": "no-cache", @@ -201,8 +201,8 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", - "x-ms-ests-server": "2.1.12529.17 - NCUS ProdSlices", - "x-ms-request-id": "afc17ddd-ed2c-442a-bf2a-6e3c8d07ba00" + "x-ms-ests-server": "2.1.12821.9 - EUS ProdSlices", + "X-XSS-Protection": "0" }, "ResponseBody": { "token_type": "Bearer", @@ -212,15 +212,13 @@ } }, { - "RequestUri": "https://centraluseuap.management.azure.com/providers/Microsoft.Batch/operations?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/providers/Microsoft.Batch/operations?api-version=2022-06-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "f75fa17a-9f78-11ec-b789-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -228,7 +226,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:17:26 GMT", + "Date": "Wed, 01 Jun 2022 01:08:00 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", @@ -236,10 +234,9 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "fbfa9b0d-0e46-4d82-a553-0bb72158f408", + "x-ms-correlation-request-id": "bb7ec11d-016c-440e-bed8-a50ac454ce6d", "x-ms-ratelimit-remaining-tenant-reads": "11999", - "x-ms-request-id": "3ae8ca21-fe94-427a-9c82-8353a0146e4b", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T071727Z:fbfa9b0d-0e46-4d82-a553-0bb72158f408" + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T010801Z:bb7ec11d-016c-440e-bed8-a50ac454ce6d" }, "ResponseBody": { "value": [ @@ -1373,6 +1370,16 @@ }, "isDataAction": false }, + { + "name": "Microsoft.Batch/batchAccounts/privateEndpointConnections/delete", + "display": { + "provider": "Microsoft Batch", + "resource": "PrivateEndpointConnectionProxies", + "operation": "Delete Private endpoint connection", + "description": "Delete a Private endpoint connection on a Batch account" + }, + "isDataAction": false + }, { "name": "Microsoft.Batch/batchAccounts/privateEndpointConnectionResults/read", "display": { diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_pools.json b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_pools.json index 4c2defd8bbfb..7ba988fb8063 100644 --- a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_pools.json +++ b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_pools.json @@ -7,7 +7,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.9.0b2 Python/3.6.2 (Windows-10-10.0.19041-SP0)" + "User-Agent": "azsdk-python-identity/1.11.0b2 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -17,13 +17,13 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "1753", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:27:10 GMT", + "Date": "Wed, 01 Jun 2022 01:16:45 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12529.17 - WUS2 ProdSlices", - "x-ms-request-id": "10b5c56e-b0fe-43b9-a7df-5420d2d00900" + "x-ms-ests-server": "2.1.12821.9 - SCUS ProdSlices", + "X-XSS-Protection": "0" }, "ResponseBody": { "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", @@ -101,7 +101,7 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.9.0b2 Python/3.6.2 (Windows-10-10.0.19041-SP0)" + "User-Agent": "azsdk-python-identity/1.11.0b2 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -111,13 +111,13 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "945", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:27:10 GMT", + "Date": "Wed, 01 Jun 2022 01:16:45 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12559.5 - SEASLR1 ProdSlices", - "x-ms-request-id": "41f57ba3-5d47-4571-9dab-0b3a85f00400" + "x-ms-ests-server": "2.1.12794.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" }, "ResponseBody": { "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.well-known/openid-configuration", @@ -172,28 +172,28 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "client-request-id": "17abd9ff-934d-4597-9220-2bc5439bbee8", + "client-request-id": "c954f9a4-6f18-4774-ba75-c876700a7d2c", "Connection": "keep-alive", - "Content-Length": "291", + "Content-Length": "286", "Content-Type": "application/x-www-form-urlencoded", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.9.0b2 Python/3.6.2 (Windows-10-10.0.19041-SP0)", + "User-Agent": "azsdk-python-identity/1.11.0b2 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", - "x-client-os": "win32", + "x-client-os": "linux", "x-client-sku": "MSAL.Python", - "x-client-ver": "1.17.0", + "x-client-ver": "1.18.0", "x-ms-lib-capability": "retry-after, h429" }, - "RequestBody": "client_id=a2df54d5-ab03-4725-9b80-9a00b3b1967f\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=0vj7Q%7EIsFayrD0V_8oyOfygU-GE3ELOabq95a\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "RequestBody": "client_id=8c41a920-007a-4844-a189-2d0efe39f51e\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=o0XWF_siD-FhI.5AE83-u0GaQHW_GP7cjy\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", - "client-request-id": "17abd9ff-934d-4597-9220-2bc5439bbee8", + "client-request-id": "c954f9a4-6f18-4774-ba75-c876700a7d2c", "Content-Length": "93", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:27:10 GMT", + "Date": "Wed, 01 Jun 2022 01:16:45 GMT", "Expires": "-1", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Pragma": "no-cache", @@ -201,8 +201,8 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", - "x-ms-ests-server": "2.1.12529.17 - NCUS ProdSlices", - "x-ms-request-id": "7860d162-2e65-4852-bd52-96893f30c000" + "x-ms-ests-server": "2.1.12821.9 - EUS ProdSlices", + "X-XSS-Protection": "0" }, "ResponseBody": { "token_type": "Bearer", @@ -212,17 +212,15 @@ } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/pools/test_paas_pool?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/pools/test_paas_pool?api-version=2022-06-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "573", "Content-Type": "application/json", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "5471b924-9f7a-11ec-bafe-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "properties": { @@ -272,34 +270,33 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:27:12 GMT", - "ETag": "W/\u00220x8DA019E3AF819DE\u0022", + "Date": "Wed, 01 Jun 2022 01:16:46 GMT", + "ETag": "W/\u00220x8DA436C653D7AA0\u0022", "Expires": "-1", - "Last-Modified": "Wed, 09 Mar 2022 07:27:13 GMT", + "Last-Modified": "Wed, 01 Jun 2022 01:16:46 GMT", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "f1680619-a3bd-4939-a01f-3a292292055a", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "2ea35db4-77ca-482f-9658-43685b3d7d09", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T072713Z:f1680619-a3bd-4939-a01f-3a292292055a" + "x-ms-correlation-request-id": "b71c55fd-1f86-4dcb-a516-554c1e3f6c1a", + "x-ms-ratelimit-remaining-subscription-writes": "1192", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T011646Z:b71c55fd-1f86-4dcb-a516-554c1e3f6c1a" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/pools/test_paas_pool", "name": "test_paas_pool", "type": "Microsoft.Batch/batchAccounts/pools", - "etag": "W/\u00220x8DA019E3AF819DE\u0022", + "etag": "W/\u00220x8DA436C653D7AA0\u0022", "properties": { "displayName": "test_pool", - "lastModified": "2022-03-09T07:27:13.2145118Z", - "creationTime": "2022-03-09T07:27:13.2145118Z", + "lastModified": "2022-06-01T01:16:46.040336Z", + "creationTime": "2022-06-01T01:16:46.040336Z", "provisioningState": "Succeeded", - "provisioningStateTransitionTime": "2022-03-09T07:27:13.2145118Z", + "provisioningStateTransitionTime": "2022-06-01T01:16:46.040336Z", "allocationState": "Resizing", - "allocationStateTransitionTime": "2022-03-09T07:27:13.2145118Z", + "allocationStateTransitionTime": "2022-06-01T01:16:46.040336Z", "vmSize": "Small", "interNodeCommunication": "Disabled", "taskSlotsPerNode": 1, @@ -355,7 +352,7 @@ "targetDedicatedNodes": 0, "nodeDeallocationOption": "Requeue", "resizeTimeout": "PT15M", - "startTime": "2022-03-09T07:27:13.2145118Z" + "startTime": "2022-06-01T01:16:46.040336Z" }, "currentDedicatedNodes": 0, "currentLowPriorityNodes": 0 @@ -363,17 +360,15 @@ } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/pools/test_iaas_pool?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/pools/test_iaas_pool?api-version=2022-06-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "447", "Content-Type": "application/json", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "56d4f162-9f7a-11ec-9470-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "properties": { @@ -405,34 +400,33 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:27:13 GMT", - "ETag": "W/\u00220x8DA019E3B41F430\u0022", + "Date": "Wed, 01 Jun 2022 01:16:46 GMT", + "ETag": "W/\u00220x8DA436C6568D06F\u0022", "Expires": "-1", - "Last-Modified": "Wed, 09 Mar 2022 07:27:13 GMT", + "Last-Modified": "Wed, 01 Jun 2022 01:16:46 GMT", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "322b8726-871c-4ec7-a8c0-2fa2526f17c2", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "0f1c9294-00b9-4158-8cdf-6234b484ce0c", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T072713Z:322b8726-871c-4ec7-a8c0-2fa2526f17c2" + "x-ms-correlation-request-id": "407a6b80-9458-445f-9c8e-70d8e47dc08b", + "x-ms-ratelimit-remaining-subscription-writes": "1191", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T011646Z:407a6b80-9458-445f-9c8e-70d8e47dc08b" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/pools/test_iaas_pool", "name": "test_iaas_pool", "type": "Microsoft.Batch/batchAccounts/pools", - "etag": "W/\u00220x8DA019E3B41F430\u0022", + "etag": "W/\u00220x8DA436C6568D06F\u0022", "properties": { "displayName": "test_pool", - "lastModified": "2022-03-09T07:27:13.6985136Z", - "creationTime": "2022-03-09T07:27:13.6985136Z", + "lastModified": "2022-06-01T01:16:46.3243375Z", + "creationTime": "2022-06-01T01:16:46.3243375Z", "provisioningState": "Succeeded", - "provisioningStateTransitionTime": "2022-03-09T07:27:13.6985136Z", + "provisioningStateTransitionTime": "2022-06-01T01:16:46.3243375Z", "allocationState": "Resizing", - "allocationStateTransitionTime": "2022-03-09T07:27:13.6985136Z", + "allocationStateTransitionTime": "2022-06-01T01:16:46.3243375Z", "vmSize": "STANDARD_A1", "interNodeCommunication": "Disabled", "taskSlotsPerNode": 1, @@ -464,7 +458,7 @@ "targetDedicatedNodes": 0, "nodeDeallocationOption": "Requeue", "resizeTimeout": "PT15M", - "startTime": "2022-03-09T07:27:13.6985136Z" + "startTime": "2022-06-01T01:16:46.3243375Z" }, "currentDedicatedNodes": 0, "currentLowPriorityNodes": 0 @@ -472,15 +466,13 @@ } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/pools?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/pools?api-version=2022-06-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "571b2980-9f7a-11ec-a18c-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -488,7 +480,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:27:13 GMT", + "Date": "Wed, 01 Jun 2022 01:16:46 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", @@ -496,10 +488,9 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "2ebd1a63-ce93-4e90-a394-db5510d03093", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "63a317b6-d9b9-4adf-a2fc-b854a6b555e6", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T072714Z:2ebd1a63-ce93-4e90-a394-db5510d03093" + "x-ms-correlation-request-id": "489ff966-24f6-4ba4-b161-f8f5b71ad15a", + "x-ms-ratelimit-remaining-subscription-reads": "11986", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T011646Z:489ff966-24f6-4ba4-b161-f8f5b71ad15a" }, "ResponseBody": { "value": [ @@ -507,15 +498,15 @@ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/pools/test_iaas_pool", "name": "test_iaas_pool", "type": "Microsoft.Batch/batchAccounts/pools", - "etag": "W/\u00220x8DA019E3B41F430\u0022", + "etag": "W/\u00220x8DA436C6568D06F\u0022", "properties": { "displayName": "test_pool", - "lastModified": "2022-03-09T07:27:13.6985136Z", - "creationTime": "2022-03-09T07:27:13.6985136Z", + "lastModified": "2022-06-01T01:16:46.3243375Z", + "creationTime": "2022-06-01T01:16:46.3243375Z", "provisioningState": "Succeeded", - "provisioningStateTransitionTime": "2022-03-09T07:27:13.6985136Z", + "provisioningStateTransitionTime": "2022-06-01T01:16:46.3243375Z", "allocationState": "Resizing", - "allocationStateTransitionTime": "2022-03-09T07:27:13.6985136Z", + "allocationStateTransitionTime": "2022-06-01T01:16:46.3243375Z", "vmSize": "STANDARD_A1", "interNodeCommunication": "Disabled", "taskSlotsPerNode": 1, @@ -547,7 +538,7 @@ "targetDedicatedNodes": 0, "nodeDeallocationOption": "Requeue", "resizeTimeout": "PT15M", - "startTime": "2022-03-09T07:27:13.6985136Z" + "startTime": "2022-06-01T01:16:46.3243375Z" }, "currentDedicatedNodes": 0, "currentLowPriorityNodes": 0 @@ -557,15 +548,15 @@ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/pools/test_paas_pool", "name": "test_paas_pool", "type": "Microsoft.Batch/batchAccounts/pools", - "etag": "W/\u00220x8DA019E3AF819DE\u0022", + "etag": "W/\u00220x8DA436C653D7AA0\u0022", "properties": { "displayName": "test_pool", - "lastModified": "2022-03-09T07:27:13.2145118Z", - "creationTime": "2022-03-09T07:27:13.2145118Z", + "lastModified": "2022-06-01T01:16:46.040336Z", + "creationTime": "2022-06-01T01:16:46.040336Z", "provisioningState": "Succeeded", - "provisioningStateTransitionTime": "2022-03-09T07:27:13.2145118Z", + "provisioningStateTransitionTime": "2022-06-01T01:16:46.040336Z", "allocationState": "Resizing", - "allocationStateTransitionTime": "2022-03-09T07:27:13.2145118Z", + "allocationStateTransitionTime": "2022-06-01T01:16:46.040336Z", "vmSize": "Small", "interNodeCommunication": "Disabled", "taskSlotsPerNode": 1, @@ -621,7 +612,7 @@ "targetDedicatedNodes": 0, "nodeDeallocationOption": "Requeue", "resizeTimeout": "PT15M", - "startTime": "2022-03-09T07:27:13.2145118Z" + "startTime": "2022-06-01T01:16:46.040336Z" }, "currentDedicatedNodes": 0, "currentLowPriorityNodes": 0 @@ -631,17 +622,15 @@ } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/pools/test_iaas_pool?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/pools/test_iaas_pool?api-version=2022-06-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "88", "Content-Type": "application/json", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "604cedb8-9f7a-11ec-8584-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "properties": { @@ -657,34 +646,33 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:27:29 GMT", - "ETag": "W/\u00220x8DA019E44B7678F\u0022", + "Date": "Wed, 01 Jun 2022 01:17:01 GMT", + "ETag": "W/\u00220x8DA436C6E948F15\u0022", "Expires": "-1", - "Last-Modified": "Wed, 09 Mar 2022 07:27:29 GMT", + "Last-Modified": "Wed, 01 Jun 2022 01:17:01 GMT", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "5416d60e-0140-4d33-bedf-a5368169a487", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "34c5bae0-f52e-4ac5-86cd-14757cb156c4", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T072729Z:5416d60e-0140-4d33-bedf-a5368169a487" + "x-ms-correlation-request-id": "f1e50e2a-f344-443c-a5d8-8d6cf5a4c628", + "x-ms-ratelimit-remaining-subscription-writes": "1190", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T011701Z:f1e50e2a-f344-443c-a5d8-8d6cf5a4c628" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/pools/test_iaas_pool", "name": "test_iaas_pool", "type": "Microsoft.Batch/batchAccounts/pools", - "etag": "W/\u00220x8DA019E44B7678F\u0022", + "etag": "W/\u00220x8DA436C6E948F15\u0022", "properties": { "displayName": "test_pool", - "lastModified": "2022-03-09T07:27:29.5677327Z", - "creationTime": "2022-03-09T07:27:13.6985136Z", + "lastModified": "2022-06-01T01:17:01.7105173Z", + "creationTime": "2022-06-01T01:16:46.3243375Z", "provisioningState": "Succeeded", - "provisioningStateTransitionTime": "2022-03-09T07:27:13.6985136Z", + "provisioningStateTransitionTime": "2022-06-01T01:16:46.3243375Z", "allocationState": "Resizing", - "allocationStateTransitionTime": "2022-03-09T07:27:29.5677327Z", + "allocationStateTransitionTime": "2022-06-01T01:17:01.7105173Z", "vmSize": "STANDARD_A1", "interNodeCommunication": "Disabled", "taskSlotsPerNode": 1, @@ -714,22 +702,20 @@ "currentDedicatedNodes": 0, "currentLowPriorityNodes": 0, "autoScaleRun": { - "evaluationTime": "2022-03-09T07:27:29.5677327Z", + "evaluationTime": "2022-06-01T01:17:01.7105173Z", "results": "$TargetDedicatedNodes=0;$TargetLowPriorityNodes=0;$NodeDeallocationOption=requeue" } } } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/pools/test_iaas_pool?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/pools/test_iaas_pool?api-version=2022-06-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "6093bde2-9f7a-11ec-af52-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -737,34 +723,33 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:27:29 GMT", - "ETag": "W/\u00220x8DA019E44B7678F\u0022", + "Date": "Wed, 01 Jun 2022 01:17:01 GMT", + "ETag": "W/\u00220x8DA436C6E948F15\u0022", "Expires": "-1", - "Last-Modified": "Wed, 09 Mar 2022 07:27:29 GMT", + "Last-Modified": "Wed, 01 Jun 2022 01:17:01 GMT", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "8cc1b091-8775-48d5-85c8-823d694c76bd", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "18887b37-0397-4fa6-bad0-709278b20e12", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T072730Z:8cc1b091-8775-48d5-85c8-823d694c76bd" + "x-ms-correlation-request-id": "05bc8678-2592-4427-a6d1-aabbe5824b73", + "x-ms-ratelimit-remaining-subscription-reads": "11985", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T011702Z:05bc8678-2592-4427-a6d1-aabbe5824b73" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/pools/test_iaas_pool", "name": "test_iaas_pool", "type": "Microsoft.Batch/batchAccounts/pools", - "etag": "W/\u00220x8DA019E44B7678F\u0022", + "etag": "W/\u00220x8DA436C6E948F15\u0022", "properties": { "displayName": "test_pool", - "lastModified": "2022-03-09T07:27:29.5677327Z", - "creationTime": "2022-03-09T07:27:13.6985136Z", + "lastModified": "2022-06-01T01:17:01.7105173Z", + "creationTime": "2022-06-01T01:16:46.3243375Z", "provisioningState": "Succeeded", - "provisioningStateTransitionTime": "2022-03-09T07:27:13.6985136Z", - "allocationState": "Resizing", - "allocationStateTransitionTime": "2022-03-09T07:27:29.5677327Z", + "provisioningStateTransitionTime": "2022-06-01T01:16:46.3243375Z", + "allocationState": "Steady", + "allocationStateTransitionTime": "2022-06-01T01:17:01.8515181Z", "vmSize": "STANDARD_A1", "interNodeCommunication": "Disabled", "taskSlotsPerNode": 1, @@ -791,140 +776,73 @@ "evaluationInterval": "PT15M" } }, + "resizeOperationStatus": { + "targetDedicatedNodes": 0, + "nodeDeallocationOption": "Requeue", + "resizeTimeout": "PT15M", + "startTime": "2022-06-01T01:16:46.3243375Z" + }, "currentDedicatedNodes": 0, "currentLowPriorityNodes": 0, "autoScaleRun": { - "evaluationTime": "2022-03-09T07:27:29.5677327Z", + "evaluationTime": "2022-06-01T01:17:01.7105173Z", "results": "$TargetDedicatedNodes=0;$TargetLowPriorityNodes=0;$NodeDeallocationOption=requeue" } } } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/pools/test_iaas_pool?api-version=2022-01-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Length": "0", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "60d23bde-9f7a-11ec-b27b-c0b6f9946f2d" - }, - "RequestBody": null, - "StatusCode": 504, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Connection": "close", - "Content-Length": "143", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:27:50 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a457e468-8734-46c8-be02-8254f7d46bd6", - "x-ms-failure-cause": "service", - "x-ms-request-id": "a457e468-8734-46c8-be02-8254f7d46bd6", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T072750Z:a457e468-8734-46c8-be02-8254f7d46bd6" - }, - "ResponseBody": { - "error": { - "code": "GatewayTimeout", - "message": "The gateway did not receive a response from \u0027Microsoft.Batch\u0027 within the specified time period." - } - } - }, - { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/pools/test_iaas_pool?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/pools/test_iaas_pool?api-version=2022-06-01", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "60d23bde-9f7a-11ec-b27b-c0b6f9946f2d" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Wed, 09 Mar 2022 07:27:52 GMT", - "Expires": "-1", - "Location": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/poolOperationResults/delete-test_iaas_pool?api-version=2022-01-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d0747a39-0f45-424b-a16b-21f03e5b442a", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "ef6d43d9-fc6f-498f-9de6-171b9f37b308", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T072752Z:d0747a39-0f45-424b-a16b-21f03e5b442a" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/poolOperationResults/delete-test_iaas_pool?api-version=2022-01-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "*/*", - "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "60d23bde-9f7a-11ec-b27b-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Wed, 09 Mar 2022 07:28:08 GMT", + "Date": "Wed, 01 Jun 2022 01:17:01 GMT", "Expires": "-1", - "Location": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/poolOperationResults/delete-test_iaas_pool?api-version=2022-01-01", + "Location": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/poolOperationResults/delete-test_iaas_pool?api-version=2022-06-01", "Pragma": "no-cache", "Retry-After": "15", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "1346b9cc-292b-436a-b9bd-b7636f8f48c4", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "ebc463d3-dc6d-4990-b619-fd0461b9a28f", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T072808Z:1346b9cc-292b-436a-b9bd-b7636f8f48c4" + "x-ms-correlation-request-id": "57561d78-af0f-4297-ae09-ce693b63a599", + "x-ms-ratelimit-remaining-subscription-deletes": "14995", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T011702Z:57561d78-af0f-4297-ae09-ce693b63a599" }, "ResponseBody": null }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/poolOperationResults/delete-test_iaas_pool?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-f4b22485/providers/Microsoft.Batch/batchAccounts/batch11f4b22485/poolOperationResults/delete-test_iaas_pool?api-version=2022-06-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "60d23bde-9f7a-11ec-b27b-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Wed, 09 Mar 2022 07:28:22 GMT", + "Date": "Wed, 01 Jun 2022 01:17:16 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "66d189ff-679d-47df-a3b7-a9e3b463a9a1", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "5a492db8-b9fb-4dc4-820d-c7d9c534826a", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T072823Z:66d189ff-679d-47df-a3b7-a9e3b463a9a1" + "x-ms-correlation-request-id": "5ded4e9e-b8ce-4c6c-bf2c-324f77de1d25", + "x-ms-ratelimit-remaining-subscription-reads": "11984", + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T011717Z:5ded4e9e-b8ce-4c6c-bf2c-324f77de1d25" }, "ResponseBody": null } diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_subscription_quota.json b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_subscription_quota.json index d1f668cd405d..6ed8d4fb431b 100644 --- a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_subscription_quota.json +++ b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.pyTestMgmtBatchtest_mgmt_batch_subscription_quota.json @@ -7,7 +7,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.9.0b2 Python/3.6.2 (Windows-10-10.0.19041-SP0)" + "User-Agent": "azsdk-python-identity/1.11.0b2 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -17,13 +17,13 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "1753", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:17:28 GMT", + "Date": "Wed, 01 Jun 2022 01:08:00 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12529.17 - SCUS ProdSlices", - "x-ms-request-id": "0b3ba2f2-03d4-41c2-b096-bb05e0b0e600" + "x-ms-ests-server": "2.1.12821.9 - EUS ProdSlices", + "X-XSS-Protection": "0" }, "ResponseBody": { "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", @@ -101,7 +101,7 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.9.0b2 Python/3.6.2 (Windows-10-10.0.19041-SP0)" + "User-Agent": "azsdk-python-identity/1.11.0b2 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -111,13 +111,13 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "945", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:17:28 GMT", + "Date": "Wed, 01 Jun 2022 01:08:00 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12559.5 - SEASLR1 ProdSlices", - "x-ms-request-id": "9c915edd-6b79-479a-b978-603ac5e40400" + "x-ms-ests-server": "2.1.12794.7 - EUS ProdSlices", + "X-XSS-Protection": "0" }, "ResponseBody": { "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.well-known/openid-configuration", @@ -172,28 +172,28 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "client-request-id": "e246ca63-dafb-46ad-841f-c508eab8930f", + "client-request-id": "0d3deabb-2f1b-49ce-b350-769f9804f7d8", "Connection": "keep-alive", - "Content-Length": "291", + "Content-Length": "286", "Content-Type": "application/x-www-form-urlencoded", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.9.0b2 Python/3.6.2 (Windows-10-10.0.19041-SP0)", + "User-Agent": "azsdk-python-identity/1.11.0b2 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", - "x-client-os": "win32", + "x-client-os": "linux", "x-client-sku": "MSAL.Python", - "x-client-ver": "1.17.0", + "x-client-ver": "1.18.0", "x-ms-lib-capability": "retry-after, h429" }, - "RequestBody": "client_id=a2df54d5-ab03-4725-9b80-9a00b3b1967f\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=0vj7Q%7EIsFayrD0V_8oyOfygU-GE3ELOabq95a\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "RequestBody": "client_id=8c41a920-007a-4844-a189-2d0efe39f51e\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=o0XWF_siD-FhI.5AE83-u0GaQHW_GP7cjy\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", - "client-request-id": "e246ca63-dafb-46ad-841f-c508eab8930f", + "client-request-id": "0d3deabb-2f1b-49ce-b350-769f9804f7d8", "Content-Length": "93", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:17:28 GMT", + "Date": "Wed, 01 Jun 2022 01:08:01 GMT", "Expires": "-1", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Pragma": "no-cache", @@ -201,8 +201,8 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", - "x-ms-ests-server": "2.1.12529.17 - EUS ProdSlices", - "x-ms-request-id": "6f6f6bec-1827-42b1-a5bf-b0a5c652e500" + "x-ms-ests-server": "2.1.12821.9 - EUS ProdSlices", + "X-XSS-Protection": "0" }, "ResponseBody": { "token_type": "Bearer", @@ -212,15 +212,13 @@ } }, { - "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/eastus/quotas?api-version=2022-01-01", + "RequestUri": "https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/eastus/quotas?api-version=2022-06-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-python-mgmt-batch/16.1.0 Python/3.6.2 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "f9f560ae-9f78-11ec-9628-c0b6f9946f2d" + "User-Agent": "azsdk-python-mgmt-batch/16.2.0 Python/3.8.12 (Linux-5.13.0-1023-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -228,7 +226,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 09 Mar 2022 07:17:28 GMT", + "Date": "Wed, 01 Jun 2022 01:08:02 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", @@ -236,10 +234,9 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "71a853b5-f485-48be-8baf-80bb793b7789", + "x-ms-correlation-request-id": "ee066b56-6543-4f87-a178-60cf2014ebfc", "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "0886dbf6-c06a-455c-8d7a-507c999d66d8", - "x-ms-routing-request-id": "CENTRALUSEUAP:20220309T071729Z:71a853b5-f485-48be-8baf-80bb793b7789" + "x-ms-routing-request-id": "CENTRALUSEUAP:20220601T010802Z:ee066b56-6543-4f87-a178-60cf2014ebfc" }, "ResponseBody": { "accountQuota": 3 diff --git a/shared_requirements.txt b/shared_requirements.txt index 47bc8f6c0b98..32f042db0644 100644 --- a/shared_requirements.txt +++ b/shared_requirements.txt @@ -358,3 +358,4 @@ opentelemetry-sdk<2.0.0,>=1.5.0,!=1.10a0 #override azure-mgmt-deviceupdate azure-mgmt-core>=1.3.0,<2.0.0 #override azure-mgmt-keyvault msrest>=0.6.21 #override azure-mgmt-keyvault azure-mgmt-core>=1.3.0,<2.0.0 +#override azure-mgmt-batch azure-mgmt-core>=1.3.0,<2.0.0