From 05008ae62f3f8768ca8e3584a38349101c341d2d Mon Sep 17 00:00:00 2001 From: Azure CLI Bot Date: Fri, 30 Jul 2021 12:23:54 +0800 Subject: [PATCH] [AutoRelease] t2-batch-2021-07-30-27488 (#19996) * CodeGen from PR 15424 in Azure/azure-rest-api-specs [Batch] Make readme.md and swagger titles consistent (#15424) * [Batch] Changed "title" from BatchManagement to BatchManagementClient Autorest is using this to generate the name of the client class. Changing this will avoid a breaking change in the Java SDK that is about to be released. * Make readme.md titles consistent with swagger * version,CHANGELOG * test * test * Update shared_requirements.txt Co-authored-by: SDKAuto Co-authored-by: PythonSdkPipelines Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com> --- sdk/batch/azure-batch/setup.py | 2 +- sdk/batch/azure-mgmt-batch/CHANGELOG.md | 24 + sdk/batch/azure-mgmt-batch/MANIFEST.in | 1 + sdk/batch/azure-mgmt-batch/_meta.json | 11 + .../azure/mgmt/batch/__init__.py | 4 +- ...agement.py => _batch_management_client.py} | 30 +- .../azure/mgmt/batch/_configuration.py | 8 +- .../azure/mgmt/batch/_metadata.json | 72 ++- .../azure/mgmt/batch/_version.py | 2 +- .../azure/mgmt/batch/aio/__init__.py | 4 +- ...agement.py => _batch_management_client.py} | 29 +- .../azure/mgmt/batch/aio/_configuration.py | 8 +- .../aio/operations/_application_operations.py | 20 +- .../_application_package_operations.py | 27 +- .../operations/_batch_account_operations.py | 142 ++++- .../aio/operations/_certificate_operations.py | 30 +- .../aio/operations/_location_operations.py | 171 +++++- .../mgmt/batch/aio/operations/_operations.py | 4 +- .../batch/aio/operations/_pool_operations.py | 34 +- ..._private_endpoint_connection_operations.py | 18 +- .../_private_link_resource_operations.py | 8 +- .../azure/mgmt/batch/models/__init__.py | 45 +- .../models/_batch_management_client_enums.py | 402 +++++++++++++ .../batch/models/_batch_management_enums.py | 270 --------- .../azure/mgmt/batch/models/_models.py | 511 ++++++++++++---- .../azure/mgmt/batch/models/_models_py3.py | 550 ++++++++++++++---- .../operations/_application_operations.py | 10 +- .../_application_package_operations.py | 17 +- .../operations/_batch_account_operations.py | 121 +++- .../operations/_certificate_operations.py | 16 +- .../batch/operations/_location_operations.py | 169 +++++- .../mgmt/batch/operations/_operations.py | 2 +- .../mgmt/batch/operations/_pool_operations.py | 18 +- ..._private_endpoint_connection_operations.py | 10 +- .../_private_link_resource_operations.py | 4 +- sdk/batch/azure-mgmt-batch/setup.py | 2 +- ...st_mgmt_batch.test_mgmt_batch_account.yaml | 106 ++-- ...atch.test_mgmt_batch_account_advanced.yaml | 424 ++++++++------ ...mt_batch.test_mgmt_batch_account_name.yaml | 32 +- ...mt_batch.test_mgmt_batch_applications.yaml | 176 +++--- ...mt_batch.test_mgmt_batch_byos_account.yaml | 12 +- ...mt_batch.test_mgmt_batch_certificates.yaml | 120 ++-- ...batch.test_mgmt_batch_list_operations.yaml | 21 +- ...test_mgmt_batch.test_mgmt_batch_pools.yaml | 94 +-- ...ch.test_mgmt_batch_subscription_quota.yaml | 10 +- .../azure-mgmt-batch/tests/test_mgmt_batch.py | 28 +- shared_requirements.txt | 2 + 47 files changed, 2670 insertions(+), 1151 deletions(-) create mode 100644 sdk/batch/azure-mgmt-batch/_meta.json rename sdk/batch/azure-mgmt-batch/azure/mgmt/batch/{_batch_management.py => _batch_management_client.py} (77%) rename sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/{_batch_management.py => _batch_management_client.py} (77%) create mode 100644 sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/_batch_management_client_enums.py delete mode 100644 sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/_batch_management_enums.py diff --git a/sdk/batch/azure-batch/setup.py b/sdk/batch/azure-batch/setup.py index b382fba13094..cdc0486a2523 100644 --- a/sdk/batch/azure-batch/setup.py +++ b/sdk/batch/azure-batch/setup.py @@ -77,7 +77,7 @@ 'azure', ]), install_requires=[ - 'msrest>=0.5.0', + 'msrest>=0.6.21', 'msrestazure>=0.4.32,<2.0.0', 'azure-common~=1.1', ], diff --git a/sdk/batch/azure-mgmt-batch/CHANGELOG.md b/sdk/batch/azure-mgmt-batch/CHANGELOG.md index 1caadd1376f0..a6597751bec5 100644 --- a/sdk/batch/azure-mgmt-batch/CHANGELOG.md +++ b/sdk/batch/azure-mgmt-batch/CHANGELOG.md @@ -1,5 +1,29 @@ # Release History +## 16.0.0 (2021-07-30) + +**Features** + + - Model BatchAccount has a new parameter allowed_authentication_modes + - Model AutoStorageBaseProperties has a new parameter node_identity_reference + - Model AutoStorageBaseProperties has a new parameter authentication_mode + - Model AzureBlobFileSystemConfiguration has a new parameter identity_reference + - Model BatchAccountUpdateParameters has a new parameter allowed_authentication_modes + - Model ContainerRegistry has a new parameter identity_reference + - Model Operation has a new parameter is_data_action + - Model BatchAccountCreateParameters has a new parameter allowed_authentication_modes + - Model AutoStorageProperties has a new parameter node_identity_reference + - Model AutoStorageProperties has a new parameter authentication_mode + - Model ResourceFile has a new parameter identity_reference + - Model VirtualMachineConfiguration has a new parameter os_disk + - Added operation BatchAccountOperations.list_outbound_network_dependencies_endpoints + - Added operation LocationOperations.list_supported_cloud_service_skus + - Added operation LocationOperations.list_supported_virtual_machine_skus + +**Breaking changes** + + - Rename `BatchManagement` to `BatchManagementClient` + ## 15.0.0 (2021-02-01) - Fix changelog diff --git a/sdk/batch/azure-mgmt-batch/MANIFEST.in b/sdk/batch/azure-mgmt-batch/MANIFEST.in index a3cb07df8765..3a9b6517412b 100644 --- a/sdk/batch/azure-mgmt-batch/MANIFEST.in +++ b/sdk/batch/azure-mgmt-batch/MANIFEST.in @@ -1,3 +1,4 @@ +include _meta.json recursive-include tests *.py *.yaml include *.md include azure/__init__.py diff --git a/sdk/batch/azure-mgmt-batch/_meta.json b/sdk/batch/azure-mgmt-batch/_meta.json new file mode 100644 index 000000000000..51c29ad14b42 --- /dev/null +++ b/sdk/batch/azure-mgmt-batch/_meta.json @@ -0,0 +1,11 @@ +{ + "autorest": "3.4.5", + "use": [ + "@autorest/python@5.8.4", + "@autorest/modelerfour@4.19.2" + ], + "commit": "d81e31601e4bcc061ac6436de40d97b7db5e4dd3", + "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/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.4 --use=@autorest/modelerfour@4.19.2 --version=3.4.5", + "readme": "specification/batch/resource-manager/readme.md" +} \ No newline at end of file diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/__init__.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/__init__.py index 973446412c5e..78a2c7275e61 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/__init__.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/__init__.py @@ -6,11 +6,11 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from ._batch_management import BatchManagement +from ._batch_management_client import BatchManagementClient from ._version import VERSION __version__ = VERSION -__all__ = ['BatchManagement'] +__all__ = ['BatchManagementClient'] try: from ._patch import patch_sdk # type: ignore diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_batch_management.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_batch_management_client.py similarity index 77% rename from sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_batch_management.py rename to sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_batch_management_client.py index 39895f567cf2..bda0002c0212 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_batch_management.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_batch_management_client.py @@ -16,8 +16,9 @@ from typing import Any, Optional from azure.core.credentials import TokenCredential + from azure.core.pipeline.transport import HttpRequest, HttpResponse -from ._configuration import BatchManagementConfiguration +from ._configuration import BatchManagementClientConfiguration from .operations import BatchAccountOperations from .operations import ApplicationPackageOperations from .operations import ApplicationOperations @@ -30,8 +31,8 @@ from . import models -class BatchManagement(object): - """BatchManagement. +class BatchManagementClient(object): + """Batch Client. :ivar batch_account: BatchAccountOperations operations :vartype batch_account: azure.mgmt.batch.operations.BatchAccountOperations @@ -69,11 +70,12 @@ def __init__( # type: (...) -> None if not base_url: base_url = 'https://management.azure.com' - self._config = BatchManagementConfiguration(credential, subscription_id, **kwargs) + self._config = BatchManagementClientConfiguration(credential, subscription_id, **kwargs) self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} self._serialize = Serializer(client_models) + self._serialize.client_side_validation = False self._deserialize = Deserializer(client_models) self.batch_account = BatchAccountOperations( @@ -95,12 +97,30 @@ def __init__( self.pool = PoolOperations( self._client, self._config, self._serialize, self._deserialize) + def _send_request(self, http_request, **kwargs): + # type: (HttpRequest, Any) -> HttpResponse + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.HttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + def close(self): # type: () -> None self._client.close() def __enter__(self): - # type: () -> BatchManagement + # type: () -> BatchManagementClient self._client.__enter__() return self 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 ed8e7a23e834..f78eba59a665 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_configuration.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_configuration.py @@ -21,8 +21,8 @@ from azure.core.credentials import TokenCredential -class BatchManagementConfiguration(Configuration): - """Configuration for BatchManagement. +class BatchManagementClientConfiguration(Configuration): + """Configuration for BatchManagementClient. Note that all parameters used to create this instance are saved as instance attributes. @@ -44,11 +44,11 @@ def __init__( raise ValueError("Parameter 'credential' must not be None.") if subscription_id is None: raise ValueError("Parameter 'subscription_id' must not be None.") - super(BatchManagementConfiguration, self).__init__(**kwargs) + super(BatchManagementClientConfiguration, self).__init__(**kwargs) self.credential = credential self.subscription_id = subscription_id - self.api_version = "2021-01-01" + self.api_version = "2021-06-01" 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 48c70ba2589f..11745c6c2ee4 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_metadata.json +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_metadata.json @@ -1,15 +1,17 @@ { - "chosen_version": "2021-01-01", - "total_api_version_list": ["2021-01-01"], + "chosen_version": "2021-06-01", + "total_api_version_list": ["2021-06-01"], "client": { - "name": "BatchManagement", - "filename": "_batch_management", - "description": "BatchManagement.", + "name": "BatchManagementClient", + "filename": "_batch_management_client", + "description": "Batch Client.", "base_url": "\u0027https://management.azure.com\u0027", "custom_base_url": null, "azure_arm": true, "has_lro_operations": true, - "client_side_validation": 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\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}", + "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"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\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" }, "global_parameters": { "sync": { @@ -28,13 +30,13 @@ }, "async": { "credential": { - "signature": "credential, # type: \"AsyncTokenCredential\"", + "signature": "credential: \"AsyncTokenCredential\",", "description": "Credential needed for the client to connect to Azure.", "docstring_type": "~azure.core.credentials_async.AsyncTokenCredential", "required": true }, "subscription_id": { - "signature": "subscription_id, # type: str", + "signature": "subscription_id: str,", "description": "The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).", "docstring_type": "str", "required": true @@ -42,14 +44,58 @@ }, "constant": { }, - "call": "credential, subscription_id" + "call": "credential, subscription_id", + "service_client_specific": { + "sync": { + "api_version": { + "signature": "api_version=None, # type: Optional[str]", + "description": "API version to use if no profile is provided, or if missing in profile.", + "docstring_type": "str", + "required": false + }, + "base_url": { + "signature": "base_url=None, # type: Optional[str]", + "description": "Service URL", + "docstring_type": "str", + "required": false + }, + "profile": { + "signature": "profile=KnownProfiles.default, # type: KnownProfiles", + "description": "A profile definition, from KnownProfiles to dict.", + "docstring_type": "azure.profiles.KnownProfiles", + "required": false + } + }, + "async": { + "api_version": { + "signature": "api_version: Optional[str] = None,", + "description": "API version to use if no profile is provided, or if missing in profile.", + "docstring_type": "str", + "required": false + }, + "base_url": { + "signature": "base_url: Optional[str] = None,", + "description": "Service URL", + "docstring_type": "str", + "required": false + }, + "profile": { + "signature": "profile: KnownProfiles = KnownProfiles.default,", + "description": "A profile definition, from KnownProfiles to dict.", + "docstring_type": "azure.profiles.KnownProfiles", + "required": false + } + } + } }, "config": { "credential": true, "credential_scopes": ["https://management.azure.com/.default"], "credential_default_policy_type": "BearerTokenCredentialPolicy", "credential_default_policy_type_has_async_version": true, - "credential_key_header_name": null + "credential_key_header_name": null, + "sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\"._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}}", + "async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}" }, "operation_groups": { "batch_account": "BatchAccountOperations", @@ -61,9 +107,5 @@ "private_link_resource": "PrivateLinkResourceOperations", "private_endpoint_connection": "PrivateEndpointConnectionOperations", "pool": "PoolOperations" - }, - "operation_mixins": { - }, - "sync_imports": "None", - "async_imports": "None" + } } \ No newline at end of file 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 509d4adc872c..645cd18c85d4 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 = "15.0.0" +VERSION = "16.0.0" diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/__init__.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/__init__.py index e5d17e0c8dfe..5a720eaafff3 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/__init__.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/__init__.py @@ -6,5 +6,5 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from ._batch_management import BatchManagement -__all__ = ['BatchManagement'] +from ._batch_management_client import BatchManagementClient +__all__ = ['BatchManagementClient'] diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/_batch_management.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/_batch_management_client.py similarity index 77% rename from sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/_batch_management.py rename to sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/_batch_management_client.py index d249e8776e1a..b38dc761a779 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/_batch_management.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/_batch_management_client.py @@ -8,6 +8,7 @@ from typing import Any, Optional, TYPE_CHECKING +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient from msrest import Deserializer, Serializer @@ -15,7 +16,7 @@ # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials_async import AsyncTokenCredential -from ._configuration import BatchManagementConfiguration +from ._configuration import BatchManagementClientConfiguration from .operations import BatchAccountOperations from .operations import ApplicationPackageOperations from .operations import ApplicationOperations @@ -28,8 +29,8 @@ from .. import models -class BatchManagement(object): - """BatchManagement. +class BatchManagementClient(object): + """Batch Client. :ivar batch_account: BatchAccountOperations operations :vartype batch_account: azure.mgmt.batch.aio.operations.BatchAccountOperations @@ -66,11 +67,12 @@ def __init__( ) -> None: if not base_url: base_url = 'https://management.azure.com' - self._config = BatchManagementConfiguration(credential, subscription_id, **kwargs) + self._config = BatchManagementClientConfiguration(credential, subscription_id, **kwargs) self._client = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} self._serialize = Serializer(client_models) + self._serialize.client_side_validation = False self._deserialize = Deserializer(client_models) self.batch_account = BatchAccountOperations( @@ -92,10 +94,27 @@ def __init__( self.pool = PoolOperations( self._client, self._config, self._serialize, self._deserialize) + async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.AsyncHttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + async def close(self) -> None: await self._client.close() - async def __aenter__(self) -> "BatchManagement": + async def __aenter__(self) -> "BatchManagementClient": await self._client.__aenter__() return self 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 9796a92d8f37..e658ffb1231e 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,8 +19,8 @@ from azure.core.credentials_async import AsyncTokenCredential -class BatchManagementConfiguration(Configuration): - """Configuration for BatchManagement. +class BatchManagementClientConfiguration(Configuration): + """Configuration for BatchManagementClient. Note that all parameters used to create this instance are saved as instance attributes. @@ -41,11 +41,11 @@ def __init__( raise ValueError("Parameter 'credential' must not be None.") if subscription_id is None: raise ValueError("Parameter 'subscription_id' must not be None.") - super(BatchManagementConfiguration, self).__init__(**kwargs) + super(BatchManagementClientConfiguration, self).__init__(**kwargs) self.credential = credential self.subscription_id = subscription_id - self.api_version = "2021-01-01" + self.api_version = "2021-06-01" 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 9ecfd4a97cf0..eb8d1af5fd5b 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 @@ -47,7 +47,7 @@ async def create( account_name: str, application_name: str, parameters: Optional["_models.Application"] = None, - **kwargs + **kwargs: Any ) -> "_models.Application": """Adds an application to the specified Batch account. @@ -69,7 +69,7 @@ async def create( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -119,7 +119,7 @@ async def delete( resource_group_name: str, account_name: str, application_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes an application. @@ -139,7 +139,7 @@ async def delete( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -178,7 +178,7 @@ async def get( resource_group_name: str, account_name: str, application_name: str, - **kwargs + **kwargs: Any ) -> "_models.Application": """Gets information about the specified application. @@ -198,7 +198,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -241,7 +241,7 @@ async def update( account_name: str, application_name: str, parameters: "_models.Application", - **kwargs + **kwargs: Any ) -> "_models.Application": """Updates settings for the specified application. @@ -263,7 +263,7 @@ async def update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -310,7 +310,7 @@ def list( resource_group_name: str, account_name: str, maxresults: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ListApplicationsResult"]: """Lists all of the applications in the specified account. @@ -330,7 +330,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): 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 0531798f35d2..0e28c2776ba8 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 @@ -48,7 +48,7 @@ async def activate( application_name: str, version_name: str, parameters: "_models.ActivateApplicationPackageParameters", - **kwargs + **kwargs: Any ) -> "_models.ApplicationPackage": """Activates the specified application package. This should be done after the ``ApplicationPackage`` was created and uploaded. This needs to be done before an @@ -74,7 +74,7 @@ async def activate( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -124,11 +124,12 @@ async def create( application_name: str, version_name: str, parameters: Optional["_models.ApplicationPackage"] = None, - **kwargs + **kwargs: Any ) -> "_models.ApplicationPackage": - """Creates an application package record. The record contains the SAS where the package should be - uploaded to. Once it is uploaded the ``ApplicationPackage`` needs to be activated using - ``ApplicationPackageActive`` before it can be used. + """Creates an application package record. The record contains a storageUrl where the package + should be uploaded to. Once it is uploaded the ``ApplicationPackage`` needs to be activated + using ``ApplicationPackageActive`` before it can be used. If the auto storage account was + configured to use storage keys, the URL returned will contain a SAS. :param resource_group_name: The name of the resource group that contains the Batch account. :type resource_group_name: str @@ -150,7 +151,7 @@ async def create( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -202,7 +203,7 @@ async def delete( account_name: str, application_name: str, version_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes an application package record and its associated binary file. @@ -224,7 +225,7 @@ async def delete( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -265,7 +266,7 @@ async def get( account_name: str, application_name: str, version_name: str, - **kwargs + **kwargs: Any ) -> "_models.ApplicationPackage": """Gets information about the specified application package. @@ -287,7 +288,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -331,7 +332,7 @@ def list( account_name: str, application_name: str, maxresults: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ListApplicationPackagesResult"]: """Lists all of the application packages in the specified application. @@ -353,7 +354,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): 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 a365b66623bc..a534e9f56603 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 @@ -48,14 +48,14 @@ async def _create_initial( resource_group_name: str, account_name: str, parameters: "_models.BatchAccountCreateParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.BatchAccount"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.BatchAccount"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -108,7 +108,7 @@ async def begin_create( resource_group_name: str, account_name: str, parameters: "_models.BatchAccountCreateParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.BatchAccount"]: """Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. @@ -125,8 +125,8 @@ async def begin_create( :type parameters: ~azure.mgmt.batch.models.BatchAccountCreateParameters :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :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 BatchAccount or the result of cls(response) @@ -184,7 +184,7 @@ async def update( resource_group_name: str, account_name: str, parameters: "_models.BatchAccountUpdateParameters", - **kwargs + **kwargs: Any ) -> "_models.BatchAccount": """Updates the properties of an existing Batch account. @@ -204,7 +204,7 @@ async def update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -249,14 +249,14 @@ async def _delete_initial( self, resource_group_name: str, account_name: str, - **kwargs + **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 = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -298,7 +298,7 @@ async def begin_delete( self, resource_group_name: str, account_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes the specified Batch account. @@ -308,8 +308,8 @@ async def begin_delete( :type account_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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :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) @@ -362,7 +362,7 @@ async def get( self, resource_group_name: str, account_name: str, - **kwargs + **kwargs: Any ) -> "_models.BatchAccount": """Gets information about the specified Batch account. @@ -380,7 +380,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -418,7 +418,7 @@ async def get( def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.BatchAccountListResult"]: """Gets information about the Batch accounts associated with the subscription. @@ -432,7 +432,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -485,7 +485,7 @@ async def get_next(next_link=None): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.BatchAccountListResult"]: """Gets information about the Batch accounts associated with the specified resource group. @@ -501,7 +501,7 @@ def list_by_resource_group( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -556,10 +556,10 @@ async def synchronize_auto_storage_keys( self, resource_group_name: str, account_name: str, - **kwargs + **kwargs: Any ) -> None: """Synchronizes access keys for the auto-storage account configured for the specified Batch - account. + account, only if storage key authentication is being used. :param resource_group_name: The name of the resource group that contains the Batch account. :type resource_group_name: str @@ -575,7 +575,7 @@ async def synchronize_auto_storage_keys( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -613,10 +613,15 @@ async def regenerate_key( resource_group_name: str, account_name: str, parameters: "_models.BatchAccountRegenerateKeyParameters", - **kwargs + **kwargs: Any ) -> "_models.BatchAccountKeys": """Regenerates the specified account key for the Batch account. + This operation applies only to Batch accounts with allowedAuthenticationModes containing + 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, + clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes + instead. In this case, regenerating the keys will fail. + :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. @@ -633,7 +638,7 @@ async def regenerate_key( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -678,14 +683,14 @@ async def get_keys( self, resource_group_name: str, account_name: str, - **kwargs + **kwargs: Any ) -> "_models.BatchAccountKeys": """Gets the account keys for the specified Batch account. - This operation applies only to Batch accounts created with a poolAllocationMode of - 'BatchService'. If the Batch account was created with a poolAllocationMode of - 'UserSubscription', clients cannot use access to keys to authenticate, and must use Azure - Active Directory instead. In this case, getting the keys will fail. + This operation applies only to Batch accounts with allowedAuthenticationModes containing + 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, + clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes + instead. In this case, getting the keys will fail. :param resource_group_name: The name of the resource group that contains the Batch account. :type resource_group_name: str @@ -701,7 +706,7 @@ async def get_keys( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -736,3 +741,82 @@ async def get_keys( return deserialized get_keys.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/listKeys'} # type: ignore + + def list_outbound_network_dependencies_endpoints( + self, + resource_group_name: str, + account_name: str, + **kwargs: Any + ) -> AsyncIterable["_models.OutboundEnvironmentEndpointCollection"]: + """Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of + Batch service administration. If you are deploying a Pool inside of a virtual network that you + specify, you must make sure your network allows outbound access to these endpoints. Failure to + allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For + more information about creating a pool inside of a virtual network, see + https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network. + + :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 + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either OutboundEnvironmentEndpointCollection or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.batch.models.OutboundEnvironmentEndpointCollection] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.OutboundEnvironmentEndpointCollection"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_outbound_network_dependencies_endpoints.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=24, min_length=3, pattern=r'^[a-zA-Z0-9]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('OutboundEnvironmentEndpointCollection', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + return pipeline_response + + 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 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 b186aad4a97e..438d2a5c3141 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 @@ -50,7 +50,7 @@ def list_by_batch_account( maxresults: Optional[int] = None, select: Optional[str] = None, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ListCertificatesResult"]: """Lists all of the certificates in the specified account. @@ -77,7 +77,7 @@ def list_by_batch_account( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -143,7 +143,7 @@ async def create( parameters: "_models.CertificateCreateOrUpdateParameters", if_match: Optional[str] = None, if_none_match: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Certificate": """Creates a new certificate inside the specified account. @@ -174,7 +174,7 @@ async def create( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -229,7 +229,7 @@ async def update( certificate_name: str, parameters: "_models.CertificateCreateOrUpdateParameters", if_match: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Certificate": """Updates the properties of an existing certificate. @@ -256,7 +256,7 @@ async def update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -307,14 +307,14 @@ async def _delete_initial( resource_group_name: str, account_name: str, certificate_name: str, - **kwargs + **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 = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -358,7 +358,7 @@ async def begin_delete( resource_group_name: str, account_name: str, certificate_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes the specified certificate. @@ -372,8 +372,8 @@ async def begin_delete( :type certificate_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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :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) @@ -429,7 +429,7 @@ async def get( resource_group_name: str, account_name: str, certificate_name: str, - **kwargs + **kwargs: Any ) -> "_models.Certificate": """Gets information about the specified certificate. @@ -451,7 +451,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -495,7 +495,7 @@ async def cancel_deletion( resource_group_name: str, account_name: str, certificate_name: str, - **kwargs + **kwargs: Any ) -> "_models.Certificate": """Cancels a failed deletion of a certificate from the specified account. @@ -524,7 +524,7 @@ async def cancel_deletion( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL 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 3ccf31f9e3a3..455a946716e2 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 @@ -5,9 +5,10 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Generic, Optional, TypeVar +from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar import warnings +from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest @@ -43,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def get_quotas( self, location_name: str, - **kwargs + **kwargs: Any ) -> "_models.BatchLocationQuota": """Gets the Batch service quotas for the specified subscription at the given location. @@ -59,7 +60,7 @@ async def get_quotas( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -94,11 +95,171 @@ async def get_quotas( return deserialized get_quotas.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/quotas'} # type: ignore + def list_supported_virtual_machine_skus( + self, + location_name: str, + maxresults: Optional[int] = None, + filter: Optional[str] = None, + **kwargs: Any + ) -> AsyncIterable["_models.SupportedSkusResult"]: + """Gets the list of Batch supported Virtual Machine VM sizes available at the given location. + + :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. + :type maxresults: int + :param filter: OData filter expression. Valid properties for filtering are "familyName". + :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 + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.SupportedSkusResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_supported_virtual_machine_skus.metadata['url'] # type: ignore + path_format_arguments = { + 'locationName': self._serialize.url("location_name", location_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if maxresults is not None: + query_parameters['maxresults'] = self._serialize.query("maxresults", maxresults, 'int') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('SupportedSkusResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_supported_virtual_machine_skus.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/virtualMachineSkus'} # type: ignore + + def list_supported_cloud_service_skus( + self, + location_name: str, + maxresults: Optional[int] = None, + filter: Optional[str] = None, + **kwargs: Any + ) -> AsyncIterable["_models.SupportedSkusResult"]: + """Gets the list of Batch supported Cloud Service VM sizes available at the given location. + + :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. + :type maxresults: int + :param filter: OData filter expression. Valid properties for filtering are "familyName". + :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 + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.SupportedSkusResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_supported_cloud_service_skus.metadata['url'] # type: ignore + path_format_arguments = { + 'locationName': self._serialize.url("location_name", location_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if maxresults is not None: + query_parameters['maxresults'] = self._serialize.query("maxresults", maxresults, 'int') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('SupportedSkusResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_supported_cloud_service_skus.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/cloudServiceSkus'} # type: ignore + async def check_name_availability( self, location_name: str, parameters: "_models.CheckNameAvailabilityParameters", - **kwargs + **kwargs: Any ) -> "_models.CheckNameAvailabilityResult": """Checks whether the Batch account name is available in the specified region. @@ -116,7 +277,7 @@ async def check_name_availability( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" 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 fdf8f325da6d..ae1f3b4b5c17 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 @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.OperationListResult"]: """Lists available operations for the Microsoft.Batch provider. @@ -57,7 +57,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): 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 f836c4dfe9fb..0c84bc54c45d 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 @@ -50,7 +50,7 @@ def list_by_batch_account( maxresults: Optional[int] = None, select: Optional[str] = None, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ListPoolsResult"]: """Lists all of the pools in the specified account. @@ -88,7 +88,7 @@ def list_by_batch_account( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -154,7 +154,7 @@ async def create( parameters: "_models.Pool", if_match: Optional[str] = None, if_none_match: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Pool": """Creates a new pool inside the specified account. @@ -183,7 +183,7 @@ async def create( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -238,7 +238,7 @@ async def update( pool_name: str, parameters: "_models.Pool", if_match: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Pool": """Updates the properties of an existing pool. @@ -264,7 +264,7 @@ async def update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -315,14 +315,14 @@ async def _delete_initial( resource_group_name: str, account_name: str, pool_name: str, - **kwargs + **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 = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -366,7 +366,7 @@ async def begin_delete( resource_group_name: str, account_name: str, pool_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes the specified pool. @@ -378,8 +378,8 @@ async def begin_delete( :type pool_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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :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) @@ -435,7 +435,7 @@ async def get( resource_group_name: str, account_name: str, pool_name: str, - **kwargs + **kwargs: Any ) -> "_models.Pool": """Gets information about the specified pool. @@ -455,7 +455,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -499,7 +499,7 @@ async def disable_auto_scale( resource_group_name: str, account_name: str, pool_name: str, - **kwargs + **kwargs: Any ) -> "_models.Pool": """Disables automatic scaling for a pool. @@ -519,7 +519,7 @@ async def disable_auto_scale( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -563,7 +563,7 @@ async def stop_resize( resource_group_name: str, account_name: str, pool_name: str, - **kwargs + **kwargs: Any ) -> "_models.Pool": """Stops an ongoing resize operation on the pool. @@ -590,7 +590,7 @@ async def stop_resize( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL 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 3710ee0f94cd..e8ab3477122f 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 @@ -48,7 +48,7 @@ def list_by_batch_account( resource_group_name: str, account_name: str, maxresults: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ListPrivateEndpointConnectionsResult"]: """Lists all of the private endpoint connections in the specified account. @@ -68,7 +68,7 @@ def list_by_batch_account( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -127,7 +127,7 @@ async def get( resource_group_name: str, account_name: str, private_endpoint_connection_name: str, - **kwargs + **kwargs: Any ) -> "_models.PrivateEndpointConnection": """Gets information about the specified private endpoint connection. @@ -148,7 +148,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -192,14 +192,14 @@ async def _update_initial( private_endpoint_connection_name: str, parameters: "_models.PrivateEndpointConnection", if_match: Optional[str] = None, - **kwargs + **kwargs: Any ) -> Optional["_models.PrivateEndpointConnection"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.PrivateEndpointConnection"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -257,7 +257,7 @@ async def begin_update( private_endpoint_connection_name: str, parameters: "_models.PrivateEndpointConnection", if_match: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.PrivateEndpointConnection"]: """Updates the properties of an existing private endpoint connection. @@ -276,8 +276,8 @@ async def begin_update( :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. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :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 PrivateEndpointConnection or the result of cls(response) 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 fe2b13884966..3a5af5e4ecbd 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 @@ -46,7 +46,7 @@ def list_by_batch_account( resource_group_name: str, account_name: str, maxresults: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ListPrivateLinkResourcesResult"]: """Lists all of the private link resources in the specified account. @@ -66,7 +66,7 @@ def list_by_batch_account( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -125,7 +125,7 @@ async def get( resource_group_name: str, account_name: str, private_link_resource_name: str, - **kwargs + **kwargs: Any ) -> "_models.PrivateLinkResource": """Gets information about the specified private link resource. @@ -146,7 +146,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL 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 668b7511eaa2..48505f94f317 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 @@ -39,15 +39,17 @@ from ._models_py3 import CheckNameAvailabilityResult from ._models_py3 import CloudErrorBody from ._models_py3 import CloudServiceConfiguration - from ._models_py3 import Components19E4Rl9SchemasBatchaccountidentityPropertiesUserassignedidentitiesAdditionalproperties - from ._models_py3 import Components81XseeSchemasBatchpoolidentityPropertiesUserassignedidentitiesAdditionalproperties + from ._models_py3 import ComputeNodeIdentityReference from ._models_py3 import ContainerConfiguration from ._models_py3 import ContainerRegistry from ._models_py3 import DataDisk from ._models_py3 import DeleteCertificateError from ._models_py3 import DeploymentConfiguration + from ._models_py3 import DiffDiskSettings from ._models_py3 import DiskEncryptionConfiguration from ._models_py3 import EncryptionProperties + from ._models_py3 import EndpointDependency + from ._models_py3 import EndpointDetail from ._models_py3 import EnvironmentSetting from ._models_py3 import FixedScaleSettings from ._models_py3 import ImageReference @@ -67,9 +69,12 @@ from ._models_py3 import NetworkConfiguration from ._models_py3 import NetworkSecurityGroupRule from ._models_py3 import NodePlacementConfiguration + from ._models_py3 import OSDisk from ._models_py3 import Operation from ._models_py3 import OperationDisplay from ._models_py3 import OperationListResult + from ._models_py3 import OutboundEnvironmentEndpoint + from ._models_py3 import OutboundEnvironmentEndpointCollection from ._models_py3 import Pool from ._models_py3 import PoolEndpointConfiguration from ._models_py3 import PrivateEndpoint @@ -83,10 +88,14 @@ from ._models_py3 import Resource from ._models_py3 import ResourceFile from ._models_py3 import ScaleSettings + from ._models_py3 import SkuCapability from ._models_py3 import StartTask + from ._models_py3 import SupportedSku + from ._models_py3 import SupportedSkusResult from ._models_py3 import TaskContainerSettings from ._models_py3 import TaskSchedulingPolicy from ._models_py3 import UserAccount + from ._models_py3 import UserAssignedIdentities from ._models_py3 import UserIdentity from ._models_py3 import VMExtension from ._models_py3 import VirtualMachineConfiguration @@ -126,15 +135,17 @@ from ._models import CheckNameAvailabilityResult # type: ignore from ._models import CloudErrorBody # type: ignore from ._models import CloudServiceConfiguration # type: ignore - from ._models import Components19E4Rl9SchemasBatchaccountidentityPropertiesUserassignedidentitiesAdditionalproperties # type: ignore - from ._models import Components81XseeSchemasBatchpoolidentityPropertiesUserassignedidentitiesAdditionalproperties # type: ignore + from ._models import ComputeNodeIdentityReference # type: ignore from ._models import ContainerConfiguration # type: ignore from ._models import ContainerRegistry # type: ignore from ._models import DataDisk # type: ignore from ._models import DeleteCertificateError # type: ignore from ._models import DeploymentConfiguration # type: ignore + from ._models import DiffDiskSettings # type: ignore from ._models import DiskEncryptionConfiguration # type: ignore from ._models import EncryptionProperties # type: ignore + from ._models import EndpointDependency # type: ignore + from ._models import EndpointDetail # type: ignore from ._models import EnvironmentSetting # type: ignore from ._models import FixedScaleSettings # type: ignore from ._models import ImageReference # type: ignore @@ -154,9 +165,12 @@ from ._models import NetworkConfiguration # type: ignore from ._models import NetworkSecurityGroupRule # type: ignore from ._models import NodePlacementConfiguration # type: ignore + from ._models import OSDisk # type: ignore from ._models import Operation # type: ignore from ._models import OperationDisplay # type: ignore from ._models import OperationListResult # type: ignore + from ._models import OutboundEnvironmentEndpoint # type: ignore + from ._models import OutboundEnvironmentEndpointCollection # type: ignore from ._models import Pool # type: ignore from ._models import PoolEndpointConfiguration # type: ignore from ._models import PrivateEndpoint # type: ignore @@ -170,10 +184,14 @@ from ._models import Resource # type: ignore from ._models import ResourceFile # type: ignore from ._models import ScaleSettings # type: ignore + from ._models import SkuCapability # type: ignore from ._models import StartTask # type: ignore + from ._models import SupportedSku # type: ignore + from ._models import SupportedSkusResult # type: ignore from ._models import TaskContainerSettings # type: ignore from ._models import TaskSchedulingPolicy # type: ignore from ._models import UserAccount # type: ignore + from ._models import UserAssignedIdentities # type: ignore from ._models import UserIdentity # type: ignore from ._models import VMExtension # type: ignore from ._models import VirtualMachineConfiguration # type: ignore @@ -181,9 +199,11 @@ from ._models import WindowsConfiguration # type: ignore from ._models import WindowsUserConfiguration # type: ignore -from ._batch_management_enums import ( +from ._batch_management_client_enums import ( AccountKeyType, AllocationState, + AuthenticationMode, + AutoStorageAuthenticationMode, AutoUserScope, CachingType, CertificateFormat, @@ -248,15 +268,17 @@ 'CheckNameAvailabilityResult', 'CloudErrorBody', 'CloudServiceConfiguration', - 'Components19E4Rl9SchemasBatchaccountidentityPropertiesUserassignedidentitiesAdditionalproperties', - 'Components81XseeSchemasBatchpoolidentityPropertiesUserassignedidentitiesAdditionalproperties', + 'ComputeNodeIdentityReference', 'ContainerConfiguration', 'ContainerRegistry', 'DataDisk', 'DeleteCertificateError', 'DeploymentConfiguration', + 'DiffDiskSettings', 'DiskEncryptionConfiguration', 'EncryptionProperties', + 'EndpointDependency', + 'EndpointDetail', 'EnvironmentSetting', 'FixedScaleSettings', 'ImageReference', @@ -276,9 +298,12 @@ 'NetworkConfiguration', 'NetworkSecurityGroupRule', 'NodePlacementConfiguration', + 'OSDisk', 'Operation', 'OperationDisplay', 'OperationListResult', + 'OutboundEnvironmentEndpoint', + 'OutboundEnvironmentEndpointCollection', 'Pool', 'PoolEndpointConfiguration', 'PrivateEndpoint', @@ -292,10 +317,14 @@ 'Resource', 'ResourceFile', 'ScaleSettings', + 'SkuCapability', 'StartTask', + 'SupportedSku', + 'SupportedSkusResult', 'TaskContainerSettings', 'TaskSchedulingPolicy', 'UserAccount', + 'UserAssignedIdentities', 'UserIdentity', 'VMExtension', 'VirtualMachineConfiguration', @@ -304,6 +333,8 @@ 'WindowsUserConfiguration', 'AccountKeyType', 'AllocationState', + 'AuthenticationMode', + 'AutoStorageAuthenticationMode', 'AutoUserScope', 'CachingType', 'CertificateFormat', 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 new file mode 100644 index 000000000000..2e99f0365b22 --- /dev/null +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/_batch_management_client_enums.py @@ -0,0 +1,402 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from enum import Enum, EnumMeta +from six import with_metaclass + +class _CaseInsensitiveEnumMeta(EnumMeta): + def __getitem__(self, name): + return super().__getitem__(name.upper()) + + def __getattr__(cls, name): + """Return the enum member matching `name` + We use __getattr__ instead of descriptors or inserting into the enum + class' __dict__ in order to support `name` and `value` being both + properties for enum members (which live in the class' __dict__) and + enum members themselves. + """ + try: + return cls._member_map_[name.upper()] + except KeyError: + raise AttributeError(name) + + +class AccountKeyType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The type of account key to regenerate. + """ + + #: The primary account key. + PRIMARY = "Primary" + #: The secondary account key. + SECONDARY = "Secondary" + +class AllocationState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Whether the pool is resizing. + """ + + #: The pool is not resizing. There are no changes to the number of nodes in the pool in progress. + #: A pool enters this state when it is created and when no operations are being performed on the + #: pool to change the number of nodes. + STEADY = "Steady" + #: The pool is resizing; that is, compute nodes are being added to or removed from the pool. + RESIZING = "Resizing" + #: The pool was resizing, but the user has requested that the resize be stopped, but the stop + #: request has not yet been completed. + STOPPING = "Stopping" + +class AuthenticationMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The authentication mode for the Batch account. + """ + + #: The authentication mode using shared keys. + SHARED_KEY = "SharedKey" + #: The authentication mode using Azure Active Directory. + AAD = "AAD" + #: The authentication mode using task authentication tokens. + TASK_AUTHENTICATION_TOKEN = "TaskAuthenticationToken" + +class AutoStorageAuthenticationMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The authentication mode which the Batch service will use to manage the auto-storage account. + """ + + #: The Batch service will authenticate requests to auto-storage using storage account keys. + STORAGE_KEYS = "StorageKeys" + #: The Batch service will authenticate requests to auto-storage using the managed identity + #: assigned to the Batch account. + BATCH_ACCOUNT_MANAGED_IDENTITY = "BatchAccountManagedIdentity" + +class AutoUserScope(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The default value is Pool. If the pool is running Windows a value of Task should be specified + if stricter isolation between tasks is required. For example, if the task mutates the registry + in a way which could impact other tasks, or if certificates have been specified on the pool + which should not be accessible by normal tasks but should be accessible by start tasks. + """ + + #: Specifies that the service should create a new user for the task. + TASK = "Task" + #: Specifies that the task runs as the common auto user account which is created on every node in + #: a pool. + POOL = "Pool" + +class CachingType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The type of caching to enable for the disk. + """ + + #: The caching mode for the disk is not enabled. + NONE = "None" + #: The caching mode for the disk is read only. + READ_ONLY = "ReadOnly" + #: The caching mode for the disk is read and write. + READ_WRITE = "ReadWrite" + +class CertificateFormat(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The format of the certificate - either Pfx or Cer. If omitted, the default is Pfx. + """ + + #: The certificate is a PFX (PKCS#12) formatted certificate or certificate chain. + PFX = "Pfx" + #: The certificate is a base64-encoded X.509 certificate. + CER = "Cer" + +class CertificateProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + + #: The certificate is available for use in pools. + SUCCEEDED = "Succeeded" + #: The user has requested that the certificate be deleted, but the delete operation has not yet + #: completed. You may not reference the certificate when creating or updating pools. + DELETING = "Deleting" + #: The user requested that the certificate be deleted, but there are pools that still have + #: references to the certificate, or it is still installed on one or more compute nodes. (The + #: latter can occur if the certificate has been removed from the pool, but the node has not yet + #: restarted. Nodes refresh their certificates only when they restart.) You may use the cancel + #: certificate delete operation to cancel the delete, or the delete certificate operation to retry + #: the delete. + FAILED = "Failed" + +class CertificateStoreLocation(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The default value is currentUser. This property is applicable only for pools configured with + Windows nodes (that is, created with cloudServiceConfiguration, or with + virtualMachineConfiguration using a Windows image reference). For Linux compute nodes, the + certificates are stored in a directory inside the task working directory and an environment + variable AZ_BATCH_CERTIFICATES_DIR is supplied to the task to query for this location. For + certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home + directory (e.g., /home/{user-name}/certs) and certificates are placed in that directory. + """ + + #: Certificates should be installed to the CurrentUser certificate store. + CURRENT_USER = "CurrentUser" + #: Certificates should be installed to the LocalMachine certificate store. + LOCAL_MACHINE = "LocalMachine" + +class CertificateVisibility(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + + #: The certificate should be visible to the user account under which the start task is run. Note + #: that if AutoUser Scope is Pool for both the StartTask and a Task, this certificate will be + #: visible to the Task as well. + START_TASK = "StartTask" + #: The certificate should be visible to the user accounts under which job tasks are run. + TASK = "Task" + #: The certificate should be visible to the user accounts under which users remotely access the + #: node. + REMOTE_USER = "RemoteUser" + +class ComputeNodeDeallocationOption(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Determines what to do with a node and its running task(s) after it has been selected for + deallocation. + """ + + #: Terminate running task processes and requeue the tasks. The tasks will run again when a node is + #: available. Remove nodes as soon as tasks have been terminated. + REQUEUE = "Requeue" + #: Terminate running tasks. The tasks will be completed with failureInfo indicating that they were + #: terminated, and will not run again. Remove nodes as soon as tasks have been terminated. + TERMINATE = "Terminate" + #: Allow currently running tasks to complete. Schedule no new tasks while waiting. Remove nodes + #: when all tasks have completed. + TASK_COMPLETION = "TaskCompletion" + #: Allow currently running tasks to complete, then wait for all task data retention periods to + #: expire. Schedule no new tasks while waiting. Remove nodes when all task retention periods have + #: expired. + RETAINED_DATA = "RetainedData" + +class ComputeNodeFillType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """How tasks should be distributed across compute nodes. + """ + + #: Tasks should be assigned evenly across all nodes in the pool. + SPREAD = "Spread" + #: As many tasks as possible (taskSlotsPerNode) should be assigned to each node in the pool before + #: any tasks are assigned to the next node in the pool. + PACK = "Pack" + +class ContainerWorkingDirectory(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """A flag to indicate where the container task working directory is. The default is + 'taskWorkingDirectory'. + """ + + #: Use the standard Batch service task working directory, which will contain the Task resource + #: files populated by Batch. + TASK_WORKING_DIRECTORY = "TaskWorkingDirectory" + #: Using container image defined working directory. Beware that this directory will not contain + #: the resource files downloaded by Batch. + CONTAINER_IMAGE_DEFAULT = "ContainerImageDefault" + +class DiskEncryptionTarget(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """If omitted, no disks on the compute nodes in the pool will be encrypted. + """ + + #: The OS Disk on the compute node is encrypted. + OS_DISK = "OsDisk" + #: The temporary disk on the compute node is encrypted. On Linux this encryption applies to other + #: partitions (such as those on mounted data disks) when encryption occurs at boot time. + TEMPORARY_DISK = "TemporaryDisk" + +class ElevationLevel(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The elevation level of the user. + """ + + #: The user is a standard user without elevated access. + NON_ADMIN = "NonAdmin" + #: The user is a user with elevated access and operates with full Administrator permissions. + ADMIN = "Admin" + +class InboundEndpointProtocol(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The protocol of the endpoint. + """ + + #: Use TCP for the endpoint. + TCP = "TCP" + #: Use UDP for the endpoint. + UDP = "UDP" + +class InterNodeCommunicationState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """This imposes restrictions on which nodes can be assigned to the pool. Enabling this value can + reduce the chance of the requested number of nodes to be allocated in the pool. If not + specified, this value defaults to 'Disabled'. + """ + + #: Enable network communication between virtual machines. + ENABLED = "Enabled" + #: Disable network communication between virtual machines. + DISABLED = "Disabled" + +class IPAddressProvisioningType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The provisioning type for Public IP Addresses for the Batch Pool. + """ + + #: A public IP will be created and managed by Batch. There may be multiple public IPs depending on + #: the size of the Pool. + BATCH_MANAGED = "BatchManaged" + #: Public IPs are provided by the user and will be used to provision the Compute Nodes. + USER_MANAGED = "UserManaged" + #: No public IP Address will be created for the Compute Nodes in the Pool. + NO_PUBLIC_IP_ADDRESSES = "NoPublicIPAddresses" + +class KeySource(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Type of the key source. + """ + + #: Batch creates and manages the encryption keys used to protect the account data. + MICROSOFT_BATCH = "Microsoft.Batch" + #: The encryption keys used to protect the account data are stored in an external key vault. If + #: this is set then the Batch Account identity must be set to ``SystemAssigned`` and a valid Key + #: Identifier must also be supplied under the keyVaultProperties. + MICROSOFT_KEY_VAULT = "Microsoft.KeyVault" + +class LoginMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Specifies login mode for the user. The default value for VirtualMachineConfiguration pools is + interactive mode and for CloudServiceConfiguration pools is batch mode. + """ + + #: The LOGON32_LOGON_BATCH Win32 login mode. The batch login mode is recommended for long running + #: parallel processes. + BATCH = "Batch" + #: The LOGON32_LOGON_INTERACTIVE Win32 login mode. Some applications require having permissions + #: associated with the interactive login mode. If this is the case for an application used in your + #: task, then this option is recommended. + INTERACTIVE = "Interactive" + +class NameAvailabilityReason(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Gets the reason that a Batch account name could not be used. The Reason element is only + returned if NameAvailable is false. + """ + + #: The requested name is invalid. + INVALID = "Invalid" + #: The requested name is already in use. + ALREADY_EXISTS = "AlreadyExists" + +class NetworkSecurityGroupRuleAccess(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The action that should be taken for a specified IP address, subnet range or tag. + """ + + #: Allow access. + ALLOW = "Allow" + #: Deny access. + DENY = "Deny" + +class NodePlacementPolicyType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The default value is regional. + """ + + #: All nodes in the pool will be allocated in the same region. + REGIONAL = "Regional" + #: Nodes in the pool will be spread across different zones with best effort balancing. + ZONAL = "Zonal" + +class PackageState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The current state of the application package. + """ + + #: The application package has been created but has not yet been activated. + PENDING = "Pending" + #: The application package is ready for use. + ACTIVE = "Active" + +class PoolAllocationMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The allocation mode for creating pools in the Batch account. + """ + + #: Pools will be allocated in subscriptions owned by the Batch service. + BATCH_SERVICE = "BatchService" + #: Pools will be allocated in a subscription owned by the user. + USER_SUBSCRIPTION = "UserSubscription" + +class PoolIdentityType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The type of identity used for the Batch Pool. + """ + + #: Batch pool has user assigned identities with it. + USER_ASSIGNED = "UserAssigned" + #: Batch pool has no identity associated with it. Setting ``None`` in update pool will remove + #: existing identities. + NONE = "None" + +class PoolProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The current state of the pool. + """ + + #: The pool is available to run tasks subject to the availability of compute nodes. + SUCCEEDED = "Succeeded" + #: The user has requested that the pool be deleted, but the delete operation has not yet + #: completed. + DELETING = "Deleting" + +class PrivateEndpointConnectionProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """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 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 user requested that the connection be updated and it failed. You may retry the update + #: operation. + FAILED = "Failed" + +class PrivateLinkServiceConnectionStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The status of the Batch private endpoint connection + """ + + #: The private endpoint connection is approved and can be used to access Batch account. + APPROVED = "Approved" + #: The private endpoint connection is pending and cannot be used to access Batch account. + PENDING = "Pending" + #: The private endpoint connection is rejected and cannot be used to access Batch account. + REJECTED = "Rejected" + #: The private endpoint connection is disconnected and cannot be used to access Batch account. + DISCONNECTED = "Disconnected" + +class ProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The provisioned state of the resource + """ + + #: The account is in an invalid state. + INVALID = "Invalid" + #: The account is being created. + CREATING = "Creating" + #: The account is being deleted. + DELETING = "Deleting" + #: The account has been created and is ready for use. + SUCCEEDED = "Succeeded" + #: The last operation for the account is failed. + FAILED = "Failed" + #: The last operation for the account is cancelled. + CANCELLED = "Cancelled" + +class PublicNetworkAccessType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The network access type for operating on the resources in the Batch account. + """ + + #: Enables connectivity to Azure Batch through public DNS. + ENABLED = "Enabled" + #: Disables public connectivity and enables private connectivity to Azure Batch Service through + #: private endpoint resource. + DISABLED = "Disabled" + +class ResourceIdentityType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The type of identity used for the Batch account. + """ + + #: Batch account has a system assigned identity with it. + SYSTEM_ASSIGNED = "SystemAssigned" + #: Batch account has user assigned identities with it. + USER_ASSIGNED = "UserAssigned" + #: Batch account has no identity associated with it. Setting ``None`` in update account will + #: remove existing identities. + NONE = "None" + +class StorageAccountType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The storage account type for use in creating data disks. + """ + + #: The data disk should use standard locally redundant storage. + STANDARD_LRS = "Standard_LRS" + #: The data disk should use premium locally redundant storage. + PREMIUM_LRS = "Premium_LRS" diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/_batch_management_enums.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/_batch_management_enums.py deleted file mode 100644 index 7706a62afdef..000000000000 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/_batch_management_enums.py +++ /dev/null @@ -1,270 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum, EnumMeta -from six import with_metaclass - -class _CaseInsensitiveEnumMeta(EnumMeta): - def __getitem__(self, name): - return super().__getitem__(name.upper()) - - def __getattr__(cls, name): - """Return the enum member matching `name` - We use __getattr__ instead of descriptors or inserting into the enum - class' __dict__ in order to support `name` and `value` being both - properties for enum members (which live in the class' __dict__) and - enum members themselves. - """ - try: - return cls._member_map_[name.upper()] - except KeyError: - raise AttributeError(name) - - -class AccountKeyType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """The type of account key to regenerate. - """ - - PRIMARY = "Primary" #: The primary account key. - SECONDARY = "Secondary" #: The secondary account key. - -class AllocationState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """Whether the pool is resizing. - """ - - STEADY = "Steady" #: The pool is not resizing. There are no changes to the number of nodes in the pool in progress. A pool enters this state when it is created and when no operations are being performed on the pool to change the number of nodes. - RESIZING = "Resizing" #: The pool is resizing; that is, compute nodes are being added to or removed from the pool. - STOPPING = "Stopping" #: The pool was resizing, but the user has requested that the resize be stopped, but the stop request has not yet been completed. - -class AutoUserScope(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """The default value is Pool. If the pool is running Windows a value of Task should be specified - if stricter isolation between tasks is required. For example, if the task mutates the registry - in a way which could impact other tasks, or if certificates have been specified on the pool - which should not be accessible by normal tasks but should be accessible by start tasks. - """ - - TASK = "Task" #: Specifies that the service should create a new user for the task. - POOL = "Pool" #: Specifies that the task runs as the common auto user account which is created on every node in a pool. - -class CachingType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """The type of caching to enable for the disk. - """ - - NONE = "None" #: The caching mode for the disk is not enabled. - READ_ONLY = "ReadOnly" #: The caching mode for the disk is read only. - READ_WRITE = "ReadWrite" #: The caching mode for the disk is read and write. - -class CertificateFormat(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """The format of the certificate - either Pfx or Cer. If omitted, the default is Pfx. - """ - - PFX = "Pfx" #: The certificate is a PFX (PKCS#12) formatted certificate or certificate chain. - CER = "Cer" #: The certificate is a base64-encoded X.509 certificate. - -class CertificateProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - SUCCEEDED = "Succeeded" #: The certificate is available for use in pools. - DELETING = "Deleting" #: The user has requested that the certificate be deleted, but the delete operation has not yet completed. You may not reference the certificate when creating or updating pools. - FAILED = "Failed" #: The user requested that the certificate be deleted, but there are pools that still have references to the certificate, or it is still installed on one or more compute nodes. (The latter can occur if the certificate has been removed from the pool, but the node has not yet restarted. Nodes refresh their certificates only when they restart.) You may use the cancel certificate delete operation to cancel the delete, or the delete certificate operation to retry the delete. - -class CertificateStoreLocation(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """The default value is currentUser. This property is applicable only for pools configured with - Windows nodes (that is, created with cloudServiceConfiguration, or with - virtualMachineConfiguration using a Windows image reference). For Linux compute nodes, the - certificates are stored in a directory inside the task working directory and an environment - variable AZ_BATCH_CERTIFICATES_DIR is supplied to the task to query for this location. For - certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home - directory (e.g., /home/{user-name}/certs) and certificates are placed in that directory. - """ - - CURRENT_USER = "CurrentUser" #: Certificates should be installed to the CurrentUser certificate store. - LOCAL_MACHINE = "LocalMachine" #: Certificates should be installed to the LocalMachine certificate store. - -class CertificateVisibility(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - START_TASK = "StartTask" #: The certificate should be visible to the user account under which the start task is run. Note that if AutoUser Scope is Pool for both the StartTask and a Task, this certificate will be visible to the Task as well. - TASK = "Task" #: The certificate should be visible to the user accounts under which job tasks are run. - REMOTE_USER = "RemoteUser" #: The certificate should be visible to the user accounts under which users remotely access the node. - -class ComputeNodeDeallocationOption(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """Determines what to do with a node and its running task(s) after it has been selected for - deallocation. - """ - - REQUEUE = "Requeue" #: Terminate running task processes and requeue the tasks. The tasks will run again when a node is available. Remove nodes as soon as tasks have been terminated. - TERMINATE = "Terminate" #: Terminate running tasks. The tasks will be completed with failureInfo indicating that they were terminated, and will not run again. Remove nodes as soon as tasks have been terminated. - TASK_COMPLETION = "TaskCompletion" #: Allow currently running tasks to complete. Schedule no new tasks while waiting. Remove nodes when all tasks have completed. - RETAINED_DATA = "RetainedData" #: Allow currently running tasks to complete, then wait for all task data retention periods to expire. Schedule no new tasks while waiting. Remove nodes when all task retention periods have expired. - -class ComputeNodeFillType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """How tasks should be distributed across compute nodes. - """ - - SPREAD = "Spread" #: Tasks should be assigned evenly across all nodes in the pool. - PACK = "Pack" #: As many tasks as possible (taskSlotsPerNode) should be assigned to each node in the pool before any tasks are assigned to the next node in the pool. - -class ContainerWorkingDirectory(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """A flag to indicate where the container task working directory is. The default is - 'taskWorkingDirectory'. - """ - - TASK_WORKING_DIRECTORY = "TaskWorkingDirectory" #: Use the standard Batch service task working directory, which will contain the Task resource files populated by Batch. - CONTAINER_IMAGE_DEFAULT = "ContainerImageDefault" #: Using container image defined working directory. Beware that this directory will not contain the resource files downloaded by Batch. - -class DiskEncryptionTarget(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """If omitted, no disks on the compute nodes in the pool will be encrypted. - """ - - OS_DISK = "OsDisk" #: The OS Disk on the compute node is encrypted. - TEMPORARY_DISK = "TemporaryDisk" #: The temporary disk on the compute node is encrypted. On Linux this encryption applies to other partitions (such as those on mounted data disks) when encryption occurs at boot time. - -class ElevationLevel(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """The elevation level of the user. - """ - - NON_ADMIN = "NonAdmin" #: The user is a standard user without elevated access. - ADMIN = "Admin" #: The user is a user with elevated access and operates with full Administrator permissions. - -class InboundEndpointProtocol(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """The protocol of the endpoint. - """ - - TCP = "TCP" #: Use TCP for the endpoint. - UDP = "UDP" #: Use UDP for the endpoint. - -class InterNodeCommunicationState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """This imposes restrictions on which nodes can be assigned to the pool. Enabling this value can - reduce the chance of the requested number of nodes to be allocated in the pool. If not - specified, this value defaults to 'Disabled'. - """ - - ENABLED = "Enabled" #: Enable network communication between virtual machines. - DISABLED = "Disabled" #: Disable network communication between virtual machines. - -class IPAddressProvisioningType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """The provisioning type for Public IP Addresses for the Batch Pool. - """ - - BATCH_MANAGED = "BatchManaged" #: A public IP will be created and managed by Batch. There may be multiple public IPs depending on the size of the Pool. - USER_MANAGED = "UserManaged" #: Public IPs are provided by the user and will be used to provision the Compute Nodes. - NO_PUBLIC_IP_ADDRESSES = "NoPublicIPAddresses" #: No public IP Address will be created for the Compute Nodes in the Pool. - -class KeySource(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """Type of the key source. - """ - - MICROSOFT_BATCH = "Microsoft.Batch" #: Batch creates and manages the encryption keys used to protect the account data. - MICROSOFT_KEY_VAULT = "Microsoft.KeyVault" #: The encryption keys used to protect the account data are stored in an external key vault. If this is set then the Batch Account identity must be set to ``SystemAssigned`` and a valid Key Identifier must also be supplied under the keyVaultProperties. - -class LoginMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """Specifies login mode for the user. The default value for VirtualMachineConfiguration pools is - interactive mode and for CloudServiceConfiguration pools is batch mode. - """ - - BATCH = "Batch" #: The LOGON32_LOGON_BATCH Win32 login mode. The batch login mode is recommended for long running parallel processes. - INTERACTIVE = "Interactive" #: The LOGON32_LOGON_INTERACTIVE Win32 login mode. Some applications require having permissions associated with the interactive login mode. If this is the case for an application used in your task, then this option is recommended. - -class NameAvailabilityReason(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """Gets the reason that a Batch account name could not be used. The Reason element is only - returned if NameAvailable is false. - """ - - INVALID = "Invalid" #: The requested name is invalid. - ALREADY_EXISTS = "AlreadyExists" #: The requested name is already in use. - -class NetworkSecurityGroupRuleAccess(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """The action that should be taken for a specified IP address, subnet range or tag. - """ - - ALLOW = "Allow" #: Allow access. - DENY = "Deny" #: Deny access. - -class NodePlacementPolicyType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """The default value is regional. - """ - - REGIONAL = "Regional" #: All nodes in the pool will be allocated in the same region. - ZONAL = "Zonal" #: Nodes in the pool will be spread across different zones with best effort balancing. - -class PackageState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """The current state of the application package. - """ - - PENDING = "Pending" #: The application package has been created but has not yet been activated. - ACTIVE = "Active" #: The application package is ready for use. - -class PoolAllocationMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """The allocation mode for creating pools in the Batch account. - """ - - BATCH_SERVICE = "BatchService" #: Pools will be allocated in subscriptions owned by the Batch service. - USER_SUBSCRIPTION = "UserSubscription" #: Pools will be allocated in a subscription owned by the user. - -class PoolIdentityType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """The type of identity used for the Batch Pool. - """ - - USER_ASSIGNED = "UserAssigned" #: Batch pool has user assigned identities with it. - NONE = "None" #: Batch pool has no identity associated with it. Setting ``None`` in update pool will remove existing identities. - -class PoolProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """The current state of the pool. - """ - - SUCCEEDED = "Succeeded" #: The pool is available to run tasks subject to the availability of compute nodes. - DELETING = "Deleting" #: The user has requested that the pool be deleted, but the delete operation has not yet completed. - -class PrivateEndpointConnectionProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """The provisioning state of the private endpoint connection. - """ - - SUCCEEDED = "Succeeded" #: The connection status is final and is ready for use if Status is Approved. - UPDATING = "Updating" #: 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. - FAILED = "Failed" #: The user requested that the connection be updated and it failed. You may retry the update operation. - -class PrivateLinkServiceConnectionStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """The status of the Batch private endpoint connection - """ - - APPROVED = "Approved" #: The private endpoint connection is approved and can be used to access Batch account. - PENDING = "Pending" #: The private endpoint connection is pending and cannot be used to access Batch account. - REJECTED = "Rejected" #: The private endpoint connection is rejected and cannot be used to access Batch account. - DISCONNECTED = "Disconnected" #: The private endpoint connection is disconnected and cannot be used to access Batch account. - -class ProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """The provisioned state of the resource - """ - - INVALID = "Invalid" #: The account is in an invalid state. - CREATING = "Creating" #: The account is being created. - DELETING = "Deleting" #: The account is being deleted. - SUCCEEDED = "Succeeded" #: The account has been created and is ready for use. - FAILED = "Failed" #: The last operation for the account is failed. - CANCELLED = "Cancelled" #: The last operation for the account is cancelled. - -class PublicNetworkAccessType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """The network access type for operating on the resources in the Batch account. - """ - - ENABLED = "Enabled" #: Enables connectivity to Azure Batch through public DNS. - DISABLED = "Disabled" #: Disables public connectivity and enables private connectivity to Azure Batch Service through private endpoint resource. - -class ResourceIdentityType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """The type of identity used for the Batch account. - """ - - SYSTEM_ASSIGNED = "SystemAssigned" #: Batch account has a system assigned identity with it. - USER_ASSIGNED = "UserAssigned" #: Batch account has user assigned identities with it. - NONE = "None" #: Batch account has no identity associated with it. Setting ``None`` in update account will remove existing identities. - -class StorageAccountType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """The storage account type for use in creating data disks. - """ - - STANDARD_LRS = "Standard_LRS" #: The data disk should use standard locally redundant storage. - PREMIUM_LRS = "Premium_LRS" #: The data disk should use premium locally redundant storage. diff --git a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/_models.py b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/_models.py index c998938bfd70..6c155a5bf818 100644 --- a/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/_models.py +++ b/sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/_models.py @@ -327,6 +327,13 @@ class AutoStorageBaseProperties(msrest.serialization.Model): :param storage_account_id: Required. The resource ID of the storage account to be used for auto-storage account. :type storage_account_id: str + :param authentication_mode: The authentication mode which the Batch service will use to manage + the auto-storage account. Possible values include: "StorageKeys", + "BatchAccountManagedIdentity". Default value: "StorageKeys". + :type authentication_mode: str or ~azure.mgmt.batch.models.AutoStorageAuthenticationMode + :param node_identity_reference: The identity referenced here must be assigned to pools which + have compute nodes that need access to auto-storage. + :type node_identity_reference: ~azure.mgmt.batch.models.ComputeNodeIdentityReference """ _validation = { @@ -335,6 +342,8 @@ class AutoStorageBaseProperties(msrest.serialization.Model): _attribute_map = { 'storage_account_id': {'key': 'storageAccountId', 'type': 'str'}, + 'authentication_mode': {'key': 'authenticationMode', 'type': 'str'}, + 'node_identity_reference': {'key': 'nodeIdentityReference', 'type': 'ComputeNodeIdentityReference'}, } def __init__( @@ -343,6 +352,8 @@ def __init__( ): super(AutoStorageBaseProperties, self).__init__(**kwargs) self.storage_account_id = kwargs['storage_account_id'] + self.authentication_mode = kwargs.get('authentication_mode', "StorageKeys") + self.node_identity_reference = kwargs.get('node_identity_reference', None) class AutoStorageProperties(AutoStorageBaseProperties): @@ -353,6 +364,13 @@ class AutoStorageProperties(AutoStorageBaseProperties): :param storage_account_id: Required. The resource ID of the storage account to be used for auto-storage account. :type storage_account_id: str + :param authentication_mode: The authentication mode which the Batch service will use to manage + the auto-storage account. Possible values include: "StorageKeys", + "BatchAccountManagedIdentity". Default value: "StorageKeys". + :type authentication_mode: str or ~azure.mgmt.batch.models.AutoStorageAuthenticationMode + :param node_identity_reference: The identity referenced here must be assigned to pools which + have compute nodes that need access to auto-storage. + :type node_identity_reference: ~azure.mgmt.batch.models.ComputeNodeIdentityReference :param last_key_sync: Required. The UTC time at which storage keys were last synchronized with the Batch account. :type last_key_sync: ~datetime.datetime @@ -365,6 +383,8 @@ class AutoStorageProperties(AutoStorageBaseProperties): _attribute_map = { 'storage_account_id': {'key': 'storageAccountId', 'type': 'str'}, + 'authentication_mode': {'key': 'authenticationMode', 'type': 'str'}, + 'node_identity_reference': {'key': 'nodeIdentityReference', 'type': 'ComputeNodeIdentityReference'}, 'last_key_sync': {'key': 'lastKeySync', 'type': 'iso-8601'}, } @@ -413,15 +433,20 @@ class AzureBlobFileSystemConfiguration(msrest.serialization.Model): :type account_name: str :param container_name: Required. The Azure Blob Storage Container name. :type container_name: str - :param account_key: This property is mutually exclusive with sasKey and one must be specified. + :param account_key: This property is mutually exclusive with both sasKey and identity; exactly + one must be specified. :type account_key: str - :param sas_key: This property is mutually exclusive with accountKey and one must be specified. + :param sas_key: This property is mutually exclusive with both accountKey and identity; exactly + one must be specified. :type sas_key: str :param blobfuse_options: These are 'net use' options in Windows and 'mount' options in Linux. :type blobfuse_options: str :param relative_mount_path: Required. All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable. :type relative_mount_path: str + :param identity_reference: This property is mutually exclusive with both accountKey and sasKey; + exactly one must be specified. + :type identity_reference: ~azure.mgmt.batch.models.ComputeNodeIdentityReference """ _validation = { @@ -437,6 +462,7 @@ class AzureBlobFileSystemConfiguration(msrest.serialization.Model): 'sas_key': {'key': 'sasKey', 'type': 'str'}, 'blobfuse_options': {'key': 'blobfuseOptions', 'type': 'str'}, 'relative_mount_path': {'key': 'relativeMountPath', 'type': 'str'}, + 'identity_reference': {'key': 'identityReference', 'type': 'ComputeNodeIdentityReference'}, } def __init__( @@ -450,6 +476,7 @@ def __init__( self.sas_key = kwargs.get('sas_key', None) self.blobfuse_options = kwargs.get('blobfuse_options', None) self.relative_mount_path = kwargs['relative_mount_path'] + self.identity_reference = kwargs.get('identity_reference', None) class AzureFileShareConfiguration(msrest.serialization.Model): @@ -607,6 +634,10 @@ class BatchAccount(Resource): :ivar active_job_and_job_schedule_quota: The active job and job schedule quota for the Batch account. :vartype active_job_and_job_schedule_quota: int + :ivar allowed_authentication_modes: List of allowed authentication modes for the Batch account + 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] """ _validation = { @@ -629,6 +660,7 @@ class BatchAccount(Resource): 'dedicated_core_quota_per_vm_family_enforced': {'readonly': True}, 'pool_quota': {'readonly': True}, 'active_job_and_job_schedule_quota': {'readonly': True}, + 'allowed_authentication_modes': {'readonly': True}, } _attribute_map = { @@ -652,6 +684,7 @@ class BatchAccount(Resource): 'dedicated_core_quota_per_vm_family_enforced': {'key': 'properties.dedicatedCoreQuotaPerVMFamilyEnforced', 'type': 'bool'}, 'pool_quota': {'key': 'properties.poolQuota', 'type': 'int'}, 'active_job_and_job_schedule_quota': {'key': 'properties.activeJobAndJobScheduleQuota', 'type': 'int'}, + 'allowed_authentication_modes': {'key': 'properties.allowedAuthenticationModes', 'type': '[str]'}, } def __init__( @@ -674,6 +707,7 @@ def __init__( self.dedicated_core_quota_per_vm_family_enforced = None self.pool_quota = None self.active_job_and_job_schedule_quota = None + self.allowed_authentication_modes = None class BatchAccountCreateParameters(msrest.serialization.Model): @@ -705,6 +739,10 @@ class BatchAccountCreateParameters(msrest.serialization.Model): default, accounts are encrypted using a Microsoft managed key. For additional control, a customer-managed key can be used instead. :type encryption: ~azure.mgmt.batch.models.EncryptionProperties + :param allowed_authentication_modes: List of allowed authentication modes for the Batch account + that can be used to authenticate with the data plane. This does not affect authentication with + the control plane. + :type allowed_authentication_modes: list[str or ~azure.mgmt.batch.models.AuthenticationMode] """ _validation = { @@ -720,6 +758,7 @@ class BatchAccountCreateParameters(msrest.serialization.Model): 'key_vault_reference': {'key': 'properties.keyVaultReference', 'type': 'KeyVaultReference'}, 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, 'encryption': {'key': 'properties.encryption', 'type': 'EncryptionProperties'}, + 'allowed_authentication_modes': {'key': 'properties.allowedAuthenticationModes', 'type': '[str]'}, } def __init__( @@ -735,10 +774,11 @@ def __init__( self.key_vault_reference = kwargs.get('key_vault_reference', None) self.public_network_access = kwargs.get('public_network_access', "Enabled") self.encryption = kwargs.get('encryption', None) + self.allowed_authentication_modes = kwargs.get('allowed_authentication_modes', None) class BatchAccountIdentity(msrest.serialization.Model): - """The identity of the Batch account, if configured. This is only used when the user specifies 'Microsoft.KeyVault' as their Batch account encryption configuration. + """The identity of the Batch account, if configured. This is used when the user specifies 'Microsoft.KeyVault' as their Batch account encryption configuration or when ``ManagedIdentity`` is selected as the auto-storage authentication mode. Variables are only populated by the server, and will be ignored when sending a request. @@ -754,10 +794,7 @@ class BatchAccountIdentity(msrest.serialization.Model): include: "SystemAssigned", "UserAssigned", "None". :type type: str or ~azure.mgmt.batch.models.ResourceIdentityType :param user_assigned_identities: The list of user identities associated with the Batch account. - The user identity dictionary key references will be ARM resource ids in the form: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - :type user_assigned_identities: dict[str, - ~azure.mgmt.batch.models.Components19E4Rl9SchemasBatchaccountidentityPropertiesUserassignedidentitiesAdditionalproperties] + :type user_assigned_identities: dict[str, ~azure.mgmt.batch.models.UserAssignedIdentities] """ _validation = { @@ -770,7 +807,7 @@ class BatchAccountIdentity(msrest.serialization.Model): 'principal_id': {'key': 'principalId', 'type': 'str'}, 'tenant_id': {'key': 'tenantId', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, - 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{Components19E4Rl9SchemasBatchaccountidentityPropertiesUserassignedidentitiesAdditionalproperties}'}, + 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{UserAssignedIdentities}'}, } def __init__( @@ -881,6 +918,10 @@ class BatchAccountUpdateParameters(msrest.serialization.Model): default, accounts are encrypted using a Microsoft managed key. For additional control, a customer-managed key can be used instead. :type encryption: ~azure.mgmt.batch.models.EncryptionProperties + :param allowed_authentication_modes: List of allowed authentication modes for the Batch account + that can be used to authenticate with the data plane. This does not affect authentication with + the control plane. + :type allowed_authentication_modes: list[str or ~azure.mgmt.batch.models.AuthenticationMode] """ _attribute_map = { @@ -888,6 +929,7 @@ class BatchAccountUpdateParameters(msrest.serialization.Model): 'identity': {'key': 'identity', 'type': 'BatchAccountIdentity'}, 'auto_storage': {'key': 'properties.autoStorage', 'type': 'AutoStorageBaseProperties'}, 'encryption': {'key': 'properties.encryption', 'type': 'EncryptionProperties'}, + 'allowed_authentication_modes': {'key': 'properties.allowedAuthenticationModes', 'type': '[str]'}, } def __init__( @@ -899,6 +941,7 @@ def __init__( self.identity = kwargs.get('identity', None) self.auto_storage = kwargs.get('auto_storage', None) self.encryption = kwargs.get('encryption', None) + self.allowed_authentication_modes = kwargs.get('allowed_authentication_modes', None) class BatchLocationQuota(msrest.serialization.Model): @@ -936,10 +979,7 @@ class BatchPoolIdentity(msrest.serialization.Model): "UserAssigned", "None". :type type: str or ~azure.mgmt.batch.models.PoolIdentityType :param user_assigned_identities: The list of user identities associated with the Batch pool. - The user identity dictionary key references will be ARM resource ids in the form: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - :type user_assigned_identities: dict[str, - ~azure.mgmt.batch.models.Components81XseeSchemasBatchpoolidentityPropertiesUserassignedidentitiesAdditionalproperties] + :type user_assigned_identities: dict[str, ~azure.mgmt.batch.models.UserAssignedIdentities] """ _validation = { @@ -948,7 +988,7 @@ class BatchPoolIdentity(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{Components81XseeSchemasBatchpoolidentityPropertiesUserassignedidentitiesAdditionalproperties}'}, + 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{UserAssignedIdentities}'}, } def __init__( @@ -1046,7 +1086,7 @@ def __init__( class CertificateBaseProperties(msrest.serialization.Model): - """CertificateBaseProperties. + """Base certificate properties. :param thumbprint_algorithm: This must match the first portion of the certificate name. Currently required to be 'SHA1'. @@ -1297,7 +1337,7 @@ class CheckNameAvailabilityParameters(msrest.serialization.Model): :param name: Required. The name to check for availability. :type name: str - :ivar type: Required. The resource type. Default value: "Microsoft.Batch/batchAccounts". + :ivar type: The resource type. Has constant value: "Microsoft.Batch/batchAccounts". :vartype type: str """ @@ -1448,8 +1488,7 @@ class CloudServiceConfiguration(msrest.serialization.Model): 2008 R2 SP1. 3 - OS Family 3, equivalent to Windows Server 2012. 4 - OS Family 4, equivalent to Windows Server 2012 R2. 5 - OS Family 5, equivalent to Windows Server 2016. 6 - OS Family 6, equivalent to Windows Server 2019. For more information, see Azure Guest OS Releases - (https://azure.microsoft.com/documentation/articles/cloud-services-guestos-update- - matrix/#releases). + (https://azure.microsoft.com/documentation/articles/cloud-services-guestos-update-matrix/#releases). :type os_family: str :param os_version: The default value is * which specifies the latest operating system version for the specified OS family. @@ -1474,64 +1513,23 @@ def __init__( self.os_version = kwargs.get('os_version', None) -class Components19E4Rl9SchemasBatchaccountidentityPropertiesUserassignedidentitiesAdditionalproperties(msrest.serialization.Model): - """Components19E4Rl9SchemasBatchaccountidentityPropertiesUserassignedidentitiesAdditionalproperties. +class ComputeNodeIdentityReference(msrest.serialization.Model): + """The reference to a user assigned identity associated with the Batch pool which a compute node will use. - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar principal_id: The principal id of user assigned identity. - :vartype principal_id: str - :ivar client_id: The client id of user assigned identity. - :vartype client_id: str - """ - - _validation = { - 'principal_id': {'readonly': True}, - 'client_id': {'readonly': True}, - } - - _attribute_map = { - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'client_id': {'key': 'clientId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(Components19E4Rl9SchemasBatchaccountidentityPropertiesUserassignedidentitiesAdditionalproperties, self).__init__(**kwargs) - self.principal_id = None - self.client_id = None - - -class Components81XseeSchemasBatchpoolidentityPropertiesUserassignedidentitiesAdditionalproperties(msrest.serialization.Model): - """Components81XseeSchemasBatchpoolidentityPropertiesUserassignedidentitiesAdditionalproperties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar principal_id: The principal id of user assigned identity. - :vartype principal_id: str - :ivar client_id: The client id of user assigned identity. - :vartype client_id: str + :param resource_id: The ARM resource id of the user assigned identity. + :type resource_id: str """ - _validation = { - 'principal_id': {'readonly': True}, - 'client_id': {'readonly': True}, - } - _attribute_map = { - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'client_id': {'key': 'clientId', 'type': 'str'}, + 'resource_id': {'key': 'resourceId', 'type': 'str'}, } def __init__( self, **kwargs ): - super(Components81XseeSchemasBatchpoolidentityPropertiesUserassignedidentitiesAdditionalproperties, self).__init__(**kwargs) - self.principal_id = None - self.client_id = None + super(ComputeNodeIdentityReference, self).__init__(**kwargs) + self.resource_id = kwargs.get('resource_id', None) class ContainerConfiguration(msrest.serialization.Model): @@ -1541,7 +1539,7 @@ class ContainerConfiguration(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :ivar type: Required. The container technology to be used. Default value: "DockerCompatible". + :ivar type: The container technology to be used. Has constant value: "DockerCompatible". :vartype type: str :param container_image_names: This is the full image reference, as would be specified to "docker pull". An image will be sourced from the default Docker registry unless the image is @@ -1576,25 +1574,22 @@ def __init__( class ContainerRegistry(msrest.serialization.Model): """A private container registry. - All required parameters must be populated in order to send to Azure. - - :param registry_server: If omitted, the default is "docker.io". - :type registry_server: str - :param user_name: Required. The user name to log into the registry server. + :param user_name: The user name to log into the registry server. :type user_name: str - :param password: Required. The password to log into the registry server. + :param password: The password to log into the registry server. :type password: str + :param registry_server: If omitted, the default is "docker.io". + :type registry_server: str + :param identity_reference: The reference to a user assigned identity associated with the Batch + pool which a compute node will use. + :type identity_reference: ~azure.mgmt.batch.models.ComputeNodeIdentityReference """ - _validation = { - 'user_name': {'required': True}, - 'password': {'required': True}, - } - _attribute_map = { - 'registry_server': {'key': 'registryServer', 'type': 'str'}, 'user_name': {'key': 'username', 'type': 'str'}, 'password': {'key': 'password', 'type': 'str'}, + 'registry_server': {'key': 'registryServer', 'type': 'str'}, + 'identity_reference': {'key': 'identityReference', 'type': 'ComputeNodeIdentityReference'}, } def __init__( @@ -1602,9 +1597,10 @@ def __init__( **kwargs ): super(ContainerRegistry, self).__init__(**kwargs) + self.user_name = kwargs.get('user_name', None) + self.password = kwargs.get('password', None) self.registry_server = kwargs.get('registry_server', None) - self.user_name = kwargs['user_name'] - self.password = kwargs['password'] + self.identity_reference = kwargs.get('identity_reference', None) class DataDisk(msrest.serialization.Model): @@ -1622,8 +1618,8 @@ class DataDisk(msrest.serialization.Model): readWrite - The caching mode for the disk is read and write. The default value for caching is none. For information about the caching options see: - https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives- - disks-and-images/. Possible values include: "None", "ReadOnly", "ReadWrite". + https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. + Possible values include: "None", "ReadOnly", "ReadWrite". :type caching: str or ~azure.mgmt.batch.models.CachingType :param disk_size_gb: Required. The initial disk size in GB when creating new data disk. :type disk_size_gb: int @@ -1725,6 +1721,32 @@ def __init__( self.virtual_machine_configuration = kwargs.get('virtual_machine_configuration', None) +class DiffDiskSettings(msrest.serialization.Model): + """Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine. + + :param placement: This property can be used by user in the request to choose which location the + operating system should be in. e.g., cache disk space for Ephemeral OS disk provisioning. For + more information on Ephemeral OS disk size requirements, please refer to Ephemeral OS disk size + requirements for Windows VMs at + https://docs.microsoft.com/en-us/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements + and Linux VMs at + https://docs.microsoft.com/en-us/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements. + The only acceptable values to pass in are None and "CacheDisk". The default value is None. + :type placement: str + """ + + _attribute_map = { + 'placement': {'key': 'placement', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(DiffDiskSettings, self).__init__(**kwargs) + self.placement = kwargs.get('placement', None) + + class DiskEncryptionConfiguration(msrest.serialization.Model): """The disk encryption configuration applied on compute nodes in the pool. Disk encryption configuration is not supported on Linux pool created with Virtual Machine Image or Shared Image Gallery Image. @@ -1769,6 +1791,68 @@ def __init__( self.key_vault_properties = kwargs.get('key_vault_properties', None) +class EndpointDependency(msrest.serialization.Model): + """A domain name and connection details used to access a dependency. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar domain_name: The domain name of the dependency. Domain names may be fully qualified or + may contain a * wildcard. + :vartype domain_name: str + :ivar description: Human-readable supplemental information about the dependency and when it is + applicable. + :vartype description: str + :ivar endpoint_details: The list of connection details for this endpoint. + :vartype endpoint_details: list[~azure.mgmt.batch.models.EndpointDetail] + """ + + _validation = { + 'domain_name': {'readonly': True}, + 'description': {'readonly': True}, + 'endpoint_details': {'readonly': True}, + } + + _attribute_map = { + 'domain_name': {'key': 'domainName', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'endpoint_details': {'key': 'endpointDetails', 'type': '[EndpointDetail]'}, + } + + def __init__( + self, + **kwargs + ): + super(EndpointDependency, self).__init__(**kwargs) + self.domain_name = None + self.description = None + self.endpoint_details = None + + +class EndpointDetail(msrest.serialization.Model): + """Details about the connection between the Batch service and the endpoint. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar port: The port an endpoint is connected to. + :vartype port: int + """ + + _validation = { + 'port': {'readonly': True}, + } + + _attribute_map = { + 'port': {'key': 'port', 'type': 'int'}, + } + + def __init__( + self, + **kwargs + ): + super(EndpointDetail, self).__init__(**kwargs) + self.port = None + + class EnvironmentSetting(msrest.serialization.Model): """An environment variable to be set on a task process. @@ -1850,8 +1934,7 @@ class ImageReference(msrest.serialization.Model): :param id: This property is mutually exclusive with other properties. The Shared Image Gallery image must have replicas in the same region as the Azure Batch account. For information about the firewall settings for the Batch node agent to communicate with the Batch service see - https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and- - firewall-configuration. + https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. :type id: str """ @@ -2248,8 +2331,8 @@ class NetworkConfiguration(msrest.serialization.Model): 29876 and 29877, as well as port 22 for Linux and port 3389 for Windows. For pools created with a cloud service configuration, enable ports 10100, 20100, and 30100. Also enable outbound connections to Azure Storage on port 443. For cloudServiceConfiguration pools, only 'classic' - VNETs are supported. For more details see: https://docs.microsoft.com/en-us/azure/batch/batch- - api-basics#virtual-network-vnet-and-firewall-configuration. + VNETs are supported. For more details see: + https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. :type subnet_id: str :param endpoint_configuration: Pool endpoint configuration is only supported on pools with the virtualMachineConfiguration property. @@ -2384,16 +2467,19 @@ class Operation(msrest.serialization.Model): :param name: This is of the format {provider}/{resource}/{operation}. :type name: str + :param is_data_action: Indicates whether the operation is a data action. + :type is_data_action: bool :param display: The object that describes the operation. :type display: ~azure.mgmt.batch.models.OperationDisplay :param origin: The intended executor of the operation. :type origin: str :param properties: Any object. - :type properties: object + :type properties: any """ _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, + 'is_data_action': {'key': 'isDataAction', 'type': 'bool'}, 'display': {'key': 'display', 'type': 'OperationDisplay'}, 'origin': {'key': 'origin', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'object'}, @@ -2405,6 +2491,7 @@ def __init__( ): super(Operation, self).__init__(**kwargs) self.name = kwargs.get('name', None) + self.is_data_action = kwargs.get('is_data_action', None) self.display = kwargs.get('display', None) self.origin = kwargs.get('origin', None) self.properties = kwargs.get('properties', None) @@ -2464,6 +2551,87 @@ def __init__( self.next_link = kwargs.get('next_link', None) +class OSDisk(msrest.serialization.Model): + """Settings for the operating system disk of the virtual machine. + + :param ephemeral_os_disk_settings: Specifies the ephemeral Disk Settings for the operating + system disk used by the virtual machine. + :type ephemeral_os_disk_settings: ~azure.mgmt.batch.models.DiffDiskSettings + """ + + _attribute_map = { + 'ephemeral_os_disk_settings': {'key': 'ephemeralOSDiskSettings', 'type': 'DiffDiskSettings'}, + } + + def __init__( + self, + **kwargs + ): + super(OSDisk, self).__init__(**kwargs) + self.ephemeral_os_disk_settings = kwargs.get('ephemeral_os_disk_settings', None) + + +class OutboundEnvironmentEndpoint(msrest.serialization.Model): + """A collection of related endpoints from the same service for which the Batch service requires outbound access. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar category: The type of service that the Batch service connects to. + :vartype category: str + :ivar endpoints: The endpoints for this service to which the Batch service makes outbound + calls. + :vartype endpoints: list[~azure.mgmt.batch.models.EndpointDependency] + """ + + _validation = { + 'category': {'readonly': True}, + 'endpoints': {'readonly': True}, + } + + _attribute_map = { + 'category': {'key': 'category', 'type': 'str'}, + 'endpoints': {'key': 'endpoints', 'type': '[EndpointDependency]'}, + } + + def __init__( + self, + **kwargs + ): + super(OutboundEnvironmentEndpoint, self).__init__(**kwargs) + self.category = None + self.endpoints = None + + +class OutboundEnvironmentEndpointCollection(msrest.serialization.Model): + """Values returned by the List operation. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: The collection of outbound network dependency endpoints returned by the listing + operation. + :vartype value: list[~azure.mgmt.batch.models.OutboundEnvironmentEndpoint] + :param next_link: The continuation token. + :type next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[OutboundEnvironmentEndpoint]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(OutboundEnvironmentEndpointCollection, self).__init__(**kwargs) + self.value = None + self.next_link = kwargs.get('next_link', None) + + class Pool(ProxyResource): """Contains information about a pool. @@ -2506,9 +2674,10 @@ class Pool(ProxyResource): sizes for pools using images from the Virtual Machines Marketplace (pools created with virtualMachineConfiguration) see Sizes for Virtual Machines (Linux) (https://azure.microsoft.com/documentation/articles/virtual-machines-linux-sizes/) or Sizes for - Virtual Machines (Windows) (https://azure.microsoft.com/documentation/articles/virtual- - machines-windows-sizes/). Batch supports all Azure VM sizes except STANDARD_A0 and those with - premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series). + Virtual Machines (Windows) + (https://azure.microsoft.com/documentation/articles/virtual-machines-windows-sizes/). Batch + supports all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, + STANDARD_DS, and STANDARD_DSV2 series). :type vm_size: str :param deployment_configuration: Using CloudServiceConfiguration specifies that the nodes should be creating using Azure Cloud Services (PaaS), while VirtualMachineConfiguration uses @@ -2516,7 +2685,7 @@ class Pool(ProxyResource): :type 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 low priority compute nodes currently in the + :ivar current_low_priority_nodes: The number of low-priority compute nodes currently in the pool. :vartype current_low_priority_nodes: int :param scale_settings: Defines the desired size of the pool. This can either be 'fixedScale' @@ -2918,7 +3087,7 @@ class ResizeOperationStatus(msrest.serialization.Model): :param target_dedicated_nodes: The desired number of dedicated compute nodes in the pool. :type target_dedicated_nodes: int - :param target_low_priority_nodes: The desired number of low priority compute nodes in the pool. + :param target_low_priority_nodes: The desired number of low-priority compute nodes in the pool. :type target_low_priority_nodes: int :param 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 @@ -2964,17 +3133,17 @@ class ResourceFile(msrest.serialization.Model): :type auto_storage_container_name: str :param storage_container_url: The autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified. This URL must be readable - and listable using anonymous access; that is, the Batch service does not present any - credentials when downloading the blob. There are two ways to get such a URL for a blob in Azure - storage: include a Shared Access Signature (SAS) granting read and list permissions on the - blob, or set the ACL for the blob or its container to allow public access. + and listable from compute nodes. There are three ways to get such a URL for a container in + Azure storage: include a Shared Access Signature (SAS) granting read and list permissions on + the container, use a managed identity with read and list permissions, or set the ACL for the + container to allow public access. :type storage_container_url: str :param http_url: The autoStorageContainerName, storageContainerUrl and httpUrl properties are - mutually exclusive and one of them must be specified. If the URL is Azure Blob Storage, it must - be readable using anonymous access; that is, the Batch service does not present any credentials - when downloading the blob. There are two ways to get such a URL for a blob in Azure storage: - include a Shared Access Signature (SAS) granting read permissions on the blob, or set the ACL - for the blob or its container to allow public access. + mutually exclusive and one of them must be specified. If the URL points to Azure Blob Storage, + it must be readable from compute nodes. There are three ways to get such a URL for a blob in + Azure storage: include a Shared Access Signature (SAS) granting read permissions on the blob, + use a managed identity with read permission, or set the ACL for the blob or its container to + allow public access. :type http_url: str :param blob_prefix: The property is valid only when autoStorageContainerName or storageContainerUrl is used. This prefix can be a partial filename or a subdirectory. If a @@ -2993,6 +3162,9 @@ class ResourceFile(msrest.serialization.Model): node. If this property is not specified for a Linux node, then a default value of 0770 is applied to the file. :type file_mode: str + :param identity_reference: The reference to a user assigned identity associated with the Batch + pool which a compute node will use. + :type identity_reference: ~azure.mgmt.batch.models.ComputeNodeIdentityReference """ _attribute_map = { @@ -3002,6 +3174,7 @@ class ResourceFile(msrest.serialization.Model): 'blob_prefix': {'key': 'blobPrefix', 'type': 'str'}, 'file_path': {'key': 'filePath', 'type': 'str'}, 'file_mode': {'key': 'fileMode', 'type': 'str'}, + 'identity_reference': {'key': 'identityReference', 'type': 'ComputeNodeIdentityReference'}, } def __init__( @@ -3015,6 +3188,7 @@ def __init__( self.blob_prefix = kwargs.get('blob_prefix', None) self.file_path = kwargs.get('file_path', None) self.file_mode = kwargs.get('file_mode', None) + self.identity_reference = kwargs.get('identity_reference', None) class ScaleSettings(msrest.serialization.Model): @@ -3042,6 +3216,36 @@ def __init__( self.auto_scale = kwargs.get('auto_scale', None) +class SkuCapability(msrest.serialization.Model): + """A SKU capability, such as the number of cores. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar name: The name of the feature. + :vartype name: str + :ivar value: The value of the feature. + :vartype value: str + """ + + _validation = { + 'name': {'readonly': True}, + 'value': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(SkuCapability, self).__init__(**kwargs) + self.name = None + self.value = None + + class StartTask(msrest.serialization.Model): """In some cases the start task may be re-run even though the node was not rebooted. Due to this, start tasks should be idempotent and exit gracefully if the setup they're performing has already been done. Special care should be taken to avoid start tasks which create breakaway process or install/launch services from the start task working directory, as this will block Batch from being able to re-run the start task. @@ -3106,6 +3310,73 @@ def __init__( self.container_settings = kwargs.get('container_settings', None) +class SupportedSku(msrest.serialization.Model): + """Describes a Batch supported SKU. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar name: The name of the SKU. + :vartype name: str + :ivar family_name: The family name of the SKU. + :vartype family_name: str + :ivar capabilities: A collection of capabilities which this SKU supports. + :vartype capabilities: list[~azure.mgmt.batch.models.SkuCapability] + """ + + _validation = { + 'name': {'readonly': True}, + 'family_name': {'readonly': True}, + 'capabilities': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'family_name': {'key': 'familyName', 'type': 'str'}, + 'capabilities': {'key': 'capabilities', 'type': '[SkuCapability]'}, + } + + def __init__( + self, + **kwargs + ): + super(SupportedSku, self).__init__(**kwargs) + self.name = None + self.family_name = None + self.capabilities = None + + +class SupportedSkusResult(msrest.serialization.Model): + """The Batch List supported SKUs operation response. + + 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. + + :param value: Required. The list of SKUs available for the Batch service in the location. + :type value: list[~azure.mgmt.batch.models.SupportedSku] + :ivar next_link: The URL to use for getting the next set of results. + :vartype next_link: str + """ + + _validation = { + 'value': {'required': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[SupportedSku]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(SupportedSkusResult, self).__init__(**kwargs) + self.value = kwargs['value'] + self.next_link = None + + class TaskContainerSettings(msrest.serialization.Model): """The container settings for a task. @@ -3220,6 +3491,36 @@ def __init__( self.windows_user_configuration = kwargs.get('windows_user_configuration', None) +class UserAssignedIdentities(msrest.serialization.Model): + """The list of associated user identities. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar principal_id: The principal id of user assigned identity. + :vartype principal_id: str + :ivar client_id: The client id of user assigned identity. + :vartype client_id: str + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'client_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'client_id': {'key': 'clientId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(UserAssignedIdentities, self).__init__(**kwargs) + self.principal_id = None + self.client_id = None + + class UserIdentity(msrest.serialization.Model): """Specify either the userName or autoUser property, but not both. @@ -3287,6 +3588,8 @@ class VirtualMachineConfiguration(msrest.serialization.Model): :param extensions: If specified, the extensions mentioned in this configuration will be installed on each node. :type extensions: list[~azure.mgmt.batch.models.VMExtension] + :param os_disk: Contains configuration for ephemeral OSDisk settings. + :type os_disk: ~azure.mgmt.batch.models.OSDisk """ _validation = { @@ -3304,6 +3607,7 @@ class VirtualMachineConfiguration(msrest.serialization.Model): 'disk_encryption_configuration': {'key': 'diskEncryptionConfiguration', 'type': 'DiskEncryptionConfiguration'}, 'node_placement_configuration': {'key': 'nodePlacementConfiguration', 'type': 'NodePlacementConfiguration'}, 'extensions': {'key': 'extensions', 'type': '[VMExtension]'}, + 'os_disk': {'key': 'osDisk', 'type': 'OSDisk'}, } def __init__( @@ -3320,6 +3624,7 @@ def __init__( self.disk_encryption_configuration = kwargs.get('disk_encryption_configuration', None) self.node_placement_configuration = kwargs.get('node_placement_configuration', None) self.extensions = kwargs.get('extensions', None) + self.os_disk = kwargs.get('os_disk', None) class VirtualMachineFamilyCoreQuota(msrest.serialization.Model): @@ -3370,10 +3675,10 @@ class VMExtension(msrest.serialization.Model): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Any object. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :param provision_after_extensions: Collection of extension names after which this extension needs to be provisioned. :type provision_after_extensions: list[str] 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 584f7cbd85bb..d9aa5d0369e2 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 @@ -7,11 +7,11 @@ # -------------------------------------------------------------------------- import datetime -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union import msrest.serialization -from ._batch_management_enums import * +from ._batch_management_client_enums import * class ActivateApplicationPackageParameters(msrest.serialization.Model): @@ -352,6 +352,13 @@ class AutoStorageBaseProperties(msrest.serialization.Model): :param storage_account_id: Required. The resource ID of the storage account to be used for auto-storage account. :type storage_account_id: str + :param authentication_mode: The authentication mode which the Batch service will use to manage + the auto-storage account. Possible values include: "StorageKeys", + "BatchAccountManagedIdentity". Default value: "StorageKeys". + :type authentication_mode: str or ~azure.mgmt.batch.models.AutoStorageAuthenticationMode + :param node_identity_reference: The identity referenced here must be assigned to pools which + have compute nodes that need access to auto-storage. + :type node_identity_reference: ~azure.mgmt.batch.models.ComputeNodeIdentityReference """ _validation = { @@ -360,16 +367,22 @@ class AutoStorageBaseProperties(msrest.serialization.Model): _attribute_map = { 'storage_account_id': {'key': 'storageAccountId', 'type': 'str'}, + 'authentication_mode': {'key': 'authenticationMode', 'type': 'str'}, + 'node_identity_reference': {'key': 'nodeIdentityReference', 'type': 'ComputeNodeIdentityReference'}, } def __init__( self, *, storage_account_id: str, + authentication_mode: Optional[Union[str, "AutoStorageAuthenticationMode"]] = "StorageKeys", + node_identity_reference: Optional["ComputeNodeIdentityReference"] = None, **kwargs ): super(AutoStorageBaseProperties, self).__init__(**kwargs) self.storage_account_id = storage_account_id + self.authentication_mode = authentication_mode + self.node_identity_reference = node_identity_reference class AutoStorageProperties(AutoStorageBaseProperties): @@ -380,6 +393,13 @@ class AutoStorageProperties(AutoStorageBaseProperties): :param storage_account_id: Required. The resource ID of the storage account to be used for auto-storage account. :type storage_account_id: str + :param authentication_mode: The authentication mode which the Batch service will use to manage + the auto-storage account. Possible values include: "StorageKeys", + "BatchAccountManagedIdentity". Default value: "StorageKeys". + :type authentication_mode: str or ~azure.mgmt.batch.models.AutoStorageAuthenticationMode + :param node_identity_reference: The identity referenced here must be assigned to pools which + have compute nodes that need access to auto-storage. + :type node_identity_reference: ~azure.mgmt.batch.models.ComputeNodeIdentityReference :param last_key_sync: Required. The UTC time at which storage keys were last synchronized with the Batch account. :type last_key_sync: ~datetime.datetime @@ -392,6 +412,8 @@ class AutoStorageProperties(AutoStorageBaseProperties): _attribute_map = { 'storage_account_id': {'key': 'storageAccountId', 'type': 'str'}, + 'authentication_mode': {'key': 'authenticationMode', 'type': 'str'}, + 'node_identity_reference': {'key': 'nodeIdentityReference', 'type': 'ComputeNodeIdentityReference'}, 'last_key_sync': {'key': 'lastKeySync', 'type': 'iso-8601'}, } @@ -400,9 +422,11 @@ def __init__( *, storage_account_id: str, last_key_sync: datetime.datetime, + authentication_mode: Optional[Union[str, "AutoStorageAuthenticationMode"]] = "StorageKeys", + node_identity_reference: Optional["ComputeNodeIdentityReference"] = None, **kwargs ): - super(AutoStorageProperties, self).__init__(storage_account_id=storage_account_id, **kwargs) + super(AutoStorageProperties, self).__init__(storage_account_id=storage_account_id, authentication_mode=authentication_mode, node_identity_reference=node_identity_reference, **kwargs) self.last_key_sync = last_key_sync @@ -446,15 +470,20 @@ class AzureBlobFileSystemConfiguration(msrest.serialization.Model): :type account_name: str :param container_name: Required. The Azure Blob Storage Container name. :type container_name: str - :param account_key: This property is mutually exclusive with sasKey and one must be specified. + :param account_key: This property is mutually exclusive with both sasKey and identity; exactly + one must be specified. :type account_key: str - :param sas_key: This property is mutually exclusive with accountKey and one must be specified. + :param sas_key: This property is mutually exclusive with both accountKey and identity; exactly + one must be specified. :type sas_key: str :param blobfuse_options: These are 'net use' options in Windows and 'mount' options in Linux. :type blobfuse_options: str :param relative_mount_path: Required. All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable. :type relative_mount_path: str + :param identity_reference: This property is mutually exclusive with both accountKey and sasKey; + exactly one must be specified. + :type identity_reference: ~azure.mgmt.batch.models.ComputeNodeIdentityReference """ _validation = { @@ -470,6 +499,7 @@ class AzureBlobFileSystemConfiguration(msrest.serialization.Model): 'sas_key': {'key': 'sasKey', 'type': 'str'}, 'blobfuse_options': {'key': 'blobfuseOptions', 'type': 'str'}, 'relative_mount_path': {'key': 'relativeMountPath', 'type': 'str'}, + 'identity_reference': {'key': 'identityReference', 'type': 'ComputeNodeIdentityReference'}, } def __init__( @@ -481,6 +511,7 @@ def __init__( account_key: Optional[str] = None, sas_key: Optional[str] = None, blobfuse_options: Optional[str] = None, + identity_reference: Optional["ComputeNodeIdentityReference"] = None, **kwargs ): super(AzureBlobFileSystemConfiguration, self).__init__(**kwargs) @@ -490,6 +521,7 @@ def __init__( self.sas_key = sas_key self.blobfuse_options = blobfuse_options self.relative_mount_path = relative_mount_path + self.identity_reference = identity_reference class AzureFileShareConfiguration(msrest.serialization.Model): @@ -653,6 +685,10 @@ class BatchAccount(Resource): :ivar active_job_and_job_schedule_quota: The active job and job schedule quota for the Batch account. :vartype active_job_and_job_schedule_quota: int + :ivar allowed_authentication_modes: List of allowed authentication modes for the Batch account + 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] """ _validation = { @@ -675,6 +711,7 @@ class BatchAccount(Resource): 'dedicated_core_quota_per_vm_family_enforced': {'readonly': True}, 'pool_quota': {'readonly': True}, 'active_job_and_job_schedule_quota': {'readonly': True}, + 'allowed_authentication_modes': {'readonly': True}, } _attribute_map = { @@ -698,6 +735,7 @@ class BatchAccount(Resource): 'dedicated_core_quota_per_vm_family_enforced': {'key': 'properties.dedicatedCoreQuotaPerVMFamilyEnforced', 'type': 'bool'}, 'pool_quota': {'key': 'properties.poolQuota', 'type': 'int'}, 'active_job_and_job_schedule_quota': {'key': 'properties.activeJobAndJobScheduleQuota', 'type': 'int'}, + 'allowed_authentication_modes': {'key': 'properties.allowedAuthenticationModes', 'type': '[str]'}, } def __init__( @@ -722,6 +760,7 @@ def __init__( self.dedicated_core_quota_per_vm_family_enforced = None self.pool_quota = None self.active_job_and_job_schedule_quota = None + self.allowed_authentication_modes = None class BatchAccountCreateParameters(msrest.serialization.Model): @@ -753,6 +792,10 @@ class BatchAccountCreateParameters(msrest.serialization.Model): default, accounts are encrypted using a Microsoft managed key. For additional control, a customer-managed key can be used instead. :type encryption: ~azure.mgmt.batch.models.EncryptionProperties + :param allowed_authentication_modes: List of allowed authentication modes for the Batch account + that can be used to authenticate with the data plane. This does not affect authentication with + the control plane. + :type allowed_authentication_modes: list[str or ~azure.mgmt.batch.models.AuthenticationMode] """ _validation = { @@ -768,6 +811,7 @@ class BatchAccountCreateParameters(msrest.serialization.Model): 'key_vault_reference': {'key': 'properties.keyVaultReference', 'type': 'KeyVaultReference'}, 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, 'encryption': {'key': 'properties.encryption', 'type': 'EncryptionProperties'}, + 'allowed_authentication_modes': {'key': 'properties.allowedAuthenticationModes', 'type': '[str]'}, } def __init__( @@ -781,6 +825,7 @@ def __init__( key_vault_reference: Optional["KeyVaultReference"] = None, public_network_access: Optional[Union[str, "PublicNetworkAccessType"]] = "Enabled", encryption: Optional["EncryptionProperties"] = None, + allowed_authentication_modes: Optional[List[Union[str, "AuthenticationMode"]]] = None, **kwargs ): super(BatchAccountCreateParameters, self).__init__(**kwargs) @@ -792,10 +837,11 @@ def __init__( self.key_vault_reference = key_vault_reference self.public_network_access = public_network_access self.encryption = encryption + self.allowed_authentication_modes = allowed_authentication_modes class BatchAccountIdentity(msrest.serialization.Model): - """The identity of the Batch account, if configured. This is only used when the user specifies 'Microsoft.KeyVault' as their Batch account encryption configuration. + """The identity of the Batch account, if configured. This is used when the user specifies 'Microsoft.KeyVault' as their Batch account encryption configuration or when ``ManagedIdentity`` is selected as the auto-storage authentication mode. Variables are only populated by the server, and will be ignored when sending a request. @@ -811,10 +857,7 @@ class BatchAccountIdentity(msrest.serialization.Model): include: "SystemAssigned", "UserAssigned", "None". :type type: str or ~azure.mgmt.batch.models.ResourceIdentityType :param user_assigned_identities: The list of user identities associated with the Batch account. - The user identity dictionary key references will be ARM resource ids in the form: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - :type user_assigned_identities: dict[str, - ~azure.mgmt.batch.models.Components19E4Rl9SchemasBatchaccountidentityPropertiesUserassignedidentitiesAdditionalproperties] + :type user_assigned_identities: dict[str, ~azure.mgmt.batch.models.UserAssignedIdentities] """ _validation = { @@ -827,14 +870,14 @@ class BatchAccountIdentity(msrest.serialization.Model): 'principal_id': {'key': 'principalId', 'type': 'str'}, 'tenant_id': {'key': 'tenantId', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, - 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{Components19E4Rl9SchemasBatchaccountidentityPropertiesUserassignedidentitiesAdditionalproperties}'}, + 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{UserAssignedIdentities}'}, } def __init__( self, *, type: Union[str, "ResourceIdentityType"], - user_assigned_identities: Optional[Dict[str, "Components19E4Rl9SchemasBatchaccountidentityPropertiesUserassignedidentitiesAdditionalproperties"]] = None, + user_assigned_identities: Optional[Dict[str, "UserAssignedIdentities"]] = None, **kwargs ): super(BatchAccountIdentity, self).__init__(**kwargs) @@ -946,6 +989,10 @@ class BatchAccountUpdateParameters(msrest.serialization.Model): default, accounts are encrypted using a Microsoft managed key. For additional control, a customer-managed key can be used instead. :type encryption: ~azure.mgmt.batch.models.EncryptionProperties + :param allowed_authentication_modes: List of allowed authentication modes for the Batch account + that can be used to authenticate with the data plane. This does not affect authentication with + the control plane. + :type allowed_authentication_modes: list[str or ~azure.mgmt.batch.models.AuthenticationMode] """ _attribute_map = { @@ -953,6 +1000,7 @@ class BatchAccountUpdateParameters(msrest.serialization.Model): 'identity': {'key': 'identity', 'type': 'BatchAccountIdentity'}, 'auto_storage': {'key': 'properties.autoStorage', 'type': 'AutoStorageBaseProperties'}, 'encryption': {'key': 'properties.encryption', 'type': 'EncryptionProperties'}, + 'allowed_authentication_modes': {'key': 'properties.allowedAuthenticationModes', 'type': '[str]'}, } def __init__( @@ -962,6 +1010,7 @@ def __init__( identity: Optional["BatchAccountIdentity"] = None, auto_storage: Optional["AutoStorageBaseProperties"] = None, encryption: Optional["EncryptionProperties"] = None, + allowed_authentication_modes: Optional[List[Union[str, "AuthenticationMode"]]] = None, **kwargs ): super(BatchAccountUpdateParameters, self).__init__(**kwargs) @@ -969,6 +1018,7 @@ def __init__( self.identity = identity self.auto_storage = auto_storage self.encryption = encryption + self.allowed_authentication_modes = allowed_authentication_modes class BatchLocationQuota(msrest.serialization.Model): @@ -1006,10 +1056,7 @@ class BatchPoolIdentity(msrest.serialization.Model): "UserAssigned", "None". :type type: str or ~azure.mgmt.batch.models.PoolIdentityType :param user_assigned_identities: The list of user identities associated with the Batch pool. - The user identity dictionary key references will be ARM resource ids in the form: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - :type user_assigned_identities: dict[str, - ~azure.mgmt.batch.models.Components81XseeSchemasBatchpoolidentityPropertiesUserassignedidentitiesAdditionalproperties] + :type user_assigned_identities: dict[str, ~azure.mgmt.batch.models.UserAssignedIdentities] """ _validation = { @@ -1018,14 +1065,14 @@ class BatchPoolIdentity(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{Components81XseeSchemasBatchpoolidentityPropertiesUserassignedidentitiesAdditionalproperties}'}, + 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{UserAssignedIdentities}'}, } def __init__( self, *, type: Union[str, "PoolIdentityType"], - user_assigned_identities: Optional[Dict[str, "Components81XseeSchemasBatchpoolidentityPropertiesUserassignedidentitiesAdditionalproperties"]] = None, + user_assigned_identities: Optional[Dict[str, "UserAssignedIdentities"]] = None, **kwargs ): super(BatchPoolIdentity, self).__init__(**kwargs) @@ -1123,7 +1170,7 @@ def __init__( class CertificateBaseProperties(msrest.serialization.Model): - """CertificateBaseProperties. + """Base certificate properties. :param thumbprint_algorithm: This must match the first portion of the certificate name. Currently required to be 'SHA1'. @@ -1399,7 +1446,7 @@ class CheckNameAvailabilityParameters(msrest.serialization.Model): :param name: Required. The name to check for availability. :type name: str - :ivar type: Required. The resource type. Default value: "Microsoft.Batch/batchAccounts". + :ivar type: The resource type. Has constant value: "Microsoft.Batch/batchAccounts". :vartype type: str """ @@ -1563,8 +1610,7 @@ class CloudServiceConfiguration(msrest.serialization.Model): 2008 R2 SP1. 3 - OS Family 3, equivalent to Windows Server 2012. 4 - OS Family 4, equivalent to Windows Server 2012 R2. 5 - OS Family 5, equivalent to Windows Server 2016. 6 - OS Family 6, equivalent to Windows Server 2019. For more information, see Azure Guest OS Releases - (https://azure.microsoft.com/documentation/articles/cloud-services-guestos-update- - matrix/#releases). + (https://azure.microsoft.com/documentation/articles/cloud-services-guestos-update-matrix/#releases). :type os_family: str :param os_version: The default value is * which specifies the latest operating system version for the specified OS family. @@ -1592,64 +1638,25 @@ def __init__( self.os_version = os_version -class Components19E4Rl9SchemasBatchaccountidentityPropertiesUserassignedidentitiesAdditionalproperties(msrest.serialization.Model): - """Components19E4Rl9SchemasBatchaccountidentityPropertiesUserassignedidentitiesAdditionalproperties. +class ComputeNodeIdentityReference(msrest.serialization.Model): + """The reference to a user assigned identity associated with the Batch pool which a compute node will use. - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar principal_id: The principal id of user assigned identity. - :vartype principal_id: str - :ivar client_id: The client id of user assigned identity. - :vartype client_id: str - """ - - _validation = { - 'principal_id': {'readonly': True}, - 'client_id': {'readonly': True}, - } - - _attribute_map = { - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'client_id': {'key': 'clientId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(Components19E4Rl9SchemasBatchaccountidentityPropertiesUserassignedidentitiesAdditionalproperties, self).__init__(**kwargs) - self.principal_id = None - self.client_id = None - - -class Components81XseeSchemasBatchpoolidentityPropertiesUserassignedidentitiesAdditionalproperties(msrest.serialization.Model): - """Components81XseeSchemasBatchpoolidentityPropertiesUserassignedidentitiesAdditionalproperties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar principal_id: The principal id of user assigned identity. - :vartype principal_id: str - :ivar client_id: The client id of user assigned identity. - :vartype client_id: str + :param resource_id: The ARM resource id of the user assigned identity. + :type resource_id: str """ - _validation = { - 'principal_id': {'readonly': True}, - 'client_id': {'readonly': True}, - } - _attribute_map = { - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'client_id': {'key': 'clientId', 'type': 'str'}, + 'resource_id': {'key': 'resourceId', 'type': 'str'}, } def __init__( self, + *, + resource_id: Optional[str] = None, **kwargs ): - super(Components81XseeSchemasBatchpoolidentityPropertiesUserassignedidentitiesAdditionalproperties, self).__init__(**kwargs) - self.principal_id = None - self.client_id = None + super(ComputeNodeIdentityReference, self).__init__(**kwargs) + self.resource_id = resource_id class ContainerConfiguration(msrest.serialization.Model): @@ -1659,7 +1666,7 @@ class ContainerConfiguration(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :ivar type: Required. The container technology to be used. Default value: "DockerCompatible". + :ivar type: The container technology to be used. Has constant value: "DockerCompatible". :vartype type: str :param container_image_names: This is the full image reference, as would be specified to "docker pull". An image will be sourced from the default Docker registry unless the image is @@ -1697,39 +1704,38 @@ def __init__( class ContainerRegistry(msrest.serialization.Model): """A private container registry. - All required parameters must be populated in order to send to Azure. - - :param registry_server: If omitted, the default is "docker.io". - :type registry_server: str - :param user_name: Required. The user name to log into the registry server. + :param user_name: The user name to log into the registry server. :type user_name: str - :param password: Required. The password to log into the registry server. + :param password: The password to log into the registry server. :type password: str + :param registry_server: If omitted, the default is "docker.io". + :type registry_server: str + :param identity_reference: The reference to a user assigned identity associated with the Batch + pool which a compute node will use. + :type identity_reference: ~azure.mgmt.batch.models.ComputeNodeIdentityReference """ - _validation = { - 'user_name': {'required': True}, - 'password': {'required': True}, - } - _attribute_map = { - 'registry_server': {'key': 'registryServer', 'type': 'str'}, 'user_name': {'key': 'username', 'type': 'str'}, 'password': {'key': 'password', 'type': 'str'}, + 'registry_server': {'key': 'registryServer', 'type': 'str'}, + 'identity_reference': {'key': 'identityReference', 'type': 'ComputeNodeIdentityReference'}, } def __init__( self, *, - user_name: str, - password: str, + user_name: Optional[str] = None, + password: Optional[str] = None, registry_server: Optional[str] = None, + identity_reference: Optional["ComputeNodeIdentityReference"] = None, **kwargs ): super(ContainerRegistry, self).__init__(**kwargs) - self.registry_server = registry_server self.user_name = user_name self.password = password + self.registry_server = registry_server + self.identity_reference = identity_reference class DataDisk(msrest.serialization.Model): @@ -1747,8 +1753,8 @@ class DataDisk(msrest.serialization.Model): readWrite - The caching mode for the disk is read and write. The default value for caching is none. For information about the caching options see: - https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives- - disks-and-images/. Possible values include: "None", "ReadOnly", "ReadWrite". + https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. + Possible values include: "None", "ReadOnly", "ReadWrite". :type caching: str or ~azure.mgmt.batch.models.CachingType :param disk_size_gb: Required. The initial disk size in GB when creating new data disk. :type disk_size_gb: int @@ -1863,6 +1869,34 @@ def __init__( self.virtual_machine_configuration = virtual_machine_configuration +class DiffDiskSettings(msrest.serialization.Model): + """Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine. + + :param placement: This property can be used by user in the request to choose which location the + operating system should be in. e.g., cache disk space for Ephemeral OS disk provisioning. For + more information on Ephemeral OS disk size requirements, please refer to Ephemeral OS disk size + requirements for Windows VMs at + https://docs.microsoft.com/en-us/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements + and Linux VMs at + https://docs.microsoft.com/en-us/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements. + The only acceptable values to pass in are None and "CacheDisk". The default value is None. + :type placement: str + """ + + _attribute_map = { + 'placement': {'key': 'placement', 'type': 'str'}, + } + + def __init__( + self, + *, + placement: Optional[str] = None, + **kwargs + ): + super(DiffDiskSettings, self).__init__(**kwargs) + self.placement = placement + + class DiskEncryptionConfiguration(msrest.serialization.Model): """The disk encryption configuration applied on compute nodes in the pool. Disk encryption configuration is not supported on Linux pool created with Virtual Machine Image or Shared Image Gallery Image. @@ -1912,6 +1946,68 @@ def __init__( self.key_vault_properties = key_vault_properties +class EndpointDependency(msrest.serialization.Model): + """A domain name and connection details used to access a dependency. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar domain_name: The domain name of the dependency. Domain names may be fully qualified or + may contain a * wildcard. + :vartype domain_name: str + :ivar description: Human-readable supplemental information about the dependency and when it is + applicable. + :vartype description: str + :ivar endpoint_details: The list of connection details for this endpoint. + :vartype endpoint_details: list[~azure.mgmt.batch.models.EndpointDetail] + """ + + _validation = { + 'domain_name': {'readonly': True}, + 'description': {'readonly': True}, + 'endpoint_details': {'readonly': True}, + } + + _attribute_map = { + 'domain_name': {'key': 'domainName', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'endpoint_details': {'key': 'endpointDetails', 'type': '[EndpointDetail]'}, + } + + def __init__( + self, + **kwargs + ): + super(EndpointDependency, self).__init__(**kwargs) + self.domain_name = None + self.description = None + self.endpoint_details = None + + +class EndpointDetail(msrest.serialization.Model): + """Details about the connection between the Batch service and the endpoint. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar port: The port an endpoint is connected to. + :vartype port: int + """ + + _validation = { + 'port': {'readonly': True}, + } + + _attribute_map = { + 'port': {'key': 'port', 'type': 'int'}, + } + + def __init__( + self, + **kwargs + ): + super(EndpointDetail, self).__init__(**kwargs) + self.port = None + + class EnvironmentSetting(msrest.serialization.Model): """An environment variable to be set on a task process. @@ -2001,8 +2097,7 @@ class ImageReference(msrest.serialization.Model): :param id: This property is mutually exclusive with other properties. The Shared Image Gallery image must have replicas in the same region as the Azure Batch account. For information about the firewall settings for the Batch node agent to communicate with the Batch service see - https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and- - firewall-configuration. + https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. :type id: str """ @@ -2447,8 +2542,8 @@ class NetworkConfiguration(msrest.serialization.Model): 29876 and 29877, as well as port 22 for Linux and port 3389 for Windows. For pools created with a cloud service configuration, enable ports 10100, 20100, and 30100. Also enable outbound connections to Azure Storage on port 443. For cloudServiceConfiguration pools, only 'classic' - VNETs are supported. For more details see: https://docs.microsoft.com/en-us/azure/batch/batch- - api-basics#virtual-network-vnet-and-firewall-configuration. + VNETs are supported. For more details see: + https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. :type subnet_id: str :param endpoint_configuration: Pool endpoint configuration is only supported on pools with the virtualMachineConfiguration property. @@ -2598,16 +2693,19 @@ class Operation(msrest.serialization.Model): :param name: This is of the format {provider}/{resource}/{operation}. :type name: str + :param is_data_action: Indicates whether the operation is a data action. + :type is_data_action: bool :param display: The object that describes the operation. :type display: ~azure.mgmt.batch.models.OperationDisplay :param origin: The intended executor of the operation. :type origin: str :param properties: Any object. - :type properties: object + :type properties: any """ _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, + 'is_data_action': {'key': 'isDataAction', 'type': 'bool'}, 'display': {'key': 'display', 'type': 'OperationDisplay'}, 'origin': {'key': 'origin', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'object'}, @@ -2617,13 +2715,15 @@ def __init__( self, *, name: Optional[str] = None, + is_data_action: Optional[bool] = None, display: Optional["OperationDisplay"] = None, origin: Optional[str] = None, - properties: Optional[object] = None, + properties: Optional[Any] = None, **kwargs ): super(Operation, self).__init__(**kwargs) self.name = name + self.is_data_action = is_data_action self.display = display self.origin = origin self.properties = properties @@ -2691,6 +2791,91 @@ def __init__( self.next_link = next_link +class OSDisk(msrest.serialization.Model): + """Settings for the operating system disk of the virtual machine. + + :param ephemeral_os_disk_settings: Specifies the ephemeral Disk Settings for the operating + system disk used by the virtual machine. + :type ephemeral_os_disk_settings: ~azure.mgmt.batch.models.DiffDiskSettings + """ + + _attribute_map = { + 'ephemeral_os_disk_settings': {'key': 'ephemeralOSDiskSettings', 'type': 'DiffDiskSettings'}, + } + + def __init__( + self, + *, + ephemeral_os_disk_settings: Optional["DiffDiskSettings"] = None, + **kwargs + ): + super(OSDisk, self).__init__(**kwargs) + self.ephemeral_os_disk_settings = ephemeral_os_disk_settings + + +class OutboundEnvironmentEndpoint(msrest.serialization.Model): + """A collection of related endpoints from the same service for which the Batch service requires outbound access. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar category: The type of service that the Batch service connects to. + :vartype category: str + :ivar endpoints: The endpoints for this service to which the Batch service makes outbound + calls. + :vartype endpoints: list[~azure.mgmt.batch.models.EndpointDependency] + """ + + _validation = { + 'category': {'readonly': True}, + 'endpoints': {'readonly': True}, + } + + _attribute_map = { + 'category': {'key': 'category', 'type': 'str'}, + 'endpoints': {'key': 'endpoints', 'type': '[EndpointDependency]'}, + } + + def __init__( + self, + **kwargs + ): + super(OutboundEnvironmentEndpoint, self).__init__(**kwargs) + self.category = None + self.endpoints = None + + +class OutboundEnvironmentEndpointCollection(msrest.serialization.Model): + """Values returned by the List operation. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: The collection of outbound network dependency endpoints returned by the listing + operation. + :vartype value: list[~azure.mgmt.batch.models.OutboundEnvironmentEndpoint] + :param next_link: The continuation token. + :type next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[OutboundEnvironmentEndpoint]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + next_link: Optional[str] = None, + **kwargs + ): + super(OutboundEnvironmentEndpointCollection, self).__init__(**kwargs) + self.value = None + self.next_link = next_link + + class Pool(ProxyResource): """Contains information about a pool. @@ -2733,9 +2918,10 @@ class Pool(ProxyResource): sizes for pools using images from the Virtual Machines Marketplace (pools created with virtualMachineConfiguration) see Sizes for Virtual Machines (Linux) (https://azure.microsoft.com/documentation/articles/virtual-machines-linux-sizes/) or Sizes for - Virtual Machines (Windows) (https://azure.microsoft.com/documentation/articles/virtual- - machines-windows-sizes/). Batch supports all Azure VM sizes except STANDARD_A0 and those with - premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series). + Virtual Machines (Windows) + (https://azure.microsoft.com/documentation/articles/virtual-machines-windows-sizes/). Batch + supports all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, + STANDARD_DS, and STANDARD_DSV2 series). :type vm_size: str :param deployment_configuration: Using CloudServiceConfiguration specifies that the nodes should be creating using Azure Cloud Services (PaaS), while VirtualMachineConfiguration uses @@ -2743,7 +2929,7 @@ class Pool(ProxyResource): :type 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 low priority compute nodes currently in the + :ivar current_low_priority_nodes: The number of low-priority compute nodes currently in the pool. :vartype current_low_priority_nodes: int :param scale_settings: Defines the desired size of the pool. This can either be 'fixedScale' @@ -3177,7 +3363,7 @@ class ResizeOperationStatus(msrest.serialization.Model): :param target_dedicated_nodes: The desired number of dedicated compute nodes in the pool. :type target_dedicated_nodes: int - :param target_low_priority_nodes: The desired number of low priority compute nodes in the pool. + :param target_low_priority_nodes: The desired number of low-priority compute nodes in the pool. :type target_low_priority_nodes: int :param 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 @@ -3230,17 +3416,17 @@ class ResourceFile(msrest.serialization.Model): :type auto_storage_container_name: str :param storage_container_url: The autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified. This URL must be readable - and listable using anonymous access; that is, the Batch service does not present any - credentials when downloading the blob. There are two ways to get such a URL for a blob in Azure - storage: include a Shared Access Signature (SAS) granting read and list permissions on the - blob, or set the ACL for the blob or its container to allow public access. + and listable from compute nodes. There are three ways to get such a URL for a container in + Azure storage: include a Shared Access Signature (SAS) granting read and list permissions on + the container, use a managed identity with read and list permissions, or set the ACL for the + container to allow public access. :type storage_container_url: str :param http_url: The autoStorageContainerName, storageContainerUrl and httpUrl properties are - mutually exclusive and one of them must be specified. If the URL is Azure Blob Storage, it must - be readable using anonymous access; that is, the Batch service does not present any credentials - when downloading the blob. There are two ways to get such a URL for a blob in Azure storage: - include a Shared Access Signature (SAS) granting read permissions on the blob, or set the ACL - for the blob or its container to allow public access. + mutually exclusive and one of them must be specified. If the URL points to Azure Blob Storage, + it must be readable from compute nodes. There are three ways to get such a URL for a blob in + Azure storage: include a Shared Access Signature (SAS) granting read permissions on the blob, + use a managed identity with read permission, or set the ACL for the blob or its container to + allow public access. :type http_url: str :param blob_prefix: The property is valid only when autoStorageContainerName or storageContainerUrl is used. This prefix can be a partial filename or a subdirectory. If a @@ -3259,6 +3445,9 @@ class ResourceFile(msrest.serialization.Model): node. If this property is not specified for a Linux node, then a default value of 0770 is applied to the file. :type file_mode: str + :param identity_reference: The reference to a user assigned identity associated with the Batch + pool which a compute node will use. + :type identity_reference: ~azure.mgmt.batch.models.ComputeNodeIdentityReference """ _attribute_map = { @@ -3268,6 +3457,7 @@ class ResourceFile(msrest.serialization.Model): 'blob_prefix': {'key': 'blobPrefix', 'type': 'str'}, 'file_path': {'key': 'filePath', 'type': 'str'}, 'file_mode': {'key': 'fileMode', 'type': 'str'}, + 'identity_reference': {'key': 'identityReference', 'type': 'ComputeNodeIdentityReference'}, } def __init__( @@ -3279,6 +3469,7 @@ def __init__( blob_prefix: Optional[str] = None, file_path: Optional[str] = None, file_mode: Optional[str] = None, + identity_reference: Optional["ComputeNodeIdentityReference"] = None, **kwargs ): super(ResourceFile, self).__init__(**kwargs) @@ -3288,6 +3479,7 @@ def __init__( self.blob_prefix = blob_prefix self.file_path = file_path self.file_mode = file_mode + self.identity_reference = identity_reference class ScaleSettings(msrest.serialization.Model): @@ -3318,6 +3510,36 @@ def __init__( self.auto_scale = auto_scale +class SkuCapability(msrest.serialization.Model): + """A SKU capability, such as the number of cores. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar name: The name of the feature. + :vartype name: str + :ivar value: The value of the feature. + :vartype value: str + """ + + _validation = { + 'name': {'readonly': True}, + 'value': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(SkuCapability, self).__init__(**kwargs) + self.name = None + self.value = None + + class StartTask(msrest.serialization.Model): """In some cases the start task may be re-run even though the node was not rebooted. Due to this, start tasks should be idempotent and exit gracefully if the setup they're performing has already been done. Special care should be taken to avoid start tasks which create breakaway process or install/launch services from the start task working directory, as this will block Batch from being able to re-run the start task. @@ -3390,6 +3612,75 @@ def __init__( self.container_settings = container_settings +class SupportedSku(msrest.serialization.Model): + """Describes a Batch supported SKU. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar name: The name of the SKU. + :vartype name: str + :ivar family_name: The family name of the SKU. + :vartype family_name: str + :ivar capabilities: A collection of capabilities which this SKU supports. + :vartype capabilities: list[~azure.mgmt.batch.models.SkuCapability] + """ + + _validation = { + 'name': {'readonly': True}, + 'family_name': {'readonly': True}, + 'capabilities': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'family_name': {'key': 'familyName', 'type': 'str'}, + 'capabilities': {'key': 'capabilities', 'type': '[SkuCapability]'}, + } + + def __init__( + self, + **kwargs + ): + super(SupportedSku, self).__init__(**kwargs) + self.name = None + self.family_name = None + self.capabilities = None + + +class SupportedSkusResult(msrest.serialization.Model): + """The Batch List supported SKUs operation response. + + 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. + + :param value: Required. The list of SKUs available for the Batch service in the location. + :type value: list[~azure.mgmt.batch.models.SupportedSku] + :ivar next_link: The URL to use for getting the next set of results. + :vartype next_link: str + """ + + _validation = { + 'value': {'required': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[SupportedSku]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: List["SupportedSku"], + **kwargs + ): + super(SupportedSkusResult, self).__init__(**kwargs) + self.value = value + self.next_link = None + + class TaskContainerSettings(msrest.serialization.Model): """The container settings for a task. @@ -3517,6 +3808,36 @@ def __init__( self.windows_user_configuration = windows_user_configuration +class UserAssignedIdentities(msrest.serialization.Model): + """The list of associated user identities. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar principal_id: The principal id of user assigned identity. + :vartype principal_id: str + :ivar client_id: The client id of user assigned identity. + :vartype client_id: str + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'client_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'client_id': {'key': 'clientId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(UserAssignedIdentities, self).__init__(**kwargs) + self.principal_id = None + self.client_id = None + + class UserIdentity(msrest.serialization.Model): """Specify either the userName or autoUser property, but not both. @@ -3587,6 +3908,8 @@ class VirtualMachineConfiguration(msrest.serialization.Model): :param extensions: If specified, the extensions mentioned in this configuration will be installed on each node. :type extensions: list[~azure.mgmt.batch.models.VMExtension] + :param os_disk: Contains configuration for ephemeral OSDisk settings. + :type os_disk: ~azure.mgmt.batch.models.OSDisk """ _validation = { @@ -3604,6 +3927,7 @@ class VirtualMachineConfiguration(msrest.serialization.Model): 'disk_encryption_configuration': {'key': 'diskEncryptionConfiguration', 'type': 'DiskEncryptionConfiguration'}, 'node_placement_configuration': {'key': 'nodePlacementConfiguration', 'type': 'NodePlacementConfiguration'}, 'extensions': {'key': 'extensions', 'type': '[VMExtension]'}, + 'os_disk': {'key': 'osDisk', 'type': 'OSDisk'}, } def __init__( @@ -3618,6 +3942,7 @@ def __init__( disk_encryption_configuration: Optional["DiskEncryptionConfiguration"] = None, node_placement_configuration: Optional["NodePlacementConfiguration"] = None, extensions: Optional[List["VMExtension"]] = None, + os_disk: Optional["OSDisk"] = None, **kwargs ): super(VirtualMachineConfiguration, self).__init__(**kwargs) @@ -3630,6 +3955,7 @@ def __init__( self.disk_encryption_configuration = disk_encryption_configuration self.node_placement_configuration = node_placement_configuration self.extensions = extensions + self.os_disk = os_disk class VirtualMachineFamilyCoreQuota(msrest.serialization.Model): @@ -3680,10 +4006,10 @@ class VMExtension(msrest.serialization.Model): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Any object. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :param provision_after_extensions: Collection of extension names after which this extension needs to be provisioned. :type provision_after_extensions: list[str] @@ -3714,8 +4040,8 @@ def __init__( type: str, type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, provision_after_extensions: Optional[List[str]] = None, **kwargs ): 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 d86c7d976676..b2a6ff31ee2d 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 @@ -74,7 +74,7 @@ def create( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -145,7 +145,7 @@ def delete( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -205,7 +205,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -271,7 +271,7 @@ def update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -339,7 +339,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): 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 891f83cc6154..961d0bc6c1c8 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 @@ -79,7 +79,7 @@ def activate( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -132,9 +132,10 @@ def create( **kwargs # type: Any ): # type: (...) -> "_models.ApplicationPackage" - """Creates an application package record. The record contains the SAS where the package should be - uploaded to. Once it is uploaded the ``ApplicationPackage`` needs to be activated using - ``ApplicationPackageActive`` before it can be used. + """Creates an application package record. The record contains a storageUrl where the package + should be uploaded to. Once it is uploaded the ``ApplicationPackage`` needs to be activated + using ``ApplicationPackageActive`` before it can be used. If the auto storage account was + configured to use storage keys, the URL returned will contain a SAS. :param resource_group_name: The name of the resource group that contains the Batch account. :type resource_group_name: str @@ -156,7 +157,7 @@ def create( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -231,7 +232,7 @@ def delete( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -295,7 +296,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -362,7 +363,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): 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 f75f8917b143..3ec8b43ada9f 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 @@ -60,7 +60,7 @@ def _create_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -131,8 +131,8 @@ def begin_create( :type parameters: ~azure.mgmt.batch.models.BatchAccountCreateParameters :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :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 BatchAccount or the result of cls(response) @@ -211,7 +211,7 @@ def update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -264,7 +264,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -317,8 +317,8 @@ def begin_delete( :type account_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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :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) @@ -390,7 +390,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -443,7 +443,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -513,7 +513,7 @@ def list_by_resource_group( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -572,7 +572,7 @@ def synchronize_auto_storage_keys( ): # type: (...) -> None """Synchronizes access keys for the auto-storage account configured for the specified Batch - account. + account, only if storage key authentication is being used. :param resource_group_name: The name of the resource group that contains the Batch account. :type resource_group_name: str @@ -588,7 +588,7 @@ def synchronize_auto_storage_keys( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -631,6 +631,11 @@ def regenerate_key( # type: (...) -> "_models.BatchAccountKeys" """Regenerates the specified account key for the Batch account. + This operation applies only to Batch accounts with allowedAuthenticationModes containing + 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, + clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes + instead. In this case, regenerating the keys will fail. + :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. @@ -647,7 +652,7 @@ def regenerate_key( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -697,10 +702,10 @@ def get_keys( # type: (...) -> "_models.BatchAccountKeys" """Gets the account keys for the specified Batch account. - This operation applies only to Batch accounts created with a poolAllocationMode of - 'BatchService'. If the Batch account was created with a poolAllocationMode of - 'UserSubscription', clients cannot use access to keys to authenticate, and must use Azure - Active Directory instead. In this case, getting the keys will fail. + This operation applies only to Batch accounts with allowedAuthenticationModes containing + 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, + clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes + instead. In this case, getting the keys will fail. :param resource_group_name: The name of the resource group that contains the Batch account. :type resource_group_name: str @@ -716,7 +721,7 @@ def get_keys( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -751,3 +756,83 @@ def get_keys( return deserialized get_keys.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/listKeys'} # type: ignore + + def list_outbound_network_dependencies_endpoints( + self, + resource_group_name, # type: str + account_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.OutboundEnvironmentEndpointCollection"] + """Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of + Batch service administration. If you are deploying a Pool inside of a virtual network that you + specify, you must make sure your network allows outbound access to these endpoints. Failure to + allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For + more information about creating a pool inside of a virtual network, see + https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network. + + :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 + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either OutboundEnvironmentEndpointCollection or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.batch.models.OutboundEnvironmentEndpointCollection] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.OutboundEnvironmentEndpointCollection"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_outbound_network_dependencies_endpoints.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=24, min_length=3, pattern=r'^[a-zA-Z0-9]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('OutboundEnvironmentEndpointCollection', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + return pipeline_response + + 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 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 460052244c3a..c2263bcfa00e 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 @@ -82,7 +82,7 @@ def list_by_batch_account( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -180,7 +180,7 @@ def create( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -263,7 +263,7 @@ def update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -322,7 +322,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -381,8 +381,8 @@ def begin_delete( :type certificate_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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :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) @@ -461,7 +461,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -535,7 +535,7 @@ def cancel_deletion( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL 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 f2fb344096b9..bbdf5ed2729f 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 @@ -9,6 +9,7 @@ import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import HttpRequest, HttpResponse from azure.mgmt.core.exceptions import ARMErrorFormat @@ -17,7 +18,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -64,7 +65,7 @@ def get_quotas( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -99,6 +100,168 @@ def get_quotas( return deserialized get_quotas.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/quotas'} # type: ignore + def list_supported_virtual_machine_skus( + self, + location_name, # type: str + maxresults=None, # type: Optional[int] + filter=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.SupportedSkusResult"] + """Gets the list of Batch supported Virtual Machine VM sizes available at the given location. + + :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. + :type maxresults: int + :param filter: OData filter expression. Valid properties for filtering are "familyName". + :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 + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.SupportedSkusResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_supported_virtual_machine_skus.metadata['url'] # type: ignore + path_format_arguments = { + 'locationName': self._serialize.url("location_name", location_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if maxresults is not None: + query_parameters['maxresults'] = self._serialize.query("maxresults", maxresults, 'int') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('SupportedSkusResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_supported_virtual_machine_skus.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/virtualMachineSkus'} # type: ignore + + def list_supported_cloud_service_skus( + self, + location_name, # type: str + maxresults=None, # type: Optional[int] + filter=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.SupportedSkusResult"] + """Gets the list of Batch supported Cloud Service VM sizes available at the given location. + + :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. + :type maxresults: int + :param filter: OData filter expression. Valid properties for filtering are "familyName". + :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 + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.SupportedSkusResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_supported_cloud_service_skus.metadata['url'] # type: ignore + path_format_arguments = { + 'locationName': self._serialize.url("location_name", location_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if maxresults is not None: + query_parameters['maxresults'] = self._serialize.query("maxresults", maxresults, 'int') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('SupportedSkusResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_supported_cloud_service_skus.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/cloudServiceSkus'} # type: ignore + def check_name_availability( self, location_name, # type: str @@ -122,7 +285,7 @@ def check_name_availability( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" 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 1830b8297b6c..9034cad6a332 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 @@ -62,7 +62,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): 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 ba4d46fb4394..05a3576a55c9 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 @@ -93,7 +93,7 @@ def list_by_batch_account( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -189,7 +189,7 @@ def create( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -271,7 +271,7 @@ def update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -330,7 +330,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -387,8 +387,8 @@ def begin_delete( :type pool_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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :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) @@ -465,7 +465,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -530,7 +530,7 @@ def disable_auto_scale( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -602,7 +602,7 @@ def stop_resize( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL 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 e4ceaefcda4f..67e38e0ecfcf 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 @@ -73,7 +73,7 @@ def list_by_batch_account( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -154,7 +154,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -206,7 +206,7 @@ def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -284,8 +284,8 @@ def begin_update( :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. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :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 PrivateEndpointConnection or the result of cls(response) 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 6abac30c500d..2060140f580e 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 @@ -71,7 +71,7 @@ def list_by_batch_account( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -152,7 +152,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL diff --git a/sdk/batch/azure-mgmt-batch/setup.py b/sdk/batch/azure-mgmt-batch/setup.py index 30cce8d3c9f7..429b47d3fb22 100644 --- a/sdk/batch/azure-mgmt-batch/setup.py +++ b/sdk/batch/azure-mgmt-batch/setup.py @@ -78,7 +78,7 @@ 'azure.mgmt', ]), install_requires=[ - 'msrest>=0.5.0', + 'msrest>=0.6.21', 'azure-common~=1.1', 'azure-mgmt-core>=1.2.0,<2.0.0', ], diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_account.yaml b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_account.yaml index 95a03e154e9c..af80a5165f48 100644 --- a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_account.yaml +++ b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_account.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{"location": "westcentralus", "properties": {"publicNetworkAccess": "Enabled"}}' + body: '{"location": "eastus", "properties": {"publicNetworkAccess": "Enabled"}}' headers: Accept: - application/json @@ -9,13 +9,13 @@ interactions: Connection: - keep-alive Content-Length: - - '79' + - '72' Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5?api-version=2021-06-01 response: body: string: '' @@ -25,11 +25,11 @@ interactions: content-length: - '0' date: - - Thu, 28 Jan 2021 07:48:47 GMT + - Sat, 17 Jul 2021 22:22:34 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5/operationResults/fd069452-43fd-44c5-84eb-b8ab743cf452?api-version=2021-01-01 + - https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5/operationResults/e07d5608-f5f9-4fb5-a8ed-3bef723c4ba2?api-version=2021-06-01 pragma: - no-cache server: @@ -39,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 202 message: Accepted @@ -53,27 +53,29 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5/operationResults/fd069452-43fd-44c5-84eb-b8ab743cf452?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5/operationResults/e07d5608-f5f9-4fb5-a8ed-3bef723c4ba2?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5","name":"batch3e1b0fe5","type":"Microsoft.Batch/batchAccounts","location":"westcentralus","properties":{"accountEndpoint":"batch3e1b0fe5.westcentralus.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":700,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":100},{"name":"standardDv2Family","coreQuota":100},{"name":"standardDv3Family","coreQuota":100},{"name":"standardEv3Family","coreQuota":50},{"name":"standardDSv2Family","coreQuota":100},{"name":"standardDSv3Family","coreQuota":100},{"name":"standardESv3Family","coreQuota":50},{"name":"standardFFamily","coreQuota":50},{"name":"standardFSFamily","coreQuota":50},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardNVFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardGSFamily","coreQuota":0},{"name":"standardLSFamily","coreQuota":0},{"name":"standardLSv2Family","coreQuota":0},{"name":"standardNCSv2Family","coreQuota":0},{"name":"standardNDSFamily","coreQuota":0},{"name":"standardNCSv3Family","coreQuota":0},{"name":"standardFSv2Family","coreQuota":0},{"name":"standardHBSFamily","coreQuota":0},{"name":"standardHCSFamily","coreQuota":0},{"name":"standardNVSv3Family","coreQuota":0},{"name":"standardHBrsv2Family","coreQuota":0},{"name":"standardDAv4Family","coreQuota":0},{"name":"standardDASv4Family","coreQuota":0},{"name":"standardEAv4Family","coreQuota":0},{"name":"standardEASv4Family","coreQuota":0},{"name":"standardDDv4Family","coreQuota":0},{"name":"standardDDSv4Family","coreQuota":0},{"name":"standardEDv4Family","coreQuota":0},{"name":"standardEDSv4Family","coreQuota":0},{"name":"standardMSv2Family","coreQuota":0},{"name":"standardEIv3Family","coreQuota":0},{"name":"standardNVSv4Family","coreQuota":0},{"name":"standardXEIDSv4Family","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":500,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","encryption":{"keySource":"Microsoft.Batch"}},"identity":{"type":"None"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5","name":"batch3e1b0fe5","type":"Microsoft.Batch/batchAccounts","location":"eastus","properties":{"accountEndpoint":"batch3e1b0fe5.pilotprod2.eastus.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":500,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":500},{"name":"standardDv2Family","coreQuota":250},{"name":"standardDv3Family","coreQuota":500},{"name":"standardEv3Family","coreQuota":500},{"name":"standardDSv2Family","coreQuota":250},{"name":"standardDSv3Family","coreQuota":500},{"name":"standardESv3Family","coreQuota":500},{"name":"standardFSv2Family","coreQuota":100},{"name":"standardNCFamily","coreQuota":24},{"name":"standardNVFamily","coreQuota":24},{"name":"standardDDv4Family","coreQuota":100},{"name":"standardDDSv4Family","coreQuota":100},{"name":"standardEDv4Family","coreQuota":100},{"name":"standardEDSv4Family","coreQuota":100},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardFFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardFSFamily","coreQuota":0},{"name":"standardGSFamily","coreQuota":0},{"name":"standardLSFamily","coreQuota":0},{"name":"standardLSv2Family","coreQuota":0},{"name":"standardNCSv2Family","coreQuota":0},{"name":"standardNDSFamily","coreQuota":0},{"name":"standardNCSv3Family","coreQuota":0},{"name":"standardHBSFamily","coreQuota":0},{"name":"standardHCSFamily","coreQuota":0},{"name":"standardNVSv3Family","coreQuota":0},{"name":"standardHBrsv2Family","coreQuota":0},{"name":"standardDAv4Family","coreQuota":0},{"name":"standardDASv4Family","coreQuota":0},{"name":"standardEAv4Family","coreQuota":0},{"name":"standardEASv4Family","coreQuota":0},{"name":"standardMSv2Family","coreQuota":0},{"name":"standardEIv3Family","coreQuota":0},{"name":"standardNVSv4Family","coreQuota":0},{"name":"Standard + NCASv3_T4 Family","coreQuota":0},{"name":"standardXEIDSv4Family","coreQuota":0},{"name":"Standard + NDASv4_A100 Family","coreQuota":0},{"name":"standardDCSv2Family","coreQuota":0},{"name":"standardHBv3Family","coreQuota":0},{"name":"standardNPSFamily","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":500,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","encryption":{"keySource":"Microsoft.Batch"},"allowedAuthenticationModes":["SharedKey","AAD","TaskAuthenticationToken"]},"identity":{"type":"None"}}' headers: cache-control: - no-cache content-length: - - '2678' + - '3003' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 07:49:02 GMT + - Sat, 17 Jul 2021 22:22:49 GMT etag: - - '"0x8D8C3612E985742"' + - '"0x8D94971696CB250"' expires: - '-1' last-modified: - - Thu, 28 Jan 2021 07:49:03 GMT + - Sat, 17 Jul 2021 22:22:49 GMT pragma: - no-cache server: @@ -99,27 +101,29 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5","name":"batch3e1b0fe5","type":"Microsoft.Batch/batchAccounts","location":"westcentralus","properties":{"accountEndpoint":"batch3e1b0fe5.westcentralus.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":700,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":100},{"name":"standardDv2Family","coreQuota":100},{"name":"standardDv3Family","coreQuota":100},{"name":"standardEv3Family","coreQuota":50},{"name":"standardDSv2Family","coreQuota":100},{"name":"standardDSv3Family","coreQuota":100},{"name":"standardESv3Family","coreQuota":50},{"name":"standardFFamily","coreQuota":50},{"name":"standardFSFamily","coreQuota":50},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardNVFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardGSFamily","coreQuota":0},{"name":"standardLSFamily","coreQuota":0},{"name":"standardLSv2Family","coreQuota":0},{"name":"standardNCSv2Family","coreQuota":0},{"name":"standardNDSFamily","coreQuota":0},{"name":"standardNCSv3Family","coreQuota":0},{"name":"standardFSv2Family","coreQuota":0},{"name":"standardHBSFamily","coreQuota":0},{"name":"standardHCSFamily","coreQuota":0},{"name":"standardNVSv3Family","coreQuota":0},{"name":"standardHBrsv2Family","coreQuota":0},{"name":"standardDAv4Family","coreQuota":0},{"name":"standardDASv4Family","coreQuota":0},{"name":"standardEAv4Family","coreQuota":0},{"name":"standardEASv4Family","coreQuota":0},{"name":"standardDDv4Family","coreQuota":0},{"name":"standardDDSv4Family","coreQuota":0},{"name":"standardEDv4Family","coreQuota":0},{"name":"standardEDSv4Family","coreQuota":0},{"name":"standardMSv2Family","coreQuota":0},{"name":"standardEIv3Family","coreQuota":0},{"name":"standardNVSv4Family","coreQuota":0},{"name":"standardXEIDSv4Family","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":500,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","encryption":{"keySource":"Microsoft.Batch"}},"identity":{"type":"None"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5","name":"batch3e1b0fe5","type":"Microsoft.Batch/batchAccounts","location":"eastus","properties":{"accountEndpoint":"batch3e1b0fe5.pilotprod2.eastus.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":500,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":500},{"name":"standardDv2Family","coreQuota":250},{"name":"standardDv3Family","coreQuota":500},{"name":"standardEv3Family","coreQuota":500},{"name":"standardDSv2Family","coreQuota":250},{"name":"standardDSv3Family","coreQuota":500},{"name":"standardESv3Family","coreQuota":500},{"name":"standardFSv2Family","coreQuota":100},{"name":"standardNCFamily","coreQuota":24},{"name":"standardNVFamily","coreQuota":24},{"name":"standardDDv4Family","coreQuota":100},{"name":"standardDDSv4Family","coreQuota":100},{"name":"standardEDv4Family","coreQuota":100},{"name":"standardEDSv4Family","coreQuota":100},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardFFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardFSFamily","coreQuota":0},{"name":"standardGSFamily","coreQuota":0},{"name":"standardLSFamily","coreQuota":0},{"name":"standardLSv2Family","coreQuota":0},{"name":"standardNCSv2Family","coreQuota":0},{"name":"standardNDSFamily","coreQuota":0},{"name":"standardNCSv3Family","coreQuota":0},{"name":"standardHBSFamily","coreQuota":0},{"name":"standardHCSFamily","coreQuota":0},{"name":"standardNVSv3Family","coreQuota":0},{"name":"standardHBrsv2Family","coreQuota":0},{"name":"standardDAv4Family","coreQuota":0},{"name":"standardDASv4Family","coreQuota":0},{"name":"standardEAv4Family","coreQuota":0},{"name":"standardEASv4Family","coreQuota":0},{"name":"standardMSv2Family","coreQuota":0},{"name":"standardEIv3Family","coreQuota":0},{"name":"standardNVSv4Family","coreQuota":0},{"name":"Standard + NCASv3_T4 Family","coreQuota":0},{"name":"standardXEIDSv4Family","coreQuota":0},{"name":"Standard + NDASv4_A100 Family","coreQuota":0},{"name":"standardDCSv2Family","coreQuota":0},{"name":"standardHBv3Family","coreQuota":0},{"name":"standardNPSFamily","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":500,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","encryption":{"keySource":"Microsoft.Batch"},"allowedAuthenticationModes":["SharedKey","AAD","TaskAuthenticationToken"]},"identity":{"type":"None"}}' headers: cache-control: - no-cache content-length: - - '2678' + - '3003' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 07:49:02 GMT + - Sat, 17 Jul 2021 22:22:49 GMT etag: - - '"0x8D8C3612801088F"' + - '"0x8D9497162750036"' expires: - '-1' last-modified: - - Thu, 28 Jan 2021 07:48:52 GMT + - Sat, 17 Jul 2021 22:22:38 GMT pragma: - no-cache server: @@ -145,21 +149,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts?api-version=2021-06-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5","name":"batch3e1b0fe5","type":"Microsoft.Batch/batchAccounts","location":"westcentralus","properties":{"accountEndpoint":"batch3e1b0fe5.westcentralus.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":700,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":100},{"name":"standardDv2Family","coreQuota":100},{"name":"standardDv3Family","coreQuota":100},{"name":"standardEv3Family","coreQuota":50},{"name":"standardDSv2Family","coreQuota":100},{"name":"standardDSv3Family","coreQuota":100},{"name":"standardESv3Family","coreQuota":50},{"name":"standardFFamily","coreQuota":50},{"name":"standardFSFamily","coreQuota":50},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardNVFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardGSFamily","coreQuota":0},{"name":"standardLSFamily","coreQuota":0},{"name":"standardLSv2Family","coreQuota":0},{"name":"standardNCSv2Family","coreQuota":0},{"name":"standardNDSFamily","coreQuota":0},{"name":"standardNCSv3Family","coreQuota":0},{"name":"standardFSv2Family","coreQuota":0},{"name":"standardHBSFamily","coreQuota":0},{"name":"standardHCSFamily","coreQuota":0},{"name":"standardNVSv3Family","coreQuota":0},{"name":"standardHBrsv2Family","coreQuota":0},{"name":"standardDAv4Family","coreQuota":0},{"name":"standardDASv4Family","coreQuota":0},{"name":"standardEAv4Family","coreQuota":0},{"name":"standardEASv4Family","coreQuota":0},{"name":"standardDDv4Family","coreQuota":0},{"name":"standardDDSv4Family","coreQuota":0},{"name":"standardEDv4Family","coreQuota":0},{"name":"standardEDSv4Family","coreQuota":0},{"name":"standardMSv2Family","coreQuota":0},{"name":"standardEIv3Family","coreQuota":0},{"name":"standardNVSv4Family","coreQuota":0},{"name":"standardXEIDSv4Family","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":500,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","encryption":{"keySource":"Microsoft.Batch"}},"identity":{"type":"None"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5","name":"batch3e1b0fe5","type":"Microsoft.Batch/batchAccounts","location":"eastus","properties":{"accountEndpoint":"batch3e1b0fe5.pilotprod2.eastus.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":500,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":500},{"name":"standardDv2Family","coreQuota":250},{"name":"standardDv3Family","coreQuota":500},{"name":"standardEv3Family","coreQuota":500},{"name":"standardDSv2Family","coreQuota":250},{"name":"standardDSv3Family","coreQuota":500},{"name":"standardESv3Family","coreQuota":500},{"name":"standardFSv2Family","coreQuota":100},{"name":"standardNCFamily","coreQuota":24},{"name":"standardNVFamily","coreQuota":24},{"name":"standardDDv4Family","coreQuota":100},{"name":"standardDDSv4Family","coreQuota":100},{"name":"standardEDv4Family","coreQuota":100},{"name":"standardEDSv4Family","coreQuota":100},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardFFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardFSFamily","coreQuota":0},{"name":"standardGSFamily","coreQuota":0},{"name":"standardLSFamily","coreQuota":0},{"name":"standardLSv2Family","coreQuota":0},{"name":"standardNCSv2Family","coreQuota":0},{"name":"standardNDSFamily","coreQuota":0},{"name":"standardNCSv3Family","coreQuota":0},{"name":"standardHBSFamily","coreQuota":0},{"name":"standardHCSFamily","coreQuota":0},{"name":"standardNVSv3Family","coreQuota":0},{"name":"standardHBrsv2Family","coreQuota":0},{"name":"standardDAv4Family","coreQuota":0},{"name":"standardDASv4Family","coreQuota":0},{"name":"standardEAv4Family","coreQuota":0},{"name":"standardEASv4Family","coreQuota":0},{"name":"standardMSv2Family","coreQuota":0},{"name":"standardEIv3Family","coreQuota":0},{"name":"standardNVSv4Family","coreQuota":0},{"name":"Standard + NCASv3_T4 Family","coreQuota":0},{"name":"standardXEIDSv4Family","coreQuota":0},{"name":"Standard + NDASv4_A100 Family","coreQuota":0},{"name":"standardDCSv2Family","coreQuota":0},{"name":"standardHBv3Family","coreQuota":0},{"name":"standardNPSFamily","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":500,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","encryption":{"keySource":"Microsoft.Batch"},"allowedAuthenticationModes":["SharedKey","AAD","TaskAuthenticationToken"]},"identity":{"type":"None"}}]}' headers: cache-control: - no-cache content-length: - - '2690' + - '3015' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 07:49:03 GMT + - Sat, 17 Jul 2021 22:22:49 GMT expires: - '-1' pragma: @@ -189,12 +195,12 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5/listKeys?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5/listKeys?api-version=2021-06-01 response: body: - string: '{"accountName":"batch3e1b0fe5","primary":"PY50ab7Psi4S/VhH1AGF0+pYFUVPDo651FtCN283AztKwfWYweVr8dbypuFZUaQ13wBai3rl3BqRX4uHip/SRw==","secondary":"0VZN4Pb+7muURc6QMBZm+8UD9QRySX+peazpPgQivIW6r5ePl2MLalvwEqHNJnYelsX15BxboxmwOubcfOFFmg=="}' + string: '{"accountName":"batch3e1b0fe5","primary":"3UQ9ry1mRmgftC37/IOylMEnaC713zLTXoMqp/zBQZ1ANY8eLsv1j5lkvN3PnaSevqoKjtfjKFyJ5Vsc6SGA0w==","secondary":"6dM/Myi6VRmOwbqgMjcIv4lSS7SQvlSTCmQX3RiwLvbivKU9oFi5zgdx7oNtOATEbB9rYO8oDkYVwn8PJLaTcg=="}' headers: cache-control: - no-cache @@ -203,7 +209,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 07:49:03 GMT + - Sat, 17 Jul 2021 22:22:49 GMT expires: - '-1' pragma: @@ -237,12 +243,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5/regenerateKeys?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5/regenerateKeys?api-version=2021-06-01 response: body: - string: '{"accountName":"batch3e1b0fe5","primary":"PY50ab7Psi4S/VhH1AGF0+pYFUVPDo651FtCN283AztKwfWYweVr8dbypuFZUaQ13wBai3rl3BqRX4uHip/SRw==","secondary":"ky5naRkRzgwYxzkjeX9F0PZ5jtJGFKuRwsViz+O7ovS/B3Ync8LFKHifTEPwIdS0JB7k9uEy5BoKntikv2a4Gg=="}' + string: '{"accountName":"batch3e1b0fe5","primary":"3UQ9ry1mRmgftC37/IOylMEnaC713zLTXoMqp/zBQZ1ANY8eLsv1j5lkvN3PnaSevqoKjtfjKFyJ5Vsc6SGA0w==","secondary":"Q3pqv2ncSAxxnhTR14lumWnq9GRUVvy8exfqF2q5x6SZYGpregob+HI5eehGuFusbCaHLdzdzr3ZqBKXY3Qtyw=="}' headers: cache-control: - no-cache @@ -251,7 +257,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 07:49:03 GMT + - Sat, 17 Jul 2021 22:22:50 GMT expires: - '-1' pragma: @@ -285,27 +291,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5","name":"batch3e1b0fe5","type":"Microsoft.Batch/batchAccounts","location":"westcentralus","properties":{"accountEndpoint":"batch3e1b0fe5.westcentralus.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":700,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":100},{"name":"standardDv2Family","coreQuota":100},{"name":"standardDv3Family","coreQuota":100},{"name":"standardEv3Family","coreQuota":50},{"name":"standardDSv2Family","coreQuota":100},{"name":"standardDSv3Family","coreQuota":100},{"name":"standardESv3Family","coreQuota":50},{"name":"standardFFamily","coreQuota":50},{"name":"standardFSFamily","coreQuota":50},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardNVFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardGSFamily","coreQuota":0},{"name":"standardLSFamily","coreQuota":0},{"name":"standardLSv2Family","coreQuota":0},{"name":"standardNCSv2Family","coreQuota":0},{"name":"standardNDSFamily","coreQuota":0},{"name":"standardNCSv3Family","coreQuota":0},{"name":"standardFSv2Family","coreQuota":0},{"name":"standardHBSFamily","coreQuota":0},{"name":"standardHCSFamily","coreQuota":0},{"name":"standardNVSv3Family","coreQuota":0},{"name":"standardHBrsv2Family","coreQuota":0},{"name":"standardDAv4Family","coreQuota":0},{"name":"standardDASv4Family","coreQuota":0},{"name":"standardEAv4Family","coreQuota":0},{"name":"standardEASv4Family","coreQuota":0},{"name":"standardDDv4Family","coreQuota":0},{"name":"standardDDSv4Family","coreQuota":0},{"name":"standardEDv4Family","coreQuota":0},{"name":"standardEDSv4Family","coreQuota":0},{"name":"standardMSv2Family","coreQuota":0},{"name":"standardEIv3Family","coreQuota":0},{"name":"standardNVSv4Family","coreQuota":0},{"name":"standardXEIDSv4Family","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":500,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","encryption":{"keySource":"Microsoft.Batch"}},"tags":{"Name":"tagName","Value":"tagValue"},"identity":{"type":"None"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5","name":"batch3e1b0fe5","type":"Microsoft.Batch/batchAccounts","location":"eastus","properties":{"accountEndpoint":"batch3e1b0fe5.pilotprod2.eastus.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":500,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":500},{"name":"standardDv2Family","coreQuota":250},{"name":"standardDv3Family","coreQuota":500},{"name":"standardEv3Family","coreQuota":500},{"name":"standardDSv2Family","coreQuota":250},{"name":"standardDSv3Family","coreQuota":500},{"name":"standardESv3Family","coreQuota":500},{"name":"standardFSv2Family","coreQuota":100},{"name":"standardNCFamily","coreQuota":24},{"name":"standardNVFamily","coreQuota":24},{"name":"standardDDv4Family","coreQuota":100},{"name":"standardDDSv4Family","coreQuota":100},{"name":"standardEDv4Family","coreQuota":100},{"name":"standardEDSv4Family","coreQuota":100},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardFFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardFSFamily","coreQuota":0},{"name":"standardGSFamily","coreQuota":0},{"name":"standardLSFamily","coreQuota":0},{"name":"standardLSv2Family","coreQuota":0},{"name":"standardNCSv2Family","coreQuota":0},{"name":"standardNDSFamily","coreQuota":0},{"name":"standardNCSv3Family","coreQuota":0},{"name":"standardHBSFamily","coreQuota":0},{"name":"standardHCSFamily","coreQuota":0},{"name":"standardNVSv3Family","coreQuota":0},{"name":"standardHBrsv2Family","coreQuota":0},{"name":"standardDAv4Family","coreQuota":0},{"name":"standardDASv4Family","coreQuota":0},{"name":"standardEAv4Family","coreQuota":0},{"name":"standardEASv4Family","coreQuota":0},{"name":"standardMSv2Family","coreQuota":0},{"name":"standardEIv3Family","coreQuota":0},{"name":"standardNVSv4Family","coreQuota":0},{"name":"Standard + NCASv3_T4 Family","coreQuota":0},{"name":"standardXEIDSv4Family","coreQuota":0},{"name":"Standard + NDASv4_A100 Family","coreQuota":0},{"name":"standardDCSv2Family","coreQuota":0},{"name":"standardHBv3Family","coreQuota":0},{"name":"standardNPSFamily","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":500,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","encryption":{"keySource":"Microsoft.Batch"},"allowedAuthenticationModes":["SharedKey","AAD","TaskAuthenticationToken"]},"tags":{"Name":"tagName","Value":"tagValue"},"identity":{"type":"None"}}' headers: cache-control: - no-cache content-length: - - '2723' + - '3048' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 07:49:08 GMT + - Sat, 17 Jul 2021 22:22:50 GMT etag: - - '"0x8D8C361304B0F2A"' + - '"0x8D949716A0EB98E"' expires: - '-1' last-modified: - - Thu, 28 Jan 2021 07:49:06 GMT + - Sat, 17 Jul 2021 22:22:50 GMT pragma: - no-cache server: @@ -319,7 +327,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1197' status: code: 200 message: OK @@ -335,9 +343,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_account3e1b0fe5/providers/Microsoft.Batch/batchAccounts/batch3e1b0fe5?api-version=2021-06-01 response: body: string: '' @@ -347,11 +355,11 @@ interactions: content-length: - '0' date: - - Thu, 28 Jan 2021 07:49:09 GMT + - Sat, 17 Jul 2021 22:22:50 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/westcentralus/accountOperationResults/batch3e1b0fe5-4b838fcb-4c96-4a87-b29c-2445ab3165c7?api-version=2021-01-01 + - https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/eastus/accountOperationResults/batch3e1b0fe5-ab780b29-6706-4d89-903f-ae020bfed9c3?api-version=2021-06-01 pragma: - no-cache server: @@ -375,9 +383,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/westcentralus/accountOperationResults/batch3e1b0fe5-4b838fcb-4c96-4a87-b29c-2445ab3165c7?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/eastus/accountOperationResults/batch3e1b0fe5-ab780b29-6706-4d89-903f-ae020bfed9c3?api-version=2021-06-01 response: body: string: '' @@ -387,7 +395,7 @@ interactions: content-length: - '0' date: - - Thu, 28 Jan 2021 07:49:24 GMT + - Sat, 17 Jul 2021 22:23:06 GMT expires: - '-1' pragma: diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_account_advanced.yaml b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_account_advanced.yaml index 0fbcc3402657..65999430de30 100644 --- a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_account_advanced.yaml +++ b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_account_advanced.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{"location": "westcentralus", "identity": {"type": "SystemAssigned"}, "properties": + body: '{"location": "eastus", "identity": {"type": "SystemAssigned"}, "properties": {"publicNetworkAccess": "Disabled"}}' headers: Accept: @@ -10,13 +10,13 @@ interactions: Connection: - keep-alive Content-Length: - - '120' + - '113' Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a?api-version=2021-06-01 response: body: string: '' @@ -26,11 +26,11 @@ interactions: content-length: - '0' date: - - Thu, 28 Jan 2021 07:49:46 GMT + - Sat, 17 Jul 2021 22:23:10 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/operationResults/0ca6e739-4925-40cf-91d3-95ce593ce32c?api-version=2021-01-01 + - https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/operationResults/1b884849-9c50-43ff-8261-0138d40d725c?api-version=2021-06-01 pragma: - no-cache server: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1196' status: code: 202 message: Accepted @@ -54,27 +54,29 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/operationResults/0ca6e739-4925-40cf-91d3-95ce593ce32c?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/operationResults/1b884849-9c50-43ff-8261-0138d40d725c?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a","name":"batchpendpointdefb137a","type":"Microsoft.Batch/batchAccounts","location":"westcentralus","properties":{"accountEndpoint":"batchpendpointdefb137a.westcentralus.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":700,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":100},{"name":"standardDv2Family","coreQuota":100},{"name":"standardDv3Family","coreQuota":100},{"name":"standardEv3Family","coreQuota":50},{"name":"standardDSv2Family","coreQuota":100},{"name":"standardDSv3Family","coreQuota":100},{"name":"standardESv3Family","coreQuota":50},{"name":"standardFFamily","coreQuota":50},{"name":"standardFSFamily","coreQuota":50},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardNVFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardGSFamily","coreQuota":0},{"name":"standardLSFamily","coreQuota":0},{"name":"standardLSv2Family","coreQuota":0},{"name":"standardNCSv2Family","coreQuota":0},{"name":"standardNDSFamily","coreQuota":0},{"name":"standardNCSv3Family","coreQuota":0},{"name":"standardFSv2Family","coreQuota":0},{"name":"standardHBSFamily","coreQuota":0},{"name":"standardHCSFamily","coreQuota":0},{"name":"standardNVSv3Family","coreQuota":0},{"name":"standardHBrsv2Family","coreQuota":0},{"name":"standardDAv4Family","coreQuota":0},{"name":"standardDASv4Family","coreQuota":0},{"name":"standardEAv4Family","coreQuota":0},{"name":"standardEASv4Family","coreQuota":0},{"name":"standardDDv4Family","coreQuota":0},{"name":"standardDDSv4Family","coreQuota":0},{"name":"standardEDv4Family","coreQuota":0},{"name":"standardEDSv4Family","coreQuota":0},{"name":"standardMSv2Family","coreQuota":0},{"name":"standardEIv3Family","coreQuota":0},{"name":"standardNVSv4Family","coreQuota":0},{"name":"standardXEIDSv4Family","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":500,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"poolAllocationMode":"BatchService","publicNetworkAccess":"Disabled","privateEndpointConnections":[],"encryption":{"keySource":"Microsoft.Batch"}},"identity":{"principalId":"c8cfbfab-b16e-421d-be47-af69f845c0ad","tenantId":"00000000-0000-0000-0000-000000000000","type":"SystemAssigned"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a","name":"batchpendpointdefb137a","type":"Microsoft.Batch/batchAccounts","location":"eastus","properties":{"accountEndpoint":"batchpendpointdefb137a.pilotprod2.eastus.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":500,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":500},{"name":"standardDv2Family","coreQuota":250},{"name":"standardDv3Family","coreQuota":500},{"name":"standardEv3Family","coreQuota":500},{"name":"standardDSv2Family","coreQuota":250},{"name":"standardDSv3Family","coreQuota":500},{"name":"standardESv3Family","coreQuota":500},{"name":"standardFSv2Family","coreQuota":100},{"name":"standardNCFamily","coreQuota":24},{"name":"standardNVFamily","coreQuota":24},{"name":"standardDDv4Family","coreQuota":100},{"name":"standardDDSv4Family","coreQuota":100},{"name":"standardEDv4Family","coreQuota":100},{"name":"standardEDSv4Family","coreQuota":100},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardFFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardFSFamily","coreQuota":0},{"name":"standardGSFamily","coreQuota":0},{"name":"standardLSFamily","coreQuota":0},{"name":"standardLSv2Family","coreQuota":0},{"name":"standardNCSv2Family","coreQuota":0},{"name":"standardNDSFamily","coreQuota":0},{"name":"standardNCSv3Family","coreQuota":0},{"name":"standardHBSFamily","coreQuota":0},{"name":"standardHCSFamily","coreQuota":0},{"name":"standardNVSv3Family","coreQuota":0},{"name":"standardHBrsv2Family","coreQuota":0},{"name":"standardDAv4Family","coreQuota":0},{"name":"standardDASv4Family","coreQuota":0},{"name":"standardEAv4Family","coreQuota":0},{"name":"standardEASv4Family","coreQuota":0},{"name":"standardMSv2Family","coreQuota":0},{"name":"standardEIv3Family","coreQuota":0},{"name":"standardNVSv4Family","coreQuota":0},{"name":"Standard + NCASv3_T4 Family","coreQuota":0},{"name":"standardXEIDSv4Family","coreQuota":0},{"name":"Standard + NDASv4_A100 Family","coreQuota":0},{"name":"standardDCSv2Family","coreQuota":0},{"name":"standardHBv3Family","coreQuota":0},{"name":"standardNPSFamily","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":500,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"poolAllocationMode":"BatchService","publicNetworkAccess":"Disabled","privateEndpointConnections":[],"encryption":{"keySource":"Microsoft.Batch"},"allowedAuthenticationModes":["SharedKey","AAD","TaskAuthenticationToken"]},"identity":{"principalId":"657d0fb2-5586-4a02-8f28-2c64d6e5f1ce","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}}' headers: cache-control: - no-cache content-length: - - '2879' + - '3204' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 07:50:01 GMT + - Sat, 17 Jul 2021 22:23:24 GMT etag: - - '"0x8D8C361513A6E2D"' + - '"0x8D949717EC3EDC1"' expires: - '-1' last-modified: - - Thu, 28 Jan 2021 07:50:01 GMT + - Sat, 17 Jul 2021 22:23:25 GMT pragma: - no-cache server: @@ -91,10 +93,10 @@ interactions: code: 200 message: OK - request: - body: '{"location": "westcentralus", "properties": {"addressSpace": {"addressPrefixes": + body: '{"location": "eastus", "properties": {"addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}, "subnets": [{"name": "subnetdefb137a", "properties": {"addressPrefix": - "10.0.0.0/24", "privateEndpointNetworkPolicies": "Disabled"}}], "enableDdosProtection": - false, "enableVmProtection": false}}' + "10.0.0.0/24", "privateEndpointNetworkPolicies": "Disabled", "privateLinkServiceNetworkPolicies": + "Enabled"}}], "enableDdosProtection": false, "enableVmProtection": false}}' headers: Accept: - application/json @@ -103,44 +105,42 @@ interactions: Connection: - keep-alive Content-Length: - - '294' + - '335' Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-network/17.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetdefb137a?api-version=2020-07-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetdefb137a?api-version=2021-02-01 response: body: - string: "{\r\n \"name\": \"vnetdefb137a\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetdefb137a\"\ - ,\r\n \"etag\": \"W/\\\"9457a05b-7e33-4457-8071-155d478573e1\\\"\",\r\n \ - \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westcentralus\"\ - ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \ - \ \"resourceGuid\": \"2df93329-24f4-4349-9456-2b2981f0e6c0\",\r\n \"\ - addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\ - \r\n ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\"\ - : \"subnetdefb137a\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetdefb137a/subnets/subnetdefb137a\"\ - ,\r\n \"etag\": \"W/\\\"9457a05b-7e33-4457-8071-155d478573e1\\\"\"\ - ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ - ,\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\"\ - : [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n \ - \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\ - \n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n \ - \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\"\ - : false,\r\n \"enableVmProtection\": false\r\n }\r\n}" + string: "{\r\n \"name\": \"vnetdefb137a\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetdefb137a\",\r\n + \ \"etag\": \"W/\\\"fc0f8e16-260e-4a92-9301-17b5ef156a69\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": + \"75732230-19fb-47d8-be6b-e009b4ef4086\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": + [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [\r\n + \ {\r\n \"name\": \"subnetdefb137a\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetdefb137a/subnets/subnetdefb137a\",\r\n + \ \"etag\": \"W/\\\"fc0f8e16-260e-4a92-9301-17b5ef156a69\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\": + [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n \"privateLinkServiceNetworkPolicies\": + \"Enabled\"\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n + \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": + false\r\n }\r\n}" headers: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westcentralus/operations/a8896261-ad0f-4204-acc8-4ad10ac3f9b6?api-version=2020-07-01 + - https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/4123ce3a-e776-45fb-a503-70291c51accd?api-version=2021-02-01 cache-control: - no-cache content-length: - - '1411' + - '1380' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 07:50:09 GMT + - Sat, 17 Jul 2021 22:23:27 GMT expires: - '-1' pragma: @@ -153,9 +153,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 96e861f2-d87c-42e2-9ad2-2a999769190e + - 4ea5abae-057f-4e61-a79d-8b777a4ea84e x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1193' status: code: 201 message: Created @@ -169,9 +169,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/17.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westcentralus/operations/a8896261-ad0f-4204-acc8-4ad10ac3f9b6?api-version=2020-07-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/4123ce3a-e776-45fb-a503-70291c51accd?api-version=2021-02-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -183,7 +183,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 07:50:12 GMT + - Sat, 17 Jul 2021 22:23:30 GMT expires: - '-1' pragma: @@ -200,7 +200,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 57a90e37-10fb-4bfd-872a-304b8aa1eed6 + - 28c0fb8b-2ebd-4f34-8821-de73e67070ff status: code: 200 message: OK @@ -214,38 +214,36 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/17.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetdefb137a?api-version=2020-07-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetdefb137a?api-version=2021-02-01 response: body: - string: "{\r\n \"name\": \"vnetdefb137a\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetdefb137a\"\ - ,\r\n \"etag\": \"W/\\\"7f584472-8814-4cd9-80d6-7cb18250169b\\\"\",\r\n \ - \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westcentralus\"\ - ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n\ - \ \"resourceGuid\": \"2df93329-24f4-4349-9456-2b2981f0e6c0\",\r\n \"\ - addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\ - \r\n ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\"\ - : \"subnetdefb137a\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetdefb137a/subnets/subnetdefb137a\"\ - ,\r\n \"etag\": \"W/\\\"7f584472-8814-4cd9-80d6-7cb18250169b\\\"\"\ - ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ - ,\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\"\ - : [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n \ - \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\ - \n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n \ - \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\"\ - : false,\r\n \"enableVmProtection\": false\r\n }\r\n}" + string: "{\r\n \"name\": \"vnetdefb137a\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetdefb137a\",\r\n + \ \"etag\": \"W/\\\"f945fde2-609c-41a8-b7c5-cf1885cceb20\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": + \"75732230-19fb-47d8-be6b-e009b4ef4086\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": + [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [\r\n + \ {\r\n \"name\": \"subnetdefb137a\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetdefb137a/subnets/subnetdefb137a\",\r\n + \ \"etag\": \"W/\\\"f945fde2-609c-41a8-b7c5-cf1885cceb20\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\": + [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n \"privateLinkServiceNetworkPolicies\": + \"Enabled\"\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n + \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": + false\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '1413' + - '1382' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 07:50:13 GMT + - Sat, 17 Jul 2021 22:23:30 GMT etag: - - W/"7f584472-8814-4cd9-80d6-7cb18250169b" + - W/"f945fde2-609c-41a8-b7c5-cf1885cceb20" expires: - '-1' pragma: @@ -262,14 +260,15 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 79cc7146-7787-4ecb-84af-bde79298594c + - c4cfeff9-8dc7-4b14-bc90-ac1b03741bf4 status: code: 200 message: OK - request: - body: '{"location": "westcentralus", "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetdefb137a/subnets/subnetdefb137a"}, - "manualPrivateLinkServiceConnections": [{"name": "pecdefb137a", "properties": - {"privateLinkServiceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a", + body: '{"location": "eastus", "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetdefb137a/subnets/subnetdefb137a", + "properties": {"privateEndpointNetworkPolicies": "Enabled", "privateLinkServiceNetworkPolicies": + "Enabled"}}, "manualPrivateLinkServiceConnections": [{"name": "pecdefb137a", + "properties": {"privateLinkServiceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a", "groupIds": ["batchAccount"]}}]}}' headers: Accept: @@ -279,48 +278,45 @@ interactions: Connection: - keep-alive Content-Length: - - '634' + - '746' Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-network/17.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a?api-version=2020-07-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a?api-version=2021-02-01 response: body: - string: "{\r\n \"name\": \"pedefb137a\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a\"\ - ,\r\n \"etag\": \"W/\\\"911708d4-6046-469d-b75f-5cb3ac6bfc85\\\"\",\r\n \ - \ \"type\": \"Microsoft.Network/privateEndpoints\",\r\n \"location\": \"\ - westcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ - ,\r\n \"resourceGuid\": \"371a52b2-7650-42d1-96fc-9ad7b92298f5\",\r\n \ - \ \"privateLinkServiceConnections\": [],\r\n \"manualPrivateLinkServiceConnections\"\ - : [\r\n {\r\n \"name\": \"pecdefb137a\",\r\n \"id\": \"\ - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a/manualPrivateLinkServiceConnections/pecdefb137a\"\ - ,\r\n \"etag\": \"W/\\\"911708d4-6046-469d-b75f-5cb3ac6bfc85\\\"\"\ - ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ - ,\r\n \"privateLinkServiceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a\"\ - ,\r\n \"groupIds\": [\r\n \"batchAccount\"\r\n \ - \ ],\r\n \"privateLinkServiceConnectionState\": {\r\n \ - \ \"status\": \"Pending\",\r\n \"description\": \"Awaiting Approval\"\ - ,\r\n \"actionsRequired\": \"None\"\r\n }\r\n },\r\ - \n \"type\": \"Microsoft.Network/privateEndpoints/manualPrivateLinkServiceConnections\"\ - \r\n }\r\n ],\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetdefb137a/subnets/subnetdefb137a\"\ - \r\n },\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"\ - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/pedefb137a.nic.5cd1e9da-0528-4cca-b2e3-eebbc71f12d2\"\ - \r\n }\r\n ],\r\n \"customDnsConfigs\": []\r\n }\r\n}" + string: "{\r\n \"name\": \"pedefb137a\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a\",\r\n + \ \"etag\": \"W/\\\"c056acd7-7509-49c6-af97-be01466042f9\\\"\",\r\n \"type\": + \"Microsoft.Network/privateEndpoints\",\r\n \"location\": \"eastus\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": + \"308b537c-eb9b-473a-b15e-a399fd93b5ba\",\r\n \"privateLinkServiceConnections\": + [],\r\n \"manualPrivateLinkServiceConnections\": [\r\n {\r\n \"name\": + \"pecdefb137a\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a/manualPrivateLinkServiceConnections/pecdefb137a\",\r\n + \ \"etag\": \"W/\\\"c056acd7-7509-49c6-af97-be01466042f9\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateLinkServiceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a\",\r\n + \ \"groupIds\": [\r\n \"batchAccount\"\r\n ],\r\n + \ \"privateLinkServiceConnectionState\": {\r\n \"status\": + \"Pending\",\r\n \"description\": \"Awaiting Approval\",\r\n \"actionsRequired\": + \"None\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/privateEndpoints/manualPrivateLinkServiceConnections\"\r\n + \ }\r\n ],\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetdefb137a/subnets/subnetdefb137a\"\r\n + \ },\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/pedefb137a.nic.e7969a5d-fb39-4056-8f95-63185b22ace4\"\r\n + \ }\r\n ],\r\n \"customDnsConfigs\": []\r\n }\r\n}" headers: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westcentralus/operations/43bcd897-3d26-4a2a-b7bf-942a17e9e89e?api-version=2020-07-01 + - https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/4e4d9b4d-cfb1-4a22-ad85-388d20ab030a?api-version=2021-02-01 cache-control: - no-cache content-length: - - '2246' + - '2264' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 07:50:18 GMT + - Sat, 17 Jul 2021 22:23:33 GMT expires: - '-1' pragma: @@ -333,9 +329,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - d935e2fe-e8af-49c9-a739-a6fb3493ebde + - 9a531302-dc87-4b3a-a7b2-7e90e9ef2a27 x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1192' status: code: 201 message: Created @@ -349,9 +345,99 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/17.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) + method: GET + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/4e4d9b4d-cfb1-4a22-ad85-388d20ab030a?api-version=2021-02-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 17 Jul 2021 22:23:43 GMT + expires: + - '-1' + pragma: + - no-cache + 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: + - 06177363-9bd2-45af-95be-030a2099a79e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) + method: GET + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/4e4d9b4d-cfb1-4a22-ad85-388d20ab030a?api-version=2021-02-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 17 Jul 2021 22:23:53 GMT + expires: + - '-1' + pragma: + - no-cache + 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: + - 73c50aa9-6429-4855-a5f0-128fdc2528ba + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westcentralus/operations/43bcd897-3d26-4a2a-b7bf-942a17e9e89e?api-version=2020-07-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/4e4d9b4d-cfb1-4a22-ad85-388d20ab030a?api-version=2021-02-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -363,7 +449,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 07:50:29 GMT + - Sat, 17 Jul 2021 22:24:14 GMT expires: - '-1' pragma: @@ -380,7 +466,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 8af0949b-c311-4c8f-b896-c3c5d69c125f + - cf4e63af-3ded-428f-be46-fb11ef7ad62f status: code: 200 message: OK @@ -394,42 +480,40 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/17.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a?api-version=2020-07-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a?api-version=2021-02-01 response: body: - string: "{\r\n \"name\": \"pedefb137a\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a\"\ - ,\r\n \"etag\": \"W/\\\"5cbe5015-700f-47ae-af88-e1047bb2a79b\\\"\",\r\n \ - \ \"type\": \"Microsoft.Network/privateEndpoints\",\r\n \"location\": \"\ - westcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ - ,\r\n \"resourceGuid\": \"371a52b2-7650-42d1-96fc-9ad7b92298f5\",\r\n \ - \ \"privateLinkServiceConnections\": [],\r\n \"manualPrivateLinkServiceConnections\"\ - : [\r\n {\r\n \"name\": \"pecdefb137a\",\r\n \"id\": \"\ - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a/manualPrivateLinkServiceConnections/pecdefb137a\"\ - ,\r\n \"etag\": \"W/\\\"5cbe5015-700f-47ae-af88-e1047bb2a79b\\\"\"\ - ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ - ,\r\n \"privateLinkServiceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a\"\ - ,\r\n \"groupIds\": [\r\n \"batchAccount\"\r\n \ - \ ],\r\n \"privateLinkServiceConnectionState\": {\r\n \ - \ \"status\": \"Pending\",\r\n \"description\": \"Manual approval\ - \ still required\",\r\n \"actionsRequired\": \"Manual approval\ - \ request\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/privateEndpoints/manualPrivateLinkServiceConnections\"\ - \r\n }\r\n ],\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetdefb137a/subnets/subnetdefb137a\"\ - \r\n },\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"\ - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/pedefb137a.nic.5cd1e9da-0528-4cca-b2e3-eebbc71f12d2\"\ - \r\n }\r\n ],\r\n \"customDnsConfigs\": []\r\n }\r\n}" + string: "{\r\n \"name\": \"pedefb137a\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a\",\r\n + \ \"etag\": \"W/\\\"d6b76b14-2752-410c-a499-e2462a5c749d\\\"\",\r\n \"type\": + \"Microsoft.Network/privateEndpoints\",\r\n \"location\": \"eastus\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": + \"308b537c-eb9b-473a-b15e-a399fd93b5ba\",\r\n \"privateLinkServiceConnections\": + [],\r\n \"manualPrivateLinkServiceConnections\": [\r\n {\r\n \"name\": + \"pecdefb137a\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a/manualPrivateLinkServiceConnections/pecdefb137a\",\r\n + \ \"etag\": \"W/\\\"d6b76b14-2752-410c-a499-e2462a5c749d\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateLinkServiceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a\",\r\n + \ \"groupIds\": [\r\n \"batchAccount\"\r\n ],\r\n + \ \"privateLinkServiceConnectionState\": {\r\n \"status\": + \"Pending\",\r\n \"description\": \"Manual approval still required\",\r\n + \ \"actionsRequired\": \"Manual approval request\"\r\n }\r\n + \ },\r\n \"type\": \"Microsoft.Network/privateEndpoints/manualPrivateLinkServiceConnections\"\r\n + \ }\r\n ],\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetdefb137a/subnets/subnetdefb137a\"\r\n + \ },\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/pedefb137a.nic.e7969a5d-fb39-4056-8f95-63185b22ace4\"\r\n + \ }\r\n ],\r\n \"customDnsConfigs\": []\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '2279' + - '2297' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 07:50:29 GMT + - Sat, 17 Jul 2021 22:24:14 GMT etag: - - W/"5cbe5015-700f-47ae-af88-e1047bb2a79b" + - W/"d6b76b14-2752-410c-a499-e2462a5c749d" expires: - '-1' pragma: @@ -446,7 +530,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - f287cac9-757a-40aa-a892-f5e5d5b33d00 + - ddd66f5d-8e7b-4cc8-b349-545a2d6f4899 status: code: 200 message: OK @@ -460,21 +544,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateLinkResources?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateLinkResources?api-version=2021-06-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateLinkResources/batchpendpointdefb137a","name":"batchpendpointdefb137a","type":"Microsoft.Batch/batchAccounts/privateLinkResources","properties":{"groupId":"batchAccount","requiredMembers":["batchAccount"],"requiredZoneNames":["privatelink.westcentralus.batch.azure.com"]}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateLinkResources/batchpendpointdefb137a","name":"batchpendpointdefb137a","type":"Microsoft.Batch/batchAccounts/privateLinkResources","properties":{"groupId":"batchAccount","requiredMembers":["batchAccount"],"requiredZoneNames":["privatelink.pilotprod2.eastus.batch.azure.com"]}}]}' headers: cache-control: - no-cache content-length: - - '503' + - '512' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 07:50:30 GMT + - Sat, 17 Jul 2021 22:24:14 GMT expires: - '-1' pragma: @@ -502,21 +586,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateLinkResources/batchpendpointdefb137a?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateLinkResources/batchpendpointdefb137a?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateLinkResources/batchpendpointdefb137a","name":"batchpendpointdefb137a","type":"Microsoft.Batch/batchAccounts/privateLinkResources","properties":{"groupId":"batchAccount","requiredMembers":["batchAccount"],"requiredZoneNames":["privatelink.westcentralus.batch.azure.com"]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateLinkResources/batchpendpointdefb137a","name":"batchpendpointdefb137a","type":"Microsoft.Batch/batchAccounts/privateLinkResources","properties":{"groupId":"batchAccount","requiredMembers":["batchAccount"],"requiredZoneNames":["privatelink.pilotprod2.eastus.batch.azure.com"]}}' headers: cache-control: - no-cache content-length: - - '491' + - '500' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 07:50:30 GMT + - Sat, 17 Jul 2021 22:24:14 GMT expires: - '-1' pragma: @@ -544,22 +628,22 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnections?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnections?api-version=2021-06-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnections/pedefb137a.371a52b2-7650-42d1-96fc-9ad7b92298f5","name":"pedefb137a.371a52b2-7650-42d1-96fc-9ad7b92298f5","type":"Microsoft.Batch/batchAccounts/privateEndpointConnections","etag":"W/\"0x8D8C3615C515A58\"","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a"},"privateLinkServiceConnectionState":{"status":"Pending","description":"Manual + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnections/pedefb137a.308b537c-eb9b-473a-b15e-a399fd93b5ba","name":"pedefb137a.308b537c-eb9b-473a-b15e-a399fd93b5ba","type":"Microsoft.Batch/batchAccounts/privateEndpointConnections","etag":"W/\"0x8D949718DC926EE\"","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a"},"privateLinkServiceConnectionState":{"status":"Pending","description":"Manual approval still required","actionsRequired":"Manual approval request"}}}]}' headers: cache-control: - no-cache content-length: - - '878' + - '888' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 07:50:30 GMT + - Sat, 17 Jul 2021 22:24:14 GMT expires: - '-1' pragma: @@ -587,28 +671,28 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnections/pedefb137a.371a52b2-7650-42d1-96fc-9ad7b92298f5?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnections/pedefb137a.308b537c-eb9b-473a-b15e-a399fd93b5ba?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnections/pedefb137a.371a52b2-7650-42d1-96fc-9ad7b92298f5","name":"pedefb137a.371a52b2-7650-42d1-96fc-9ad7b92298f5","type":"Microsoft.Batch/batchAccounts/privateEndpointConnections","etag":"W/\"0x8D8C3615C515A58\"","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a"},"privateLinkServiceConnectionState":{"status":"Pending","description":"Manual + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnections/pedefb137a.308b537c-eb9b-473a-b15e-a399fd93b5ba","name":"pedefb137a.308b537c-eb9b-473a-b15e-a399fd93b5ba","type":"Microsoft.Batch/batchAccounts/privateEndpointConnections","etag":"W/\"0x8D949718DC926EE\"","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a"},"privateLinkServiceConnectionState":{"status":"Pending","description":"Manual approval still required","actionsRequired":"Manual approval request"}}}' headers: cache-control: - no-cache content-length: - - '866' + - '876' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 07:50:31 GMT + - Sat, 17 Jul 2021 22:24:14 GMT etag: - - W/"0x8D8C3615C515A58" + - W/"0x8D949718DC926EE" expires: - '-1' last-modified: - - Thu, 28 Jan 2021 07:50:20 GMT + - Sat, 17 Jul 2021 22:23:50 GMT pragma: - no-cache server: @@ -639,32 +723,32 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnections/pedefb137a.371a52b2-7650-42d1-96fc-9ad7b92298f5?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnections/pedefb137a.308b537c-eb9b-473a-b15e-a399fd93b5ba?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnections/pedefb137a.371a52b2-7650-42d1-96fc-9ad7b92298f5","name":"pedefb137a.371a52b2-7650-42d1-96fc-9ad7b92298f5","type":"Microsoft.Batch/batchAccounts/privateEndpointConnections","etag":"W/\"0x8D8C3615C515A58\"","properties":{"provisioningState":"Updating","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Approved + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnections/pedefb137a.308b537c-eb9b-473a-b15e-a399fd93b5ba","name":"pedefb137a.308b537c-eb9b-473a-b15e-a399fd93b5ba","type":"Microsoft.Batch/batchAccounts/privateEndpointConnections","etag":"W/\"0x8D949718DC926EE\"","properties":{"provisioningState":"Updating","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Approved for test","actionsRequired":"Manual approval request"}}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnectionResults/Updating$pedefb137a.371a52b2-7650-42d1-96fc-9ad7b92298f5$deb2dad8-fbd2-4d33-b471-24b89706a2f0?api-version=2021-01-01 + - https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnectionResults/Updating$pedefb137a.308b537c-eb9b-473a-b15e-a399fd93b5ba$28b983a6-6801-40ee-8cf1-ebdcd860d76a?api-version=2021-06-01 cache-control: - no-cache content-length: - - '853' + - '863' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 07:50:31 GMT + - Sat, 17 Jul 2021 22:24:14 GMT etag: - - W/"0x8D8C3615C515A58" + - W/"0x8D949718DC926EE" expires: - '-1' last-modified: - - Thu, 28 Jan 2021 07:50:20 GMT + - Sat, 17 Jul 2021 22:23:50 GMT location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnectionResults/Updating$pedefb137a.371a52b2-7650-42d1-96fc-9ad7b92298f5$deb2dad8-fbd2-4d33-b471-24b89706a2f0?api-version=2021-01-01 + - https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnectionResults/Updating$pedefb137a.308b537c-eb9b-473a-b15e-a399fd93b5ba$28b983a6-6801-40ee-8cf1-ebdcd860d76a?api-version=2021-06-01 pragma: - no-cache server: @@ -674,7 +758,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1195' status: code: 202 message: Accepted @@ -688,9 +772,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnectionResults/Updating$pedefb137a.371a52b2-7650-42d1-96fc-9ad7b92298f5$deb2dad8-fbd2-4d33-b471-24b89706a2f0?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnectionResults/Updating$pedefb137a.308b537c-eb9b-473a-b15e-a399fd93b5ba$28b983a6-6801-40ee-8cf1-ebdcd860d76a?api-version=2021-06-01 response: body: string: '{"status":"Succeeded","retryAfter":0}' @@ -702,7 +786,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 07:50:46 GMT + - Sat, 17 Jul 2021 22:24:30 GMT expires: - '-1' pragma: @@ -730,28 +814,28 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnections/pedefb137a.371a52b2-7650-42d1-96fc-9ad7b92298f5?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnections/pedefb137a.308b537c-eb9b-473a-b15e-a399fd93b5ba?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnections/pedefb137a.371a52b2-7650-42d1-96fc-9ad7b92298f5","name":"pedefb137a.371a52b2-7650-42d1-96fc-9ad7b92298f5","type":"Microsoft.Batch/batchAccounts/privateEndpointConnections","etag":"W/\"0x8D8C3615C515A58\"","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Approved + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Batch/batchAccounts/batchpendpointdefb137a/privateEndpointConnections/pedefb137a.308b537c-eb9b-473a-b15e-a399fd93b5ba","name":"pedefb137a.308b537c-eb9b-473a-b15e-a399fd93b5ba","type":"Microsoft.Batch/batchAccounts/privateEndpointConnections","etag":"W/\"0x8D949718DC926EE\"","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/pedefb137a"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Approved for test","actionsRequired":"Manual approval request"}}}' headers: cache-control: - no-cache content-length: - - '854' + - '864' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 07:50:47 GMT + - Sat, 17 Jul 2021 22:24:30 GMT etag: - - W/"0x8D8C3615C515A58" + - W/"0x8D949718DC926EE" expires: - '-1' last-modified: - - Thu, 28 Jan 2021 07:50:20 GMT + - Sat, 17 Jul 2021 22:23:50 GMT pragma: - no-cache server: diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_account_name.yaml b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_account_name.yaml index ecfc0c3b0aad..bbbbb545d977 100644 --- a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_account_name.yaml +++ b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_account_name.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/westcentralus/checkNameAvailability?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/eastus/checkNameAvailability?api-version=2021-06-01 response: body: string: '{"nameAvailable":false,"reason":"Invalid","message":"Account name must @@ -28,7 +28,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 07:50:53 GMT + - Sat, 17 Jul 2021 22:24:30 GMT expires: - '-1' pragma: @@ -44,12 +44,12 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 200 message: OK - request: - body: '{"name": "sdktest2", "type": "Microsoft.Batch/batchAccounts"}' + body: '{"name": "dawatroupp2acct", "type": "Microsoft.Batch/batchAccounts"}' headers: Accept: - application/json @@ -58,26 +58,26 @@ interactions: Connection: - keep-alive Content-Length: - - '61' + - '68' Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/westcentralus/checkNameAvailability?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/eastus/checkNameAvailability?api-version=2021-06-01 response: body: string: '{"nameAvailable":false,"reason":"AlreadyExists","message":"An account - named ''sdktest2'' is already in use."}' + named ''dawatroupp2acct'' is already in use."}' headers: cache-control: - no-cache content-length: - - '107' + - '114' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 07:50:53 GMT + - Sat, 17 Jul 2021 22:24:31 GMT expires: - '-1' pragma: @@ -93,7 +93,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1196' status: code: 200 message: OK @@ -111,9 +111,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/westcentralus/checkNameAvailability?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/eastus/checkNameAvailability?api-version=2021-06-01 response: body: string: '{"nameAvailable":true}' @@ -125,7 +125,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 07:50:53 GMT + - Sat, 17 Jul 2021 22:24:31 GMT expires: - '-1' pragma: @@ -141,7 +141,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1195' status: code: 200 message: OK diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_applications.yaml b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_applications.yaml index ecbf8d7dc528..b6edffb78520 100644 --- a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_applications.yaml +++ b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_applications.yaml @@ -1,8 +1,8 @@ interactions: - request: - body: '{"location": "westcentralus", "properties": {"autoStorage": {"storageAccountId": - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Storage/storageAccounts/batch"}, - "publicNetworkAccess": "Enabled"}}' + body: '{"location": "eastus", "properties": {"autoStorage": {"storageAccountId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Storage/storageAccounts/batch", + "authenticationMode": "StorageKeys"}, "publicNetworkAccess": "Enabled"}}' headers: Accept: - application/json @@ -11,13 +11,13 @@ interactions: Connection: - keep-alive Content-Length: - - '297' + - '332' Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch?api-version=2021-06-01 response: body: string: '' @@ -27,11 +27,11 @@ interactions: content-length: - '0' date: - - Thu, 28 Jan 2021 08:25:54 GMT + - Sat, 17 Jul 2021 22:06:27 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/operationResults/ab5d159c-372b-4a4f-b611-73f7e731869f?api-version=2021-01-01 + - https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/operationResults/450c8d7e-0779-49bb-b1e4-a34f651ab197?api-version=2021-06-01 pragma: - no-cache server: @@ -41,7 +41,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 202 message: Accepted @@ -55,27 +55,29 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/operationResults/ab5d159c-372b-4a4f-b611-73f7e731869f?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/operationResults/450c8d7e-0779-49bb-b1e4-a34f651ab197?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch","name":"batch","type":"Microsoft.Batch/batchAccounts","location":"westcentralus","properties":{"accountEndpoint":"batch.westcentralus.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":700,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":100},{"name":"standardDv2Family","coreQuota":100},{"name":"standardDv3Family","coreQuota":100},{"name":"standardEv3Family","coreQuota":50},{"name":"standardDSv2Family","coreQuota":100},{"name":"standardDSv3Family","coreQuota":100},{"name":"standardESv3Family","coreQuota":50},{"name":"standardFFamily","coreQuota":50},{"name":"standardFSFamily","coreQuota":50},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardNVFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardGSFamily","coreQuota":0},{"name":"standardLSFamily","coreQuota":0},{"name":"standardLSv2Family","coreQuota":0},{"name":"standardNCSv2Family","coreQuota":0},{"name":"standardNDSFamily","coreQuota":0},{"name":"standardNCSv3Family","coreQuota":0},{"name":"standardFSv2Family","coreQuota":0},{"name":"standardHBSFamily","coreQuota":0},{"name":"standardHCSFamily","coreQuota":0},{"name":"standardNVSv3Family","coreQuota":0},{"name":"standardHBrsv2Family","coreQuota":0},{"name":"standardDAv4Family","coreQuota":0},{"name":"standardDASv4Family","coreQuota":0},{"name":"standardEAv4Family","coreQuota":0},{"name":"standardEASv4Family","coreQuota":0},{"name":"standardDDv4Family","coreQuota":0},{"name":"standardDDSv4Family","coreQuota":0},{"name":"standardEDv4Family","coreQuota":0},{"name":"standardEDSv4Family","coreQuota":0},{"name":"standardMSv2Family","coreQuota":0},{"name":"standardEIv3Family","coreQuota":0},{"name":"standardNVSv4Family","coreQuota":0},{"name":"standardXEIDSv4Family","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":500,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Storage/storageAccounts/batch","lastKeySync":"2021-01-28T08:25:54.4231198Z"},"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","encryption":{"keySource":"Microsoft.Batch"}},"identity":{"type":"None"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch","name":"batch","type":"Microsoft.Batch/batchAccounts","location":"eastus","properties":{"accountEndpoint":"batch.pilotprod2.eastus.batch.azure.com","provisioningState":"Succeeded","dedicatedCoreQuota":500,"dedicatedCoreQuotaPerVMFamily":[{"name":"standardAv2Family","coreQuota":500},{"name":"standardDv2Family","coreQuota":250},{"name":"standardDv3Family","coreQuota":500},{"name":"standardEv3Family","coreQuota":500},{"name":"standardDSv2Family","coreQuota":250},{"name":"standardDSv3Family","coreQuota":500},{"name":"standardESv3Family","coreQuota":500},{"name":"standardFSv2Family","coreQuota":100},{"name":"standardNCFamily","coreQuota":24},{"name":"standardNVFamily","coreQuota":24},{"name":"standardDDv4Family","coreQuota":100},{"name":"standardDDSv4Family","coreQuota":100},{"name":"standardEDv4Family","coreQuota":100},{"name":"standardEDSv4Family","coreQuota":100},{"name":"standardA0_A7Family","coreQuota":0},{"name":"standardA8_A11Family","coreQuota":0},{"name":"standardDFamily","coreQuota":0},{"name":"standardGFamily","coreQuota":0},{"name":"basicAFamily","coreQuota":0},{"name":"standardFFamily","coreQuota":0},{"name":"standardNVPromoFamily","coreQuota":0},{"name":"standardNCPromoFamily","coreQuota":0},{"name":"standardHFamily","coreQuota":0},{"name":"standardHPromoFamily","coreQuota":0},{"name":"standardMSFamily","coreQuota":0},{"name":"standardDSFamily","coreQuota":0},{"name":"standardFSFamily","coreQuota":0},{"name":"standardGSFamily","coreQuota":0},{"name":"standardLSFamily","coreQuota":0},{"name":"standardLSv2Family","coreQuota":0},{"name":"standardNCSv2Family","coreQuota":0},{"name":"standardNDSFamily","coreQuota":0},{"name":"standardNCSv3Family","coreQuota":0},{"name":"standardHBSFamily","coreQuota":0},{"name":"standardHCSFamily","coreQuota":0},{"name":"standardNVSv3Family","coreQuota":0},{"name":"standardHBrsv2Family","coreQuota":0},{"name":"standardDAv4Family","coreQuota":0},{"name":"standardDASv4Family","coreQuota":0},{"name":"standardEAv4Family","coreQuota":0},{"name":"standardEASv4Family","coreQuota":0},{"name":"standardMSv2Family","coreQuota":0},{"name":"standardEIv3Family","coreQuota":0},{"name":"standardNVSv4Family","coreQuota":0},{"name":"Standard + NCASv3_T4 Family","coreQuota":0},{"name":"standardXEIDSv4Family","coreQuota":0},{"name":"Standard + NDASv4_A100 Family","coreQuota":0},{"name":"standardDCSv2Family","coreQuota":0},{"name":"standardHBv3Family","coreQuota":0},{"name":"standardNPSFamily","coreQuota":0}],"dedicatedCoreQuotaPerVMFamilyEnforced":true,"lowPriorityCoreQuota":500,"poolQuota":100,"activeJobAndJobScheduleQuota":300,"autoStorage":{"storageAccountId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Storage/storageAccounts/batch","lastKeySync":"2021-07-17T22:06:27.5876091Z","authenticationMode":"StorageKeys"},"poolAllocationMode":"BatchService","publicNetworkAccess":"Enabled","encryption":{"keySource":"Microsoft.Batch"},"allowedAuthenticationModes":["SharedKey","AAD","TaskAuthenticationToken"]},"identity":{"type":"None"}}' headers: cache-control: - no-cache content-length: - - '2919' + - '3284' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 08:26:09 GMT + - Sat, 17 Jul 2021 22:06:42 GMT etag: - - '"0x8D8C3665DBF7633"' + - '"0x8D9496F291DFD29"' expires: - '-1' last-modified: - - Thu, 28 Jan 2021 08:26:09 GMT + - Sat, 17 Jul 2021 22:06:42 GMT pragma: - no-cache server: @@ -103,9 +105,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/syncAutoStorageKeys?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/syncAutoStorageKeys?api-version=2021-06-01 response: body: string: '' @@ -113,7 +115,7 @@ interactions: cache-control: - no-cache date: - - Thu, 28 Jan 2021 08:26:10 GMT + - Sat, 17 Jul 2021 22:06:42 GMT expires: - '-1' pragma: @@ -143,27 +145,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id?api-version=2021-06-01 response: body: - string: '{"type":"Microsoft.Batch/batchAccounts/applications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id","name":"my_application_id","etag":"W/\"0x8D8C3665E4DEDA4\"","properties":{"displayName":"my_application_name","allowUpdates":true}}' + string: '{"type":"Microsoft.Batch/batchAccounts/applications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id","name":"my_application_id","etag":"W/\"0x8D9496F297DF833\"","properties":{"displayName":"my_application_name","allowUpdates":true}}' headers: cache-control: - no-cache content-length: - - '388' + - '393' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 08:26:10 GMT + - Sat, 17 Jul 2021 22:06:43 GMT etag: - - W/"0x8D8C3665E4DEDA4" + - W/"0x8D9496F297DF833" expires: - '-1' last-modified: - - Thu, 28 Jan 2021 08:26:10 GMT + - Sat, 17 Jul 2021 22:06:43 GMT pragma: - no-cache server: @@ -177,7 +179,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1198' status: code: 200 message: OK @@ -191,27 +193,27 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id?api-version=2021-06-01 response: body: - string: '{"type":"Microsoft.Batch/batchAccounts/applications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id","name":"my_application_id","etag":"W/\"0x8D8C3665E4DEDA4\"","properties":{"displayName":"my_application_name","allowUpdates":true}}' + string: '{"type":"Microsoft.Batch/batchAccounts/applications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id","name":"my_application_id","etag":"W/\"0x8D9496F297DF833\"","properties":{"displayName":"my_application_name","allowUpdates":true}}' headers: cache-control: - no-cache content-length: - - '388' + - '393' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 08:26:11 GMT + - Sat, 17 Jul 2021 22:06:43 GMT etag: - - W/"0x8D8C3665E4DEDA4" + - W/"0x8D9496F297DF833" expires: - '-1' last-modified: - - Thu, 28 Jan 2021 08:26:10 GMT + - Sat, 17 Jul 2021 22:06:43 GMT pragma: - no-cache server: @@ -237,21 +239,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications?api-version=2021-06-01 response: body: - string: '{"value":[{"type":"Microsoft.Batch/batchAccounts/applications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id","name":"my_application_id","etag":"W/\"0x8D8C3665E4DEDA4\"","properties":{"displayName":"my_application_name","allowUpdates":true}}]}' + string: '{"value":[{"type":"Microsoft.Batch/batchAccounts/applications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id","name":"my_application_id","etag":"W/\"0x8D9496F297DF833\"","properties":{"displayName":"my_application_name","allowUpdates":true}}]}' headers: cache-control: - no-cache content-length: - - '400' + - '405' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 08:26:11 GMT + - Sat, 17 Jul 2021 22:06:43 GMT expires: - '-1' pragma: @@ -283,27 +285,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id/versions/v1.0?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id/versions/v1.0?api-version=2021-06-01 response: body: - string: '{"type":"Microsoft.Batch/batchAccounts/applications/versions","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id/versions/v1.0","name":"v1.0","etag":"W/\"0x8D8C3665F1580DC\"","properties":{"storageUrl":"https://batch.blob.core.windows.net/app-my-application-id-60c49603fa2444e392fe687a43ee7246/v1.0?sv=2018-03-28&sr=b&sig=e7yEknR2rc1KC7INgKV%2FuxOcIaVJd2WnBC5XMMKpdCs%3D&st=2021-01-28T08%3A21%3A12Z&se=2021-01-28T12%3A26%3A12Z&sp=rw","storageUrlExpiry":"2021-01-28T12:26:12.2319927Z","state":"Pending"}}' + string: '{"type":"Microsoft.Batch/batchAccounts/applications/versions","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id/versions/v1.0","name":"v1.0","etag":"W/\"0x8D9496F29DE041B\"","properties":{"storageUrl":"https://batch.blob.core.windows.net/app-my-application-id-c9763d64812d4bff9d27c4c8509e821f/v1.0?sv=2018-03-28&sr=b&sig=0fbwXR9Qi%2FhgI0VkFLQcmur5AUdME%2B%2Bnuy8TP0hqVB8%3D&st=2021-07-17T22%3A01%3A44Z&se=2021-07-18T02%3A06%3A44Z&sp=rw","storageUrlExpiry":"2021-07-18T02:06:44.2315388Z","state":"Pending"}}' headers: cache-control: - no-cache content-length: - - '663' + - '672' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 08:26:11 GMT + - Sat, 17 Jul 2021 22:06:43 GMT etag: - - W/"0x8D8C3665F1580DC" + - W/"0x8D9496F29DE041B" expires: - '-1' last-modified: - - Thu, 28 Jan 2021 08:26:12 GMT + - Sat, 17 Jul 2021 22:06:44 GMT pragma: - no-cache server: @@ -317,7 +319,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1197' status: code: 200 message: OK @@ -333,11 +335,11 @@ interactions: Content-Length: - '11' User-Agent: - - python-requests/2.22.0 + - python-requests/2.25.1 x-ms-blob-type: - BlockBlob method: PUT - uri: https://batch.blob.core.windows.net/app-my-application-id-60c49603fa2444e392fe687a43ee7246/v1.0?sv=2018-03-28&sr=b&sig=e7yEknR2rc1KC7INgKV%2FuxOcIaVJd2WnBC5XMMKpdCs%3D&st=2021-01-28T08%3A21%3A12Z&se=2021-01-28T12%3A26%3A12Z&sp=rw + uri: https://batch.blob.core.windows.net/app-my-application-id-c9763d64812d4bff9d27c4c8509e821f/v1.0?sv=2018-03-28&sr=b&sig=0fbwXR9Qi%2FhgI0VkFLQcmur5AUdME%2B%2Bnuy8TP0hqVB8%3D&st=2021-07-17T22%3A01%3A44Z&se=2021-07-18T02%3A06%3A44Z&sp=rw response: body: string: '' @@ -347,11 +349,11 @@ interactions: content-md5: - sQqNsWTgdUEFt6mb5y4/5Q== date: - - Thu, 28 Jan 2021 08:26:13 GMT + - Sat, 17 Jul 2021 22:06:43 GMT etag: - - '"0x8D8C3665FD342F7"' + - '"0x8D9496F2A00BF6E"' last-modified: - - Thu, 28 Jan 2021 08:26:13 GMT + - Sat, 17 Jul 2021 22:06:44 GMT server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -375,27 +377,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id/versions/v1.0/activate?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id/versions/v1.0/activate?api-version=2021-06-01 response: body: - string: '{"type":"Microsoft.Batch/batchAccounts/applications/versions","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id/versions/v1.0","name":"v1.0","etag":"W/\"0x8D8C3666007FC39\"","properties":{"storageUrl":"https://batch.blob.core.windows.net/app-my-application-id-60c49603fa2444e392fe687a43ee7246/v1.0?sv=2018-03-28&sr=b&sig=4TLEMHp5tooLX2JxXkXy9T%2FFQ3cPNc5rFrMPXuw3RI0%3D&st=2021-01-28T08%3A21%3A13Z&se=2021-01-28T12%3A26%3A13Z&sp=rw","storageUrlExpiry":"2021-01-28T12:26:13.8365722Z","state":"Active","format":"zip","lastActivationTime":"2021-01-28T08:26:13.8089697Z"}}' + string: '{"type":"Microsoft.Batch/batchAccounts/applications/versions","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id/versions/v1.0","name":"v1.0","etag":"W/\"0x8D9496F2A1523C5\"","properties":{"storageUrl":"https://batch.blob.core.windows.net/app-my-application-id-c9763d64812d4bff9d27c4c8509e821f/v1.0?sv=2018-03-28&sr=b&sig=0fbwXR9Qi%2FhgI0VkFLQcmur5AUdME%2B%2Bnuy8TP0hqVB8%3D&st=2021-07-17T22%3A01%3A44Z&se=2021-07-18T02%3A06%3A44Z&sp=rw","storageUrlExpiry":"2021-07-18T02:06:44.6183416Z","state":"Active","format":"zip","lastActivationTime":"2021-07-17T22:06:44.5789856Z"}}' headers: cache-control: - no-cache content-length: - - '729' + - '738' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 08:26:13 GMT + - Sat, 17 Jul 2021 22:06:43 GMT etag: - - W/"0x8D8C3666007FC39" + - W/"0x8D9496F2A1523C5" expires: - '-1' last-modified: - - Thu, 28 Jan 2021 08:26:13 GMT + - Sat, 17 Jul 2021 22:06:44 GMT pragma: - no-cache server: @@ -428,27 +430,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id?api-version=2021-06-01 response: body: - string: '{"type":"Microsoft.Batch/batchAccounts/applications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id","name":"my_application_id","etag":"W/\"0x8D8C366604EAF06\"","properties":{"displayName":"my_updated_name","allowUpdates":false,"defaultVersion":"v1.0"}}' + string: '{"type":"Microsoft.Batch/batchAccounts/applications","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id","name":"my_application_id","etag":"W/\"0x8D9496F2A3B7781\"","properties":{"displayName":"my_updated_name","allowUpdates":false,"defaultVersion":"v1.0"}}' headers: cache-control: - no-cache content-length: - - '409' + - '414' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 08:26:14 GMT + - Sat, 17 Jul 2021 22:06:44 GMT etag: - - W/"0x8D8C366604EAF06" + - W/"0x8D9496F2A3B7781" expires: - '-1' last-modified: - - Thu, 28 Jan 2021 08:26:14 GMT + - Sat, 17 Jul 2021 22:06:44 GMT pragma: - no-cache server: @@ -462,7 +464,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1195' + - '1196' status: code: 200 message: OK @@ -476,27 +478,27 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id/versions/v1.0?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id/versions/v1.0?api-version=2021-06-01 response: body: - string: '{"type":"Microsoft.Batch/batchAccounts/applications/versions","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id/versions/v1.0","name":"v1.0","etag":"W/\"0x8D8C3666007FC39\"","properties":{"storageUrl":"https://batch.blob.core.windows.net/app-my-application-id-60c49603fa2444e392fe687a43ee7246/v1.0?sv=2018-03-28&sr=b&sig=TfJAF6CTUOTn6lOsxWhy%2FbwW4%2FuCcTrLDmeh2ELFHr0%3D&st=2021-01-28T08%3A21%3A14Z&se=2021-01-28T12%3A26%3A14Z&sp=r","storageUrlExpiry":"2021-01-28T12:26:14.6933115Z","state":"Active","format":"zip","lastActivationTime":"2021-01-28T08:26:13.8089697Z"}}' + string: '{"type":"Microsoft.Batch/batchAccounts/applications/versions","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id/versions/v1.0","name":"v1.0","etag":"W/\"0x8D9496F2A1523C5\"","properties":{"storageUrl":"https://batch.blob.core.windows.net/app-my-application-id-c9763d64812d4bff9d27c4c8509e821f/v1.0?sv=2018-03-28&sr=b&sig=bzU%2F1tIrVOU6PHCTZYhgcafHaSsVSUPkTOmkgKmP30E%3D&st=2021-07-17T22%3A01%3A45Z&se=2021-07-18T02%3A06%3A45Z&sp=r","storageUrlExpiry":"2021-07-18T02:06:45.0286745Z","state":"Active","format":"zip","lastActivationTime":"2021-07-17T22:06:44.5789856Z"}}' headers: cache-control: - no-cache content-length: - - '730' + - '733' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 08:26:14 GMT + - Sat, 17 Jul 2021 22:06:44 GMT etag: - - W/"0x8D8C3666007FC39" + - W/"0x8D9496F2A1523C5" expires: - '-1' last-modified: - - Thu, 28 Jan 2021 08:26:13 GMT + - Sat, 17 Jul 2021 22:06:44 GMT pragma: - no-cache server: @@ -524,9 +526,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id/versions/v1.0?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id/versions/v1.0?api-version=2021-06-01 response: body: string: '' @@ -536,7 +538,7 @@ interactions: content-length: - '0' date: - - Thu, 28 Jan 2021 08:26:14 GMT + - Sat, 17 Jul 2021 22:06:44 GMT expires: - '-1' pragma: @@ -564,9 +566,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch/applications/my_application_id?api-version=2021-06-01 response: body: string: '' @@ -576,7 +578,7 @@ interactions: content-length: - '0' date: - - Thu, 28 Jan 2021 08:26:15 GMT + - Sat, 17 Jul 2021 22:06:44 GMT expires: - '-1' pragma: @@ -604,9 +606,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_applications93ef11ff/providers/Microsoft.Batch/batchAccounts/batch?api-version=2021-06-01 response: body: string: '' @@ -616,11 +618,11 @@ interactions: content-length: - '0' date: - - Thu, 28 Jan 2021 08:26:16 GMT + - Sat, 17 Jul 2021 22:06:44 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/westcentralus/accountOperationResults/batch-be02772b-3b47-4914-a255-f8d6e3c3216b?api-version=2021-01-01 + - https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/eastus/accountOperationResults/batch-f5180ce0-a717-44f8-ae2f-e8d4b5365005?api-version=2021-06-01 pragma: - no-cache server: @@ -644,9 +646,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/westcentralus/accountOperationResults/batch-be02772b-3b47-4914-a255-f8d6e3c3216b?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/eastus/accountOperationResults/batch-f5180ce0-a717-44f8-ae2f-e8d4b5365005?api-version=2021-06-01 response: body: string: '' @@ -656,7 +658,7 @@ interactions: content-length: - '0' date: - - Thu, 28 Jan 2021 08:26:31 GMT + - Sat, 17 Jul 2021 22:07:00 GMT expires: - '-1' pragma: diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_byos_account.yaml b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_byos_account.yaml index 6d643449b173..84bf0af21cfd 100644 --- a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_byos_account.yaml +++ b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_byos_account.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{"location": "westcentralus", "properties": {"poolAllocationMode": "UserSubscription", + body: '{"location": "eastus", "properties": {"poolAllocationMode": "UserSubscription", "publicNetworkAccess": "Enabled"}}' headers: Accept: @@ -10,17 +10,17 @@ interactions: Connection: - keep-alive Content-Length: - - '121' + - '114' Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_byos_account94171201/providers/Microsoft.Batch/batchAccounts/batch94171201?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_byos_account94171201/providers/Microsoft.Batch/batchAccounts/batch94171201?api-version=2021-06-01 response: body: string: '{"error":{"code":"InvalidRequestBody","message":"The specified Request - Body is not syntactically valid.\nRequestId:eee69012-9a70-45b4-bad1-7513bb045eb1\nTime:2021-01-28T07:51:09.9732141Z","target":"BatchAccount","details":[{"code":"Reason","message":"keyVaultReference + Body is not syntactically valid.\nRequestId:fc9a4bdb-6107-464f-9a2d-f35d3a1e41f5\nTime:2021-07-17T22:07:05.8140797Z","target":"BatchAccount","details":[{"code":"Reason","message":"keyVaultReference must be set if poolAllocationMode is specified as ''UserSubscription'' on a PUT request"}]}}' headers: @@ -31,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 07:51:10 GMT + - Sat, 17 Jul 2021 22:07:06 GMT expires: - '-1' pragma: diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_certificates.yaml b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_certificates.yaml index 2a21452760a7..141e551cefbb 100644 --- a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_certificates.yaml +++ b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_certificates.yaml @@ -15,27 +15,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2021-06-01 response: body: - string: '{"name":"sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","type":"Microsoft.Batch/batchAccounts/certificates","etag":"W/\"0x8D8C3651E868712\"","properties":{"thumbprintAlgorithm":"sha1","thumbprint":"cff2ab63c8c955aaf71989efa641b906558d9fb7","provisioningState":"Succeeded","provisioningStateTransitionTime":"2021-01-28T08:17:14.4151117Z","format":"Pfx","publicData":"MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd+nalxwlQ9+qbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq+x1LG83761Ir8PiSy+6oxwCHOaYZyvheW0PByntC/WFwUipfn78"}}' + string: '{"name":"sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","type":"Microsoft.Batch/batchAccounts/certificates","etag":"W/\"0x8D9496F42224ADA\"","properties":{"thumbprintAlgorithm":"sha1","thumbprint":"cff2ab63c8c955aaf71989efa641b906558d9fb7","provisioningState":"Succeeded","provisioningStateTransitionTime":"2021-07-17T22:07:24.9312871Z","format":"Pfx","publicData":"MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd+nalxwlQ9+qbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq+x1LG83761Ir8PiSy+6oxwCHOaYZyvheW0PByntC/WFwUipfn78"}}' headers: cache-control: - no-cache content-length: - - '1189' + - '1194' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 08:17:13 GMT + - Sat, 17 Jul 2021 22:07:24 GMT etag: - - W/"0x8D8C3651E868712" + - W/"0x8D9496F42224ADA" expires: - '-1' last-modified: - - Thu, 28 Jan 2021 08:17:14 GMT + - Sat, 17 Jul 2021 22:07:24 GMT pragma: - no-cache server: @@ -49,7 +49,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1195' status: code: 200 message: OK @@ -63,21 +63,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates?api-version=2021-06-01 response: body: - string: '{"value":[{"name":"sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","type":"Microsoft.Batch/batchAccounts/certificates","etag":"W/\"0x8D8C3651E868712\"","properties":{"thumbprintAlgorithm":"sha1","thumbprint":"cff2ab63c8c955aaf71989efa641b906558d9fb7","provisioningState":"Succeeded","provisioningStateTransitionTime":"2021-01-28T08:17:14.4151117Z","format":"Pfx","publicData":"MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd+nalxwlQ9+qbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq+x1LG83761Ir8PiSy+6oxwCHOaYZyvheW0PByntC/WFwUipfn78"}}]}' + string: '{"value":[{"name":"sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","type":"Microsoft.Batch/batchAccounts/certificates","etag":"W/\"0x8D9496F42224ADA\"","properties":{"thumbprintAlgorithm":"sha1","thumbprint":"cff2ab63c8c955aaf71989efa641b906558d9fb7","provisioningState":"Succeeded","provisioningStateTransitionTime":"2021-07-17T22:07:24.9312871Z","format":"Pfx","publicData":"MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd+nalxwlQ9+qbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq+x1LG83761Ir8PiSy+6oxwCHOaYZyvheW0PByntC/WFwUipfn78"}}]}' headers: cache-control: - no-cache content-length: - - '1201' + - '1206' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 08:17:13 GMT + - Sat, 17 Jul 2021 22:07:24 GMT expires: - '-1' pragma: @@ -105,27 +105,27 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2021-06-01 response: body: - string: '{"name":"sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","type":"Microsoft.Batch/batchAccounts/certificates","etag":"W/\"0x8D8C3651E868712\"","properties":{"thumbprintAlgorithm":"sha1","thumbprint":"cff2ab63c8c955aaf71989efa641b906558d9fb7","provisioningState":"Succeeded","provisioningStateTransitionTime":"2021-01-28T08:17:14.4151117Z","format":"Pfx","publicData":"MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd+nalxwlQ9+qbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq+x1LG83761Ir8PiSy+6oxwCHOaYZyvheW0PByntC/WFwUipfn78"}}' + string: '{"name":"sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","type":"Microsoft.Batch/batchAccounts/certificates","etag":"W/\"0x8D9496F42224ADA\"","properties":{"thumbprintAlgorithm":"sha1","thumbprint":"cff2ab63c8c955aaf71989efa641b906558d9fb7","provisioningState":"Succeeded","provisioningStateTransitionTime":"2021-07-17T22:07:24.9312871Z","format":"Pfx","publicData":"MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd+nalxwlQ9+qbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq+x1LG83761Ir8PiSy+6oxwCHOaYZyvheW0PByntC/WFwUipfn78"}}' headers: cache-control: - no-cache content-length: - - '1189' + - '1194' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 08:17:14 GMT + - Sat, 17 Jul 2021 22:07:24 GMT etag: - - W/"0x8D8C3651E868712" + - W/"0x8D9496F42224ADA" expires: - '-1' last-modified: - - Thu, 28 Jan 2021 08:17:14 GMT + - Sat, 17 Jul 2021 22:07:24 GMT pragma: - no-cache server: @@ -156,27 +156,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2021-06-01 response: body: - string: '{"name":"sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","type":"Microsoft.Batch/batchAccounts/certificates","etag":"W/\"0x8D8C3651E868712\"","properties":{"thumbprintAlgorithm":"sha1","thumbprint":"cff2ab63c8c955aaf71989efa641b906558d9fb7","provisioningState":"Succeeded","provisioningStateTransitionTime":"2021-01-28T08:17:14.4151117Z","format":"Pfx","publicData":"MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd+nalxwlQ9+qbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq+x1LG83761Ir8PiSy+6oxwCHOaYZyvheW0PByntC/WFwUipfn78"}}' + string: '{"name":"sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","type":"Microsoft.Batch/batchAccounts/certificates","etag":"W/\"0x8D9496F42224ADA\"","properties":{"thumbprintAlgorithm":"sha1","thumbprint":"cff2ab63c8c955aaf71989efa641b906558d9fb7","provisioningState":"Succeeded","provisioningStateTransitionTime":"2021-07-17T22:07:24.9312871Z","format":"Pfx","publicData":"MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd+nalxwlQ9+qbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq+x1LG83761Ir8PiSy+6oxwCHOaYZyvheW0PByntC/WFwUipfn78"}}' headers: cache-control: - no-cache content-length: - - '1189' + - '1194' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 08:17:14 GMT + - Sat, 17 Jul 2021 22:07:25 GMT etag: - - W/"0x8D8C3651E868712" + - W/"0x8D9496F42224ADA" expires: - '-1' last-modified: - - Thu, 28 Jan 2021 08:17:14 GMT + - Sat, 17 Jul 2021 22:07:24 GMT pragma: - no-cache server: @@ -190,7 +190,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1194' status: code: 200 message: OK @@ -206,27 +206,27 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7/cancelDelete?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7/cancelDelete?api-version=2021-06-01 response: body: - string: '{"name":"sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","type":"Microsoft.Batch/batchAccounts/certificates","etag":"W/\"0x8D8C3651E868712\"","properties":{"thumbprintAlgorithm":"sha1","thumbprint":"cff2ab63c8c955aaf71989efa641b906558d9fb7","provisioningState":"Succeeded","provisioningStateTransitionTime":"2021-01-28T08:17:14.4151117Z","format":"Pfx","publicData":"MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd+nalxwlQ9+qbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq+x1LG83761Ir8PiSy+6oxwCHOaYZyvheW0PByntC/WFwUipfn78"}}' + string: '{"name":"sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7","type":"Microsoft.Batch/batchAccounts/certificates","etag":"W/\"0x8D9496F42224ADA\"","properties":{"thumbprintAlgorithm":"sha1","thumbprint":"cff2ab63c8c955aaf71989efa641b906558d9fb7","provisioningState":"Succeeded","provisioningStateTransitionTime":"2021-07-17T22:07:24.9312871Z","format":"Pfx","publicData":"MIIBrzCCAV2gAwIBAgIQHZGt2k0LCLFKYYCFxlJnkTAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE2MDEwMTA3MDAwMFoXDTE4MDEwMTA3MDAwMFowEjEQMA4GA1UEAxMHbm9kZXNkazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuX4XMWyR8cQRCA81TjHOerNOFOpOBj2O8jEdZvqwRlUYgMleEY2OlPd+nalxwlQ9+qbNkNGfjnhIMgiJ5CMlXgdRMF3E6DnMnktmHFG9L0VmQ6Lgt7bhXR8IitRHeYlvy5LJlw6Lcle5Kas2j4ThYjLQbjBMDSXD4HvZNe4UYEUCAwEAAaNLMEkwRwYDVR0BBEAwPoAQEuQJLQYdHU8AjWEh3BZkY6EYMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5ghAGN2wAqgBkihHPuNSqXDX0MAkGBSsOAwIdBQADQQB5djPe0G6c3Z8DuR6EQbIhBMTnC0zYPhigq+x1LG83761Ir8PiSy+6oxwCHOaYZyvheW0PByntC/WFwUipfn78"}}' headers: cache-control: - no-cache content-length: - - '1189' + - '1194' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 08:17:15 GMT + - Sat, 17 Jul 2021 22:07:25 GMT etag: - - W/"0x8D8C3651E868712" + - W/"0x8D9496F42224ADA" expires: - '-1' last-modified: - - Thu, 28 Jan 2021 08:17:14 GMT + - Sat, 17 Jul 2021 22:07:24 GMT pragma: - no-cache server: @@ -240,7 +240,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 200 message: OK @@ -256,9 +256,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificates/SHA1-cff2ab63c8c955aaf71989efa641b906558d9fb7?api-version=2021-06-01 response: body: string: '' @@ -268,11 +268,11 @@ interactions: content-length: - '0' date: - - Thu, 28 Jan 2021 08:17:15 GMT + - Sat, 17 Jul 2021 22:07:25 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8D8C3651FB2EB60?api-version=2021-01-01 + - https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8D9496F428D88BD?api-version=2021-06-01 pragma: - no-cache server: @@ -282,7 +282,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + - '14996' status: code: 202 message: Accepted @@ -296,9 +296,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8D8C3651FB2EB60?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8D9496F428D88BD?api-version=2021-06-01 response: body: string: '' @@ -308,11 +308,11 @@ interactions: content-length: - '0' date: - - Thu, 28 Jan 2021 08:17:31 GMT + - Sat, 17 Jul 2021 22:07:40 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d8c3651fb2eb60?api-version=2021-01-01 + - https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d9496f428d88bd?api-version=2021-06-01 pragma: - no-cache server: @@ -334,9 +334,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d8c3651fb2eb60?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d9496f428d88bd?api-version=2021-06-01 response: body: string: '' @@ -346,11 +346,11 @@ interactions: content-length: - '0' date: - - Thu, 28 Jan 2021 08:17:47 GMT + - Sat, 17 Jul 2021 22:07:54 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d8c3651fb2eb60?api-version=2021-01-01 + - https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d9496f428d88bd?api-version=2021-06-01 pragma: - no-cache server: @@ -372,9 +372,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d8c3651fb2eb60?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d9496f428d88bd?api-version=2021-06-01 response: body: string: '' @@ -384,11 +384,11 @@ interactions: content-length: - '0' date: - - Thu, 28 Jan 2021 08:18:02 GMT + - Sat, 17 Jul 2021 22:08:11 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d8c3651fb2eb60?api-version=2021-01-01 + - https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d9496f428d88bd?api-version=2021-06-01 pragma: - no-cache server: @@ -410,9 +410,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d8c3651fb2eb60?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d9496f428d88bd?api-version=2021-06-01 response: body: string: '' @@ -422,11 +422,11 @@ interactions: content-length: - '0' date: - - Thu, 28 Jan 2021 08:18:17 GMT + - Sat, 17 Jul 2021 22:08:26 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d8c3651fb2eb60?api-version=2021-01-01 + - https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d9496f428d88bd?api-version=2021-06-01 pragma: - no-cache server: @@ -448,9 +448,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d8c3651fb2eb60?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_certificates93b711ee/providers/Microsoft.Batch/batchAccounts/batch93b711ee/certificateOperationResults/sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7-8d9496f428d88bd?api-version=2021-06-01 response: body: string: '' @@ -460,7 +460,7 @@ interactions: content-length: - '0' date: - - Thu, 28 Jan 2021 08:18:32 GMT + - Sat, 17 Jul 2021 22:08:40 GMT expires: - '-1' pragma: diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_list_operations.yaml b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_list_operations.yaml index 7148bfcd5055..a112c47f2734 100644 --- a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_list_operations.yaml +++ b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_list_operations.yaml @@ -9,9 +9,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: GET - uri: https://management.azure.com/providers/Microsoft.Batch/operations?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/providers/Microsoft.Batch/operations?api-version=2021-06-01 response: body: string: '{"value":[{"name":"Microsoft.Batch/batchAccounts/providers/Microsoft.Insights/diagnosticSettings/read","display":{"provider":"Microsoft @@ -171,7 +171,13 @@ interactions: Batch","resource":"Pools","operation":"Disable Pool AutoScale","description":"Disables automatic scaling for a Batch account pool"},"isDataAction":false},{"name":"Microsoft.Batch/batchAccounts/poolOperationResults/read","display":{"provider":"Microsoft Batch","resource":"Pools","operation":"Get Pool Operation Results","description":"Gets - the results of a long running pool operation on a Batch account"},"isDataAction":false},{"name":"Microsoft.Batch/batchAccounts/privateLinkResources/read","display":{"provider":"Microsoft + the results of a long running pool operation on a Batch account"},"isDataAction":false},{"name":"Microsoft.Batch/locations/virtualMachineSkus/read","display":{"provider":"Microsoft + Batch","resource":"Batch Supported Skus","operation":"List Supported Batch + Virtual Machine VM","description":"Lists available Batch supported Virtual + Machine VM sizes at the given location"},"isDataAction":false},{"name":"Microsoft.Batch/locations/cloudServiceSkus/read","display":{"provider":"Microsoft + Batch","resource":"Batch Supported Skus","operation":"List Supported Batch + Cloud Service VM","description":"Lists available Batch supported Cloud Service + VM sizes at the given location"},"isDataAction":false},{"name":"Microsoft.Batch/batchAccounts/privateLinkResources/read","display":{"provider":"Microsoft Batch","resource":"PrivateLinkResources","operation":"Get or List Private link resources","description":"Gets the properties of a Private link resource or Lists Private link resources on a Batch account"},"isDataAction":false},{"name":"Microsoft.Batch/batchAccounts/privateEndpointConnections/write","display":{"provider":"Microsoft @@ -199,16 +205,19 @@ interactions: Batch","resource":"PrivateEndpointConnectionProxies","operation":"Get Batch account private endpoint connection proxy operation results","description":"Gets the results of a long running Batch account private endpoint connection proxy - operation"},"isDataAction":false,"origin":"system"}]}' + operation"},"isDataAction":false,"origin":"system"},{"name":"Microsoft.Batch/batchAccounts/outboundNetworkDependenciesEndpoints/read","display":{"provider":"Microsoft + Batch","resource":"Outbound Network Dependencies Endpoints","operation":"List + Outbound Network Dependency Endpoints","description":"Lists the outbound network + dependency endpoints for a Batch account"},"isDataAction":false,"origin":"user,system"}]}' headers: cache-control: - no-cache content-length: - - '27226' + - '28194' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 07:52:02 GMT + - Sat, 17 Jul 2021 22:14:14 GMT expires: - '-1' pragma: diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_pools.yaml b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_pools.yaml index eafc0b41ad28..a1012999a6a8 100644 --- a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_pools.yaml +++ b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_pools.yaml @@ -19,28 +19,28 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_paas_pool?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_paas_pool?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_paas_pool","name":"test_paas_pool","type":"Microsoft.Batch/batchAccounts/pools","etag":"W/\"0x8D8C362FC7D7373\"","properties":{"displayName":"test_pool","lastModified":"2021-01-28T08:01:58.3216499Z","creationTime":"2021-01-28T08:01:58.3216499Z","provisioningState":"Succeeded","provisioningStateTransitionTime":"2021-01-28T08:01:58.3216499Z","allocationState":"Resizing","allocationStateTransitionTime":"2021-01-28T08:01:58.3216499Z","vmSize":"Small","interNodeCommunication":"Disabled","taskSlotsPerNode":1,"taskSchedulingPolicy":{"nodeFillType":"Spread"},"deploymentConfiguration":{"cloudServiceConfiguration":{"osFamily":"5","osVersion":"*"}},"scaleSettings":{"fixedScale":{"targetDedicatedNodes":0,"targetLowPriorityNodes":0,"resizeTimeout":"PT15M"}},"startTask":{"commandLine":"cmd.exe - /c \"echo hello world\"","resourceFiles":[{"filePath":"filename.txt","httpUrl":"https://blobsource.com"}],"environmentSettings":[{"name":"ENV_VAR","value":"env_value"}],"userIdentity":{"autoUser":{"scope":"Pool","elevationLevel":"Admin"}},"maxTaskRetryCount":0,"waitForSuccess":true},"userAccounts":[{"name":"UserName","elevationLevel":"NonAdmin","windowsUserConfiguration":{"loginMode":"Interactive"}}],"resizeOperationStatus":{"targetDedicatedNodes":0,"nodeDeallocationOption":"Requeue","resizeTimeout":"PT15M","startTime":"2021-01-28T08:01:58.3216499Z"},"currentDedicatedNodes":0,"currentLowPriorityNodes":0}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_paas_pool","name":"test_paas_pool","type":"Microsoft.Batch/batchAccounts/pools","etag":"W/\"0x8D94970416A79C2\"","properties":{"displayName":"test_pool","lastModified":"2021-07-17T22:14:33.2297666Z","creationTime":"2021-07-17T22:14:33.2297666Z","provisioningState":"Succeeded","provisioningStateTransitionTime":"2021-07-17T22:14:33.2297666Z","allocationState":"Resizing","allocationStateTransitionTime":"2021-07-17T22:14:33.2297666Z","vmSize":"Small","interNodeCommunication":"Disabled","taskSlotsPerNode":1,"taskSchedulingPolicy":{"nodeFillType":"Spread"},"deploymentConfiguration":{"cloudServiceConfiguration":{"osFamily":"5","osVersion":"*"}},"scaleSettings":{"fixedScale":{"targetDedicatedNodes":0,"targetLowPriorityNodes":0,"resizeTimeout":"PT15M"}},"startTask":{"commandLine":"cmd.exe + /c \"echo hello world\"","resourceFiles":[{"filePath":"filename.txt","httpUrl":"https://blobsource.com"}],"environmentSettings":[{"name":"ENV_VAR","value":"env_value"}],"userIdentity":{"autoUser":{"scope":"Pool","elevationLevel":"Admin"}},"maxTaskRetryCount":0,"waitForSuccess":true},"userAccounts":[{"name":"UserName","elevationLevel":"NonAdmin","windowsUserConfiguration":{"loginMode":"Interactive"}}],"resizeOperationStatus":{"targetDedicatedNodes":0,"nodeDeallocationOption":"Requeue","resizeTimeout":"PT15M","startTime":"2021-07-17T22:14:33.2297666Z"},"currentDedicatedNodes":0,"currentLowPriorityNodes":0}}' headers: cache-control: - no-cache content-length: - - '1588' + - '1593' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 08:01:59 GMT + - Sat, 17 Jul 2021 22:14:33 GMT etag: - - W/"0x8D8C362FC7D7373" + - W/"0x8D94970416A79C2" expires: - '-1' last-modified: - - Thu, 28 Jan 2021 08:01:58 GMT + - Sat, 17 Jul 2021 22:14:33 GMT pragma: - no-cache server: @@ -77,28 +77,28 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool","name":"test_iaas_pool","type":"Microsoft.Batch/batchAccounts/pools","etag":"W/\"0x8D8C362FE0C02AB\"","properties":{"displayName":"test_pool","lastModified":"2021-01-28T08:02:00.9336491Z","creationTime":"2021-01-28T08:02:00.9336491Z","provisioningState":"Succeeded","provisioningStateTransitionTime":"2021-01-28T08:02:00.9336491Z","allocationState":"Resizing","allocationStateTransitionTime":"2021-01-28T08:02:00.9336491Z","vmSize":"STANDARD_A1","interNodeCommunication":"Disabled","taskSlotsPerNode":1,"taskSchedulingPolicy":{"nodeFillType":"Spread"},"deploymentConfiguration":{"virtualMachineConfiguration":{"imageReference":{"publisher":"MicrosoftWindowsServer","offer":"WindowsServer","sku":"2016-Datacenter-smalldisk","version":"latest"},"nodeAgentSkuId":"batch.node.windows - amd64","windowsConfiguration":{"enableAutomaticUpdates":true}}},"scaleSettings":{"fixedScale":{"targetDedicatedNodes":0,"targetLowPriorityNodes":0,"resizeTimeout":"PT15M"}},"resizeOperationStatus":{"targetDedicatedNodes":0,"nodeDeallocationOption":"Requeue","resizeTimeout":"PT15M","startTime":"2021-01-28T08:02:00.9336491Z"},"currentDedicatedNodes":0,"currentLowPriorityNodes":0}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool","name":"test_iaas_pool","type":"Microsoft.Batch/batchAccounts/pools","etag":"W/\"0x8D94970419381F9\"","properties":{"displayName":"test_pool","lastModified":"2021-07-17T22:14:33.4986745Z","creationTime":"2021-07-17T22:14:33.4986745Z","provisioningState":"Succeeded","provisioningStateTransitionTime":"2021-07-17T22:14:33.4986745Z","allocationState":"Resizing","allocationStateTransitionTime":"2021-07-17T22:14:33.4986745Z","vmSize":"STANDARD_A1","interNodeCommunication":"Disabled","taskSlotsPerNode":1,"taskSchedulingPolicy":{"nodeFillType":"Spread"},"deploymentConfiguration":{"virtualMachineConfiguration":{"imageReference":{"publisher":"MicrosoftWindowsServer","offer":"WindowsServer","sku":"2016-Datacenter-smalldisk","version":"latest"},"nodeAgentSkuId":"batch.node.windows + amd64","windowsConfiguration":{"enableAutomaticUpdates":true}}},"scaleSettings":{"fixedScale":{"targetDedicatedNodes":0,"targetLowPriorityNodes":0,"resizeTimeout":"PT15M"}},"resizeOperationStatus":{"targetDedicatedNodes":0,"nodeDeallocationOption":"Requeue","resizeTimeout":"PT15M","startTime":"2021-07-17T22:14:33.4986745Z"},"currentDedicatedNodes":0,"currentLowPriorityNodes":0}}' headers: cache-control: - no-cache content-length: - - '1357' + - '1362' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 08:02:00 GMT + - Sat, 17 Jul 2021 22:14:33 GMT etag: - - W/"0x8D8C362FE0C02AB" + - W/"0x8D94970419381F9" expires: - '-1' last-modified: - - Thu, 28 Jan 2021 08:02:00 GMT + - Sat, 17 Jul 2021 22:14:33 GMT pragma: - no-cache server: @@ -126,23 +126,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools?api-version=2021-06-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool","name":"test_iaas_pool","type":"Microsoft.Batch/batchAccounts/pools","etag":"W/\"0x8D8C362FE0C02AB\"","properties":{"displayName":"test_pool","lastModified":"2021-01-28T08:02:00.9336491Z","creationTime":"2021-01-28T08:02:00.9336491Z","provisioningState":"Succeeded","provisioningStateTransitionTime":"2021-01-28T08:02:00.9336491Z","allocationState":"Resizing","allocationStateTransitionTime":"2021-01-28T08:02:00.9336491Z","vmSize":"STANDARD_A1","interNodeCommunication":"Disabled","taskSlotsPerNode":1,"taskSchedulingPolicy":{"nodeFillType":"Spread"},"deploymentConfiguration":{"virtualMachineConfiguration":{"imageReference":{"publisher":"MicrosoftWindowsServer","offer":"WindowsServer","sku":"2016-Datacenter-smalldisk","version":"latest"},"nodeAgentSkuId":"batch.node.windows - amd64","windowsConfiguration":{"enableAutomaticUpdates":true}}},"scaleSettings":{"fixedScale":{"targetDedicatedNodes":0,"targetLowPriorityNodes":0,"resizeTimeout":"PT15M"}},"resizeOperationStatus":{"targetDedicatedNodes":0,"nodeDeallocationOption":"Requeue","resizeTimeout":"PT15M","startTime":"2021-01-28T08:02:00.9336491Z"},"currentDedicatedNodes":0,"currentLowPriorityNodes":0}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_paas_pool","name":"test_paas_pool","type":"Microsoft.Batch/batchAccounts/pools","etag":"W/\"0x8D8C362FC7D7373\"","properties":{"displayName":"test_pool","lastModified":"2021-01-28T08:01:58.3216499Z","creationTime":"2021-01-28T08:01:58.3216499Z","provisioningState":"Succeeded","provisioningStateTransitionTime":"2021-01-28T08:01:58.3216499Z","allocationState":"Steady","allocationStateTransitionTime":"2021-01-28T08:01:59.8527416Z","vmSize":"Small","interNodeCommunication":"Disabled","taskSlotsPerNode":1,"taskSchedulingPolicy":{"nodeFillType":"Spread"},"deploymentConfiguration":{"cloudServiceConfiguration":{"osFamily":"5","osVersion":"*"}},"scaleSettings":{"fixedScale":{"targetDedicatedNodes":0,"targetLowPriorityNodes":0,"resizeTimeout":"PT15M"}},"startTask":{"commandLine":"cmd.exe - /c \"echo hello world\"","resourceFiles":[{"filePath":"filename.txt","httpUrl":"https://blobsource.com"}],"environmentSettings":[{"name":"ENV_VAR","value":"env_value"}],"userIdentity":{"autoUser":{"scope":"Pool","elevationLevel":"Admin"}},"maxTaskRetryCount":0,"waitForSuccess":true},"userAccounts":[{"name":"UserName","elevationLevel":"NonAdmin","windowsUserConfiguration":{"loginMode":"Interactive"}}],"resizeOperationStatus":{"targetDedicatedNodes":0,"nodeDeallocationOption":"Requeue","resizeTimeout":"PT15M","startTime":"2021-01-28T08:01:58.3216499Z"},"currentDedicatedNodes":0,"currentLowPriorityNodes":0}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool","name":"test_iaas_pool","type":"Microsoft.Batch/batchAccounts/pools","etag":"W/\"0x8D94970419381F9\"","properties":{"displayName":"test_pool","lastModified":"2021-07-17T22:14:33.4986745Z","creationTime":"2021-07-17T22:14:33.4986745Z","provisioningState":"Succeeded","provisioningStateTransitionTime":"2021-07-17T22:14:33.4986745Z","allocationState":"Resizing","allocationStateTransitionTime":"2021-07-17T22:14:33.4986745Z","vmSize":"STANDARD_A1","interNodeCommunication":"Disabled","taskSlotsPerNode":1,"taskSchedulingPolicy":{"nodeFillType":"Spread"},"deploymentConfiguration":{"virtualMachineConfiguration":{"imageReference":{"publisher":"MicrosoftWindowsServer","offer":"WindowsServer","sku":"2016-Datacenter-smalldisk","version":"latest"},"nodeAgentSkuId":"batch.node.windows + amd64","windowsConfiguration":{"enableAutomaticUpdates":true}}},"scaleSettings":{"fixedScale":{"targetDedicatedNodes":0,"targetLowPriorityNodes":0,"resizeTimeout":"PT15M"}},"resizeOperationStatus":{"targetDedicatedNodes":0,"nodeDeallocationOption":"Requeue","resizeTimeout":"PT15M","startTime":"2021-07-17T22:14:33.4986745Z"},"currentDedicatedNodes":0,"currentLowPriorityNodes":0}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_paas_pool","name":"test_paas_pool","type":"Microsoft.Batch/batchAccounts/pools","etag":"W/\"0x8D94970416A79C2\"","properties":{"displayName":"test_pool","lastModified":"2021-07-17T22:14:33.2297666Z","creationTime":"2021-07-17T22:14:33.2297666Z","provisioningState":"Succeeded","provisioningStateTransitionTime":"2021-07-17T22:14:33.2297666Z","allocationState":"Resizing","allocationStateTransitionTime":"2021-07-17T22:14:33.2297666Z","vmSize":"Small","interNodeCommunication":"Disabled","taskSlotsPerNode":1,"taskSchedulingPolicy":{"nodeFillType":"Spread"},"deploymentConfiguration":{"cloudServiceConfiguration":{"osFamily":"5","osVersion":"*"}},"scaleSettings":{"fixedScale":{"targetDedicatedNodes":0,"targetLowPriorityNodes":0,"resizeTimeout":"PT15M"}},"startTask":{"commandLine":"cmd.exe + /c \"echo hello world\"","resourceFiles":[{"filePath":"filename.txt","httpUrl":"https://blobsource.com"}],"environmentSettings":[{"name":"ENV_VAR","value":"env_value"}],"userIdentity":{"autoUser":{"scope":"Pool","elevationLevel":"Admin"}},"maxTaskRetryCount":0,"waitForSuccess":true},"userAccounts":[{"name":"UserName","elevationLevel":"NonAdmin","windowsUserConfiguration":{"loginMode":"Interactive"}}],"resizeOperationStatus":{"targetDedicatedNodes":0,"nodeDeallocationOption":"Requeue","resizeTimeout":"PT15M","startTime":"2021-07-17T22:14:33.2297666Z"},"currentDedicatedNodes":0,"currentLowPriorityNodes":0}}]}' headers: cache-control: - no-cache content-length: - - '2956' + - '2968' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 08:02:00 GMT + - Sat, 17 Jul 2021 22:14:33 GMT expires: - '-1' pragma: @@ -174,28 +174,28 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool","name":"test_iaas_pool","type":"Microsoft.Batch/batchAccounts/pools","etag":"W/\"0x8D8C36307A7127E\"","properties":{"displayName":"test_pool","lastModified":"2021-01-28T08:02:17.0493566Z","creationTime":"2021-01-28T08:02:00.9336491Z","provisioningState":"Succeeded","provisioningStateTransitionTime":"2021-01-28T08:02:00.9336491Z","allocationState":"Resizing","allocationStateTransitionTime":"2021-01-28T08:02:17.0493566Z","vmSize":"STANDARD_A1","interNodeCommunication":"Disabled","taskSlotsPerNode":1,"taskSchedulingPolicy":{"nodeFillType":"Spread"},"deploymentConfiguration":{"virtualMachineConfiguration":{"imageReference":{"publisher":"MicrosoftWindowsServer","offer":"WindowsServer","sku":"2016-Datacenter-smalldisk","version":"latest"},"nodeAgentSkuId":"batch.node.windows - amd64","windowsConfiguration":{"enableAutomaticUpdates":true}}},"scaleSettings":{"autoScale":{"formula":"$TargetDedicatedNodes=0","evaluationInterval":"PT15M"}},"currentDedicatedNodes":0,"currentLowPriorityNodes":0,"autoScaleRun":{"evaluationTime":"2021-01-28T08:02:17.0493566Z","results":"$TargetDedicatedNodes=0;$TargetLowPriorityNodes=0;$NodeDeallocationOption=requeue"}}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool","name":"test_iaas_pool","type":"Microsoft.Batch/batchAccounts/pools","etag":"W/\"0x8D949704AC35F51\"","properties":{"displayName":"test_pool","lastModified":"2021-07-17T22:14:48.9118545Z","creationTime":"2021-07-17T22:14:33.4986745Z","provisioningState":"Succeeded","provisioningStateTransitionTime":"2021-07-17T22:14:33.4986745Z","allocationState":"Resizing","allocationStateTransitionTime":"2021-07-17T22:14:48.9118545Z","vmSize":"STANDARD_A1","interNodeCommunication":"Disabled","taskSlotsPerNode":1,"taskSchedulingPolicy":{"nodeFillType":"Spread"},"deploymentConfiguration":{"virtualMachineConfiguration":{"imageReference":{"publisher":"MicrosoftWindowsServer","offer":"WindowsServer","sku":"2016-Datacenter-smalldisk","version":"latest"},"nodeAgentSkuId":"batch.node.windows + amd64","windowsConfiguration":{"enableAutomaticUpdates":true}}},"scaleSettings":{"autoScale":{"formula":"$TargetDedicatedNodes=0","evaluationInterval":"PT15M"}},"currentDedicatedNodes":0,"currentLowPriorityNodes":0,"autoScaleRun":{"evaluationTime":"2021-07-17T22:14:48.9118545Z","results":"$TargetDedicatedNodes=0;$TargetLowPriorityNodes=0;$NodeDeallocationOption=requeue"}}}' headers: cache-control: - no-cache content-length: - - '1351' + - '1356' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 08:02:16 GMT + - Sat, 17 Jul 2021 22:14:48 GMT etag: - - W/"0x8D8C36307A7127E" + - W/"0x8D949704AC35F51" expires: - '-1' last-modified: - - Thu, 28 Jan 2021 08:02:17 GMT + - Sat, 17 Jul 2021 22:14:48 GMT pragma: - no-cache server: @@ -223,28 +223,28 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool","name":"test_iaas_pool","type":"Microsoft.Batch/batchAccounts/pools","etag":"W/\"0x8D8C36307A7127E\"","properties":{"displayName":"test_pool","lastModified":"2021-01-28T08:02:17.0493566Z","creationTime":"2021-01-28T08:02:00.9336491Z","provisioningState":"Succeeded","provisioningStateTransitionTime":"2021-01-28T08:02:00.9336491Z","allocationState":"Steady","allocationStateTransitionTime":"2021-01-28T08:02:17.1073523Z","vmSize":"STANDARD_A1","interNodeCommunication":"Disabled","taskSlotsPerNode":1,"taskSchedulingPolicy":{"nodeFillType":"Spread"},"deploymentConfiguration":{"virtualMachineConfiguration":{"imageReference":{"publisher":"MicrosoftWindowsServer","offer":"WindowsServer","sku":"2016-Datacenter-smalldisk","version":"latest"},"nodeAgentSkuId":"batch.node.windows - amd64","windowsConfiguration":{"enableAutomaticUpdates":true}}},"scaleSettings":{"autoScale":{"formula":"$TargetDedicatedNodes=0","evaluationInterval":"PT15M"}},"resizeOperationStatus":{"targetDedicatedNodes":0,"nodeDeallocationOption":"Requeue","resizeTimeout":"PT15M","startTime":"2021-01-28T08:02:00.9336491Z"},"currentDedicatedNodes":0,"currentLowPriorityNodes":0,"autoScaleRun":{"evaluationTime":"2021-01-28T08:02:17.0493566Z","results":"$TargetDedicatedNodes=0;$TargetLowPriorityNodes=0;$NodeDeallocationOption=requeue"}}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool","name":"test_iaas_pool","type":"Microsoft.Batch/batchAccounts/pools","etag":"W/\"0x8D949704AC35F51\"","properties":{"displayName":"test_pool","lastModified":"2021-07-17T22:14:48.9118545Z","creationTime":"2021-07-17T22:14:33.4986745Z","provisioningState":"Succeeded","provisioningStateTransitionTime":"2021-07-17T22:14:33.4986745Z","allocationState":"Steady","allocationStateTransitionTime":"2021-07-17T22:14:49.0845641Z","vmSize":"STANDARD_A1","interNodeCommunication":"Disabled","taskSlotsPerNode":1,"taskSchedulingPolicy":{"nodeFillType":"Spread"},"deploymentConfiguration":{"virtualMachineConfiguration":{"imageReference":{"publisher":"MicrosoftWindowsServer","offer":"WindowsServer","sku":"2016-Datacenter-smalldisk","version":"latest"},"nodeAgentSkuId":"batch.node.windows + amd64","windowsConfiguration":{"enableAutomaticUpdates":true}}},"scaleSettings":{"autoScale":{"formula":"$TargetDedicatedNodes=0","evaluationInterval":"PT15M"}},"resizeOperationStatus":{"targetDedicatedNodes":0,"nodeDeallocationOption":"Requeue","resizeTimeout":"PT15M","startTime":"2021-07-17T22:14:33.4986745Z"},"currentDedicatedNodes":0,"currentLowPriorityNodes":0,"autoScaleRun":{"evaluationTime":"2021-07-17T22:14:48.9118545Z","results":"$TargetDedicatedNodes=0;$TargetLowPriorityNodes=0;$NodeDeallocationOption=requeue"}}}' headers: cache-control: - no-cache content-length: - - '1502' + - '1507' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 08:02:16 GMT + - Sat, 17 Jul 2021 22:14:48 GMT etag: - - W/"0x8D8C36307A7127E" + - W/"0x8D949704AC35F51" expires: - '-1' last-modified: - - Thu, 28 Jan 2021 08:02:17 GMT + - Sat, 17 Jul 2021 22:14:48 GMT pragma: - no-cache server: @@ -272,9 +272,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/pools/test_iaas_pool?api-version=2021-06-01 response: body: string: '' @@ -284,11 +284,11 @@ interactions: content-length: - '0' date: - - Thu, 28 Jan 2021 08:02:17 GMT + - Sat, 17 Jul 2021 22:14:49 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/poolOperationResults/delete-test_iaas_pool?api-version=2021-01-01 + - https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/poolOperationResults/delete-test_iaas_pool?api-version=2021-06-01 pragma: - no-cache server: @@ -298,7 +298,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14997' + - '14999' status: code: 202 message: Accepted @@ -312,9 +312,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/poolOperationResults/delete-test_iaas_pool?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_batch_test_mgmt_batch_pools1f5c0f25/providers/Microsoft.Batch/batchAccounts/batch1f5c0f25/poolOperationResults/delete-test_iaas_pool?api-version=2021-06-01 response: body: string: '' @@ -324,7 +324,7 @@ interactions: content-length: - '0' date: - - Thu, 28 Jan 2021 08:02:32 GMT + - Sat, 17 Jul 2021 22:15:04 GMT expires: - '-1' pragma: diff --git a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_subscription_quota.yaml b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_subscription_quota.yaml index 5e0ebd55cb6e..883d8391a8cc 100644 --- a/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_subscription_quota.yaml +++ b/sdk/batch/azure-mgmt-batch/tests/recordings/test_mgmt_batch.test_mgmt_batch_subscription_quota.yaml @@ -9,21 +9,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-batch/14.0.0b2 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-batch/16.0.0 Python/3.8.3 (macOS-10.15.7-x86_64-i386-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/westcentralus/quotas?api-version=2021-01-01 + uri: https://centraluseuap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch/locations/eastus/quotas?api-version=2021-06-01 response: body: - string: '{"accountQuota":3}' + string: '{"accountQuota":1000}' headers: cache-control: - no-cache content-length: - - '18' + - '21' content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 07:58:36 GMT + - Sat, 17 Jul 2021 22:20:36 GMT expires: - '-1' pragma: diff --git a/sdk/batch/azure-mgmt-batch/tests/test_mgmt_batch.py b/sdk/batch/azure-mgmt-batch/tests/test_mgmt_batch.py index eaaac91e9b62..b2ee86ecd5c4 100644 --- a/sdk/batch/azure-mgmt-batch/tests/test_mgmt_batch.py +++ b/sdk/batch/azure-mgmt-batch/tests/test_mgmt_batch.py @@ -23,9 +23,15 @@ StorageAccountPreparer ) - -AZURE_LOCATION = 'westcentralus' -EXISTING_BATCH_ACCOUNT = {'name': 'sdktest2', 'location': 'westcentralus'} +# When running live, these variables may need to be updated depending on the +# test environment +AZURE_ARM_ENDPOINT = "https://centraluseuap.management.azure.com" +AZURE_LOCATION = 'eastus' +EXISTING_BATCH_ACCOUNT = {'name': 'dawatroupp2acct', 'location': 'eastus'} +EXPECTED_ACCOUNT_QUOTA = 1000 +EXPECTED_DEDICATED_CORE_QUOTA = 500 +EXPECTED_LOW_PRIO_CORE_QUOTA = 500 +EXPECTED_POOL_QUOTA = 100 class MgmtBatchTest(AzureMgmtTestCase): @@ -33,10 +39,12 @@ class MgmtBatchTest(AzureMgmtTestCase): def setUp(self): super(MgmtBatchTest, self).setUp() self.mgmt_batch_client = self.create_mgmt_client( - azure.mgmt.batch.BatchManagement) + azure.mgmt.batch.BatchManagementClient, + base_url=AZURE_ARM_ENDPOINT) if self.is_live: self.mgmt_network = self.create_mgmt_client( - azure.mgmt.network.NetworkManagementClient) + azure.mgmt.network.NetworkManagementClient, + base_url=AZURE_ARM_ENDPOINT) def _get_account_name(self): return self.get_resource_name('batch')[-24:] @@ -44,7 +52,7 @@ def _get_account_name(self): def test_mgmt_batch_list_operations(self): operations = self.mgmt_batch_client.operations.list() all_ops = list(operations) - self.assertEqual(len(all_ops), 50) + self.assertEqual(len(all_ops), 53) self.assertEqual(all_ops[0].name, 'Microsoft.Batch/batchAccounts/providers/Microsoft.Insights/diagnosticSettings/read') self.assertEqual(all_ops[0].origin, 'system') self.assertEqual(all_ops[0].display.provider, 'Microsoft Batch') @@ -53,7 +61,7 @@ def test_mgmt_batch_list_operations(self): def test_mgmt_batch_subscription_quota(self): quotas = self.mgmt_batch_client.location.get_quotas(AZURE_LOCATION) self.assertIsInstance(quotas, models.BatchLocationQuota) - self.assertEqual(quotas.account_quota, 3) + self.assertEqual(quotas.account_quota, EXPECTED_ACCOUNT_QUOTA) def test_mgmt_batch_account_name(self): # Test Invalid Account Name @@ -130,9 +138,9 @@ def test_mgmt_batch_account(self, resource_group, location): # Test Get Account account = self.mgmt_batch_client.batch_account.get(resource_group.name, account_name) - self.assertEqual(account.dedicated_core_quota, 700) - self.assertEqual(account.low_priority_core_quota, 500) - self.assertEqual(account.pool_quota, 100) + self.assertEqual(account.dedicated_core_quota, EXPECTED_DEDICATED_CORE_QUOTA) + self.assertEqual(account.low_priority_core_quota, EXPECTED_LOW_PRIO_CORE_QUOTA) + self.assertEqual(account.pool_quota, EXPECTED_POOL_QUOTA) self.assertEqual(account.pool_allocation_mode, 'BatchService') # Test List Accounts by Resource Group diff --git a/shared_requirements.txt b/shared_requirements.txt index c4835ae518fe..eeb780a3a325 100644 --- a/shared_requirements.txt +++ b/shared_requirements.txt @@ -327,3 +327,5 @@ opentelemetry-sdk<2.0.0,>=1.0.0 #override azure-mgmt-recoveryservices msrest>=0.6.21 #override azure-mgmt-avs msrest>=0.6.21 #override azure-mgmt-containerinstance msrest>=0.6.21 +#override azure-mgmt-batch msrest>=0.6.21 +#override azure-batch msrest>=0.6.21