From b0da207bb5fa03b372b30900ea11bfc6602cf2c8 Mon Sep 17 00:00:00 2001 From: Cameron Taggart Date: Mon, 17 May 2021 13:26:01 -0700 Subject: [PATCH 01/18] update to AVS 2021-06-01 API --- .../tests/latest/test_vmware_scenario.py | 3 +- .../vendored_sdks/avs_client/__init__.py | 7 +- .../vendored_sdks/avs_client/_avs_client.py | 43 +- .../avs_client/_configuration.py | 11 +- .../vendored_sdks/avs_client/_version.py | 9 + .../vendored_sdks/avs_client/aio/__init__.py | 4 +- .../avs_client/aio/_avs_client.py | 42 +- .../avs_client/aio/_configuration.py | 11 +- .../avs_client/aio/operations/__init__.py | 12 +- .../aio/operations/_addons_operations.py | 26 +- .../operations/_authorizations_operations.py | 21 +- .../aio/operations/_cloud_links_operations.py | 440 +++++++ .../aio/operations/_clusters_operations.py | 47 +- .../aio/operations/_datastores_operations.py | 51 +- .../_global_reach_connections_operations.py | 33 +- .../_hcx_enterprise_sites_operations.py | 19 +- .../aio/operations/_locations_operations.py | 8 +- .../avs_client/aio/operations/_operations.py | 6 +- .../operations/_private_clouds_operations.py | 22 +- .../operations/_script_cmdlets_operations.py | 188 +++ .../_script_executions_operations.py | 512 ++++++++ .../operations/_script_packages_operations.py | 178 +++ .../_workload_networks_operations.py | 506 +++++++- .../avs_client/models/__init__.py | 74 +- .../avs_client/models/_avs_client_enums.py | 84 +- .../avs_client/models/_models.py | 1026 +++++++++++++--- .../avs_client/models/_models_py3.py | 1082 ++++++++++++++--- .../avs_client/operations/__init__.py | 12 +- .../operations/_addons_operations.py | 26 +- .../operations/_authorizations_operations.py | 21 +- .../operations/_cloud_links_operations.py | 450 +++++++ .../operations/_clusters_operations.py | 47 +- .../operations/_datastores_operations.py | 51 +- .../_global_reach_connections_operations.py | 33 +- .../_hcx_enterprise_sites_operations.py | 19 +- .../operations/_locations_operations.py | 8 +- .../avs_client/operations/_operations.py | 6 +- .../operations/_private_clouds_operations.py | 22 +- .../operations/_script_cmdlets_operations.py | 194 +++ .../_script_executions_operations.py | 523 ++++++++ .../operations/_script_packages_operations.py | 184 +++ .../_workload_networks_operations.py | 512 +++++++- .../azext_vmware/vendored_sdks/setup.py | 37 + 43 files changed, 5952 insertions(+), 658 deletions(-) create mode 100644 src/vmware/azext_vmware/vendored_sdks/avs_client/_version.py create mode 100644 src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_cloud_links_operations.py create mode 100644 src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_cmdlets_operations.py create mode 100644 src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_executions_operations.py create mode 100644 src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_packages_operations.py create mode 100644 src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_cloud_links_operations.py create mode 100644 src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_script_cmdlets_operations.py create mode 100644 src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_script_executions_operations.py create mode 100644 src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_script_packages_operations.py create mode 100644 src/vmware/azext_vmware/vendored_sdks/setup.py diff --git a/src/vmware/azext_vmware/tests/latest/test_vmware_scenario.py b/src/vmware/azext_vmware/tests/latest/test_vmware_scenario.py index f5aab316486..83ae0fde266 100644 --- a/src/vmware/azext_vmware/tests/latest/test_vmware_scenario.py +++ b/src/vmware/azext_vmware/tests/latest/test_vmware_scenario.py @@ -19,7 +19,8 @@ def setUp(self): @ResourceGroupPreparer(name_prefix='cli_test_vmware') def test_vmware(self): self.kwargs.update({ - 'loc': 'centralus', + # 'loc': 'westcentralus', # jason + 'loc': 'eastus', # vamsi 'privatecloud': 'cloud1', 'cluster': 'pycluster1' }) diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/__init__.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/__init__.py index 941c0090219..45ca0700235 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/__init__.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/__init__.py @@ -1,10 +1,15 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 ._avs_client import AVSClient +from ._version import VERSION + +__version__ = VERSION __all__ = ['AVSClient'] try: diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/_avs_client.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/_avs_client.py index 03abbe8417d..8f5f84f3de4 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/_avs_client.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/_avs_client.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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. # -------------------------------------------------------------------------- @@ -14,6 +16,7 @@ from typing import Any, Optional from azure.core.credentials import TokenCredential + from azure.core.pipeline.transport import HttpRequest, HttpResponse from ._configuration import AVSClientConfiguration from .operations import Operations @@ -25,7 +28,11 @@ from .operations import AuthorizationsOperations from .operations import GlobalReachConnectionsOperations from .operations import WorkloadNetworksOperations +from .operations import CloudLinksOperations from .operations import AddonsOperations +from .operations import ScriptPackagesOperations +from .operations import ScriptCmdletsOperations +from .operations import ScriptExecutionsOperations from . import models @@ -50,8 +57,16 @@ class AVSClient(object): :vartype global_reach_connections: avs_client.operations.GlobalReachConnectionsOperations :ivar workload_networks: WorkloadNetworksOperations operations :vartype workload_networks: avs_client.operations.WorkloadNetworksOperations + :ivar cloud_links: CloudLinksOperations operations + :vartype cloud_links: avs_client.operations.CloudLinksOperations :ivar addons: AddonsOperations operations :vartype addons: avs_client.operations.AddonsOperations + :ivar script_packages: ScriptPackagesOperations operations + :vartype script_packages: avs_client.operations.ScriptPackagesOperations + :ivar script_cmdlets: ScriptCmdletsOperations operations + :vartype script_cmdlets: avs_client.operations.ScriptCmdletsOperations + :ivar script_executions: ScriptExecutionsOperations operations + :vartype script_executions: avs_client.operations.ScriptExecutionsOperations :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: The ID of the target subscription. @@ -96,8 +111,34 @@ def __init__( self._client, self._config, self._serialize, self._deserialize) self.workload_networks = WorkloadNetworksOperations( self._client, self._config, self._serialize, self._deserialize) + self.cloud_links = CloudLinksOperations( + self._client, self._config, self._serialize, self._deserialize) self.addons = AddonsOperations( self._client, self._config, self._serialize, self._deserialize) + self.script_packages = ScriptPackagesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.script_cmdlets = ScriptCmdletsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.script_executions = ScriptExecutionsOperations( + 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', min_length=1), + } + 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 diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/_configuration.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/_configuration.py index f7727e7138a..345b679841e 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/_configuration.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/_configuration.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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. # -------------------------------------------------------------------------- @@ -10,13 +12,14 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from ._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from typing import Any from azure.core.credentials import TokenCredential -VERSION = "unknown" class AVSClientConfiguration(Configuration): """Configuration for AVSClient. @@ -45,9 +48,9 @@ def __init__( self.credential = credential self.subscription_id = subscription_id - self.api_version = "2021-01-01-preview" + self.api_version = "2021-06-01" self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) - kwargs.setdefault('sdk_moniker', 'avsclient/{}'.format(VERSION)) + kwargs.setdefault('sdk_moniker', 'mgmt-avs/{}'.format(VERSION)) self._configure(**kwargs) def _configure( diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/_version.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/_version.py new file mode 100644 index 00000000000..eae7c95b6fb --- /dev/null +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/_version.py @@ -0,0 +1,9 @@ +# 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. +# -------------------------------------------------------------------------- + +VERSION = "0.1.0" diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/__init__.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/__init__.py index e678a22d524..7cbca6ac278 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/__init__.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/__init__.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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. # -------------------------------------------------------------------------- diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/_avs_client.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/_avs_client.py index 88ae3830005..b6a8d7e2bbb 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/_avs_client.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/_avs_client.py @@ -1,11 +1,14 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 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 @@ -23,7 +26,11 @@ from .operations import AuthorizationsOperations from .operations import GlobalReachConnectionsOperations from .operations import WorkloadNetworksOperations +from .operations import CloudLinksOperations from .operations import AddonsOperations +from .operations import ScriptPackagesOperations +from .operations import ScriptCmdletsOperations +from .operations import ScriptExecutionsOperations from .. import models @@ -48,8 +55,16 @@ class AVSClient(object): :vartype global_reach_connections: avs_client.aio.operations.GlobalReachConnectionsOperations :ivar workload_networks: WorkloadNetworksOperations operations :vartype workload_networks: avs_client.aio.operations.WorkloadNetworksOperations + :ivar cloud_links: CloudLinksOperations operations + :vartype cloud_links: avs_client.aio.operations.CloudLinksOperations :ivar addons: AddonsOperations operations :vartype addons: avs_client.aio.operations.AddonsOperations + :ivar script_packages: ScriptPackagesOperations operations + :vartype script_packages: avs_client.aio.operations.ScriptPackagesOperations + :ivar script_cmdlets: ScriptCmdletsOperations operations + :vartype script_cmdlets: avs_client.aio.operations.ScriptCmdletsOperations + :ivar script_executions: ScriptExecutionsOperations operations + :vartype script_executions: avs_client.aio.operations.ScriptExecutionsOperations :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: The ID of the target subscription. @@ -93,8 +108,33 @@ def __init__( self._client, self._config, self._serialize, self._deserialize) self.workload_networks = WorkloadNetworksOperations( self._client, self._config, self._serialize, self._deserialize) + self.cloud_links = CloudLinksOperations( + self._client, self._config, self._serialize, self._deserialize) self.addons = AddonsOperations( self._client, self._config, self._serialize, self._deserialize) + self.script_packages = ScriptPackagesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.script_cmdlets = ScriptCmdletsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.script_executions = ScriptExecutionsOperations( + 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', min_length=1), + } + 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() diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/_configuration.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/_configuration.py index 7357b103985..09d731cb67d 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/_configuration.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/_configuration.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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. # -------------------------------------------------------------------------- @@ -10,11 +12,12 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from .._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials_async import AsyncTokenCredential -VERSION = "unknown" class AVSClientConfiguration(Configuration): """Configuration for AVSClient. @@ -42,9 +45,9 @@ def __init__( self.credential = credential self.subscription_id = subscription_id - self.api_version = "2021-01-01-preview" + self.api_version = "2021-06-01" self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) - kwargs.setdefault('sdk_moniker', 'avsclient/{}'.format(VERSION)) + kwargs.setdefault('sdk_moniker', 'mgmt-avs/{}'.format(VERSION)) self._configure(**kwargs) def _configure( diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/__init__.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/__init__.py index 15958be9f5c..1e3c208eb0f 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/__init__.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/__init__.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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. # -------------------------------------------------------------------------- @@ -13,7 +15,11 @@ from ._authorizations_operations import AuthorizationsOperations from ._global_reach_connections_operations import GlobalReachConnectionsOperations from ._workload_networks_operations import WorkloadNetworksOperations +from ._cloud_links_operations import CloudLinksOperations from ._addons_operations import AddonsOperations +from ._script_packages_operations import ScriptPackagesOperations +from ._script_cmdlets_operations import ScriptCmdletsOperations +from ._script_executions_operations import ScriptExecutionsOperations __all__ = [ 'Operations', @@ -25,5 +31,9 @@ 'AuthorizationsOperations', 'GlobalReachConnectionsOperations', 'WorkloadNetworksOperations', + 'CloudLinksOperations', 'AddonsOperations', + 'ScriptPackagesOperations', + 'ScriptCmdletsOperations', + 'ScriptExecutionsOperations', ] diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_addons_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_addons_operations.py index db6d402eec1..15e913aa710 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_addons_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_addons_operations.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union @@ -65,7 +67,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -144,7 +146,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -186,7 +188,7 @@ async def _create_or_update_initial( resource_group_name: str, private_cloud_name: str, addon_name: str, - addon: "_models.Addon", + properties: Optional["_models.AddonProperties"] = None, **kwargs ) -> "_models.Addon": cls = kwargs.pop('cls', None) # type: ClsType["_models.Addon"] @@ -194,7 +196,9 @@ async def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + + _addon = _models.Addon(properties=properties) + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -218,7 +222,7 @@ async def _create_or_update_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(addon, 'Addon') + body_content = self._serialize.body(_addon, 'Addon') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -245,7 +249,7 @@ async def begin_create_or_update( resource_group_name: str, private_cloud_name: str, addon_name: str, - addon: "_models.Addon", + properties: Optional["_models.AddonProperties"] = None, **kwargs ) -> AsyncLROPoller["_models.Addon"]: """Create or update a addon in a private cloud. @@ -258,8 +262,8 @@ async def begin_create_or_update( :type private_cloud_name: str :param addon_name: Name of the addon for the private cloud. :type addon_name: str - :param addon: A addon in the private cloud. - :type addon: ~avs_client.models.Addon + :param properties: The properties of an addon resource. + :type properties: ~avs_client.models.AddonProperties :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: Pass in True if you'd like the AsyncARMPolling polling method, @@ -282,7 +286,7 @@ async def begin_create_or_update( resource_group_name=resource_group_name, private_cloud_name=private_cloud_name, addon_name=addon_name, - addon=addon, + properties=properties, cls=lambda x,y,z: x, **kwargs ) @@ -330,7 +334,7 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_authorizations_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_authorizations_operations.py index c2e70890c25..f9a62527778 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_authorizations_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_authorizations_operations.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union @@ -65,7 +67,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -144,7 +146,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -186,7 +188,6 @@ async def _create_or_update_initial( resource_group_name: str, private_cloud_name: str, authorization_name: str, - authorization: "_models.ExpressRouteAuthorization", **kwargs ) -> "_models.ExpressRouteAuthorization": cls = kwargs.pop('cls', None) # type: ClsType["_models.ExpressRouteAuthorization"] @@ -194,7 +195,9 @@ async def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + + _authorization = _models.ExpressRouteAuthorization() + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -218,7 +221,7 @@ async def _create_or_update_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(authorization, 'ExpressRouteAuthorization') + body_content = self._serialize.body(_authorization, 'ExpressRouteAuthorization') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -245,7 +248,6 @@ async def begin_create_or_update( resource_group_name: str, private_cloud_name: str, authorization_name: str, - authorization: "_models.ExpressRouteAuthorization", **kwargs ) -> AsyncLROPoller["_models.ExpressRouteAuthorization"]: """Create or update an ExpressRoute Circuit Authorization in a private cloud. @@ -258,8 +260,6 @@ async def begin_create_or_update( :type private_cloud_name: str :param authorization_name: Name of the ExpressRoute Circuit Authorization in the private cloud. :type authorization_name: str - :param authorization: An ExpressRoute Circuit Authorization. - :type authorization: ~avs_client.models.ExpressRouteAuthorization :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: Pass in True if you'd like the AsyncARMPolling polling method, @@ -282,7 +282,6 @@ async def begin_create_or_update( resource_group_name=resource_group_name, private_cloud_name=private_cloud_name, authorization_name=authorization_name, - authorization=authorization, cls=lambda x,y,z: x, **kwargs ) @@ -330,7 +329,7 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_cloud_links_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_cloud_links_operations.py new file mode 100644 index 00000000000..48a3c1579b8 --- /dev/null +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_cloud_links_operations.py @@ -0,0 +1,440 @@ +# 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 typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union +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 +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class CloudLinksOperations: + """CloudLinksOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~avs_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name: str, + private_cloud_name: str, + **kwargs + ) -> AsyncIterable["_models.CloudLinkList"]: + """List cloud link in a private cloud. + + List cloud link in a private cloud. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either CloudLinkList or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~avs_client.models.CloudLinkList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.CloudLinkList"] + 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.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, '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('CloudLinkList', 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.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks'} # type: ignore + + async def get( + self, + resource_group_name: str, + private_cloud_name: str, + cloud_link_name: str, + **kwargs + ) -> "_models.CloudLink": + """Get an cloud link by name in a private cloud. + + Get an cloud link by name in a private cloud. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param cloud_link_name: Name of the cloud link resource. + :type cloud_link_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: CloudLink, or the result of cls(response) + :rtype: ~avs_client.models.CloudLink + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.CloudLink"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'cloudLinkName': self._serialize.url("cloud_link_name", cloud_link_name, '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') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + 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) + + deserialized = self._deserialize('CloudLink', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}'} # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + private_cloud_name: str, + cloud_link_name: str, + linked_cloud: Optional[str] = None, + **kwargs + ) -> "_models.CloudLink": + cls = kwargs.pop('cls', None) # type: ClsType["_models.CloudLink"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + + _cloud_link = _models.CloudLink(linked_cloud=linked_cloud) + api_version = "2021-06-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'cloudLinkName': self._serialize.url("cloud_link_name", cloud_link_name, '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') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(_cloud_link, 'CloudLink') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('CloudLink', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('CloudLink', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}'} # type: ignore + + async def begin_create_or_update( + self, + resource_group_name: str, + private_cloud_name: str, + cloud_link_name: str, + linked_cloud: Optional[str] = None, + **kwargs + ) -> AsyncLROPoller["_models.CloudLink"]: + """Create or update a cloud link in a private cloud. + + Create or update a cloud link in a private cloud. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: The name of the private cloud. + :type private_cloud_name: str + :param cloud_link_name: Name of the cloud link resource. + :type cloud_link_name: str + :param linked_cloud: Identifier of the other private cloud participating in the link. + :type linked_cloud: 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: Pass in True if you'd like the AsyncARMPolling polling method, + False for no polling, or 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 CloudLink or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~avs_client.models.CloudLink] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.CloudLink"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + private_cloud_name=private_cloud_name, + cloud_link_name=cloud_link_name, + linked_cloud=linked_cloud, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('CloudLink', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'cloudLinkName': self._serialize.url("cloud_link_name", cloud_link_name, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}'} # type: ignore + + async def _delete_initial( + self, + resource_group_name: str, + private_cloud_name: str, + cloud_link_name: str, + **kwargs + ) -> 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-06-01" + accept = "application/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'cloudLinkName': self._serialize.url("cloud_link_name", cloud_link_name, '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') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}'} # type: ignore + + async def begin_delete( + self, + resource_group_name: str, + private_cloud_name: str, + cloud_link_name: str, + **kwargs + ) -> AsyncLROPoller[None]: + """Delete a cloud link in a private cloud. + + Delete a cloud link in a private cloud. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param cloud_link_name: Name of the cloud link resource. + :type cloud_link_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: Pass in True if you'd like the AsyncARMPolling polling method, + False for no polling, or your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + private_cloud_name=private_cloud_name, + cloud_link_name=cloud_link_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'cloudLinkName': self._serialize.url("cloud_link_name", cloud_link_name, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}'} # type: ignore diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_clusters_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_clusters_operations.py index 7dfb026ffc4..f12e9fe7717 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_clusters_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_clusters_operations.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union @@ -65,7 +67,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -144,7 +146,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -186,7 +188,8 @@ async def _create_or_update_initial( resource_group_name: str, private_cloud_name: str, cluster_name: str, - cluster: "_models.Cluster", + sku: "_models.Sku", + cluster_size: Optional[int] = None, **kwargs ) -> "_models.Cluster": cls = kwargs.pop('cls', None) # type: ClsType["_models.Cluster"] @@ -194,7 +197,9 @@ async def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + + _cluster = _models.Cluster(sku=sku, cluster_size=cluster_size) + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -218,7 +223,7 @@ async def _create_or_update_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(cluster, 'Cluster') + body_content = self._serialize.body(_cluster, 'Cluster') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -245,7 +250,8 @@ async def begin_create_or_update( resource_group_name: str, private_cloud_name: str, cluster_name: str, - cluster: "_models.Cluster", + sku: "_models.Sku", + cluster_size: Optional[int] = None, **kwargs ) -> AsyncLROPoller["_models.Cluster"]: """Create or update a cluster in a private cloud. @@ -258,8 +264,10 @@ async def begin_create_or_update( :type private_cloud_name: str :param cluster_name: Name of the cluster in the private cloud. :type cluster_name: str - :param cluster: A cluster in the private cloud. - :type cluster: ~avs_client.models.Cluster + :param sku: The cluster SKU. + :type sku: ~avs_client.models.Sku + :param cluster_size: The cluster size. + :type cluster_size: int :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: Pass in True if you'd like the AsyncARMPolling polling method, @@ -282,7 +290,8 @@ async def begin_create_or_update( resource_group_name=resource_group_name, private_cloud_name=private_cloud_name, cluster_name=cluster_name, - cluster=cluster, + sku=sku, + cluster_size=cluster_size, cls=lambda x,y,z: x, **kwargs ) @@ -323,7 +332,7 @@ async def _update_initial( resource_group_name: str, private_cloud_name: str, cluster_name: str, - cluster_update: "_models.ClusterUpdate", + cluster_size: Optional[int] = None, **kwargs ) -> "_models.Cluster": cls = kwargs.pop('cls', None) # type: ClsType["_models.Cluster"] @@ -331,7 +340,9 @@ async def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + + _cluster_update = _models.ClusterUpdate(cluster_size=cluster_size) + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -355,7 +366,7 @@ async def _update_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(cluster_update, 'ClusterUpdate') + body_content = self._serialize.body(_cluster_update, 'ClusterUpdate') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -382,7 +393,7 @@ async def begin_update( resource_group_name: str, private_cloud_name: str, cluster_name: str, - cluster_update: "_models.ClusterUpdate", + cluster_size: Optional[int] = None, **kwargs ) -> AsyncLROPoller["_models.Cluster"]: """Update a cluster in a private cloud. @@ -395,8 +406,8 @@ async def begin_update( :type private_cloud_name: str :param cluster_name: Name of the cluster in the private cloud. :type cluster_name: str - :param cluster_update: The cluster properties to be updated. - :type cluster_update: ~avs_client.models.ClusterUpdate + :param cluster_size: The cluster size. + :type cluster_size: int :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: Pass in True if you'd like the AsyncARMPolling polling method, @@ -419,7 +430,7 @@ async def begin_update( resource_group_name=resource_group_name, private_cloud_name=private_cloud_name, cluster_name=cluster_name, - cluster_update=cluster_update, + cluster_size=cluster_size, cls=lambda x,y,z: x, **kwargs ) @@ -467,7 +478,7 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_datastores_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_datastores_operations.py index f8ec3e90a78..929d0fa7815 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_datastores_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_datastores_operations.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union @@ -48,9 +50,9 @@ def list( cluster_name: str, **kwargs ) -> AsyncIterable["_models.DatastoreList"]: - """List cloud datastores in a private cloud. + """List datastores in a private cloud cluster. - List cloud datastores in a private cloud. + List datastores in a private cloud cluster. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str @@ -68,7 +70,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -151,7 +153,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -189,13 +191,14 @@ async def get( return deserialized get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}'} # type: ignore - async def _create_initial( + async def _create_or_update_initial( self, resource_group_name: str, private_cloud_name: str, cluster_name: str, datastore_name: str, - datastore: "_models.Datastore", + net_app_volume: Optional["_models.NetAppVolume"] = None, + disk_pool_volume: Optional["_models.DiskPoolVolume"] = None, **kwargs ) -> "_models.Datastore": cls = kwargs.pop('cls', None) # type: ClsType["_models.Datastore"] @@ -203,12 +206,14 @@ async def _create_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + + _datastore = _models.Datastore(net_app_volume=net_app_volume, disk_pool_volume=disk_pool_volume) + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL - url = self._create_initial.metadata['url'] # type: ignore + url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), @@ -228,7 +233,7 @@ async def _create_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(datastore, 'Datastore') + body_content = self._serialize.body(_datastore, 'Datastore') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -248,20 +253,21 @@ async def _create_initial( return cls(pipeline_response, deserialized, {}) return deserialized - _create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}'} # type: ignore + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}'} # type: ignore - async def begin_create( + async def begin_create_or_update( self, resource_group_name: str, private_cloud_name: str, cluster_name: str, datastore_name: str, - datastore: "_models.Datastore", + net_app_volume: Optional["_models.NetAppVolume"] = None, + disk_pool_volume: Optional["_models.DiskPoolVolume"] = None, **kwargs ) -> AsyncLROPoller["_models.Datastore"]: - """Create a datastore in a private cloud cluster. + """Create or update a datastore in a private cloud cluster. - Create a datastore in a private cloud cluster. + Create or update a datastore in a private cloud cluster. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str @@ -271,8 +277,10 @@ async def begin_create( :type cluster_name: str :param datastore_name: Name of the datastore in the private cloud cluster. :type datastore_name: str - :param datastore: A datastore in a private cloud cluster. - :type datastore: ~avs_client.models.Datastore + :param net_app_volume: An Azure NetApp Files volume. + :type net_app_volume: ~avs_client.models.NetAppVolume + :param disk_pool_volume: An iSCSI volume. + :type disk_pool_volume: ~avs_client.models.DiskPoolVolume :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: Pass in True if you'd like the AsyncARMPolling polling method, @@ -291,12 +299,13 @@ async def begin_create( ) cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] if cont_token is None: - raw_result = await self._create_initial( + raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, private_cloud_name=private_cloud_name, cluster_name=cluster_name, datastore_name=datastore_name, - datastore=datastore, + net_app_volume=net_app_volume, + disk_pool_volume=disk_pool_volume, cls=lambda x,y,z: x, **kwargs ) @@ -331,7 +340,7 @@ def get_long_running_output(pipeline_response): ) else: return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}'} # type: ignore + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}'} # type: ignore async def _delete_initial( self, @@ -346,7 +355,7 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_global_reach_connections_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_global_reach_connections_operations.py index 90276b4e3df..33c364be0ff 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_global_reach_connections_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_global_reach_connections_operations.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union @@ -65,7 +67,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -144,7 +146,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -186,7 +188,8 @@ async def _create_or_update_initial( resource_group_name: str, private_cloud_name: str, global_reach_connection_name: str, - global_reach_connection: "_models.GlobalReachConnection", + authorization_key: Optional[str] = None, + peer_express_route_circuit: Optional[str] = None, **kwargs ) -> "_models.GlobalReachConnection": cls = kwargs.pop('cls', None) # type: ClsType["_models.GlobalReachConnection"] @@ -194,7 +197,9 @@ async def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + + _global_reach_connection = _models.GlobalReachConnection(authorization_key=authorization_key, peer_express_route_circuit=peer_express_route_circuit) + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -218,7 +223,7 @@ async def _create_or_update_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(global_reach_connection, 'GlobalReachConnection') + body_content = self._serialize.body(_global_reach_connection, 'GlobalReachConnection') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -245,7 +250,8 @@ async def begin_create_or_update( resource_group_name: str, private_cloud_name: str, global_reach_connection_name: str, - global_reach_connection: "_models.GlobalReachConnection", + authorization_key: Optional[str] = None, + peer_express_route_circuit: Optional[str] = None, **kwargs ) -> AsyncLROPoller["_models.GlobalReachConnection"]: """Create or update a global reach connection in a private cloud. @@ -258,8 +264,12 @@ async def begin_create_or_update( :type private_cloud_name: str :param global_reach_connection_name: Name of the global reach connection in the private cloud. :type global_reach_connection_name: str - :param global_reach_connection: A global reach connection in the private cloud. - :type global_reach_connection: ~avs_client.models.GlobalReachConnection + :param authorization_key: Authorization key from the peer express route used for the global + reach connection. + :type authorization_key: str + :param peer_express_route_circuit: Identifier of the ExpressRoute Circuit to peer with in the + global reach connection. + :type peer_express_route_circuit: 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: Pass in True if you'd like the AsyncARMPolling polling method, @@ -282,7 +292,8 @@ async def begin_create_or_update( resource_group_name=resource_group_name, private_cloud_name=private_cloud_name, global_reach_connection_name=global_reach_connection_name, - global_reach_connection=global_reach_connection, + authorization_key=authorization_key, + peer_express_route_circuit=peer_express_route_circuit, cls=lambda x,y,z: x, **kwargs ) @@ -330,7 +341,7 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_hcx_enterprise_sites_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_hcx_enterprise_sites_operations.py index a5871289cca..6b492368b55 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_hcx_enterprise_sites_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_hcx_enterprise_sites_operations.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union @@ -63,7 +65,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -142,7 +144,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -184,7 +186,6 @@ async def create_or_update( resource_group_name: str, private_cloud_name: str, hcx_enterprise_site_name: str, - hcx_enterprise_site: "_models.HcxEnterpriseSite", **kwargs ) -> "_models.HcxEnterpriseSite": """Create or update an HCX Enterprise Site in a private cloud. @@ -197,8 +198,6 @@ async def create_or_update( :type private_cloud_name: str :param hcx_enterprise_site_name: Name of the HCX Enterprise Site in the private cloud. :type hcx_enterprise_site_name: str - :param hcx_enterprise_site: The HCX Enterprise Site. - :type hcx_enterprise_site: ~avs_client.models.HcxEnterpriseSite :keyword callable cls: A custom type or function that will be passed the direct response :return: HcxEnterpriseSite, or the result of cls(response) :rtype: ~avs_client.models.HcxEnterpriseSite @@ -209,7 +208,9 @@ async def create_or_update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + + _hcx_enterprise_site = _models.HcxEnterpriseSite() + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -233,7 +234,7 @@ async def create_or_update( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(hcx_enterprise_site, 'HcxEnterpriseSite') + body_content = self._serialize.body(_hcx_enterprise_site, 'HcxEnterpriseSite') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -282,7 +283,7 @@ async def delete( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_locations_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_locations_operations.py index 44e9a643a95..79f287671af 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_locations_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_locations_operations.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar @@ -57,7 +59,7 @@ async def check_trial_availability( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -111,7 +113,7 @@ async def check_quota_availability( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_operations.py index a18e99775aa..4eeb73a6183 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_operations.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar @@ -55,7 +57,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_private_clouds_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_private_clouds_operations.py index 66cdf95c0f9..95c316c42bb 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_private_clouds_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_private_clouds_operations.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union @@ -62,7 +64,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -131,7 +133,7 @@ def list_in_subscription( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -205,7 +207,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -253,7 +255,7 @@ async def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -383,7 +385,7 @@ async def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -512,7 +514,7 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -622,7 +624,7 @@ async def _rotate_vcenter_password_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -732,7 +734,7 @@ async def _rotate_nsxt_password_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -855,7 +857,7 @@ async def list_admin_credentials( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_cmdlets_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_cmdlets_operations.py new file mode 100644 index 00000000000..9d6254f5e17 --- /dev/null +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_cmdlets_operations.py @@ -0,0 +1,188 @@ +# 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 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 +from azure.mgmt.core.exceptions import ARMErrorFormat + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class ScriptCmdletsOperations: + """ScriptCmdletsOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~avs_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name: str, + private_cloud_name: str, + script_package_name: str, + **kwargs + ) -> AsyncIterable["_models.ScriptCmdletsList"]: + """Return script cmdlet resources available for a private cloud to create a script execution + resource on their Private Cloud. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param script_package_name: Name of the script package in the private cloud. + :type script_package_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ScriptCmdletsList or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~avs_client.models.ScriptCmdletsList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ScriptCmdletsList"] + 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.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'scriptPackageName': self._serialize.url("script_package_name", script_package_name, '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('ScriptCmdletsList', 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.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}/scriptCmdlets'} # type: ignore + + async def get( + self, + resource_group_name: str, + private_cloud_name: str, + script_package_name: str, + script_cmdlet_name: str, + **kwargs + ) -> "_models.ScriptCmdlet": + """Return information about a script cmdlet resource in a specific package on a private cloud. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param script_package_name: Name of the script package in the private cloud. + :type script_package_name: str + :param script_cmdlet_name: Name of the script cmdlet resource in the script package in the + private cloud. + :type script_cmdlet_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ScriptCmdlet, or the result of cls(response) + :rtype: ~avs_client.models.ScriptCmdlet + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ScriptCmdlet"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'scriptPackageName': self._serialize.url("script_package_name", script_package_name, 'str'), + 'scriptCmdletName': self._serialize.url("script_cmdlet_name", script_cmdlet_name, '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') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + 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) + + deserialized = self._deserialize('ScriptCmdlet', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}/scriptCmdlets/{scriptCmdletName}'} # type: ignore diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_executions_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_executions_operations.py new file mode 100644 index 00000000000..3a97811635f --- /dev/null +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_executions_operations.py @@ -0,0 +1,512 @@ +# 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 typing import Any, AsyncIterable, Callable, Dict, Generic, List, Optional, TypeVar, Union +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 +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class ScriptExecutionsOperations: + """ScriptExecutionsOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~avs_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name: str, + private_cloud_name: str, + **kwargs + ) -> AsyncIterable["_models.ScriptExecutionsList"]: + """Get an script execution resource by name in a private cloud. + + Get an script execution resource by name in a private cloud. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ScriptExecutionsList or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~avs_client.models.ScriptExecutionsList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ScriptExecutionsList"] + 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.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, '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('ScriptExecutionsList', 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.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions'} # type: ignore + + async def get( + self, + resource_group_name: str, + private_cloud_name: str, + script_execution_name: str, + **kwargs + ) -> "_models.ScriptExecution": + """Get an script execution resource by name in a private cloud. + + Get an script execution resource by name in a private cloud. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param script_execution_name: Name of the user-invoked script execution resource. + :type script_execution_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ScriptExecution, or the result of cls(response) + :rtype: ~avs_client.models.ScriptExecution + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ScriptExecution"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'scriptExecutionName': self._serialize.url("script_execution_name", script_execution_name, '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') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + 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) + + deserialized = self._deserialize('ScriptExecution', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}'} # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + private_cloud_name: str, + script_execution_name: str, + script_execution: "_models.ScriptExecution", + **kwargs + ) -> "_models.ScriptExecution": + cls = kwargs.pop('cls', None) # type: ClsType["_models.ScriptExecution"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'scriptExecutionName': self._serialize.url("script_execution_name", script_execution_name, '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') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(script_execution, 'ScriptExecution') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('ScriptExecution', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('ScriptExecution', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}'} # type: ignore + + async def begin_create_or_update( + self, + resource_group_name: str, + private_cloud_name: str, + script_execution_name: str, + script_execution: "_models.ScriptExecution", + **kwargs + ) -> AsyncLROPoller["_models.ScriptExecution"]: + """Create or update a script execution resource in a private cloud. + + Create or update a script execution resource in a private cloud. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: The name of the private cloud. + :type private_cloud_name: str + :param script_execution_name: Name of the user-invoked script execution resource. + :type script_execution_name: str + :param script_execution: A script running in the private cloud. + :type script_execution: ~avs_client.models.ScriptExecution + :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: Pass in True if you'd like the AsyncARMPolling polling method, + False for no polling, or 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 ScriptExecution or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~avs_client.models.ScriptExecution] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ScriptExecution"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + private_cloud_name=private_cloud_name, + script_execution_name=script_execution_name, + script_execution=script_execution, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('ScriptExecution', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'scriptExecutionName': self._serialize.url("script_execution_name", script_execution_name, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}'} # type: ignore + + async def _delete_initial( + self, + resource_group_name: str, + private_cloud_name: str, + script_execution_name: str, + **kwargs + ) -> 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-06-01" + accept = "application/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'scriptExecutionName': self._serialize.url("script_execution_name", script_execution_name, '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') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}'} # type: ignore + + async def begin_delete( + self, + resource_group_name: str, + private_cloud_name: str, + script_execution_name: str, + **kwargs + ) -> AsyncLROPoller[None]: + """Cancel a ScriptExecution in a private cloud. + + Cancel a ScriptExecution in a private cloud. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param script_execution_name: Name of the user-invoked script execution resource. + :type script_execution_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: Pass in True if you'd like the AsyncARMPolling polling method, + False for no polling, or your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + private_cloud_name=private_cloud_name, + script_execution_name=script_execution_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'scriptExecutionName': self._serialize.url("script_execution_name", script_execution_name, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}'} # type: ignore + + async def get_execution_logs( + self, + resource_group_name: str, + private_cloud_name: str, + script_execution_name: str, + script_output_stream_type: Optional[List[Union[str, "_models.ScriptOutputStreamType"]]] = None, + **kwargs + ) -> "_models.ScriptExecution": + """Return the logs for a script execution resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param script_execution_name: Name of the user-invoked script execution resource. + :type script_execution_name: str + :param script_output_stream_type: Name of the desired output stream to return. If not provided, + will return all. An empty array will return nothing. + :type script_output_stream_type: list[str or ~avs_client.models.ScriptOutputStreamType] + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ScriptExecution, or the result of cls(response) + :rtype: ~avs_client.models.ScriptExecution + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ScriptExecution"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.get_execution_logs.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'scriptExecutionName': self._serialize.url("script_execution_name", script_execution_name, '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') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + if script_output_stream_type is not None: + body_content = self._serialize.body(script_output_stream_type, '[str]') + else: + body_content = None + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + 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) + + deserialized = self._deserialize('ScriptExecution', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_execution_logs.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}/getExecutionLogs'} # type: ignore diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_packages_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_packages_operations.py new file mode 100644 index 00000000000..930c65d4f16 --- /dev/null +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_packages_operations.py @@ -0,0 +1,178 @@ +# 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 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 +from azure.mgmt.core.exceptions import ARMErrorFormat + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class ScriptPackagesOperations: + """ScriptPackagesOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~avs_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name: str, + private_cloud_name: str, + **kwargs + ) -> AsyncIterable["_models.ScriptPackagesList"]: + """Return script packages available for a private cloud to run on their Private Cloud. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ScriptPackagesList or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~avs_client.models.ScriptPackagesList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ScriptPackagesList"] + 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.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, '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('ScriptPackagesList', 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.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages'} # type: ignore + + async def get( + self, + resource_group_name: str, + private_cloud_name: str, + script_package_name: str, + **kwargs + ) -> "_models.ScriptPackage": + """Return script package available to run on an Private Cloud. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param script_package_name: Name of the script package in the private cloud. + :type script_package_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ScriptPackage, or the result of cls(response) + :rtype: ~avs_client.models.ScriptPackage + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ScriptPackage"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'scriptPackageName': self._serialize.url("script_package_name", script_package_name, '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') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + 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) + + deserialized = self._deserialize('ScriptPackage', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}'} # type: ignore diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_workload_networks_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_workload_networks_operations.py index d685eca7a41..15ef5e04b5c 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_workload_networks_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_workload_networks_operations.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union @@ -65,7 +67,7 @@ def list_segments( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -144,7 +146,7 @@ async def get_segment( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -194,7 +196,7 @@ async def _create_segments_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -331,7 +333,7 @@ async def _update_segments_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -465,7 +467,7 @@ async def _delete_segment_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -594,7 +596,7 @@ def list_dhcp( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -673,7 +675,7 @@ async def get_dhcp( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -715,7 +717,7 @@ async def _create_dhcp_initial( resource_group_name: str, private_cloud_name: str, dhcp_id: str, - workload_network_dhcp: "_models.WorkloadNetworkDhcp", + properties: Optional["_models.WorkloadNetworkDhcpEntity"] = None, **kwargs ) -> "_models.WorkloadNetworkDhcp": cls = kwargs.pop('cls', None) # type: ClsType["_models.WorkloadNetworkDhcp"] @@ -723,7 +725,9 @@ async def _create_dhcp_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + + _workload_network_dhcp = _models.WorkloadNetworkDhcp(properties=properties) + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -747,7 +751,7 @@ async def _create_dhcp_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(workload_network_dhcp, 'WorkloadNetworkDhcp') + body_content = self._serialize.body(_workload_network_dhcp, 'WorkloadNetworkDhcp') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -774,7 +778,7 @@ async def begin_create_dhcp( resource_group_name: str, private_cloud_name: str, dhcp_id: str, - workload_network_dhcp: "_models.WorkloadNetworkDhcp", + properties: Optional["_models.WorkloadNetworkDhcpEntity"] = None, **kwargs ) -> AsyncLROPoller["_models.WorkloadNetworkDhcp"]: """Create dhcp by id in a private cloud workload network. @@ -787,8 +791,8 @@ async def begin_create_dhcp( :type private_cloud_name: str :param dhcp_id: NSX DHCP identifier. Generally the same as the DHCP display name. :type dhcp_id: str - :param workload_network_dhcp: NSX DHCP. - :type workload_network_dhcp: ~avs_client.models.WorkloadNetworkDhcp + :param properties: DHCP properties. + :type properties: ~avs_client.models.WorkloadNetworkDhcpEntity :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: Pass in True if you'd like the AsyncARMPolling polling method, @@ -811,7 +815,7 @@ async def begin_create_dhcp( resource_group_name=resource_group_name, private_cloud_name=private_cloud_name, dhcp_id=dhcp_id, - workload_network_dhcp=workload_network_dhcp, + properties=properties, cls=lambda x,y,z: x, **kwargs ) @@ -852,7 +856,7 @@ async def _update_dhcp_initial( resource_group_name: str, private_cloud_name: str, dhcp_id: str, - workload_network_dhcp: "_models.WorkloadNetworkDhcp", + properties: Optional["_models.WorkloadNetworkDhcpEntity"] = None, **kwargs ) -> Optional["_models.WorkloadNetworkDhcp"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WorkloadNetworkDhcp"]] @@ -860,7 +864,9 @@ async def _update_dhcp_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + + _workload_network_dhcp = _models.WorkloadNetworkDhcp(properties=properties) + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -884,7 +890,7 @@ async def _update_dhcp_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(workload_network_dhcp, 'WorkloadNetworkDhcp') + body_content = self._serialize.body(_workload_network_dhcp, 'WorkloadNetworkDhcp') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -909,7 +915,7 @@ async def begin_update_dhcp( resource_group_name: str, private_cloud_name: str, dhcp_id: str, - workload_network_dhcp: "_models.WorkloadNetworkDhcp", + properties: Optional["_models.WorkloadNetworkDhcpEntity"] = None, **kwargs ) -> AsyncLROPoller["_models.WorkloadNetworkDhcp"]: """Create or update dhcp by id in a private cloud workload network. @@ -922,8 +928,8 @@ async def begin_update_dhcp( :type private_cloud_name: str :param dhcp_id: NSX DHCP identifier. Generally the same as the DHCP display name. :type dhcp_id: str - :param workload_network_dhcp: NSX DHCP. - :type workload_network_dhcp: ~avs_client.models.WorkloadNetworkDhcp + :param properties: DHCP properties. + :type properties: ~avs_client.models.WorkloadNetworkDhcpEntity :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: Pass in True if you'd like the AsyncARMPolling polling method, @@ -946,7 +952,7 @@ async def begin_update_dhcp( resource_group_name=resource_group_name, private_cloud_name=private_cloud_name, dhcp_id=dhcp_id, - workload_network_dhcp=workload_network_dhcp, + properties=properties, cls=lambda x,y,z: x, **kwargs ) @@ -994,7 +1000,7 @@ async def _delete_dhcp_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -1123,7 +1129,7 @@ def list_gateways( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -1202,7 +1208,7 @@ async def get_gateway( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -1263,7 +1269,7 @@ def list_port_mirroring( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -1343,7 +1349,7 @@ async def get_port_mirroring( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -1393,7 +1399,7 @@ async def _create_port_mirroring_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -1531,7 +1537,7 @@ async def _update_port_mirroring_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -1666,7 +1672,7 @@ async def _delete_port_mirroring_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -1796,7 +1802,7 @@ def list_vm_groups( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -1875,7 +1881,7 @@ async def get_vm_group( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -1925,7 +1931,7 @@ async def _create_vm_group_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -2062,7 +2068,7 @@ async def _update_vm_group_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -2196,7 +2202,7 @@ async def _delete_vm_group_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -2325,7 +2331,7 @@ def list_virtual_machines( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -2392,7 +2398,7 @@ async def get_virtual_machine( :type resource_group_name: str :param private_cloud_name: Name of the private cloud. :type private_cloud_name: str - :param virtual_machine_id: NSX Virtual Machine identifier. + :param virtual_machine_id: Virtual Machine identifier. :type virtual_machine_id: str :keyword callable cls: A custom type or function that will be passed the direct response :return: WorkloadNetworkVirtualMachine, or the result of cls(response) @@ -2404,7 +2410,7 @@ async def get_virtual_machine( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -2465,7 +2471,7 @@ def list_dns_services( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -2545,7 +2551,7 @@ async def get_dns_service( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -2595,7 +2601,7 @@ async def _create_dns_service_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -2733,7 +2739,7 @@ async def _update_dns_service_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -2868,7 +2874,7 @@ async def _delete_dns_service_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -2998,7 +3004,7 @@ def list_dns_zones( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -3077,7 +3083,7 @@ async def get_dns_zone( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -3127,7 +3133,7 @@ async def _create_dns_zone_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -3264,7 +3270,7 @@ async def _update_dns_zone_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -3398,7 +3404,7 @@ async def _delete_dns_zone_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -3502,3 +3508,407 @@ def get_long_running_output(pipeline_response): else: return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete_dns_zone.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}'} # type: ignore + + def list_public_i_ps( + self, + resource_group_name: str, + private_cloud_name: str, + **kwargs + ) -> AsyncIterable["_models.WorkloadNetworkPublicIPsList"]: + """List of Public IP Blocks in a private cloud workload network. + + List of Public IP Blocks in a private cloud workload network. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either WorkloadNetworkPublicIPsList or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~avs_client.models.WorkloadNetworkPublicIPsList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.WorkloadNetworkPublicIPsList"] + 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_public_i_ps.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, '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('WorkloadNetworkPublicIPsList', 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_public_i_ps.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs'} # type: ignore + + async def get_public_ip( + self, + resource_group_name: str, + private_cloud_name: str, + public_ip_id: str, + **kwargs + ) -> "_models.WorkloadNetworkPublicIP": + """Get a Public IP Block by id in a private cloud workload network. + + Get a Public IP Block by id in a private cloud workload network. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param public_ip_id: NSX Public IP Block identifier. Generally the same as the Public IP + Block's display name. + :type public_ip_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkloadNetworkPublicIP, or the result of cls(response) + :rtype: ~avs_client.models.WorkloadNetworkPublicIP + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.WorkloadNetworkPublicIP"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-01" + accept = "application/json" + + # Construct URL + url = self.get_public_ip.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'publicIPId': self._serialize.url("public_ip_id", public_ip_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') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + 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) + + deserialized = self._deserialize('WorkloadNetworkPublicIP', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_public_ip.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}'} # type: ignore + + async def _create_public_ip_initial( + self, + resource_group_name: str, + private_cloud_name: str, + public_ip_id: str, + display_name: Optional[str] = None, + number_of_public_i_ps: Optional[int] = None, + **kwargs + ) -> "_models.WorkloadNetworkPublicIP": + cls = kwargs.pop('cls', None) # type: ClsType["_models.WorkloadNetworkPublicIP"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + + _workload_network_public_ip = _models.WorkloadNetworkPublicIP(display_name=display_name, number_of_public_i_ps=number_of_public_i_ps) + api_version = "2021-06-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_public_ip_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'publicIPId': self._serialize.url("public_ip_id", public_ip_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') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(_workload_network_public_ip, 'WorkloadNetworkPublicIP') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('WorkloadNetworkPublicIP', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('WorkloadNetworkPublicIP', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_public_ip_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}'} # type: ignore + + async def begin_create_public_ip( + self, + resource_group_name: str, + private_cloud_name: str, + public_ip_id: str, + display_name: Optional[str] = None, + number_of_public_i_ps: Optional[int] = None, + **kwargs + ) -> AsyncLROPoller["_models.WorkloadNetworkPublicIP"]: + """Create a Public IP Block by id in a private cloud workload network. + + Create a Public IP Block by id in a private cloud workload network. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param public_ip_id: NSX Public IP Block identifier. Generally the same as the Public IP + Block's display name. + :type public_ip_id: str + :param display_name: Display name of the Public IP Block. + :type display_name: str + :param number_of_public_i_ps: Number of Public IPs requested. + :type number_of_public_i_ps: long + :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: Pass in True if you'd like the AsyncARMPolling polling method, + False for no polling, or 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 WorkloadNetworkPublicIP or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~avs_client.models.WorkloadNetworkPublicIP] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.WorkloadNetworkPublicIP"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._create_public_ip_initial( + resource_group_name=resource_group_name, + private_cloud_name=private_cloud_name, + public_ip_id=public_ip_id, + display_name=display_name, + number_of_public_i_ps=number_of_public_i_ps, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('WorkloadNetworkPublicIP', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'publicIPId': self._serialize.url("public_ip_id", public_ip_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_public_ip.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}'} # type: ignore + + async def _delete_public_ip_initial( + self, + resource_group_name: str, + public_ip_id: str, + private_cloud_name: str, + **kwargs + ) -> 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-06-01" + accept = "application/json" + + # Construct URL + url = self._delete_public_ip_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'publicIPId': self._serialize.url("public_ip_id", public_ip_id, 'str'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, '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') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_public_ip_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}'} # type: ignore + + async def begin_delete_public_ip( + self, + resource_group_name: str, + public_ip_id: str, + private_cloud_name: str, + **kwargs + ) -> AsyncLROPoller[None]: + """Delete a Public IP Block by id in a private cloud workload network. + + Delete a Public IP Block by id in a private cloud workload network. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param public_ip_id: NSX Public IP Block identifier. Generally the same as the Public IP + Block's display name. + :type public_ip_id: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_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: Pass in True if you'd like the AsyncARMPolling polling method, + False for no polling, or your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._delete_public_ip_initial( + resource_group_name=resource_group_name, + public_ip_id=public_ip_id, + private_cloud_name=private_cloud_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'publicIPId': self._serialize.url("public_ip_id", public_ip_id, 'str'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete_public_ip.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}'} # type: ignore diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/models/__init__.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/models/__init__.py index fd15cc64bf0..38b696e41b7 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/models/__init__.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/models/__init__.py @@ -1,17 +1,22 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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. # -------------------------------------------------------------------------- try: from ._models_py3 import Addon + from ._models_py3 import AddonHcxProperties from ._models_py3 import AddonList from ._models_py3 import AddonProperties from ._models_py3 import AddonSrmProperties - from ._models_py3 import AddonUpdate + from ._models_py3 import AddonVrProperties from ._models_py3 import AdminCredentials from ._models_py3 import Circuit + from ._models_py3 import CloudLink + from ._models_py3 import CloudLinkList from ._models_py3 import Cluster from ._models_py3 import ClusterList from ._models_py3 import ClusterProperties @@ -39,6 +44,7 @@ from ._models_py3 import OperationDisplay from ._models_py3 import OperationList from ._models_py3 import OperationProperties + from ._models_py3 import PSCredentialExecutionParameter from ._models_py3 import PrivateCloud from ._models_py3 import PrivateCloudList from ._models_py3 import PrivateCloudProperties @@ -47,6 +53,16 @@ from ._models_py3 import ProxyResource from ._models_py3 import Quota from ._models_py3 import Resource + from ._models_py3 import ScriptCmdlet + from ._models_py3 import ScriptCmdletsList + from ._models_py3 import ScriptExecution + from ._models_py3 import ScriptExecutionParameter + from ._models_py3 import ScriptExecutionsList + from ._models_py3 import ScriptPackage + from ._models_py3 import ScriptPackagesList + from ._models_py3 import ScriptParameter + from ._models_py3 import ScriptSecureStringExecutionParameter + from ._models_py3 import ScriptStringExecutionParameter from ._models_py3 import ServiceSpecification from ._models_py3 import Sku from ._models_py3 import TrackedResource @@ -64,6 +80,8 @@ from ._models_py3 import WorkloadNetworkGatewayList from ._models_py3 import WorkloadNetworkPortMirroring from ._models_py3 import WorkloadNetworkPortMirroringList + from ._models_py3 import WorkloadNetworkPublicIP + from ._models_py3 import WorkloadNetworkPublicIPsList from ._models_py3 import WorkloadNetworkSegment from ._models_py3 import WorkloadNetworkSegmentPortVif from ._models_py3 import WorkloadNetworkSegmentSubnet @@ -74,12 +92,15 @@ from ._models_py3 import WorkloadNetworkVirtualMachinesList except (SyntaxError, ImportError): from ._models import Addon # type: ignore + from ._models import AddonHcxProperties # type: ignore from ._models import AddonList # type: ignore from ._models import AddonProperties # type: ignore from ._models import AddonSrmProperties # type: ignore - from ._models import AddonUpdate # type: ignore + from ._models import AddonVrProperties # type: ignore from ._models import AdminCredentials # type: ignore from ._models import Circuit # type: ignore + from ._models import CloudLink # type: ignore + from ._models import CloudLinkList # type: ignore from ._models import Cluster # type: ignore from ._models import ClusterList # type: ignore from ._models import ClusterProperties # type: ignore @@ -107,6 +128,7 @@ from ._models import OperationDisplay # type: ignore from ._models import OperationList # type: ignore from ._models import OperationProperties # type: ignore + from ._models import PSCredentialExecutionParameter # type: ignore from ._models import PrivateCloud # type: ignore from ._models import PrivateCloudList # type: ignore from ._models import PrivateCloudProperties # type: ignore @@ -115,6 +137,16 @@ from ._models import ProxyResource # type: ignore from ._models import Quota # type: ignore from ._models import Resource # type: ignore + from ._models import ScriptCmdlet # type: ignore + from ._models import ScriptCmdletsList # type: ignore + from ._models import ScriptExecution # type: ignore + from ._models import ScriptExecutionParameter # type: ignore + from ._models import ScriptExecutionsList # type: ignore + from ._models import ScriptPackage # type: ignore + from ._models import ScriptPackagesList # type: ignore + from ._models import ScriptParameter # type: ignore + from ._models import ScriptSecureStringExecutionParameter # type: ignore + from ._models import ScriptStringExecutionParameter # type: ignore from ._models import ServiceSpecification # type: ignore from ._models import Sku # type: ignore from ._models import TrackedResource # type: ignore @@ -132,6 +164,8 @@ from ._models import WorkloadNetworkGatewayList # type: ignore from ._models import WorkloadNetworkPortMirroring # type: ignore from ._models import WorkloadNetworkPortMirroringList # type: ignore + from ._models import WorkloadNetworkPublicIP # type: ignore + from ._models import WorkloadNetworkPublicIPsList # type: ignore from ._models import WorkloadNetworkSegment # type: ignore from ._models import WorkloadNetworkSegmentPortVif # type: ignore from ._models import WorkloadNetworkSegmentSubnet # type: ignore @@ -144,6 +178,7 @@ from ._avs_client_enums import ( AddonProvisioningState, AddonType, + CloudLinkStatus, ClusterProvisioningState, DatastoreProvisioningState, DhcpTypeEnum, @@ -154,31 +189,41 @@ GlobalReachConnectionStatus, HcxEnterpriseSiteStatus, InternetEnum, + MountOptionEnum, PortMirroringDirectionEnum, PortMirroringStatusEnum, PrivateCloudProvisioningState, QuotaEnabled, + ScriptExecutionParameterType, + ScriptExecutionProvisioningState, + ScriptOutputStreamType, + ScriptParameterTypes, SegmentStatusEnum, SslEnum, TrialStatus, VMGroupStatusEnum, VMTypeEnum, + VisibilityParameterEnum, WorkloadNetworkDhcpProvisioningState, WorkloadNetworkDnsServiceProvisioningState, WorkloadNetworkDnsZoneProvisioningState, WorkloadNetworkPortMirroringProvisioningState, + WorkloadNetworkPublicIPProvisioningState, WorkloadNetworkSegmentProvisioningState, WorkloadNetworkVMGroupProvisioningState, ) __all__ = [ 'Addon', + 'AddonHcxProperties', 'AddonList', 'AddonProperties', 'AddonSrmProperties', - 'AddonUpdate', + 'AddonVrProperties', 'AdminCredentials', 'Circuit', + 'CloudLink', + 'CloudLinkList', 'Cluster', 'ClusterList', 'ClusterProperties', @@ -206,6 +251,7 @@ 'OperationDisplay', 'OperationList', 'OperationProperties', + 'PSCredentialExecutionParameter', 'PrivateCloud', 'PrivateCloudList', 'PrivateCloudProperties', @@ -214,6 +260,16 @@ 'ProxyResource', 'Quota', 'Resource', + 'ScriptCmdlet', + 'ScriptCmdletsList', + 'ScriptExecution', + 'ScriptExecutionParameter', + 'ScriptExecutionsList', + 'ScriptPackage', + 'ScriptPackagesList', + 'ScriptParameter', + 'ScriptSecureStringExecutionParameter', + 'ScriptStringExecutionParameter', 'ServiceSpecification', 'Sku', 'TrackedResource', @@ -231,6 +287,8 @@ 'WorkloadNetworkGatewayList', 'WorkloadNetworkPortMirroring', 'WorkloadNetworkPortMirroringList', + 'WorkloadNetworkPublicIP', + 'WorkloadNetworkPublicIPsList', 'WorkloadNetworkSegment', 'WorkloadNetworkSegmentPortVif', 'WorkloadNetworkSegmentSubnet', @@ -241,6 +299,7 @@ 'WorkloadNetworkVirtualMachinesList', 'AddonProvisioningState', 'AddonType', + 'CloudLinkStatus', 'ClusterProvisioningState', 'DatastoreProvisioningState', 'DhcpTypeEnum', @@ -251,19 +310,26 @@ 'GlobalReachConnectionStatus', 'HcxEnterpriseSiteStatus', 'InternetEnum', + 'MountOptionEnum', 'PortMirroringDirectionEnum', 'PortMirroringStatusEnum', 'PrivateCloudProvisioningState', 'QuotaEnabled', + 'ScriptExecutionParameterType', + 'ScriptExecutionProvisioningState', + 'ScriptOutputStreamType', + 'ScriptParameterTypes', 'SegmentStatusEnum', 'SslEnum', 'TrialStatus', 'VMGroupStatusEnum', 'VMTypeEnum', + 'VisibilityParameterEnum', 'WorkloadNetworkDhcpProvisioningState', 'WorkloadNetworkDnsServiceProvisioningState', 'WorkloadNetworkDnsZoneProvisioningState', 'WorkloadNetworkPortMirroringProvisioningState', + 'WorkloadNetworkPublicIPProvisioningState', 'WorkloadNetworkSegmentProvisioningState', 'WorkloadNetworkVMGroupProvisioningState', ] diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/models/_avs_client_enums.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/models/_avs_client_enums.py index c902b578e59..a8e0a835cf0 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/models/_avs_client_enums.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/models/_avs_client_enums.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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. # -------------------------------------------------------------------------- @@ -41,6 +43,17 @@ class AddonType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): SRM = "SRM" VR = "VR" + HCX = "HCX" + +class CloudLinkStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The state of the cloud link. + """ + + ACTIVE = "Active" + BUILDING = "Building" + DELETING = "Deleting" + FAILED = "Failed" + DISCONNECTED = "Disconnected" class ClusterProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The state of the cluster provisioning @@ -59,14 +72,17 @@ class DatastoreProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, E SUCCEEDED = "Succeeded" FAILED = "Failed" CANCELLED = "Cancelled" - DELETING = "Deleting" + PENDING = "Pending" + CREATING = "Creating" UPDATING = "Updating" + DELETING = "Deleting" class DhcpTypeEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Type of DHCP: SERVER or RELAY. """ - SERVER_RELAY = "SERVER, RELAY" + SERVER = "SERVER" + RELAY = "RELAY" class DnsServiceLogLevelEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """DNS Service log level. @@ -125,6 +141,13 @@ class InternetEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): ENABLED = "Enabled" DISABLED = "Disabled" +class MountOptionEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN + """ + + MOUNT = "MOUNT" + ATTACH = "ATTACH" + class PortMirroringDirectionEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Direction of port mirroring profile. """ @@ -156,6 +179,44 @@ class QuotaEnabled(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): ENABLED = "Enabled" DISABLED = "Disabled" +class ScriptExecutionParameterType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The type of execution parameter + """ + + VALUE = "Value" + SECURE_VALUE = "SecureValue" + CREDENTIAL = "Credential" + +class ScriptExecutionProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The state of the script execution resource + """ + + PENDING = "Pending" + RUNNING = "Running" + SUCCEEDED = "Succeeded" + FAILED = "Failed" + CANCELLING = "Cancelling" + CANCELLED = "Cancelled" + DELETING = "Deleting" + +class ScriptOutputStreamType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + + INFORMATION = "Information" + WARNING = "Warning" + OUTPUT = "Output" + ERROR = "Error" + +class ScriptParameterTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The type of parameter the script is expecting. psCredential is a PSCredentialObject + """ + + STRING = "String" + SECURE_STRING = "SecureString" + CREDENTIAL = "Credential" + INT = "Int" + BOOL = "Bool" + FLOAT = "Float" + class SegmentStatusEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Segment status. """ @@ -177,6 +238,13 @@ class TrialStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): TRIAL_USED = "TrialUsed" TRIAL_DISABLED = "TrialDisabled" +class VisibilityParameterEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Should this parameter be visible to arm and passed in the parameters argument when executing + """ + + VISIBLE = "Visible" + HIDDEN = "Hidden" + class VMGroupStatusEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """VM Group status. """ @@ -229,6 +297,16 @@ class WorkloadNetworkPortMirroringProvisioningState(with_metaclass(_CaseInsensit DELETING = "Deleting" UPDATING = "Updating" +class WorkloadNetworkPublicIPProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The provisioning state + """ + + SUCCEEDED = "Succeeded" + FAILED = "Failed" + BUILDING = "Building" + DELETING = "Deleting" + UPDATING = "Updating" + class WorkloadNetworkSegmentProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The provisioning state """ diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/models/_models.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/models/_models.py index 25b4e933fb8..606e770718f 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/models/_models.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/models/_models.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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. # -------------------------------------------------------------------------- @@ -53,29 +55,21 @@ class Addon(Resource): :vartype name: str :ivar type: Resource type. :vartype type: str - :param license_key: The SRM license. - :type license_key: str - :param addon_type: The type of private cloud addon. Possible values include: "SRM", "VR". - :type addon_type: str or ~avs_client.models.AddonType - :ivar provisioning_state: The state of the addon provisioning. Possible values include: - "Succeeded", "Failed", "Cancelled", "Building", "Deleting", "Updating". - :vartype provisioning_state: str or ~avs_client.models.AddonProvisioningState + :param properties: The properties of an addon resource. + :type properties: ~avs_client.models.AddonProperties """ _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, - 'provisioning_state': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, - 'license_key': {'key': 'properties.licenseKey', 'type': 'str'}, - 'addon_type': {'key': 'properties.addonType', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'AddonProperties'}, } def __init__( @@ -83,11 +77,88 @@ def __init__( **kwargs ): super(Addon, self).__init__(**kwargs) - self.license_key = kwargs.get('license_key', None) - self.addon_type = kwargs.get('addon_type', None) + self.properties = kwargs.get('properties', None) + + +class AddonProperties(msrest.serialization.Model): + """The properties of an addon. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AddonHcxProperties, AddonSrmProperties, AddonVrProperties. + + 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 addon_type: Required. The type of private cloud addon.Constant filled by server. + Possible values include: "SRM", "VR", "HCX". + :type addon_type: str or ~avs_client.models.AddonType + :ivar provisioning_state: The state of the addon provisioning. Possible values include: + "Succeeded", "Failed", "Cancelled", "Building", "Deleting", "Updating". + :vartype provisioning_state: str or ~avs_client.models.AddonProvisioningState + """ + + _validation = { + 'addon_type': {'required': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'addon_type': {'key': 'addonType', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + _subtype_map = { + 'addon_type': {'HCX': 'AddonHcxProperties', 'SRM': 'AddonSrmProperties', 'VR': 'AddonVrProperties'} + } + + def __init__( + self, + **kwargs + ): + super(AddonProperties, self).__init__(**kwargs) + self.addon_type = None # type: Optional[str] self.provisioning_state = None +class AddonHcxProperties(AddonProperties): + """The properties of an HCX addon. + + 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 addon_type: Required. The type of private cloud addon.Constant filled by server. + Possible values include: "SRM", "VR", "HCX". + :type addon_type: str or ~avs_client.models.AddonType + :ivar provisioning_state: The state of the addon provisioning. Possible values include: + "Succeeded", "Failed", "Cancelled", "Building", "Deleting", "Updating". + :vartype provisioning_state: str or ~avs_client.models.AddonProvisioningState + :param offer: Required. The HCX offer, example VMware MaaS Cloud Provider (Enterprise). + :type offer: str + """ + + _validation = { + 'addon_type': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'offer': {'required': True}, + } + + _attribute_map = { + 'addon_type': {'key': 'addonType', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'offer': {'key': 'offer', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(AddonHcxProperties, self).__init__(**kwargs) + self.addon_type = 'HCX' # type: str + self.offer = kwargs['offer'] + + class AddonList(msrest.serialization.Model): """A paged list of addons. @@ -118,90 +189,80 @@ def __init__( self.next_link = None -class AddonSrmProperties(msrest.serialization.Model): - """The properties of an SRM addon that may be updated. - - :param license_key: The SRM license. - :type license_key: str - """ - - _attribute_map = { - 'license_key': {'key': 'licenseKey', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(AddonSrmProperties, self).__init__(**kwargs) - self.license_key = kwargs.get('license_key', None) - - -class AddonProperties(AddonSrmProperties): - """The properties of an addon that may be updated. +class AddonSrmProperties(AddonProperties): + """The properties of a Site Recovery Manager (SRM) addon. Variables are only populated by the server, and will be ignored when sending a request. - :param license_key: The SRM license. - :type license_key: str - :param addon_type: The type of private cloud addon. Possible values include: "SRM", "VR". + All required parameters must be populated in order to send to Azure. + + :param addon_type: Required. The type of private cloud addon.Constant filled by server. + Possible values include: "SRM", "VR", "HCX". :type addon_type: str or ~avs_client.models.AddonType :ivar provisioning_state: The state of the addon provisioning. Possible values include: "Succeeded", "Failed", "Cancelled", "Building", "Deleting", "Updating". :vartype provisioning_state: str or ~avs_client.models.AddonProvisioningState + :param license_key: Required. The Site Recovery Manager (SRM) license. + :type license_key: str """ _validation = { + 'addon_type': {'required': True}, 'provisioning_state': {'readonly': True}, + 'license_key': {'required': True}, } _attribute_map = { - 'license_key': {'key': 'licenseKey', 'type': 'str'}, 'addon_type': {'key': 'addonType', 'type': 'str'}, 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'license_key': {'key': 'licenseKey', 'type': 'str'}, } def __init__( self, **kwargs ): - super(AddonProperties, self).__init__(**kwargs) - self.addon_type = kwargs.get('addon_type', None) - self.provisioning_state = None + super(AddonSrmProperties, self).__init__(**kwargs) + self.addon_type = 'SRM' # type: str + self.license_key = kwargs['license_key'] -class AddonUpdate(msrest.serialization.Model): - """An update of an addon resource. +class AddonVrProperties(AddonProperties): + """The properties of a vSphere Replication (VR) addon. Variables are only populated by the server, and will be ignored when sending a request. - :param license_key: The SRM license. - :type license_key: str - :param addon_type: The type of private cloud addon. Possible values include: "SRM", "VR". + All required parameters must be populated in order to send to Azure. + + :param addon_type: Required. The type of private cloud addon.Constant filled by server. + Possible values include: "SRM", "VR", "HCX". :type addon_type: str or ~avs_client.models.AddonType :ivar provisioning_state: The state of the addon provisioning. Possible values include: "Succeeded", "Failed", "Cancelled", "Building", "Deleting", "Updating". :vartype provisioning_state: str or ~avs_client.models.AddonProvisioningState + :param vrs_count: Required. The vSphere Replication Server (VRS) count. + :type vrs_count: int """ _validation = { + 'addon_type': {'required': True}, 'provisioning_state': {'readonly': True}, + 'vrs_count': {'required': True}, } _attribute_map = { - 'license_key': {'key': 'properties.properties.licenseKey', 'type': 'str'}, - 'addon_type': {'key': 'properties.properties.addonType', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.properties.provisioningState', 'type': 'str'}, + 'addon_type': {'key': 'addonType', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'vrs_count': {'key': 'vrsCount', 'type': 'int'}, } def __init__( self, **kwargs ): - super(AddonUpdate, self).__init__(**kwargs) - self.license_key = kwargs.get('license_key', None) - self.addon_type = kwargs.get('addon_type', None) - self.provisioning_state = None + super(AddonVrProperties, self).__init__(**kwargs) + self.addon_type = 'VR' # type: str + self.vrs_count = kwargs['vrs_count'] class AdminCredentials(msrest.serialization.Model): @@ -284,6 +345,78 @@ def __init__( self.express_route_private_peering_id = None +class CloudLink(Resource): + """A cloud link resource. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar status: The state of the cloud link. Possible values include: "Active", "Building", + "Deleting", "Failed", "Disconnected". + :vartype status: str or ~avs_client.models.CloudLinkStatus + :param linked_cloud: Identifier of the other private cloud participating in the link. + :type linked_cloud: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'status': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'status': {'key': 'properties.status', 'type': 'str'}, + 'linked_cloud': {'key': 'properties.linkedCloud', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(CloudLink, self).__init__(**kwargs) + self.status = None + self.linked_cloud = kwargs.get('linked_cloud', None) + + +class CloudLinkList(msrest.serialization.Model): + """A paged list of cloud links. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: The items on a page. + :vartype value: list[~avs_client.models.CloudLink] + :ivar next_link: URL to get the next page if any. + :vartype next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[CloudLink]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(CloudLinkList, self).__init__(**kwargs) + self.value = None + self.next_link = None + + class Cluster(Resource): """A cluster resource. @@ -480,7 +613,7 @@ class Datastore(Resource): :ivar type: Resource type. :vartype type: str :ivar provisioning_state: The state of the datastore provisioning. Possible values include: - "Succeeded", "Failed", "Cancelled", "Deleting", "Updating". + "Succeeded", "Failed", "Cancelled", "Pending", "Creating", "Updating", "Deleting". :vartype provisioning_state: str or ~avs_client.models.DatastoreProvisioningState :param net_app_volume: An Azure NetApp Files volume. :type net_app_volume: ~avs_client.models.NetAppVolume @@ -547,15 +680,32 @@ def __init__( class DiskPoolVolume(msrest.serialization.Model): """An iSCSI volume from Microsoft.StoragePool provider. - :param endpoints: iSCSI provider target IP address list. - :type endpoints: list[str] - :param lun_name: Name of the LUN to be used. + 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 target_id: Required. Azure resource ID of the iSCSI target. + :type target_id: str + :param lun_name: Required. Name of the LUN to be used for datastore. :type lun_name: str + :param mount_option: Mode that describes whether the LUN has to be mounted as a datastore or + attached as a LUN. Possible values include: "MOUNT", "ATTACH". Default value: "MOUNT". + :type mount_option: str or ~avs_client.models.MountOptionEnum + :ivar path: Device path. + :vartype path: str """ + _validation = { + 'target_id': {'required': True}, + 'lun_name': {'required': True}, + 'path': {'readonly': True}, + } + _attribute_map = { - 'endpoints': {'key': 'endpoints', 'type': '[str]'}, + 'target_id': {'key': 'targetId', 'type': 'str'}, 'lun_name': {'key': 'lunName', 'type': 'str'}, + 'mount_option': {'key': 'mountOption', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, } def __init__( @@ -563,8 +713,10 @@ def __init__( **kwargs ): super(DiskPoolVolume, self).__init__(**kwargs) - self.endpoints = kwargs.get('endpoints', None) - self.lun_name = kwargs.get('lun_name', None) + self.target_id = kwargs['target_id'] + self.lun_name = kwargs['lun_name'] + self.mount_option = kwargs.get('mount_option', "MOUNT") + self.path = None class Endpoints(msrest.serialization.Model): @@ -1145,15 +1297,18 @@ def __init__( class NetAppVolume(msrest.serialization.Model): """An Azure NetApp Files volume from Microsoft.NetApp provider. - :param nfs_provider_ip: IP address of the NFS provider. - :type nfs_provider_ip: str - :param nfs_file_path: File path through which the NFS volume is exposed by the provider. - :type nfs_file_path: str + All required parameters must be populated in order to send to Azure. + + :param id: Required. Azure resource ID of the NetApp volume. + :type id: str """ + _validation = { + 'id': {'required': True}, + } + _attribute_map = { - 'nfs_provider_ip': {'key': 'nfsProviderIp', 'type': 'str'}, - 'nfs_file_path': {'key': 'nfsFilePath', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, } def __init__( @@ -1161,8 +1316,7 @@ def __init__( **kwargs ): super(NetAppVolume, self).__init__(**kwargs) - self.nfs_provider_ip = kwargs.get('nfs_provider_ip', None) - self.nfs_file_path = kwargs.get('nfs_file_path', None) + self.id = kwargs['id'] class Operation(msrest.serialization.Model): @@ -1357,7 +1511,7 @@ class PrivateCloud(TrackedResource): :param sku: Required. The private cloud SKU. :type sku: ~avs_client.models.Sku :param management_cluster: The default cluster used for management. - :type management_cluster: ~avs_client.models.CommonClusterProperties + :type management_cluster: ~avs_client.models.ManagementCluster :param internet: Connectivity to internet is enabled or disabled. Possible values include: "Enabled", "Disabled". Default value: "Disabled". :type internet: str or ~avs_client.models.InternetEnum @@ -1374,6 +1528,8 @@ class PrivateCloud(TrackedResource): as well as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) where A,B,C,D are between 0 and 255, and X is between 0 and 22. :type network_block: str + :ivar external_cloud_links: Array of cloud link IDs from other clouds that connect to this one. + :vartype external_cloud_links: list[str] :ivar management_network: Network used to access vCenter Server and NSX-T Manager. :vartype management_network: str :ivar provisioning_network: Used for virtual machine cold migration, cloning, and snapshot @@ -1400,6 +1556,7 @@ class PrivateCloud(TrackedResource): 'sku': {'required': True}, 'provisioning_state': {'readonly': True}, 'endpoints': {'readonly': True}, + 'external_cloud_links': {'readonly': True}, 'management_network': {'readonly': True}, 'provisioning_network': {'readonly': True}, 'vmotion_network': {'readonly': True}, @@ -1414,13 +1571,14 @@ class PrivateCloud(TrackedResource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'sku': {'key': 'sku', 'type': 'Sku'}, - 'management_cluster': {'key': 'properties.managementCluster', 'type': 'CommonClusterProperties'}, + 'management_cluster': {'key': 'properties.managementCluster', 'type': 'ManagementCluster'}, 'internet': {'key': 'properties.internet', 'type': 'str'}, 'identity_sources': {'key': 'properties.identitySources', 'type': '[IdentitySource]'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'circuit': {'key': 'properties.circuit', 'type': 'Circuit'}, 'endpoints': {'key': 'properties.endpoints', 'type': 'Endpoints'}, 'network_block': {'key': 'properties.networkBlock', 'type': 'str'}, + 'external_cloud_links': {'key': 'properties.externalCloudLinks', 'type': '[str]'}, 'management_network': {'key': 'properties.managementNetwork', 'type': 'str'}, 'provisioning_network': {'key': 'properties.provisioningNetwork', 'type': 'str'}, 'vmotion_network': {'key': 'properties.vmotionNetwork', 'type': 'str'}, @@ -1443,6 +1601,7 @@ def __init__( self.circuit = kwargs.get('circuit', None) self.endpoints = None self.network_block = kwargs.get('network_block', None) + self.external_cloud_links = None self.management_network = None self.provisioning_network = None self.vmotion_network = None @@ -1486,7 +1645,7 @@ class PrivateCloudUpdateProperties(msrest.serialization.Model): """The properties of a private cloud resource that may be updated. :param management_cluster: The default cluster used for management. - :type management_cluster: ~avs_client.models.CommonClusterProperties + :type management_cluster: ~avs_client.models.ManagementCluster :param internet: Connectivity to internet is enabled or disabled. Possible values include: "Enabled", "Disabled". Default value: "Disabled". :type internet: str or ~avs_client.models.InternetEnum @@ -1495,7 +1654,7 @@ class PrivateCloudUpdateProperties(msrest.serialization.Model): """ _attribute_map = { - 'management_cluster': {'key': 'managementCluster', 'type': 'CommonClusterProperties'}, + 'management_cluster': {'key': 'managementCluster', 'type': 'ManagementCluster'}, 'internet': {'key': 'internet', 'type': 'str'}, 'identity_sources': {'key': 'identitySources', 'type': '[IdentitySource]'}, } @@ -1518,7 +1677,7 @@ class PrivateCloudProperties(PrivateCloudUpdateProperties): All required parameters must be populated in order to send to Azure. :param management_cluster: The default cluster used for management. - :type management_cluster: ~avs_client.models.CommonClusterProperties + :type management_cluster: ~avs_client.models.ManagementCluster :param internet: Connectivity to internet is enabled or disabled. Possible values include: "Enabled", "Disabled". Default value: "Disabled". :type internet: str or ~avs_client.models.InternetEnum @@ -1535,6 +1694,8 @@ class PrivateCloudProperties(PrivateCloudUpdateProperties): subscription as well as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) where A,B,C,D are between 0 and 255, and X is between 0 and 22. :type network_block: str + :ivar external_cloud_links: Array of cloud link IDs from other clouds that connect to this one. + :vartype external_cloud_links: list[str] :ivar management_network: Network used to access vCenter Server and NSX-T Manager. :vartype management_network: str :ivar provisioning_network: Used for virtual machine cold migration, cloning, and snapshot @@ -1558,6 +1719,7 @@ class PrivateCloudProperties(PrivateCloudUpdateProperties): 'provisioning_state': {'readonly': True}, 'endpoints': {'readonly': True}, 'network_block': {'required': True}, + 'external_cloud_links': {'readonly': True}, 'management_network': {'readonly': True}, 'provisioning_network': {'readonly': True}, 'vmotion_network': {'readonly': True}, @@ -1566,13 +1728,14 @@ class PrivateCloudProperties(PrivateCloudUpdateProperties): } _attribute_map = { - 'management_cluster': {'key': 'managementCluster', 'type': 'CommonClusterProperties'}, + 'management_cluster': {'key': 'managementCluster', 'type': 'ManagementCluster'}, 'internet': {'key': 'internet', 'type': 'str'}, 'identity_sources': {'key': 'identitySources', 'type': '[IdentitySource]'}, 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'circuit': {'key': 'circuit', 'type': 'Circuit'}, 'endpoints': {'key': 'endpoints', 'type': 'Endpoints'}, 'network_block': {'key': 'networkBlock', 'type': 'str'}, + 'external_cloud_links': {'key': 'externalCloudLinks', 'type': '[str]'}, 'management_network': {'key': 'managementNetwork', 'type': 'str'}, 'provisioning_network': {'key': 'provisioningNetwork', 'type': 'str'}, 'vmotion_network': {'key': 'vmotionNetwork', 'type': 'str'}, @@ -1591,6 +1754,7 @@ def __init__( self.circuit = kwargs.get('circuit', None) self.endpoints = None self.network_block = kwargs['network_block'] + self.external_cloud_links = None self.management_network = None self.provisioning_network = None self.vmotion_network = None @@ -1606,7 +1770,7 @@ class PrivateCloudUpdate(msrest.serialization.Model): :param tags: A set of tags. Resource tags. :type tags: dict[str, str] :param management_cluster: The default cluster used for management. - :type management_cluster: ~avs_client.models.CommonClusterProperties + :type management_cluster: ~avs_client.models.ManagementCluster :param internet: Connectivity to internet is enabled or disabled. Possible values include: "Enabled", "Disabled". Default value: "Disabled". :type internet: str or ~avs_client.models.InternetEnum @@ -1616,7 +1780,7 @@ class PrivateCloudUpdate(msrest.serialization.Model): _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, - 'management_cluster': {'key': 'properties.managementCluster', 'type': 'CommonClusterProperties'}, + 'management_cluster': {'key': 'properties.managementCluster', 'type': 'ManagementCluster'}, 'internet': {'key': 'properties.internet', 'type': 'str'}, 'identity_sources': {'key': 'properties.identitySources', 'type': '[IdentitySource]'}, } @@ -1664,118 +1828,115 @@ def __init__( super(ProxyResource, self).__init__(**kwargs) -class Quota(msrest.serialization.Model): - """Subscription quotas. +class ScriptExecutionParameter(msrest.serialization.Model): + """The arguments passed in to the execution. - Variables are only populated by the server, and will be ignored when sending a request. + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: PSCredentialExecutionParameter, ScriptSecureStringExecutionParameter, ScriptStringExecutionParameter. - :ivar hosts_remaining: Remaining hosts quota by sku type. - :vartype hosts_remaining: dict[str, int] - :ivar quota_enabled: Host quota is active for current subscription. Possible values include: - "Enabled", "Disabled". - :vartype quota_enabled: str or ~avs_client.models.QuotaEnabled + All required parameters must be populated in order to send to Azure. + + :param name: Required. The parameter name. + :type name: str + :param type: Required. The type of execution parameter.Constant filled by server. Possible + values include: "Value", "SecureValue", "Credential". + :type type: str or ~avs_client.models.ScriptExecutionParameterType """ _validation = { - 'hosts_remaining': {'readonly': True}, - 'quota_enabled': {'readonly': True}, + 'name': {'required': True}, + 'type': {'required': True}, } _attribute_map = { - 'hosts_remaining': {'key': 'hostsRemaining', 'type': '{int}'}, - 'quota_enabled': {'key': 'quotaEnabled', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, } - def __init__( - self, - **kwargs - ): - super(Quota, self).__init__(**kwargs) - self.hosts_remaining = None - self.quota_enabled = None - - -class ServiceSpecification(msrest.serialization.Model): - """Service specification payload. - - :param log_specifications: Specifications of the Log for Azure Monitoring. - :type log_specifications: list[~avs_client.models.LogSpecification] - :param metric_specifications: Specifications of the Metrics for Azure Monitoring. - :type metric_specifications: list[~avs_client.models.MetricSpecification] - """ - - _attribute_map = { - 'log_specifications': {'key': 'logSpecifications', 'type': '[LogSpecification]'}, - 'metric_specifications': {'key': 'metricSpecifications', 'type': '[MetricSpecification]'}, + _subtype_map = { + 'type': {'Credential': 'PSCredentialExecutionParameter', 'SecureValue': 'ScriptSecureStringExecutionParameter', 'Value': 'ScriptStringExecutionParameter'} } def __init__( self, **kwargs ): - super(ServiceSpecification, self).__init__(**kwargs) - self.log_specifications = kwargs.get('log_specifications', None) - self.metric_specifications = kwargs.get('metric_specifications', None) + super(ScriptExecutionParameter, self).__init__(**kwargs) + self.name = kwargs['name'] + self.type = None # type: Optional[str] -class Sku(msrest.serialization.Model): - """The resource model definition representing SKU. +class PSCredentialExecutionParameter(ScriptExecutionParameter): + """a powershell credential object. All required parameters must be populated in order to send to Azure. - :param name: Required. The name of the SKU. + :param name: Required. The parameter name. :type name: str + :param type: Required. The type of execution parameter.Constant filled by server. Possible + values include: "Value", "SecureValue", "Credential". + :type type: str or ~avs_client.models.ScriptExecutionParameterType + :param username: username for login. + :type username: str + :param password: password for login. + :type password: str """ _validation = { 'name': {'required': True}, + 'type': {'required': True}, } _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'username': {'key': 'username', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, } def __init__( self, **kwargs ): - super(Sku, self).__init__(**kwargs) - self.name = kwargs['name'] + super(PSCredentialExecutionParameter, self).__init__(**kwargs) + self.type = 'Credential' # type: str + self.username = kwargs.get('username', None) + self.password = kwargs.get('password', None) -class Trial(msrest.serialization.Model): - """Subscription trial availability. +class Quota(msrest.serialization.Model): + """Subscription quotas. Variables are only populated by the server, and will be ignored when sending a request. - :ivar status: Trial status. Possible values include: "TrialAvailable", "TrialUsed", - "TrialDisabled". - :vartype status: str or ~avs_client.models.TrialStatus - :ivar available_hosts: Number of trial hosts available. - :vartype available_hosts: int + :ivar hosts_remaining: Remaining hosts quota by sku type. + :vartype hosts_remaining: dict[str, int] + :ivar quota_enabled: Host quota is active for current subscription. Possible values include: + "Enabled", "Disabled". + :vartype quota_enabled: str or ~avs_client.models.QuotaEnabled """ _validation = { - 'status': {'readonly': True}, - 'available_hosts': {'readonly': True}, + 'hosts_remaining': {'readonly': True}, + 'quota_enabled': {'readonly': True}, } _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'available_hosts': {'key': 'availableHosts', 'type': 'int'}, + 'hosts_remaining': {'key': 'hostsRemaining', 'type': '{int}'}, + 'quota_enabled': {'key': 'quotaEnabled', 'type': 'str'}, } def __init__( self, **kwargs ): - super(Trial, self).__init__(**kwargs) - self.status = None - self.available_hosts = None + super(Quota, self).__init__(**kwargs) + self.hosts_remaining = None + self.quota_enabled = None -class WorkloadNetworkDhcp(Resource): - """NSX DHCP. +class ScriptCmdlet(ProxyResource): + """A cmdlet available for script execution. Variables are only populated by the server, and will be ignored when sending a request. @@ -1785,49 +1946,501 @@ class WorkloadNetworkDhcp(Resource): :vartype name: str :ivar type: Resource type. :vartype type: str - :param dhcp_type: Type of DHCP: SERVER or RELAY.Constant filled by server. Possible values - include: "SERVER, RELAY". - :type dhcp_type: str or ~avs_client.models.DhcpTypeEnum - :param display_name: Display name of the DHCP entity. - :type display_name: str - :ivar segments: NSX Segments consuming DHCP. - :vartype segments: list[str] - :ivar provisioning_state: The provisioning state. Possible values include: "Succeeded", - "Failed", "Building", "Deleting", "Updating". - :vartype provisioning_state: str or ~avs_client.models.WorkloadNetworkDhcpProvisioningState - :param revision: NSX revision number. - :type revision: long + :ivar description: Description of the scripts functionality. + :vartype description: str + :ivar timeout: Recommended time limit for execution. + :vartype timeout: str + :ivar parameters: Parameters the script will accept. + :vartype parameters: list[~avs_client.models.ScriptParameter] """ _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, - 'segments': {'readonly': True}, + 'description': {'readonly': True}, + 'timeout': {'readonly': True}, + 'parameters': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'timeout': {'key': 'properties.timeout', 'type': 'str'}, + 'parameters': {'key': 'properties.parameters', 'type': '[ScriptParameter]'}, + } + + def __init__( + self, + **kwargs + ): + super(ScriptCmdlet, self).__init__(**kwargs) + self.description = None + self.timeout = None + self.parameters = None + + +class ScriptCmdletsList(msrest.serialization.Model): + """Pageable list of scripts/cmdlets. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of scripts. + :vartype value: list[~avs_client.models.ScriptCmdlet] + :ivar next_link: URL to get the next page if any. + :vartype next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ScriptCmdlet]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ScriptCmdletsList, self).__init__(**kwargs) + self.value = None + self.next_link = None + + +class ScriptExecution(ProxyResource): + """An instance of a script executed by a user - custom or AVS. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param script_cmdlet_id: A reference to the script cmdlet resource if user is running a AVS + script. + :type script_cmdlet_id: str + :param parameters: Parameters the script will accept. + :type parameters: list[~avs_client.models.ScriptExecutionParameter] + :param hidden_parameters: Parameters that will be hidden/not visible to ARM, such as passwords + and credentials. + :type hidden_parameters: list[~avs_client.models.ScriptExecutionParameter] + :param failure_reason: Error message if the script was able to run, but if the script itself + had errors or powershell threw an exception. + :type failure_reason: str + :param timeout: Time limit for execution. + :type timeout: str + :param retention: Time to live for the resource. If not provided, will be available for 60 + days. + :type retention: str + :ivar submitted_at: Time the script execution was submitted. + :vartype submitted_at: ~datetime.datetime + :ivar started_at: Time the script execution was started. + :vartype started_at: ~datetime.datetime + :ivar finished_at: Time the script execution was finished. + :vartype finished_at: ~datetime.datetime + :ivar provisioning_state: The state of the script execution resource. Possible values include: + "Pending", "Running", "Succeeded", "Failed", "Cancelling", "Cancelled", "Deleting". + :vartype provisioning_state: str or ~avs_client.models.ScriptExecutionProvisioningState + :param output: Standard output stream from the powershell execution. + :type output: list[str] + :param named_outputs: User-defined dictionary. + :type named_outputs: dict[str, object] + :ivar information: Standard information out stream from the powershell execution. + :vartype information: list[str] + :ivar warnings: Standard warning out stream from the powershell execution. + :vartype warnings: list[str] + :ivar errors: Standard error output stream from the powershell execution. + :vartype errors: list[str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'submitted_at': {'readonly': True}, + 'started_at': {'readonly': True}, + 'finished_at': {'readonly': True}, 'provisioning_state': {'readonly': True}, + 'information': {'readonly': True}, + 'warnings': {'readonly': True}, + 'errors': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, - 'dhcp_type': {'key': 'properties.dhcpType', 'type': 'str'}, - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'segments': {'key': 'properties.segments', 'type': '[str]'}, + 'script_cmdlet_id': {'key': 'properties.scriptCmdletId', 'type': 'str'}, + 'parameters': {'key': 'properties.parameters', 'type': '[ScriptExecutionParameter]'}, + 'hidden_parameters': {'key': 'properties.hiddenParameters', 'type': '[ScriptExecutionParameter]'}, + 'failure_reason': {'key': 'properties.failureReason', 'type': 'str'}, + 'timeout': {'key': 'properties.timeout', 'type': 'str'}, + 'retention': {'key': 'properties.retention', 'type': 'str'}, + 'submitted_at': {'key': 'properties.submittedAt', 'type': 'iso-8601'}, + 'started_at': {'key': 'properties.startedAt', 'type': 'iso-8601'}, + 'finished_at': {'key': 'properties.finishedAt', 'type': 'iso-8601'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'revision': {'key': 'properties.revision', 'type': 'long'}, + 'output': {'key': 'properties.output', 'type': '[str]'}, + 'named_outputs': {'key': 'properties.namedOutputs', 'type': '{object}'}, + 'information': {'key': 'properties.information', 'type': '[str]'}, + 'warnings': {'key': 'properties.warnings', 'type': '[str]'}, + 'errors': {'key': 'properties.errors', 'type': '[str]'}, } def __init__( self, **kwargs ): - super(WorkloadNetworkDhcp, self).__init__(**kwargs) - self.dhcp_type = None # type: Optional[str] - self.display_name = kwargs.get('display_name', None) - self.segments = None + super(ScriptExecution, self).__init__(**kwargs) + self.script_cmdlet_id = kwargs.get('script_cmdlet_id', None) + self.parameters = kwargs.get('parameters', None) + self.hidden_parameters = kwargs.get('hidden_parameters', None) + self.failure_reason = kwargs.get('failure_reason', None) + self.timeout = kwargs.get('timeout', None) + self.retention = kwargs.get('retention', None) + self.submitted_at = None + self.started_at = None + self.finished_at = None self.provisioning_state = None - self.revision = kwargs.get('revision', None) + self.output = kwargs.get('output', None) + self.named_outputs = kwargs.get('named_outputs', None) + self.information = None + self.warnings = None + self.errors = None + + +class ScriptExecutionsList(msrest.serialization.Model): + """Pageable list of script executions. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of scripts. + :vartype value: list[~avs_client.models.ScriptExecution] + :ivar next_link: URL to get the next page if any. + :vartype next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ScriptExecution]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ScriptExecutionsList, self).__init__(**kwargs) + self.value = None + self.next_link = None + + +class ScriptPackage(ProxyResource): + """Script Package resources available for execution. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar description: User friendly description of the package. + :vartype description: str + :ivar version: Module version. + :vartype version: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'description': {'readonly': True}, + 'version': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'version': {'key': 'properties.version', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ScriptPackage, self).__init__(**kwargs) + self.description = None + self.version = None + + +class ScriptPackagesList(msrest.serialization.Model): + """A list of the available script packages. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of script package resources. + :vartype value: list[~avs_client.models.ScriptPackage] + :ivar next_link: URL to get the next page if any. + :vartype next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ScriptPackage]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ScriptPackagesList, self).__init__(**kwargs) + self.value = None + self.next_link = None + + +class ScriptParameter(msrest.serialization.Model): + """An parameter that the script will accept. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar type: The type of parameter the script is expecting. psCredential is a + PSCredentialObject. Possible values include: "String", "SecureString", "Credential", "Int", + "Bool", "Float". + :vartype type: str or ~avs_client.models.ScriptParameterTypes + :param name: The parameter name that the script will expect a parameter value for. + :type name: str + :ivar description: User friendly description of the parameter. + :vartype description: str + :ivar visibility: Should this parameter be visible to arm and passed in the parameters argument + when executing. Possible values include: "Visible", "Hidden". + :vartype visibility: str or ~avs_client.models.VisibilityParameterEnum + """ + + _validation = { + 'type': {'readonly': True}, + 'description': {'readonly': True}, + 'visibility': {'readonly': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'visibility': {'key': 'visibility', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ScriptParameter, self).__init__(**kwargs) + self.type = None + self.name = kwargs.get('name', None) + self.description = None + self.visibility = None + + +class ScriptSecureStringExecutionParameter(ScriptExecutionParameter): + """a plain text value execution parameter. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The parameter name. + :type name: str + :param type: Required. The type of execution parameter.Constant filled by server. Possible + values include: "Value", "SecureValue", "Credential". + :type type: str or ~avs_client.models.ScriptExecutionParameterType + :param secure_value: A secure value for the passed parameter, not to be stored in logs. + :type secure_value: str + """ + + _validation = { + 'name': {'required': True}, + 'type': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'secure_value': {'key': 'secureValue', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ScriptSecureStringExecutionParameter, self).__init__(**kwargs) + self.type = 'SecureValue' # type: str + self.secure_value = kwargs.get('secure_value', None) + + +class ScriptStringExecutionParameter(ScriptExecutionParameter): + """a plain text value execution parameter. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The parameter name. + :type name: str + :param type: Required. The type of execution parameter.Constant filled by server. Possible + values include: "Value", "SecureValue", "Credential". + :type type: str or ~avs_client.models.ScriptExecutionParameterType + :param value: The value for the passed parameter. + :type value: str + """ + + _validation = { + 'name': {'required': True}, + 'type': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ScriptStringExecutionParameter, self).__init__(**kwargs) + self.type = 'Value' # type: str + self.value = kwargs.get('value', None) + + +class ServiceSpecification(msrest.serialization.Model): + """Service specification payload. + + :param log_specifications: Specifications of the Log for Azure Monitoring. + :type log_specifications: list[~avs_client.models.LogSpecification] + :param metric_specifications: Specifications of the Metrics for Azure Monitoring. + :type metric_specifications: list[~avs_client.models.MetricSpecification] + """ + + _attribute_map = { + 'log_specifications': {'key': 'logSpecifications', 'type': '[LogSpecification]'}, + 'metric_specifications': {'key': 'metricSpecifications', 'type': '[MetricSpecification]'}, + } + + def __init__( + self, + **kwargs + ): + super(ServiceSpecification, self).__init__(**kwargs) + self.log_specifications = kwargs.get('log_specifications', None) + self.metric_specifications = kwargs.get('metric_specifications', None) + + +class Sku(msrest.serialization.Model): + """The resource model definition representing SKU. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the SKU. + :type name: str + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(Sku, self).__init__(**kwargs) + self.name = kwargs['name'] + + +class Trial(msrest.serialization.Model): + """Subscription trial availability. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar status: Trial status. Possible values include: "TrialAvailable", "TrialUsed", + "TrialDisabled". + :vartype status: str or ~avs_client.models.TrialStatus + :ivar available_hosts: Number of trial hosts available. + :vartype available_hosts: int + """ + + _validation = { + 'status': {'readonly': True}, + 'available_hosts': {'readonly': True}, + } + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'available_hosts': {'key': 'availableHosts', 'type': 'int'}, + } + + def __init__( + self, + **kwargs + ): + super(Trial, self).__init__(**kwargs) + self.status = None + self.available_hosts = None + + +class WorkloadNetworkDhcp(ProxyResource): + """NSX DHCP. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param properties: DHCP properties. + :type properties: ~avs_client.models.WorkloadNetworkDhcpEntity + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'WorkloadNetworkDhcpEntity'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkloadNetworkDhcp, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) class WorkloadNetworkDhcpEntity(msrest.serialization.Model): @@ -1841,7 +2454,7 @@ class WorkloadNetworkDhcpEntity(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. :param dhcp_type: Required. Type of DHCP: SERVER or RELAY.Constant filled by server. Possible - values include: "SERVER, RELAY". + values include: "SERVER", "RELAY". :type dhcp_type: str or ~avs_client.models.DhcpTypeEnum :param display_name: Display name of the DHCP entity. :type display_name: str @@ -1922,7 +2535,7 @@ class WorkloadNetworkDhcpRelay(WorkloadNetworkDhcpEntity): All required parameters must be populated in order to send to Azure. :param dhcp_type: Required. Type of DHCP: SERVER or RELAY.Constant filled by server. Possible - values include: "SERVER, RELAY". + values include: "SERVER", "RELAY". :type dhcp_type: str or ~avs_client.models.DhcpTypeEnum :param display_name: Display name of the DHCP entity. :type display_name: str @@ -1970,7 +2583,7 @@ class WorkloadNetworkDhcpServer(WorkloadNetworkDhcpEntity): All required parameters must be populated in order to send to Azure. :param dhcp_type: Required. Type of DHCP: SERVER or RELAY.Constant filled by server. Possible - values include: "SERVER, RELAY". + values include: "SERVER", "RELAY". :type dhcp_type: str or ~avs_client.models.DhcpTypeEnum :param display_name: Display name of the DHCP entity. :type display_name: str @@ -2013,7 +2626,7 @@ def __init__( self.lease_time = kwargs.get('lease_time', None) -class WorkloadNetworkDnsService(Resource): +class WorkloadNetworkDnsService(ProxyResource): """NSX DNS Service. Variables are only populated by the server, and will be ignored when sending a request. @@ -2112,7 +2725,7 @@ def __init__( self.next_link = None -class WorkloadNetworkDnsZone(Resource): +class WorkloadNetworkDnsZone(ProxyResource): """NSX DNS Zone. Variables are only populated by the server, and will be ignored when sending a request. @@ -2204,7 +2817,7 @@ def __init__( self.next_link = None -class WorkloadNetworkGateway(Resource): +class WorkloadNetworkGateway(ProxyResource): """NSX Gateway. Variables are only populated by the server, and will be ignored when sending a request. @@ -2275,7 +2888,7 @@ def __init__( self.next_link = None -class WorkloadNetworkPortMirroring(Resource): +class WorkloadNetworkPortMirroring(ProxyResource): """NSX Port Mirroring. Variables are only populated by the server, and will be ignored when sending a request. @@ -2370,7 +2983,88 @@ def __init__( self.next_link = None -class WorkloadNetworkSegment(Resource): +class WorkloadNetworkPublicIP(ProxyResource): + """NSX Public IP Block. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param display_name: Display name of the Public IP Block. + :type display_name: str + :param number_of_public_i_ps: Number of Public IPs requested. + :type number_of_public_i_ps: long + :ivar public_ip_block: CIDR Block of the Public IP Block. + :vartype public_ip_block: str + :ivar provisioning_state: The provisioning state. Possible values include: "Succeeded", + "Failed", "Building", "Deleting", "Updating". + :vartype provisioning_state: str or ~avs_client.models.WorkloadNetworkPublicIPProvisioningState + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'public_ip_block': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'display_name': {'key': 'properties.displayName', 'type': 'str'}, + 'number_of_public_i_ps': {'key': 'properties.numberOfPublicIPs', 'type': 'long'}, + 'public_ip_block': {'key': 'properties.publicIPBlock', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkloadNetworkPublicIP, self).__init__(**kwargs) + self.display_name = kwargs.get('display_name', None) + self.number_of_public_i_ps = kwargs.get('number_of_public_i_ps', None) + self.public_ip_block = None + self.provisioning_state = None + + +class WorkloadNetworkPublicIPsList(msrest.serialization.Model): + """A list of NSX Public IP Blocks. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: The items on the page. + :vartype value: list[~avs_client.models.WorkloadNetworkPublicIP] + :ivar next_link: URL to get the next page if any. + :vartype next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[WorkloadNetworkPublicIP]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkloadNetworkPublicIPsList, self).__init__(**kwargs) + self.value = None + self.next_link = None + + +class WorkloadNetworkSegment(ProxyResource): """NSX Segment. Variables are only populated by the server, and will be ignored when sending a request. @@ -2506,7 +3200,7 @@ def __init__( self.gateway_address = kwargs.get('gateway_address', None) -class WorkloadNetworkVirtualMachine(Resource): +class WorkloadNetworkVirtualMachine(ProxyResource): """NSX Virtual Machine. Variables are only populated by the server, and will be ignored when sending a request. @@ -2577,7 +3271,7 @@ def __init__( self.next_link = None -class WorkloadNetworkVMGroup(Resource): +class WorkloadNetworkVMGroup(ProxyResource): """NSX VM Group. Variables are only populated by the server, and will be ignored when sending a request. diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/models/_models_py3.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/models/_models_py3.py index 84228a7340c..e9dafb49447 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/models/_models_py3.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/models/_models_py3.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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. # -------------------------------------------------------------------------- @@ -57,44 +59,114 @@ class Addon(Resource): :vartype name: str :ivar type: Resource type. :vartype type: str - :param license_key: The SRM license. - :type license_key: str - :param addon_type: The type of private cloud addon. Possible values include: "SRM", "VR". - :type addon_type: str or ~avs_client.models.AddonType - :ivar provisioning_state: The state of the addon provisioning. Possible values include: - "Succeeded", "Failed", "Cancelled", "Building", "Deleting", "Updating". - :vartype provisioning_state: str or ~avs_client.models.AddonProvisioningState + :param properties: The properties of an addon resource. + :type properties: ~avs_client.models.AddonProperties """ _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, - 'provisioning_state': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, - 'license_key': {'key': 'properties.licenseKey', 'type': 'str'}, - 'addon_type': {'key': 'properties.addonType', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'AddonProperties'}, } def __init__( self, *, - license_key: Optional[str] = None, - addon_type: Optional[Union[str, "AddonType"]] = None, + properties: Optional["AddonProperties"] = None, **kwargs ): super(Addon, self).__init__(**kwargs) - self.license_key = license_key - self.addon_type = addon_type + self.properties = properties + + +class AddonProperties(msrest.serialization.Model): + """The properties of an addon. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AddonHcxProperties, AddonSrmProperties, AddonVrProperties. + + 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 addon_type: Required. The type of private cloud addon.Constant filled by server. + Possible values include: "SRM", "VR", "HCX". + :type addon_type: str or ~avs_client.models.AddonType + :ivar provisioning_state: The state of the addon provisioning. Possible values include: + "Succeeded", "Failed", "Cancelled", "Building", "Deleting", "Updating". + :vartype provisioning_state: str or ~avs_client.models.AddonProvisioningState + """ + + _validation = { + 'addon_type': {'required': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'addon_type': {'key': 'addonType', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + _subtype_map = { + 'addon_type': {'HCX': 'AddonHcxProperties', 'SRM': 'AddonSrmProperties', 'VR': 'AddonVrProperties'} + } + + def __init__( + self, + **kwargs + ): + super(AddonProperties, self).__init__(**kwargs) + self.addon_type = None # type: Optional[str] self.provisioning_state = None +class AddonHcxProperties(AddonProperties): + """The properties of an HCX addon. + + 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 addon_type: Required. The type of private cloud addon.Constant filled by server. + Possible values include: "SRM", "VR", "HCX". + :type addon_type: str or ~avs_client.models.AddonType + :ivar provisioning_state: The state of the addon provisioning. Possible values include: + "Succeeded", "Failed", "Cancelled", "Building", "Deleting", "Updating". + :vartype provisioning_state: str or ~avs_client.models.AddonProvisioningState + :param offer: Required. The HCX offer, example VMware MaaS Cloud Provider (Enterprise). + :type offer: str + """ + + _validation = { + 'addon_type': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'offer': {'required': True}, + } + + _attribute_map = { + 'addon_type': {'key': 'addonType', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'offer': {'key': 'offer', 'type': 'str'}, + } + + def __init__( + self, + *, + offer: str, + **kwargs + ): + super(AddonHcxProperties, self).__init__(**kwargs) + self.addon_type = 'HCX' # type: str + self.offer = offer + + class AddonList(msrest.serialization.Model): """A paged list of addons. @@ -125,98 +197,84 @@ def __init__( self.next_link = None -class AddonSrmProperties(msrest.serialization.Model): - """The properties of an SRM addon that may be updated. - - :param license_key: The SRM license. - :type license_key: str - """ - - _attribute_map = { - 'license_key': {'key': 'licenseKey', 'type': 'str'}, - } - - def __init__( - self, - *, - license_key: Optional[str] = None, - **kwargs - ): - super(AddonSrmProperties, self).__init__(**kwargs) - self.license_key = license_key - - -class AddonProperties(AddonSrmProperties): - """The properties of an addon that may be updated. +class AddonSrmProperties(AddonProperties): + """The properties of a Site Recovery Manager (SRM) addon. Variables are only populated by the server, and will be ignored when sending a request. - :param license_key: The SRM license. - :type license_key: str - :param addon_type: The type of private cloud addon. Possible values include: "SRM", "VR". + All required parameters must be populated in order to send to Azure. + + :param addon_type: Required. The type of private cloud addon.Constant filled by server. + Possible values include: "SRM", "VR", "HCX". :type addon_type: str or ~avs_client.models.AddonType :ivar provisioning_state: The state of the addon provisioning. Possible values include: "Succeeded", "Failed", "Cancelled", "Building", "Deleting", "Updating". :vartype provisioning_state: str or ~avs_client.models.AddonProvisioningState + :param license_key: Required. The Site Recovery Manager (SRM) license. + :type license_key: str """ _validation = { + 'addon_type': {'required': True}, 'provisioning_state': {'readonly': True}, + 'license_key': {'required': True}, } _attribute_map = { - 'license_key': {'key': 'licenseKey', 'type': 'str'}, 'addon_type': {'key': 'addonType', 'type': 'str'}, 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'license_key': {'key': 'licenseKey', 'type': 'str'}, } def __init__( self, *, - license_key: Optional[str] = None, - addon_type: Optional[Union[str, "AddonType"]] = None, + license_key: str, **kwargs ): - super(AddonProperties, self).__init__(license_key=license_key, **kwargs) - self.addon_type = addon_type - self.provisioning_state = None + super(AddonSrmProperties, self).__init__(**kwargs) + self.addon_type = 'SRM' # type: str + self.license_key = license_key -class AddonUpdate(msrest.serialization.Model): - """An update of an addon resource. +class AddonVrProperties(AddonProperties): + """The properties of a vSphere Replication (VR) addon. Variables are only populated by the server, and will be ignored when sending a request. - :param license_key: The SRM license. - :type license_key: str - :param addon_type: The type of private cloud addon. Possible values include: "SRM", "VR". + All required parameters must be populated in order to send to Azure. + + :param addon_type: Required. The type of private cloud addon.Constant filled by server. + Possible values include: "SRM", "VR", "HCX". :type addon_type: str or ~avs_client.models.AddonType :ivar provisioning_state: The state of the addon provisioning. Possible values include: "Succeeded", "Failed", "Cancelled", "Building", "Deleting", "Updating". :vartype provisioning_state: str or ~avs_client.models.AddonProvisioningState + :param vrs_count: Required. The vSphere Replication Server (VRS) count. + :type vrs_count: int """ _validation = { + 'addon_type': {'required': True}, 'provisioning_state': {'readonly': True}, + 'vrs_count': {'required': True}, } _attribute_map = { - 'license_key': {'key': 'properties.properties.licenseKey', 'type': 'str'}, - 'addon_type': {'key': 'properties.properties.addonType', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.properties.provisioningState', 'type': 'str'}, + 'addon_type': {'key': 'addonType', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'vrs_count': {'key': 'vrsCount', 'type': 'int'}, } def __init__( self, *, - license_key: Optional[str] = None, - addon_type: Optional[Union[str, "AddonType"]] = None, + vrs_count: int, **kwargs ): - super(AddonUpdate, self).__init__(**kwargs) - self.license_key = license_key - self.addon_type = addon_type - self.provisioning_state = None + super(AddonVrProperties, self).__init__(**kwargs) + self.addon_type = 'VR' # type: str + self.vrs_count = vrs_count class AdminCredentials(msrest.serialization.Model): @@ -299,6 +357,80 @@ def __init__( self.express_route_private_peering_id = None +class CloudLink(Resource): + """A cloud link resource. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar status: The state of the cloud link. Possible values include: "Active", "Building", + "Deleting", "Failed", "Disconnected". + :vartype status: str or ~avs_client.models.CloudLinkStatus + :param linked_cloud: Identifier of the other private cloud participating in the link. + :type linked_cloud: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'status': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'status': {'key': 'properties.status', 'type': 'str'}, + 'linked_cloud': {'key': 'properties.linkedCloud', 'type': 'str'}, + } + + def __init__( + self, + *, + linked_cloud: Optional[str] = None, + **kwargs + ): + super(CloudLink, self).__init__(**kwargs) + self.status = None + self.linked_cloud = linked_cloud + + +class CloudLinkList(msrest.serialization.Model): + """A paged list of cloud links. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: The items on a page. + :vartype value: list[~avs_client.models.CloudLink] + :ivar next_link: URL to get the next page if any. + :vartype next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[CloudLink]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(CloudLinkList, self).__init__(**kwargs) + self.value = None + self.next_link = None + + class Cluster(Resource): """A cluster resource. @@ -504,7 +636,7 @@ class Datastore(Resource): :ivar type: Resource type. :vartype type: str :ivar provisioning_state: The state of the datastore provisioning. Possible values include: - "Succeeded", "Failed", "Cancelled", "Deleting", "Updating". + "Succeeded", "Failed", "Cancelled", "Pending", "Creating", "Updating", "Deleting". :vartype provisioning_state: str or ~avs_client.models.DatastoreProvisioningState :param net_app_volume: An Azure NetApp Files volume. :type net_app_volume: ~avs_client.models.NetAppVolume @@ -574,27 +706,47 @@ def __init__( class DiskPoolVolume(msrest.serialization.Model): """An iSCSI volume from Microsoft.StoragePool provider. - :param endpoints: iSCSI provider target IP address list. - :type endpoints: list[str] - :param lun_name: Name of the LUN to be used. + 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 target_id: Required. Azure resource ID of the iSCSI target. + :type target_id: str + :param lun_name: Required. Name of the LUN to be used for datastore. :type lun_name: str + :param mount_option: Mode that describes whether the LUN has to be mounted as a datastore or + attached as a LUN. Possible values include: "MOUNT", "ATTACH". Default value: "MOUNT". + :type mount_option: str or ~avs_client.models.MountOptionEnum + :ivar path: Device path. + :vartype path: str """ + _validation = { + 'target_id': {'required': True}, + 'lun_name': {'required': True}, + 'path': {'readonly': True}, + } + _attribute_map = { - 'endpoints': {'key': 'endpoints', 'type': '[str]'}, + 'target_id': {'key': 'targetId', 'type': 'str'}, 'lun_name': {'key': 'lunName', 'type': 'str'}, + 'mount_option': {'key': 'mountOption', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, } def __init__( self, *, - endpoints: Optional[List[str]] = None, - lun_name: Optional[str] = None, + target_id: str, + lun_name: str, + mount_option: Optional[Union[str, "MountOptionEnum"]] = "MOUNT", **kwargs ): super(DiskPoolVolume, self).__init__(**kwargs) - self.endpoints = endpoints + self.target_id = target_id self.lun_name = lun_name + self.mount_option = mount_option + self.path = None class Endpoints(msrest.serialization.Model): @@ -1214,27 +1366,28 @@ def __init__( class NetAppVolume(msrest.serialization.Model): """An Azure NetApp Files volume from Microsoft.NetApp provider. - :param nfs_provider_ip: IP address of the NFS provider. - :type nfs_provider_ip: str - :param nfs_file_path: File path through which the NFS volume is exposed by the provider. - :type nfs_file_path: str + All required parameters must be populated in order to send to Azure. + + :param id: Required. Azure resource ID of the NetApp volume. + :type id: str """ + _validation = { + 'id': {'required': True}, + } + _attribute_map = { - 'nfs_provider_ip': {'key': 'nfsProviderIp', 'type': 'str'}, - 'nfs_file_path': {'key': 'nfsFilePath', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, } def __init__( self, *, - nfs_provider_ip: Optional[str] = None, - nfs_file_path: Optional[str] = None, + id: str, **kwargs ): super(NetAppVolume, self).__init__(**kwargs) - self.nfs_provider_ip = nfs_provider_ip - self.nfs_file_path = nfs_file_path + self.id = id class Operation(msrest.serialization.Model): @@ -1438,7 +1591,7 @@ class PrivateCloud(TrackedResource): :param sku: Required. The private cloud SKU. :type sku: ~avs_client.models.Sku :param management_cluster: The default cluster used for management. - :type management_cluster: ~avs_client.models.CommonClusterProperties + :type management_cluster: ~avs_client.models.ManagementCluster :param internet: Connectivity to internet is enabled or disabled. Possible values include: "Enabled", "Disabled". Default value: "Disabled". :type internet: str or ~avs_client.models.InternetEnum @@ -1455,6 +1608,8 @@ class PrivateCloud(TrackedResource): as well as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) where A,B,C,D are between 0 and 255, and X is between 0 and 22. :type network_block: str + :ivar external_cloud_links: Array of cloud link IDs from other clouds that connect to this one. + :vartype external_cloud_links: list[str] :ivar management_network: Network used to access vCenter Server and NSX-T Manager. :vartype management_network: str :ivar provisioning_network: Used for virtual machine cold migration, cloning, and snapshot @@ -1481,6 +1636,7 @@ class PrivateCloud(TrackedResource): 'sku': {'required': True}, 'provisioning_state': {'readonly': True}, 'endpoints': {'readonly': True}, + 'external_cloud_links': {'readonly': True}, 'management_network': {'readonly': True}, 'provisioning_network': {'readonly': True}, 'vmotion_network': {'readonly': True}, @@ -1495,13 +1651,14 @@ class PrivateCloud(TrackedResource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'sku': {'key': 'sku', 'type': 'Sku'}, - 'management_cluster': {'key': 'properties.managementCluster', 'type': 'CommonClusterProperties'}, + 'management_cluster': {'key': 'properties.managementCluster', 'type': 'ManagementCluster'}, 'internet': {'key': 'properties.internet', 'type': 'str'}, 'identity_sources': {'key': 'properties.identitySources', 'type': '[IdentitySource]'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'circuit': {'key': 'properties.circuit', 'type': 'Circuit'}, 'endpoints': {'key': 'properties.endpoints', 'type': 'Endpoints'}, 'network_block': {'key': 'properties.networkBlock', 'type': 'str'}, + 'external_cloud_links': {'key': 'properties.externalCloudLinks', 'type': '[str]'}, 'management_network': {'key': 'properties.managementNetwork', 'type': 'str'}, 'provisioning_network': {'key': 'properties.provisioningNetwork', 'type': 'str'}, 'vmotion_network': {'key': 'properties.vmotionNetwork', 'type': 'str'}, @@ -1517,7 +1674,7 @@ def __init__( sku: "Sku", location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, - management_cluster: Optional["CommonClusterProperties"] = None, + management_cluster: Optional["ManagementCluster"] = None, internet: Optional[Union[str, "InternetEnum"]] = "Disabled", identity_sources: Optional[List["IdentitySource"]] = None, circuit: Optional["Circuit"] = None, @@ -1535,6 +1692,7 @@ def __init__( self.circuit = circuit self.endpoints = None self.network_block = network_block + self.external_cloud_links = None self.management_network = None self.provisioning_network = None self.vmotion_network = None @@ -1578,7 +1736,7 @@ class PrivateCloudUpdateProperties(msrest.serialization.Model): """The properties of a private cloud resource that may be updated. :param management_cluster: The default cluster used for management. - :type management_cluster: ~avs_client.models.CommonClusterProperties + :type management_cluster: ~avs_client.models.ManagementCluster :param internet: Connectivity to internet is enabled or disabled. Possible values include: "Enabled", "Disabled". Default value: "Disabled". :type internet: str or ~avs_client.models.InternetEnum @@ -1587,7 +1745,7 @@ class PrivateCloudUpdateProperties(msrest.serialization.Model): """ _attribute_map = { - 'management_cluster': {'key': 'managementCluster', 'type': 'CommonClusterProperties'}, + 'management_cluster': {'key': 'managementCluster', 'type': 'ManagementCluster'}, 'internet': {'key': 'internet', 'type': 'str'}, 'identity_sources': {'key': 'identitySources', 'type': '[IdentitySource]'}, } @@ -1595,7 +1753,7 @@ class PrivateCloudUpdateProperties(msrest.serialization.Model): def __init__( self, *, - management_cluster: Optional["CommonClusterProperties"] = None, + management_cluster: Optional["ManagementCluster"] = None, internet: Optional[Union[str, "InternetEnum"]] = "Disabled", identity_sources: Optional[List["IdentitySource"]] = None, **kwargs @@ -1614,7 +1772,7 @@ class PrivateCloudProperties(PrivateCloudUpdateProperties): All required parameters must be populated in order to send to Azure. :param management_cluster: The default cluster used for management. - :type management_cluster: ~avs_client.models.CommonClusterProperties + :type management_cluster: ~avs_client.models.ManagementCluster :param internet: Connectivity to internet is enabled or disabled. Possible values include: "Enabled", "Disabled". Default value: "Disabled". :type internet: str or ~avs_client.models.InternetEnum @@ -1631,6 +1789,8 @@ class PrivateCloudProperties(PrivateCloudUpdateProperties): subscription as well as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) where A,B,C,D are between 0 and 255, and X is between 0 and 22. :type network_block: str + :ivar external_cloud_links: Array of cloud link IDs from other clouds that connect to this one. + :vartype external_cloud_links: list[str] :ivar management_network: Network used to access vCenter Server and NSX-T Manager. :vartype management_network: str :ivar provisioning_network: Used for virtual machine cold migration, cloning, and snapshot @@ -1654,6 +1814,7 @@ class PrivateCloudProperties(PrivateCloudUpdateProperties): 'provisioning_state': {'readonly': True}, 'endpoints': {'readonly': True}, 'network_block': {'required': True}, + 'external_cloud_links': {'readonly': True}, 'management_network': {'readonly': True}, 'provisioning_network': {'readonly': True}, 'vmotion_network': {'readonly': True}, @@ -1662,13 +1823,14 @@ class PrivateCloudProperties(PrivateCloudUpdateProperties): } _attribute_map = { - 'management_cluster': {'key': 'managementCluster', 'type': 'CommonClusterProperties'}, + 'management_cluster': {'key': 'managementCluster', 'type': 'ManagementCluster'}, 'internet': {'key': 'internet', 'type': 'str'}, 'identity_sources': {'key': 'identitySources', 'type': '[IdentitySource]'}, 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'circuit': {'key': 'circuit', 'type': 'Circuit'}, 'endpoints': {'key': 'endpoints', 'type': 'Endpoints'}, 'network_block': {'key': 'networkBlock', 'type': 'str'}, + 'external_cloud_links': {'key': 'externalCloudLinks', 'type': '[str]'}, 'management_network': {'key': 'managementNetwork', 'type': 'str'}, 'provisioning_network': {'key': 'provisioningNetwork', 'type': 'str'}, 'vmotion_network': {'key': 'vmotionNetwork', 'type': 'str'}, @@ -1682,7 +1844,7 @@ def __init__( self, *, network_block: str, - management_cluster: Optional["CommonClusterProperties"] = None, + management_cluster: Optional["ManagementCluster"] = None, internet: Optional[Union[str, "InternetEnum"]] = "Disabled", identity_sources: Optional[List["IdentitySource"]] = None, circuit: Optional["Circuit"] = None, @@ -1695,6 +1857,7 @@ def __init__( self.circuit = circuit self.endpoints = None self.network_block = network_block + self.external_cloud_links = None self.management_network = None self.provisioning_network = None self.vmotion_network = None @@ -1710,7 +1873,7 @@ class PrivateCloudUpdate(msrest.serialization.Model): :param tags: A set of tags. Resource tags. :type tags: dict[str, str] :param management_cluster: The default cluster used for management. - :type management_cluster: ~avs_client.models.CommonClusterProperties + :type management_cluster: ~avs_client.models.ManagementCluster :param internet: Connectivity to internet is enabled or disabled. Possible values include: "Enabled", "Disabled". Default value: "Disabled". :type internet: str or ~avs_client.models.InternetEnum @@ -1720,7 +1883,7 @@ class PrivateCloudUpdate(msrest.serialization.Model): _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, - 'management_cluster': {'key': 'properties.managementCluster', 'type': 'CommonClusterProperties'}, + 'management_cluster': {'key': 'properties.managementCluster', 'type': 'ManagementCluster'}, 'internet': {'key': 'properties.internet', 'type': 'str'}, 'identity_sources': {'key': 'properties.identitySources', 'type': '[IdentitySource]'}, } @@ -1729,7 +1892,7 @@ def __init__( self, *, tags: Optional[Dict[str, str]] = None, - management_cluster: Optional["CommonClusterProperties"] = None, + management_cluster: Optional["ManagementCluster"] = None, internet: Optional[Union[str, "InternetEnum"]] = "Disabled", identity_sources: Optional[List["IdentitySource"]] = None, **kwargs @@ -1773,109 +1936,601 @@ def __init__( super(ProxyResource, self).__init__(**kwargs) -class Quota(msrest.serialization.Model): - """Subscription quotas. +class ScriptExecutionParameter(msrest.serialization.Model): + """The arguments passed in to the execution. - Variables are only populated by the server, and will be ignored when sending a request. + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: PSCredentialExecutionParameter, ScriptSecureStringExecutionParameter, ScriptStringExecutionParameter. - :ivar hosts_remaining: Remaining hosts quota by sku type. - :vartype hosts_remaining: dict[str, int] - :ivar quota_enabled: Host quota is active for current subscription. Possible values include: - "Enabled", "Disabled". - :vartype quota_enabled: str or ~avs_client.models.QuotaEnabled + All required parameters must be populated in order to send to Azure. + + :param name: Required. The parameter name. + :type name: str + :param type: Required. The type of execution parameter.Constant filled by server. Possible + values include: "Value", "SecureValue", "Credential". + :type type: str or ~avs_client.models.ScriptExecutionParameterType """ _validation = { - 'hosts_remaining': {'readonly': True}, - 'quota_enabled': {'readonly': True}, + 'name': {'required': True}, + 'type': {'required': True}, } _attribute_map = { - 'hosts_remaining': {'key': 'hostsRemaining', 'type': '{int}'}, - 'quota_enabled': {'key': 'quotaEnabled', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, } - def __init__( - self, - **kwargs - ): - super(Quota, self).__init__(**kwargs) - self.hosts_remaining = None - self.quota_enabled = None - - -class ServiceSpecification(msrest.serialization.Model): - """Service specification payload. - - :param log_specifications: Specifications of the Log for Azure Monitoring. - :type log_specifications: list[~avs_client.models.LogSpecification] - :param metric_specifications: Specifications of the Metrics for Azure Monitoring. - :type metric_specifications: list[~avs_client.models.MetricSpecification] - """ - - _attribute_map = { - 'log_specifications': {'key': 'logSpecifications', 'type': '[LogSpecification]'}, - 'metric_specifications': {'key': 'metricSpecifications', 'type': '[MetricSpecification]'}, + _subtype_map = { + 'type': {'Credential': 'PSCredentialExecutionParameter', 'SecureValue': 'ScriptSecureStringExecutionParameter', 'Value': 'ScriptStringExecutionParameter'} } def __init__( self, *, - log_specifications: Optional[List["LogSpecification"]] = None, - metric_specifications: Optional[List["MetricSpecification"]] = None, + name: str, **kwargs ): - super(ServiceSpecification, self).__init__(**kwargs) - self.log_specifications = log_specifications - self.metric_specifications = metric_specifications + super(ScriptExecutionParameter, self).__init__(**kwargs) + self.name = name + self.type = None # type: Optional[str] -class Sku(msrest.serialization.Model): - """The resource model definition representing SKU. +class PSCredentialExecutionParameter(ScriptExecutionParameter): + """a powershell credential object. All required parameters must be populated in order to send to Azure. - :param name: Required. The name of the SKU. + :param name: Required. The parameter name. :type name: str + :param type: Required. The type of execution parameter.Constant filled by server. Possible + values include: "Value", "SecureValue", "Credential". + :type type: str or ~avs_client.models.ScriptExecutionParameterType + :param username: username for login. + :type username: str + :param password: password for login. + :type password: str """ _validation = { 'name': {'required': True}, + 'type': {'required': True}, } _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'username': {'key': 'username', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, } def __init__( self, *, name: str, + username: Optional[str] = None, + password: Optional[str] = None, **kwargs ): - super(Sku, self).__init__(**kwargs) - self.name = name + super(PSCredentialExecutionParameter, self).__init__(name=name, **kwargs) + self.type = 'Credential' # type: str + self.username = username + self.password = password -class Trial(msrest.serialization.Model): - """Subscription trial availability. +class Quota(msrest.serialization.Model): + """Subscription quotas. Variables are only populated by the server, and will be ignored when sending a request. - :ivar status: Trial status. Possible values include: "TrialAvailable", "TrialUsed", - "TrialDisabled". - :vartype status: str or ~avs_client.models.TrialStatus - :ivar available_hosts: Number of trial hosts available. - :vartype available_hosts: int + :ivar hosts_remaining: Remaining hosts quota by sku type. + :vartype hosts_remaining: dict[str, int] + :ivar quota_enabled: Host quota is active for current subscription. Possible values include: + "Enabled", "Disabled". + :vartype quota_enabled: str or ~avs_client.models.QuotaEnabled """ _validation = { - 'status': {'readonly': True}, - 'available_hosts': {'readonly': True}, + 'hosts_remaining': {'readonly': True}, + 'quota_enabled': {'readonly': True}, } _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, + 'hosts_remaining': {'key': 'hostsRemaining', 'type': '{int}'}, + 'quota_enabled': {'key': 'quotaEnabled', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(Quota, self).__init__(**kwargs) + self.hosts_remaining = None + self.quota_enabled = None + + +class ScriptCmdlet(ProxyResource): + """A cmdlet available for script execution. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar description: Description of the scripts functionality. + :vartype description: str + :ivar timeout: Recommended time limit for execution. + :vartype timeout: str + :ivar parameters: Parameters the script will accept. + :vartype parameters: list[~avs_client.models.ScriptParameter] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'description': {'readonly': True}, + 'timeout': {'readonly': True}, + 'parameters': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'timeout': {'key': 'properties.timeout', 'type': 'str'}, + 'parameters': {'key': 'properties.parameters', 'type': '[ScriptParameter]'}, + } + + def __init__( + self, + **kwargs + ): + super(ScriptCmdlet, self).__init__(**kwargs) + self.description = None + self.timeout = None + self.parameters = None + + +class ScriptCmdletsList(msrest.serialization.Model): + """Pageable list of scripts/cmdlets. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of scripts. + :vartype value: list[~avs_client.models.ScriptCmdlet] + :ivar next_link: URL to get the next page if any. + :vartype next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ScriptCmdlet]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ScriptCmdletsList, self).__init__(**kwargs) + self.value = None + self.next_link = None + + +class ScriptExecution(ProxyResource): + """An instance of a script executed by a user - custom or AVS. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param script_cmdlet_id: A reference to the script cmdlet resource if user is running a AVS + script. + :type script_cmdlet_id: str + :param parameters: Parameters the script will accept. + :type parameters: list[~avs_client.models.ScriptExecutionParameter] + :param hidden_parameters: Parameters that will be hidden/not visible to ARM, such as passwords + and credentials. + :type hidden_parameters: list[~avs_client.models.ScriptExecutionParameter] + :param failure_reason: Error message if the script was able to run, but if the script itself + had errors or powershell threw an exception. + :type failure_reason: str + :param timeout: Time limit for execution. + :type timeout: str + :param retention: Time to live for the resource. If not provided, will be available for 60 + days. + :type retention: str + :ivar submitted_at: Time the script execution was submitted. + :vartype submitted_at: ~datetime.datetime + :ivar started_at: Time the script execution was started. + :vartype started_at: ~datetime.datetime + :ivar finished_at: Time the script execution was finished. + :vartype finished_at: ~datetime.datetime + :ivar provisioning_state: The state of the script execution resource. Possible values include: + "Pending", "Running", "Succeeded", "Failed", "Cancelling", "Cancelled", "Deleting". + :vartype provisioning_state: str or ~avs_client.models.ScriptExecutionProvisioningState + :param output: Standard output stream from the powershell execution. + :type output: list[str] + :param named_outputs: User-defined dictionary. + :type named_outputs: dict[str, object] + :ivar information: Standard information out stream from the powershell execution. + :vartype information: list[str] + :ivar warnings: Standard warning out stream from the powershell execution. + :vartype warnings: list[str] + :ivar errors: Standard error output stream from the powershell execution. + :vartype errors: list[str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'submitted_at': {'readonly': True}, + 'started_at': {'readonly': True}, + 'finished_at': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'information': {'readonly': True}, + 'warnings': {'readonly': True}, + 'errors': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'script_cmdlet_id': {'key': 'properties.scriptCmdletId', 'type': 'str'}, + 'parameters': {'key': 'properties.parameters', 'type': '[ScriptExecutionParameter]'}, + 'hidden_parameters': {'key': 'properties.hiddenParameters', 'type': '[ScriptExecutionParameter]'}, + 'failure_reason': {'key': 'properties.failureReason', 'type': 'str'}, + 'timeout': {'key': 'properties.timeout', 'type': 'str'}, + 'retention': {'key': 'properties.retention', 'type': 'str'}, + 'submitted_at': {'key': 'properties.submittedAt', 'type': 'iso-8601'}, + 'started_at': {'key': 'properties.startedAt', 'type': 'iso-8601'}, + 'finished_at': {'key': 'properties.finishedAt', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'output': {'key': 'properties.output', 'type': '[str]'}, + 'named_outputs': {'key': 'properties.namedOutputs', 'type': '{object}'}, + 'information': {'key': 'properties.information', 'type': '[str]'}, + 'warnings': {'key': 'properties.warnings', 'type': '[str]'}, + 'errors': {'key': 'properties.errors', 'type': '[str]'}, + } + + def __init__( + self, + *, + script_cmdlet_id: Optional[str] = None, + parameters: Optional[List["ScriptExecutionParameter"]] = None, + hidden_parameters: Optional[List["ScriptExecutionParameter"]] = None, + failure_reason: Optional[str] = None, + timeout: Optional[str] = None, + retention: Optional[str] = None, + output: Optional[List[str]] = None, + named_outputs: Optional[Dict[str, object]] = None, + **kwargs + ): + super(ScriptExecution, self).__init__(**kwargs) + self.script_cmdlet_id = script_cmdlet_id + self.parameters = parameters + self.hidden_parameters = hidden_parameters + self.failure_reason = failure_reason + self.timeout = timeout + self.retention = retention + self.submitted_at = None + self.started_at = None + self.finished_at = None + self.provisioning_state = None + self.output = output + self.named_outputs = named_outputs + self.information = None + self.warnings = None + self.errors = None + + +class ScriptExecutionsList(msrest.serialization.Model): + """Pageable list of script executions. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of scripts. + :vartype value: list[~avs_client.models.ScriptExecution] + :ivar next_link: URL to get the next page if any. + :vartype next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ScriptExecution]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ScriptExecutionsList, self).__init__(**kwargs) + self.value = None + self.next_link = None + + +class ScriptPackage(ProxyResource): + """Script Package resources available for execution. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar description: User friendly description of the package. + :vartype description: str + :ivar version: Module version. + :vartype version: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'description': {'readonly': True}, + 'version': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'version': {'key': 'properties.version', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ScriptPackage, self).__init__(**kwargs) + self.description = None + self.version = None + + +class ScriptPackagesList(msrest.serialization.Model): + """A list of the available script packages. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of script package resources. + :vartype value: list[~avs_client.models.ScriptPackage] + :ivar next_link: URL to get the next page if any. + :vartype next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ScriptPackage]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ScriptPackagesList, self).__init__(**kwargs) + self.value = None + self.next_link = None + + +class ScriptParameter(msrest.serialization.Model): + """An parameter that the script will accept. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar type: The type of parameter the script is expecting. psCredential is a + PSCredentialObject. Possible values include: "String", "SecureString", "Credential", "Int", + "Bool", "Float". + :vartype type: str or ~avs_client.models.ScriptParameterTypes + :param name: The parameter name that the script will expect a parameter value for. + :type name: str + :ivar description: User friendly description of the parameter. + :vartype description: str + :ivar visibility: Should this parameter be visible to arm and passed in the parameters argument + when executing. Possible values include: "Visible", "Hidden". + :vartype visibility: str or ~avs_client.models.VisibilityParameterEnum + """ + + _validation = { + 'type': {'readonly': True}, + 'description': {'readonly': True}, + 'visibility': {'readonly': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'visibility': {'key': 'visibility', 'type': 'str'}, + } + + def __init__( + self, + *, + name: Optional[str] = None, + **kwargs + ): + super(ScriptParameter, self).__init__(**kwargs) + self.type = None + self.name = name + self.description = None + self.visibility = None + + +class ScriptSecureStringExecutionParameter(ScriptExecutionParameter): + """a plain text value execution parameter. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The parameter name. + :type name: str + :param type: Required. The type of execution parameter.Constant filled by server. Possible + values include: "Value", "SecureValue", "Credential". + :type type: str or ~avs_client.models.ScriptExecutionParameterType + :param secure_value: A secure value for the passed parameter, not to be stored in logs. + :type secure_value: str + """ + + _validation = { + 'name': {'required': True}, + 'type': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'secure_value': {'key': 'secureValue', 'type': 'str'}, + } + + def __init__( + self, + *, + name: str, + secure_value: Optional[str] = None, + **kwargs + ): + super(ScriptSecureStringExecutionParameter, self).__init__(name=name, **kwargs) + self.type = 'SecureValue' # type: str + self.secure_value = secure_value + + +class ScriptStringExecutionParameter(ScriptExecutionParameter): + """a plain text value execution parameter. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The parameter name. + :type name: str + :param type: Required. The type of execution parameter.Constant filled by server. Possible + values include: "Value", "SecureValue", "Credential". + :type type: str or ~avs_client.models.ScriptExecutionParameterType + :param value: The value for the passed parameter. + :type value: str + """ + + _validation = { + 'name': {'required': True}, + 'type': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__( + self, + *, + name: str, + value: Optional[str] = None, + **kwargs + ): + super(ScriptStringExecutionParameter, self).__init__(name=name, **kwargs) + self.type = 'Value' # type: str + self.value = value + + +class ServiceSpecification(msrest.serialization.Model): + """Service specification payload. + + :param log_specifications: Specifications of the Log for Azure Monitoring. + :type log_specifications: list[~avs_client.models.LogSpecification] + :param metric_specifications: Specifications of the Metrics for Azure Monitoring. + :type metric_specifications: list[~avs_client.models.MetricSpecification] + """ + + _attribute_map = { + 'log_specifications': {'key': 'logSpecifications', 'type': '[LogSpecification]'}, + 'metric_specifications': {'key': 'metricSpecifications', 'type': '[MetricSpecification]'}, + } + + def __init__( + self, + *, + log_specifications: Optional[List["LogSpecification"]] = None, + metric_specifications: Optional[List["MetricSpecification"]] = None, + **kwargs + ): + super(ServiceSpecification, self).__init__(**kwargs) + self.log_specifications = log_specifications + self.metric_specifications = metric_specifications + + +class Sku(msrest.serialization.Model): + """The resource model definition representing SKU. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the SKU. + :type name: str + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__( + self, + *, + name: str, + **kwargs + ): + super(Sku, self).__init__(**kwargs) + self.name = name + + +class Trial(msrest.serialization.Model): + """Subscription trial availability. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar status: Trial status. Possible values include: "TrialAvailable", "TrialUsed", + "TrialDisabled". + :vartype status: str or ~avs_client.models.TrialStatus + :ivar available_hosts: Number of trial hosts available. + :vartype available_hosts: int + """ + + _validation = { + 'status': {'readonly': True}, + 'available_hosts': {'readonly': True}, + } + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, 'available_hosts': {'key': 'availableHosts', 'type': 'int'}, } @@ -1888,7 +2543,7 @@ def __init__( self.available_hosts = None -class WorkloadNetworkDhcp(Resource): +class WorkloadNetworkDhcp(ProxyResource): """NSX DHCP. Variables are only populated by the server, and will be ignored when sending a request. @@ -1899,52 +2554,31 @@ class WorkloadNetworkDhcp(Resource): :vartype name: str :ivar type: Resource type. :vartype type: str - :param dhcp_type: Type of DHCP: SERVER or RELAY.Constant filled by server. Possible values - include: "SERVER, RELAY". - :type dhcp_type: str or ~avs_client.models.DhcpTypeEnum - :param display_name: Display name of the DHCP entity. - :type display_name: str - :ivar segments: NSX Segments consuming DHCP. - :vartype segments: list[str] - :ivar provisioning_state: The provisioning state. Possible values include: "Succeeded", - "Failed", "Building", "Deleting", "Updating". - :vartype provisioning_state: str or ~avs_client.models.WorkloadNetworkDhcpProvisioningState - :param revision: NSX revision number. - :type revision: long + :param properties: DHCP properties. + :type properties: ~avs_client.models.WorkloadNetworkDhcpEntity """ _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, - 'segments': {'readonly': True}, - 'provisioning_state': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, - 'dhcp_type': {'key': 'properties.dhcpType', 'type': 'str'}, - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'segments': {'key': 'properties.segments', 'type': '[str]'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'revision': {'key': 'properties.revision', 'type': 'long'}, + 'properties': {'key': 'properties', 'type': 'WorkloadNetworkDhcpEntity'}, } def __init__( self, *, - display_name: Optional[str] = None, - revision: Optional[int] = None, + properties: Optional["WorkloadNetworkDhcpEntity"] = None, **kwargs ): super(WorkloadNetworkDhcp, self).__init__(**kwargs) - self.dhcp_type = None # type: Optional[str] - self.display_name = display_name - self.segments = None - self.provisioning_state = None - self.revision = revision + self.properties = properties class WorkloadNetworkDhcpEntity(msrest.serialization.Model): @@ -1958,7 +2592,7 @@ class WorkloadNetworkDhcpEntity(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. :param dhcp_type: Required. Type of DHCP: SERVER or RELAY.Constant filled by server. Possible - values include: "SERVER, RELAY". + values include: "SERVER", "RELAY". :type dhcp_type: str or ~avs_client.models.DhcpTypeEnum :param display_name: Display name of the DHCP entity. :type display_name: str @@ -2042,7 +2676,7 @@ class WorkloadNetworkDhcpRelay(WorkloadNetworkDhcpEntity): All required parameters must be populated in order to send to Azure. :param dhcp_type: Required. Type of DHCP: SERVER or RELAY.Constant filled by server. Possible - values include: "SERVER, RELAY". + values include: "SERVER", "RELAY". :type dhcp_type: str or ~avs_client.models.DhcpTypeEnum :param display_name: Display name of the DHCP entity. :type display_name: str @@ -2094,7 +2728,7 @@ class WorkloadNetworkDhcpServer(WorkloadNetworkDhcpEntity): All required parameters must be populated in order to send to Azure. :param dhcp_type: Required. Type of DHCP: SERVER or RELAY.Constant filled by server. Possible - values include: "SERVER, RELAY". + values include: "SERVER", "RELAY". :type dhcp_type: str or ~avs_client.models.DhcpTypeEnum :param display_name: Display name of the DHCP entity. :type display_name: str @@ -2142,7 +2776,7 @@ def __init__( self.lease_time = lease_time -class WorkloadNetworkDnsService(Resource): +class WorkloadNetworkDnsService(ProxyResource): """NSX DNS Service. Variables are only populated by the server, and will be ignored when sending a request. @@ -2248,7 +2882,7 @@ def __init__( self.next_link = None -class WorkloadNetworkDnsZone(Resource): +class WorkloadNetworkDnsZone(ProxyResource): """NSX DNS Zone. Variables are only populated by the server, and will be ignored when sending a request. @@ -2347,7 +2981,7 @@ def __init__( self.next_link = None -class WorkloadNetworkGateway(Resource): +class WorkloadNetworkGateway(ProxyResource): """NSX Gateway. Variables are only populated by the server, and will be ignored when sending a request. @@ -2420,7 +3054,7 @@ def __init__( self.next_link = None -class WorkloadNetworkPortMirroring(Resource): +class WorkloadNetworkPortMirroring(ProxyResource): """NSX Port Mirroring. Variables are only populated by the server, and will be ignored when sending a request. @@ -2521,7 +3155,91 @@ def __init__( self.next_link = None -class WorkloadNetworkSegment(Resource): +class WorkloadNetworkPublicIP(ProxyResource): + """NSX Public IP Block. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param display_name: Display name of the Public IP Block. + :type display_name: str + :param number_of_public_i_ps: Number of Public IPs requested. + :type number_of_public_i_ps: long + :ivar public_ip_block: CIDR Block of the Public IP Block. + :vartype public_ip_block: str + :ivar provisioning_state: The provisioning state. Possible values include: "Succeeded", + "Failed", "Building", "Deleting", "Updating". + :vartype provisioning_state: str or ~avs_client.models.WorkloadNetworkPublicIPProvisioningState + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'public_ip_block': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'display_name': {'key': 'properties.displayName', 'type': 'str'}, + 'number_of_public_i_ps': {'key': 'properties.numberOfPublicIPs', 'type': 'long'}, + 'public_ip_block': {'key': 'properties.publicIPBlock', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__( + self, + *, + display_name: Optional[str] = None, + number_of_public_i_ps: Optional[int] = None, + **kwargs + ): + super(WorkloadNetworkPublicIP, self).__init__(**kwargs) + self.display_name = display_name + self.number_of_public_i_ps = number_of_public_i_ps + self.public_ip_block = None + self.provisioning_state = None + + +class WorkloadNetworkPublicIPsList(msrest.serialization.Model): + """A list of NSX Public IP Blocks. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: The items on the page. + :vartype value: list[~avs_client.models.WorkloadNetworkPublicIP] + :ivar next_link: URL to get the next page if any. + :vartype next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[WorkloadNetworkPublicIP]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkloadNetworkPublicIPsList, self).__init__(**kwargs) + self.value = None + self.next_link = None + + +class WorkloadNetworkSegment(ProxyResource): """NSX Segment. Variables are only populated by the server, and will be ignored when sending a request. @@ -2667,7 +3385,7 @@ def __init__( self.gateway_address = gateway_address -class WorkloadNetworkVirtualMachine(Resource): +class WorkloadNetworkVirtualMachine(ProxyResource): """NSX Virtual Machine. Variables are only populated by the server, and will be ignored when sending a request. @@ -2740,7 +3458,7 @@ def __init__( self.next_link = None -class WorkloadNetworkVMGroup(Resource): +class WorkloadNetworkVMGroup(ProxyResource): """NSX VM Group. Variables are only populated by the server, and will be ignored when sending a request. diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/__init__.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/__init__.py index 15958be9f5c..1e3c208eb0f 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/__init__.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/__init__.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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. # -------------------------------------------------------------------------- @@ -13,7 +15,11 @@ from ._authorizations_operations import AuthorizationsOperations from ._global_reach_connections_operations import GlobalReachConnectionsOperations from ._workload_networks_operations import WorkloadNetworksOperations +from ._cloud_links_operations import CloudLinksOperations from ._addons_operations import AddonsOperations +from ._script_packages_operations import ScriptPackagesOperations +from ._script_cmdlets_operations import ScriptCmdletsOperations +from ._script_executions_operations import ScriptExecutionsOperations __all__ = [ 'Operations', @@ -25,5 +31,9 @@ 'AuthorizationsOperations', 'GlobalReachConnectionsOperations', 'WorkloadNetworksOperations', + 'CloudLinksOperations', 'AddonsOperations', + 'ScriptPackagesOperations', + 'ScriptCmdletsOperations', + 'ScriptExecutionsOperations', ] diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_addons_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_addons_operations.py index aee01fd8dfe..51ba06e8419 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_addons_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_addons_operations.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 typing import TYPE_CHECKING @@ -70,7 +72,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -150,7 +152,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -192,7 +194,7 @@ def _create_or_update_initial( resource_group_name, # type: str private_cloud_name, # type: str addon_name, # type: str - addon, # type: "_models.Addon" + properties=None, # type: Optional["_models.AddonProperties"] **kwargs # type: Any ): # type: (...) -> "_models.Addon" @@ -201,7 +203,9 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + + _addon = _models.Addon(properties=properties) + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -225,7 +229,7 @@ def _create_or_update_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(addon, 'Addon') + body_content = self._serialize.body(_addon, 'Addon') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -252,7 +256,7 @@ def begin_create_or_update( resource_group_name, # type: str private_cloud_name, # type: str addon_name, # type: str - addon, # type: "_models.Addon" + properties=None, # type: Optional["_models.AddonProperties"] **kwargs # type: Any ): # type: (...) -> LROPoller["_models.Addon"] @@ -266,8 +270,8 @@ def begin_create_or_update( :type private_cloud_name: str :param addon_name: Name of the addon for the private cloud. :type addon_name: str - :param addon: A addon in the private cloud. - :type addon: ~avs_client.models.Addon + :param properties: The properties of an addon resource. + :type properties: ~avs_client.models.AddonProperties :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: Pass in True if you'd like the ARMPolling polling method, @@ -290,7 +294,7 @@ def begin_create_or_update( resource_group_name=resource_group_name, private_cloud_name=private_cloud_name, addon_name=addon_name, - addon=addon, + properties=properties, cls=lambda x,y,z: x, **kwargs ) @@ -339,7 +343,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_authorizations_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_authorizations_operations.py index 02ec8e458ca..60d1a88bcc0 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_authorizations_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_authorizations_operations.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 typing import TYPE_CHECKING @@ -70,7 +72,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -150,7 +152,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -192,7 +194,6 @@ def _create_or_update_initial( resource_group_name, # type: str private_cloud_name, # type: str authorization_name, # type: str - authorization, # type: "_models.ExpressRouteAuthorization" **kwargs # type: Any ): # type: (...) -> "_models.ExpressRouteAuthorization" @@ -201,7 +202,9 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + + _authorization = _models.ExpressRouteAuthorization() + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -225,7 +228,7 @@ def _create_or_update_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(authorization, 'ExpressRouteAuthorization') + body_content = self._serialize.body(_authorization, 'ExpressRouteAuthorization') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -252,7 +255,6 @@ def begin_create_or_update( resource_group_name, # type: str private_cloud_name, # type: str authorization_name, # type: str - authorization, # type: "_models.ExpressRouteAuthorization" **kwargs # type: Any ): # type: (...) -> LROPoller["_models.ExpressRouteAuthorization"] @@ -266,8 +268,6 @@ def begin_create_or_update( :type private_cloud_name: str :param authorization_name: Name of the ExpressRoute Circuit Authorization in the private cloud. :type authorization_name: str - :param authorization: An ExpressRoute Circuit Authorization. - :type authorization: ~avs_client.models.ExpressRouteAuthorization :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: Pass in True if you'd like the ARMPolling polling method, @@ -290,7 +290,6 @@ def begin_create_or_update( resource_group_name=resource_group_name, private_cloud_name=private_cloud_name, authorization_name=authorization_name, - authorization=authorization, cls=lambda x,y,z: x, **kwargs ) @@ -339,7 +338,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_cloud_links_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_cloud_links_operations.py new file mode 100644 index 00000000000..25aec1f6661 --- /dev/null +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_cloud_links_operations.py @@ -0,0 +1,450 @@ +# 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 typing import TYPE_CHECKING +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.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class CloudLinksOperations(object): + """CloudLinksOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~avs_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.CloudLinkList"] + """List cloud link in a private cloud. + + List cloud link in a private cloud. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either CloudLinkList or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~avs_client.models.CloudLinkList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.CloudLinkList"] + 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.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, '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('CloudLinkList', 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.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks'} # type: ignore + + def get( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + cloud_link_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.CloudLink" + """Get an cloud link by name in a private cloud. + + Get an cloud link by name in a private cloud. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param cloud_link_name: Name of the cloud link resource. + :type cloud_link_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: CloudLink, or the result of cls(response) + :rtype: ~avs_client.models.CloudLink + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.CloudLink"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'cloudLinkName': self._serialize.url("cloud_link_name", cloud_link_name, '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') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + 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) + + deserialized = self._deserialize('CloudLink', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}'} # type: ignore + + def _create_or_update_initial( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + cloud_link_name, # type: str + linked_cloud=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "_models.CloudLink" + cls = kwargs.pop('cls', None) # type: ClsType["_models.CloudLink"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + + _cloud_link = _models.CloudLink(linked_cloud=linked_cloud) + api_version = "2021-06-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'cloudLinkName': self._serialize.url("cloud_link_name", cloud_link_name, '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') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(_cloud_link, 'CloudLink') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('CloudLink', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('CloudLink', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}'} # type: ignore + + def begin_create_or_update( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + cloud_link_name, # type: str + linked_cloud=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.CloudLink"] + """Create or update a cloud link in a private cloud. + + Create or update a cloud link in a private cloud. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: The name of the private cloud. + :type private_cloud_name: str + :param cloud_link_name: Name of the cloud link resource. + :type cloud_link_name: str + :param linked_cloud: Identifier of the other private cloud participating in the link. + :type linked_cloud: 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: Pass in True if you'd like the ARMPolling polling method, + False for no polling, or 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 CloudLink or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~avs_client.models.CloudLink] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.CloudLink"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + private_cloud_name=private_cloud_name, + cloud_link_name=cloud_link_name, + linked_cloud=linked_cloud, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('CloudLink', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'cloudLinkName': self._serialize.url("cloud_link_name", cloud_link_name, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}'} # type: ignore + + def _delete_initial( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + cloud_link_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> 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-06-01" + accept = "application/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'cloudLinkName': self._serialize.url("cloud_link_name", cloud_link_name, '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') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}'} # type: ignore + + def begin_delete( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + cloud_link_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Delete a cloud link in a private cloud. + + Delete a cloud link in a private cloud. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param cloud_link_name: Name of the cloud link resource. + :type cloud_link_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: Pass in True if you'd like the ARMPolling polling method, + False for no polling, or your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + private_cloud_name=private_cloud_name, + cloud_link_name=cloud_link_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'cloudLinkName': self._serialize.url("cloud_link_name", cloud_link_name, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}'} # type: ignore diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_clusters_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_clusters_operations.py index 8229bb5504a..aae75764ab9 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_clusters_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_clusters_operations.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 typing import TYPE_CHECKING @@ -70,7 +72,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -150,7 +152,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -192,7 +194,8 @@ def _create_or_update_initial( resource_group_name, # type: str private_cloud_name, # type: str cluster_name, # type: str - cluster, # type: "_models.Cluster" + sku, # type: "_models.Sku" + cluster_size=None, # type: Optional[int] **kwargs # type: Any ): # type: (...) -> "_models.Cluster" @@ -201,7 +204,9 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + + _cluster = _models.Cluster(sku=sku, cluster_size=cluster_size) + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -225,7 +230,7 @@ def _create_or_update_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(cluster, 'Cluster') + body_content = self._serialize.body(_cluster, 'Cluster') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -252,7 +257,8 @@ def begin_create_or_update( resource_group_name, # type: str private_cloud_name, # type: str cluster_name, # type: str - cluster, # type: "_models.Cluster" + sku, # type: "_models.Sku" + cluster_size=None, # type: Optional[int] **kwargs # type: Any ): # type: (...) -> LROPoller["_models.Cluster"] @@ -266,8 +272,10 @@ def begin_create_or_update( :type private_cloud_name: str :param cluster_name: Name of the cluster in the private cloud. :type cluster_name: str - :param cluster: A cluster in the private cloud. - :type cluster: ~avs_client.models.Cluster + :param sku: The cluster SKU. + :type sku: ~avs_client.models.Sku + :param cluster_size: The cluster size. + :type cluster_size: int :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: Pass in True if you'd like the ARMPolling polling method, @@ -290,7 +298,8 @@ def begin_create_or_update( resource_group_name=resource_group_name, private_cloud_name=private_cloud_name, cluster_name=cluster_name, - cluster=cluster, + sku=sku, + cluster_size=cluster_size, cls=lambda x,y,z: x, **kwargs ) @@ -331,7 +340,7 @@ def _update_initial( resource_group_name, # type: str private_cloud_name, # type: str cluster_name, # type: str - cluster_update, # type: "_models.ClusterUpdate" + cluster_size=None, # type: Optional[int] **kwargs # type: Any ): # type: (...) -> "_models.Cluster" @@ -340,7 +349,9 @@ def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + + _cluster_update = _models.ClusterUpdate(cluster_size=cluster_size) + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -364,7 +375,7 @@ def _update_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(cluster_update, 'ClusterUpdate') + body_content = self._serialize.body(_cluster_update, 'ClusterUpdate') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -391,7 +402,7 @@ def begin_update( resource_group_name, # type: str private_cloud_name, # type: str cluster_name, # type: str - cluster_update, # type: "_models.ClusterUpdate" + cluster_size=None, # type: Optional[int] **kwargs # type: Any ): # type: (...) -> LROPoller["_models.Cluster"] @@ -405,8 +416,8 @@ def begin_update( :type private_cloud_name: str :param cluster_name: Name of the cluster in the private cloud. :type cluster_name: str - :param cluster_update: The cluster properties to be updated. - :type cluster_update: ~avs_client.models.ClusterUpdate + :param cluster_size: The cluster size. + :type cluster_size: int :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: Pass in True if you'd like the ARMPolling polling method, @@ -429,7 +440,7 @@ def begin_update( resource_group_name=resource_group_name, private_cloud_name=private_cloud_name, cluster_name=cluster_name, - cluster_update=cluster_update, + cluster_size=cluster_size, cls=lambda x,y,z: x, **kwargs ) @@ -478,7 +489,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_datastores_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_datastores_operations.py index 266e450702e..ee2c780188e 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_datastores_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_datastores_operations.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 typing import TYPE_CHECKING @@ -53,9 +55,9 @@ def list( **kwargs # type: Any ): # type: (...) -> Iterable["_models.DatastoreList"] - """List cloud datastores in a private cloud. + """List datastores in a private cloud cluster. - List cloud datastores in a private cloud. + List datastores in a private cloud cluster. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str @@ -73,7 +75,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -157,7 +159,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -195,13 +197,14 @@ def get( return deserialized get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}'} # type: ignore - def _create_initial( + def _create_or_update_initial( self, resource_group_name, # type: str private_cloud_name, # type: str cluster_name, # type: str datastore_name, # type: str - datastore, # type: "_models.Datastore" + net_app_volume=None, # type: Optional["_models.NetAppVolume"] + disk_pool_volume=None, # type: Optional["_models.DiskPoolVolume"] **kwargs # type: Any ): # type: (...) -> "_models.Datastore" @@ -210,12 +213,14 @@ def _create_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + + _datastore = _models.Datastore(net_app_volume=net_app_volume, disk_pool_volume=disk_pool_volume) + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL - url = self._create_initial.metadata['url'] # type: ignore + url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), @@ -235,7 +240,7 @@ def _create_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(datastore, 'Datastore') + body_content = self._serialize.body(_datastore, 'Datastore') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -255,21 +260,22 @@ def _create_initial( return cls(pipeline_response, deserialized, {}) return deserialized - _create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}'} # type: ignore + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}'} # type: ignore - def begin_create( + def begin_create_or_update( self, resource_group_name, # type: str private_cloud_name, # type: str cluster_name, # type: str datastore_name, # type: str - datastore, # type: "_models.Datastore" + net_app_volume=None, # type: Optional["_models.NetAppVolume"] + disk_pool_volume=None, # type: Optional["_models.DiskPoolVolume"] **kwargs # type: Any ): # type: (...) -> LROPoller["_models.Datastore"] - """Create a datastore in a private cloud cluster. + """Create or update a datastore in a private cloud cluster. - Create a datastore in a private cloud cluster. + Create or update a datastore in a private cloud cluster. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str @@ -279,8 +285,10 @@ def begin_create( :type cluster_name: str :param datastore_name: Name of the datastore in the private cloud cluster. :type datastore_name: str - :param datastore: A datastore in a private cloud cluster. - :type datastore: ~avs_client.models.Datastore + :param net_app_volume: An Azure NetApp Files volume. + :type net_app_volume: ~avs_client.models.NetAppVolume + :param disk_pool_volume: An iSCSI volume. + :type disk_pool_volume: ~avs_client.models.DiskPoolVolume :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: Pass in True if you'd like the ARMPolling polling method, @@ -299,12 +307,13 @@ def begin_create( ) cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] if cont_token is None: - raw_result = self._create_initial( + raw_result = self._create_or_update_initial( resource_group_name=resource_group_name, private_cloud_name=private_cloud_name, cluster_name=cluster_name, datastore_name=datastore_name, - datastore=datastore, + net_app_volume=net_app_volume, + disk_pool_volume=disk_pool_volume, cls=lambda x,y,z: x, **kwargs ) @@ -339,7 +348,7 @@ def get_long_running_output(pipeline_response): ) else: return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}'} # type: ignore + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}'} # type: ignore def _delete_initial( self, @@ -355,7 +364,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_global_reach_connections_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_global_reach_connections_operations.py index 64ee3154f21..65faafa36b0 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_global_reach_connections_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_global_reach_connections_operations.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 typing import TYPE_CHECKING @@ -70,7 +72,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -150,7 +152,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -192,7 +194,8 @@ def _create_or_update_initial( resource_group_name, # type: str private_cloud_name, # type: str global_reach_connection_name, # type: str - global_reach_connection, # type: "_models.GlobalReachConnection" + authorization_key=None, # type: Optional[str] + peer_express_route_circuit=None, # type: Optional[str] **kwargs # type: Any ): # type: (...) -> "_models.GlobalReachConnection" @@ -201,7 +204,9 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + + _global_reach_connection = _models.GlobalReachConnection(authorization_key=authorization_key, peer_express_route_circuit=peer_express_route_circuit) + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -225,7 +230,7 @@ def _create_or_update_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(global_reach_connection, 'GlobalReachConnection') + body_content = self._serialize.body(_global_reach_connection, 'GlobalReachConnection') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -252,7 +257,8 @@ def begin_create_or_update( resource_group_name, # type: str private_cloud_name, # type: str global_reach_connection_name, # type: str - global_reach_connection, # type: "_models.GlobalReachConnection" + authorization_key=None, # type: Optional[str] + peer_express_route_circuit=None, # type: Optional[str] **kwargs # type: Any ): # type: (...) -> LROPoller["_models.GlobalReachConnection"] @@ -266,8 +272,12 @@ def begin_create_or_update( :type private_cloud_name: str :param global_reach_connection_name: Name of the global reach connection in the private cloud. :type global_reach_connection_name: str - :param global_reach_connection: A global reach connection in the private cloud. - :type global_reach_connection: ~avs_client.models.GlobalReachConnection + :param authorization_key: Authorization key from the peer express route used for the global + reach connection. + :type authorization_key: str + :param peer_express_route_circuit: Identifier of the ExpressRoute Circuit to peer with in the + global reach connection. + :type peer_express_route_circuit: 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: Pass in True if you'd like the ARMPolling polling method, @@ -290,7 +300,8 @@ def begin_create_or_update( resource_group_name=resource_group_name, private_cloud_name=private_cloud_name, global_reach_connection_name=global_reach_connection_name, - global_reach_connection=global_reach_connection, + authorization_key=authorization_key, + peer_express_route_circuit=peer_express_route_circuit, cls=lambda x,y,z: x, **kwargs ) @@ -339,7 +350,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_hcx_enterprise_sites_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_hcx_enterprise_sites_operations.py index c5285dae003..edf72a1838d 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_hcx_enterprise_sites_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_hcx_enterprise_sites_operations.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 typing import TYPE_CHECKING @@ -68,7 +70,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -148,7 +150,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -190,7 +192,6 @@ def create_or_update( resource_group_name, # type: str private_cloud_name, # type: str hcx_enterprise_site_name, # type: str - hcx_enterprise_site, # type: "_models.HcxEnterpriseSite" **kwargs # type: Any ): # type: (...) -> "_models.HcxEnterpriseSite" @@ -204,8 +205,6 @@ def create_or_update( :type private_cloud_name: str :param hcx_enterprise_site_name: Name of the HCX Enterprise Site in the private cloud. :type hcx_enterprise_site_name: str - :param hcx_enterprise_site: The HCX Enterprise Site. - :type hcx_enterprise_site: ~avs_client.models.HcxEnterpriseSite :keyword callable cls: A custom type or function that will be passed the direct response :return: HcxEnterpriseSite, or the result of cls(response) :rtype: ~avs_client.models.HcxEnterpriseSite @@ -216,7 +215,9 @@ def create_or_update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + + _hcx_enterprise_site = _models.HcxEnterpriseSite() + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -240,7 +241,7 @@ def create_or_update( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(hcx_enterprise_site, 'HcxEnterpriseSite') + body_content = self._serialize.body(_hcx_enterprise_site, 'HcxEnterpriseSite') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -290,7 +291,7 @@ def delete( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_locations_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_locations_operations.py index 34c148e61a7..4afc0da377f 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_locations_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_locations_operations.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 typing import TYPE_CHECKING @@ -62,7 +64,7 @@ def check_trial_availability( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -117,7 +119,7 @@ def check_quota_availability( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_operations.py index e7e19dd65cd..40c16c04d6e 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_operations.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 typing import TYPE_CHECKING @@ -60,7 +62,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_private_clouds_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_private_clouds_operations.py index 43b8ce74ca0..fbb72572527 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_private_clouds_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_private_clouds_operations.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 typing import TYPE_CHECKING @@ -67,7 +69,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -137,7 +139,7 @@ def list_in_subscription( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -212,7 +214,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -261,7 +263,7 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -393,7 +395,7 @@ def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -524,7 +526,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -636,7 +638,7 @@ def _rotate_vcenter_password_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -748,7 +750,7 @@ def _rotate_nsxt_password_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -873,7 +875,7 @@ def list_admin_credentials( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_script_cmdlets_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_script_cmdlets_operations.py new file mode 100644 index 00000000000..1659acc8a58 --- /dev/null +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_script_cmdlets_operations.py @@ -0,0 +1,194 @@ +# 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 typing import TYPE_CHECKING +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 + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class ScriptCmdletsOperations(object): + """ScriptCmdletsOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~avs_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + script_package_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.ScriptCmdletsList"] + """Return script cmdlet resources available for a private cloud to create a script execution + resource on their Private Cloud. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param script_package_name: Name of the script package in the private cloud. + :type script_package_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ScriptCmdletsList or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~avs_client.models.ScriptCmdletsList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ScriptCmdletsList"] + 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.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'scriptPackageName': self._serialize.url("script_package_name", script_package_name, '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('ScriptCmdletsList', 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.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}/scriptCmdlets'} # type: ignore + + def get( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + script_package_name, # type: str + script_cmdlet_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.ScriptCmdlet" + """Return information about a script cmdlet resource in a specific package on a private cloud. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param script_package_name: Name of the script package in the private cloud. + :type script_package_name: str + :param script_cmdlet_name: Name of the script cmdlet resource in the script package in the + private cloud. + :type script_cmdlet_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ScriptCmdlet, or the result of cls(response) + :rtype: ~avs_client.models.ScriptCmdlet + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ScriptCmdlet"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'scriptPackageName': self._serialize.url("script_package_name", script_package_name, 'str'), + 'scriptCmdletName': self._serialize.url("script_cmdlet_name", script_cmdlet_name, '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') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + 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) + + deserialized = self._deserialize('ScriptCmdlet', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}/scriptCmdlets/{scriptCmdletName}'} # type: ignore diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_script_executions_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_script_executions_operations.py new file mode 100644 index 00000000000..36663f6eefb --- /dev/null +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_script_executions_operations.py @@ -0,0 +1,523 @@ +# 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 typing import TYPE_CHECKING +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.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, List, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class ScriptExecutionsOperations(object): + """ScriptExecutionsOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~avs_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.ScriptExecutionsList"] + """Get an script execution resource by name in a private cloud. + + Get an script execution resource by name in a private cloud. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ScriptExecutionsList or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~avs_client.models.ScriptExecutionsList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ScriptExecutionsList"] + 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.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, '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('ScriptExecutionsList', 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.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions'} # type: ignore + + def get( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + script_execution_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.ScriptExecution" + """Get an script execution resource by name in a private cloud. + + Get an script execution resource by name in a private cloud. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param script_execution_name: Name of the user-invoked script execution resource. + :type script_execution_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ScriptExecution, or the result of cls(response) + :rtype: ~avs_client.models.ScriptExecution + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ScriptExecution"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'scriptExecutionName': self._serialize.url("script_execution_name", script_execution_name, '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') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + 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) + + deserialized = self._deserialize('ScriptExecution', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}'} # type: ignore + + def _create_or_update_initial( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + script_execution_name, # type: str + script_execution, # type: "_models.ScriptExecution" + **kwargs # type: Any + ): + # type: (...) -> "_models.ScriptExecution" + cls = kwargs.pop('cls', None) # type: ClsType["_models.ScriptExecution"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'scriptExecutionName': self._serialize.url("script_execution_name", script_execution_name, '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') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(script_execution, 'ScriptExecution') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('ScriptExecution', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('ScriptExecution', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}'} # type: ignore + + def begin_create_or_update( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + script_execution_name, # type: str + script_execution, # type: "_models.ScriptExecution" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.ScriptExecution"] + """Create or update a script execution resource in a private cloud. + + Create or update a script execution resource in a private cloud. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: The name of the private cloud. + :type private_cloud_name: str + :param script_execution_name: Name of the user-invoked script execution resource. + :type script_execution_name: str + :param script_execution: A script running in the private cloud. + :type script_execution: ~avs_client.models.ScriptExecution + :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: Pass in True if you'd like the ARMPolling polling method, + False for no polling, or 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 ScriptExecution or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~avs_client.models.ScriptExecution] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ScriptExecution"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + private_cloud_name=private_cloud_name, + script_execution_name=script_execution_name, + script_execution=script_execution, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('ScriptExecution', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'scriptExecutionName': self._serialize.url("script_execution_name", script_execution_name, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}'} # type: ignore + + def _delete_initial( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + script_execution_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> 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-06-01" + accept = "application/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'scriptExecutionName': self._serialize.url("script_execution_name", script_execution_name, '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') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}'} # type: ignore + + def begin_delete( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + script_execution_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Cancel a ScriptExecution in a private cloud. + + Cancel a ScriptExecution in a private cloud. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param script_execution_name: Name of the user-invoked script execution resource. + :type script_execution_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: Pass in True if you'd like the ARMPolling polling method, + False for no polling, or your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + private_cloud_name=private_cloud_name, + script_execution_name=script_execution_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'scriptExecutionName': self._serialize.url("script_execution_name", script_execution_name, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}'} # type: ignore + + def get_execution_logs( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + script_execution_name, # type: str + script_output_stream_type=None, # type: Optional[List[Union[str, "_models.ScriptOutputStreamType"]]] + **kwargs # type: Any + ): + # type: (...) -> "_models.ScriptExecution" + """Return the logs for a script execution resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param script_execution_name: Name of the user-invoked script execution resource. + :type script_execution_name: str + :param script_output_stream_type: Name of the desired output stream to return. If not provided, + will return all. An empty array will return nothing. + :type script_output_stream_type: list[str or ~avs_client.models.ScriptOutputStreamType] + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ScriptExecution, or the result of cls(response) + :rtype: ~avs_client.models.ScriptExecution + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ScriptExecution"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.get_execution_logs.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'scriptExecutionName': self._serialize.url("script_execution_name", script_execution_name, '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') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + if script_output_stream_type is not None: + body_content = self._serialize.body(script_output_stream_type, '[str]') + else: + body_content = None + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + 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) + + deserialized = self._deserialize('ScriptExecution', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_execution_logs.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}/getExecutionLogs'} # type: ignore diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_script_packages_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_script_packages_operations.py new file mode 100644 index 00000000000..ae78334d8fa --- /dev/null +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_script_packages_operations.py @@ -0,0 +1,184 @@ +# 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 typing import TYPE_CHECKING +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 + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class ScriptPackagesOperations(object): + """ScriptPackagesOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~avs_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.ScriptPackagesList"] + """Return script packages available for a private cloud to run on their Private Cloud. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ScriptPackagesList or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~avs_client.models.ScriptPackagesList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ScriptPackagesList"] + 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.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, '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('ScriptPackagesList', 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.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages'} # type: ignore + + def get( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + script_package_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.ScriptPackage" + """Return script package available to run on an Private Cloud. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param script_package_name: Name of the script package in the private cloud. + :type script_package_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ScriptPackage, or the result of cls(response) + :rtype: ~avs_client.models.ScriptPackage + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ScriptPackage"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'scriptPackageName': self._serialize.url("script_package_name", script_package_name, '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') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + 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) + + deserialized = self._deserialize('ScriptPackage', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}'} # type: ignore diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_workload_networks_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_workload_networks_operations.py index bf799ad331d..4d5b5950b91 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_workload_networks_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_workload_networks_operations.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 typing import TYPE_CHECKING @@ -70,7 +72,7 @@ def list_segments( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -150,7 +152,7 @@ def get_segment( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -201,7 +203,7 @@ def _create_segments_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -340,7 +342,7 @@ def _update_segments_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -476,7 +478,7 @@ def _delete_segment_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -607,7 +609,7 @@ def list_dhcp( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -687,7 +689,7 @@ def get_dhcp( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -729,7 +731,7 @@ def _create_dhcp_initial( resource_group_name, # type: str private_cloud_name, # type: str dhcp_id, # type: str - workload_network_dhcp, # type: "_models.WorkloadNetworkDhcp" + properties=None, # type: Optional["_models.WorkloadNetworkDhcpEntity"] **kwargs # type: Any ): # type: (...) -> "_models.WorkloadNetworkDhcp" @@ -738,7 +740,9 @@ def _create_dhcp_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + + _workload_network_dhcp = _models.WorkloadNetworkDhcp(properties=properties) + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -762,7 +766,7 @@ def _create_dhcp_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(workload_network_dhcp, 'WorkloadNetworkDhcp') + body_content = self._serialize.body(_workload_network_dhcp, 'WorkloadNetworkDhcp') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -789,7 +793,7 @@ def begin_create_dhcp( resource_group_name, # type: str private_cloud_name, # type: str dhcp_id, # type: str - workload_network_dhcp, # type: "_models.WorkloadNetworkDhcp" + properties=None, # type: Optional["_models.WorkloadNetworkDhcpEntity"] **kwargs # type: Any ): # type: (...) -> LROPoller["_models.WorkloadNetworkDhcp"] @@ -803,8 +807,8 @@ def begin_create_dhcp( :type private_cloud_name: str :param dhcp_id: NSX DHCP identifier. Generally the same as the DHCP display name. :type dhcp_id: str - :param workload_network_dhcp: NSX DHCP. - :type workload_network_dhcp: ~avs_client.models.WorkloadNetworkDhcp + :param properties: DHCP properties. + :type properties: ~avs_client.models.WorkloadNetworkDhcpEntity :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: Pass in True if you'd like the ARMPolling polling method, @@ -827,7 +831,7 @@ def begin_create_dhcp( resource_group_name=resource_group_name, private_cloud_name=private_cloud_name, dhcp_id=dhcp_id, - workload_network_dhcp=workload_network_dhcp, + properties=properties, cls=lambda x,y,z: x, **kwargs ) @@ -868,7 +872,7 @@ def _update_dhcp_initial( resource_group_name, # type: str private_cloud_name, # type: str dhcp_id, # type: str - workload_network_dhcp, # type: "_models.WorkloadNetworkDhcp" + properties=None, # type: Optional["_models.WorkloadNetworkDhcpEntity"] **kwargs # type: Any ): # type: (...) -> Optional["_models.WorkloadNetworkDhcp"] @@ -877,7 +881,9 @@ def _update_dhcp_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + + _workload_network_dhcp = _models.WorkloadNetworkDhcp(properties=properties) + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -901,7 +907,7 @@ def _update_dhcp_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(workload_network_dhcp, 'WorkloadNetworkDhcp') + body_content = self._serialize.body(_workload_network_dhcp, 'WorkloadNetworkDhcp') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -926,7 +932,7 @@ def begin_update_dhcp( resource_group_name, # type: str private_cloud_name, # type: str dhcp_id, # type: str - workload_network_dhcp, # type: "_models.WorkloadNetworkDhcp" + properties=None, # type: Optional["_models.WorkloadNetworkDhcpEntity"] **kwargs # type: Any ): # type: (...) -> LROPoller["_models.WorkloadNetworkDhcp"] @@ -940,8 +946,8 @@ def begin_update_dhcp( :type private_cloud_name: str :param dhcp_id: NSX DHCP identifier. Generally the same as the DHCP display name. :type dhcp_id: str - :param workload_network_dhcp: NSX DHCP. - :type workload_network_dhcp: ~avs_client.models.WorkloadNetworkDhcp + :param properties: DHCP properties. + :type properties: ~avs_client.models.WorkloadNetworkDhcpEntity :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: Pass in True if you'd like the ARMPolling polling method, @@ -964,7 +970,7 @@ def begin_update_dhcp( resource_group_name=resource_group_name, private_cloud_name=private_cloud_name, dhcp_id=dhcp_id, - workload_network_dhcp=workload_network_dhcp, + properties=properties, cls=lambda x,y,z: x, **kwargs ) @@ -1013,7 +1019,7 @@ def _delete_dhcp_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -1144,7 +1150,7 @@ def list_gateways( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -1224,7 +1230,7 @@ def get_gateway( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -1286,7 +1292,7 @@ def list_port_mirroring( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -1367,7 +1373,7 @@ def get_port_mirroring( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -1418,7 +1424,7 @@ def _create_port_mirroring_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -1558,7 +1564,7 @@ def _update_port_mirroring_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -1695,7 +1701,7 @@ def _delete_port_mirroring_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -1827,7 +1833,7 @@ def list_vm_groups( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -1907,7 +1913,7 @@ def get_vm_group( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -1958,7 +1964,7 @@ def _create_vm_group_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -2097,7 +2103,7 @@ def _update_vm_group_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -2233,7 +2239,7 @@ def _delete_vm_group_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -2364,7 +2370,7 @@ def list_virtual_machines( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -2432,7 +2438,7 @@ def get_virtual_machine( :type resource_group_name: str :param private_cloud_name: Name of the private cloud. :type private_cloud_name: str - :param virtual_machine_id: NSX Virtual Machine identifier. + :param virtual_machine_id: Virtual Machine identifier. :type virtual_machine_id: str :keyword callable cls: A custom type or function that will be passed the direct response :return: WorkloadNetworkVirtualMachine, or the result of cls(response) @@ -2444,7 +2450,7 @@ def get_virtual_machine( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -2506,7 +2512,7 @@ def list_dns_services( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -2587,7 +2593,7 @@ def get_dns_service( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -2638,7 +2644,7 @@ def _create_dns_service_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -2778,7 +2784,7 @@ def _update_dns_service_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -2915,7 +2921,7 @@ def _delete_dns_service_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -3047,7 +3053,7 @@ def list_dns_zones( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -3127,7 +3133,7 @@ def get_dns_zone( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -3178,7 +3184,7 @@ def _create_dns_zone_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -3317,7 +3323,7 @@ def _update_dns_zone_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -3453,7 +3459,7 @@ def _delete_dns_zone_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -3558,3 +3564,413 @@ def get_long_running_output(pipeline_response): else: return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete_dns_zone.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}'} # type: ignore + + def list_public_i_ps( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.WorkloadNetworkPublicIPsList"] + """List of Public IP Blocks in a private cloud workload network. + + List of Public IP Blocks in a private cloud workload network. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either WorkloadNetworkPublicIPsList or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~avs_client.models.WorkloadNetworkPublicIPsList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.WorkloadNetworkPublicIPsList"] + 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_public_i_ps.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, '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('WorkloadNetworkPublicIPsList', 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_public_i_ps.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs'} # type: ignore + + def get_public_ip( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + public_ip_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.WorkloadNetworkPublicIP" + """Get a Public IP Block by id in a private cloud workload network. + + Get a Public IP Block by id in a private cloud workload network. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param public_ip_id: NSX Public IP Block identifier. Generally the same as the Public IP + Block's display name. + :type public_ip_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkloadNetworkPublicIP, or the result of cls(response) + :rtype: ~avs_client.models.WorkloadNetworkPublicIP + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.WorkloadNetworkPublicIP"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-01" + accept = "application/json" + + # Construct URL + url = self.get_public_ip.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'publicIPId': self._serialize.url("public_ip_id", public_ip_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') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + 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) + + deserialized = self._deserialize('WorkloadNetworkPublicIP', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_public_ip.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}'} # type: ignore + + def _create_public_ip_initial( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + public_ip_id, # type: str + display_name=None, # type: Optional[str] + number_of_public_i_ps=None, # type: Optional[int] + **kwargs # type: Any + ): + # type: (...) -> "_models.WorkloadNetworkPublicIP" + cls = kwargs.pop('cls', None) # type: ClsType["_models.WorkloadNetworkPublicIP"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + + _workload_network_public_ip = _models.WorkloadNetworkPublicIP(display_name=display_name, number_of_public_i_ps=number_of_public_i_ps) + api_version = "2021-06-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_public_ip_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'publicIPId': self._serialize.url("public_ip_id", public_ip_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') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(_workload_network_public_ip, 'WorkloadNetworkPublicIP') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('WorkloadNetworkPublicIP', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('WorkloadNetworkPublicIP', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_public_ip_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}'} # type: ignore + + def begin_create_public_ip( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + public_ip_id, # type: str + display_name=None, # type: Optional[str] + number_of_public_i_ps=None, # type: Optional[int] + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.WorkloadNetworkPublicIP"] + """Create a Public IP Block by id in a private cloud workload network. + + Create a Public IP Block by id in a private cloud workload network. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param public_ip_id: NSX Public IP Block identifier. Generally the same as the Public IP + Block's display name. + :type public_ip_id: str + :param display_name: Display name of the Public IP Block. + :type display_name: str + :param number_of_public_i_ps: Number of Public IPs requested. + :type number_of_public_i_ps: long + :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: Pass in True if you'd like the ARMPolling polling method, + False for no polling, or 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 WorkloadNetworkPublicIP or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~avs_client.models.WorkloadNetworkPublicIP] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.WorkloadNetworkPublicIP"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._create_public_ip_initial( + resource_group_name=resource_group_name, + private_cloud_name=private_cloud_name, + public_ip_id=public_ip_id, + display_name=display_name, + number_of_public_i_ps=number_of_public_i_ps, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('WorkloadNetworkPublicIP', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'publicIPId': self._serialize.url("public_ip_id", public_ip_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_public_ip.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}'} # type: ignore + + def _delete_public_ip_initial( + self, + resource_group_name, # type: str + public_ip_id, # type: str + private_cloud_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> 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-06-01" + accept = "application/json" + + # Construct URL + url = self._delete_public_ip_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'publicIPId': self._serialize.url("public_ip_id", public_ip_id, 'str'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, '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') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_public_ip_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}'} # type: ignore + + def begin_delete_public_ip( + self, + resource_group_name, # type: str + public_ip_id, # type: str + private_cloud_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Delete a Public IP Block by id in a private cloud workload network. + + Delete a Public IP Block by id in a private cloud workload network. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param public_ip_id: NSX Public IP Block identifier. Generally the same as the Public IP + Block's display name. + :type public_ip_id: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_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: Pass in True if you'd like the ARMPolling polling method, + False for no polling, or your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._delete_public_ip_initial( + resource_group_name=resource_group_name, + public_ip_id=public_ip_id, + private_cloud_name=private_cloud_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'publicIPId': self._serialize.url("public_ip_id", public_ip_id, 'str'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete_public_ip.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}'} # type: ignore diff --git a/src/vmware/azext_vmware/vendored_sdks/setup.py b/src/vmware/azext_vmware/vendored_sdks/setup.py new file mode 100644 index 00000000000..6c48b1fd2db --- /dev/null +++ b/src/vmware/azext_vmware/vendored_sdks/setup.py @@ -0,0 +1,37 @@ +# 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. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "azure-mgmt-avs" +VERSION = "0.1.0" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2", "azure-mgmt-core<2.0.0,>=1.2.1"] + +setup( + name=NAME, + version=VERSION, + description="azure-mgmt-avs", + author_email="", + url="", + keywords=["Swagger", "AVSClient"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Azure VMware Solution API. + """ +) From a7f346c2d72894af02953529e2ae6dbaa85efae8 Mon Sep 17 00:00:00 2001 From: Cameron Taggart Date: Wed, 19 May 2021 15:06:07 -0700 Subject: [PATCH 02/18] update to AVS 2021-06-01 API --- src/vmware/CHANGELOG.md | 1 + src/vmware/DEVELOPMENT.md | 2 +- .../tests/latest/recordings/test_vmware.yaml | 3958 ++--------------- .../tests/latest/test_hcx_scenario.py | 46 + .../tests/latest/test_vmware_scenario.py | 25 +- .../aio/operations/_addons_operations.py | 20 +- .../operations/_authorizations_operations.py | 20 +- .../aio/operations/_cloud_links_operations.py | 20 +- .../aio/operations/_clusters_operations.py | 28 +- .../aio/operations/_datastores_operations.py | 20 +- .../_global_reach_connections_operations.py | 20 +- .../_hcx_enterprise_sites_operations.py | 8 +- .../aio/operations/_locations_operations.py | 4 +- .../avs_client/aio/operations/_operations.py | 2 +- .../operations/_private_clouds_operations.py | 48 +- .../operations/_script_cmdlets_operations.py | 4 +- .../_script_executions_operations.py | 22 +- .../operations/_script_packages_operations.py | 4 +- .../_workload_networks_operations.py | 196 +- .../avs_client/models/__init__.py | 2 + .../avs_client/models/_avs_client_enums.py | 7 + .../avs_client/models/_models.py | 10 +- .../avs_client/models/_models_py3.py | 14 +- .../operations/_addons_operations.py | 8 +- .../operations/_authorizations_operations.py | 8 +- .../operations/_cloud_links_operations.py | 8 +- .../operations/_clusters_operations.py | 12 +- .../operations/_datastores_operations.py | 8 +- .../_global_reach_connections_operations.py | 8 +- .../operations/_private_clouds_operations.py | 20 +- .../_script_executions_operations.py | 8 +- .../_workload_networks_operations.py | 80 +- 32 files changed, 648 insertions(+), 3993 deletions(-) create mode 100644 src/vmware/azext_vmware/tests/latest/test_hcx_scenario.py diff --git a/src/vmware/CHANGELOG.md b/src/vmware/CHANGELOG.md index 05f07479a8d..2505592d697 100644 --- a/src/vmware/CHANGELOG.md +++ b/src/vmware/CHANGELOG.md @@ -1,6 +1,7 @@ # Release History ## 2.1.0 (TBD) +- update to AVS 2021-06-01 API - add az vmware private-cloud rotate-vcenter-password - add az vmware private-cloud rotate-nsxt-password diff --git a/src/vmware/DEVELOPMENT.md b/src/vmware/DEVELOPMENT.md index 6340c88c2c2..2866426b5ba 100644 --- a/src/vmware/DEVELOPMENT.md +++ b/src/vmware/DEVELOPMENT.md @@ -3,6 +3,6 @@ ``` powershell rm ..\azure-cli-extensions\src\vmware\azext_vmware\vendored_sdks -Recurse -autorest --python --output-folder=..\azure-cli-extensions\src\vmware\azext_vmware\vendored_sdks --use=@autorest/python@5.6.1 --tag=package-2021-01-01-preview --azure-arm=true --override-client-name=AVSClient specification\vmware\resource-manager\readme.md +autorest --python --output-folder=..\azure-cli-extensions\src\vmware\azext_vmware\vendored_sdks --use=@autorest/python@5.8.0 --tag=package-2021-06-01 --azure-arm=true --namespace=avs_client --override-client-name=AVSClient specification\vmware\resource-manager\readme.md ``` It was run from a git clone of [azure-rest-api-specs](https://github.com/Azure/azure-rest-api-specs). diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml index 3d948fa8cfd..00ae0deb763 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml @@ -23,7 +23,7 @@ interactions: x-client-Ver: - 1.2.3 method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' @@ -39,13 +39,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:46:32 GMT + - Wed, 19 May 2021 22:00:02 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AtSrx_18wd1AuaFnsKJP3vY; expires=Thu, 29-Apr-2021 21:46:32 GMT; path=/; + - fpc=AlG8VgL2Qw1Drtv1HwQE4bg; expires=Fri, 18-Jun-2021 22:00:02 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrBdXv4E8rOfcBz5YNFPg3qIGpoKLD0KbK5jPkzHSU6W3uFH09-eRTNl3oLBRzdhoAOy3ilqsVAK-a2tymxEFVixl5dyP-QEUMIIsKEAn5zK5HSfXfmXXTv8DE0xyFA5ZpbdTTVL7OPUFYjsjvzGKQhg4MKlkZm1eZ_JKIFzTYXrQgAA; + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr-WbNGqbZBOnT7H_vC7vXKAXDPgmXdN6ZYjLWu4e3mcZcPjHcUzV7uGuDxVNQtFh-Y56haWeHZbGuwED82gcftObGMRYF_ZYhxd-atEDVLPH54esST3H4Sg47oy4tS9058chwf3KhELZ9Kkf6NtD3BtqA9XH--66AGXwvkp5IPAkgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -54,7 +54,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11562.10 - WUS2 ProdSlices + - 2.1.11722.21 - EUS ProdSlices status: code: 200 message: OK @@ -74,12 +74,12 @@ interactions: ParameterSetName: - --location User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: POST - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AVS/locations/centralus/checkQuotaAvailability?api-version=2021-01-01-preview + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AVS/locations/westcentralus/checkQuotaAvailability?api-version=2021-06-01 response: body: - string: '{"hostsRemaining":{"gp":980,"he":980},"quotaEnabled":"Enabled"}' + string: '{"hostsRemaining":{"gp":996,"he":978},"quotaEnabled":"Enabled"}' headers: cache-control: - no-cache @@ -88,21 +88,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:46:34 GMT + - Wed, 19 May 2021 22:00:06 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: C50E3E91B26D47AC820D1400437EC3B9 Ref B: PDX31EDGE0107 Ref C: 2021-05-19T22:00:05Z' status: code: 200 message: OK @@ -130,7 +128,7 @@ interactions: x-client-Ver: - 1.2.3 method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' @@ -146,13 +144,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:46:34 GMT + - Wed, 19 May 2021 22:00:08 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=Al-E3t-zA3JFt36QY21bSTs; expires=Thu, 29-Apr-2021 21:46:34 GMT; path=/; + - fpc=ArjFl2XKeqJJtCB3QrHAT10; expires=Fri, 18-Jun-2021 22:00:09 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrQyHTFQlOBx9WTGX5HPuNKJtHu0h3V-v-XNoA-WsFXok8kfeuk0pLQ_vQi0jRm4foblr6V9NQeZEqhKvdA0Yt393bwr8asYs0NX3b93MF6RIruVtgtd6zkd5AvLlF2nxdfXftriFExiXOrHhcjfdYQIDkT3F_eKHhOQNn_lcX-tUgAA; + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrIt8Zx1DhHtqdPv69raU_Zg2nEbBnpxJtC_W2q1rL3jTexOHDK_ktBZqt5Q3Wd-K7yqQB2jr0aTppllJuCdQnkSnhNMhmw42rCoeyXVifM9n3itJB_v8cq0oQ8ysjMNOOAcPSCy8py3cLU-AymZnSEWoBI7qZ3yCp-CjjIvOLNNUgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -161,7 +159,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11562.10 - WUS2 ProdSlices + - 2.1.11722.21 - WUS2 ProdSlices status: code: 200 message: OK @@ -181,9 +179,9 @@ interactions: ParameterSetName: - --location User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: POST - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AVS/locations/centralus/checkTrialAvailability?api-version=2021-01-01-preview + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AVS/locations/westcentralus/checkTrialAvailability?api-version=2021-06-01 response: body: string: '{"availableHosts":0,"status":"TrialDisabled"}' @@ -195,23 +193,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:46:36 GMT + - Wed, 19 May 2021 22:00:12 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1195' + x-msedge-ref: + - 'Ref A: 41FC3E2CA0AD4CBC9119BA8BEEEE1ECF Ref B: PDX31EDGE0119 Ref C: 2021-05-19T22:00:11Z' status: code: 200 message: OK @@ -239,7 +235,7 @@ interactions: x-client-Ver: - 1.2.3 method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' @@ -255,13 +251,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:46:36 GMT + - Wed, 19 May 2021 22:00:14 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=Ag0HiEDwq9hBoJDsvM-wsB0; expires=Thu, 29-Apr-2021 21:46:36 GMT; path=/; + - fpc=AkEYaCYPqypOg2HY55dMzIA; expires=Fri, 18-Jun-2021 22:00:14 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrSHBfS5uAG3pfyBDfEur6kEdlKH3sI6Hpp4faJ4Gw_6tpCuBxwor-Bn6eCAyfki7nxGAkbuBnLm-jxY_ii7WC3cMMwm7mbb_liFrV49e9ttibqqfe_b1xk2jUQ66dSRoitsuDDQxludKiY7z_Vi4XDTGBOFJjxIUcW9gZEna4HdIgAA; + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrG_NdbVDzgiopKMJUkS-Zha4ekjQSg20_SkOp5wSGKyvVDvQZrKDQG2VKxaMT7SkLM87tF-c7_ltQmsujFx-j28ODvFzK2IUl8Dep6gxCoYtQU7o37zwaagwVUm3rgv2irMZ8RNdqKRO9qJS1eNcf7yTs9Bp5y6kz4qyaxB_gElYgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -270,7 +266,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11562.10 - NCUS ProdSlices + - 2.1.11722.21 - NCUS ProdSlices status: code: 200 message: OK @@ -288,9 +284,9 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds?api-version=2021-01-01-preview + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds?api-version=2021-06-01 response: body: string: '{"value":[]}' @@ -302,17 +298,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:46:37 GMT + - Wed, 19 May 2021 22:00:16 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 0A6CE3666B544C7F96D7D0551A938D31 Ref B: PDX31EDGE0120 Ref C: 2021-05-19T22:00:17Z' status: code: 200 message: OK @@ -340,7 +338,7 @@ interactions: x-client-Ver: - 1.2.3 method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' @@ -356,13 +354,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:46:37 GMT + - Wed, 19 May 2021 22:00:19 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=Ak3_0rMSf-RBnQ0x2umKEZ8; expires=Thu, 29-Apr-2021 21:46:38 GMT; path=/; + - fpc=AmYP6DG3o6tHlpOAhcmP9fw; expires=Fri, 18-Jun-2021 22:00:19 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr_FFcFrBVhK_GVO-ROxhpzCzR_3gDKjADhDUZfMkErm87a5ES_vuOwG2IJL1iLD8U8OdOqZCu8Yqw7gyOQUH19t7Y7nnKqwV03Pbz_oKSub5cc2dv7FDjHy43h0GNQRdyLLdfzE0LqYlRIB76M6Lsxc2znb1DQR8NpTT2vB-oYDEgAA; + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr0jI3oZpnFbIXotNkAih3gKtuMJowxr49hy2lwFaoHWwGlBv4PZrQxK6f_6vXENsd6DD3xh0UvOo6T_RLa7brSZNlmIduuVlR2740cAA3rSistIPJlcvbh-S8iGZL_NvNx6l3dEaXNPtC4lLhJsSv_Auz0qRBtoU_efwFZgSbCU0gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -371,12 +369,12 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11562.10 - NCUS ProdSlices + - 2.1.11722.21 - NCUS ProdSlices status: code: 200 message: OK - request: - body: '{"location": "centralus", "tags": {}, "sku": {"name": "av20"}, "properties": + body: '{"location": "westcentralus", "tags": {}, "sku": {"name": "av20"}, "properties": {"managementCluster": {"clusterSize": 4}, "internet": "Disabled", "networkBlock": "192.168.48.0/22", "vcenterPassword": "UpfBXae9ZquZSDXk(", "nsxtPassword": "5rqdLj4GF3cePUe6("}}' headers: @@ -389,42 +387,44 @@ interactions: Connection: - keep-alive Content-Length: - - '255' + - '259' Content-Type: - application/json ParameterSetName: - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password --accept-eula User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-01-01-preview + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost16.mp01.mock01.vmcp.vs.management"],"provisioningState":"Building"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","provisioningNetwork":"192.168.50.0/24","provisioningState":"Building","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"westcentralus","name":"cloud1","properties":{"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost27.mp01.mock01.vmcp.vs.management","gp-fakehost23.mp01.mock01.vmcp.vs.management","gp-fakehost21.mp01.mock01.vmcp.vs.management","gp-fakehost20.mp01.mock01.vmcp.vs.management"],"provisioningState":"Building"},"managementNetwork":"192.168.48.0/26","networkBlock":"192.168.48.0/22","provisioningNetwork":"192.168.50.0/25","provisioningState":"Building","vmotionNetwork":"192.168.49.128/25"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' headers: azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/618db719-3b52-44f3-8664-3abac4bd7a33?api-version=2021-01-01-preview + - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f?api-version=2021-06-01 cache-control: - no-cache content-length: - - '945' + - '975' content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:46:45 GMT + - Wed, 19 May 2021 22:00:27 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1195' + x-msedge-ref: + - 'Ref A: 48FB6E5CBC774556910DFCB5FE58CC05 Ref B: PDX31EDGE0120 Ref C: 2021-05-19T22:00:22Z' status: code: 201 message: Created @@ -443,12 +443,12 @@ interactions: - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password --accept-eula User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/618db719-3b52-44f3-8664-3abac4bd7a33?api-version=2021-01-01-preview + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/618db719-3b52-44f3-8664-3abac4bd7a33","name":"618db719-3b52-44f3-8664-3abac4bd7a33","percentComplete":0,"startTime":"2021-03-30T21:46:42.1863195+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","name":"8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","percentComplete":0,"startTime":"2021-05-19T22:00:25.5833542+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -457,21 +457,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:46:56 GMT + - Wed, 19 May 2021 22:00:37 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 3554E863317F4BC9A6129C921CA5F6E9 Ref B: PDX31EDGE0120 Ref C: 2021-05-19T22:00:38Z' status: code: 200 message: OK @@ -490,12 +488,12 @@ interactions: - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password --accept-eula User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/618db719-3b52-44f3-8664-3abac4bd7a33?api-version=2021-01-01-preview + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/618db719-3b52-44f3-8664-3abac4bd7a33","name":"618db719-3b52-44f3-8664-3abac4bd7a33","percentComplete":0,"startTime":"2021-03-30T21:46:42.1863195+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","name":"8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","percentComplete":0,"startTime":"2021-05-19T22:00:25.5833542+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -504,21 +502,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:47:07 GMT + - Wed, 19 May 2021 22:00:48 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: B8398B03A400452283CACDF99C5B7AC1 Ref B: PDX31EDGE0120 Ref C: 2021-05-19T22:00:48Z' status: code: 200 message: OK @@ -537,12 +533,12 @@ interactions: - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password --accept-eula User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/618db719-3b52-44f3-8664-3abac4bd7a33?api-version=2021-01-01-preview + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/618db719-3b52-44f3-8664-3abac4bd7a33","name":"618db719-3b52-44f3-8664-3abac4bd7a33","percentComplete":88.75,"startTime":"2021-03-30T21:46:42.1863195+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","name":"8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","percentComplete":88.75,"startTime":"2021-05-19T22:00:25.5833542+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -551,21 +547,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:47:17 GMT + - Wed, 19 May 2021 22:00:58 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: BB2DEE077D56477D8C7318601250A59B Ref B: PDX31EDGE0120 Ref C: 2021-05-19T22:00:58Z' status: code: 200 message: OK @@ -584,12 +578,12 @@ interactions: - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password --accept-eula User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/618db719-3b52-44f3-8664-3abac4bd7a33?api-version=2021-01-01-preview + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/618db719-3b52-44f3-8664-3abac4bd7a33","name":"618db719-3b52-44f3-8664-3abac4bd7a33","percentComplete":88.75,"startTime":"2021-03-30T21:46:42.1863195+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","name":"8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","percentComplete":88.75,"startTime":"2021-05-19T22:00:25.5833542+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -598,21 +592,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:47:27 GMT + - Wed, 19 May 2021 22:01:08 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 42198051155F480DA2D6E048DDA06EEF Ref B: PDX31EDGE0120 Ref C: 2021-05-19T22:01:09Z' status: code: 200 message: OK @@ -631,12 +623,12 @@ interactions: - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password --accept-eula User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/618db719-3b52-44f3-8664-3abac4bd7a33?api-version=2021-01-01-preview + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/618db719-3b52-44f3-8664-3abac4bd7a33","name":"618db719-3b52-44f3-8664-3abac4bd7a33","percentComplete":100,"startTime":"2021-03-30T21:46:42.1863195+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","name":"8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","percentComplete":100,"startTime":"2021-05-19T22:00:25.5833542+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -645,21 +637,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:47:38 GMT + - Wed, 19 May 2021 22:01:18 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 297F43D35E404DD6A1BC0D3B7A0730EC Ref B: PDX31EDGE0120 Ref C: 2021-05-19T22:01:19Z' status: code: 200 message: OK @@ -678,12 +668,12 @@ interactions: - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password --accept-eula User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/618db719-3b52-44f3-8664-3abac4bd7a33?api-version=2021-01-01-preview + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/618db719-3b52-44f3-8664-3abac4bd7a33","name":"618db719-3b52-44f3-8664-3abac4bd7a33","percentComplete":100,"startTime":"2021-03-30T21:46:42.1863195+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","name":"8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","percentComplete":100,"startTime":"2021-05-19T22:00:25.5833542+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -692,21 +682,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:47:49 GMT + - Wed, 19 May 2021 22:01:29 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 84D008C560B14EC6A24EF8A79A9D5187 Ref B: PDX31EDGE0120 Ref C: 2021-05-19T22:01:29Z' status: code: 200 message: OK @@ -725,12 +713,12 @@ interactions: - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password --accept-eula User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/618db719-3b52-44f3-8664-3abac4bd7a33?api-version=2021-01-01-preview + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/618db719-3b52-44f3-8664-3abac4bd7a33","name":"618db719-3b52-44f3-8664-3abac4bd7a33","percentComplete":100,"startTime":"2021-03-30T21:46:42.1863195+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","name":"8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","percentComplete":100,"startTime":"2021-05-19T22:00:25.5833542+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -739,21 +727,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:47:59 GMT + - Wed, 19 May 2021 22:01:39 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: D033775D3F5B469E8D0B8484655B93AA Ref B: PDX31EDGE0120 Ref C: 2021-05-19T22:01:39Z' status: code: 200 message: OK @@ -772,12 +758,12 @@ interactions: - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password --accept-eula User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/618db719-3b52-44f3-8664-3abac4bd7a33?api-version=2021-01-01-preview + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/618db719-3b52-44f3-8664-3abac4bd7a33","name":"618db719-3b52-44f3-8664-3abac4bd7a33","percentComplete":100,"startTime":"2021-03-30T21:46:42.1863195+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","name":"8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","percentComplete":100,"startTime":"2021-05-19T22:00:25.5833542+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -786,21 +772,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:48:09 GMT + - Wed, 19 May 2021 22:01:49 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 246C9835F86C4CFFA6CB40B4E55FF429 Ref B: PDX31EDGE0120 Ref C: 2021-05-19T22:01:50Z' status: code: 200 message: OK @@ -819,12 +803,12 @@ interactions: - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password --accept-eula User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/618db719-3b52-44f3-8664-3abac4bd7a33?api-version=2021-01-01-preview + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/618db719-3b52-44f3-8664-3abac4bd7a33","name":"618db719-3b52-44f3-8664-3abac4bd7a33","percentComplete":100,"startTime":"2021-03-30T21:46:42.1863195+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","name":"8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","percentComplete":100,"startTime":"2021-05-19T22:00:25.5833542+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -833,21 +817,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:48:20 GMT + - Wed, 19 May 2021 22:02:00 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 8C90F168D25D4CD085225B13ADF176BA Ref B: PDX31EDGE0120 Ref C: 2021-05-19T22:02:00Z' status: code: 200 message: OK @@ -866,12 +848,12 @@ interactions: - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password --accept-eula User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/618db719-3b52-44f3-8664-3abac4bd7a33?api-version=2021-01-01-preview + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/618db719-3b52-44f3-8664-3abac4bd7a33","name":"618db719-3b52-44f3-8664-3abac4bd7a33","percentComplete":100,"startTime":"2021-03-30T21:46:42.1863195+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","name":"8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","percentComplete":100,"startTime":"2021-05-19T22:00:25.5833542+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -880,21 +862,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:48:29 GMT + - Wed, 19 May 2021 22:02:10 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: D447B0A4607E4E2B9F9A4FEED185744C Ref B: PDX31EDGE0120 Ref C: 2021-05-19T22:02:10Z' status: code: 200 message: OK @@ -913,12 +893,12 @@ interactions: - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password --accept-eula User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/618db719-3b52-44f3-8664-3abac4bd7a33?api-version=2021-01-01-preview + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/618db719-3b52-44f3-8664-3abac4bd7a33","name":"618db719-3b52-44f3-8664-3abac4bd7a33","percentComplete":100,"startTime":"2021-03-30T21:46:42.1863195+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","name":"8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","percentComplete":100,"startTime":"2021-05-19T22:00:25.5833542+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -927,21 +907,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:48:41 GMT + - Wed, 19 May 2021 22:02:20 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: C166A03605CC4D0CBE716F7CC4141093 Ref B: PDX31EDGE0120 Ref C: 2021-05-19T22:02:21Z' status: code: 200 message: OK @@ -960,35 +938,33 @@ interactions: - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password --accept-eula User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/618db719-3b52-44f3-8664-3abac4bd7a33?api-version=2021-01-01-preview + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f?api-version=2021-06-01 response: body: - string: '{"endTime":"2021-03-30T21:48:39.8295481+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/618db719-3b52-44f3-8664-3abac4bd7a33","name":"618db719-3b52-44f3-8664-3abac4bd7a33","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost16.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"},"startTime":"2021-03-30T21:46:42.1863195+00:00","status":"Succeeded"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","name":"8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","percentComplete":100,"startTime":"2021-05-19T22:00:25.5833542+00:00","status":"Building"}' headers: cache-control: - no-cache content-length: - - '2034' + - '387' content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:48:50 GMT + - Wed, 19 May 2021 22:02:31 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: E788E1B182784DD1AB33F5FBEFB10C6E Ref B: PDX31EDGE0120 Ref C: 2021-05-19T22:02:31Z' status: code: 200 message: OK @@ -1007,35 +983,33 @@ interactions: - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password --accept-eula User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-01-01-preview + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost16.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' + string: '{"endTime":"2021-05-19T22:02:27.7846508+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","name":"8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"westcentralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt53-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt53-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt53-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt53-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.48.232/30","secondarySubnet":"192.168.48.236/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost27.mp01.mock01.vmcp.vs.management","gp-fakehost23.mp01.mock01.vmcp.vs.management","gp-fakehost21.mp01.mock01.vmcp.vs.management","gp-fakehost20.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/26","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/25","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.128/25"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"},"startTime":"2021-05-19T22:00:25.5833542+00:00","status":"Succeeded"}' headers: cache-control: - no-cache content-length: - - '1586' + - '2067' content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:48:51 GMT + - Wed, 19 May 2021 22:02:41 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 47C77719427F432697399F443701DBE0 Ref B: PDX31EDGE0120 Ref C: 2021-05-19T22:02:41Z' status: code: 200 message: OK @@ -1044,103 +1018,43 @@ interactions: headers: Accept: - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:48:52 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=Av5RMHZ1o7NNjdIWkuMtXO8; expires=Thu, 29-Apr-2021 21:48:53 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrpoyKUX9sVOzqzdkyEqzJgpsfsR2JjMw2C3P4y0pX5j6NwfNsWSHGQXQh8fryERt6jClbGC-lUx1593qjiPumzfSdldOwnIbyhURHYEkUo_eC9ZrpOO0_yCX8DswxqcU67vjFM-fdxopD-7YbLrhRQ5expV3hmKfBw_Yu5oglwFQgAA; - domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ests-server: - - 2.1.11562.10 - EUS ProdSlices - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json Accept-Encoding: - gzip, deflate CommandName: - - vmware private-cloud list + - vmware private-cloud create Connection: - keep-alive ParameterSetName: - - -g + - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password + --accept-eula User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds?api-version=2021-01-01-preview + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost16.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}]}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"westcentralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt53-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt53-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt53-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt53-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.48.232/30","secondarySubnet":"192.168.48.236/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost27.mp01.mock01.vmcp.vs.management","gp-fakehost23.mp01.mock01.vmcp.vs.management","gp-fakehost21.mp01.mock01.vmcp.vs.management","gp-fakehost20.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/26","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/25","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.128/25"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' headers: cache-control: - no-cache content-length: - - '1598' + - '1619' content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:48:54 GMT + - Wed, 19 May 2021 22:02:41 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 7F4863264F6542D99079883BCE9EFA50 Ref B: PDX31EDGE0120 Ref C: 2021-05-19T22:02:42Z' status: code: 200 message: OK @@ -1168,7 +1082,7 @@ interactions: x-client-Ver: - 1.2.3 method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' @@ -1184,13 +1098,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:48:54 GMT + - Wed, 19 May 2021 22:02:45 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=Au0a8dKYP9lNiWWLhkanLjI; expires=Thu, 29-Apr-2021 21:48:54 GMT; path=/; + - fpc=AnuyebYrrWtOvOy4nnzONvc; expires=Fri, 18-Jun-2021 22:02:45 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevryiShb-zQgjdBEnLfcJ-ciMa9zgL7mxRO2Fl41ly-E72bvvqEfUIr2FMfDrLPPk1-C6cOqp2V8fb9HitRP-zivGWM4waWbgKbnVxf6wpgiPJsnQjTGzNC6lHpkoYYJk8JPzGARZAnl4XO4LtDyibYnkV6KcjF_tc6THmS6MeriYYgAA; + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrPx8Iaf07jVqG2WV2UvOBGa7zsDKWrA0f7u4NumNjws-9Lu3xMcUuqlLDyPvW7DMOS6dT4Uzj1u4v2i9LLBTyeVOVn-xNoYKzEa7Wwdnn590oehUyHSqublas7d5TVobJ4s-5gzJJex0aiC-KluI0WPqgb-9Kix7-QL-5Lks5EOwgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -1199,7 +1113,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11562.10 - NCUS ProdSlices + - 2.1.11722.21 - SCUS ProdSlices status: code: 200 message: OK @@ -1211,86 +1125,42 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - vmware private-cloud rotate-vcenter-password - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -g -c - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateVcenterPassword?api-version=2021-01-01-preview - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - content-type: - - text/html - date: - - Tue, 30 Mar 2021 21:48:56 GMT - expires: - - '-1' - location: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateVcenterPassword/operationresults/508eb6f0-7313-4d75-aab8-d3c166ea1632?api-version=2021-01-01-preview - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud rotate-vcenter-password + - vmware private-cloud list Connection: - keep-alive ParameterSetName: - - -g -c + - -g User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateVcenterPassword/operationresults/508eb6f0-7313-4d75-aab8-d3c166ea1632?api-version=2021-01-01-preview + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds?api-version=2021-06-01 response: body: - string: '' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"westcentralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt53-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt53-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt53-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt53-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.48.232/30","secondarySubnet":"192.168.48.236/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost27.mp01.mock01.vmcp.vs.management","gp-fakehost23.mp01.mock01.vmcp.vs.management","gp-fakehost21.mp01.mock01.vmcp.vs.management","gp-fakehost20.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/26","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/25","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.128/25"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}]}' headers: cache-control: - no-cache + content-length: + - '1631' content-type: - - text/html + - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:49:26 GMT + - Wed, 19 May 2021 22:02:48 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 77FCD708A3534ED881B22CDBAF1F28C5 Ref B: PDX31EDGE0111 Ref C: 2021-05-19T22:02:47Z' status: - code: 204 - message: No Content + code: 200 + message: OK - request: body: null headers: @@ -1315,7 +1185,7 @@ interactions: x-client-Ver: - 1.2.3 method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' @@ -1331,13 +1201,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:49:27 GMT + - Wed, 19 May 2021 22:02:50 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AtzOruJLC4FKoCKKBUnbtrk; expires=Thu, 29-Apr-2021 21:49:27 GMT; path=/; + - fpc=AsfOjqGP8nVItfRgYWo9rBc; expires=Fri, 18-Jun-2021 22:02:50 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrc3YlVCajwVv5ygyBBm_B0WJynWoZynWX5f5XP4U4WXBk9415sEQLB-OkkAzL_om8LvCmnFDpkjc2CBnbExOGdLPcrcP5EmYL1bu56E0CUX8MGAG9YzPGvrTc8dx0gwDuGmWcQNIoG2RKbepZzJ3OZ_xO1U3heEfWDPmyNH942iAgAA; + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrWcox1PZAyOd0ggXFl7ZZDeGDKOL0JieZzOf9nkgHN1BC6lrPGHf119X3IVc_YwMhUDjZhAlFaG74sxSv2QhDOh-ArW25mPXOg8qbcKIE73u6KMSHKHkig-Ox__OG4NJC7tJHmuRiozj96c6WNRSUjBIPxOUXTidp49tv8fKyKXcgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -1346,7 +1216,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11562.10 - SCUS ProdSlices + - 2.1.11722.21 - WUS2 ProdSlices status: code: 200 message: OK @@ -1358,7 +1228,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - vmware private-cloud rotate-nsxt-password + - vmware private-cloud rotate-vcenter-password Connection: - keep-alive Content-Length: @@ -1366,9 +1236,9 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: POST - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateNsxtPassword?api-version=2021-01-01-preview + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateVcenterPassword?api-version=2021-06-01 response: body: string: '' @@ -1380,21 +1250,23 @@ interactions: content-type: - text/html date: - - Tue, 30 Mar 2021 21:49:28 GMT + - Wed, 19 May 2021 22:02:52 GMT expires: - '-1' location: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateNsxtPassword/operationresults/9e982cb4-8e56-4f41-8a37-1c7dc9ed54ca?api-version=2021-01-01-preview + - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateVcenterPassword/operationresults/2260c68c-70e2-4a4f-a4fc-08fc399ad36e?api-version=2021-06-01 pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-msedge-ref: + - 'Ref A: 418EEF46BFE14E5786421071E680D2C4 Ref B: PDX31EDGE0112 Ref C: 2021-05-19T22:02:52Z' status: code: 202 message: Accepted @@ -1406,15 +1278,15 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - vmware private-cloud rotate-nsxt-password + - vmware private-cloud rotate-vcenter-password Connection: - keep-alive ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateNsxtPassword/operationresults/9e982cb4-8e56-4f41-8a37-1c7dc9ed54ca?api-version=2021-01-01-preview + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateVcenterPassword/operationresults/2260c68c-70e2-4a4f-a4fc-08fc399ad36e?api-version=2021-06-01 response: body: string: '' @@ -1424,17 +1296,19 @@ interactions: content-type: - text/html date: - - Tue, 30 Mar 2021 21:49:58 GMT + - Wed, 19 May 2021 22:03:23 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: E79C950A34FA4F958D9C807570037BBE Ref B: PDX31EDGE0112 Ref C: 2021-05-19T22:03:23Z' status: code: 204 message: No Content @@ -1462,7 +1336,7 @@ interactions: x-client-Ver: - 1.2.3 method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' @@ -1478,13 +1352,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:50:00 GMT + - Wed, 19 May 2021 22:03:26 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=Aqj8gnTf17pIqIyKpjg3eL4; expires=Thu, 29-Apr-2021 21:50:00 GMT; path=/; + - fpc=AgrRak5Yk_tGrkYHlJZj6C0; expires=Fri, 18-Jun-2021 22:03:26 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevruhs2q7NIN-fIET7KirgUNV1-nTsMVjnmwntkY1ka6lFGlTBA2m8jpEsC6-FsjtBfVQWVBqKElx7Xf7i796uqLiHlBy_KZp-N4rElnCXARHZuyHyGWdQQ7TKxNod5sTpQOAHI3eDuLTa3b-ftboE7YfxfBWXV7JQwx858y2oJmLwgAA; + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr37pk8faJeStkYt_ClhhydisVEL4UxuSiQ_-2-YX1St91NjyVwGD3rdp7Z9GWSgOLAG0cDrHtow6LmY2u3-KM6J_miXDPMJeq9lt7i9mMgk-b9hW6HPg6vXG3mo6LbV2YQpk9jEEOgYcGFOvpbnMPUoix_o5u6uPDhLM05DGPTd4gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -1493,7 +1367,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11562.10 - WUS2 ProdSlices + - 2.1.11722.21 - EUS ProdSlices status: code: 200 message: OK @@ -1505,155 +1379,90 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - vmware hcx-enterprise-site list + - vmware private-cloud rotate-nsxt-password Connection: - keep-alive + Content-Length: + - '0' ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites?api-version=2021-01-01-preview + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateNsxtPassword?api-version=2021-06-01 response: body: - string: '{"value":[]}' + string: '' headers: cache-control: - no-cache content-length: - - '12' + - '0' content-type: - - application/json; charset=utf-8 + - text/html date: - - Tue, 30 Mar 2021 21:50:02 GMT + - Wed, 19 May 2021 22:03:28 GMT expires: - '-1' + location: + - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateNsxtPassword/operationresults/f118cc32-dc4f-4cd6-83f4-d7fa001d21de?api-version=2021-06-01 pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + x-msedge-ref: + - 'Ref A: 08D28A5FB5894BF1B21B90181EAAA176 Ref B: PDX31EDGE0117 Ref C: 2021-05-19T22:03:28Z' status: - code: 200 - message: OK + code: 202 + message: Accepted - request: body: null headers: Accept: - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:50:02 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AmwR9pn5RCVOha3xt3mW_zs; expires=Thu, 29-Apr-2021 21:50:02 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr_2VZMduAQrAGPw9r5jqadrnk8vusDr2HkkAZKAfdXLdvOUZIIE9kZdOI6QkY5NkmF8mEiemoADjEAmvD5IGDcDcvpXPgpdqLLVGtX4EL1VAhm_d0ZDHiYVZQEEOLA-QYbKfQxSgWKpJRD9xemjclrTwo5HPDyx7Pn3NhEB6Zv98gAA; - domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ests-server: - - 2.1.11562.10 - EUS ProdSlices - status: - code: 200 - message: OK -- request: - body: '{}' - headers: - Accept: - - application/json Accept-Encoding: - gzip, deflate CommandName: - - vmware hcx-enterprise-site create + - vmware private-cloud rotate-nsxt-password Connection: - keep-alive - Content-Length: - - '2' - Content-Type: - - application/json ParameterSetName: - - -g -c -n + - -g -c User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: PUT - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/myhcx?api-version=2021-01-01-preview + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateNsxtPassword/operationresults/f118cc32-dc4f-4cd6-83f4-d7fa001d21de?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/myhcx","name":"myhcx","properties":{"activationKey":"2494af8b56b246c59a5b218f73d70288","status":"Available"},"type":"Microsoft.AVS/privateClouds/hcxEnterpriseSites"}' + string: '' headers: cache-control: - no-cache - content-length: - - '379' content-type: - - application/json; charset=utf-8 + - text/html date: - - Tue, 30 Mar 2021 21:50:03 GMT + - Wed, 19 May 2021 22:03:58 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' + x-msedge-ref: + - 'Ref A: D42FF246FF324A5E86B322675B9627EA Ref B: PDX31EDGE0117 Ref C: 2021-05-19T22:03:59Z' status: - code: 200 - message: OK + code: 204 + message: No Content - request: body: null headers: @@ -1678,7 +1487,7 @@ interactions: x-client-Ver: - 1.2.3 method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' @@ -1694,13 +1503,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:50:04 GMT + - Wed, 19 May 2021 22:04:01 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AoL8MYVmzjtIrqkQYEa-j2E; expires=Thu, 29-Apr-2021 21:50:04 GMT; path=/; + - fpc=Anzs97_KdWhNl7O0pxCVUE0; expires=Fri, 18-Jun-2021 22:04:02 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrMSwBjgWkZFvjYb_LF7RSPnXNb_2yjsQ6BahyJypn2cuTu9F1_OtS8YWRux5JVESlOmy66HeWr6NCsxIWI2AEr8lfjrmruzk-EOwmV6rm0f7rvsPkhQv9Si9mxEadvwLR36kz0s_kiXAG0By6ZS3xgz6tzZTJKe-Fb3GUHCn6ilEgAA; + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrhl9Yh4Du3r53AWtQGHx0_r9_yaUFasUqmWQUpWsC5nFYDm4rHcnEaxKv06wxvyids2dxBi80wCkyOttET9T9abR6LBJKyCP4nup2WcCKGqOYJdAuenutLI7Q2coxLwNQL4HbcarSf3_leQkv0-qub5tssoSruSZ8nzLYtv_vzFcgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -1709,3261 +1518,60 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11562.10 - WUS2 ProdSlices + - 2.1.11722.21 - WUS2 ProdSlices status: code: 200 message: OK - request: - body: null + body: '{"properties": {"internet": "enabled"}}' headers: Accept: - application/json Accept-Encoding: - gzip, deflate CommandName: - - vmware hcx-enterprise-site list + - vmware private-cloud update Connection: - keep-alive + Content-Length: + - '39' + Content-Type: + - application/json ParameterSetName: - - -g -c + - -g -n --internet User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites?api-version=2021-01-01-preview + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/myhcx","name":"myhcx","properties":{"activationKey":"2494af8b56b246c59a5b218f73d70288","status":"Available"},"type":"Microsoft.AVS/privateClouds/hcxEnterpriseSites"}]}' + string: '{"error":{"code":"BadRequest","message":"Internet availability, cluster + size, identity sources, vcenter password or nsxt password cannot be updated + at the same time."}}' headers: cache-control: - no-cache content-length: - - '391' + - '168' content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:50:05 GMT + - Wed, 19 May 2021 22:04:04 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1195' + x-msedge-ref: + - 'Ref A: 547975E3C9D441219A57F8F5358E6F40 Ref B: PDX31EDGE0115 Ref C: 2021-05-19T22:04:04Z' status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:50:05 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AgkK82YtyGRFu6J6U2jVu8c; expires=Thu, 29-Apr-2021 21:50:05 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr0YLd8HaTaqY3xE4j8OGY5-iMxOJ8RrWVrikwoHvNhsZ5Jwo80qKZjN2P6MY0i8FswEEolik3JWkraf6YOTFeyiYx50EREqLjgBseF2v28UxqewBCJrzgDPtQb9j5ANr9KLkmeR1utbEqwXUsdqG9dDJunFgHhDNgnyOtxrL3a5kgAA; - domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ests-server: - - 2.1.11562.10 - NCUS ProdSlices - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware hcx-enterprise-site show - Connection: - - keep-alive - ParameterSetName: - - -g -c -n - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/myhcx?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/myhcx","name":"myhcx","properties":{"activationKey":"2494af8b56b246c59a5b218f73d70288","status":"Available"},"type":"Microsoft.AVS/privateClouds/hcxEnterpriseSites"}' - headers: - cache-control: - - no-cache - content-length: - - '379' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:50:06 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:50:07 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AhcrgBoQkuZEvPO90Mi3Iys; expires=Thu, 29-Apr-2021 21:50:07 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrO4IK7-fCAmT6tigzS315HTLnYmo01Vxr7iW-gmfgSptpYI_YH5lPF-beZUcQT44OodZPWPgt3Nu8n6fFanZmCKkObRNWx9oPBoIXl35ePADk-apey9y3k5JcUZCQ5s5kGf4aJ03wgtxw8SyJe-ZzcgFWbbGznYSOi87FIuotwzEgAA; - domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ests-server: - - 2.1.11562.10 - SCUS ProdSlices - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware hcx-enterprise-site delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -g -c -n - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/myhcx?api-version=2021-01-01-preview - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - content-type: - - text/html - date: - - Tue, 30 Mar 2021 21:50:08 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:50:08 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=Aqnat8_7frRLijJFXv_hv5E; expires=Thu, 29-Apr-2021 21:50:08 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrlKn_Nvw4CoEujGCQ7QNvLTD3V4R3qTN_aCff5dVixWfwXjm1FHtiNhe-gmnWu5A0BcV0_oz1Q2zUjEjM6H7MFrOHQ5lV7cIlPm6rNuDZ30c60RfiuatTBqXgDz7ftuQ3kolOUfjlU1mztK67f3HPs7m7oDRt0cq_CjYiqerdiGUgAA; - domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ests-server: - - 2.1.11562.10 - WUS2 ProdSlices - status: - code: 200 - message: OK -- request: - body: '{"properties": {"managementCluster": {"clusterSize": 3}, "internet": "Disabled"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud update - Connection: - - keep-alive - Content-Length: - - '81' - Content-Type: - - application/json - ParameterSetName: - - -g -n --cluster-size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost16.mp01.mock01.vmcp.vs.management"],"provisioningState":"Updating"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Updating","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' - headers: - azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a135a601-f99b-45a8-8810-010b90b3deae?api-version=2021-01-01-preview - cache-control: - - no-cache - content-length: - - '1584' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:50:09 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1197' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud update - Connection: - - keep-alive - ParameterSetName: - - -g -n --cluster-size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a135a601-f99b-45a8-8810-010b90b3deae?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a135a601-f99b-45a8-8810-010b90b3deae","name":"a135a601-f99b-45a8-8810-010b90b3deae","percentComplete":0,"startTime":"2021-03-30T21:50:06.2399435+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '385' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:50:20 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud update - Connection: - - keep-alive - ParameterSetName: - - -g -n --cluster-size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a135a601-f99b-45a8-8810-010b90b3deae?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a135a601-f99b-45a8-8810-010b90b3deae","name":"a135a601-f99b-45a8-8810-010b90b3deae","percentComplete":50,"startTime":"2021-03-30T21:50:06.2399435+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '386' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:50:30 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud update - Connection: - - keep-alive - ParameterSetName: - - -g -n --cluster-size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a135a601-f99b-45a8-8810-010b90b3deae?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a135a601-f99b-45a8-8810-010b90b3deae","name":"a135a601-f99b-45a8-8810-010b90b3deae","percentComplete":75,"startTime":"2021-03-30T21:50:06.2399435+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '386' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:50:40 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud update - Connection: - - keep-alive - ParameterSetName: - - -g -n --cluster-size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a135a601-f99b-45a8-8810-010b90b3deae?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a135a601-f99b-45a8-8810-010b90b3deae","name":"a135a601-f99b-45a8-8810-010b90b3deae","percentComplete":75,"startTime":"2021-03-30T21:50:06.2399435+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '386' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:50:50 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud update - Connection: - - keep-alive - ParameterSetName: - - -g -n --cluster-size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a135a601-f99b-45a8-8810-010b90b3deae?api-version=2021-01-01-preview - response: - body: - string: '{"endTime":"2021-03-30T21:50:54.7831923+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a135a601-f99b-45a8-8810-010b90b3deae","name":"a135a601-f99b-45a8-8810-010b90b3deae","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":3,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost17.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"},"startTime":"2021-03-30T21:50:06.2399435+00:00","status":"Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '1987' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:51:01 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud update - Connection: - - keep-alive - ParameterSetName: - - -g -n --cluster-size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":3,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost17.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' - headers: - cache-control: - - no-cache - content-length: - - '1539' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:51:01 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:51:02 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AjDma5aqRxJKr5AgyMjmysM; expires=Thu, 29-Apr-2021 21:51:02 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr-epNX4orCmGJrC5N2AncikEq3WnjK5soQnWC6mCyfLgfgmPaFFXoWZaGkjy39BlisZK6VxZjtMwnmVtDw7HxQjIIBOhSmeDw1OJSdwD_kiU53EnAFP5KFp_CPJiB0h9r7LCbaAz9T7z46xUtB3dAhqgBsbBEYAaq6WZKKdQbnEUgAA; - domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ests-server: - - 2.1.11562.10 - SCUS ProdSlices - status: - code: 200 - message: OK -- request: - body: '{"properties": {"internet": "enabled"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud update - Connection: - - keep-alive - Content-Length: - - '39' - Content-Type: - - application/json - ParameterSetName: - - -g -n --internet - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":3,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost17.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Updating","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' - headers: - azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/e3964234-061a-4fdc-a912-b164c626d2e6?api-version=2021-01-01-preview - cache-control: - - no-cache - content-length: - - '1538' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:51:04 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1194' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud update - Connection: - - keep-alive - ParameterSetName: - - -g -n --internet - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/e3964234-061a-4fdc-a912-b164c626d2e6?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/e3964234-061a-4fdc-a912-b164c626d2e6","name":"e3964234-061a-4fdc-a912-b164c626d2e6","percentComplete":11,"startTime":"2021-03-30T21:51:00.7330909+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '386' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:51:13 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud update - Connection: - - keep-alive - ParameterSetName: - - -g -n --internet - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/e3964234-061a-4fdc-a912-b164c626d2e6?api-version=2021-01-01-preview - response: - body: - string: '{"endTime":"2021-03-30T21:51:20.0840204+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/e3964234-061a-4fdc-a912-b164c626d2e6","name":"e3964234-061a-4fdc-a912-b164c626d2e6","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"identitySources":[],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":3,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost17.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"},"startTime":"2021-03-30T21:51:00.7330909+00:00","status":"Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '1986' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:51:25 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud update - Connection: - - keep-alive - ParameterSetName: - - -g -n --internet - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"identitySources":[],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":3,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost17.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' - headers: - cache-control: - - no-cache - content-length: - - '1538' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:51:25 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:51:25 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=ArTlReUXxQ9InR-RnunU_5k; expires=Thu, 29-Apr-2021 21:51:26 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrjIQZCGeB4D-Ma5JM5oA2Ox4XWpQXSrzL57-wPtWGeg33YSN8w78dhJolwAnJHgKLFJM2gNQB_Pv2_2Z3-nwpM4uuvthUY_8alxvxwPsul0hW0CDNKd1gGm2TR73-WlKiAi5dI-AVLEJqHHuTA5p7aAV8uS1gTUMGibYX_jip1nAgAA; - domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ests-server: - - 2.1.11562.10 - EUS ProdSlices - status: - code: 200 - message: OK -- request: - body: '{}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware authorization create - Connection: - - keep-alive - Content-Length: - - '2' - Content-Type: - - application/json - ParameterSetName: - - -g -c -n - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: PUT - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/authorizations/myauthname?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/authorizations/myauthname","name":"myauthname","properties":{"expressRouteAuthorizationId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/authorizations/avs_resource_myauthname","expressRouteAuthorizationKey":"f667dab8-6414-471c-bff7-310c7678e33a","provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/authorizations"}' - headers: - cache-control: - - no-cache - content-length: - - '647' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:51:27 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:51:27 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=Ar0o_wkcl_VKv95jV2LXwkQ; expires=Thu, 29-Apr-2021 21:51:28 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr5wlzy7L-FqGC6OGqG9j6iQtK_XYp9zkIucaPjzOnD3vfG0dUbGvK-6HjRQX3pqMHMkJSwCk3TlxK2obWp4Brpu5xwd2Aii7hBQyiGUkfmzUwN0KwbEVplHWohgZSGjEcNuMChLlu8e1g0ZFuO-Cu4KSNEljeqj6KUvZ9qUTGnyQgAA; - domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ests-server: - - 2.1.11562.10 - SCUS ProdSlices - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware authorization delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -g -c -n - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/authorizations/myauthname?api-version=2021-01-01-preview - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - content-type: - - text/html - date: - - Tue, 30 Mar 2021 21:51:28 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14998' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:51:29 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=ArT1Yt8h2XFFv16RTH3Jh_o; expires=Thu, 29-Apr-2021 21:51:29 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrELch0l4p4G1CU6pwCkVGlSRn-kcI9inZdIPkO7XQLIVdqAz3CrvCr_llnzhi7YR--aqwho8ZjDAiGoqsCu39GrASe9txorMjrzFwEzGwqc4YIoICkdzaY-ea4urjnh-HhoOUERnTKqDT5S8nynwrTXy_OnNdFdfS8nnsRRGx0lUgAA; - domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ests-server: - - 2.1.11562.10 - SCUS ProdSlices - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud addidentitysource - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --alias --domain --base-user-dn --base-group-dn --primary-server - --username --password - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"identitySources":[],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":3,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost17.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' - headers: - cache-control: - - no-cache - content-length: - - '1538' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:51:30 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"location": "centralus", "tags": {}, "sku": {"name": "av20"}, "properties": - {"managementCluster": {"clusterSize": 3}, "internet": "Enabled", "identitySources": - [{"name": "groupName", "alias": "groupAlias", "domain": "domain", "baseUserDN": - "ou=baseUser", "baseGroupDN": "ou=baseGroup", "primaryServer": "ldaps://1.1.1.1:636", - "ssl": "Disabled", "username": "someone", "password": "something"}], "circuit": - {}, "networkBlock": "192.168.48.0/22"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud addidentitysource - Connection: - - keep-alive - Content-Length: - - '446' - Content-Type: - - application/json - ParameterSetName: - - -g -c -n --alias --domain --base-user-dn --base-group-dn --primary-server - --username --password - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: PUT - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"identitySources":[{"alias":"groupAlias","baseGroupDN":"ou=baseGroup","baseUserDN":"ou=baseUser","domain":"domain","name":"groupName","primaryServer":"ldaps://1.1.1.1:636/","ssl":"Disabled"}],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":3,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost17.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Updating","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' - headers: - azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/509ace65-1e1e-41c8-aca9-42b04016f1f2?api-version=2021-01-01-preview - cache-control: - - no-cache - content-length: - - '1708' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:51:31 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud addidentitysource - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --alias --domain --base-user-dn --base-group-dn --primary-server - --username --password - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/509ace65-1e1e-41c8-aca9-42b04016f1f2?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/509ace65-1e1e-41c8-aca9-42b04016f1f2","name":"509ace65-1e1e-41c8-aca9-42b04016f1f2","percentComplete":10,"startTime":"2021-03-30T21:51:27.9213166+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '386' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:51:42 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud addidentitysource - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --alias --domain --base-user-dn --base-group-dn --primary-server - --username --password - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/509ace65-1e1e-41c8-aca9-42b04016f1f2?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/509ace65-1e1e-41c8-aca9-42b04016f1f2","name":"509ace65-1e1e-41c8-aca9-42b04016f1f2","percentComplete":50,"startTime":"2021-03-30T21:51:27.9213166+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '386' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:51:52 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud addidentitysource - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --alias --domain --base-user-dn --base-group-dn --primary-server - --username --password - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/509ace65-1e1e-41c8-aca9-42b04016f1f2?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/509ace65-1e1e-41c8-aca9-42b04016f1f2","name":"509ace65-1e1e-41c8-aca9-42b04016f1f2","percentComplete":100,"startTime":"2021-03-30T21:51:27.9213166+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '387' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:52:02 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud addidentitysource - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --alias --domain --base-user-dn --base-group-dn --primary-server - --username --password - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/509ace65-1e1e-41c8-aca9-42b04016f1f2?api-version=2021-01-01-preview - response: - body: - string: '{"endTime":"2021-03-30T21:51:27.9213166+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/509ace65-1e1e-41c8-aca9-42b04016f1f2","name":"509ace65-1e1e-41c8-aca9-42b04016f1f2","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"identitySources":[{"alias":"groupAlias","baseGroupDN":"ou=baseGroup","baseUserDN":"ou=baseUser","domain":"domain","name":"groupName","primaryServer":"ldaps://1.1.1.1:636/","ssl":"Disabled"}],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":3,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost17.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"},"startTime":"2021-03-30T21:51:27.9213166+00:00","status":"Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '2157' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:52:13 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud addidentitysource - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --alias --domain --base-user-dn --base-group-dn --primary-server - --username --password - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"identitySources":[{"alias":"groupAlias","baseGroupDN":"ou=baseGroup","baseUserDN":"ou=baseUser","domain":"domain","name":"groupName","primaryServer":"ldaps://1.1.1.1:636/","ssl":"Disabled"}],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":3,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost17.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' - headers: - cache-control: - - no-cache - content-length: - - '1709' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:52:13 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:52:15 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AgU2GnkPrpVAguFqgpK3MLA; expires=Thu, 29-Apr-2021 21:52:15 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrBnlIOVH5WTOOMZ5bxcHP00H8B48fD3cgl6wOy-HhJGX2k8THn3sj0I3F5b5NQsmhPtG0SE0H-262arCt_mHJTtLd8AvE6Bwy5K6SV5vB77SMNocztNFTV8ZhiHVbgnQxZbi8C7vPwiuQLh57U2dJSvYBsAWxNbKtyUBwCdCfMRwgAA; - domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ests-server: - - 2.1.11562.10 - EUS ProdSlices - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud deleteidentitysource - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --alias --domain - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"identitySources":[{"alias":"groupAlias","baseGroupDN":"ou=baseGroup","baseUserDN":"ou=baseUser","domain":"domain","name":"groupName","primaryServer":"ldaps://1.1.1.1:636/","ssl":"Disabled"}],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":3,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost17.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' - headers: - cache-control: - - no-cache - content-length: - - '1709' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:52:16 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"location": "centralus", "tags": {}, "sku": {"name": "av20"}, "properties": - {"managementCluster": {"clusterSize": 3}, "internet": "Enabled", "identitySources": - [], "circuit": {}, "networkBlock": "192.168.48.0/22"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud deleteidentitysource - Connection: - - keep-alive - Content-Length: - - '215' - Content-Type: - - application/json - ParameterSetName: - - -g -c -n --alias --domain - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: PUT - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"identitySources":[{"alias":"groupAlias","baseGroupDN":"ou=baseGroup","baseUserDN":"ou=baseUser","domain":"domain","name":"groupName","primaryServer":"ldaps://1.1.1.1:636/","ssl":"Disabled"}],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":3,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost17.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Updating","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' - headers: - azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/1faf9e7b-aeaa-4e50-875f-853f28d311f4?api-version=2021-01-01-preview - cache-control: - - no-cache - content-length: - - '1708' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:52:16 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud deleteidentitysource - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --alias --domain - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/1faf9e7b-aeaa-4e50-875f-853f28d311f4?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/1faf9e7b-aeaa-4e50-875f-853f28d311f4","name":"1faf9e7b-aeaa-4e50-875f-853f28d311f4","percentComplete":10,"startTime":"2021-03-30T21:52:13.4251577+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '386' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:52:26 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud deleteidentitysource - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --alias --domain - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/1faf9e7b-aeaa-4e50-875f-853f28d311f4?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/1faf9e7b-aeaa-4e50-875f-853f28d311f4","name":"1faf9e7b-aeaa-4e50-875f-853f28d311f4","percentComplete":100,"startTime":"2021-03-30T21:52:13.4251577+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '387' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:52:38 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud deleteidentitysource - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --alias --domain - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/1faf9e7b-aeaa-4e50-875f-853f28d311f4?api-version=2021-01-01-preview - response: - body: - string: '{"endTime":"2021-03-30T21:52:13.4251577+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/1faf9e7b-aeaa-4e50-875f-853f28d311f4","name":"1faf9e7b-aeaa-4e50-875f-853f28d311f4","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"identitySources":[],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":3,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost17.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"},"startTime":"2021-03-30T21:52:13.4251577+00:00","status":"Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '1986' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:52:48 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud deleteidentitysource - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --alias --domain - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"identitySources":[],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":3,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost17.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' - headers: - cache-control: - - no-cache - content-length: - - '1538' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:52:48 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:52:49 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=Ar-o7BxbACxCmTAJLB5LEJw; expires=Thu, 29-Apr-2021 21:52:50 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrMJDm8QWGpL4cYF7TYVQ_p9z9Sr0Pdu_PAxU2Kg4nX70g3KEtRtAu1179O5H6Ac_9Z8ZvirAwBDs1WVI6Yy33xsaVj2hxrQB5tbvgeCoOEJ9hqKm2NFaGa0V_QMjMLzKRJNbeXNi_0eXq0fNb7fZPHd0pXi9yu1zzd0OEsClCFaEgAA; - domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ests-server: - - 2.1.11562.10 - EUS ProdSlices - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster list - Connection: - - keep-alive - ParameterSetName: - - -g -c - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters?api-version=2021-01-01-preview - response: - body: - string: '{"value":[]}' - headers: - cache-control: - - no-cache - content-length: - - '12' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:52:50 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:52:51 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=Aop1sODU-vpIuyjNc2E2HSY; expires=Thu, 29-Apr-2021 21:52:51 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrvQ3fj_hkzjd3NqviFuCFkeT8J7F2t4gx_iNs-2xCojbUTchhsEUnewmVAWT_nbmpSiaHrlnJpUtRj42D-7xZl_VKjVRtaMCUl0_qEYLrWgHtETYLcXP81OGMBNMcVWUwqy3br6V-BhmmbSBVYfZvnfGfpnpTna7hMBZlREeGE9EgAA; - domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ests-server: - - 2.1.11562.10 - NCUS ProdSlices - status: - code: 200 - message: OK -- request: - body: '{"sku": {"name": "av20"}, "properties": {"clusterSize": 3}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster create - Connection: - - keep-alive - Content-Length: - - '59' - Content-Type: - - application/json - ParameterSetName: - - -g -c -n --sku --size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: PUT - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":3,"hosts":["gp-fakehost29.mp01.mock01.vmcp.vs.management","gp-fakehost30.mp01.mock01.vmcp.vs.management","gp-fakehost25.mp01.mock01.vmcp.vs.management"],"provisioningState":"Building"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"}' - headers: - azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/758e8275-14ad-41e0-a1fb-e5fd60879b2b?api-version=2021-01-01-preview - cache-control: - - no-cache - content-length: - - '531' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:52:56 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster create - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --sku --size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/758e8275-14ad-41e0-a1fb-e5fd60879b2b?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/758e8275-14ad-41e0-a1fb-e5fd60879b2b","name":"758e8275-14ad-41e0-a1fb-e5fd60879b2b","percentComplete":0,"startTime":"2021-03-30T21:52:53.3162776+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '405' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:53:07 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster create - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --sku --size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/758e8275-14ad-41e0-a1fb-e5fd60879b2b?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/758e8275-14ad-41e0-a1fb-e5fd60879b2b","name":"758e8275-14ad-41e0-a1fb-e5fd60879b2b","percentComplete":50,"startTime":"2021-03-30T21:52:53.3162776+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '406' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:53:17 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster create - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --sku --size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/758e8275-14ad-41e0-a1fb-e5fd60879b2b?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/758e8275-14ad-41e0-a1fb-e5fd60879b2b","name":"758e8275-14ad-41e0-a1fb-e5fd60879b2b","percentComplete":0,"startTime":"2021-03-30T21:52:53.3162776+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '405' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:53:28 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster create - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --sku --size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/758e8275-14ad-41e0-a1fb-e5fd60879b2b?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/758e8275-14ad-41e0-a1fb-e5fd60879b2b","name":"758e8275-14ad-41e0-a1fb-e5fd60879b2b","percentComplete":75,"startTime":"2021-03-30T21:52:53.3162776+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '406' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:53:38 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster create - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --sku --size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/758e8275-14ad-41e0-a1fb-e5fd60879b2b?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/758e8275-14ad-41e0-a1fb-e5fd60879b2b","name":"758e8275-14ad-41e0-a1fb-e5fd60879b2b","percentComplete":75,"startTime":"2021-03-30T21:52:53.3162776+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '406' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:53:48 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster create - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --sku --size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/758e8275-14ad-41e0-a1fb-e5fd60879b2b?api-version=2021-01-01-preview - response: - body: - string: '{"endTime":"2021-03-30T21:53:44.7518958+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/758e8275-14ad-41e0-a1fb-e5fd60879b2b","name":"758e8275-14ad-41e0-a1fb-e5fd60879b2b","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":3,"hosts":["gp-fakehost29.mp01.mock01.vmcp.vs.management","gp-fakehost30.mp01.mock01.vmcp.vs.management","gp-fakehost25.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"},"startTime":"2021-03-30T21:52:53.3162776+00:00","status":"Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '1000' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:53:59 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster create - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --sku --size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":3,"hosts":["gp-fakehost29.mp01.mock01.vmcp.vs.management","gp-fakehost30.mp01.mock01.vmcp.vs.management","gp-fakehost25.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"}' - headers: - cache-control: - - no-cache - content-length: - - '532' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:53:59 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:54:00 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AimJqdLZJ45NkHxfy_LGF9c; expires=Thu, 29-Apr-2021 21:54:01 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrCLldTU7IlhNDFN7RuiAvC6c9MQEHBkFm5tKbUCcTpV7PynsjFpxx-JmdpSt6qZo-M86_Mlgutyau9Bx1Ojswcg4S3HRlWi7WQMPr_K81e5wT8B277cthyuQJdFOIQJsv8cGC-Dgg4FrZZbiVVQyyLaYp1jH40tHGRn7ZcZjqvaYgAA; - domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ests-server: - - 2.1.11562.10 - WUS2 ProdSlices - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster list - Connection: - - keep-alive - ParameterSetName: - - -g -c - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters?api-version=2021-01-01-preview - response: - body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":3,"hosts":["gp-fakehost29.mp01.mock01.vmcp.vs.management","gp-fakehost30.mp01.mock01.vmcp.vs.management","gp-fakehost25.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"}]}' - headers: - cache-control: - - no-cache - content-length: - - '544' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:54:02 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:54:02 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AmWPcW7LzztLpudSBwoe_CI; expires=Thu, 29-Apr-2021 21:54:03 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr0PcgztyMXcFn5qiJsefTW4VtFSe4OR3Y68Y2IKg2I6RyB1Jisos-Kv8stcr96hXzZnCR2qHIKblkGs12P9xhBHaS6acvdgr7-MtCJ7udYNPVoWfmAP8zDcYDFPMudZxVgBmYD6XmOS4GO8lYyHz7xz-VQILwoTkQhWfQwdyL8xMgAA; - domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ests-server: - - 2.1.11562.10 - EUS ProdSlices - status: - code: 200 - message: OK -- request: - body: '{"properties": {"clusterSize": 4}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster update - Connection: - - keep-alive - Content-Length: - - '34' - Content-Type: - - application/json - ParameterSetName: - - -g -c -n --size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":4,"hosts":["gp-fakehost29.mp01.mock01.vmcp.vs.management","gp-fakehost30.mp01.mock01.vmcp.vs.management","gp-fakehost25.mp01.mock01.vmcp.vs.management","gp-fakehost42.mp01.mock01.vmcp.vs.management"],"provisioningState":"Updating"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"}' - headers: - azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/cb3f24f2-df30-41b0-b9c7-138e926ad340?api-version=2021-01-01-preview - cache-control: - - no-cache - content-length: - - '578' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:54:06 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster update - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/cb3f24f2-df30-41b0-b9c7-138e926ad340?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/cb3f24f2-df30-41b0-b9c7-138e926ad340","name":"cb3f24f2-df30-41b0-b9c7-138e926ad340","percentComplete":0,"startTime":"2021-03-30T21:54:02.8733969+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '405' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:54:17 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster update - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/cb3f24f2-df30-41b0-b9c7-138e926ad340?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/cb3f24f2-df30-41b0-b9c7-138e926ad340","name":"cb3f24f2-df30-41b0-b9c7-138e926ad340","percentComplete":50,"startTime":"2021-03-30T21:54:02.8733969+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '406' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:54:27 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster update - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/cb3f24f2-df30-41b0-b9c7-138e926ad340?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/cb3f24f2-df30-41b0-b9c7-138e926ad340","name":"cb3f24f2-df30-41b0-b9c7-138e926ad340","percentComplete":0,"startTime":"2021-03-30T21:54:02.8733969+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '405' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:54:38 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster update - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/cb3f24f2-df30-41b0-b9c7-138e926ad340?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/cb3f24f2-df30-41b0-b9c7-138e926ad340","name":"cb3f24f2-df30-41b0-b9c7-138e926ad340","percentComplete":75,"startTime":"2021-03-30T21:54:02.8733969+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '406' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:54:49 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster update - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/cb3f24f2-df30-41b0-b9c7-138e926ad340?api-version=2021-01-01-preview - response: - body: - string: '{"endTime":"2021-03-30T21:54:44.7561278+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/cb3f24f2-df30-41b0-b9c7-138e926ad340","name":"cb3f24f2-df30-41b0-b9c7-138e926ad340","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":4,"hosts":["gp-fakehost29.mp01.mock01.vmcp.vs.management","gp-fakehost30.mp01.mock01.vmcp.vs.management","gp-fakehost25.mp01.mock01.vmcp.vs.management","gp-fakehost42.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"},"startTime":"2021-03-30T21:54:02.8733969+00:00","status":"Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '1047' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:54:59 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster update - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":4,"hosts":["gp-fakehost29.mp01.mock01.vmcp.vs.management","gp-fakehost30.mp01.mock01.vmcp.vs.management","gp-fakehost25.mp01.mock01.vmcp.vs.management","gp-fakehost42.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"}' - headers: - cache-control: - - no-cache - content-length: - - '579' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:54:59 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:55:00 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AkprbcRtQwBCpYG7Eq4AsGU; expires=Thu, 29-Apr-2021 21:55:01 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevre3m8rMKtjgZUALa6T-v7LN6le__ZhFlZaIqI-FdzDxhMZ1uV7P3m5tUfZM_k3wcXsAbbsOJqSbz0--Q6G400woRsvJEkvTaLU7iqzhg21dlGlDh8re5EEJJft70VuvQQ4qJTwrtxsOLkO5PMDNc7_HPCLMpM4jhB7EmOOUlR1CIgAA; - domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ests-server: - - 2.1.11562.10 - WUS2 ProdSlices - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -g -c -n - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":4,"hosts":["gp-fakehost29.mp01.mock01.vmcp.vs.management","gp-fakehost30.mp01.mock01.vmcp.vs.management","gp-fakehost25.mp01.mock01.vmcp.vs.management","gp-fakehost42.mp01.mock01.vmcp.vs.management"],"provisioningState":"Deleting"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"}' - headers: - azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/a2da9257-39d6-4748-9ba4-6471b9aa996d?api-version=2021-01-01-preview - cache-control: - - no-cache - content-length: - - '578' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:55:02 GMT - expires: - - '-1' - location: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationresults/a2da9257-39d6-4748-9ba4-6471b9aa996d?api-version=2021-01-01-preview - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14997' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster delete - Connection: - - keep-alive - ParameterSetName: - - -g -c -n - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/a2da9257-39d6-4748-9ba4-6471b9aa996d?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/a2da9257-39d6-4748-9ba4-6471b9aa996d","name":"a2da9257-39d6-4748-9ba4-6471b9aa996d","percentComplete":0,"startTime":"2021-03-30T21:54:59.0873589+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '405' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:55:13 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster delete - Connection: - - keep-alive - ParameterSetName: - - -g -c -n - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/a2da9257-39d6-4748-9ba4-6471b9aa996d?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/a2da9257-39d6-4748-9ba4-6471b9aa996d","name":"a2da9257-39d6-4748-9ba4-6471b9aa996d","percentComplete":50,"startTime":"2021-03-30T21:54:59.0873589+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '406' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:55:23 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster delete - Connection: - - keep-alive - ParameterSetName: - - -g -c -n - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/a2da9257-39d6-4748-9ba4-6471b9aa996d?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/a2da9257-39d6-4748-9ba4-6471b9aa996d","name":"a2da9257-39d6-4748-9ba4-6471b9aa996d","percentComplete":50,"startTime":"2021-03-30T21:54:59.0873589+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '406' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:55:34 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster delete - Connection: - - keep-alive - ParameterSetName: - - -g -c -n - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/a2da9257-39d6-4748-9ba4-6471b9aa996d?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/a2da9257-39d6-4748-9ba4-6471b9aa996d","name":"a2da9257-39d6-4748-9ba4-6471b9aa996d","percentComplete":75,"startTime":"2021-03-30T21:54:59.0873589+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '406' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:55:44 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster delete - Connection: - - keep-alive - ParameterSetName: - - -g -c -n - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/a2da9257-39d6-4748-9ba4-6471b9aa996d?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/a2da9257-39d6-4748-9ba4-6471b9aa996d","name":"a2da9257-39d6-4748-9ba4-6471b9aa996d","percentComplete":75,"startTime":"2021-03-30T21:54:59.0873589+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '406' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:55:54 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster delete - Connection: - - keep-alive - ParameterSetName: - - -g -c -n - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/a2da9257-39d6-4748-9ba4-6471b9aa996d?api-version=2021-01-01-preview - response: - body: - string: '{"endTime":"2021-03-30T21:55:54.7814702+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/a2da9257-39d6-4748-9ba4-6471b9aa996d","name":"a2da9257-39d6-4748-9ba4-6471b9aa996d","percentComplete":100,"startTime":"2021-03-30T21:54:59.0873589+00:00","status":"Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '454' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:56:05 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK + code: 400 + message: Bad Request version: 1 diff --git a/src/vmware/azext_vmware/tests/latest/test_hcx_scenario.py b/src/vmware/azext_vmware/tests/latest/test_hcx_scenario.py new file mode 100644 index 00000000000..29b0793d0a1 --- /dev/null +++ b/src/vmware/azext_vmware/tests/latest/test_hcx_scenario.py @@ -0,0 +1,46 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +import os +import unittest + +from azure.cli.testsdk import (ScenarioTest, ResourceGroupPreparer) +from msrestazure.azure_exceptions import CloudError + + +class VmwareHcxScenarioTest(ScenarioTest): + def setUp(self): + # https://vcrpy.readthedocs.io/en/latest/configuration.html#request-matching + self.vcr.match_on = ['scheme', 'method', 'path', 'query'] # not 'host', 'port' + super(VmwareHcxScenarioTest, self).setUp() + + @ResourceGroupPreparer(name_prefix='cli_test_vmware_hcx') + def test_vmware_hcx(self): + + # create a private cloud + self.cmd('vmware private-cloud create -g {rg} -n {privatecloud} --location {loc} --sku av20 --cluster-size 4 --network-block 192.168.48.0/22 --nsxt-password 5rqdLj4GF3cePUe6( --vcenter-password UpfBXae9ZquZSDXk( --accept-eula') + + count = len(self.cmd('vmware private-cloud list -g {rg}').get_output_in_json()) + self.assertEqual(count, 1, 'private cloud count expected to be 1') + + # hcx-enterprise-site list should report 0 + count = len(self.cmd('vmware hcx-enterprise-site list -g {rg} -c {privatecloud}').get_output_in_json()) + self.assertEqual(count, 0, 'hcx-enterprise-site count expected to be 0') + + # create authorization + self.cmd('vmware hcx-enterprise-site create -g {rg} -c {privatecloud} -n myhcx') + + # hcx-enterprise-site list should report 1 + count = len(self.cmd('vmware hcx-enterprise-site list -g {rg} -c {privatecloud}').get_output_in_json()) + self.assertEqual(count, 1, 'hcx-enterprise-site count expected to be 0') + + self.cmd('vmware hcx-enterprise-site show -g {rg} -c {privatecloud} -n myhcx') + + self.cmd('vmware hcx-enterprise-site delete -g {rg} -c {privatecloud} -n myhcx') + + # bug 7470537 + # hcx-enterprise-site list should report 0 + # count = len(self.cmd('vmware hcx-enterprise-site list -g {rg} -c {privatecloud}').get_output_in_json()) + # self.assertEqual(count, 0, 'hcx-enterprise-site count expected to be 0') diff --git a/src/vmware/azext_vmware/tests/latest/test_vmware_scenario.py b/src/vmware/azext_vmware/tests/latest/test_vmware_scenario.py index 83ae0fde266..57f0e4f14b7 100644 --- a/src/vmware/azext_vmware/tests/latest/test_vmware_scenario.py +++ b/src/vmware/azext_vmware/tests/latest/test_vmware_scenario.py @@ -19,8 +19,7 @@ def setUp(self): @ResourceGroupPreparer(name_prefix='cli_test_vmware') def test_vmware(self): self.kwargs.update({ - # 'loc': 'westcentralus', # jason - 'loc': 'eastus', # vamsi + 'loc': 'westcentralus', 'privatecloud': 'cloud1', 'cluster': 'pycluster1' }) @@ -57,28 +56,8 @@ def test_vmware(self): self.cmd('vmware private-cloud rotate-vcenter-password -g {rg} -c {privatecloud}') self.cmd('vmware private-cloud rotate-nsxt-password -g {rg} -c {privatecloud}') - # hcx-enterprise-site list should report 0 - count = len(self.cmd('vmware hcx-enterprise-site list -g {rg} -c {privatecloud}').get_output_in_json()) - self.assertEqual(count, 0, 'hcx-enterprise-site count expected to be 0') - - # create authorization - self.cmd('vmware hcx-enterprise-site create -g {rg} -c {privatecloud} -n myhcx') - - # hcx-enterprise-site list should report 1 - count = len(self.cmd('vmware hcx-enterprise-site list -g {rg} -c {privatecloud}').get_output_in_json()) - self.assertEqual(count, 1, 'hcx-enterprise-site count expected to be 0') - - self.cmd('vmware hcx-enterprise-site show -g {rg} -c {privatecloud} -n myhcx') - - self.cmd('vmware hcx-enterprise-site delete -g {rg} -c {privatecloud} -n myhcx') - - # bug 7470537 - # hcx-enterprise-site list should report 0 - # count = len(self.cmd('vmware hcx-enterprise-site list -g {rg} -c {privatecloud}').get_output_in_json()) - # self.assertEqual(count, 0, 'hcx-enterprise-site count expected to be 0') - # update private cloud to changed default cluster size - self.cmd('vmware private-cloud update -g {rg} -n {privatecloud} --cluster-size 3') + # self.cmd('vmware private-cloud update -g {rg} -n {privatecloud} --cluster-size 3') # update private cloud to enable internet self.cmd('vmware private-cloud update -g {rg} -n {privatecloud} --internet enabled') diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_addons_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_addons_operations.py index 15e913aa710..9423e350061 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_addons_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_addons_operations.py @@ -47,7 +47,7 @@ def list( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.AddonList"]: """List addons in a private cloud. @@ -124,7 +124,7 @@ async def get( resource_group_name: str, private_cloud_name: str, addon_name: str, - **kwargs + **kwargs: Any ) -> "_models.Addon": """Get an addon by name in a private cloud. @@ -189,7 +189,7 @@ async def _create_or_update_initial( private_cloud_name: str, addon_name: str, properties: Optional["_models.AddonProperties"] = None, - **kwargs + **kwargs: Any ) -> "_models.Addon": cls = kwargs.pop('cls', None) # type: ClsType["_models.Addon"] error_map = { @@ -250,7 +250,7 @@ async def begin_create_or_update( private_cloud_name: str, addon_name: str, properties: Optional["_models.AddonProperties"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Addon"]: """Create or update a addon in a private cloud. @@ -266,8 +266,8 @@ async def begin_create_or_update( :type properties: ~avs_client.models.AddonProperties :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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 Addon or the result of cls(response) @@ -327,7 +327,7 @@ async def _delete_initial( resource_group_name: str, private_cloud_name: str, addon_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -373,7 +373,7 @@ async def begin_delete( resource_group_name: str, private_cloud_name: str, addon_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a addon in a private cloud. @@ -387,8 +387,8 @@ async def begin_delete( :type addon_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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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) diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_authorizations_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_authorizations_operations.py index f9a62527778..33a79cc2af5 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_authorizations_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_authorizations_operations.py @@ -47,7 +47,7 @@ def list( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ExpressRouteAuthorizationList"]: """List ExpressRoute Circuit Authorizations in a private cloud. @@ -124,7 +124,7 @@ async def get( resource_group_name: str, private_cloud_name: str, authorization_name: str, - **kwargs + **kwargs: Any ) -> "_models.ExpressRouteAuthorization": """Get an ExpressRoute Circuit Authorization by name in a private cloud. @@ -188,7 +188,7 @@ async def _create_or_update_initial( resource_group_name: str, private_cloud_name: str, authorization_name: str, - **kwargs + **kwargs: Any ) -> "_models.ExpressRouteAuthorization": cls = kwargs.pop('cls', None) # type: ClsType["_models.ExpressRouteAuthorization"] error_map = { @@ -248,7 +248,7 @@ async def begin_create_or_update( resource_group_name: str, private_cloud_name: str, authorization_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ExpressRouteAuthorization"]: """Create or update an ExpressRoute Circuit Authorization in a private cloud. @@ -262,8 +262,8 @@ async def begin_create_or_update( :type authorization_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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 ExpressRouteAuthorization or the result of cls(response) @@ -322,7 +322,7 @@ async def _delete_initial( resource_group_name: str, private_cloud_name: str, authorization_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -368,7 +368,7 @@ async def begin_delete( resource_group_name: str, private_cloud_name: str, authorization_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete an ExpressRoute Circuit Authorization in a private cloud. @@ -382,8 +382,8 @@ async def begin_delete( :type authorization_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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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) diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_cloud_links_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_cloud_links_operations.py index 48a3c1579b8..4f0eeed8211 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_cloud_links_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_cloud_links_operations.py @@ -47,7 +47,7 @@ def list( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.CloudLinkList"]: """List cloud link in a private cloud. @@ -124,7 +124,7 @@ async def get( resource_group_name: str, private_cloud_name: str, cloud_link_name: str, - **kwargs + **kwargs: Any ) -> "_models.CloudLink": """Get an cloud link by name in a private cloud. @@ -189,7 +189,7 @@ async def _create_or_update_initial( private_cloud_name: str, cloud_link_name: str, linked_cloud: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.CloudLink": cls = kwargs.pop('cls', None) # type: ClsType["_models.CloudLink"] error_map = { @@ -250,7 +250,7 @@ async def begin_create_or_update( private_cloud_name: str, cloud_link_name: str, linked_cloud: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.CloudLink"]: """Create or update a cloud link in a private cloud. @@ -266,8 +266,8 @@ async def begin_create_or_update( :type linked_cloud: 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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 CloudLink or the result of cls(response) @@ -327,7 +327,7 @@ async def _delete_initial( resource_group_name: str, private_cloud_name: str, cloud_link_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -373,7 +373,7 @@ async def begin_delete( resource_group_name: str, private_cloud_name: str, cloud_link_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a cloud link in a private cloud. @@ -387,8 +387,8 @@ async def begin_delete( :type cloud_link_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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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) diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_clusters_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_clusters_operations.py index f12e9fe7717..36eb63d8af1 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_clusters_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_clusters_operations.py @@ -47,7 +47,7 @@ def list( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ClusterList"]: """List clusters in a private cloud. @@ -124,7 +124,7 @@ async def get( resource_group_name: str, private_cloud_name: str, cluster_name: str, - **kwargs + **kwargs: Any ) -> "_models.Cluster": """Get a cluster by name in a private cloud. @@ -190,7 +190,7 @@ async def _create_or_update_initial( cluster_name: str, sku: "_models.Sku", cluster_size: Optional[int] = None, - **kwargs + **kwargs: Any ) -> "_models.Cluster": cls = kwargs.pop('cls', None) # type: ClsType["_models.Cluster"] error_map = { @@ -252,7 +252,7 @@ async def begin_create_or_update( cluster_name: str, sku: "_models.Sku", cluster_size: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Cluster"]: """Create or update a cluster in a private cloud. @@ -270,8 +270,8 @@ async def begin_create_or_update( :type cluster_size: int :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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 Cluster or the result of cls(response) @@ -333,7 +333,7 @@ async def _update_initial( private_cloud_name: str, cluster_name: str, cluster_size: Optional[int] = None, - **kwargs + **kwargs: Any ) -> "_models.Cluster": cls = kwargs.pop('cls', None) # type: ClsType["_models.Cluster"] error_map = { @@ -394,7 +394,7 @@ async def begin_update( private_cloud_name: str, cluster_name: str, cluster_size: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Cluster"]: """Update a cluster in a private cloud. @@ -410,8 +410,8 @@ async def begin_update( :type cluster_size: int :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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 Cluster or the result of cls(response) @@ -471,7 +471,7 @@ async def _delete_initial( resource_group_name: str, private_cloud_name: str, cluster_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -517,7 +517,7 @@ async def begin_delete( resource_group_name: str, private_cloud_name: str, cluster_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a cluster in a private cloud. @@ -531,8 +531,8 @@ async def begin_delete( :type cluster_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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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) diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_datastores_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_datastores_operations.py index 929d0fa7815..1d82843d079 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_datastores_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_datastores_operations.py @@ -48,7 +48,7 @@ def list( resource_group_name: str, private_cloud_name: str, cluster_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DatastoreList"]: """List datastores in a private cloud cluster. @@ -129,7 +129,7 @@ async def get( private_cloud_name: str, cluster_name: str, datastore_name: str, - **kwargs + **kwargs: Any ) -> "_models.Datastore": """Get a datastore in a private cloud cluster. @@ -199,7 +199,7 @@ async def _create_or_update_initial( datastore_name: str, net_app_volume: Optional["_models.NetAppVolume"] = None, disk_pool_volume: Optional["_models.DiskPoolVolume"] = None, - **kwargs + **kwargs: Any ) -> "_models.Datastore": cls = kwargs.pop('cls', None) # type: ClsType["_models.Datastore"] error_map = { @@ -263,7 +263,7 @@ async def begin_create_or_update( datastore_name: str, net_app_volume: Optional["_models.NetAppVolume"] = None, disk_pool_volume: Optional["_models.DiskPoolVolume"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Datastore"]: """Create or update a datastore in a private cloud cluster. @@ -283,8 +283,8 @@ async def begin_create_or_update( :type disk_pool_volume: ~avs_client.models.DiskPoolVolume :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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 Datastore or the result of cls(response) @@ -348,7 +348,7 @@ async def _delete_initial( private_cloud_name: str, cluster_name: str, datastore_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -396,7 +396,7 @@ async def begin_delete( private_cloud_name: str, cluster_name: str, datastore_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a datastore in a private cloud cluster. @@ -412,8 +412,8 @@ async def begin_delete( :type datastore_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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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) diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_global_reach_connections_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_global_reach_connections_operations.py index 33c364be0ff..53bf3e1bad1 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_global_reach_connections_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_global_reach_connections_operations.py @@ -47,7 +47,7 @@ def list( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.GlobalReachConnectionList"]: """List global reach connections in a private cloud. @@ -124,7 +124,7 @@ async def get( resource_group_name: str, private_cloud_name: str, global_reach_connection_name: str, - **kwargs + **kwargs: Any ) -> "_models.GlobalReachConnection": """Get a global reach connection by name in a private cloud. @@ -190,7 +190,7 @@ async def _create_or_update_initial( global_reach_connection_name: str, authorization_key: Optional[str] = None, peer_express_route_circuit: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.GlobalReachConnection": cls = kwargs.pop('cls', None) # type: ClsType["_models.GlobalReachConnection"] error_map = { @@ -252,7 +252,7 @@ async def begin_create_or_update( global_reach_connection_name: str, authorization_key: Optional[str] = None, peer_express_route_circuit: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GlobalReachConnection"]: """Create or update a global reach connection in a private cloud. @@ -272,8 +272,8 @@ async def begin_create_or_update( :type peer_express_route_circuit: 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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 GlobalReachConnection or the result of cls(response) @@ -334,7 +334,7 @@ async def _delete_initial( resource_group_name: str, private_cloud_name: str, global_reach_connection_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -380,7 +380,7 @@ async def begin_delete( resource_group_name: str, private_cloud_name: str, global_reach_connection_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a global reach connection in a private cloud. @@ -394,8 +394,8 @@ async def begin_delete( :type global_reach_connection_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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) diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_hcx_enterprise_sites_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_hcx_enterprise_sites_operations.py index 6b492368b55..b7077fc376b 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_hcx_enterprise_sites_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_hcx_enterprise_sites_operations.py @@ -45,7 +45,7 @@ def list( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.HcxEnterpriseSiteList"]: """List HCX Enterprise Sites in a private cloud. @@ -122,7 +122,7 @@ async def get( resource_group_name: str, private_cloud_name: str, hcx_enterprise_site_name: str, - **kwargs + **kwargs: Any ) -> "_models.HcxEnterpriseSite": """Get an HCX Enterprise Site by name in a private cloud. @@ -186,7 +186,7 @@ async def create_or_update( resource_group_name: str, private_cloud_name: str, hcx_enterprise_site_name: str, - **kwargs + **kwargs: Any ) -> "_models.HcxEnterpriseSite": """Create or update an HCX Enterprise Site in a private cloud. @@ -261,7 +261,7 @@ async def delete( resource_group_name: str, private_cloud_name: str, hcx_enterprise_site_name: str, - **kwargs + **kwargs: Any ) -> None: """Delete an HCX Enterprise Site in a private cloud. diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_locations_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_locations_operations.py index 79f287671af..0aa93c924ff 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_locations_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_locations_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def check_trial_availability( self, location: str, - **kwargs + **kwargs: Any ) -> "_models.Trial": """Return trial status for subscription by region. @@ -97,7 +97,7 @@ async def check_trial_availability( async def check_quota_availability( self, location: str, - **kwargs + **kwargs: Any ) -> "_models.Quota": """Return quota for subscription by region. diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_operations.py index 4eeb73a6183..507c63fc576 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.OperationList"]: """Lists all of the available operations. diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_private_clouds_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_private_clouds_operations.py index 95c316c42bb..0608f5fb87f 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_private_clouds_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_private_clouds_operations.py @@ -46,7 +46,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PrivateCloudList"]: """List private clouds in a resource group. @@ -117,7 +117,7 @@ async def get_next(next_link=None): def list_in_subscription( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PrivateCloudList"]: """List private clouds in a subscription. @@ -187,7 +187,7 @@ async def get( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> "_models.PrivateCloud": """Get a private cloud. @@ -248,7 +248,7 @@ async def _create_or_update_initial( resource_group_name: str, private_cloud_name: str, private_cloud: "_models.PrivateCloud", - **kwargs + **kwargs: Any ) -> "_models.PrivateCloud": cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateCloud"] error_map = { @@ -305,7 +305,7 @@ async def begin_create_or_update( resource_group_name: str, private_cloud_name: str, private_cloud: "_models.PrivateCloud", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.PrivateCloud"]: """Create or update a private cloud. @@ -319,8 +319,8 @@ async def begin_create_or_update( :type private_cloud: ~avs_client.models.PrivateCloud :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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 PrivateCloud or the result of cls(response) @@ -378,7 +378,7 @@ async def _update_initial( resource_group_name: str, private_cloud_name: str, private_cloud_update: "_models.PrivateCloudUpdate", - **kwargs + **kwargs: Any ) -> "_models.PrivateCloud": cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateCloud"] error_map = { @@ -435,7 +435,7 @@ async def begin_update( resource_group_name: str, private_cloud_name: str, private_cloud_update: "_models.PrivateCloudUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.PrivateCloud"]: """Update a private cloud. @@ -449,8 +449,8 @@ async def begin_update( :type private_cloud_update: ~avs_client.models.PrivateCloudUpdate :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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 PrivateCloud or the result of cls(response) @@ -507,7 +507,7 @@ async def _delete_initial( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -551,7 +551,7 @@ async def begin_delete( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a private cloud. @@ -563,8 +563,8 @@ async def begin_delete( :type private_cloud_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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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) @@ -617,7 +617,7 @@ async def _rotate_vcenter_password_initial( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -661,7 +661,7 @@ async def begin_rotate_vcenter_password( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Rotate the vCenter password. @@ -673,8 +673,8 @@ async def begin_rotate_vcenter_password( :type private_cloud_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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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) @@ -727,7 +727,7 @@ async def _rotate_nsxt_password_initial( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -771,7 +771,7 @@ async def begin_rotate_nsxt_password( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Rotate the NSX-T Manager password. @@ -783,8 +783,8 @@ async def begin_rotate_nsxt_password( :type private_cloud_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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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) @@ -837,7 +837,7 @@ async def list_admin_credentials( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> "_models.AdminCredentials": """List the admin credentials for the private cloud. diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_cmdlets_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_cmdlets_operations.py index 9d6254f5e17..50f340fcd4e 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_cmdlets_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_cmdlets_operations.py @@ -46,7 +46,7 @@ def list( resource_group_name: str, private_cloud_name: str, script_package_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ScriptCmdletsList"]: """Return script cmdlet resources available for a private cloud to create a script execution resource on their Private Cloud. @@ -126,7 +126,7 @@ async def get( private_cloud_name: str, script_package_name: str, script_cmdlet_name: str, - **kwargs + **kwargs: Any ) -> "_models.ScriptCmdlet": """Return information about a script cmdlet resource in a specific package on a private cloud. diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_executions_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_executions_operations.py index 3a97811635f..bf302ecd17f 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_executions_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_executions_operations.py @@ -47,7 +47,7 @@ def list( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ScriptExecutionsList"]: """Get an script execution resource by name in a private cloud. @@ -124,7 +124,7 @@ async def get( resource_group_name: str, private_cloud_name: str, script_execution_name: str, - **kwargs + **kwargs: Any ) -> "_models.ScriptExecution": """Get an script execution resource by name in a private cloud. @@ -189,7 +189,7 @@ async def _create_or_update_initial( private_cloud_name: str, script_execution_name: str, script_execution: "_models.ScriptExecution", - **kwargs + **kwargs: Any ) -> "_models.ScriptExecution": cls = kwargs.pop('cls', None) # type: ClsType["_models.ScriptExecution"] error_map = { @@ -248,7 +248,7 @@ async def begin_create_or_update( private_cloud_name: str, script_execution_name: str, script_execution: "_models.ScriptExecution", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ScriptExecution"]: """Create or update a script execution resource in a private cloud. @@ -264,8 +264,8 @@ async def begin_create_or_update( :type script_execution: ~avs_client.models.ScriptExecution :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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 ScriptExecution or the result of cls(response) @@ -325,7 +325,7 @@ async def _delete_initial( resource_group_name: str, private_cloud_name: str, script_execution_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -371,7 +371,7 @@ async def begin_delete( resource_group_name: str, private_cloud_name: str, script_execution_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Cancel a ScriptExecution in a private cloud. @@ -385,8 +385,8 @@ async def begin_delete( :type script_execution_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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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) @@ -443,7 +443,7 @@ async def get_execution_logs( private_cloud_name: str, script_execution_name: str, script_output_stream_type: Optional[List[Union[str, "_models.ScriptOutputStreamType"]]] = None, - **kwargs + **kwargs: Any ) -> "_models.ScriptExecution": """Return the logs for a script execution resource. diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_packages_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_packages_operations.py index 930c65d4f16..e7322288107 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_packages_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_packages_operations.py @@ -45,7 +45,7 @@ def list( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ScriptPackagesList"]: """Return script packages available for a private cloud to run on their Private Cloud. @@ -120,7 +120,7 @@ async def get( resource_group_name: str, private_cloud_name: str, script_package_name: str, - **kwargs + **kwargs: Any ) -> "_models.ScriptPackage": """Return script package available to run on an Private Cloud. diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_workload_networks_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_workload_networks_operations.py index 15ef5e04b5c..62c7ed9ef8a 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_workload_networks_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_workload_networks_operations.py @@ -47,7 +47,7 @@ def list_segments( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.WorkloadNetworkSegmentsList"]: """List of segments in a private cloud workload network. @@ -124,7 +124,7 @@ async def get_segment( resource_group_name: str, private_cloud_name: str, segment_id: str, - **kwargs + **kwargs: Any ) -> "_models.WorkloadNetworkSegment": """Get a segment by id in a private cloud workload network. @@ -189,7 +189,7 @@ async def _create_segments_initial( private_cloud_name: str, segment_id: str, workload_network_segment: "_models.WorkloadNetworkSegment", - **kwargs + **kwargs: Any ) -> "_models.WorkloadNetworkSegment": cls = kwargs.pop('cls', None) # type: ClsType["_models.WorkloadNetworkSegment"] error_map = { @@ -248,7 +248,7 @@ async def begin_create_segments( private_cloud_name: str, segment_id: str, workload_network_segment: "_models.WorkloadNetworkSegment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WorkloadNetworkSegment"]: """Create a segment by id in a private cloud workload network. @@ -264,8 +264,8 @@ async def begin_create_segments( :type workload_network_segment: ~avs_client.models.WorkloadNetworkSegment :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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 WorkloadNetworkSegment or the result of cls(response) @@ -326,7 +326,7 @@ async def _update_segments_initial( private_cloud_name: str, segment_id: str, workload_network_segment: "_models.WorkloadNetworkSegment", - **kwargs + **kwargs: Any ) -> Optional["_models.WorkloadNetworkSegment"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WorkloadNetworkSegment"]] error_map = { @@ -383,7 +383,7 @@ async def begin_update_segments( private_cloud_name: str, segment_id: str, workload_network_segment: "_models.WorkloadNetworkSegment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WorkloadNetworkSegment"]: """Create or update a segment by id in a private cloud workload network. @@ -399,8 +399,8 @@ async def begin_update_segments( :type workload_network_segment: ~avs_client.models.WorkloadNetworkSegment :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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 WorkloadNetworkSegment or the result of cls(response) @@ -460,7 +460,7 @@ async def _delete_segment_initial( resource_group_name: str, private_cloud_name: str, segment_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -506,7 +506,7 @@ async def begin_delete_segment( resource_group_name: str, private_cloud_name: str, segment_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a segment by id in a private cloud workload network. @@ -520,8 +520,8 @@ async def begin_delete_segment( :type segment_id: 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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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) @@ -576,7 +576,7 @@ def list_dhcp( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.WorkloadNetworkDhcpList"]: """List dhcp in a private cloud workload network. @@ -653,7 +653,7 @@ async def get_dhcp( resource_group_name: str, dhcp_id: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> "_models.WorkloadNetworkDhcp": """Get dhcp by id in a private cloud workload network. @@ -718,7 +718,7 @@ async def _create_dhcp_initial( private_cloud_name: str, dhcp_id: str, properties: Optional["_models.WorkloadNetworkDhcpEntity"] = None, - **kwargs + **kwargs: Any ) -> "_models.WorkloadNetworkDhcp": cls = kwargs.pop('cls', None) # type: ClsType["_models.WorkloadNetworkDhcp"] error_map = { @@ -779,7 +779,7 @@ async def begin_create_dhcp( private_cloud_name: str, dhcp_id: str, properties: Optional["_models.WorkloadNetworkDhcpEntity"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WorkloadNetworkDhcp"]: """Create dhcp by id in a private cloud workload network. @@ -795,8 +795,8 @@ async def begin_create_dhcp( :type properties: ~avs_client.models.WorkloadNetworkDhcpEntity :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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 WorkloadNetworkDhcp or the result of cls(response) @@ -857,7 +857,7 @@ async def _update_dhcp_initial( private_cloud_name: str, dhcp_id: str, properties: Optional["_models.WorkloadNetworkDhcpEntity"] = None, - **kwargs + **kwargs: Any ) -> Optional["_models.WorkloadNetworkDhcp"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WorkloadNetworkDhcp"]] error_map = { @@ -916,7 +916,7 @@ async def begin_update_dhcp( private_cloud_name: str, dhcp_id: str, properties: Optional["_models.WorkloadNetworkDhcpEntity"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WorkloadNetworkDhcp"]: """Create or update dhcp by id in a private cloud workload network. @@ -932,8 +932,8 @@ async def begin_update_dhcp( :type properties: ~avs_client.models.WorkloadNetworkDhcpEntity :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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 WorkloadNetworkDhcp or the result of cls(response) @@ -993,7 +993,7 @@ async def _delete_dhcp_initial( resource_group_name: str, private_cloud_name: str, dhcp_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1039,7 +1039,7 @@ async def begin_delete_dhcp( resource_group_name: str, private_cloud_name: str, dhcp_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete dhcp by id in a private cloud workload network. @@ -1053,8 +1053,8 @@ async def begin_delete_dhcp( :type dhcp_id: 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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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) @@ -1109,7 +1109,7 @@ def list_gateways( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.WorkloadNetworkGatewayList"]: """List of gateways in a private cloud workload network. @@ -1186,7 +1186,7 @@ async def get_gateway( resource_group_name: str, private_cloud_name: str, gateway_id: str, - **kwargs + **kwargs: Any ) -> "_models.WorkloadNetworkGateway": """Get a gateway by id in a private cloud workload network. @@ -1249,7 +1249,7 @@ def list_port_mirroring( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.WorkloadNetworkPortMirroringList"]: """List of port mirroring profiles in a private cloud workload network. @@ -1326,7 +1326,7 @@ async def get_port_mirroring( resource_group_name: str, private_cloud_name: str, port_mirroring_id: str, - **kwargs + **kwargs: Any ) -> "_models.WorkloadNetworkPortMirroring": """Get a port mirroring profile by id in a private cloud workload network. @@ -1392,7 +1392,7 @@ async def _create_port_mirroring_initial( private_cloud_name: str, port_mirroring_id: str, workload_network_port_mirroring: "_models.WorkloadNetworkPortMirroring", - **kwargs + **kwargs: Any ) -> "_models.WorkloadNetworkPortMirroring": cls = kwargs.pop('cls', None) # type: ClsType["_models.WorkloadNetworkPortMirroring"] error_map = { @@ -1451,7 +1451,7 @@ async def begin_create_port_mirroring( private_cloud_name: str, port_mirroring_id: str, workload_network_port_mirroring: "_models.WorkloadNetworkPortMirroring", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WorkloadNetworkPortMirroring"]: """Create a port mirroring profile by id in a private cloud workload network. @@ -1468,8 +1468,8 @@ async def begin_create_port_mirroring( :type workload_network_port_mirroring: ~avs_client.models.WorkloadNetworkPortMirroring :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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 WorkloadNetworkPortMirroring or the result of cls(response) @@ -1530,7 +1530,7 @@ async def _update_port_mirroring_initial( private_cloud_name: str, port_mirroring_id: str, workload_network_port_mirroring: "_models.WorkloadNetworkPortMirroring", - **kwargs + **kwargs: Any ) -> Optional["_models.WorkloadNetworkPortMirroring"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WorkloadNetworkPortMirroring"]] error_map = { @@ -1587,7 +1587,7 @@ async def begin_update_port_mirroring( private_cloud_name: str, port_mirroring_id: str, workload_network_port_mirroring: "_models.WorkloadNetworkPortMirroring", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WorkloadNetworkPortMirroring"]: """Create or update a port mirroring profile by id in a private cloud workload network. @@ -1604,8 +1604,8 @@ async def begin_update_port_mirroring( :type workload_network_port_mirroring: ~avs_client.models.WorkloadNetworkPortMirroring :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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 WorkloadNetworkPortMirroring or the result of cls(response) @@ -1665,7 +1665,7 @@ async def _delete_port_mirroring_initial( resource_group_name: str, port_mirroring_id: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1711,7 +1711,7 @@ async def begin_delete_port_mirroring( resource_group_name: str, port_mirroring_id: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a port mirroring profile by id in a private cloud workload network. @@ -1726,8 +1726,8 @@ async def begin_delete_port_mirroring( :type private_cloud_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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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) @@ -1782,7 +1782,7 @@ def list_vm_groups( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.WorkloadNetworkVMGroupsList"]: """List of vm groups in a private cloud workload network. @@ -1859,7 +1859,7 @@ async def get_vm_group( resource_group_name: str, private_cloud_name: str, vm_group_id: str, - **kwargs + **kwargs: Any ) -> "_models.WorkloadNetworkVMGroup": """Get a vm group by id in a private cloud workload network. @@ -1924,7 +1924,7 @@ async def _create_vm_group_initial( private_cloud_name: str, vm_group_id: str, workload_network_vm_group: "_models.WorkloadNetworkVMGroup", - **kwargs + **kwargs: Any ) -> "_models.WorkloadNetworkVMGroup": cls = kwargs.pop('cls', None) # type: ClsType["_models.WorkloadNetworkVMGroup"] error_map = { @@ -1983,7 +1983,7 @@ async def begin_create_vm_group( private_cloud_name: str, vm_group_id: str, workload_network_vm_group: "_models.WorkloadNetworkVMGroup", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WorkloadNetworkVMGroup"]: """Create a vm group by id in a private cloud workload network. @@ -1999,8 +1999,8 @@ async def begin_create_vm_group( :type workload_network_vm_group: ~avs_client.models.WorkloadNetworkVMGroup :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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 WorkloadNetworkVMGroup or the result of cls(response) @@ -2061,7 +2061,7 @@ async def _update_vm_group_initial( private_cloud_name: str, vm_group_id: str, workload_network_vm_group: "_models.WorkloadNetworkVMGroup", - **kwargs + **kwargs: Any ) -> Optional["_models.WorkloadNetworkVMGroup"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WorkloadNetworkVMGroup"]] error_map = { @@ -2118,7 +2118,7 @@ async def begin_update_vm_group( private_cloud_name: str, vm_group_id: str, workload_network_vm_group: "_models.WorkloadNetworkVMGroup", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WorkloadNetworkVMGroup"]: """Create or update a vm group by id in a private cloud workload network. @@ -2134,8 +2134,8 @@ async def begin_update_vm_group( :type workload_network_vm_group: ~avs_client.models.WorkloadNetworkVMGroup :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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 WorkloadNetworkVMGroup or the result of cls(response) @@ -2195,7 +2195,7 @@ async def _delete_vm_group_initial( resource_group_name: str, vm_group_id: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -2241,7 +2241,7 @@ async def begin_delete_vm_group( resource_group_name: str, vm_group_id: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a vm group by id in a private cloud workload network. @@ -2255,8 +2255,8 @@ async def begin_delete_vm_group( :type private_cloud_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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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) @@ -2311,7 +2311,7 @@ def list_virtual_machines( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.WorkloadNetworkVirtualMachinesList"]: """List of virtual machines in a private cloud workload network. @@ -2388,7 +2388,7 @@ async def get_virtual_machine( resource_group_name: str, private_cloud_name: str, virtual_machine_id: str, - **kwargs + **kwargs: Any ) -> "_models.WorkloadNetworkVirtualMachine": """Get a virtual machine by id in a private cloud workload network. @@ -2451,7 +2451,7 @@ def list_dns_services( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.WorkloadNetworkDnsServicesList"]: """List of DNS services in a private cloud workload network. @@ -2528,7 +2528,7 @@ async def get_dns_service( resource_group_name: str, private_cloud_name: str, dns_service_id: str, - **kwargs + **kwargs: Any ) -> "_models.WorkloadNetworkDnsService": """Get a DNS service by id in a private cloud workload network. @@ -2594,7 +2594,7 @@ async def _create_dns_service_initial( private_cloud_name: str, dns_service_id: str, workload_network_dns_service: "_models.WorkloadNetworkDnsService", - **kwargs + **kwargs: Any ) -> "_models.WorkloadNetworkDnsService": cls = kwargs.pop('cls', None) # type: ClsType["_models.WorkloadNetworkDnsService"] error_map = { @@ -2653,7 +2653,7 @@ async def begin_create_dns_service( private_cloud_name: str, dns_service_id: str, workload_network_dns_service: "_models.WorkloadNetworkDnsService", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WorkloadNetworkDnsService"]: """Create a DNS service by id in a private cloud workload network. @@ -2670,8 +2670,8 @@ async def begin_create_dns_service( :type workload_network_dns_service: ~avs_client.models.WorkloadNetworkDnsService :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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 WorkloadNetworkDnsService or the result of cls(response) @@ -2732,7 +2732,7 @@ async def _update_dns_service_initial( private_cloud_name: str, dns_service_id: str, workload_network_dns_service: "_models.WorkloadNetworkDnsService", - **kwargs + **kwargs: Any ) -> Optional["_models.WorkloadNetworkDnsService"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WorkloadNetworkDnsService"]] error_map = { @@ -2789,7 +2789,7 @@ async def begin_update_dns_service( private_cloud_name: str, dns_service_id: str, workload_network_dns_service: "_models.WorkloadNetworkDnsService", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WorkloadNetworkDnsService"]: """Create or update a DNS service by id in a private cloud workload network. @@ -2806,8 +2806,8 @@ async def begin_update_dns_service( :type workload_network_dns_service: ~avs_client.models.WorkloadNetworkDnsService :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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 WorkloadNetworkDnsService or the result of cls(response) @@ -2867,7 +2867,7 @@ async def _delete_dns_service_initial( resource_group_name: str, dns_service_id: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -2913,7 +2913,7 @@ async def begin_delete_dns_service( resource_group_name: str, dns_service_id: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a DNS service by id in a private cloud workload network. @@ -2928,8 +2928,8 @@ async def begin_delete_dns_service( :type private_cloud_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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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) @@ -2984,7 +2984,7 @@ def list_dns_zones( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.WorkloadNetworkDnsZonesList"]: """List of DNS zones in a private cloud workload network. @@ -3061,7 +3061,7 @@ async def get_dns_zone( resource_group_name: str, private_cloud_name: str, dns_zone_id: str, - **kwargs + **kwargs: Any ) -> "_models.WorkloadNetworkDnsZone": """Get a DNS zone by id in a private cloud workload network. @@ -3126,7 +3126,7 @@ async def _create_dns_zone_initial( private_cloud_name: str, dns_zone_id: str, workload_network_dns_zone: "_models.WorkloadNetworkDnsZone", - **kwargs + **kwargs: Any ) -> "_models.WorkloadNetworkDnsZone": cls = kwargs.pop('cls', None) # type: ClsType["_models.WorkloadNetworkDnsZone"] error_map = { @@ -3185,7 +3185,7 @@ async def begin_create_dns_zone( private_cloud_name: str, dns_zone_id: str, workload_network_dns_zone: "_models.WorkloadNetworkDnsZone", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WorkloadNetworkDnsZone"]: """Create a DNS zone by id in a private cloud workload network. @@ -3201,8 +3201,8 @@ async def begin_create_dns_zone( :type workload_network_dns_zone: ~avs_client.models.WorkloadNetworkDnsZone :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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 WorkloadNetworkDnsZone or the result of cls(response) @@ -3263,7 +3263,7 @@ async def _update_dns_zone_initial( private_cloud_name: str, dns_zone_id: str, workload_network_dns_zone: "_models.WorkloadNetworkDnsZone", - **kwargs + **kwargs: Any ) -> Optional["_models.WorkloadNetworkDnsZone"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WorkloadNetworkDnsZone"]] error_map = { @@ -3320,7 +3320,7 @@ async def begin_update_dns_zone( private_cloud_name: str, dns_zone_id: str, workload_network_dns_zone: "_models.WorkloadNetworkDnsZone", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WorkloadNetworkDnsZone"]: """Create or update a DNS zone by id in a private cloud workload network. @@ -3336,8 +3336,8 @@ async def begin_update_dns_zone( :type workload_network_dns_zone: ~avs_client.models.WorkloadNetworkDnsZone :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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 WorkloadNetworkDnsZone or the result of cls(response) @@ -3397,7 +3397,7 @@ async def _delete_dns_zone_initial( resource_group_name: str, dns_zone_id: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -3443,7 +3443,7 @@ async def begin_delete_dns_zone( resource_group_name: str, dns_zone_id: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a DNS zone by id in a private cloud workload network. @@ -3457,8 +3457,8 @@ async def begin_delete_dns_zone( :type private_cloud_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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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) @@ -3513,7 +3513,7 @@ def list_public_i_ps( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.WorkloadNetworkPublicIPsList"]: """List of Public IP Blocks in a private cloud workload network. @@ -3590,7 +3590,7 @@ async def get_public_ip( resource_group_name: str, private_cloud_name: str, public_ip_id: str, - **kwargs + **kwargs: Any ) -> "_models.WorkloadNetworkPublicIP": """Get a Public IP Block by id in a private cloud workload network. @@ -3657,7 +3657,7 @@ async def _create_public_ip_initial( public_ip_id: str, display_name: Optional[str] = None, number_of_public_i_ps: Optional[int] = None, - **kwargs + **kwargs: Any ) -> "_models.WorkloadNetworkPublicIP": cls = kwargs.pop('cls', None) # type: ClsType["_models.WorkloadNetworkPublicIP"] error_map = { @@ -3719,7 +3719,7 @@ async def begin_create_public_ip( public_ip_id: str, display_name: Optional[str] = None, number_of_public_i_ps: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WorkloadNetworkPublicIP"]: """Create a Public IP Block by id in a private cloud workload network. @@ -3738,8 +3738,8 @@ async def begin_create_public_ip( :type number_of_public_i_ps: long :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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 WorkloadNetworkPublicIP or the result of cls(response) @@ -3800,7 +3800,7 @@ async def _delete_public_ip_initial( resource_group_name: str, public_ip_id: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -3846,7 +3846,7 @@ async def begin_delete_public_ip( resource_group_name: str, public_ip_id: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a Public IP Block by id in a private cloud workload network. @@ -3861,8 +3861,8 @@ async def begin_delete_public_ip( :type private_cloud_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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a 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) diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/models/__init__.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/models/__init__.py index 38b696e41b7..819b169fecf 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/models/__init__.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/models/__init__.py @@ -190,6 +190,7 @@ HcxEnterpriseSiteStatus, InternetEnum, MountOptionEnum, + OptionalParamEnum, PortMirroringDirectionEnum, PortMirroringStatusEnum, PrivateCloudProvisioningState, @@ -311,6 +312,7 @@ 'HcxEnterpriseSiteStatus', 'InternetEnum', 'MountOptionEnum', + 'OptionalParamEnum', 'PortMirroringDirectionEnum', 'PortMirroringStatusEnum', 'PrivateCloudProvisioningState', diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/models/_avs_client_enums.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/models/_avs_client_enums.py index a8e0a835cf0..f0a7e9e57cd 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/models/_avs_client_enums.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/models/_avs_client_enums.py @@ -148,6 +148,13 @@ class MountOptionEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): MOUNT = "MOUNT" ATTACH = "ATTACH" +class OptionalParamEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Is this parameter required or optional + """ + + OPTIONAL = "Optional" + REQUIRED = "Required" + class PortMirroringDirectionEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Direction of port mirroring profile. """ diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/models/_models.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/models/_models.py index 606e770718f..ad4824ec05c 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/models/_models.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/models/_models.py @@ -762,7 +762,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: object + :vartype info: any """ _validation = { @@ -2051,7 +2051,7 @@ class ScriptExecution(ProxyResource): :param output: Standard output stream from the powershell execution. :type output: list[str] :param named_outputs: User-defined dictionary. - :type named_outputs: dict[str, object] + :type named_outputs: dict[str, any] :ivar information: Standard information out stream from the powershell execution. :vartype information: list[str] :ivar warnings: Standard warning out stream from the powershell execution. @@ -2234,12 +2234,16 @@ class ScriptParameter(msrest.serialization.Model): :ivar visibility: Should this parameter be visible to arm and passed in the parameters argument when executing. Possible values include: "Visible", "Hidden". :vartype visibility: str or ~avs_client.models.VisibilityParameterEnum + :ivar optional: Is this parameter required or optional. Possible values include: "Optional", + "Required". + :vartype optional: str or ~avs_client.models.OptionalParamEnum """ _validation = { 'type': {'readonly': True}, 'description': {'readonly': True}, 'visibility': {'readonly': True}, + 'optional': {'readonly': True}, } _attribute_map = { @@ -2247,6 +2251,7 @@ class ScriptParameter(msrest.serialization.Model): 'name': {'key': 'name', 'type': 'str'}, 'description': {'key': 'description', 'type': 'str'}, 'visibility': {'key': 'visibility', 'type': 'str'}, + 'optional': {'key': 'optional', 'type': 'str'}, } def __init__( @@ -2258,6 +2263,7 @@ def __init__( self.name = kwargs.get('name', None) self.description = None self.visibility = None + self.optional = None class ScriptSecureStringExecutionParameter(ScriptExecutionParameter): diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/models/_models_py3.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/models/_models_py3.py index e9dafb49447..2cd7ab4c787 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/models/_models_py3.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/models/_models_py3.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union import msrest.serialization @@ -792,7 +792,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: object + :vartype info: any """ _validation = { @@ -2165,7 +2165,7 @@ class ScriptExecution(ProxyResource): :param output: Standard output stream from the powershell execution. :type output: list[str] :param named_outputs: User-defined dictionary. - :type named_outputs: dict[str, object] + :type named_outputs: dict[str, any] :ivar information: Standard information out stream from the powershell execution. :vartype information: list[str] :ivar warnings: Standard warning out stream from the powershell execution. @@ -2218,7 +2218,7 @@ def __init__( timeout: Optional[str] = None, retention: Optional[str] = None, output: Optional[List[str]] = None, - named_outputs: Optional[Dict[str, object]] = None, + named_outputs: Optional[Dict[str, Any]] = None, **kwargs ): super(ScriptExecution, self).__init__(**kwargs) @@ -2357,12 +2357,16 @@ class ScriptParameter(msrest.serialization.Model): :ivar visibility: Should this parameter be visible to arm and passed in the parameters argument when executing. Possible values include: "Visible", "Hidden". :vartype visibility: str or ~avs_client.models.VisibilityParameterEnum + :ivar optional: Is this parameter required or optional. Possible values include: "Optional", + "Required". + :vartype optional: str or ~avs_client.models.OptionalParamEnum """ _validation = { 'type': {'readonly': True}, 'description': {'readonly': True}, 'visibility': {'readonly': True}, + 'optional': {'readonly': True}, } _attribute_map = { @@ -2370,6 +2374,7 @@ class ScriptParameter(msrest.serialization.Model): 'name': {'key': 'name', 'type': 'str'}, 'description': {'key': 'description', 'type': 'str'}, 'visibility': {'key': 'visibility', 'type': 'str'}, + 'optional': {'key': 'optional', 'type': 'str'}, } def __init__( @@ -2383,6 +2388,7 @@ def __init__( self.name = name self.description = None self.visibility = None + self.optional = None class ScriptSecureStringExecutionParameter(ScriptExecutionParameter): diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_addons_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_addons_operations.py index 51ba06e8419..30cec0806fc 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_addons_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_addons_operations.py @@ -274,8 +274,8 @@ def begin_create_or_update( :type properties: ~avs_client.models.AddonProperties :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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 Addon or the result of cls(response) @@ -397,8 +397,8 @@ def begin_delete( :type addon_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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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) diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_authorizations_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_authorizations_operations.py index 60d1a88bcc0..cc65b642af1 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_authorizations_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_authorizations_operations.py @@ -270,8 +270,8 @@ def begin_create_or_update( :type authorization_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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 ExpressRouteAuthorization or the result of cls(response) @@ -392,8 +392,8 @@ def begin_delete( :type authorization_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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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) diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_cloud_links_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_cloud_links_operations.py index 25aec1f6661..da121ac6ebb 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_cloud_links_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_cloud_links_operations.py @@ -274,8 +274,8 @@ def begin_create_or_update( :type linked_cloud: 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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 CloudLink or the result of cls(response) @@ -397,8 +397,8 @@ def begin_delete( :type cloud_link_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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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) diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_clusters_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_clusters_operations.py index aae75764ab9..503dbc52d10 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_clusters_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_clusters_operations.py @@ -278,8 +278,8 @@ def begin_create_or_update( :type cluster_size: int :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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 Cluster or the result of cls(response) @@ -420,8 +420,8 @@ def begin_update( :type cluster_size: int :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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 Cluster or the result of cls(response) @@ -543,8 +543,8 @@ def begin_delete( :type cluster_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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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) diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_datastores_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_datastores_operations.py index ee2c780188e..0a54cf9cfdc 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_datastores_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_datastores_operations.py @@ -291,8 +291,8 @@ def begin_create_or_update( :type disk_pool_volume: ~avs_client.models.DiskPoolVolume :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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 Datastore or the result of cls(response) @@ -422,8 +422,8 @@ def begin_delete( :type datastore_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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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) diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_global_reach_connections_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_global_reach_connections_operations.py index 65faafa36b0..9a7d8d99f16 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_global_reach_connections_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_global_reach_connections_operations.py @@ -280,8 +280,8 @@ def begin_create_or_update( :type peer_express_route_circuit: 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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 GlobalReachConnection or the result of cls(response) @@ -404,8 +404,8 @@ def begin_delete( :type global_reach_connection_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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) diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_private_clouds_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_private_clouds_operations.py index fbb72572527..c585b999ec1 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_private_clouds_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_private_clouds_operations.py @@ -328,8 +328,8 @@ def begin_create_or_update( :type private_cloud: ~avs_client.models.PrivateCloud :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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 PrivateCloud or the result of cls(response) @@ -460,8 +460,8 @@ def begin_update( :type private_cloud_update: ~avs_client.models.PrivateCloudUpdate :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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 PrivateCloud or the result of cls(response) @@ -576,8 +576,8 @@ def begin_delete( :type private_cloud_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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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) @@ -688,8 +688,8 @@ def begin_rotate_vcenter_password( :type private_cloud_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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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) @@ -800,8 +800,8 @@ def begin_rotate_nsxt_password( :type private_cloud_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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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) diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_script_executions_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_script_executions_operations.py index 36663f6eefb..2b7a50e39ea 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_script_executions_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_script_executions_operations.py @@ -272,8 +272,8 @@ def begin_create_or_update( :type script_execution: ~avs_client.models.ScriptExecution :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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 ScriptExecution or the result of cls(response) @@ -395,8 +395,8 @@ def begin_delete( :type script_execution_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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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) diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_workload_networks_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_workload_networks_operations.py index 4d5b5950b91..5a94175b75e 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_workload_networks_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_workload_networks_operations.py @@ -272,8 +272,8 @@ def begin_create_segments( :type workload_network_segment: ~avs_client.models.WorkloadNetworkSegment :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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 WorkloadNetworkSegment or the result of cls(response) @@ -409,8 +409,8 @@ def begin_update_segments( :type workload_network_segment: ~avs_client.models.WorkloadNetworkSegment :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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 WorkloadNetworkSegment or the result of cls(response) @@ -532,8 +532,8 @@ def begin_delete_segment( :type segment_id: 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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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) @@ -811,8 +811,8 @@ def begin_create_dhcp( :type properties: ~avs_client.models.WorkloadNetworkDhcpEntity :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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 WorkloadNetworkDhcp or the result of cls(response) @@ -950,8 +950,8 @@ def begin_update_dhcp( :type properties: ~avs_client.models.WorkloadNetworkDhcpEntity :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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 WorkloadNetworkDhcp or the result of cls(response) @@ -1073,8 +1073,8 @@ def begin_delete_dhcp( :type dhcp_id: 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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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) @@ -1494,8 +1494,8 @@ def begin_create_port_mirroring( :type workload_network_port_mirroring: ~avs_client.models.WorkloadNetworkPortMirroring :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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 WorkloadNetworkPortMirroring or the result of cls(response) @@ -1632,8 +1632,8 @@ def begin_update_port_mirroring( :type workload_network_port_mirroring: ~avs_client.models.WorkloadNetworkPortMirroring :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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 WorkloadNetworkPortMirroring or the result of cls(response) @@ -1756,8 +1756,8 @@ def begin_delete_port_mirroring( :type private_cloud_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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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) @@ -2033,8 +2033,8 @@ def begin_create_vm_group( :type workload_network_vm_group: ~avs_client.models.WorkloadNetworkVMGroup :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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 WorkloadNetworkVMGroup or the result of cls(response) @@ -2170,8 +2170,8 @@ def begin_update_vm_group( :type workload_network_vm_group: ~avs_client.models.WorkloadNetworkVMGroup :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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 WorkloadNetworkVMGroup or the result of cls(response) @@ -2293,8 +2293,8 @@ def begin_delete_vm_group( :type private_cloud_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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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) @@ -2714,8 +2714,8 @@ def begin_create_dns_service( :type workload_network_dns_service: ~avs_client.models.WorkloadNetworkDnsService :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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 WorkloadNetworkDnsService or the result of cls(response) @@ -2852,8 +2852,8 @@ def begin_update_dns_service( :type workload_network_dns_service: ~avs_client.models.WorkloadNetworkDnsService :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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 WorkloadNetworkDnsService or the result of cls(response) @@ -2976,8 +2976,8 @@ def begin_delete_dns_service( :type private_cloud_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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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) @@ -3253,8 +3253,8 @@ def begin_create_dns_zone( :type workload_network_dns_zone: ~avs_client.models.WorkloadNetworkDnsZone :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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 WorkloadNetworkDnsZone or the result of cls(response) @@ -3390,8 +3390,8 @@ def begin_update_dns_zone( :type workload_network_dns_zone: ~avs_client.models.WorkloadNetworkDnsZone :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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 WorkloadNetworkDnsZone or the result of cls(response) @@ -3513,8 +3513,8 @@ def begin_delete_dns_zone( :type private_cloud_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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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) @@ -3798,8 +3798,8 @@ def begin_create_public_ip( :type number_of_public_i_ps: long :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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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 WorkloadNetworkPublicIP or the result of cls(response) @@ -3923,8 +3923,8 @@ def begin_delete_public_ip( :type private_cloud_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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a 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) From 55136ca66bbe2a2686bb5f0a815d4f269cb4b885 Mon Sep 17 00:00:00 2001 From: Cameron Taggart Date: Tue, 25 May 2021 12:59:25 -0700 Subject: [PATCH 03/18] tests passing for VmwareScenarioTest --- src/vmware/azext_vmware/custom.py | 17 +- .../tests/latest/recordings/test_vmware.yaml | 3160 ++++++++++++++++- .../tests/latest/test_vmware_scenario.py | 6 +- 3 files changed, 2991 insertions(+), 192 deletions(-) diff --git a/src/vmware/azext_vmware/custom.py b/src/vmware/azext_vmware/custom.py index e776ddda036..c426a5924ac 100644 --- a/src/vmware/azext_vmware/custom.py +++ b/src/vmware/azext_vmware/custom.py @@ -109,15 +109,12 @@ def privatecloud_rotate_nsxt_password(cmd, client: AVSClient, resource_group_nam def cluster_create(cmd, client: AVSClient, resource_group_name, name, sku, private_cloud, size, tags=[]): - from azext_vmware.vendored_sdks.avs_client.models import Cluster, Sku - cluster = Cluster(sku=Sku(name=sku), cluster_size=size) - return client.clusters.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=name, cluster=cluster) + from azext_vmware.vendored_sdks.avs_client.models import Sku + return client.clusters.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=name, sku=Sku(name=sku), cluster_size=size) def cluster_update(cmd, client: AVSClient, resource_group_name, name, private_cloud, size, tags=[]): - from azext_vmware.vendored_sdks.avs_client.models import ClusterUpdate - cluster_update = ClusterUpdate(cluster_size=size) - return client.clusters.begin_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=name, cluster_update=cluster_update) + return client.clusters.begin_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=name, cluster_size=size) def cluster_list(cmd, client: AVSClient, resource_group_name, private_cloud): @@ -141,9 +138,7 @@ def check_trial_availability(cmd, client: AVSClient, location): def authorization_create(cmd, client: AVSClient, resource_group_name, private_cloud, name): - from azext_vmware.vendored_sdks.avs_client.models import ExpressRouteAuthorization - authorization = ExpressRouteAuthorization() - return client.authorizations.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, authorization_name=name, authorization=authorization) + return client.authorizations.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, authorization_name=name) def authorization_list(cmd, client: AVSClient, resource_group_name, private_cloud): @@ -159,9 +154,7 @@ def authorization_delete(cmd, client: AVSClient, resource_group_name, private_cl def hcxenterprisesite_create(cmd, client: AVSClient, resource_group_name, private_cloud, name): - from azext_vmware.vendored_sdks.avs_client.models import HcxEnterpriseSite - hcx_enterprise_site = HcxEnterpriseSite() - return client.hcx_enterprise_sites.create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, hcx_enterprise_site_name=name, hcx_enterprise_site=hcx_enterprise_site) + return client.hcx_enterprise_sites.create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, hcx_enterprise_site_name=name) def hcxenterprisesite_list(cmd, client: AVSClient, resource_group_name, private_cloud): diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml index 00ae0deb763..0600eab960c 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml @@ -39,13 +39,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 19 May 2021 22:00:02 GMT + - Tue, 25 May 2021 19:43:32 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AlG8VgL2Qw1Drtv1HwQE4bg; expires=Fri, 18-Jun-2021 22:00:02 GMT; path=/; + - fpc=Aul5XCIZf35DulczzFwDcwU; expires=Thu, 24-Jun-2021 19:43:32 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr-WbNGqbZBOnT7H_vC7vXKAXDPgmXdN6ZYjLWu4e3mcZcPjHcUzV7uGuDxVNQtFh-Y56haWeHZbGuwED82gcftObGMRYF_ZYhxd-atEDVLPH54esST3H4Sg47oy4tS9058chwf3KhELZ9Kkf6NtD3BtqA9XH--66AGXwvkp5IPAkgAA; + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrtWASdHumKDsEFOWAZpju2lXwN74GI9RwpfDAJJsC5EBJfz8eudququWaz2zMlJRJ-kreeHjm8p40NvD6dsI9e4sKza5Umb-_PQQIcmfW4MN__Jh8YIfF6u34fp0xktld22iGamSnQyeJ0iU0lWllxYsOthECKMc3njRT3HTH2EggAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -54,7 +54,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11722.21 - EUS ProdSlices + - 2.1.11722.21 - SCUS ProdSlices status: code: 200 message: OK @@ -76,10 +76,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: POST - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AVS/locations/westcentralus/checkQuotaAvailability?api-version=2021-06-01 + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AVS/locations/centralus/checkQuotaAvailability?api-version=2021-06-01 response: body: - string: '{"hostsRemaining":{"gp":996,"he":978},"quotaEnabled":"Enabled"}' + string: '{"hostsRemaining":{"gp":976,"he":980},"quotaEnabled":"Enabled"}' headers: cache-control: - no-cache @@ -88,7 +88,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 19 May 2021 22:00:06 GMT + - Tue, 25 May 2021 19:43:36 GMT expires: - '-1' pragma: @@ -100,7 +100,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: C50E3E91B26D47AC820D1400437EC3B9 Ref B: PDX31EDGE0107 Ref C: 2021-05-19T22:00:05Z' + - 'Ref A: 17D51DED395B416E9B329EAC2412C4F2 Ref B: PDX31EDGE0120 Ref C: 2021-05-25T19:43:34Z' status: code: 200 message: OK @@ -144,13 +144,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 19 May 2021 22:00:08 GMT + - Tue, 25 May 2021 19:43:38 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=ArjFl2XKeqJJtCB3QrHAT10; expires=Fri, 18-Jun-2021 22:00:09 GMT; path=/; + - fpc=AtHVWB-rRAlDjkh8NOJck2Y; expires=Thu, 24-Jun-2021 19:43:38 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrIt8Zx1DhHtqdPv69raU_Zg2nEbBnpxJtC_W2q1rL3jTexOHDK_ktBZqt5Q3Wd-K7yqQB2jr0aTppllJuCdQnkSnhNMhmw42rCoeyXVifM9n3itJB_v8cq0oQ8ysjMNOOAcPSCy8py3cLU-AymZnSEWoBI7qZ3yCp-CjjIvOLNNUgAA; + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrtB0wouQWDBAm6iQEXa-5rHzwszra63jOUZBCX9LRGxfxTCdIyzwcpVFi0U5sV472X6Vevczhrrx4gGY6gE5DFkZpqmua5n6so4LvYUXh9p7hRlwd45FYGr4JFqvDO96MgJ__nSirW4ARj1ebS9VJkxDypnFp4DLclRA2eaz7ps0gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -159,7 +159,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11722.21 - WUS2 ProdSlices + - 2.1.11722.21 - EUS ProdSlices status: code: 200 message: OK @@ -181,7 +181,7 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: POST - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AVS/locations/westcentralus/checkTrialAvailability?api-version=2021-06-01 + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AVS/locations/centralus/checkTrialAvailability?api-version=2021-06-01 response: body: string: '{"availableHosts":0,"status":"TrialDisabled"}' @@ -193,7 +193,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 19 May 2021 22:00:12 GMT + - Tue, 25 May 2021 19:43:40 GMT expires: - '-1' pragma: @@ -205,9 +205,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1195' + - '1196' x-msedge-ref: - - 'Ref A: 41FC3E2CA0AD4CBC9119BA8BEEEE1ECF Ref B: PDX31EDGE0119 Ref C: 2021-05-19T22:00:11Z' + - 'Ref A: 85C2D145DE8C4FC38D58C41168800E92 Ref B: PDX31EDGE0122 Ref C: 2021-05-25T19:43:40Z' status: code: 200 message: OK @@ -251,13 +251,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 19 May 2021 22:00:14 GMT + - Tue, 25 May 2021 19:43:42 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AkEYaCYPqypOg2HY55dMzIA; expires=Fri, 18-Jun-2021 22:00:14 GMT; path=/; + - fpc=At48AEygrQVOvbHESgm0aLA; expires=Thu, 24-Jun-2021 19:43:43 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrG_NdbVDzgiopKMJUkS-Zha4ekjQSg20_SkOp5wSGKyvVDvQZrKDQG2VKxaMT7SkLM87tF-c7_ltQmsujFx-j28ODvFzK2IUl8Dep6gxCoYtQU7o37zwaagwVUm3rgv2irMZ8RNdqKRO9qJS1eNcf7yTs9Bp5y6kz4qyaxB_gElYgAA; + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr5Fv8a-ASLoPqbNmOtNE0ZCasrNfp6DjfnXq4hil3oqa6oVJbwvAsdLMzdIUdeuu0eI748S58TVHM0P5Y2ugbCUoEEARwv3J2R51N7okHrV7hCNLTStuGbtwppcEFeWEE11KkYL_WdQfwBtvN3boT2OwPFyUPhtCQL7hTV_OgepAgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -266,7 +266,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11722.21 - NCUS ProdSlices + - 2.1.11722.21 - EUS ProdSlices status: code: 200 message: OK @@ -298,7 +298,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 19 May 2021 22:00:16 GMT + - Tue, 25 May 2021 19:43:45 GMT expires: - '-1' pragma: @@ -310,7 +310,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 0A6CE3666B544C7F96D7D0551A938D31 Ref B: PDX31EDGE0120 Ref C: 2021-05-19T22:00:17Z' + - 'Ref A: 127A78114BD844B6B9CFEBB7BCFF267E Ref B: PDX31EDGE0120 Ref C: 2021-05-25T19:43:45Z' status: code: 200 message: OK @@ -354,13 +354,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 19 May 2021 22:00:19 GMT + - Tue, 25 May 2021 19:43:47 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AmYP6DG3o6tHlpOAhcmP9fw; expires=Fri, 18-Jun-2021 22:00:19 GMT; path=/; + - fpc=AuPAk8iMlIZJkLkOam7tMFI; expires=Thu, 24-Jun-2021 19:43:47 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr0jI3oZpnFbIXotNkAih3gKtuMJowxr49hy2lwFaoHWwGlBv4PZrQxK6f_6vXENsd6DD3xh0UvOo6T_RLa7brSZNlmIduuVlR2740cAA3rSistIPJlcvbh-S8iGZL_NvNx6l3dEaXNPtC4lLhJsSv_Auz0qRBtoU_efwFZgSbCU0gAA; + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrOwFX1-WCB03FDBtjnIpe0eDRwZ5jgFh4iFO0hOoyzaW8rICbBGSkSJrWtCUNMePuXPqD3vhnm91QZgslbzjpY92LEvsd8NkO7nc-yWmgIfvmyviDAMWPCUjD7cv5jMzFWxa9fqJM9S97y2QZ0jWtPGpdbWyGIL32kh14hKYTNOggAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -369,13 +369,13 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11722.21 - NCUS ProdSlices + - 2.1.11722.21 - WUS2 ProdSlices status: code: 200 message: OK - request: - body: '{"location": "westcentralus", "tags": {}, "sku": {"name": "av20"}, "properties": - {"managementCluster": {"clusterSize": 4}, "internet": "Disabled", "networkBlock": + body: '{"location": "centralus", "tags": {}, "sku": {"name": "av20"}, "properties": + {"managementCluster": {"clusterSize": 3}, "internet": "Disabled", "networkBlock": "192.168.48.0/22", "vcenterPassword": "UpfBXae9ZquZSDXk(", "nsxtPassword": "5rqdLj4GF3cePUe6("}}' headers: Accept: @@ -387,7 +387,7 @@ interactions: Connection: - keep-alive Content-Length: - - '259' + - '255' Content-Type: - application/json ParameterSetName: @@ -399,18 +399,18 @@ interactions: uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"westcentralus","name":"cloud1","properties":{"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost27.mp01.mock01.vmcp.vs.management","gp-fakehost23.mp01.mock01.vmcp.vs.management","gp-fakehost21.mp01.mock01.vmcp.vs.management","gp-fakehost20.mp01.mock01.vmcp.vs.management"],"provisioningState":"Building"},"managementNetwork":"192.168.48.0/26","networkBlock":"192.168.48.0/22","provisioningNetwork":"192.168.50.0/25","provisioningState":"Building","vmotionNetwork":"192.168.49.128/25"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":3,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management"],"provisioningState":"Building"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","provisioningNetwork":"192.168.50.0/24","provisioningState":"Building","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' headers: azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f?api-version=2021-06-01 + - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4?api-version=2021-06-01 cache-control: - no-cache content-length: - - '975' + - '922' content-type: - application/json; charset=utf-8 date: - - Wed, 19 May 2021 22:00:27 GMT + - Tue, 25 May 2021 19:43:57 GMT expires: - '-1' pragma: @@ -422,9 +422,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1195' + - '1194' x-msedge-ref: - - 'Ref A: 48FB6E5CBC774556910DFCB5FE58CC05 Ref B: PDX31EDGE0120 Ref C: 2021-05-19T22:00:22Z' + - 'Ref A: 84CCCCAE67F743C9BCC352DE2B40E95C Ref B: PDX31EDGE0119 Ref C: 2021-05-25T19:43:50Z' status: code: 201 message: Created @@ -445,10 +445,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f?api-version=2021-06-01 + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","name":"8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","percentComplete":0,"startTime":"2021-05-19T22:00:25.5833542+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","name":"dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","percentComplete":0,"startTime":"2021-05-25T19:43:57.0033504+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -457,7 +457,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 19 May 2021 22:00:37 GMT + - Tue, 25 May 2021 19:44:07 GMT expires: - '-1' pragma: @@ -469,7 +469,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 3554E863317F4BC9A6129C921CA5F6E9 Ref B: PDX31EDGE0120 Ref C: 2021-05-19T22:00:38Z' + - 'Ref A: C60F11B04A174A04AD4E675391F6933D Ref B: PDX31EDGE0119 Ref C: 2021-05-25T19:44:07Z' status: code: 200 message: OK @@ -490,10 +490,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f?api-version=2021-06-01 + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","name":"8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","percentComplete":0,"startTime":"2021-05-19T22:00:25.5833542+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","name":"dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","percentComplete":0,"startTime":"2021-05-25T19:43:57.0033504+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -502,7 +502,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 19 May 2021 22:00:48 GMT + - Tue, 25 May 2021 19:44:17 GMT expires: - '-1' pragma: @@ -514,7 +514,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: B8398B03A400452283CACDF99C5B7AC1 Ref B: PDX31EDGE0120 Ref C: 2021-05-19T22:00:48Z' + - 'Ref A: B406BA7D5CDA4F88BEA89D5783C122B2 Ref B: PDX31EDGE0119 Ref C: 2021-05-25T19:44:17Z' status: code: 200 message: OK @@ -535,10 +535,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f?api-version=2021-06-01 + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","name":"8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","percentComplete":88.75,"startTime":"2021-05-19T22:00:25.5833542+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","name":"dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","percentComplete":88.75,"startTime":"2021-05-25T19:43:57.0033504+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -547,7 +547,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 19 May 2021 22:00:58 GMT + - Tue, 25 May 2021 19:44:28 GMT expires: - '-1' pragma: @@ -559,7 +559,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: BB2DEE077D56477D8C7318601250A59B Ref B: PDX31EDGE0120 Ref C: 2021-05-19T22:00:58Z' + - 'Ref A: 799F02D14A084B5E86B091C1B26B0DB4 Ref B: PDX31EDGE0119 Ref C: 2021-05-25T19:44:28Z' status: code: 200 message: OK @@ -580,10 +580,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f?api-version=2021-06-01 + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","name":"8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","percentComplete":88.75,"startTime":"2021-05-19T22:00:25.5833542+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","name":"dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","percentComplete":88.75,"startTime":"2021-05-25T19:43:57.0033504+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -592,52 +592,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 19 May 2021 22:01:08 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 42198051155F480DA2D6E048DDA06EEF Ref B: PDX31EDGE0120 Ref C: 2021-05-19T22:01:09Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","name":"8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","percentComplete":100,"startTime":"2021-05-19T22:00:25.5833542+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '387' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 22:01:18 GMT + - Tue, 25 May 2021 19:44:38 GMT expires: - '-1' pragma: @@ -649,7 +604,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 297F43D35E404DD6A1BC0D3B7A0730EC Ref B: PDX31EDGE0120 Ref C: 2021-05-19T22:01:19Z' + - 'Ref A: 931C80D9D11C48B29F014C4BACF1D2B4 Ref B: PDX31EDGE0119 Ref C: 2021-05-25T19:44:38Z' status: code: 200 message: OK @@ -670,10 +625,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f?api-version=2021-06-01 + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","name":"8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","percentComplete":100,"startTime":"2021-05-19T22:00:25.5833542+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","name":"dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","percentComplete":100,"startTime":"2021-05-25T19:43:57.0033504+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -682,7 +637,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 19 May 2021 22:01:29 GMT + - Tue, 25 May 2021 19:44:48 GMT expires: - '-1' pragma: @@ -694,7 +649,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 84D008C560B14EC6A24EF8A79A9D5187 Ref B: PDX31EDGE0120 Ref C: 2021-05-19T22:01:29Z' + - 'Ref A: 38EEEADE8F07456EB1F0C7E255A3AE1B Ref B: PDX31EDGE0119 Ref C: 2021-05-25T19:44:48Z' status: code: 200 message: OK @@ -715,10 +670,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f?api-version=2021-06-01 + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","name":"8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","percentComplete":100,"startTime":"2021-05-19T22:00:25.5833542+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","name":"dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","percentComplete":100,"startTime":"2021-05-25T19:43:57.0033504+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -727,7 +682,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 19 May 2021 22:01:39 GMT + - Tue, 25 May 2021 19:44:59 GMT expires: - '-1' pragma: @@ -739,7 +694,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: D033775D3F5B469E8D0B8484655B93AA Ref B: PDX31EDGE0120 Ref C: 2021-05-19T22:01:39Z' + - 'Ref A: 4B233D7F7D404298B6F243BC879EA176 Ref B: PDX31EDGE0119 Ref C: 2021-05-25T19:44:59Z' status: code: 200 message: OK @@ -760,10 +715,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f?api-version=2021-06-01 + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","name":"8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","percentComplete":100,"startTime":"2021-05-19T22:00:25.5833542+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","name":"dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","percentComplete":100,"startTime":"2021-05-25T19:43:57.0033504+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -772,7 +727,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 19 May 2021 22:01:49 GMT + - Tue, 25 May 2021 19:45:09 GMT expires: - '-1' pragma: @@ -784,7 +739,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 246C9835F86C4CFFA6CB40B4E55FF429 Ref B: PDX31EDGE0120 Ref C: 2021-05-19T22:01:50Z' + - 'Ref A: 71B2C0E999AA401285391219AE75FCCF Ref B: PDX31EDGE0119 Ref C: 2021-05-25T19:45:09Z' status: code: 200 message: OK @@ -805,10 +760,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f?api-version=2021-06-01 + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","name":"8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","percentComplete":100,"startTime":"2021-05-19T22:00:25.5833542+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","name":"dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","percentComplete":100,"startTime":"2021-05-25T19:43:57.0033504+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -817,7 +772,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 19 May 2021 22:02:00 GMT + - Tue, 25 May 2021 19:45:19 GMT expires: - '-1' pragma: @@ -829,7 +784,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 8C90F168D25D4CD085225B13ADF176BA Ref B: PDX31EDGE0120 Ref C: 2021-05-19T22:02:00Z' + - 'Ref A: 3676C24CFD7842F7B8251BC84562147D Ref B: PDX31EDGE0119 Ref C: 2021-05-25T19:45:19Z' status: code: 200 message: OK @@ -850,10 +805,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f?api-version=2021-06-01 + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","name":"8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","percentComplete":100,"startTime":"2021-05-19T22:00:25.5833542+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","name":"dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","percentComplete":100,"startTime":"2021-05-25T19:43:57.0033504+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -862,7 +817,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 19 May 2021 22:02:10 GMT + - Tue, 25 May 2021 19:45:29 GMT expires: - '-1' pragma: @@ -874,7 +829,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: D447B0A4607E4E2B9F9A4FEED185744C Ref B: PDX31EDGE0120 Ref C: 2021-05-19T22:02:10Z' + - 'Ref A: 5F64B23BAFEB49D6A92E409E0674EBC5 Ref B: PDX31EDGE0119 Ref C: 2021-05-25T19:45:29Z' status: code: 200 message: OK @@ -895,10 +850,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f?api-version=2021-06-01 + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","name":"8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","percentComplete":100,"startTime":"2021-05-19T22:00:25.5833542+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","name":"dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","percentComplete":100,"startTime":"2021-05-25T19:43:57.0033504+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -907,7 +862,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 19 May 2021 22:02:20 GMT + - Tue, 25 May 2021 19:45:39 GMT expires: - '-1' pragma: @@ -919,7 +874,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: C166A03605CC4D0CBE716F7CC4141093 Ref B: PDX31EDGE0120 Ref C: 2021-05-19T22:02:21Z' + - 'Ref A: FA09855F3A5E4BEB8C9BCD121C2FC2D9 Ref B: PDX31EDGE0119 Ref C: 2021-05-25T19:45:39Z' status: code: 200 message: OK @@ -940,10 +895,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f?api-version=2021-06-01 + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","name":"8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","percentComplete":100,"startTime":"2021-05-19T22:00:25.5833542+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","name":"dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","percentComplete":100,"startTime":"2021-05-25T19:43:57.0033504+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -952,7 +907,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 19 May 2021 22:02:31 GMT + - Tue, 25 May 2021 19:45:50 GMT expires: - '-1' pragma: @@ -964,7 +919,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: E788E1B182784DD1AB33F5FBEFB10C6E Ref B: PDX31EDGE0120 Ref C: 2021-05-19T22:02:31Z' + - 'Ref A: 59EF6DD10E1B43B098770D93738D5F3F Ref B: PDX31EDGE0119 Ref C: 2021-05-25T19:45:50Z' status: code: 200 message: OK @@ -985,19 +940,19 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f?api-version=2021-06-01 + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4?api-version=2021-06-01 response: body: - string: '{"endTime":"2021-05-19T22:02:27.7846508+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","name":"8d45a35d-1a6d-4865-b9d3-bdae5bcf4b6f","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"westcentralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt53-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt53-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt53-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt53-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.48.232/30","secondarySubnet":"192.168.48.236/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost27.mp01.mock01.vmcp.vs.management","gp-fakehost23.mp01.mock01.vmcp.vs.management","gp-fakehost21.mp01.mock01.vmcp.vs.management","gp-fakehost20.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/26","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/25","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.128/25"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"},"startTime":"2021-05-19T22:00:25.5833542+00:00","status":"Succeeded"}' + string: '{"endTime":"2021-05-25T19:45:53.4946862+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","name":"dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":3,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"},"startTime":"2021-05-25T19:43:57.0033504+00:00","status":"Succeeded"}' headers: cache-control: - no-cache content-length: - - '2067' + - '2011' content-type: - application/json; charset=utf-8 date: - - Wed, 19 May 2021 22:02:41 GMT + - Tue, 25 May 2021 19:46:00 GMT expires: - '-1' pragma: @@ -1009,7 +964,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 47C77719427F432697399F443701DBE0 Ref B: PDX31EDGE0120 Ref C: 2021-05-19T22:02:41Z' + - 'Ref A: 1739DB3E63C94A4D96D50E9A18874933 Ref B: PDX31EDGE0119 Ref C: 2021-05-25T19:46:00Z' status: code: 200 message: OK @@ -1033,16 +988,16 @@ interactions: uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"westcentralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt53-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt53-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt53-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt53-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.48.232/30","secondarySubnet":"192.168.48.236/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost27.mp01.mock01.vmcp.vs.management","gp-fakehost23.mp01.mock01.vmcp.vs.management","gp-fakehost21.mp01.mock01.vmcp.vs.management","gp-fakehost20.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/26","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/25","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.128/25"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":3,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' headers: cache-control: - no-cache content-length: - - '1619' + - '1563' content-type: - application/json; charset=utf-8 date: - - Wed, 19 May 2021 22:02:41 GMT + - Tue, 25 May 2021 19:46:00 GMT expires: - '-1' pragma: @@ -1054,7 +1009,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 7F4863264F6542D99079883BCE9EFA50 Ref B: PDX31EDGE0120 Ref C: 2021-05-19T22:02:42Z' + - 'Ref A: 0374602756E347B2BC790C48F89ED4EA Ref B: PDX31EDGE0119 Ref C: 2021-05-25T19:46:00Z' status: code: 200 message: OK @@ -1098,13 +1053,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 19 May 2021 22:02:45 GMT + - Tue, 25 May 2021 19:46:02 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AnuyebYrrWtOvOy4nnzONvc; expires=Fri, 18-Jun-2021 22:02:45 GMT; path=/; + - fpc=AjpzVJwYc_pNlKNL-lSL6ok; expires=Thu, 24-Jun-2021 19:46:03 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrPx8Iaf07jVqG2WV2UvOBGa7zsDKWrA0f7u4NumNjws-9Lu3xMcUuqlLDyPvW7DMOS6dT4Uzj1u4v2i9LLBTyeVOVn-xNoYKzEa7Wwdnn590oehUyHSqublas7d5TVobJ4s-5gzJJex0aiC-KluI0WPqgb-9Kix7-QL-5Lks5EOwgAA; + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrzV13XOe-L8VN5j2YPu6hbkOq_dPLQWPkei614fsbLMFPkO1XAL6uu1oCgjbUB4wcbnal4xRd_QWXelA7ib_Bxw2SvA1U0dXOshWyVV6o9T-CRFW--LUu6Q4qngkqGylgwUSIufWJ6meFMe2ryfFDl-lJly93yspv1YDMH9oN1hkgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -1136,16 +1091,16 @@ interactions: uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds?api-version=2021-06-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"westcentralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt53-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt53-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt53-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt53-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.48.232/30","secondarySubnet":"192.168.48.236/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost27.mp01.mock01.vmcp.vs.management","gp-fakehost23.mp01.mock01.vmcp.vs.management","gp-fakehost21.mp01.mock01.vmcp.vs.management","gp-fakehost20.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/26","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/25","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.128/25"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":3,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}]}' headers: cache-control: - no-cache content-length: - - '1631' + - '1575' content-type: - application/json; charset=utf-8 date: - - Wed, 19 May 2021 22:02:48 GMT + - Tue, 25 May 2021 19:46:06 GMT expires: - '-1' pragma: @@ -1157,7 +1112,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 77FCD708A3534ED881B22CDBAF1F28C5 Ref B: PDX31EDGE0111 Ref C: 2021-05-19T22:02:47Z' + - 'Ref A: C4DCEB310B084F0BB6D6FC10455B63B1 Ref B: PDX31EDGE0110 Ref C: 2021-05-25T19:46:05Z' status: code: 200 message: OK @@ -1201,13 +1156,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 19 May 2021 22:02:50 GMT + - Tue, 25 May 2021 19:46:08 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AsfOjqGP8nVItfRgYWo9rBc; expires=Fri, 18-Jun-2021 22:02:50 GMT; path=/; + - fpc=AqrguUIPRhhHjJc-CA2CU-Y; expires=Thu, 24-Jun-2021 19:46:08 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrWcox1PZAyOd0ggXFl7ZZDeGDKOL0JieZzOf9nkgHN1BC6lrPGHf119X3IVc_YwMhUDjZhAlFaG74sxSv2QhDOh-ArW25mPXOg8qbcKIE73u6KMSHKHkig-Ox__OG4NJC7tJHmuRiozj96c6WNRSUjBIPxOUXTidp49tv8fKyKXcgAA; + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrBIXcxaYL4naD75iqXwec_-_5SVd0eAQpJgTuDejCCfYEs2KpHpw-WNvoqbQwt2XxkNCd7AGEvxgjFgMYd-AXkg_fSOLxgYQ8sC7A1wr3k2oKnDUj8lhcLAMbSvjsjrFHOVOpg7oJOzMERAtC2e0RRCCU4aSiAarnspkt2Egfn9MgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -1216,7 +1171,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11722.21 - WUS2 ProdSlices + - 2.1.11722.21 - EUS ProdSlices status: code: 200 message: OK @@ -1250,11 +1205,11 @@ interactions: content-type: - text/html date: - - Wed, 19 May 2021 22:02:52 GMT + - Tue, 25 May 2021 19:46:11 GMT expires: - '-1' location: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateVcenterPassword/operationresults/2260c68c-70e2-4a4f-a4fc-08fc399ad36e?api-version=2021-06-01 + - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateVcenterPassword/operationresults/1415ac59-24c0-4b7d-bf62-6043b1db53d7?api-version=2021-06-01 pragma: - no-cache strict-transport-security: @@ -1264,9 +1219,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' x-msedge-ref: - - 'Ref A: 418EEF46BFE14E5786421071E680D2C4 Ref B: PDX31EDGE0112 Ref C: 2021-05-19T22:02:52Z' + - 'Ref A: DA72533DA1A047128D412D83B2790BC5 Ref B: PDX31EDGE0117 Ref C: 2021-05-25T19:46:10Z' status: code: 202 message: Accepted @@ -1286,7 +1241,7 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateVcenterPassword/operationresults/2260c68c-70e2-4a4f-a4fc-08fc399ad36e?api-version=2021-06-01 + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateVcenterPassword/operationresults/1415ac59-24c0-4b7d-bf62-6043b1db53d7?api-version=2021-06-01 response: body: string: '' @@ -1296,7 +1251,7 @@ interactions: content-type: - text/html date: - - Wed, 19 May 2021 22:03:23 GMT + - Tue, 25 May 2021 19:46:41 GMT expires: - '-1' pragma: @@ -1308,7 +1263,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: E79C950A34FA4F958D9C807570037BBE Ref B: PDX31EDGE0112 Ref C: 2021-05-19T22:03:23Z' + - 'Ref A: 96B4A7EFDB8744D49995BB054DDC8F0F Ref B: PDX31EDGE0117 Ref C: 2021-05-25T19:46:41Z' status: code: 204 message: No Content @@ -1352,13 +1307,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 19 May 2021 22:03:26 GMT + - Tue, 25 May 2021 19:46:44 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AgrRak5Yk_tGrkYHlJZj6C0; expires=Fri, 18-Jun-2021 22:03:26 GMT; path=/; + - fpc=Aklolf6LSFBDqzQK3tulyL0; expires=Thu, 24-Jun-2021 19:46:45 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr37pk8faJeStkYt_ClhhydisVEL4UxuSiQ_-2-YX1St91NjyVwGD3rdp7Z9GWSgOLAG0cDrHtow6LmY2u3-KM6J_miXDPMJeq9lt7i9mMgk-b9hW6HPg6vXG3mo6LbV2YQpk9jEEOgYcGFOvpbnMPUoix_o5u6uPDhLM05DGPTd4gAA; + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr-BGuenCNEJsv5RtYpZea8iciNN7jJrAfSaDO7tslfAGwGu1dA93gOalUqdl5_tWxrE9wAhSGMmnOnw4PHjJjd4fOlklEOi7a7rk67N7NwyPa_NfNkNlbGcNp9rz4913allj_5SnseuRaRwt5GUIt0oBsdz2I7n0Sbur0ZxVB0hAgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -1367,7 +1322,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11722.21 - EUS ProdSlices + - 2.1.11774.11 - WUS2 ProdSlices status: code: 200 message: OK @@ -1401,11 +1356,11 @@ interactions: content-type: - text/html date: - - Wed, 19 May 2021 22:03:28 GMT + - Tue, 25 May 2021 19:46:47 GMT expires: - '-1' location: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateNsxtPassword/operationresults/f118cc32-dc4f-4cd6-83f4-d7fa001d21de?api-version=2021-06-01 + - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateNsxtPassword/operationresults/2d3e8cee-13e1-41a1-99b8-f028be00baa5?api-version=2021-06-01 pragma: - no-cache strict-transport-security: @@ -1415,9 +1370,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1197' x-msedge-ref: - - 'Ref A: 08D28A5FB5894BF1B21B90181EAAA176 Ref B: PDX31EDGE0117 Ref C: 2021-05-19T22:03:28Z' + - 'Ref A: A2A449A41E3946E4866C8D1A36D2588C Ref B: PDX31EDGE0122 Ref C: 2021-05-25T19:46:47Z' status: code: 202 message: Accepted @@ -1437,7 +1392,7 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateNsxtPassword/operationresults/f118cc32-dc4f-4cd6-83f4-d7fa001d21de?api-version=2021-06-01 + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateNsxtPassword/operationresults/2d3e8cee-13e1-41a1-99b8-f028be00baa5?api-version=2021-06-01 response: body: string: '' @@ -1447,7 +1402,7 @@ interactions: content-type: - text/html date: - - Wed, 19 May 2021 22:03:58 GMT + - Tue, 25 May 2021 19:47:18 GMT expires: - '-1' pragma: @@ -1459,7 +1414,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: D42FF246FF324A5E86B322675B9627EA Ref B: PDX31EDGE0117 Ref C: 2021-05-19T22:03:59Z' + - 'Ref A: 0EABE6DF5DC94709985A9116177D8A5E Ref B: PDX31EDGE0122 Ref C: 2021-05-25T19:47:18Z' status: code: 204 message: No Content @@ -1503,13 +1458,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 19 May 2021 22:04:01 GMT + - Tue, 25 May 2021 19:47:21 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=Anzs97_KdWhNl7O0pxCVUE0; expires=Fri, 18-Jun-2021 22:04:02 GMT; path=/; + - fpc=AlVYihK3sepMulZW4LBRgd0; expires=Thu, 24-Jun-2021 19:47:21 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrhl9Yh4Du3r53AWtQGHx0_r9_yaUFasUqmWQUpWsC5nFYDm4rHcnEaxKv06wxvyids2dxBi80wCkyOttET9T9abR6LBJKyCP4nup2WcCKGqOYJdAuenutLI7Q2coxLwNQL4HbcarSf3_leQkv0-qub5tssoSruSZ8nzLYtv_vzFcgAA; + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrvnns0CGQZO-pfa0w3S6Ge6zF5Wx5LYTTxulyAmPq-o3QEqtakR1xH3JyP7csKzNFwjbACNbTgCLxctQkdv0N1H9Cqigi_AWVkN6F21hTLX-3_ApEdG3EuaDUfggOQ1a7-LokqQDwOeNTtOy6gWt0HMv8puSlL-diqsEnskwCDhwgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -1518,12 +1473,12 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11722.21 - WUS2 ProdSlices + - 2.1.11722.21 - EUS ProdSlices status: code: 200 message: OK - request: - body: '{"properties": {"internet": "enabled"}}' + body: '{"properties": {"managementCluster": {"clusterSize": 4}, "internet": "Disabled"}}' headers: Accept: - application/json @@ -1534,29 +1489,29 @@ interactions: Connection: - keep-alive Content-Length: - - '39' + - '81' Content-Type: - application/json ParameterSetName: - - -g -n --internet + - -g -n --cluster-size User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 response: body: - string: '{"error":{"code":"BadRequest","message":"Internet availability, cluster - size, identity sources, vcenter password or nsxt password cannot be updated - at the same time."}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management"],"provisioningState":"Updating"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Updating","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' headers: + azure-asyncoperation: + - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/56f60711-7f70-478c-8fb2-745be20176b3?api-version=2021-06-01 cache-control: - no-cache content-length: - - '168' + - '1608' content-type: - application/json; charset=utf-8 date: - - Wed, 19 May 2021 22:04:04 GMT + - Tue, 25 May 2021 19:47:26 GMT expires: - '-1' pragma: @@ -1570,8 +1525,2859 @@ interactions: x-ms-ratelimit-remaining-subscription-writes: - '1195' x-msedge-ref: - - 'Ref A: 547975E3C9D441219A57F8F5358E6F40 Ref B: PDX31EDGE0115 Ref C: 2021-05-19T22:04:04Z' + - 'Ref A: CDB76E1BFB964ED097AE8BDAA38FFCB6 Ref B: PDX31EDGE0121 Ref C: 2021-05-25T19:47:24Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud update + Connection: + - keep-alive + ParameterSetName: + - -g -n --cluster-size + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/56f60711-7f70-478c-8fb2-745be20176b3?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/56f60711-7f70-478c-8fb2-745be20176b3","name":"56f60711-7f70-478c-8fb2-745be20176b3","percentComplete":0,"startTime":"2021-05-25T19:47:26.5224032+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '385' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:47:36 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 385CAF1416764D7884A19C9F45757D67 Ref B: PDX31EDGE0121 Ref C: 2021-05-25T19:47:36Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud update + Connection: + - keep-alive + ParameterSetName: + - -g -n --cluster-size + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/56f60711-7f70-478c-8fb2-745be20176b3?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/56f60711-7f70-478c-8fb2-745be20176b3","name":"56f60711-7f70-478c-8fb2-745be20176b3","percentComplete":50,"startTime":"2021-05-25T19:47:26.5224032+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '386' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:47:46 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 9A6A2F7289FE4F75AD9522F9682C7D3B Ref B: PDX31EDGE0121 Ref C: 2021-05-25T19:47:46Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud update + Connection: + - keep-alive + ParameterSetName: + - -g -n --cluster-size + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/56f60711-7f70-478c-8fb2-745be20176b3?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/56f60711-7f70-478c-8fb2-745be20176b3","name":"56f60711-7f70-478c-8fb2-745be20176b3","percentComplete":0,"startTime":"2021-05-25T19:47:26.5224032+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '385' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:47:56 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 598799947F8148559030C51F3B9E2656 Ref B: PDX31EDGE0121 Ref C: 2021-05-25T19:47:57Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud update + Connection: + - keep-alive + ParameterSetName: + - -g -n --cluster-size + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/56f60711-7f70-478c-8fb2-745be20176b3?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/56f60711-7f70-478c-8fb2-745be20176b3","name":"56f60711-7f70-478c-8fb2-745be20176b3","percentComplete":75,"startTime":"2021-05-25T19:47:26.5224032+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '386' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:48:06 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 926B41A853194602AF58A50E3C89BA16 Ref B: PDX31EDGE0121 Ref C: 2021-05-25T19:48:07Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud update + Connection: + - keep-alive + ParameterSetName: + - -g -n --cluster-size + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/56f60711-7f70-478c-8fb2-745be20176b3?api-version=2021-06-01 + response: + body: + string: '{"endTime":"2021-05-25T19:48:03.3796952+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/56f60711-7f70-478c-8fb2-745be20176b3","name":"56f60711-7f70-478c-8fb2-745be20176b3","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"},"startTime":"2021-05-25T19:47:26.5224032+00:00","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '2058' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:48:17 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: B927D316C2E644D99CE521F711802E3E Ref B: PDX31EDGE0121 Ref C: 2021-05-25T19:48:17Z' status: - code: 400 - message: Bad Request + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud update + Connection: + - keep-alive + ParameterSetName: + - -g -n --cluster-size + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' + headers: + cache-control: + - no-cache + content-length: + - '1610' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:48:17 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 3328B4777E3A4A1497787FE9A65383F8 Ref B: PDX31EDGE0121 Ref C: 2021-05-25T19:48:18Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.3 + method: GET + uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - max-age=86400, private + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:48:21 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ag7b2l3XpvxCgD4NQqnEaSM; expires=Thu, 24-Jun-2021 19:48:21 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrXuhdpjTKfWWt3Y-NphM-98yzrZROZE_TsTsYLGh2kTDm-Yglflfh_gu5wggsjnNZWZC-NL0zM4henJABrH2YZ8v2KTOH0dDQIpzIbPOP-wJl-He4Kbs5P8_zC6Pcwn4QNoDL-GCy0SqB8PMSC8Y5BXPbNVKAd0cvfdnYuv6n094gAA; + domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly + - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.11722.21 - WUS2 ProdSlices + status: + code: 200 + message: OK +- request: + body: '{"properties": {"internet": "enabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud update + Connection: + - keep-alive + Content-Length: + - '39' + Content-Type: + - application/json + ParameterSetName: + - -g -n --internet + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Updating","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' + headers: + azure-asyncoperation: + - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/43f70d5b-8725-4935-9140-48f927a8e218?api-version=2021-06-01 + cache-control: + - no-cache + content-length: + - '1609' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:48:23 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1193' + x-msedge-ref: + - 'Ref A: DECB84FE74E74742B510161B2C17AF17 Ref B: PDX31EDGE0108 Ref C: 2021-05-25T19:48:23Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud update + Connection: + - keep-alive + ParameterSetName: + - -g -n --internet + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/43f70d5b-8725-4935-9140-48f927a8e218?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/43f70d5b-8725-4935-9140-48f927a8e218","name":"43f70d5b-8725-4935-9140-48f927a8e218","percentComplete":10,"startTime":"2021-05-25T19:48:23.9440665+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '386' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:48:33 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 7F25E7BDF2E046378DD898D9B6118249 Ref B: PDX31EDGE0108 Ref C: 2021-05-25T19:48:34Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud update + Connection: + - keep-alive + ParameterSetName: + - -g -n --internet + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/43f70d5b-8725-4935-9140-48f927a8e218?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/43f70d5b-8725-4935-9140-48f927a8e218","name":"43f70d5b-8725-4935-9140-48f927a8e218","percentComplete":100,"startTime":"2021-05-25T19:48:23.9440665+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '387' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:48:43 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: A70E1D557D774C98B033BABEF2935F3A Ref B: PDX31EDGE0108 Ref C: 2021-05-25T19:48:44Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud update + Connection: + - keep-alive + ParameterSetName: + - -g -n --internet + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/43f70d5b-8725-4935-9140-48f927a8e218?api-version=2021-06-01 + response: + body: + string: '{"endTime":"2021-05-25T19:48:43.3506242+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/43f70d5b-8725-4935-9140-48f927a8e218","name":"43f70d5b-8725-4935-9140-48f927a8e218","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"},"startTime":"2021-05-25T19:48:23.9440665+00:00","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '2057' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:48:53 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 6DA85FD43E1246D48B4E8E82BAA012A1 Ref B: PDX31EDGE0108 Ref C: 2021-05-25T19:48:54Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud update + Connection: + - keep-alive + ParameterSetName: + - -g -n --internet + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' + headers: + cache-control: + - no-cache + content-length: + - '1609' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:48:54 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 371B6B3D4CB34B58A997F6E7F3CFA263 Ref B: PDX31EDGE0108 Ref C: 2021-05-25T19:48:54Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.3 + method: GET + uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - max-age=86400, private + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:48:56 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AkeDY_5LG0RIqLvDQSuXkwU; expires=Thu, 24-Jun-2021 19:48:57 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrrDqEn6Fn2rbn4ZySGDP2LNetjB2HTJemIc60up5DrwqZYWEyLD8khsRNB0EC6rGL9D2rcbOc_sm4tm7z2G3DzR5KqE-UdvXg46aj2z5jXERiJ473x11wyqiT1Fks8lfq0njL1rfTDX-oG7PPgnWFgKhvRh8WdpEFfMBkik9-6zcgAA; + domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly + - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.11774.11 - SCUS ProdSlices + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware authorization create + Connection: + - keep-alive + Content-Length: + - '2' + Content-Type: + - application/json + ParameterSetName: + - -g -c -n + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/authorizations/myauthname?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/authorizations/myauthname","name":"myauthname","properties":{"expressRouteAuthorizationId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er/authorizations/avs_resource_myauthname","expressRouteAuthorizationKey":"69938852-f826-474d-87a2-28368d09be9f","provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/authorizations"}' + headers: + cache-control: + - no-cache + content-length: + - '647' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:48:59 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1194' + x-msedge-ref: + - 'Ref A: AC5354FF3C8B4825B4111BE17334700D Ref B: PDX31EDGE0109 Ref C: 2021-05-25T19:48:59Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.3 + method: GET + uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - max-age=86400, private + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:49:02 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ahnn5hQQ5PhEuqkhkYG-AK4; expires=Thu, 24-Jun-2021 19:49:02 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr7rJ2cJ02us9iqkEFxCmPBL1nz2aUahGC7lXz8d3UrNUxRqh6K1Z55jsxrIDQ76bfOL0bxDa6W-ZfGup_ATcqOLl0KcXTt7Y0nJRUtZtGEN2JnPd9zkNjHp8cH6Nyk1RSAb2xLDWwNiVmIOwLLEVB8L7EuwuJL9PIaqej6hF6wnggAA; + domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly + - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.11722.21 - WUS2 ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware authorization delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -c -n + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/authorizations/myauthname?api-version=2021-06-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + content-type: + - text/html + date: + - Tue, 25 May 2021 19:49:05 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + x-msedge-ref: + - 'Ref A: 125150855EF8499D99A85711FFFAE612 Ref B: PDX31EDGE0119 Ref C: 2021-05-25T19:49:05Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.3 + method: GET + uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - max-age=86400, private + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:49:07 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AvQ_5Ad8kPhEuvxdraTj8yM; expires=Thu, 24-Jun-2021 19:49:08 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrqpEdwyanH9tzy8o2TrahQEv8T8WJDrnWyuaJryh8WBBGL58I5Yn72__8yU2ugpC-xKTzPHgix4d6AKm6Lt1wBsScnKaSmSWn8zfmJjOatKFmXhZFu9Q9NhfgV5ACYG7PGoXfpjzIvE1QBGDs3qhrb9b9ZBWDOi24yLXpHq7TI9MgAA; + domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly + - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.11722.21 - WUS2 ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud addidentitysource + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --alias --domain --base-user-dn --base-group-dn --primary-server + --username --password + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' + headers: + cache-control: + - no-cache + content-length: + - '1609' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:49:09 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 88F69C7B2A294DF39F6BC1788E7E199B Ref B: PDX31EDGE0121 Ref C: 2021-05-25T19:49:10Z' + status: + code: 200 + message: OK +- request: + body: '{"location": "centralus", "tags": {}, "sku": {"name": "av20"}, "properties": + {"managementCluster": {"clusterSize": 4}, "internet": "Enabled", "identitySources": + [{"name": "groupName", "alias": "groupAlias", "domain": "domain", "baseUserDN": + "ou=baseUser", "baseGroupDN": "ou=baseGroup", "primaryServer": "ldaps://1.1.1.1:636", + "ssl": "Disabled", "username": "someone", "password": "something"}], "circuit": + {}, "networkBlock": "192.168.48.0/22"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud addidentitysource + Connection: + - keep-alive + Content-Length: + - '446' + Content-Type: + - application/json + ParameterSetName: + - -g -c -n --alias --domain --base-user-dn --base-group-dn --primary-server + --username --password + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[{"alias":"groupAlias","baseGroupDN":"ou=baseGroup","baseUserDN":"ou=baseUser","domain":"domain","name":"groupName","primaryServer":"ldaps://1.1.1.1:636/","ssl":"Disabled"}],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Updating","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' + headers: + azure-asyncoperation: + - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7d80396c-89ea-475b-bcaa-f491ce2166b9?api-version=2021-06-01 + cache-control: + - no-cache + content-length: + - '1779' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:49:10 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1193' + x-msedge-ref: + - 'Ref A: F614701902C142BE8B5F1D4FB3AE4748 Ref B: PDX31EDGE0121 Ref C: 2021-05-25T19:49:10Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud addidentitysource + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --alias --domain --base-user-dn --base-group-dn --primary-server + --username --password + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7d80396c-89ea-475b-bcaa-f491ce2166b9?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7d80396c-89ea-475b-bcaa-f491ce2166b9","name":"7d80396c-89ea-475b-bcaa-f491ce2166b9","percentComplete":10,"startTime":"2021-05-25T19:49:11.0591324+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '386' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:49:20 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 1BA10B953455406B91F2D012A5A7B356 Ref B: PDX31EDGE0121 Ref C: 2021-05-25T19:49:21Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud addidentitysource + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --alias --domain --base-user-dn --base-group-dn --primary-server + --username --password + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7d80396c-89ea-475b-bcaa-f491ce2166b9?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7d80396c-89ea-475b-bcaa-f491ce2166b9","name":"7d80396c-89ea-475b-bcaa-f491ce2166b9","percentComplete":50,"startTime":"2021-05-25T19:49:11.0591324+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '386' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:49:30 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: CB570858ED8F4E2890FBE614605FC00C Ref B: PDX31EDGE0121 Ref C: 2021-05-25T19:49:31Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud addidentitysource + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --alias --domain --base-user-dn --base-group-dn --primary-server + --username --password + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7d80396c-89ea-475b-bcaa-f491ce2166b9?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7d80396c-89ea-475b-bcaa-f491ce2166b9","name":"7d80396c-89ea-475b-bcaa-f491ce2166b9","percentComplete":100,"startTime":"2021-05-25T19:49:11.0591324+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '387' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:49:41 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 5BFE28AFF5854217AEC86BCA13AB9B12 Ref B: PDX31EDGE0121 Ref C: 2021-05-25T19:49:41Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud addidentitysource + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --alias --domain --base-user-dn --base-group-dn --primary-server + --username --password + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7d80396c-89ea-475b-bcaa-f491ce2166b9?api-version=2021-06-01 + response: + body: + string: '{"endTime":"2021-05-25T19:49:11.0591324+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7d80396c-89ea-475b-bcaa-f491ce2166b9","name":"7d80396c-89ea-475b-bcaa-f491ce2166b9","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[{"alias":"groupAlias","baseGroupDN":"ou=baseGroup","baseUserDN":"ou=baseUser","domain":"domain","name":"groupName","primaryServer":"ldaps://1.1.1.1:636/","ssl":"Disabled"}],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"},"startTime":"2021-05-25T19:49:11.0591324+00:00","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '2228' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:49:51 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: BEA0152B58E24DD0A0326FE400049C93 Ref B: PDX31EDGE0121 Ref C: 2021-05-25T19:49:52Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud addidentitysource + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --alias --domain --base-user-dn --base-group-dn --primary-server + --username --password + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[{"alias":"groupAlias","baseGroupDN":"ou=baseGroup","baseUserDN":"ou=baseUser","domain":"domain","name":"groupName","primaryServer":"ldaps://1.1.1.1:636/","ssl":"Disabled"}],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' + headers: + cache-control: + - no-cache + content-length: + - '1780' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:49:51 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 31168D2D44054B12BCB35B78093B3648 Ref B: PDX31EDGE0121 Ref C: 2021-05-25T19:49:52Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.3 + method: GET + uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - max-age=86400, private + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:49:54 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AoDgYjLEGqlDvoBIN4Vx00s; expires=Thu, 24-Jun-2021 19:49:54 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrd1UjYb8TOud_cknhdePlfXTXkEPusTFUpz1-GNR5Tt4E8OE5ovqVY0Z-Vlw6Bfygc-Anp8MeYwu7oIlIUQliSTfAc-Squ3QKinMi7cCOicT-9JBUXdi7VGorTY6s3V6s2VMrQY20BkYDDDTYrg8By1XdqsAbYNa10geIhpvg4N4gAA; + domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly + - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.11722.21 - EUS ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud deleteidentitysource + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --alias --domain + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[{"alias":"groupAlias","baseGroupDN":"ou=baseGroup","baseUserDN":"ou=baseUser","domain":"domain","name":"groupName","primaryServer":"ldaps://1.1.1.1:636/","ssl":"Disabled"}],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' + headers: + cache-control: + - no-cache + content-length: + - '1780' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:49:56 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: DE523D98EA244D58B94692B3CD2BAC2D Ref B: PDX31EDGE0111 Ref C: 2021-05-25T19:49:56Z' + status: + code: 200 + message: OK +- request: + body: '{"location": "centralus", "tags": {}, "sku": {"name": "av20"}, "properties": + {"managementCluster": {"clusterSize": 4}, "internet": "Enabled", "identitySources": + [], "circuit": {}, "networkBlock": "192.168.48.0/22"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud deleteidentitysource + Connection: + - keep-alive + Content-Length: + - '215' + Content-Type: + - application/json + ParameterSetName: + - -g -c -n --alias --domain + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[{"alias":"groupAlias","baseGroupDN":"ou=baseGroup","baseUserDN":"ou=baseUser","domain":"domain","name":"groupName","primaryServer":"ldaps://1.1.1.1:636/","ssl":"Disabled"}],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Updating","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' + headers: + azure-asyncoperation: + - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/de914984-7e9f-4988-ac5d-5983d705e150?api-version=2021-06-01 + cache-control: + - no-cache + content-length: + - '1779' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:49:57 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1192' + x-msedge-ref: + - 'Ref A: 64AFF2EE93AB489EB84EB15215390E0A Ref B: PDX31EDGE0111 Ref C: 2021-05-25T19:49:57Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud deleteidentitysource + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --alias --domain + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/de914984-7e9f-4988-ac5d-5983d705e150?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/de914984-7e9f-4988-ac5d-5983d705e150","name":"de914984-7e9f-4988-ac5d-5983d705e150","percentComplete":11,"startTime":"2021-05-25T19:49:58.3377637+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '386' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:50:08 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 0832D6E395E941398E99D3E7D13B9AC6 Ref B: PDX31EDGE0111 Ref C: 2021-05-25T19:50:08Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud deleteidentitysource + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --alias --domain + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/de914984-7e9f-4988-ac5d-5983d705e150?api-version=2021-06-01 + response: + body: + string: '{"endTime":"2021-05-25T19:49:58.3377637+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/de914984-7e9f-4988-ac5d-5983d705e150","name":"de914984-7e9f-4988-ac5d-5983d705e150","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"},"startTime":"2021-05-25T19:49:58.3377637+00:00","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '2057' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:50:18 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 99677E3C9D2E4627931D48F0964B7103 Ref B: PDX31EDGE0111 Ref C: 2021-05-25T19:50:18Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud deleteidentitysource + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --alias --domain + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' + headers: + cache-control: + - no-cache + content-length: + - '1609' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:50:18 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: B5B09533440748B8ACA683412B35FB62 Ref B: PDX31EDGE0111 Ref C: 2021-05-25T19:50:19Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.3 + method: GET + uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - max-age=86400, private + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:50:21 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AkeQkiQEJShKjs8gpWu6fHM; expires=Thu, 24-Jun-2021 19:50:21 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrw3Letx1uj_S-QvM3R2w1q7OWWvxn1j9iuWT2SibgAD417KPDlikYY-JoY0nLyP-f8C1QsSnWv3fTttqPtiXWPQF3qc5ogoOAsITQIK0dD3El95GmoL2KqVowSZV7DNlQlI2vsZ0Bw9wwkCXsmouyeuLE7T0iHVglt5kwc20QKvsgAA; + domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly + - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.11774.8 - WUS2 ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware cluster list + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters?api-version=2021-06-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:50:23 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 7DBD181065754870BF7853B420E19C75 Ref B: PDX31EDGE0115 Ref C: 2021-05-25T19:50:24Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.3 + method: GET + uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - max-age=86400, private + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:50:25 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AnjLNeGndYxIrNIxpXSMaeA; expires=Thu, 24-Jun-2021 19:50:26 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrJcPYHvhvI0sZhl2jjMqEYHOFmy8Y0iE6g9NpZoEw_qqUSTdoWRJfKb2qo4K2s6WtyAlxdRF2CPiA6f4_YBVqZ27tbzsHogNcumrnAYHaAp6WD51GH--LfhmWexcI8Y7MQvCA0JMXSh8QNNF19Id-ObJOQZi51HnQwwqhbfA0CBogAA; + domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly + - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.11722.21 - SCUS ProdSlices + status: + code: 200 + message: OK +- request: + body: '{"sku": {"name": "av20"}, "properties": {"clusterSize": 3}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware cluster create + Connection: + - keep-alive + Content-Length: + - '59' + Content-Type: + - application/json + ParameterSetName: + - -g -c -n --sku --size + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":3,"hosts":["gp-fakehost04.mp01.mock01.vmcp.vs.management","gp-fakehost41.mp01.mock01.vmcp.vs.management","gp-fakehost33.mp01.mock01.vmcp.vs.management"],"provisioningState":"Building"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"}' + headers: + azure-asyncoperation: + - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/49f2b286-3b8c-4e1d-8d0e-3bd6910d4b12?api-version=2021-06-01 + cache-control: + - no-cache + content-length: + - '531' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:50:32 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + x-msedge-ref: + - 'Ref A: 1D289161C38E4293857990497D9EEB0C Ref B: PDX31EDGE0107 Ref C: 2021-05-25T19:50:28Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --sku --size + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/49f2b286-3b8c-4e1d-8d0e-3bd6910d4b12?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/49f2b286-3b8c-4e1d-8d0e-3bd6910d4b12","name":"49f2b286-3b8c-4e1d-8d0e-3bd6910d4b12","percentComplete":0,"startTime":"2021-05-25T19:50:32.4285195+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '405' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:50:42 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 25E2D53F5A3D4973805408F1676B747B Ref B: PDX31EDGE0107 Ref C: 2021-05-25T19:50:42Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --sku --size + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/49f2b286-3b8c-4e1d-8d0e-3bd6910d4b12?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/49f2b286-3b8c-4e1d-8d0e-3bd6910d4b12","name":"49f2b286-3b8c-4e1d-8d0e-3bd6910d4b12","percentComplete":50,"startTime":"2021-05-25T19:50:32.4285195+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '406' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:50:52 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: C298ECE0F6C6448D81BEFE455B7EF11B Ref B: PDX31EDGE0107 Ref C: 2021-05-25T19:50:52Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --sku --size + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/49f2b286-3b8c-4e1d-8d0e-3bd6910d4b12?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/49f2b286-3b8c-4e1d-8d0e-3bd6910d4b12","name":"49f2b286-3b8c-4e1d-8d0e-3bd6910d4b12","percentComplete":0,"startTime":"2021-05-25T19:50:32.4285195+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '405' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:51:03 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 733B3C029C0E455C8AFACEB8A13A9C96 Ref B: PDX31EDGE0107 Ref C: 2021-05-25T19:51:03Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --sku --size + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/49f2b286-3b8c-4e1d-8d0e-3bd6910d4b12?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/49f2b286-3b8c-4e1d-8d0e-3bd6910d4b12","name":"49f2b286-3b8c-4e1d-8d0e-3bd6910d4b12","percentComplete":75,"startTime":"2021-05-25T19:50:32.4285195+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '406' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:51:13 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: A3FECA1485CC46A9B12CA4B8362AF7DC Ref B: PDX31EDGE0107 Ref C: 2021-05-25T19:51:13Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --sku --size + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/49f2b286-3b8c-4e1d-8d0e-3bd6910d4b12?api-version=2021-06-01 + response: + body: + string: '{"endTime":"2021-05-25T19:51:14.5220424+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/49f2b286-3b8c-4e1d-8d0e-3bd6910d4b12","name":"49f2b286-3b8c-4e1d-8d0e-3bd6910d4b12","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":3,"hosts":["gp-fakehost04.mp01.mock01.vmcp.vs.management","gp-fakehost41.mp01.mock01.vmcp.vs.management","gp-fakehost33.mp01.mock01.vmcp.vs.management"],"provisioningState":"Building"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"},"startTime":"2021-05-25T19:50:32.4285195+00:00","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '999' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:51:23 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 51627AC61DB54A20BEAF7ACCFBAB3782 Ref B: PDX31EDGE0107 Ref C: 2021-05-25T19:51:23Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --sku --size + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":3,"hosts":["gp-fakehost04.mp01.mock01.vmcp.vs.management","gp-fakehost41.mp01.mock01.vmcp.vs.management","gp-fakehost33.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"}' + headers: + cache-control: + - no-cache + content-length: + - '532' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:51:23 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 1EE314061A67423DB753E4F2325026AF Ref B: PDX31EDGE0107 Ref C: 2021-05-25T19:51:23Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.3 + method: GET + uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - max-age=86400, private + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:51:26 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AjWULvilp05AqwrOkSt-g8s; expires=Thu, 24-Jun-2021 19:51:27 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrtS7NRyZfXCy32Zb2WyjDZAfpbiGha-lL4vzCVBnUUydnOSs4ZZsWC1W5UZD6SZ4HuxPV_2-PdXYji5UpdCbCD2FQfRiR_p-bYmIzgwpCkD6cSWZrZPrF4T81XJoajmAuCl4aa9k97b7oGYHTaORsq98E4BLVdxZyucTu9MV9U6UgAA; + domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly + - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.11722.21 - NCUS ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware cluster list + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters?api-version=2021-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":3,"hosts":["gp-fakehost04.mp01.mock01.vmcp.vs.management","gp-fakehost41.mp01.mock01.vmcp.vs.management","gp-fakehost33.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"}]}' + headers: + cache-control: + - no-cache + content-length: + - '544' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:51:29 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: F24E765B92774DF9B67C98CAB1492B43 Ref B: PDX31EDGE0110 Ref C: 2021-05-25T19:51:29Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.3 + method: GET + uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - max-age=86400, private + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:51:31 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Arf9w5MFvN9GuGXzRtlP270; expires=Thu, 24-Jun-2021 19:51:32 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrQdO1toQLxIUDpAVvuX6H_gJb6NMhYpLV6hOEOvuY-ivCkBdDeaCyuJG3_OOFjXGmE0CAtIDG84IsoHrS2E9j5hnsBnzP36Pub_eAnPv0oXC4-5pLL5Kmx0yq9VMjtyod04lFeTZpXg0CiVEqhbwFyajYH8elAN_Q05-yeBbN6I0gAA; + domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly + - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.11722.21 - NCUS ProdSlices + status: + code: 200 + message: OK +- request: + body: '{"properties": {"clusterSize": 4}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware cluster update + Connection: + - keep-alive + Content-Length: + - '34' + Content-Type: + - application/json + ParameterSetName: + - -g -c -n --size + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":4,"hosts":["gp-fakehost04.mp01.mock01.vmcp.vs.management","gp-fakehost41.mp01.mock01.vmcp.vs.management","gp-fakehost33.mp01.mock01.vmcp.vs.management","gp-fakehost36.mp01.mock01.vmcp.vs.management"],"provisioningState":"Updating"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"}' + headers: + azure-asyncoperation: + - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/83603d1d-75c6-4deb-b8c2-b8a2bbaf0604?api-version=2021-06-01 + cache-control: + - no-cache + content-length: + - '578' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:51:35 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1193' + x-msedge-ref: + - 'Ref A: 218DDD1CEC2348879771165197E26CC9 Ref B: PDX31EDGE0122 Ref C: 2021-05-25T19:51:34Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware cluster update + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --size + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/83603d1d-75c6-4deb-b8c2-b8a2bbaf0604?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/83603d1d-75c6-4deb-b8c2-b8a2bbaf0604","name":"83603d1d-75c6-4deb-b8c2-b8a2bbaf0604","percentComplete":0,"startTime":"2021-05-25T19:51:36.2520000+00:00","status":"Pending"}' + headers: + cache-control: + - no-cache + content-length: + - '404' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:51:45 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 993FA1657ECE4F06B3ADBD4CEA44FF7B Ref B: PDX31EDGE0122 Ref C: 2021-05-25T19:51:46Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware cluster update + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --size + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/83603d1d-75c6-4deb-b8c2-b8a2bbaf0604?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/83603d1d-75c6-4deb-b8c2-b8a2bbaf0604","name":"83603d1d-75c6-4deb-b8c2-b8a2bbaf0604","percentComplete":0,"startTime":"2021-05-25T19:51:36.2520000+00:00","status":"Pending"}' + headers: + cache-control: + - no-cache + content-length: + - '404' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:51:55 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 8C97DCBCA592440F8249B2BC1D35BC14 Ref B: PDX31EDGE0122 Ref C: 2021-05-25T19:51:56Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware cluster update + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --size + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/83603d1d-75c6-4deb-b8c2-b8a2bbaf0604?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/83603d1d-75c6-4deb-b8c2-b8a2bbaf0604","name":"83603d1d-75c6-4deb-b8c2-b8a2bbaf0604","percentComplete":0,"startTime":"2021-05-25T19:51:36.2520000+00:00","status":"Pending"}' + headers: + cache-control: + - no-cache + content-length: + - '404' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:52:06 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: E13D5DED97384D049FBDDE79CCC3CD27 Ref B: PDX31EDGE0122 Ref C: 2021-05-25T19:52:06Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.3 + method: GET + uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - max-age=86400, private + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:52:18 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AmKNTE6GP7ZCv2KOlVli3G0; expires=Thu, 24-Jun-2021 19:52:19 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr4GQwdCFJQAbfdqrbvr9ncozktRwryTEbGqYPdD31d0m9UBlT-5aaA5xEdajKdRDSO_onLuF9L_Vxjg1Nt2lSjemcvBbDWe_3NlumWajKR6TiE3KIinHh-23-huuQAHHIwOuDTryDOhvQJr8x9dwFjHfkLTP09KYUJVQdHj2ZIjogAA; + domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly + - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.11722.21 - WUS2 ProdSlices + status: + code: 200 + message: OK +- request: + body: grant_type=refresh_token&client_id=04b07795-8ddb-461a-bbee-02f9e1bf7b46&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&refresh_token=0.AAAAJtSG9haN20KBt6tXjhEMzZV3sATbjRpGu-4C-eG_e0YBABk.1.AgABAAAAAABYrKuFWqWSRpp9FiMCi-70AwDs_wQA7_-suBjJx7DaB6f4pkJ2S-AdlHn_PNRq3TWPrtVBmr0hIXbu-bWvhMrVVBmS7DXg5X_CUr5t9W7gIpa5y3EDaAu-a6kNMHx2q-rKvhPrP4aTETMDrOXOosreMgBHY85qXuWKocUsiJi8CILeG6OegqtZjpCbQdbZ713YJNP3dNUk6xt3iEEiR9HHgzwzAe3d3vTbgZpZjylDdbQrRLN64Jl8QGlFTeMNPJPkKtyPPE9h0VE6XgwVcXvwt3WetNYdJ_WzmsIsgNZOWjksBhgDteiw40JmSfFkaevqXHiNcIsuty9X2h3q-JHWJJQW2kKfoZgJaP0grXA3CBVEKQqtlFpBroru7ZvcI4_mOXsMiz1OZEMNq4L1E-v65WWXq8XMffZYNotAYgD5P55bDrClRbpcqkcNtSzajILTv-GUJiqcYp5lhItR88s_-rH73VOBNsvvCNbDRyEZgyvtAgfbcCQDZMJK7-Wx2-N8coyKG8Bm_S3-rD9DCew685xzyhRp95NX98H89lefkoYiqqNNxtAlQ6oPww8c-QeFHfkQWsy4dlctkxRudleNOfPqKn0Y-bmyXpoIi2dnjXGR3pGk0SU4cCN9JtCaW_BewogfkAnv_JHTWDHPUfpWyW8hizb-Vvze0xOpL2dVs2ur2ZsqUeV_XL4ZPOERd-M2ArSP7oYkIZzgGhFo_0hogQkDdBk1wMkx4iPLPDlK7DujgLR75rRSkWQ-JCwG9o3UT-yZrfDSQNfkMGkl9Mg7Q4EEzhR1UGcyi1UoPcFYzWA9WFIz7emnPCYhM4HKG9HgczSGuVDN-ZwIiwaYTPomEMDe9-NWy49MMnZSH3dEdzvVKfUgA7otyRFSLRZcEVTZljw_vKEJ-hjmy2Nc3q7BU3pZaKHf1bZmYp314rLGSAgZ3vRRn5l-ehsx61JZ2TNB1V8y4xqH15hLhZQQ0Ck4Iy2tbJNwy8g4gieTWmkL2ULnUhrBKtgfjRZMOqbem6oW54boES3TCM_LB96Hj-Ptbb1gZ0ZT93rSoTZtt2S4HZAmMfiS7oyivf6b4IgVMXGpNHkyJnZfofAPobj0UoKN4gHZPO_1zNLaLcNZaOLR.AQABAAAAAABYrKuFWqWSRpp9FiMCi-70al6en92-qyp9ooJ6jdSjKZC_h6eNVGxu3JbWsFfFljxu5WLqiIP3bcjJ556o74awUZALHAEurMUKD45nyY5H8dzhbKs8ce6DRcG5AM-lnUwv-jd-0u-hvoAR9cNGMraK-zCu8bvjV4yXDZ2PakTsPtm08PBmB9I28hHOZLBXppNpR7qD7TB3ny-QE8EIkZLhLZk0B0BK6uLeSCoj_r0Zok0wdAY_oE-yXKb9pMbtPWhw65TwFHGjXtKNckhzHELr5-guDRQOhKrqJV8kY4Q_M4s937ux36McKeBXT69bSrIgAA + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1671' + User-Agent: + - python-requests/2.22.0 + content-type: + - application/x-www-form-urlencoded + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.3 + method: POST + uri: https://localhost:8866/f686d426-8d16-42db-81b7-ab578e110ccd/oauth2/token + response: + body: + string: '{"token_type":"Bearer","scope":"user_impersonation","expires_in":"3598","ext_expires_in":"3598","expires_on":"1621975941","not_before":"1621972041","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6InZhcF9pdmtIdHRMRmNubm9CWEF3SjVIWDBLNCIsImtpZCI6InZhcF9pdmtIdHRMRmNubm9CWEF3SjVIWDBLNCJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvZjY4NmQ0MjYtOGQxNi00MmRiLTgxYjctYWI1NzhlMTEwY2NkLyIsImlhdCI6MTYyMTk3MjA0MSwibmJmIjoxNjIxOTcyMDQxLCJleHAiOjE2MjE5NzU5NDEsIl9jbGFpbV9uYW1lcyI6eyJncm91cHMiOiJzcmMxIn0sIl9jbGFpbV9zb3VyY2VzIjp7InNyYzEiOnsiZW5kcG9pbnQiOiJodHRwczovL2dyYXBoLnBwZS53aW5kb3dzLm5ldC9mNjg2ZDQyNi04ZDE2LTQyZGItODFiNy1hYjU3OGUxMTBjY2QvdXNlcnMvZWY3OWIxY2EtMGFlMS00NTdjLWFhNzctOGI4ODkyYTdiZmYyL2dldE1lbWJlck9iamVjdHMifX0sImFjciI6IjEiLCJhaW8iOiJFMk5nWURnVHVrUkE1TENaMzF2K3JHUzJCR1AyVjNlMTEvTzB5MXhWZnZlZ1RMdVY4U2dBIiwiYW1yIjpbInB3ZCJdLCJhcHBpZCI6IjA0YjA3Nzk1LThkZGItNDYxYS1iYmVlLTAyZjllMWJmN2I0NiIsImFwcGlkYWNyIjoiMCIsImZhbWlseV9uYW1lIjoiVGFnZ2FydCIsImdpdmVuX25hbWUiOiJDYW1lcm9uIiwiaXBhZGRyIjoiNTAuMzguNTIuMzgiLCJuYW1lIjoiQ2FtZXJvbiBUYWdnYXJ0Iiwib2lkIjoiZWY3OWIxY2EtMGFlMS00NTdjLWFhNzctOGI4ODkyYTdiZmYyIiwib25wcmVtX3NpZCI6IlMtMS01LTIxLTEyNDUyNTA5NS03MDgyNTk2MzctMTU0MzExOTAyMS0xOTY5MDY2IiwicHVpZCI6IjEwMDNERkZEMDAyRTc2QzYiLCJyaCI6IjAuQUFBQUp0U0c5aGFOMjBLQnQ2dFhqaEVNelpWM3NBVGJqUnBHdS00Qy1lR19lMFlCQUJrLiIsInNjcCI6InVzZXJfaW1wZXJzb25hdGlvbiIsInN1YiI6Im8xYnRTem4wUWE5ZDVuTzh3WXJJZUVDazlyUFBYSGVNbzlyMlRYR01GczQiLCJ0aWQiOiJmNjg2ZDQyNi04ZDE2LTQyZGItODFiNy1hYjU3OGUxMTBjY2QiLCJ1bmlxdWVfbmFtZSI6ImNhdGFnZ2FyQG1pY3Jvc29mdC5jb20iLCJ1cG4iOiJjYXRhZ2dhckBtaWNyb3NvZnQuY29tIiwidXRpIjoiY0hnYWozdm1JMEdWdzlxRHJmZ2pBQSIsInZlciI6IjEuMCIsIndpZHMiOlsiYjc5ZmJmNGQtM2VmOS00Njg5LTgxNDMtNzZiMTk0ZTg1NTA5Il0sInhtc190Y2R0IjoxMjg0NjkwNjkzfQ.UX8YNGjKtOpk9MGU9lKC7ck5dnM2J062u_E8PPaH7XX19DALfcuVTyestuZyc-G2JM07-Z1MHB58d9pavqfc4wWbBuK8j0sPqnU2a0WByBqfNWdCJFss7t2UYKnOMpVOBWdt1yNUl7cQ0d6aXkLfEvMKxTM9uqH77vEiebVII3YfH4SLyjv7P_zQgY4vvopaIS_WXx3Y_8t0dfGcSLBUxvsw9dVtXrwyHMnVjnhXQtZG19OjI5wn3998G2C9ZImuJeNuXwYtLpyyuh_h-jgT8GrE4wYCkCqPi_1uDvfh3xWQgXmt9Nnp1Hh8aGMKBtCC1sG3GjzW3me2mX2xBMJkHQ","refresh_token":"0.AAAAJtSG9haN20KBt6tXjhEMzZV3sATbjRpGu-4C-eG_e0YBABk.1.AgABAAAAAABYrKuFWqWSRpp9FiMCi-70AwDs_wQA7_-wzB46oBqfNIhjUxnsusVb9-E22giGazj6VgG_YFQXAKAiCmPYsDIjG1ZzEQk3-HH9PAd9LFdBhwiCbiDvHZNFMzK1Ff3t972xndvRY1ljwywhSVEdkCe6WGY3-73eb6dOR5xAkOsWLn2m-eiIikegOti942R99C30boq8PlowSammzjNNgcefPSmu6yQmxZUpk1EPeqQf9OLYVcmEW12ZnSKw2crrba1w-JlfIqOovdVh2mcz526xrm867jDICdd6Fqe7Sr_rqXr37P-R5qq3Nct3H64JDgYLWCcYh_-U4CHT2SVxqQ4IrybO7QozQMEIEJno7ycgDdUYU-36w6AMdZ5gorzWboR7ejx-y2rBQDDUkT7zuW8lLIfmP8Xz1l4xk7MJtCMb76S97l_N_6mIWdGbXoT_S8s4mmZMfIc4uf5at-FPOaiaQpv4x_J0WP40APWB7fzOyNtzvjkxM2LxymAUSEtzHjhoOY4G-SE-MwIroCwmuG7Tuwx_SD8KOGzXJSiKoSDBDioSoLYm0gGci7caeVooxrFUkg4xu_GOEIEoc--OHcf2_-Uuf9RIiWBbsIkQqLEkbUhP4maqO3e5nWcTPdvLTYHTNRHkTJUxim1oZEZ3R-ZvTxirRKAYncb3CLJl1wY_VCkFqYCP77RGylMCkPb6H0PeRP9KSIRtgQQOi6KFE5N-3FY8PZSA3P3JnbGDvEWonSaiV0hhSLrCZbSiOgXzac5XMk-1YL_pHRRzILG0nNcyDB2wtwPrLZk_gCQv_wUQwxYSLFF7EmvzWHzgwKOK3IsX4TP-zKtrIoLBPxLoQAl3oJ3dgyijnMTmOJMsKYT77C49n3vlZxGWU1RDfyelWv-YLnetY_tPSfvI2pizFLFPajnimA1hga03UK6aS-ZsN_KsS4MgJhaNZdjiiVfUmcpYBwTzjl6DfVec9aFA2Iok2BcWQHPuGxZbMg-gsNzqwJqoO8_2VT5HwDwX5Xek3ehJw5efJjT8KjzNFVK61vg4DAjeDpggKCGn82YHafh7H1By61ChCZXoYBYBXSdiISHdG72acuNTinn-WF5s3N2KIDRQTx-2tt1KUm6L1SFQ.AQABAAAAAABYrKuFWqWSRpp9FiMCi-70nVDkpLUAoXoLHE-Kx6q_iG-hWZ05qL2YcZyeXVUrcD3csic3ZCk3oeEnULQ0WBfty7uP7zQ2U5r1gGJYRcfJg4X2A8YOfTfL2Fo3zwe4IE3nzTlfME4R_vCbcVpnWNq69-CW4Vcg65Xg762l63UzRSRKv7ZnVKLDfWmO7lVZEIo9nszFCpe0iWCRwSYfUczkJEZb77vKfa_ZQKHph0E_IZNWBFjjoQU3iZzUMrhiyTPniT10Pm1ppR0z-KOAIRkWb9QM2Muk3FBCcEv6mXvNp0vyYbM-8snoM8Cm-xOaqCEgAA","foci":"1"}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '3743' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:52:21 GMT + expires: + - '-1' + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + pragma: + - no-cache + set-cookie: + - fpc=Amy_IFBdkwtBqSKIx4tYG36LFFZrAQAAAHRMP9gOAAAA; expires=Thu, 24-Jun-2021 + 19:52:22 GMT; path=/; secure; HttpOnly; SameSite=None + - stsservicecookie=estsppe; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-clitelem: + - 1,0,0,3303550.0282, + x-ms-ests-server: + - 2.1.11811.0 - CHY PPE + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware cluster update + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --size + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/83603d1d-75c6-4deb-b8c2-b8a2bbaf0604?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/83603d1d-75c6-4deb-b8c2-b8a2bbaf0604","name":"83603d1d-75c6-4deb-b8c2-b8a2bbaf0604","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":4,"hosts":["gp-fakehost04.mp01.mock01.vmcp.vs.management","gp-fakehost41.mp01.mock01.vmcp.vs.management","gp-fakehost33.mp01.mock01.vmcp.vs.management","gp-fakehost36.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"},"startTime":"2021-05-25T19:51:36.2520000+00:00","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '1001' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:52:22 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 472D1C07FAAA4D57B694244707F64F6F Ref B: PDX31EDGE0122 Ref C: 2021-05-25T19:52:22Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware cluster update + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --size + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":4,"hosts":["gp-fakehost04.mp01.mock01.vmcp.vs.management","gp-fakehost41.mp01.mock01.vmcp.vs.management","gp-fakehost33.mp01.mock01.vmcp.vs.management","gp-fakehost36.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"}' + headers: + cache-control: + - no-cache + content-length: + - '579' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:52:22 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 03535E0F263544C1ACAAFE6A1E358ED2 Ref B: PDX31EDGE0122 Ref C: 2021-05-25T19:52:23Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.3 + method: GET + uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - max-age=86400, private + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:52:25 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AoeLOn_1c0ZDnPED0p3fgRE; expires=Thu, 24-Jun-2021 19:52:26 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrawWYCFdRomjjH11vJWh91PcU4pVzVR2VirUc9L4RC8LM4k_IUZAnlmzCoh_pqvKC7l8fH1SQZKBu1XQiBiDNh6-VVHWiee7EJDKFksqS4_exAhQTxxCoxQzmWiQSH-fieg7v1y_1JWRuMc4da3j5NcRPjsW3JSiITvlshVMfuB0gAA; + domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly + - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.11774.8 - WUS2 ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware cluster delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -c -n + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":4,"hosts":["gp-fakehost04.mp01.mock01.vmcp.vs.management","gp-fakehost41.mp01.mock01.vmcp.vs.management","gp-fakehost33.mp01.mock01.vmcp.vs.management","gp-fakehost36.mp01.mock01.vmcp.vs.management"],"provisioningState":"Deleting"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"}' + headers: + azure-asyncoperation: + - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/d51524ed-7c0a-4804-a981-c5ddc5735851?api-version=2021-06-01 + cache-control: + - no-cache + content-length: + - '578' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:52:29 GMT + expires: + - '-1' + location: + - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationresults/d51524ed-7c0a-4804-a981-c5ddc5735851?api-version=2021-06-01 + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + x-msedge-ref: + - 'Ref A: A261869757EB4806B8A918333BCA07CB Ref B: PDX31EDGE0106 Ref C: 2021-05-25T19:52:28Z' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware cluster delete + Connection: + - keep-alive + ParameterSetName: + - -g -c -n + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/d51524ed-7c0a-4804-a981-c5ddc5735851?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/d51524ed-7c0a-4804-a981-c5ddc5735851","name":"d51524ed-7c0a-4804-a981-c5ddc5735851","percentComplete":0,"startTime":"2021-05-25T19:52:29.4267110+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '405' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:52:39 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 91ECEAAD57E24A2BABECA0DD90FD7974 Ref B: PDX31EDGE0106 Ref C: 2021-05-25T19:52:40Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware cluster delete + Connection: + - keep-alive + ParameterSetName: + - -g -c -n + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/d51524ed-7c0a-4804-a981-c5ddc5735851?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/d51524ed-7c0a-4804-a981-c5ddc5735851","name":"d51524ed-7c0a-4804-a981-c5ddc5735851","percentComplete":50,"startTime":"2021-05-25T19:52:29.4267110+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '406' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:52:49 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 3670E122ADE44DE3A6545A5CAF456099 Ref B: PDX31EDGE0106 Ref C: 2021-05-25T19:52:50Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware cluster delete + Connection: + - keep-alive + ParameterSetName: + - -g -c -n + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/d51524ed-7c0a-4804-a981-c5ddc5735851?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/d51524ed-7c0a-4804-a981-c5ddc5735851","name":"d51524ed-7c0a-4804-a981-c5ddc5735851","percentComplete":50,"startTime":"2021-05-25T19:52:29.4267110+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '406' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:53:00 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 06671AAD264445EA85E2191BDEAB9942 Ref B: PDX31EDGE0106 Ref C: 2021-05-25T19:53:00Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware cluster delete + Connection: + - keep-alive + ParameterSetName: + - -g -c -n + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/d51524ed-7c0a-4804-a981-c5ddc5735851?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/d51524ed-7c0a-4804-a981-c5ddc5735851","name":"d51524ed-7c0a-4804-a981-c5ddc5735851","percentComplete":75,"startTime":"2021-05-25T19:52:29.4267110+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '406' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:53:10 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: B8D6D0633C474D22B4D273197CB8009A Ref B: PDX31EDGE0106 Ref C: 2021-05-25T19:53:10Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware cluster delete + Connection: + - keep-alive + ParameterSetName: + - -g -c -n + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/d51524ed-7c0a-4804-a981-c5ddc5735851?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/d51524ed-7c0a-4804-a981-c5ddc5735851","name":"d51524ed-7c0a-4804-a981-c5ddc5735851","percentComplete":75,"startTime":"2021-05-25T19:52:29.4267110+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '406' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:53:20 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 1FC1E56487D54EE3B706F2044208D54D Ref B: PDX31EDGE0106 Ref C: 2021-05-25T19:53:20Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware cluster delete + Connection: + - keep-alive + ParameterSetName: + - -g -c -n + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/d51524ed-7c0a-4804-a981-c5ddc5735851?api-version=2021-06-01 + response: + body: + string: '{"endTime":"2021-05-25T19:53:23.4002516+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/d51524ed-7c0a-4804-a981-c5ddc5735851","name":"d51524ed-7c0a-4804-a981-c5ddc5735851","percentComplete":100,"startTime":"2021-05-25T19:52:29.4267110+00:00","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '454' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 19:53:30 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: E752B3FCD90142D482FC4C58A6D8CB8C Ref B: PDX31EDGE0106 Ref C: 2021-05-25T19:53:31Z' + status: + code: 200 + message: OK version: 1 diff --git a/src/vmware/azext_vmware/tests/latest/test_vmware_scenario.py b/src/vmware/azext_vmware/tests/latest/test_vmware_scenario.py index 57f0e4f14b7..cd004b6fff5 100644 --- a/src/vmware/azext_vmware/tests/latest/test_vmware_scenario.py +++ b/src/vmware/azext_vmware/tests/latest/test_vmware_scenario.py @@ -19,7 +19,7 @@ def setUp(self): @ResourceGroupPreparer(name_prefix='cli_test_vmware') def test_vmware(self): self.kwargs.update({ - 'loc': 'westcentralus', + 'loc': 'centralus', 'privatecloud': 'cloud1', 'cluster': 'pycluster1' }) @@ -38,7 +38,7 @@ def test_vmware(self): self.assertEqual(count, 0, 'private cloud count expected to be 0') # create a private cloud - self.cmd('vmware private-cloud create -g {rg} -n {privatecloud} --location {loc} --sku av20 --cluster-size 4 --network-block 192.168.48.0/22 --nsxt-password 5rqdLj4GF3cePUe6( --vcenter-password UpfBXae9ZquZSDXk( --accept-eula') + self.cmd('vmware private-cloud create -g {rg} -n {privatecloud} --location {loc} --sku av20 --cluster-size 3 --network-block 192.168.48.0/22 --nsxt-password 5rqdLj4GF3cePUe6( --vcenter-password UpfBXae9ZquZSDXk( --accept-eula') count = len(self.cmd('vmware private-cloud list -g {rg}').get_output_in_json()) self.assertEqual(count, 1, 'private cloud count expected to be 1') @@ -57,7 +57,7 @@ def test_vmware(self): self.cmd('vmware private-cloud rotate-nsxt-password -g {rg} -c {privatecloud}') # update private cloud to changed default cluster size - # self.cmd('vmware private-cloud update -g {rg} -n {privatecloud} --cluster-size 3') + self.cmd('vmware private-cloud update -g {rg} -n {privatecloud} --cluster-size 4') # update private cloud to enable internet self.cmd('vmware private-cloud update -g {rg} -n {privatecloud} --internet enabled') From ef92f059db893fff60e29e6110fc439a12d002fb Mon Sep 17 00:00:00 2001 From: Cameron Taggart Date: Tue, 25 May 2021 16:13:29 -0700 Subject: [PATCH 04/18] started datastore changes --- src/vmware/azext_vmware/_help.py | 16 ++++++++---- src/vmware/azext_vmware/commands.py | 6 +++++ src/vmware/azext_vmware/custom.py | 20 +++++++++------ .../tests/latest/test_datastores_scenario.py | 25 ++++++++++++------- 4 files changed, 46 insertions(+), 21 deletions(-) diff --git a/src/vmware/azext_vmware/_help.py b/src/vmware/azext_vmware/_help.py index f72f8d12e33..df60d19323c 100644 --- a/src/vmware/azext_vmware/_help.py +++ b/src/vmware/azext_vmware/_help.py @@ -173,16 +173,22 @@ short-summary: Return trial status for subscription by region. """ -helps['vmware datastore create'] = """ +helps['vmware datastore net-app-volume create'] = """ + type: command + short-summary: Create a datastore in a private cloud cluster. + examples: + - name: Create a new Microsoft.NetApp provided NetApp volume based NFSv3 datastore. + text: az vmware datastore net-app-volume create --name ANFDatastore1 --resource-group MyResourceGroup --cluster Cluster-1 --private-cloud MyPrivateCloud --volume_id /subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/ResourceGroup1/providers/Microsoft.NetApp/netAppAccounts/NetAppAccount1/capacityPools/CapacityPool1/volumes/NFSVol1 +""" + +helps['vmware datastore disk-pool-volume create'] = """ type: command short-summary: Create a datastore in a private cloud cluster. examples: - name: Create a new Microsoft.StoragePool provided disk pool based iSCSI datastore. - text: az vmware datastore create --name iSCSIDatastore1 --resource-group MyResourceGroup --cluster Cluster-1 --private-cloud MyPrivateCloud --endpoints 10.10.0.1:3260 --lun-name lun0 + text: az vmware datastore disk-pool-volume create --name iSCSIDatastore1 --resource-group MyResourceGroup --cluster Cluster-1 --private-cloud MyPrivateCloud --endpoints 10.10.0.1:3260 --lun-name lun0 - name: Create a new Microsoft.StoragePool provided disk pool based iSCSI datastore with multiple endpoints. - text: az vmware datastore create --name iSCSIDatastore1 --resource-group MyResourceGroup --cluster Cluster-1 --private-cloud MyPrivateCloud --endpoints 10.10.0.1:3260 10.10.0.2:3260 --lun-name lun0 - - name: Create a new Microsoft.NetApp provided NetApp volume based NFSv3 datastore. - text: az vmware datastore create --name ANFDatastore1 --resource-group MyResourceGroup --cluster Cluster-1 --private-cloud MyPrivateCloud --nfs-file-path ANFVol1FilePath --nfs-provider-ip 10.10.0.1 + text: az vmware datastore disk-pool-volume create --name iSCSIDatastore1 --resource-group MyResourceGroup --cluster Cluster-1 --private-cloud MyPrivateCloud --endpoints 10.10.0.1:3260 10.10.0.2:3260 --lun-name lun0 """ helps['vmware datastore show'] = """ diff --git a/src/vmware/azext_vmware/commands.py b/src/vmware/azext_vmware/commands.py index c68fdea62e9..4ab4ed2d11b 100644 --- a/src/vmware/azext_vmware/commands.py +++ b/src/vmware/azext_vmware/commands.py @@ -53,3 +53,9 @@ def load_command_table(self, _): g.custom_command('list', 'datastore_list') g.custom_show_command('show', 'datastore_show') g.custom_command('delete', 'datastore_delete') + + with self.command_group('vmware datastore net-app-volume', vmware_sdk, client_factory=cf_vmware) as g: + g.custom_command('create', 'datastore_netappvolume_create') + + with self.command_group('vmware datastore disk-pool-volume', vmware_sdk, client_factory=cf_vmware) as g: + g.custom_command('create', 'datastore_diskpoolvolume_create') diff --git a/src/vmware/azext_vmware/custom.py b/src/vmware/azext_vmware/custom.py index c426a5924ac..218a11bb5df 100644 --- a/src/vmware/azext_vmware/custom.py +++ b/src/vmware/azext_vmware/custom.py @@ -170,13 +170,19 @@ def hcxenterprisesite_delete(cmd, client: AVSClient, resource_group_name, privat def datastore_create(cmd, client: AVSClient, resource_group_name, private_cloud, cluster, name, nfs_provider_ip=None, nfs_file_path=None, endpoints=[], lun_name=None): - from azext_vmware.vendored_sdks.avs_client.models import Datastore, NetAppVolume, DiskPoolVolume - datastore = Datastore() - if nfs_provider_ip is not None or nfs_file_path is not None: - datastore.net_app_volume = NetAppVolume(nfs_provider_ip=nfs_provider_ip, nfs_file_path=nfs_file_path) - if len(endpoints) > 0 or lun_name is not None: - datastore.disk_pool_volume = DiskPoolVolume(endpoints=endpoints, lun_name=lun_name) - return client.datastores.begin_create(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=cluster, datastore_name=name, datastore=datastore) + print('Please use "az vmware datastore net-app-volume create" or "az vmware datastore disk-pool-volume create" instead.') + + +def datastore_netappvolume_create(cmd, client: AVSClient, resource_group_name, private_cloud, cluster, name, volume_id): + from azext_vmware.vendored_sdks.avs_client.models import NetAppVolume + net_app_volume = NetAppVolume(id=volume_id) + return client.datastores.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=cluster, datastore_name=name, net_app_volume=net_app_volume, disk_pool_volume=None) + + +def datastore_diskpoolvolume_create(cmd, client: AVSClient, resource_group_name, private_cloud, cluster, name, target_id, lun_name): + from azext_vmware.vendored_sdks.avs_client.models import DiskPoolVolume + disk_pool_volume = DiskPoolVolume(target_id=target_id, lun_name=lun_name) + return client.datastores.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=cluster, datastore_name=name, net_app_volume=None, disk_pool_volume=disk_pool_volume) def datastore_list(cmd, client: AVSClient, resource_group_name, private_cloud, cluster): diff --git a/src/vmware/azext_vmware/tests/latest/test_datastores_scenario.py b/src/vmware/azext_vmware/tests/latest/test_datastores_scenario.py index 4e9cbdc4496..66e04c8d0bc 100644 --- a/src/vmware/azext_vmware/tests/latest/test_datastores_scenario.py +++ b/src/vmware/azext_vmware/tests/latest/test_datastores_scenario.py @@ -18,17 +18,24 @@ def setUp(self): @ResourceGroupPreparer(name_prefix='cli_test_vmware_datastores') def test_vmware_datastores(self): - # Get a pre-created iSCSI datastore - self.cmd('az vmware datastore show --name rasivagu-iscsi-datastore --resource-group rasivagu-cloudsan-rg --cluster Cluster-1 --private-cloud rasivagu-sddc') + self.kwargs.update({ + 'loc': 'centralus', + 'privatecloud': 'cloud1', + 'cluster': 'pycluster1', + 'volume_id:': '/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/ResourceGroup1/providers/Microsoft.NetApp/netAppAccounts/NetAppAccount1/capacityPools/CapacityPool1/volumes/NFSVol1' + }) - # List all existing datastores - self.cmd('az vmware datastore list --resource-group rasivagu-cloudsan-rg --cluster Cluster-1 --private-cloud rasivagu-sddc') + # # Get a pre-created iSCSI datastore + # self.cmd('az vmware datastore show --name rasivagu-iscsi-datastore --resource-group {rg} --cluster {cluster} --private-cloud {privatecloud}') + + # # List all existing datastores + # self.cmd('az vmware datastore list --resource-group {rg} --cluster {cluster} --private-cloud {privatecloud}') # Create a new ANF based datastore - self.cmd('az vmware datastore create --name ANFDatastore1 --resource-group rasivagu-cloudsan-rg --cluster Cluster-1 --private-cloud rasivagu-sddc --nfs-file-path ANFVol1FilePath --nfs-provider-ip 10.50.1.4') + self.cmd('az vmware datastore net-app-volume create --name ANFDatastore1 --resource-group {rg} --cluster {cluster} --private-cloud {privatecloud} --volume-id {volume_id}') - # Get the newly created ANF based datastore - self.cmd('az vmware datastore show --name ANFDatastore1 --resource-group rasivagu-cloudsan-rg --cluster Cluster-1 --private-cloud rasivagu-sddc') + # # Get the newly created ANF based datastore + # self.cmd('az vmware datastore show --name ANFDatastore1 --resource-group {rg} --cluster {cluster} --private-cloud {privatecloud}') - # Delete the newly created ANF based datastore - self.cmd('az vmware datastore delete --name ANFDatastore1 --resource-group rasivagu-cloudsan-rg --cluster Cluster-1 --private-cloud rasivagu-sddc') + # # Delete the newly created ANF based datastore + # self.cmd('az vmware datastore delete --name ANFDatastore1 --resource-group {rg} --cluster {cluster} --private-cloud {privatecloud}') From 67223cfbbaa3b2f4d18785bf74f513eb9751d5cb Mon Sep 17 00:00:00 2001 From: Cameron Taggart Date: Thu, 27 May 2021 21:33:11 -0700 Subject: [PATCH 05/18] updated datastore --- src/vmware/CHANGELOG.md | 10 +- src/vmware/azext_vmware/_help.py | 23 +- src/vmware/azext_vmware/_params.py | 11 +- src/vmware/azext_vmware/custom.py | 4 +- .../recordings/test_vmware_datastores.yaml | 369 +++--------------- .../tests/latest/test_datastores_scenario.py | 33 +- 6 files changed, 106 insertions(+), 344 deletions(-) diff --git a/src/vmware/CHANGELOG.md b/src/vmware/CHANGELOG.md index 2505592d697..f6d6692f6a0 100644 --- a/src/vmware/CHANGELOG.md +++ b/src/vmware/CHANGELOG.md @@ -1,9 +1,13 @@ # Release History -## 2.1.0 (TBD) +## 3.0.0 (2021-06) +This version has **breaking changes**: +- `az vmware datastore create` has been removed. Please use `az vmware datastore net-app-volume create` or `az vmware datastore disk-pool-volume create` instead. + +Other changes: - update to AVS 2021-06-01 API -- add az vmware private-cloud rotate-vcenter-password -- add az vmware private-cloud rotate-nsxt-password +- add `az vmware private-cloud rotate-vcenter-password` +- add `az vmware private-cloud rotate-nsxt-password` ## 2.0.1 (2021-02) - Update the minimum az cli version to 2.11.0 [#3045](https://github.com/Azure/azure-cli-extensions/issues/3045) diff --git a/src/vmware/azext_vmware/_help.py b/src/vmware/azext_vmware/_help.py index df60d19323c..fa0eb364b62 100644 --- a/src/vmware/azext_vmware/_help.py +++ b/src/vmware/azext_vmware/_help.py @@ -173,22 +173,35 @@ short-summary: Return trial status for subscription by region. """ +helps['vmware datastore create'] = """ + type: command + short-summary: Please use "net-app-volume create" or "disk-pool-volume create" instead. +""" + +helps['vmware datastore net-app-volume'] = """ + type: group + short-summary: Create a new Microsoft.NetApp provided NetApp volume in a private cloud cluster. +""" + helps['vmware datastore net-app-volume create'] = """ type: command - short-summary: Create a datastore in a private cloud cluster. + short-summary: Create a new Microsoft.NetApp provided NetApp volume in a private cloud cluster. examples: - name: Create a new Microsoft.NetApp provided NetApp volume based NFSv3 datastore. text: az vmware datastore net-app-volume create --name ANFDatastore1 --resource-group MyResourceGroup --cluster Cluster-1 --private-cloud MyPrivateCloud --volume_id /subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/ResourceGroup1/providers/Microsoft.NetApp/netAppAccounts/NetAppAccount1/capacityPools/CapacityPool1/volumes/NFSVol1 """ +helps['vmware datastore disk-pool-volume'] = """ + type: group + short-summary: Create a new Microsoft.StoragePool provided disk pool based iSCSI datastore in a private cloud cluster. +""" + helps['vmware datastore disk-pool-volume create'] = """ type: command - short-summary: Create a datastore in a private cloud cluster. + short-summary: Create a new Microsoft.StoragePool provided disk pool based iSCSI datastore in a private cloud cluster. examples: - name: Create a new Microsoft.StoragePool provided disk pool based iSCSI datastore. - text: az vmware datastore disk-pool-volume create --name iSCSIDatastore1 --resource-group MyResourceGroup --cluster Cluster-1 --private-cloud MyPrivateCloud --endpoints 10.10.0.1:3260 --lun-name lun0 - - name: Create a new Microsoft.StoragePool provided disk pool based iSCSI datastore with multiple endpoints. - text: az vmware datastore disk-pool-volume create --name iSCSIDatastore1 --resource-group MyResourceGroup --cluster Cluster-1 --private-cloud MyPrivateCloud --endpoints 10.10.0.1:3260 10.10.0.2:3260 --lun-name lun0 + text: az vmware datastore disk-pool-volume create --name iSCSIDatastore1 --resource-group MyResourceGroup --cluster Cluster-1 --private-cloud MyPrivateCloud --target-id /subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/ResourceGroup1/providers/Microsoft.StoragePool/diskPools/mpio-diskpool/iscsiTargets/mpio-iscsi-target --lun-name lun0 """ helps['vmware datastore show'] = """ diff --git a/src/vmware/azext_vmware/_params.py b/src/vmware/azext_vmware/_params.py index 5b49ffb1b28..ef24cc1ab13 100644 --- a/src/vmware/azext_vmware/_params.py +++ b/src/vmware/azext_vmware/_params.py @@ -75,8 +75,11 @@ def load_arguments(self, _): c.argument('name', options_list=['--name', '-n'], help='The name of the datastore.') c.argument('cluster', help='The name of the cluster.') - with self.argument_context('vmware datastore create') as c: - c.argument('nfs_provider_ip', help='IP address of the NFS provider.') - c.argument('nfs_file_path', help='File path through which the NFS volume is exposed by the provider.') - c.argument('endpoints', nargs='*', help='iSCSI provider target IP address list.') + with self.argument_context('vmware datastore net-app-volume create') as c: + c.argument('volume_id', help='Azure resource ID of the NetApp volume.') + + with self.argument_context('vmware datastore disk-pool-volume create') as c: c.argument('lun_name', help='Name of the LUN to be used.') + c.argument('target_id', help='Azure resource ID of the iSCSI target.') + c.argument('mount_option', nargs='*', help='Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN.') + c.argument('path', help='Device path.') \ No newline at end of file diff --git a/src/vmware/azext_vmware/custom.py b/src/vmware/azext_vmware/custom.py index 218a11bb5df..d88c6e7f1b7 100644 --- a/src/vmware/azext_vmware/custom.py +++ b/src/vmware/azext_vmware/custom.py @@ -179,9 +179,9 @@ def datastore_netappvolume_create(cmd, client: AVSClient, resource_group_name, p return client.datastores.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=cluster, datastore_name=name, net_app_volume=net_app_volume, disk_pool_volume=None) -def datastore_diskpoolvolume_create(cmd, client: AVSClient, resource_group_name, private_cloud, cluster, name, target_id, lun_name): +def datastore_diskpoolvolume_create(cmd, client: AVSClient, resource_group_name, private_cloud, cluster, name, target_id, lun_name, mount_option="MOUNT", path=None): from azext_vmware.vendored_sdks.avs_client.models import DiskPoolVolume - disk_pool_volume = DiskPoolVolume(target_id=target_id, lun_name=lun_name) + disk_pool_volume = DiskPoolVolume(target_id=target_id, lun_name=lun_name, mount_option=mount_option, path=path) return client.datastores.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=cluster, datastore_name=name, net_app_volume=None, disk_pool_volume=disk_pool_volume) diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml index fd00341f8de..429fcf70812 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml @@ -3,377 +3,110 @@ interactions: body: null headers: Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware datastore show - Connection: - - keep-alive - ParameterSetName: - - --name --resource-group --cluster --private-cloud - User-Agent: - - AZURECLI/2.19.1 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://eastus2euap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/rasivagu-iscsi-datastore?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/rasivagu-iscsi-datastore","name":"rasivagu-iscsi-datastore","properties":{"diskPoolVolume":{"endpoints":["10.45.0.4:3260"],"lunName":"lun0"},"provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"}' - headers: - cache-control: - - no-cache - content-length: - - '408' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 15 Feb 2021 13:09:26 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json + - '*/*' + Accept-Charset: + - utf-8 Accept-Encoding: - gzip, deflate - CommandName: - - vmware datastore list Connection: - keep-alive - ParameterSetName: - - --resource-group --cluster --private-cloud User-Agent: - - AZURECLI/2.19.1 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.18362-SP0) + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.3 method: GET - uri: https://eastus2euap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores?api-version=2021-01-01-preview + uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/ANFDatastore1","name":"ANFDatastore1","properties":{"netAppVolume":{"nfsFilePath":"ANFVol1FilePath","nfsProviderIp":"10.50.1.4"},"provisioningState":"Deleting"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/functional-test","name":"functional-test","properties":{"diskPoolVolume":{"endpoints":["10.45.0.4:3260"],"lunName":"lun1"},"provisioningState":"Deleting"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/rasivagu-iscsi-datastore","name":"rasivagu-iscsi-datastore","properties":{"diskPoolVolume":{"endpoints":["10.45.0.4:3260"],"lunName":"lun0"},"provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/rasivagu-iscsi-datastore-1","name":"rasivagu-iscsi-datastore-1","properties":{"diskPoolVolume":{"endpoints":["10.45.0.4"],"lunName":"lun1"},"provisioningState":"Building"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/rasivagu-iscsi-datastore-copy","name":"rasivagu-iscsi-datastore-copy","properties":{"diskPoolVolume":{"endpoints":["10.45.0.4:3260"],"lunName":"lun1"},"provisioningState":"Deleting"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"}]}' + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' cache-control: - - no-cache + - max-age=86400, private content-length: - - '2031' + - '131' content-type: - application/json; charset=utf-8 date: - - Mon, 15 Feb 2021 13:09:27 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx + - Fri, 28 May 2021 04:31:46 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ahov0RlINCJCskPEKpTLIHE; expires=Sun, 27-Jun-2021 04:31:47 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrNx0Y9jU75Ec0x7C-ZrtwcXkfgfL8Drd-yfo-9vHBV8FnKoVi6QJ3ZDRMYE_xnHcSLVFYcTsqzdZb9eS0VNuDOQXdd0DxsfvugT3gNP_gTjynphqhYMXVo_bYzb6gu2Ic-fuwMh8mhZSmK0NUo_jq_YaRKAQZC57NUwLDgCX3cdIgAA; + domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly + - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff + x-ms-ests-server: + - 2.1.11722.21 - WUS2 ProdSlices status: code: 200 message: OK - request: - body: '{"properties": {"netAppVolume": {"nfsProviderIp": "10.50.1.4", "nfsFilePath": - "ANFVol1FilePath"}}}' + body: '{"properties": {"netAppVolume": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroup1/providers/Microsoft.NetApp/netAppAccounts/NetAppAccount1/capacityPools/CapacityPool1/volumes/NFSVol1"}}}' headers: Accept: - application/json Accept-Encoding: - gzip, deflate CommandName: - - vmware datastore create + - vmware datastore net-app-volume create Connection: - keep-alive Content-Length: - - '98' + - '226' Content-Type: - application/json ParameterSetName: - - --name --resource-group --cluster --private-cloud --nfs-file-path --nfs-provider-ip + - --name --resource-group --private-cloud --cluster --volume-id User-Agent: - - AZURECLI/2.19.1 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://eastus2euap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/ANFDatastore1?api-version=2021-01-01-preview + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cataggar-ds/providers/Microsoft.AVS/privateClouds/cataggar-ds/clusters/cataggar-ds/datastores/ANFDatastore1?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/ANFDatastore1","name":"ANFDatastore1","properties":{"netAppVolume":{"nfsFilePath":"ANFVol1FilePath","nfsProviderIp":"10.50.1.4"},"provisioningState":"Pending"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"}' + string: '{"error":{"code":"BadRequest","message":"ANF datastore is not enabled + for the cloud SAN version ''v1''"}}' headers: - azure-asyncoperation: - - https://eastus2euap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/ANFDatastore1/operationstatuses/a54926ad-f0c2-4372-a7a1-6eb68ec90208?api-version=2021-01-01-preview cache-control: - no-cache content-length: - - '394' + - '103' content-type: - application/json; charset=utf-8 date: - - Mon, 15 Feb 2021 13:09:30 GMT + - Fri, 28 May 2021 04:31:49 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' + x-msedge-ref: + - 'Ref A: 7472BDA06A4B40D49400E954A71B9955 Ref B: PDX31EDGE0121 Ref C: 2021-05-28T04:31:49Z' status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware datastore create - Connection: - - keep-alive - ParameterSetName: - - --name --resource-group --cluster --private-cloud --nfs-file-path --nfs-provider-ip - User-Agent: - - AZURECLI/2.19.1 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://eastus2euap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/ANFDatastore1/operationstatuses/a54926ad-f0c2-4372-a7a1-6eb68ec90208?api-version=2021-01-01-preview - response: - body: - string: '{"endTime":"2021-02-15T13:09:32.3362991+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/ANFDatastore1/operationstatuses/a54926ad-f0c2-4372-a7a1-6eb68ec90208","name":"a54926ad-f0c2-4372-a7a1-6eb68ec90208","percentComplete":100,"startTime":"2021-02-15T13:09:29.6193991+00:00","status":"Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '430' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 15 Feb 2021 13:09:40 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware datastore create - Connection: - - keep-alive - ParameterSetName: - - --name --resource-group --cluster --private-cloud --nfs-file-path --nfs-provider-ip - User-Agent: - - AZURECLI/2.19.1 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://eastus2euap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/ANFDatastore1?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/ANFDatastore1","name":"ANFDatastore1","properties":{"netAppVolume":{"nfsFilePath":"ANFVol1FilePath","nfsProviderIp":"10.50.1.4"},"provisioningState":"Building"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"}' - headers: - cache-control: - - no-cache - content-length: - - '395' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 15 Feb 2021 13:09:40 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware datastore show - Connection: - - keep-alive - ParameterSetName: - - --name --resource-group --cluster --private-cloud - User-Agent: - - AZURECLI/2.19.1 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://eastus2euap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/ANFDatastore1?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/ANFDatastore1","name":"ANFDatastore1","properties":{"netAppVolume":{"nfsFilePath":"ANFVol1FilePath","nfsProviderIp":"10.50.1.4"},"provisioningState":"Building"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"}' - headers: - cache-control: - - no-cache - content-length: - - '395' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 15 Feb 2021 13:09:42 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware datastore delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - --name --resource-group --cluster --private-cloud - User-Agent: - - AZURECLI/2.19.1 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.18362-SP0) - method: DELETE - uri: https://eastus2euap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/ANFDatastore1?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/ANFDatastore1","name":"ANFDatastore1","properties":{"netAppVolume":{"nfsFilePath":"ANFVol1FilePath","nfsProviderIp":"10.50.1.4"},"provisioningState":"Building"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"}' - headers: - azure-asyncoperation: - - https://eastus2euap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/ANFDatastore1/operationstatuses/77db29fd-fe41-4188-8728-345b993ced83?api-version=2021-01-01-preview - cache-control: - - no-cache - content-length: - - '395' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 15 Feb 2021 13:09:43 GMT - expires: - - '-1' - location: - - https://eastus2euap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/ANFDatastore1/operationresults/77db29fd-fe41-4188-8728-345b993ced83?api-version=2021-01-01-preview - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware datastore delete - Connection: - - keep-alive - ParameterSetName: - - --name --resource-group --cluster --private-cloud - User-Agent: - - AZURECLI/2.19.1 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://eastus2euap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/ANFDatastore1/operationstatuses/77db29fd-fe41-4188-8728-345b993ced83?api-version=2021-01-01-preview - response: - body: - string: '{"endTime":"2021-02-15T13:09:49.6616633+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/ANFDatastore1/operationstatuses/77db29fd-fe41-4188-8728-345b993ced83","name":"77db29fd-fe41-4188-8728-345b993ced83","percentComplete":100,"startTime":"2021-02-15T13:09:43.4189481+00:00","status":"Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '430' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 15 Feb 2021 13:09:53 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK + code: 400 + message: Bad Request version: 1 diff --git a/src/vmware/azext_vmware/tests/latest/test_datastores_scenario.py b/src/vmware/azext_vmware/tests/latest/test_datastores_scenario.py index 66e04c8d0bc..1d0d42b474f 100644 --- a/src/vmware/azext_vmware/tests/latest/test_datastores_scenario.py +++ b/src/vmware/azext_vmware/tests/latest/test_datastores_scenario.py @@ -19,23 +19,32 @@ def setUp(self): @ResourceGroupPreparer(name_prefix='cli_test_vmware_datastores') def test_vmware_datastores(self): self.kwargs.update({ - 'loc': 'centralus', - 'privatecloud': 'cloud1', - 'cluster': 'pycluster1', - 'volume_id:': '/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/ResourceGroup1/providers/Microsoft.NetApp/netAppAccounts/NetAppAccount1/capacityPools/CapacityPool1/volumes/NFSVol1' + # 'loc': 'centralus', + # 'privatecloud': 'cloud1', + # 'cluster': 'pycluster1', + 'rg': 'cataggar-ds', + 'privatecloud': 'cataggar-ds', + 'cluster': 'cataggar-ds', + 'volume_id': '/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/ResourceGroup1/providers/Microsoft.NetApp/netAppAccounts/NetAppAccount1/capacityPools/CapacityPool1/volumes/NFSVol1', + 'target_id': '/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/ResourceGroup1/providers/Microsoft.StoragePool/diskPools/mpio-diskpool/iscsiTargets/mpio-iscsi-target' }) + + # Create a new iSCSI based datastore + # self.cmd('az vmware datastore disk-pool-volume create --name iSCSIDatastore1 --resource-group {rg} --private-cloud {privatecloud} --cluster {cluster} --target-id {target_id} --lun-name lun0') + # "The subscription '11111111-1111-1111-1111-111111111111' could not be found. - # # Get a pre-created iSCSI datastore - # self.cmd('az vmware datastore show --name rasivagu-iscsi-datastore --resource-group {rg} --cluster {cluster} --private-cloud {privatecloud}') + # Get a iSCSI datastore + # self.cmd('az vmware datastore show --name iSCSIDatastore1 --resource-group {rg} --private-cloud {privatecloud} --cluster {cluster}') # # List all existing datastores - # self.cmd('az vmware datastore list --resource-group {rg} --cluster {cluster} --private-cloud {privatecloud}') + self.cmd('az vmware datastore list --resource-group {rg} --private-cloud {privatecloud} --cluster {cluster}') # Create a new ANF based datastore - self.cmd('az vmware datastore net-app-volume create --name ANFDatastore1 --resource-group {rg} --cluster {cluster} --private-cloud {privatecloud} --volume-id {volume_id}') + # self.cmd('az vmware datastore net-app-volume create --name ANFDatastore1 --resource-group {rg} --private-cloud {privatecloud} --cluster {cluster} --volume-id {volume_id}') + # "ANF datastore is not enabled for the cloud SAN version 'v1' - # # Get the newly created ANF based datastore - # self.cmd('az vmware datastore show --name ANFDatastore1 --resource-group {rg} --cluster {cluster} --private-cloud {privatecloud}') + # Get the newly created ANF based datastore + # self.cmd('az vmware datastore show --name ANFDatastore1 --resource-group {rg} --private-cloud {privatecloud} --cluster {cluster}') - # # Delete the newly created ANF based datastore - # self.cmd('az vmware datastore delete --name ANFDatastore1 --resource-group {rg} --cluster {cluster} --private-cloud {privatecloud}') + # Delete the newly created ANF based datastore + # self.cmd('az vmware datastore delete --name ANFDatastore1 --resource-group {rg} --private-cloud {privatecloud} --cluster {cluster}') From e7f0adc2639d5ea88d8b85af811cdc96d7930486 Mon Sep 17 00:00:00 2001 From: Raaghavi Date: Thu, 3 Jun 2021 13:47:59 -0700 Subject: [PATCH 06/18] Added test recordings for datastores Co-authored-by: Raaghavi Sivaguru --- .../recordings/test_vmware_datastores.yaml | 487 +++++++++++++++++- .../tests/latest/test_datastores_scenario.py | 14 +- 2 files changed, 476 insertions(+), 25 deletions(-) diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml index 429fcf70812..0a1068ab48d 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml @@ -23,7 +23,7 @@ interactions: x-client-Ver: - 1.2.3 method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' @@ -39,13 +39,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 28 May 2021 04:31:46 GMT + - Thu, 03 Jun 2021 20:37:12 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=Ahov0RlINCJCskPEKpTLIHE; expires=Sun, 27-Jun-2021 04:31:47 GMT; path=/; + - fpc=Aj8f589qiTxOlJkgGY96Fuk; expires=Sat, 03-Jul-2021 20:37:13 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrNx0Y9jU75Ec0x7C-ZrtwcXkfgfL8Drd-yfo-9vHBV8FnKoVi6QJ3ZDRMYE_xnHcSLVFYcTsqzdZb9eS0VNuDOQXdd0DxsfvugT3gNP_gTjynphqhYMXVo_bYzb6gu2Ic-fuwMh8mhZSmK0NUo_jq_YaRKAQZC57NUwLDgCX3cdIgAA; + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr9rbqiTYy_YgPA7uXITa-dCH8nwbQ2aezA6m87zoKX0OqjeX_vgRRbRdLlqG5NTGGRaJovA0mbXmoLkLrEWxszgE0gLV0WVZz046f46Y-_smUbp6vfkpbxQxPX0PggSi16VmLEbD4Z_VBY0XilG4NSH-w5XFN1Xlid3u30PzL7FIgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -54,44 +54,46 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11722.21 - WUS2 ProdSlices + - 2.1.11722.21 - SCUS ProdSlices status: code: 200 message: OK - request: - body: '{"properties": {"netAppVolume": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroup1/providers/Microsoft.NetApp/netAppAccounts/NetAppAccount1/capacityPools/CapacityPool1/volumes/NFSVol1"}}}' + body: '{"properties": {"diskPoolVolume": {"targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-df-rg/providers/Microsoft.StoragePool/diskPools/rasivagu-df-diskpool/iscsiTargets/rasivagu-df-target", + "lunName": "lun0", "mountOption": "MOUNT"}}}' headers: Accept: - application/json Accept-Encoding: - gzip, deflate CommandName: - - vmware datastore net-app-volume create + - vmware datastore disk-pool-volume create Connection: - keep-alive Content-Length: - - '226' + - '271' Content-Type: - application/json ParameterSetName: - - --name --resource-group --private-cloud --cluster --volume-id + - --name --resource-group --private-cloud --cluster --target-id --lun-name User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.19.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cataggar-ds/providers/Microsoft.AVS/privateClouds/cataggar-ds/clusters/cataggar-ds/datastores/ANFDatastore1?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1?api-version=2021-06-01 response: body: - string: '{"error":{"code":"BadRequest","message":"ANF datastore is not enabled - for the cloud SAN version ''v1''"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1","name":"iSCSIDatastore1","properties":{"diskPoolVolume":{"lunName":"lun0","mountOption":"Mount","targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-df-rg/providers/Microsoft.StoragePool/diskPools/rasivagu-df-diskpool/iscsiTargets/rasivagu-df-target"},"provisioningState":"Pending"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"}' headers: + azure-asyncoperation: + - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1/operationstatuses/423677d7-f078-42fd-9e7e-321a0d73b2be?api-version=2021-06-01 cache-control: - no-cache content-length: - - '103' + - '570' content-type: - application/json; charset=utf-8 date: - - Fri, 28 May 2021 04:31:49 GMT + - Thu, 03 Jun 2021 20:37:16 GMT expires: - '-1' pragma: @@ -105,8 +107,457 @@ interactions: x-ms-ratelimit-remaining-subscription-writes: - '1198' x-msedge-ref: - - 'Ref A: 7472BDA06A4B40D49400E954A71B9955 Ref B: PDX31EDGE0121 Ref C: 2021-05-28T04:31:49Z' + - 'Ref A: AA01EC02673C4690A104744662D707B8 Ref B: WSTEDGE1110 Ref C: 2021-06-03T20:37:13Z' status: - code: 400 - message: Bad Request + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware datastore disk-pool-volume create + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --private-cloud --cluster --target-id --lun-name + User-Agent: + - AZURECLI/2.19.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1/operationstatuses/423677d7-f078-42fd-9e7e-321a0d73b2be?api-version=2021-06-01 + response: + body: + string: '{"endTime":"2021-06-03T20:37:16.6433365+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1/operationstatuses/423677d7-f078-42fd-9e7e-321a0d73b2be","name":"423677d7-f078-42fd-9e7e-321a0d73b2be","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1","name":"iSCSIDatastore1","properties":{"diskPoolVolume":{"lunName":"lun0","mountOption":"Mount","targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-df-rg/providers/Microsoft.StoragePool/diskPools/rasivagu-df-diskpool/iscsiTargets/rasivagu-df-target"},"provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"},"startTime":"2021-06-03T20:37:15.2647827+00:00","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '1019' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 03 Jun 2021 20:37:26 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: D1C2BA89AE78494DB5CBD42B6088A31E Ref B: WSTEDGE1110 Ref C: 2021-06-03T20:37:26Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware datastore disk-pool-volume create + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --private-cloud --cluster --target-id --lun-name + User-Agent: + - AZURECLI/2.19.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1","name":"iSCSIDatastore1","properties":{"diskPoolVolume":{"lunName":"lun0","mountOption":"Mount","targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-df-rg/providers/Microsoft.StoragePool/diskPools/rasivagu-df-diskpool/iscsiTargets/rasivagu-df-target"},"provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"}' + headers: + cache-control: + - no-cache + content-length: + - '572' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 03 Jun 2021 20:37:26 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: C8A051D94412485EADACEADAADD063FD Ref B: WSTEDGE1110 Ref C: 2021-06-03T20:37:26Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.3 + method: GET + uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - max-age=86400, private + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 03 Jun 2021 20:37:27 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Arbzb2bM-L9Ftzsn1wLrU5k; expires=Sat, 03-Jul-2021 20:37:28 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrqdEzbk--0ngETuxmF7QdAWgb_PQEH4rX7_Rym0pYjW4q_jb_erIrZ3fRGA9WwbRuRZBY7S_8BMpqjBFn4FDJqHjXmOFhy3za3gilUPp40ihtBKNLghv7oA1mWbBDivhOHyznQhOw9_Jrw3TzdNmEDM8LpIi_twHxLVVTrS9UEzMgAA; + domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly + - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.11722.21 - SCUS ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware datastore show + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --private-cloud --cluster + User-Agent: + - AZURECLI/2.19.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1","name":"iSCSIDatastore1","properties":{"diskPoolVolume":{"lunName":"lun0","mountOption":"Mount","targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-df-rg/providers/Microsoft.StoragePool/diskPools/rasivagu-df-diskpool/iscsiTargets/rasivagu-df-target"},"provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"}' + headers: + cache-control: + - no-cache + content-length: + - '572' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 03 Jun 2021 20:37:27 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: DFCC24212B144714BBB139A61191967D Ref B: WSTEDGE1005 Ref C: 2021-06-03T20:37:28Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.3 + method: GET + uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - max-age=86400, private + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 03 Jun 2021 20:37:28 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=ApQMTB7OmGxElejTI_nD-KI; expires=Sat, 03-Jul-2021 20:37:28 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrCttPgZbi6xCTUiOW-UwhtVE0J3ix7gmB6B6plUlVxibgnyYFi2YOH5hXKlH7u3mz2JFKBJOwjbK_lmN-gvWU9Gx7JEuwlB5yBE3_Xodqe6uY7xrsxJonQHAHGAHNeFw1FC-Q5yfGYVIUKEHM_CBoZvgiGvT-qKnwBm3qNyiaM6ogAA; + domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly + - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.11722.21 - SCUS ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware datastore list + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud --cluster + User-Agent: + - AZURECLI/2.19.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores?api-version=2021-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/df-iscsi-datastore-1","name":"df-iscsi-datastore-1","properties":{"diskPoolVolume":{"lunName":"lun0","mountOption":"Mount","targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-df-rg/providers/Microsoft.StoragePool/diskPools/rasivagu-df-diskpool/iscsiTargets/rasivagu-df-target"},"provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/df-iscsi-datastore-2","name":"df-iscsi-datastore-2","properties":{"diskPoolVolume":{"lunName":"lun0","mountOption":"Mount","targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-df-rg/providers/Microsoft.StoragePool/diskPools/rasivagu-df-diskpool/iscsiTargets/rasivagu-df-target"},"provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/df-iscsi-datastore-3","name":"df-iscsi-datastore-3","properties":{"diskPoolVolume":{"lunName":"lun0","mountOption":"Mount","targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-df-rg/providers/Microsoft.StoragePool/diskPools/rasivagu-df-diskpool/iscsiTargets/rasivagu-df-target"},"provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/df-iscsi-datastore-4","name":"df-iscsi-datastore-4","properties":{"diskPoolVolume":{"lunName":"lun0","mountOption":"Mount","targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-df-rg/providers/Microsoft.StoragePool/diskPools/rasivagu-df-diskpool/iscsiTargets/rasivagu-df-target"},"provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1","name":"iSCSIDatastore1","properties":{"diskPoolVolume":{"lunName":"lun0","mountOption":"Mount","targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-df-rg/providers/Microsoft.StoragePool/diskPools/rasivagu-df-diskpool/iscsiTargets/rasivagu-df-target"},"provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"}]}' + headers: + cache-control: + - no-cache + content-length: + - '2916' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 03 Jun 2021 20:37:29 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 79E2159D4A5C48E681027A444D877178 Ref B: WSTEDGE1017 Ref C: 2021-06-03T20:37:29Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.3 + method: GET + uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - max-age=86400, private + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 03 Jun 2021 20:37:30 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AriST5J3hzRAmiqgDxWKxdw; expires=Sat, 03-Jul-2021 20:37:30 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrnxGW_OEXcfY54JU6624WEQiDYZBKAZ6_P6Y_Qreb0h4gl2J1NObsS9UC1XqhN-Uyg5lU0Mk3xxumnpiMoIwHqsxNBr0NM1qkNAN7faHj5tg91CsiWyF3vwC_34u_1PGExigwyJ6cRmCSY7bOMdhvJXWnBf2U24F_wcYLtFHVof8gAA; + domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly + - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.11722.26 - WUS2 ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware datastore delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name --resource-group --private-cloud --cluster + User-Agent: + - AZURECLI/2.19.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1","name":"iSCSIDatastore1","properties":{"diskPoolVolume":{"lunName":"lun0","mountOption":"Mount","targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-df-rg/providers/Microsoft.StoragePool/diskPools/rasivagu-df-diskpool/iscsiTargets/rasivagu-df-target"},"provisioningState":"Pending"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"}' + headers: + azure-asyncoperation: + - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1/operationstatuses/71b73745-5644-4172-8cfd-305fb265d3c3?api-version=2021-06-01 + cache-control: + - no-cache + content-length: + - '570' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 03 Jun 2021 20:37:31 GMT + expires: + - '-1' + location: + - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1/operationresults/71b73745-5644-4172-8cfd-305fb265d3c3?api-version=2021-06-01 + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + x-msedge-ref: + - 'Ref A: 506FAE2517144950846A0CE04475665E Ref B: WSTEDGE1015 Ref C: 2021-06-03T20:37:30Z' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware datastore delete + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --private-cloud --cluster + User-Agent: + - AZURECLI/2.19.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1/operationstatuses/71b73745-5644-4172-8cfd-305fb265d3c3?api-version=2021-06-01 + response: + body: + string: '{"endTime":"2021-06-03T20:37:30.7641057+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1/operationstatuses/71b73745-5644-4172-8cfd-305fb265d3c3","name":"71b73745-5644-4172-8cfd-305fb265d3c3","percentComplete":100,"startTime":"2021-06-03T20:37:30.2163126+00:00","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '433' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 03 Jun 2021 20:37:41 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 2A4A67D2A0974537AF413865BC47527D Ref B: WSTEDGE1015 Ref C: 2021-06-03T20:37:41Z' + status: + code: 200 + message: OK version: 1 diff --git a/src/vmware/azext_vmware/tests/latest/test_datastores_scenario.py b/src/vmware/azext_vmware/tests/latest/test_datastores_scenario.py index 1d0d42b474f..779a269553a 100644 --- a/src/vmware/azext_vmware/tests/latest/test_datastores_scenario.py +++ b/src/vmware/azext_vmware/tests/latest/test_datastores_scenario.py @@ -22,19 +22,19 @@ def test_vmware_datastores(self): # 'loc': 'centralus', # 'privatecloud': 'cloud1', # 'cluster': 'pycluster1', - 'rg': 'cataggar-ds', - 'privatecloud': 'cataggar-ds', - 'cluster': 'cataggar-ds', + 'rg': 'rasivagu-sddc-rg', + 'privatecloud': 'rasivagu-mock-sddc', + 'cluster': 'Cluster-1', 'volume_id': '/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/ResourceGroup1/providers/Microsoft.NetApp/netAppAccounts/NetAppAccount1/capacityPools/CapacityPool1/volumes/NFSVol1', - 'target_id': '/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/ResourceGroup1/providers/Microsoft.StoragePool/diskPools/mpio-diskpool/iscsiTargets/mpio-iscsi-target' + 'target_id': '/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/rasivagu-df-rg/providers/Microsoft.StoragePool/diskPools/rasivagu-df-diskpool/iscsiTargets/rasivagu-df-target' }) # Create a new iSCSI based datastore - # self.cmd('az vmware datastore disk-pool-volume create --name iSCSIDatastore1 --resource-group {rg} --private-cloud {privatecloud} --cluster {cluster} --target-id {target_id} --lun-name lun0') + self.cmd('az vmware datastore disk-pool-volume create --name iSCSIDatastore1 --resource-group {rg} --private-cloud {privatecloud} --cluster {cluster} --target-id {target_id} --lun-name lun0') # "The subscription '11111111-1111-1111-1111-111111111111' could not be found. # Get a iSCSI datastore - # self.cmd('az vmware datastore show --name iSCSIDatastore1 --resource-group {rg} --private-cloud {privatecloud} --cluster {cluster}') + self.cmd('az vmware datastore show --name iSCSIDatastore1 --resource-group {rg} --private-cloud {privatecloud} --cluster {cluster}') # # List all existing datastores self.cmd('az vmware datastore list --resource-group {rg} --private-cloud {privatecloud} --cluster {cluster}') @@ -47,4 +47,4 @@ def test_vmware_datastores(self): # self.cmd('az vmware datastore show --name ANFDatastore1 --resource-group {rg} --private-cloud {privatecloud} --cluster {cluster}') # Delete the newly created ANF based datastore - # self.cmd('az vmware datastore delete --name ANFDatastore1 --resource-group {rg} --private-cloud {privatecloud} --cluster {cluster}') + self.cmd('az vmware datastore delete --name iSCSIDatastore1 --resource-group {rg} --private-cloud {privatecloud} --cluster {cluster}') From 82a67983ab304708dc084f53e5a7eb1a9c0dfee4 Mon Sep 17 00:00:00 2001 From: Cameron Taggart Date: Thu, 3 Jun 2021 14:38:08 -0700 Subject: [PATCH 07/18] ci issues --- src/vmware/azext_vmware/_help.py | 2 +- src/vmware/azext_vmware/_params.py | 2 +- .../tests/latest/recordings/test_vmware.yaml | 1010 ++++++++--------- 3 files changed, 469 insertions(+), 545 deletions(-) diff --git a/src/vmware/azext_vmware/_help.py b/src/vmware/azext_vmware/_help.py index fa0eb364b62..b973b395c88 100644 --- a/src/vmware/azext_vmware/_help.py +++ b/src/vmware/azext_vmware/_help.py @@ -188,7 +188,7 @@ short-summary: Create a new Microsoft.NetApp provided NetApp volume in a private cloud cluster. examples: - name: Create a new Microsoft.NetApp provided NetApp volume based NFSv3 datastore. - text: az vmware datastore net-app-volume create --name ANFDatastore1 --resource-group MyResourceGroup --cluster Cluster-1 --private-cloud MyPrivateCloud --volume_id /subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/ResourceGroup1/providers/Microsoft.NetApp/netAppAccounts/NetAppAccount1/capacityPools/CapacityPool1/volumes/NFSVol1 + text: az vmware datastore net-app-volume create --name ANFDatastore1 --resource-group MyResourceGroup --cluster Cluster-1 --private-cloud MyPrivateCloud --volume-id /subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/ResourceGroup1/providers/Microsoft.NetApp/netAppAccounts/NetAppAccount1/capacityPools/CapacityPool1/volumes/NFSVol1 """ helps['vmware datastore disk-pool-volume'] = """ diff --git a/src/vmware/azext_vmware/_params.py b/src/vmware/azext_vmware/_params.py index ef24cc1ab13..8ba2e42ea6d 100644 --- a/src/vmware/azext_vmware/_params.py +++ b/src/vmware/azext_vmware/_params.py @@ -82,4 +82,4 @@ def load_arguments(self, _): c.argument('lun_name', help='Name of the LUN to be used.') c.argument('target_id', help='Azure resource ID of the iSCSI target.') c.argument('mount_option', nargs='*', help='Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN.') - c.argument('path', help='Device path.') \ No newline at end of file + c.argument('path', help='Device path.') diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml index 0600eab960c..45f7b190b4f 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml @@ -23,7 +23,7 @@ interactions: x-client-Ver: - 1.2.3 method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' @@ -39,13 +39,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:43:32 GMT + - Thu, 03 Jun 2021 21:25:50 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=Aul5XCIZf35DulczzFwDcwU; expires=Thu, 24-Jun-2021 19:43:32 GMT; path=/; + - fpc=Ar6DUEZ-Y_REtKLn10PQL8Q; expires=Sat, 03-Jul-2021 21:25:51 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrtWASdHumKDsEFOWAZpju2lXwN74GI9RwpfDAJJsC5EBJfz8eudququWaz2zMlJRJ-kreeHjm8p40NvD6dsI9e4sKza5Umb-_PQQIcmfW4MN__Jh8YIfF6u34fp0xktld22iGamSnQyeJ0iU0lWllxYsOthECKMc3njRT3HTH2EggAA; + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr_buZmUg8fcc1z1kOugbjDYCdjg5NYasqgfzKdi2TUCitY_FvOMzxqmUAf530AZt2fkn2RCOL4JvNNiOgga0rIPF_OE8IcS7q7WPDeQXc9-zAs32Ho_SshT6eIZpxDDapSDuiiRywkOQYOXVuslsgwRO5Z-jBuG7q59qtLyaWQyogAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -54,7 +54,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11722.21 - SCUS ProdSlices + - 2.1.11722.21 - NCUS ProdSlices status: code: 200 message: OK @@ -76,7 +76,7 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: POST - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AVS/locations/centralus/checkQuotaAvailability?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AVS/locations/centralus/checkQuotaAvailability?api-version=2021-06-01 response: body: string: '{"hostsRemaining":{"gp":976,"he":980},"quotaEnabled":"Enabled"}' @@ -88,7 +88,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:43:36 GMT + - Thu, 03 Jun 2021 21:25:54 GMT expires: - '-1' pragma: @@ -100,7 +100,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 17D51DED395B416E9B329EAC2412C4F2 Ref B: PDX31EDGE0120 Ref C: 2021-05-25T19:43:34Z' + - 'Ref A: BC47B999904A45429E894D674702F3CF Ref B: PDX31EDGE0122 Ref C: 2021-06-03T21:25:51Z' status: code: 200 message: OK @@ -128,7 +128,7 @@ interactions: x-client-Ver: - 1.2.3 method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' @@ -144,13 +144,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:43:38 GMT + - Thu, 03 Jun 2021 21:25:55 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AtHVWB-rRAlDjkh8NOJck2Y; expires=Thu, 24-Jun-2021 19:43:38 GMT; path=/; + - fpc=AnVw8SWsgd9FhNjfo4GBMYs; expires=Sat, 03-Jul-2021 21:25:55 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrtB0wouQWDBAm6iQEXa-5rHzwszra63jOUZBCX9LRGxfxTCdIyzwcpVFi0U5sV472X6Vevczhrrx4gGY6gE5DFkZpqmua5n6so4LvYUXh9p7hRlwd45FYGr4JFqvDO96MgJ__nSirW4ARj1ebS9VJkxDypnFp4DLclRA2eaz7ps0gAA; + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrb9PrOU0nLmf76kZI1UKtXtUmiCL1bDiSh7z-p2RoQX3tPbQ4vH_RiN83RCsDdsrF44sKO7WmuKJ_LFXGu2hSGJHRvUzohhZpjXJXx3hS0TKDD7wzay5Uu4z1FjRnlgmnLSficU3lnHwF1RygeyWoO-UySFXI6pY1ISGO4ayVbrcgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -181,7 +181,7 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: POST - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AVS/locations/centralus/checkTrialAvailability?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AVS/locations/centralus/checkTrialAvailability?api-version=2021-06-01 response: body: string: '{"availableHosts":0,"status":"TrialDisabled"}' @@ -193,7 +193,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:43:40 GMT + - Thu, 03 Jun 2021 21:25:56 GMT expires: - '-1' pragma: @@ -205,9 +205,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1199' x-msedge-ref: - - 'Ref A: 85C2D145DE8C4FC38D58C41168800E92 Ref B: PDX31EDGE0122 Ref C: 2021-05-25T19:43:40Z' + - 'Ref A: 4B202D8AE34E4021941DF49D102DD462 Ref B: PDX31EDGE0112 Ref C: 2021-06-03T21:25:55Z' status: code: 200 message: OK @@ -235,7 +235,7 @@ interactions: x-client-Ver: - 1.2.3 method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' @@ -251,13 +251,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:43:42 GMT + - Thu, 03 Jun 2021 21:25:56 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=At48AEygrQVOvbHESgm0aLA; expires=Thu, 24-Jun-2021 19:43:43 GMT; path=/; + - fpc=AmU7i0S_j85GsQQHuA2RIFg; expires=Sat, 03-Jul-2021 21:25:56 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr5Fv8a-ASLoPqbNmOtNE0ZCasrNfp6DjfnXq4hil3oqa6oVJbwvAsdLMzdIUdeuu0eI748S58TVHM0P5Y2ugbCUoEEARwv3J2R51N7okHrV7hCNLTStuGbtwppcEFeWEE11KkYL_WdQfwBtvN3boT2OwPFyUPhtCQL7hTV_OgepAgAA; + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr7L0ff6RnUhGq-qmVEb_7ZiDrX6t-FGsbrhSeMM2fIaKz1voC9PBTkOwTNWbPKLCFVvcLmP0COtDCD8P9rvGla_P5UXBzWP7twP6RuFJFbD-m2zbR9C8PjEP5QJt4PwWLoxla-OcE4Wz9LRM72YXY9YIifwkfo-L90F7pq92bKeggAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -286,7 +286,7 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds?api-version=2021-06-01 response: body: string: '{"value":[]}' @@ -298,7 +298,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:43:45 GMT + - Thu, 03 Jun 2021 21:25:57 GMT expires: - '-1' pragma: @@ -310,7 +310,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 127A78114BD844B6B9CFEBB7BCFF267E Ref B: PDX31EDGE0120 Ref C: 2021-05-25T19:43:45Z' + - 'Ref A: 8B63EBE9422F49829388AFF9E4D5BC4E Ref B: PDX31EDGE0110 Ref C: 2021-06-03T21:25:56Z' status: code: 200 message: OK @@ -338,7 +338,7 @@ interactions: x-client-Ver: - 1.2.3 method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' @@ -354,13 +354,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:43:47 GMT + - Thu, 03 Jun 2021 21:25:57 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AuPAk8iMlIZJkLkOam7tMFI; expires=Thu, 24-Jun-2021 19:43:47 GMT; path=/; + - fpc=AtAZno-QR05GuofpoPnHzug; expires=Sat, 03-Jul-2021 21:25:57 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrOwFX1-WCB03FDBtjnIpe0eDRwZ5jgFh4iFO0hOoyzaW8rICbBGSkSJrWtCUNMePuXPqD3vhnm91QZgslbzjpY92LEvsd8NkO7nc-yWmgIfvmyviDAMWPCUjD7cv5jMzFWxa9fqJM9S97y2QZ0jWtPGpdbWyGIL32kh14hKYTNOggAA; + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr8vfX9fzzoM5_MEVUXTfCIIQMla7K4kvI-K8w-GRXTdWPNrheqiuj8VZVG8FRZCvOHhjbKAxTWe2RnaM-b7vDK8Ydfyll3fR6NFzk_ufFIDz-E-_NAHB9gbnRM9XLdjpwsZZryG0IlJiWwPs0ssA_CwCKHmMCSf3R5Zpi87xMx40gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -369,7 +369,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11722.21 - WUS2 ProdSlices + - 2.1.11722.26 - WUS2 ProdSlices status: code: 200 message: OK @@ -396,13 +396,13 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":3,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management"],"provisioningState":"Building"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","provisioningNetwork":"192.168.50.0/24","provisioningState":"Building","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":3,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management"],"provisioningState":"Building"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","provisioningNetwork":"192.168.50.0/24","provisioningState":"Building","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' headers: azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4?api-version=2021-06-01 + - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9?api-version=2021-06-01 cache-control: - no-cache content-length: @@ -410,7 +410,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:43:57 GMT + - Thu, 03 Jun 2021 21:26:03 GMT expires: - '-1' pragma: @@ -422,9 +422,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1194' + - '1199' x-msedge-ref: - - 'Ref A: 84CCCCAE67F743C9BCC352DE2B40E95C Ref B: PDX31EDGE0119 Ref C: 2021-05-25T19:43:50Z' + - 'Ref A: 7ED20D716DE44BEA94C3ABFF01E1B888 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:25:58Z' status: code: 201 message: Created @@ -445,10 +445,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","name":"dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","percentComplete":0,"startTime":"2021-05-25T19:43:57.0033504+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9","name":"7202cf35-fca2-491b-8aa5-886816d038f9","percentComplete":0,"startTime":"2021-06-03T21:25:41.6805166+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -457,7 +457,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:44:07 GMT + - Thu, 03 Jun 2021 21:26:13 GMT expires: - '-1' pragma: @@ -469,7 +469,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: C60F11B04A174A04AD4E675391F6933D Ref B: PDX31EDGE0119 Ref C: 2021-05-25T19:44:07Z' + - 'Ref A: CBDFF4FC83C147E1BA1ECF36F6756664 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:26:14Z' status: code: 200 message: OK @@ -490,10 +490,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","name":"dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","percentComplete":0,"startTime":"2021-05-25T19:43:57.0033504+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9","name":"7202cf35-fca2-491b-8aa5-886816d038f9","percentComplete":0,"startTime":"2021-06-03T21:25:41.6805166+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -502,7 +502,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:44:17 GMT + - Thu, 03 Jun 2021 21:26:24 GMT expires: - '-1' pragma: @@ -514,7 +514,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: B406BA7D5CDA4F88BEA89D5783C122B2 Ref B: PDX31EDGE0119 Ref C: 2021-05-25T19:44:17Z' + - 'Ref A: 31DA2B65CC624D16985FCB8A183FEAD7 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:26:24Z' status: code: 200 message: OK @@ -535,10 +535,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","name":"dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","percentComplete":88.75,"startTime":"2021-05-25T19:43:57.0033504+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9","name":"7202cf35-fca2-491b-8aa5-886816d038f9","percentComplete":88.75,"startTime":"2021-06-03T21:25:41.6805166+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -547,7 +547,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:44:28 GMT + - Thu, 03 Jun 2021 21:26:34 GMT expires: - '-1' pragma: @@ -559,7 +559,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 799F02D14A084B5E86B091C1B26B0DB4 Ref B: PDX31EDGE0119 Ref C: 2021-05-25T19:44:28Z' + - 'Ref A: 2F2F2FAF3CA64DAAA859D351030E9EEA Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:26:34Z' status: code: 200 message: OK @@ -580,10 +580,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","name":"dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","percentComplete":88.75,"startTime":"2021-05-25T19:43:57.0033504+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9","name":"7202cf35-fca2-491b-8aa5-886816d038f9","percentComplete":88.75,"startTime":"2021-06-03T21:25:41.6805166+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -592,7 +592,52 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:44:38 GMT + - Thu, 03 Jun 2021 21:26:44 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: E7D4423613C54B719B84620F2BB38398 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:26:44Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud create + Connection: + - keep-alive + ParameterSetName: + - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password + --accept-eula + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9","name":"7202cf35-fca2-491b-8aa5-886816d038f9","percentComplete":100,"startTime":"2021-06-03T21:25:41.6805166+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '387' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 03 Jun 2021 21:26:55 GMT expires: - '-1' pragma: @@ -604,7 +649,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 931C80D9D11C48B29F014C4BACF1D2B4 Ref B: PDX31EDGE0119 Ref C: 2021-05-25T19:44:38Z' + - 'Ref A: BEDFF789B1DB490B96F75855F27FD836 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:26:55Z' status: code: 200 message: OK @@ -625,10 +670,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","name":"dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","percentComplete":100,"startTime":"2021-05-25T19:43:57.0033504+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9","name":"7202cf35-fca2-491b-8aa5-886816d038f9","percentComplete":100,"startTime":"2021-06-03T21:25:41.6805166+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -637,7 +682,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:44:48 GMT + - Thu, 03 Jun 2021 21:27:05 GMT expires: - '-1' pragma: @@ -649,7 +694,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 38EEEADE8F07456EB1F0C7E255A3AE1B Ref B: PDX31EDGE0119 Ref C: 2021-05-25T19:44:48Z' + - 'Ref A: 17726E9550D14FD9A89A67C18670DD61 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:27:05Z' status: code: 200 message: OK @@ -670,10 +715,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","name":"dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","percentComplete":100,"startTime":"2021-05-25T19:43:57.0033504+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9","name":"7202cf35-fca2-491b-8aa5-886816d038f9","percentComplete":100,"startTime":"2021-06-03T21:25:41.6805166+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -682,7 +727,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:44:59 GMT + - Thu, 03 Jun 2021 21:27:15 GMT expires: - '-1' pragma: @@ -694,7 +739,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 4B233D7F7D404298B6F243BC879EA176 Ref B: PDX31EDGE0119 Ref C: 2021-05-25T19:44:59Z' + - 'Ref A: A9CA9AD0F3EC4B2EBA9EAD0FA91C862C Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:27:15Z' status: code: 200 message: OK @@ -715,10 +760,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","name":"dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","percentComplete":100,"startTime":"2021-05-25T19:43:57.0033504+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9","name":"7202cf35-fca2-491b-8aa5-886816d038f9","percentComplete":100,"startTime":"2021-06-03T21:25:41.6805166+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -727,7 +772,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:45:09 GMT + - Thu, 03 Jun 2021 21:27:25 GMT expires: - '-1' pragma: @@ -739,7 +784,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 71B2C0E999AA401285391219AE75FCCF Ref B: PDX31EDGE0119 Ref C: 2021-05-25T19:45:09Z' + - 'Ref A: 51FEA5C9B2FD4B6E94503A72C36DCA32 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:27:26Z' status: code: 200 message: OK @@ -760,10 +805,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","name":"dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","percentComplete":100,"startTime":"2021-05-25T19:43:57.0033504+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9","name":"7202cf35-fca2-491b-8aa5-886816d038f9","percentComplete":100,"startTime":"2021-06-03T21:25:41.6805166+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -772,7 +817,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:45:19 GMT + - Thu, 03 Jun 2021 21:27:36 GMT expires: - '-1' pragma: @@ -784,7 +829,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 3676C24CFD7842F7B8251BC84562147D Ref B: PDX31EDGE0119 Ref C: 2021-05-25T19:45:19Z' + - 'Ref A: 19615D3FB3C0459FB6D2E56E0EB9AB42 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:27:36Z' status: code: 200 message: OK @@ -805,10 +850,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","name":"dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","percentComplete":100,"startTime":"2021-05-25T19:43:57.0033504+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9","name":"7202cf35-fca2-491b-8aa5-886816d038f9","percentComplete":100,"startTime":"2021-06-03T21:25:41.6805166+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -817,7 +862,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:45:29 GMT + - Thu, 03 Jun 2021 21:27:46 GMT expires: - '-1' pragma: @@ -829,7 +874,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 5F64B23BAFEB49D6A92E409E0674EBC5 Ref B: PDX31EDGE0119 Ref C: 2021-05-25T19:45:29Z' + - 'Ref A: D85E053DC94C4476BC2CE75FCA3DAD88 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:27:46Z' status: code: 200 message: OK @@ -850,10 +895,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","name":"dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","percentComplete":100,"startTime":"2021-05-25T19:43:57.0033504+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9","name":"7202cf35-fca2-491b-8aa5-886816d038f9","percentComplete":100,"startTime":"2021-06-03T21:25:41.6805166+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -862,7 +907,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:45:39 GMT + - Thu, 03 Jun 2021 21:27:56 GMT expires: - '-1' pragma: @@ -874,7 +919,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: FA09855F3A5E4BEB8C9BCD121C2FC2D9 Ref B: PDX31EDGE0119 Ref C: 2021-05-25T19:45:39Z' + - 'Ref A: 6EC09E44CB21452FB6C458924953637D Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:27:57Z' status: code: 200 message: OK @@ -895,10 +940,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","name":"dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","percentComplete":100,"startTime":"2021-05-25T19:43:57.0033504+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9","name":"7202cf35-fca2-491b-8aa5-886816d038f9","percentComplete":100,"startTime":"2021-06-03T21:25:41.6805166+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -907,7 +952,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:45:50 GMT + - Thu, 03 Jun 2021 21:28:07 GMT expires: - '-1' pragma: @@ -919,7 +964,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 59EF6DD10E1B43B098770D93738D5F3F Ref B: PDX31EDGE0119 Ref C: 2021-05-25T19:45:50Z' + - 'Ref A: A05D6EA049C54FFAAD606994BE263539 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:28:07Z' status: code: 200 message: OK @@ -940,10 +985,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9?api-version=2021-06-01 response: body: - string: '{"endTime":"2021-05-25T19:45:53.4946862+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","name":"dc5ddb38-db8f-4256-a05c-c8b6e0a612e4","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":3,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"},"startTime":"2021-05-25T19:43:57.0033504+00:00","status":"Succeeded"}' + string: '{"endTime":"2021-06-03T21:28:03.4821553+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9","name":"7202cf35-fca2-491b-8aa5-886816d038f9","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":3,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"},"startTime":"2021-06-03T21:25:41.6805166+00:00","status":"Succeeded"}' headers: cache-control: - no-cache @@ -952,7 +997,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:46:00 GMT + - Thu, 03 Jun 2021 21:28:17 GMT expires: - '-1' pragma: @@ -964,7 +1009,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 1739DB3E63C94A4D96D50E9A18874933 Ref B: PDX31EDGE0119 Ref C: 2021-05-25T19:46:00Z' + - 'Ref A: 56210098E501446FB02AC43C18166E6E Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:28:17Z' status: code: 200 message: OK @@ -985,10 +1030,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":3,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":3,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' headers: cache-control: - no-cache @@ -997,7 +1042,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:46:00 GMT + - Thu, 03 Jun 2021 21:28:17 GMT expires: - '-1' pragma: @@ -1009,7 +1054,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 0374602756E347B2BC790C48F89ED4EA Ref B: PDX31EDGE0119 Ref C: 2021-05-25T19:46:00Z' + - 'Ref A: 08C50C88440E4A739AA84C1DA8C37913 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:28:17Z' status: code: 200 message: OK @@ -1037,7 +1082,7 @@ interactions: x-client-Ver: - 1.2.3 method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' @@ -1053,13 +1098,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:46:02 GMT + - Thu, 03 Jun 2021 21:28:17 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AjpzVJwYc_pNlKNL-lSL6ok; expires=Thu, 24-Jun-2021 19:46:03 GMT; path=/; + - fpc=AjDdeGOhVX1EsePTm3E2YL0; expires=Sat, 03-Jul-2021 21:28:18 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrzV13XOe-L8VN5j2YPu6hbkOq_dPLQWPkei614fsbLMFPkO1XAL6uu1oCgjbUB4wcbnal4xRd_QWXelA7ib_Bxw2SvA1U0dXOshWyVV6o9T-CRFW--LUu6Q4qngkqGylgwUSIufWJ6meFMe2ryfFDl-lJly93yspv1YDMH9oN1hkgAA; + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrURoIupyrRWlGOKbVjeuP_qSV-UGeTVkDdEq_fiThNlHlWxzukaHdEn-IwSOWTk_sbA9AUWbuFQZSNfY-9seWcroEP9OfQw1G7adbNo4DzEZqjKwvBuE3worRRTLn3-DgJIl05MjTYIEiPYdUQbCXuYvbBlomPOfKlJDUnxbLi1AgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -1068,7 +1113,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11722.21 - SCUS ProdSlices + - 2.1.11722.21 - NCUS ProdSlices status: code: 200 message: OK @@ -1088,10 +1133,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds?api-version=2021-06-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":3,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":3,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}]}' headers: cache-control: - no-cache @@ -1100,7 +1145,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:46:06 GMT + - Thu, 03 Jun 2021 21:28:18 GMT expires: - '-1' pragma: @@ -1112,7 +1157,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: C4DCEB310B084F0BB6D6FC10455B63B1 Ref B: PDX31EDGE0110 Ref C: 2021-05-25T19:46:05Z' + - 'Ref A: 5939D40B70BD40A48A33F45875DF95F0 Ref B: PDX31EDGE0112 Ref C: 2021-06-03T21:28:18Z' status: code: 200 message: OK @@ -1140,7 +1185,7 @@ interactions: x-client-Ver: - 1.2.3 method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' @@ -1156,13 +1201,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:46:08 GMT + - Thu, 03 Jun 2021 21:28:18 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AqrguUIPRhhHjJc-CA2CU-Y; expires=Thu, 24-Jun-2021 19:46:08 GMT; path=/; + - fpc=ArOnZh7S9JtGr0f5XL6P1QU; expires=Sat, 03-Jul-2021 21:28:19 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrBIXcxaYL4naD75iqXwec_-_5SVd0eAQpJgTuDejCCfYEs2KpHpw-WNvoqbQwt2XxkNCd7AGEvxgjFgMYd-AXkg_fSOLxgYQ8sC7A1wr3k2oKnDUj8lhcLAMbSvjsjrFHOVOpg7oJOzMERAtC2e0RRCCU4aSiAarnspkt2Egfn9MgAA; + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrQLMIMBrJe2IzKY_3C3NxUGNlnH8wNgP9KIq2Iz7X4xOzHgfgA3VtympT_oo_ZUvWwzBtkvj9PRVl-XGx9EdYBOFPC9eb4wNx38rg-0yP_W0Fy_iAetUYk9xsEuzIKFSO5BOYCQ0-HYJMA4wG8WKdb2akD3AspbMA9lqGJ46e7EcgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -1193,7 +1238,7 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: POST - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateVcenterPassword?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateVcenterPassword?api-version=2021-06-01 response: body: string: '' @@ -1205,11 +1250,11 @@ interactions: content-type: - text/html date: - - Tue, 25 May 2021 19:46:11 GMT + - Thu, 03 Jun 2021 21:28:20 GMT expires: - '-1' location: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateVcenterPassword/operationresults/1415ac59-24c0-4b7d-bf62-6043b1db53d7?api-version=2021-06-01 + - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateVcenterPassword/operationresults/dd88ae15-28a0-4310-8aa0-2f3de328ec9c?api-version=2021-06-01 pragma: - no-cache strict-transport-security: @@ -1219,9 +1264,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' x-msedge-ref: - - 'Ref A: DA72533DA1A047128D412D83B2790BC5 Ref B: PDX31EDGE0117 Ref C: 2021-05-25T19:46:10Z' + - 'Ref A: 3F61849BD0BA48A29B88FDDB3AD1A02C Ref B: PDX31EDGE0122 Ref C: 2021-06-03T21:28:19Z' status: code: 202 message: Accepted @@ -1241,7 +1286,7 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateVcenterPassword/operationresults/1415ac59-24c0-4b7d-bf62-6043b1db53d7?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateVcenterPassword/operationresults/dd88ae15-28a0-4310-8aa0-2f3de328ec9c?api-version=2021-06-01 response: body: string: '' @@ -1251,7 +1296,7 @@ interactions: content-type: - text/html date: - - Tue, 25 May 2021 19:46:41 GMT + - Thu, 03 Jun 2021 21:28:50 GMT expires: - '-1' pragma: @@ -1263,7 +1308,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 96B4A7EFDB8744D49995BB054DDC8F0F Ref B: PDX31EDGE0117 Ref C: 2021-05-25T19:46:41Z' + - 'Ref A: 5252D15A57284DAFB1BEBB5F6BF8B8C2 Ref B: PDX31EDGE0122 Ref C: 2021-06-03T21:28:51Z' status: code: 204 message: No Content @@ -1291,7 +1336,7 @@ interactions: x-client-Ver: - 1.2.3 method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' @@ -1307,13 +1352,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:46:44 GMT + - Thu, 03 Jun 2021 21:28:52 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=Aklolf6LSFBDqzQK3tulyL0; expires=Thu, 24-Jun-2021 19:46:45 GMT; path=/; + - fpc=AhrGyKpw4xlAjgNgzgj_4Gs; expires=Sat, 03-Jul-2021 21:28:52 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr-BGuenCNEJsv5RtYpZea8iciNN7jJrAfSaDO7tslfAGwGu1dA93gOalUqdl5_tWxrE9wAhSGMmnOnw4PHjJjd4fOlklEOi7a7rk67N7NwyPa_NfNkNlbGcNp9rz4913allj_5SnseuRaRwt5GUIt0oBsdz2I7n0Sbur0ZxVB0hAgAA; + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevriYTRSP4jmRVLIwrQw_EHRu0gyzbE1KftGiRElombfJU9pgXjId4sghfFSTyaXIIE7tGpi0zOcqiAbsoyFy4EGTLSmM9nUzHBL74mgQKdLHxzDYy3wILcC7D1l6wc7AEPkg-dprzj6w2CRf_UsSKv8MgSb4dosjW2yo6i9NfZA5AgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -1322,7 +1367,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11774.11 - WUS2 ProdSlices + - 2.1.11722.26 - EUS ProdSlices status: code: 200 message: OK @@ -1344,7 +1389,7 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: POST - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateNsxtPassword?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateNsxtPassword?api-version=2021-06-01 response: body: string: '' @@ -1356,11 +1401,11 @@ interactions: content-type: - text/html date: - - Tue, 25 May 2021 19:46:47 GMT + - Thu, 03 Jun 2021 21:28:53 GMT expires: - '-1' location: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateNsxtPassword/operationresults/2d3e8cee-13e1-41a1-99b8-f028be00baa5?api-version=2021-06-01 + - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateNsxtPassword/operationresults/8c48a252-e4f6-4d72-a211-3de0855e0a2c?api-version=2021-06-01 pragma: - no-cache strict-transport-security: @@ -1370,9 +1415,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' x-msedge-ref: - - 'Ref A: A2A449A41E3946E4866C8D1A36D2588C Ref B: PDX31EDGE0122 Ref C: 2021-05-25T19:46:47Z' + - 'Ref A: A101D04A8F024CC5BA705B9DA7FA85DB Ref B: PDX31EDGE0109 Ref C: 2021-06-03T21:28:52Z' status: code: 202 message: Accepted @@ -1392,7 +1437,7 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateNsxtPassword/operationresults/2d3e8cee-13e1-41a1-99b8-f028be00baa5?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateNsxtPassword/operationresults/8c48a252-e4f6-4d72-a211-3de0855e0a2c?api-version=2021-06-01 response: body: string: '' @@ -1402,7 +1447,7 @@ interactions: content-type: - text/html date: - - Tue, 25 May 2021 19:47:18 GMT + - Thu, 03 Jun 2021 21:29:24 GMT expires: - '-1' pragma: @@ -1414,7 +1459,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 0EABE6DF5DC94709985A9116177D8A5E Ref B: PDX31EDGE0122 Ref C: 2021-05-25T19:47:18Z' + - 'Ref A: E879511427DB42ECBBAFEB02928D9FAC Ref B: PDX31EDGE0109 Ref C: 2021-06-03T21:29:23Z' status: code: 204 message: No Content @@ -1442,7 +1487,7 @@ interactions: x-client-Ver: - 1.2.3 method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' @@ -1458,13 +1503,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:47:21 GMT + - Thu, 03 Jun 2021 21:29:24 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AlVYihK3sepMulZW4LBRgd0; expires=Thu, 24-Jun-2021 19:47:21 GMT; path=/; + - fpc=AtCMGGYxth5MnNeuB2KRIXA; expires=Sat, 03-Jul-2021 21:29:25 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrvnns0CGQZO-pfa0w3S6Ge6zF5Wx5LYTTxulyAmPq-o3QEqtakR1xH3JyP7csKzNFwjbACNbTgCLxctQkdv0N1H9Cqigi_AWVkN6F21hTLX-3_ApEdG3EuaDUfggOQ1a7-LokqQDwOeNTtOy6gWt0HMv8puSlL-diqsEnskwCDhwgAA; + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrLVidRp3AlH_mWudO5vpq4_HO6Xs2r7Gri_n682w0DoTfv7hDYOgQkuRyC8tbzITyi4TN5CohFW9BYmTouoSRw3tbYxkgKfIjleiR32t3aSIYHYis514l-yMfZ2oCXnCKQLNrSjppnHy6NBhxpTB0LoDmuX2rtU7o-JlT7lvD31EgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -1473,7 +1518,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11722.21 - EUS ProdSlices + - 2.1.11722.26 - EUS ProdSlices status: code: 200 message: OK @@ -1497,13 +1542,13 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management"],"provisioningState":"Updating"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Updating","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management"],"provisioningState":"Updating"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Updating","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' headers: azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/56f60711-7f70-478c-8fb2-745be20176b3?api-version=2021-06-01 + - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a5515a88-124d-4650-b96b-10b613dd7932?api-version=2021-06-01 cache-control: - no-cache content-length: @@ -1511,7 +1556,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:47:26 GMT + - Thu, 03 Jun 2021 21:29:27 GMT expires: - '-1' pragma: @@ -1523,9 +1568,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1195' + - '1198' x-msedge-ref: - - 'Ref A: CDB76E1BFB964ED097AE8BDAA38FFCB6 Ref B: PDX31EDGE0121 Ref C: 2021-05-25T19:47:24Z' + - 'Ref A: 6CA833803C834A7184E78364BEFE5188 Ref B: PDX31EDGE0114 Ref C: 2021-06-03T21:29:25Z' status: code: 201 message: Created @@ -1545,10 +1590,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/56f60711-7f70-478c-8fb2-745be20176b3?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a5515a88-124d-4650-b96b-10b613dd7932?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/56f60711-7f70-478c-8fb2-745be20176b3","name":"56f60711-7f70-478c-8fb2-745be20176b3","percentComplete":0,"startTime":"2021-05-25T19:47:26.5224032+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a5515a88-124d-4650-b96b-10b613dd7932","name":"a5515a88-124d-4650-b96b-10b613dd7932","percentComplete":0,"startTime":"2021-06-03T21:29:05.6686202+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -1557,51 +1602,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:47:36 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 385CAF1416764D7884A19C9F45757D67 Ref B: PDX31EDGE0121 Ref C: 2021-05-25T19:47:36Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud update - Connection: - - keep-alive - ParameterSetName: - - -g -n --cluster-size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/56f60711-7f70-478c-8fb2-745be20176b3?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/56f60711-7f70-478c-8fb2-745be20176b3","name":"56f60711-7f70-478c-8fb2-745be20176b3","percentComplete":50,"startTime":"2021-05-25T19:47:26.5224032+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '386' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 25 May 2021 19:47:46 GMT + - Thu, 03 Jun 2021 21:29:38 GMT expires: - '-1' pragma: @@ -1613,7 +1614,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 9A6A2F7289FE4F75AD9522F9682C7D3B Ref B: PDX31EDGE0121 Ref C: 2021-05-25T19:47:46Z' + - 'Ref A: 6EC50F00DC5C4D82B447694BE07E2FC6 Ref B: PDX31EDGE0114 Ref C: 2021-06-03T21:29:37Z' status: code: 200 message: OK @@ -1633,10 +1634,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/56f60711-7f70-478c-8fb2-745be20176b3?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a5515a88-124d-4650-b96b-10b613dd7932?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/56f60711-7f70-478c-8fb2-745be20176b3","name":"56f60711-7f70-478c-8fb2-745be20176b3","percentComplete":0,"startTime":"2021-05-25T19:47:26.5224032+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a5515a88-124d-4650-b96b-10b613dd7932","name":"a5515a88-124d-4650-b96b-10b613dd7932","percentComplete":0,"startTime":"2021-06-03T21:29:05.6686202+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -1645,7 +1646,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:47:56 GMT + - Thu, 03 Jun 2021 21:29:48 GMT expires: - '-1' pragma: @@ -1657,7 +1658,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 598799947F8148559030C51F3B9E2656 Ref B: PDX31EDGE0121 Ref C: 2021-05-25T19:47:57Z' + - 'Ref A: 48A2BA4DE0F74B9CB81D642BD3F0D727 Ref B: PDX31EDGE0114 Ref C: 2021-06-03T21:29:48Z' status: code: 200 message: OK @@ -1677,19 +1678,19 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/56f60711-7f70-478c-8fb2-745be20176b3?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a5515a88-124d-4650-b96b-10b613dd7932?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/56f60711-7f70-478c-8fb2-745be20176b3","name":"56f60711-7f70-478c-8fb2-745be20176b3","percentComplete":75,"startTime":"2021-05-25T19:47:26.5224032+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a5515a88-124d-4650-b96b-10b613dd7932","name":"a5515a88-124d-4650-b96b-10b613dd7932","percentComplete":0,"startTime":"2021-06-03T21:29:05.6686202+00:00","status":"Building"}' headers: cache-control: - no-cache content-length: - - '386' + - '385' content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:48:06 GMT + - Thu, 03 Jun 2021 21:29:58 GMT expires: - '-1' pragma: @@ -1701,7 +1702,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 926B41A853194602AF58A50E3C89BA16 Ref B: PDX31EDGE0121 Ref C: 2021-05-25T19:48:07Z' + - 'Ref A: 907862EC793B4CF58622DAB73F9152BB Ref B: PDX31EDGE0114 Ref C: 2021-06-03T21:29:58Z' status: code: 200 message: OK @@ -1721,10 +1722,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/56f60711-7f70-478c-8fb2-745be20176b3?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a5515a88-124d-4650-b96b-10b613dd7932?api-version=2021-06-01 response: body: - string: '{"endTime":"2021-05-25T19:48:03.3796952+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/56f60711-7f70-478c-8fb2-745be20176b3","name":"56f60711-7f70-478c-8fb2-745be20176b3","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"},"startTime":"2021-05-25T19:47:26.5224032+00:00","status":"Succeeded"}' + string: '{"endTime":"2021-06-03T21:30:03.3674197+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a5515a88-124d-4650-b96b-10b613dd7932","name":"a5515a88-124d-4650-b96b-10b613dd7932","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"},"startTime":"2021-06-03T21:29:05.6686202+00:00","status":"Succeeded"}' headers: cache-control: - no-cache @@ -1733,7 +1734,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:48:17 GMT + - Thu, 03 Jun 2021 21:30:09 GMT expires: - '-1' pragma: @@ -1745,7 +1746,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: B927D316C2E644D99CE521F711802E3E Ref B: PDX31EDGE0121 Ref C: 2021-05-25T19:48:17Z' + - 'Ref A: 2CF32CAFCA1B46A59B651E56FF502D93 Ref B: PDX31EDGE0114 Ref C: 2021-06-03T21:30:09Z' status: code: 200 message: OK @@ -1765,10 +1766,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' headers: cache-control: - no-cache @@ -1777,7 +1778,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:48:17 GMT + - Thu, 03 Jun 2021 21:30:09 GMT expires: - '-1' pragma: @@ -1789,7 +1790,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 3328B4777E3A4A1497787FE9A65383F8 Ref B: PDX31EDGE0121 Ref C: 2021-05-25T19:48:18Z' + - 'Ref A: 991FDA8C9E9C41AF97DA6C3F8D1CAD4D Ref B: PDX31EDGE0114 Ref C: 2021-06-03T21:30:09Z' status: code: 200 message: OK @@ -1817,7 +1818,7 @@ interactions: x-client-Ver: - 1.2.3 method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' @@ -1833,13 +1834,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:48:21 GMT + - Thu, 03 Jun 2021 21:30:09 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=Ag7b2l3XpvxCgD4NQqnEaSM; expires=Thu, 24-Jun-2021 19:48:21 GMT; path=/; + - fpc=Agc3TmgzluRGq78QKoM3viM; expires=Sat, 03-Jul-2021 21:30:10 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrXuhdpjTKfWWt3Y-NphM-98yzrZROZE_TsTsYLGh2kTDm-Yglflfh_gu5wggsjnNZWZC-NL0zM4henJABrH2YZ8v2KTOH0dDQIpzIbPOP-wJl-He4Kbs5P8_zC6Pcwn4QNoDL-GCy0SqB8PMSC8Y5BXPbNVKAd0cvfdnYuv6n094gAA; + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrCtz6YUX1PLnNcAxYxN38vlWrtV9g8x7UYS-usVrup29jQoVVKZAeNQh1hSXUYRG8_1CceAR0LQ-wN-Re9OJV3-xn9mHqzyQbwgQrjkZvmtzsnyLib40HItNBC6M6KrCeB7Jl7g6zqwjcaV-pFAjMch4Wl3cN2YtOdheOgK1TNRYgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -1848,7 +1849,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11722.21 - WUS2 ProdSlices + - 2.1.11722.26 - NCUS ProdSlices status: code: 200 message: OK @@ -1872,13 +1873,13 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Updating","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Updating","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' headers: azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/43f70d5b-8725-4935-9140-48f927a8e218?api-version=2021-06-01 + - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/1638ac84-b1b4-4a86-99ac-46740c88c73c?api-version=2021-06-01 cache-control: - no-cache content-length: @@ -1886,7 +1887,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:48:23 GMT + - Thu, 03 Jun 2021 21:30:10 GMT expires: - '-1' pragma: @@ -1898,9 +1899,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1193' + - '1197' x-msedge-ref: - - 'Ref A: DECB84FE74E74742B510161B2C17AF17 Ref B: PDX31EDGE0108 Ref C: 2021-05-25T19:48:23Z' + - 'Ref A: 8ACAB2A728114282BF9D1CFBE967E70B Ref B: PDX31EDGE0120 Ref C: 2021-06-03T21:30:10Z' status: code: 201 message: Created @@ -1920,10 +1921,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/43f70d5b-8725-4935-9140-48f927a8e218?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/1638ac84-b1b4-4a86-99ac-46740c88c73c?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/43f70d5b-8725-4935-9140-48f927a8e218","name":"43f70d5b-8725-4935-9140-48f927a8e218","percentComplete":10,"startTime":"2021-05-25T19:48:23.9440665+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/1638ac84-b1b4-4a86-99ac-46740c88c73c","name":"1638ac84-b1b4-4a86-99ac-46740c88c73c","percentComplete":10,"startTime":"2021-06-03T21:29:49.2793732+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -1932,7 +1933,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:48:33 GMT + - Thu, 03 Jun 2021 21:30:21 GMT expires: - '-1' pragma: @@ -1944,7 +1945,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 7F25E7BDF2E046378DD898D9B6118249 Ref B: PDX31EDGE0108 Ref C: 2021-05-25T19:48:34Z' + - 'Ref A: 0D9DF3BB39A7414FA0726F5242BD91B9 Ref B: PDX31EDGE0120 Ref C: 2021-06-03T21:30:21Z' status: code: 200 message: OK @@ -1964,10 +1965,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/43f70d5b-8725-4935-9140-48f927a8e218?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/1638ac84-b1b4-4a86-99ac-46740c88c73c?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/43f70d5b-8725-4935-9140-48f927a8e218","name":"43f70d5b-8725-4935-9140-48f927a8e218","percentComplete":100,"startTime":"2021-05-25T19:48:23.9440665+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/1638ac84-b1b4-4a86-99ac-46740c88c73c","name":"1638ac84-b1b4-4a86-99ac-46740c88c73c","percentComplete":100,"startTime":"2021-06-03T21:29:49.2793732+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -1976,7 +1977,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:48:43 GMT + - Thu, 03 Jun 2021 21:30:31 GMT expires: - '-1' pragma: @@ -1988,7 +1989,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: A70E1D557D774C98B033BABEF2935F3A Ref B: PDX31EDGE0108 Ref C: 2021-05-25T19:48:44Z' + - 'Ref A: 85180DD0956940BEAEE1FB8C0B4A8494 Ref B: PDX31EDGE0120 Ref C: 2021-06-03T21:30:31Z' status: code: 200 message: OK @@ -2008,10 +2009,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/43f70d5b-8725-4935-9140-48f927a8e218?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/1638ac84-b1b4-4a86-99ac-46740c88c73c?api-version=2021-06-01 response: body: - string: '{"endTime":"2021-05-25T19:48:43.3506242+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/43f70d5b-8725-4935-9140-48f927a8e218","name":"43f70d5b-8725-4935-9140-48f927a8e218","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"},"startTime":"2021-05-25T19:48:23.9440665+00:00","status":"Succeeded"}' + string: '{"endTime":"2021-06-03T21:30:28.3548267+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/1638ac84-b1b4-4a86-99ac-46740c88c73c","name":"1638ac84-b1b4-4a86-99ac-46740c88c73c","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"},"startTime":"2021-06-03T21:29:49.2793732+00:00","status":"Succeeded"}' headers: cache-control: - no-cache @@ -2020,7 +2021,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:48:53 GMT + - Thu, 03 Jun 2021 21:30:41 GMT expires: - '-1' pragma: @@ -2032,7 +2033,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 6DA85FD43E1246D48B4E8E82BAA012A1 Ref B: PDX31EDGE0108 Ref C: 2021-05-25T19:48:54Z' + - 'Ref A: 42CBBC41C61E468CA6933F338C408155 Ref B: PDX31EDGE0120 Ref C: 2021-06-03T21:30:41Z' status: code: 200 message: OK @@ -2052,10 +2053,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' headers: cache-control: - no-cache @@ -2064,7 +2065,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:48:54 GMT + - Thu, 03 Jun 2021 21:30:41 GMT expires: - '-1' pragma: @@ -2076,7 +2077,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 371B6B3D4CB34B58A997F6E7F3CFA263 Ref B: PDX31EDGE0108 Ref C: 2021-05-25T19:48:54Z' + - 'Ref A: D46A11FEB8F94B2D8FC2B70BA1B9BD57 Ref B: PDX31EDGE0120 Ref C: 2021-06-03T21:30:42Z' status: code: 200 message: OK @@ -2104,7 +2105,7 @@ interactions: x-client-Ver: - 1.2.3 method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' @@ -2120,13 +2121,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:48:56 GMT + - Thu, 03 Jun 2021 21:30:42 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AkeDY_5LG0RIqLvDQSuXkwU; expires=Thu, 24-Jun-2021 19:48:57 GMT; path=/; + - fpc=AiT0zbd_kwpHiE-NG38-dQ0; expires=Sat, 03-Jul-2021 21:30:42 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrrDqEn6Fn2rbn4ZySGDP2LNetjB2HTJemIc60up5DrwqZYWEyLD8khsRNB0EC6rGL9D2rcbOc_sm4tm7z2G3DzR5KqE-UdvXg46aj2z5jXERiJ473x11wyqiT1Fks8lfq0njL1rfTDX-oG7PPgnWFgKhvRh8WdpEFfMBkik9-6zcgAA; + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrwPS5G6hOF5lTTGN7lBm3T3FHspuWWf2XbNboTH65Qcgb2maci_HhWcJiMqZ7BNmmoXxkDd-pJxE47-TaX05HF9nysU3zHYk2MsdQ6_tCm6bJtEbXPjd11o0S3DibT9AOuXbQWikpHDLe-A7lLkgfT14jw_jOvyggV3JVpT6JilEgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -2135,7 +2136,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11774.11 - SCUS ProdSlices + - 2.1.11722.26 - WUS2 ProdSlices status: code: 200 message: OK @@ -2159,10 +2160,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/authorizations/myauthname?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/authorizations/myauthname?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/authorizations/myauthname","name":"myauthname","properties":{"expressRouteAuthorizationId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er/authorizations/avs_resource_myauthname","expressRouteAuthorizationKey":"69938852-f826-474d-87a2-28368d09be9f","provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/authorizations"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/authorizations/myauthname","name":"myauthname","properties":{"expressRouteAuthorizationId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/authorizations/avs_resource_myauthname","expressRouteAuthorizationKey":"1068feb7-16d6-4891-a630-7693d571e897","provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/authorizations"}' headers: cache-control: - no-cache @@ -2171,7 +2172,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:48:59 GMT + - Thu, 03 Jun 2021 21:30:43 GMT expires: - '-1' pragma: @@ -2183,9 +2184,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1194' + - '1199' x-msedge-ref: - - 'Ref A: AC5354FF3C8B4825B4111BE17334700D Ref B: PDX31EDGE0109 Ref C: 2021-05-25T19:48:59Z' + - 'Ref A: C07708B6D7F940D686B29965EA349AE9 Ref B: PDX31EDGE0122 Ref C: 2021-06-03T21:30:43Z' status: code: 200 message: OK @@ -2213,7 +2214,7 @@ interactions: x-client-Ver: - 1.2.3 method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' @@ -2229,13 +2230,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:49:02 GMT + - Thu, 03 Jun 2021 21:30:43 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=Ahnn5hQQ5PhEuqkhkYG-AK4; expires=Thu, 24-Jun-2021 19:49:02 GMT; path=/; + - fpc=AvaGWGy8T6xNkeQ4l4ucA_Y; expires=Sat, 03-Jul-2021 21:30:43 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr7rJ2cJ02us9iqkEFxCmPBL1nz2aUahGC7lXz8d3UrNUxRqh6K1Z55jsxrIDQ76bfOL0bxDa6W-ZfGup_ATcqOLl0KcXTt7Y0nJRUtZtGEN2JnPd9zkNjHp8cH6Nyk1RSAb2xLDWwNiVmIOwLLEVB8L7EuwuJL9PIaqej6hF6wnggAA; + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrywjfrLP5bXNcCQ_FogR8ymLyK7FoSxu21EE6UbVu67PjMkXzQgbQoLMZcr7aLkdFkagvY325VZWMs9eJhAkIZzWZPFaYiQ-Hf8cQxlQBAUYloVcyYmhVGJN3t0plPMF3efEfjhWkxvgJNdZdNiIihK7HL4DztT8tghYTA0kWLwAgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -2244,7 +2245,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11722.21 - WUS2 ProdSlices + - 2.1.11722.26 - NCUS ProdSlices status: code: 200 message: OK @@ -2266,7 +2267,7 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/authorizations/myauthname?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/authorizations/myauthname?api-version=2021-06-01 response: body: string: '' @@ -2278,7 +2279,7 @@ interactions: content-type: - text/html date: - - Tue, 25 May 2021 19:49:05 GMT + - Thu, 03 Jun 2021 21:30:45 GMT expires: - '-1' pragma: @@ -2292,7 +2293,7 @@ interactions: x-ms-ratelimit-remaining-subscription-deletes: - '14999' x-msedge-ref: - - 'Ref A: 125150855EF8499D99A85711FFFAE612 Ref B: PDX31EDGE0119 Ref C: 2021-05-25T19:49:05Z' + - 'Ref A: BB5F05C550B14A019B3DEF127FF9BA2F Ref B: PDX31EDGE0109 Ref C: 2021-06-03T21:30:44Z' status: code: 200 message: OK @@ -2320,7 +2321,7 @@ interactions: x-client-Ver: - 1.2.3 method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' @@ -2336,13 +2337,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:49:07 GMT + - Thu, 03 Jun 2021 21:30:44 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AvQ_5Ad8kPhEuvxdraTj8yM; expires=Thu, 24-Jun-2021 19:49:08 GMT; path=/; + - fpc=Ar_NF3NUz-1BvIs1GZwM040; expires=Sat, 03-Jul-2021 21:30:45 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrqpEdwyanH9tzy8o2TrahQEv8T8WJDrnWyuaJryh8WBBGL58I5Yn72__8yU2ugpC-xKTzPHgix4d6AKm6Lt1wBsScnKaSmSWn8zfmJjOatKFmXhZFu9Q9NhfgV5ACYG7PGoXfpjzIvE1QBGDs3qhrb9b9ZBWDOi24yLXpHq7TI9MgAA; + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrR3eBLJIsVPF-6DT-_S39RAeXaiARi0ORW-G3Cu-BflERZcbe9_maNxXcb4zYZWQLJtJnkKXgivOk_9NY93uHwlDHfgpYx-tfTb4IHY_jnv0i5NNhqUo5c7hUAXo8OXyvturWL9zcP-4dX0p-FXRqz8zZTvlPcfdqz_DQh41wkcAgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -2351,7 +2352,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11722.21 - WUS2 ProdSlices + - 2.1.11722.26 - SCUS ProdSlices status: code: 200 message: OK @@ -2372,10 +2373,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' headers: cache-control: - no-cache @@ -2384,7 +2385,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:49:09 GMT + - Thu, 03 Jun 2021 21:30:45 GMT expires: - '-1' pragma: @@ -2396,7 +2397,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 88F69C7B2A294DF39F6BC1788E7E199B Ref B: PDX31EDGE0121 Ref C: 2021-05-25T19:49:10Z' + - 'Ref A: CEE786297D0F406CB01E9E5A6B65F5E7 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:30:45Z' status: code: 200 message: OK @@ -2426,13 +2427,13 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[{"alias":"groupAlias","baseGroupDN":"ou=baseGroup","baseUserDN":"ou=baseUser","domain":"domain","name":"groupName","primaryServer":"ldaps://1.1.1.1:636/","ssl":"Disabled"}],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Updating","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[{"alias":"groupAlias","baseGroupDN":"ou=baseGroup","baseUserDN":"ou=baseUser","domain":"domain","name":"groupName","primaryServer":"ldaps://1.1.1.1:636/","ssl":"Disabled"}],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Updating","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' headers: azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7d80396c-89ea-475b-bcaa-f491ce2166b9?api-version=2021-06-01 + - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/c91a9015-fadc-46e1-aba9-e8783c413799?api-version=2021-06-01 cache-control: - no-cache content-length: @@ -2440,7 +2441,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:49:10 GMT + - Thu, 03 Jun 2021 21:30:46 GMT expires: - '-1' pragma: @@ -2452,9 +2453,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1193' + - '1198' x-msedge-ref: - - 'Ref A: F614701902C142BE8B5F1D4FB3AE4748 Ref B: PDX31EDGE0121 Ref C: 2021-05-25T19:49:10Z' + - 'Ref A: DCF855CFE78541F8BB9649482448FEF0 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:30:46Z' status: code: 201 message: Created @@ -2475,10 +2476,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7d80396c-89ea-475b-bcaa-f491ce2166b9?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/c91a9015-fadc-46e1-aba9-e8783c413799?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7d80396c-89ea-475b-bcaa-f491ce2166b9","name":"7d80396c-89ea-475b-bcaa-f491ce2166b9","percentComplete":10,"startTime":"2021-05-25T19:49:11.0591324+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/c91a9015-fadc-46e1-aba9-e8783c413799","name":"c91a9015-fadc-46e1-aba9-e8783c413799","percentComplete":10,"startTime":"2021-06-03T21:30:24.8469907+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -2487,7 +2488,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:49:20 GMT + - Thu, 03 Jun 2021 21:30:56 GMT expires: - '-1' pragma: @@ -2499,7 +2500,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 1BA10B953455406B91F2D012A5A7B356 Ref B: PDX31EDGE0121 Ref C: 2021-05-25T19:49:21Z' + - 'Ref A: 211E8152AFFA4DAF91047B03F852CCF2 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:30:56Z' status: code: 200 message: OK @@ -2520,10 +2521,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7d80396c-89ea-475b-bcaa-f491ce2166b9?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/c91a9015-fadc-46e1-aba9-e8783c413799?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7d80396c-89ea-475b-bcaa-f491ce2166b9","name":"7d80396c-89ea-475b-bcaa-f491ce2166b9","percentComplete":50,"startTime":"2021-05-25T19:49:11.0591324+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/c91a9015-fadc-46e1-aba9-e8783c413799","name":"c91a9015-fadc-46e1-aba9-e8783c413799","percentComplete":50,"startTime":"2021-06-03T21:30:24.8469907+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -2532,7 +2533,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:49:30 GMT + - Thu, 03 Jun 2021 21:31:06 GMT expires: - '-1' pragma: @@ -2544,7 +2545,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: CB570858ED8F4E2890FBE614605FC00C Ref B: PDX31EDGE0121 Ref C: 2021-05-25T19:49:31Z' + - 'Ref A: B1C8FCCF76DE4693922B2678F9C12468 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:31:07Z' status: code: 200 message: OK @@ -2565,10 +2566,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7d80396c-89ea-475b-bcaa-f491ce2166b9?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/c91a9015-fadc-46e1-aba9-e8783c413799?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7d80396c-89ea-475b-bcaa-f491ce2166b9","name":"7d80396c-89ea-475b-bcaa-f491ce2166b9","percentComplete":100,"startTime":"2021-05-25T19:49:11.0591324+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/c91a9015-fadc-46e1-aba9-e8783c413799","name":"c91a9015-fadc-46e1-aba9-e8783c413799","percentComplete":100,"startTime":"2021-06-03T21:30:24.8469907+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -2577,7 +2578,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:49:41 GMT + - Thu, 03 Jun 2021 21:31:16 GMT expires: - '-1' pragma: @@ -2589,7 +2590,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 5BFE28AFF5854217AEC86BCA13AB9B12 Ref B: PDX31EDGE0121 Ref C: 2021-05-25T19:49:41Z' + - 'Ref A: 74989891D5EE463CBC0822A98A20266E Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:31:17Z' status: code: 200 message: OK @@ -2610,10 +2611,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7d80396c-89ea-475b-bcaa-f491ce2166b9?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/c91a9015-fadc-46e1-aba9-e8783c413799?api-version=2021-06-01 response: body: - string: '{"endTime":"2021-05-25T19:49:11.0591324+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7d80396c-89ea-475b-bcaa-f491ce2166b9","name":"7d80396c-89ea-475b-bcaa-f491ce2166b9","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[{"alias":"groupAlias","baseGroupDN":"ou=baseGroup","baseUserDN":"ou=baseUser","domain":"domain","name":"groupName","primaryServer":"ldaps://1.1.1.1:636/","ssl":"Disabled"}],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"},"startTime":"2021-05-25T19:49:11.0591324+00:00","status":"Succeeded"}' + string: '{"endTime":"2021-06-03T21:30:24.8469907+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/c91a9015-fadc-46e1-aba9-e8783c413799","name":"c91a9015-fadc-46e1-aba9-e8783c413799","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[{"alias":"groupAlias","baseGroupDN":"ou=baseGroup","baseUserDN":"ou=baseUser","domain":"domain","name":"groupName","primaryServer":"ldaps://1.1.1.1:636/","ssl":"Disabled"}],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"},"startTime":"2021-06-03T21:30:24.8469907+00:00","status":"Succeeded"}' headers: cache-control: - no-cache @@ -2622,7 +2623,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:49:51 GMT + - Thu, 03 Jun 2021 21:31:27 GMT expires: - '-1' pragma: @@ -2634,7 +2635,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: BEA0152B58E24DD0A0326FE400049C93 Ref B: PDX31EDGE0121 Ref C: 2021-05-25T19:49:52Z' + - 'Ref A: 23CCE311B0BB479099F8A2DAC6EFC8F2 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:31:27Z' status: code: 200 message: OK @@ -2655,10 +2656,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[{"alias":"groupAlias","baseGroupDN":"ou=baseGroup","baseUserDN":"ou=baseUser","domain":"domain","name":"groupName","primaryServer":"ldaps://1.1.1.1:636/","ssl":"Disabled"}],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[{"alias":"groupAlias","baseGroupDN":"ou=baseGroup","baseUserDN":"ou=baseUser","domain":"domain","name":"groupName","primaryServer":"ldaps://1.1.1.1:636/","ssl":"Disabled"}],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' headers: cache-control: - no-cache @@ -2667,7 +2668,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:49:51 GMT + - Thu, 03 Jun 2021 21:31:27 GMT expires: - '-1' pragma: @@ -2679,7 +2680,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 31168D2D44054B12BCB35B78093B3648 Ref B: PDX31EDGE0121 Ref C: 2021-05-25T19:49:52Z' + - 'Ref A: 66A8067BA8064A50AA11C60621E1B40E Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:31:27Z' status: code: 200 message: OK @@ -2707,7 +2708,7 @@ interactions: x-client-Ver: - 1.2.3 method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' @@ -2723,13 +2724,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:49:54 GMT + - Thu, 03 Jun 2021 21:31:28 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AoDgYjLEGqlDvoBIN4Vx00s; expires=Thu, 24-Jun-2021 19:49:54 GMT; path=/; + - fpc=AjtOMWM1Vv1OkUPoeUBKmNQ; expires=Sat, 03-Jul-2021 21:31:28 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrd1UjYb8TOud_cknhdePlfXTXkEPusTFUpz1-GNR5Tt4E8OE5ovqVY0Z-Vlw6Bfygc-Anp8MeYwu7oIlIUQliSTfAc-Squ3QKinMi7cCOicT-9JBUXdi7VGorTY6s3V6s2VMrQY20BkYDDDTYrg8By1XdqsAbYNa10geIhpvg4N4gAA; + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrdldMghJxL41eghT8DLFed4uxk36kzDv2_Rmh6g9IQE6KFTUvwqeH-AMSQxFaULdfVndyhC_YKroM4WCHwIhfx0zbBdp7XDwNRMBcOb6WVjOLKg3IDfPyguy7Qu8tM9vSA9xqZQmeW2ZEC7TmrIpCy9ZlJchreYL5OA4MKTyUgUIgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -2738,7 +2739,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11722.21 - EUS ProdSlices + - 2.1.11787.14 - SCUS ProdSlices status: code: 200 message: OK @@ -2758,10 +2759,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[{"alias":"groupAlias","baseGroupDN":"ou=baseGroup","baseUserDN":"ou=baseUser","domain":"domain","name":"groupName","primaryServer":"ldaps://1.1.1.1:636/","ssl":"Disabled"}],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[{"alias":"groupAlias","baseGroupDN":"ou=baseGroup","baseUserDN":"ou=baseUser","domain":"domain","name":"groupName","primaryServer":"ldaps://1.1.1.1:636/","ssl":"Disabled"}],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' headers: cache-control: - no-cache @@ -2770,7 +2771,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:49:56 GMT + - Thu, 03 Jun 2021 21:31:28 GMT expires: - '-1' pragma: @@ -2782,7 +2783,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: DE523D98EA244D58B94692B3CD2BAC2D Ref B: PDX31EDGE0111 Ref C: 2021-05-25T19:49:56Z' + - 'Ref A: 0692B83F4B0D49EAA2794812F21F6849 Ref B: PDX31EDGE0116 Ref C: 2021-06-03T21:31:28Z' status: code: 200 message: OK @@ -2808,13 +2809,13 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[{"alias":"groupAlias","baseGroupDN":"ou=baseGroup","baseUserDN":"ou=baseUser","domain":"domain","name":"groupName","primaryServer":"ldaps://1.1.1.1:636/","ssl":"Disabled"}],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Updating","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[{"alias":"groupAlias","baseGroupDN":"ou=baseGroup","baseUserDN":"ou=baseUser","domain":"domain","name":"groupName","primaryServer":"ldaps://1.1.1.1:636/","ssl":"Disabled"}],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Updating","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' headers: azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/de914984-7e9f-4988-ac5d-5983d705e150?api-version=2021-06-01 + - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/e10c7aab-c4a3-435c-8ccf-a431a43b701f?api-version=2021-06-01 cache-control: - no-cache content-length: @@ -2822,7 +2823,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:49:57 GMT + - Thu, 03 Jun 2021 21:31:28 GMT expires: - '-1' pragma: @@ -2834,9 +2835,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1192' + - '1198' x-msedge-ref: - - 'Ref A: 64AFF2EE93AB489EB84EB15215390E0A Ref B: PDX31EDGE0111 Ref C: 2021-05-25T19:49:57Z' + - 'Ref A: 1837C0679B4A4E1C91B8C7176B6C5815 Ref B: PDX31EDGE0116 Ref C: 2021-06-03T21:31:29Z' status: code: 201 message: Created @@ -2856,10 +2857,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/de914984-7e9f-4988-ac5d-5983d705e150?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/e10c7aab-c4a3-435c-8ccf-a431a43b701f?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/de914984-7e9f-4988-ac5d-5983d705e150","name":"de914984-7e9f-4988-ac5d-5983d705e150","percentComplete":11,"startTime":"2021-05-25T19:49:58.3377637+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/e10c7aab-c4a3-435c-8ccf-a431a43b701f","name":"e10c7aab-c4a3-435c-8ccf-a431a43b701f","percentComplete":10,"startTime":"2021-06-03T21:31:07.6446736+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -2868,7 +2869,51 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:50:08 GMT + - Thu, 03 Jun 2021 21:31:39 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: A1191AD91CA444BE9AB6EAB33E1E879B Ref B: PDX31EDGE0116 Ref C: 2021-06-03T21:31:39Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud deleteidentitysource + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --alias --domain + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/e10c7aab-c4a3-435c-8ccf-a431a43b701f?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/e10c7aab-c4a3-435c-8ccf-a431a43b701f","name":"e10c7aab-c4a3-435c-8ccf-a431a43b701f","percentComplete":100,"startTime":"2021-06-03T21:31:07.6446736+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '387' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 03 Jun 2021 21:31:49 GMT expires: - '-1' pragma: @@ -2880,7 +2925,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 0832D6E395E941398E99D3E7D13B9AC6 Ref B: PDX31EDGE0111 Ref C: 2021-05-25T19:50:08Z' + - 'Ref A: 9A287D863D604E26ADDDE4F92BE49286 Ref B: PDX31EDGE0116 Ref C: 2021-06-03T21:31:49Z' status: code: 200 message: OK @@ -2900,10 +2945,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/de914984-7e9f-4988-ac5d-5983d705e150?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/e10c7aab-c4a3-435c-8ccf-a431a43b701f?api-version=2021-06-01 response: body: - string: '{"endTime":"2021-05-25T19:49:58.3377637+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/de914984-7e9f-4988-ac5d-5983d705e150","name":"de914984-7e9f-4988-ac5d-5983d705e150","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"},"startTime":"2021-05-25T19:49:58.3377637+00:00","status":"Succeeded"}' + string: '{"endTime":"2021-06-03T21:31:07.6446736+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/e10c7aab-c4a3-435c-8ccf-a431a43b701f","name":"e10c7aab-c4a3-435c-8ccf-a431a43b701f","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"},"startTime":"2021-06-03T21:31:07.6446736+00:00","status":"Succeeded"}' headers: cache-control: - no-cache @@ -2912,7 +2957,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:50:18 GMT + - Thu, 03 Jun 2021 21:31:59 GMT expires: - '-1' pragma: @@ -2924,7 +2969,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 99677E3C9D2E4627931D48F0964B7103 Ref B: PDX31EDGE0111 Ref C: 2021-05-25T19:50:18Z' + - 'Ref A: A3DFA49199AC4181866A1741A9C19182 Ref B: PDX31EDGE0116 Ref C: 2021-06-03T21:32:00Z' status: code: 200 message: OK @@ -2944,10 +2989,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt71-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt71-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' headers: cache-control: - no-cache @@ -2956,7 +3001,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:50:18 GMT + - Thu, 03 Jun 2021 21:31:59 GMT expires: - '-1' pragma: @@ -2968,7 +3013,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: B5B09533440748B8ACA683412B35FB62 Ref B: PDX31EDGE0111 Ref C: 2021-05-25T19:50:19Z' + - 'Ref A: 1E15F604DF9B4DE5A69F9823CF6B4A6C Ref B: PDX31EDGE0116 Ref C: 2021-06-03T21:32:00Z' status: code: 200 message: OK @@ -2996,7 +3041,7 @@ interactions: x-client-Ver: - 1.2.3 method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' @@ -3012,13 +3057,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:50:21 GMT + - Thu, 03 Jun 2021 21:32:01 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AkeQkiQEJShKjs8gpWu6fHM; expires=Thu, 24-Jun-2021 19:50:21 GMT; path=/; + - fpc=Apetflg2vEhGjlBGK3ViI8s; expires=Sat, 03-Jul-2021 21:32:01 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrw3Letx1uj_S-QvM3R2w1q7OWWvxn1j9iuWT2SibgAD417KPDlikYY-JoY0nLyP-f8C1QsSnWv3fTttqPtiXWPQF3qc5ogoOAsITQIK0dD3El95GmoL2KqVowSZV7DNlQlI2vsZ0Bw9wwkCXsmouyeuLE7T0iHVglt5kwc20QKvsgAA; + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrEstpQ1SVvCD2gaDknX0-enzCkOQKrvoxdxdnhwRbkB2t0JKvVKoD4MXQidjAiPwrvEaMAsdPLCBiuqBLk33wVxlSo38kv75Cz6jAiHzTBfwhwp6UqqL2k3d9ye2o3HOX2ky-1-fdpGL_41g-bZkNuH3eo62JrqPHbeWQxkYHTPogAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -3027,7 +3072,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11774.8 - WUS2 ProdSlices + - 2.1.11787.14 - EUS ProdSlices status: code: 200 message: OK @@ -3047,7 +3092,7 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters?api-version=2021-06-01 response: body: string: '{"value":[]}' @@ -3059,7 +3104,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:50:23 GMT + - Thu, 03 Jun 2021 21:32:01 GMT expires: - '-1' pragma: @@ -3071,7 +3116,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 7DBD181065754870BF7853B420E19C75 Ref B: PDX31EDGE0115 Ref C: 2021-05-25T19:50:24Z' + - 'Ref A: 66100E60A9C94ABDB624F62ED62EC223 Ref B: PDX31EDGE0110 Ref C: 2021-06-03T21:32:01Z' status: code: 200 message: OK @@ -3099,7 +3144,7 @@ interactions: x-client-Ver: - 1.2.3 method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' @@ -3115,13 +3160,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:50:25 GMT + - Thu, 03 Jun 2021 21:32:01 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AnjLNeGndYxIrNIxpXSMaeA; expires=Thu, 24-Jun-2021 19:50:26 GMT; path=/; + - fpc=AlCus6Zp51FJoKcc9oqZu7Y; expires=Sat, 03-Jul-2021 21:32:02 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrJcPYHvhvI0sZhl2jjMqEYHOFmy8Y0iE6g9NpZoEw_qqUSTdoWRJfKb2qo4K2s6WtyAlxdRF2CPiA6f4_YBVqZ27tbzsHogNcumrnAYHaAp6WD51GH--LfhmWexcI8Y7MQvCA0JMXSh8QNNF19Id-ObJOQZi51HnQwwqhbfA0CBogAA; + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrwr5u3NWnBLPqvgBy_W4tl0gOuy8tF4827Ib4pen-vyYysD_UG7cS994yq9WqIakZ9DRvyQpHtEztdkRAEUfVhpr9Jatwkg2sDxFvIPykyyF-RapGQsC46LFEcv2eNdy1dOp1BhMLTyYOHvGG3QZ90IUAhc0xnw2j3lxi-IEvcQMgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -3130,7 +3175,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11722.21 - SCUS ProdSlices + - 2.1.11787.14 - SCUS ProdSlices status: code: 200 message: OK @@ -3154,13 +3199,13 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":3,"hosts":["gp-fakehost04.mp01.mock01.vmcp.vs.management","gp-fakehost41.mp01.mock01.vmcp.vs.management","gp-fakehost33.mp01.mock01.vmcp.vs.management"],"provisioningState":"Building"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":3,"hosts":["gp-fakehost36.mp01.mock01.vmcp.vs.management","gp-fakehost41.mp01.mock01.vmcp.vs.management","gp-fakehost33.mp01.mock01.vmcp.vs.management"],"provisioningState":"Building"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"}' headers: azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/49f2b286-3b8c-4e1d-8d0e-3bd6910d4b12?api-version=2021-06-01 + - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/cca31ef1-5ef1-4cea-b2f3-c01ac8409994?api-version=2021-06-01 cache-control: - no-cache content-length: @@ -3168,7 +3213,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:50:32 GMT + - Thu, 03 Jun 2021 21:32:07 GMT expires: - '-1' pragma: @@ -3180,9 +3225,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1197' x-msedge-ref: - - 'Ref A: 1D289161C38E4293857990497D9EEB0C Ref B: PDX31EDGE0107 Ref C: 2021-05-25T19:50:28Z' + - 'Ref A: 114EC2C99E0F4721B3F91F34322087FD Ref B: PDX31EDGE0121 Ref C: 2021-06-03T21:32:02Z' status: code: 201 message: Created @@ -3202,10 +3247,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/49f2b286-3b8c-4e1d-8d0e-3bd6910d4b12?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/cca31ef1-5ef1-4cea-b2f3-c01ac8409994?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/49f2b286-3b8c-4e1d-8d0e-3bd6910d4b12","name":"49f2b286-3b8c-4e1d-8d0e-3bd6910d4b12","percentComplete":0,"startTime":"2021-05-25T19:50:32.4285195+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/cca31ef1-5ef1-4cea-b2f3-c01ac8409994","name":"cca31ef1-5ef1-4cea-b2f3-c01ac8409994","percentComplete":0,"startTime":"2021-06-03T21:31:46.1403942+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -3214,7 +3259,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:50:42 GMT + - Thu, 03 Jun 2021 21:32:18 GMT expires: - '-1' pragma: @@ -3226,7 +3271,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 25E2D53F5A3D4973805408F1676B747B Ref B: PDX31EDGE0107 Ref C: 2021-05-25T19:50:42Z' + - 'Ref A: 326561DAD735417BB26EAF510B768AF5 Ref B: PDX31EDGE0121 Ref C: 2021-06-03T21:32:18Z' status: code: 200 message: OK @@ -3246,10 +3291,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/49f2b286-3b8c-4e1d-8d0e-3bd6910d4b12?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/cca31ef1-5ef1-4cea-b2f3-c01ac8409994?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/49f2b286-3b8c-4e1d-8d0e-3bd6910d4b12","name":"49f2b286-3b8c-4e1d-8d0e-3bd6910d4b12","percentComplete":50,"startTime":"2021-05-25T19:50:32.4285195+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/cca31ef1-5ef1-4cea-b2f3-c01ac8409994","name":"cca31ef1-5ef1-4cea-b2f3-c01ac8409994","percentComplete":50,"startTime":"2021-06-03T21:31:46.1403942+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -3258,7 +3303,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:50:52 GMT + - Thu, 03 Jun 2021 21:32:28 GMT expires: - '-1' pragma: @@ -3270,7 +3315,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: C298ECE0F6C6448D81BEFE455B7EF11B Ref B: PDX31EDGE0107 Ref C: 2021-05-25T19:50:52Z' + - 'Ref A: 7A0AC25D8C724BA0A42BA4D9258B8234 Ref B: PDX31EDGE0121 Ref C: 2021-06-03T21:32:28Z' status: code: 200 message: OK @@ -3290,19 +3335,19 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/49f2b286-3b8c-4e1d-8d0e-3bd6910d4b12?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/cca31ef1-5ef1-4cea-b2f3-c01ac8409994?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/49f2b286-3b8c-4e1d-8d0e-3bd6910d4b12","name":"49f2b286-3b8c-4e1d-8d0e-3bd6910d4b12","percentComplete":0,"startTime":"2021-05-25T19:50:32.4285195+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/cca31ef1-5ef1-4cea-b2f3-c01ac8409994","name":"cca31ef1-5ef1-4cea-b2f3-c01ac8409994","percentComplete":75,"startTime":"2021-06-03T21:31:46.1403942+00:00","status":"Building"}' headers: cache-control: - no-cache content-length: - - '405' + - '406' content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:51:03 GMT + - Thu, 03 Jun 2021 21:32:38 GMT expires: - '-1' pragma: @@ -3314,7 +3359,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 733B3C029C0E455C8AFACEB8A13A9C96 Ref B: PDX31EDGE0107 Ref C: 2021-05-25T19:51:03Z' + - 'Ref A: D8BAB3279BF14486AC5C6A1BA9421E92 Ref B: PDX31EDGE0121 Ref C: 2021-06-03T21:32:38Z' status: code: 200 message: OK @@ -3334,10 +3379,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/49f2b286-3b8c-4e1d-8d0e-3bd6910d4b12?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/cca31ef1-5ef1-4cea-b2f3-c01ac8409994?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/49f2b286-3b8c-4e1d-8d0e-3bd6910d4b12","name":"49f2b286-3b8c-4e1d-8d0e-3bd6910d4b12","percentComplete":75,"startTime":"2021-05-25T19:50:32.4285195+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/cca31ef1-5ef1-4cea-b2f3-c01ac8409994","name":"cca31ef1-5ef1-4cea-b2f3-c01ac8409994","percentComplete":75,"startTime":"2021-06-03T21:31:46.1403942+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -3346,7 +3391,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:51:13 GMT + - Thu, 03 Jun 2021 21:32:48 GMT expires: - '-1' pragma: @@ -3358,7 +3403,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: A3FECA1485CC46A9B12CA4B8362AF7DC Ref B: PDX31EDGE0107 Ref C: 2021-05-25T19:51:13Z' + - 'Ref A: A5CC1DA2E32C4543B938366B6AC3540E Ref B: PDX31EDGE0121 Ref C: 2021-06-03T21:32:49Z' status: code: 200 message: OK @@ -3378,19 +3423,19 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/49f2b286-3b8c-4e1d-8d0e-3bd6910d4b12?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/cca31ef1-5ef1-4cea-b2f3-c01ac8409994?api-version=2021-06-01 response: body: - string: '{"endTime":"2021-05-25T19:51:14.5220424+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/49f2b286-3b8c-4e1d-8d0e-3bd6910d4b12","name":"49f2b286-3b8c-4e1d-8d0e-3bd6910d4b12","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":3,"hosts":["gp-fakehost04.mp01.mock01.vmcp.vs.management","gp-fakehost41.mp01.mock01.vmcp.vs.management","gp-fakehost33.mp01.mock01.vmcp.vs.management"],"provisioningState":"Building"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"},"startTime":"2021-05-25T19:50:32.4285195+00:00","status":"Succeeded"}' + string: '{"endTime":"2021-06-03T21:32:49.4811551+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/cca31ef1-5ef1-4cea-b2f3-c01ac8409994","name":"cca31ef1-5ef1-4cea-b2f3-c01ac8409994","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":3,"hosts":["gp-fakehost36.mp01.mock01.vmcp.vs.management","gp-fakehost41.mp01.mock01.vmcp.vs.management","gp-fakehost33.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"},"startTime":"2021-06-03T21:31:46.1403942+00:00","status":"Succeeded"}' headers: cache-control: - no-cache content-length: - - '999' + - '1000' content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:51:23 GMT + - Thu, 03 Jun 2021 21:32:59 GMT expires: - '-1' pragma: @@ -3402,7 +3447,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 51627AC61DB54A20BEAF7ACCFBAB3782 Ref B: PDX31EDGE0107 Ref C: 2021-05-25T19:51:23Z' + - 'Ref A: 944C7661020E4CB49EEEC70DEAB93F79 Ref B: PDX31EDGE0121 Ref C: 2021-06-03T21:32:59Z' status: code: 200 message: OK @@ -3422,10 +3467,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":3,"hosts":["gp-fakehost04.mp01.mock01.vmcp.vs.management","gp-fakehost41.mp01.mock01.vmcp.vs.management","gp-fakehost33.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":3,"hosts":["gp-fakehost36.mp01.mock01.vmcp.vs.management","gp-fakehost41.mp01.mock01.vmcp.vs.management","gp-fakehost33.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"}' headers: cache-control: - no-cache @@ -3434,7 +3479,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:51:23 GMT + - Thu, 03 Jun 2021 21:32:59 GMT expires: - '-1' pragma: @@ -3446,7 +3491,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 1EE314061A67423DB753E4F2325026AF Ref B: PDX31EDGE0107 Ref C: 2021-05-25T19:51:23Z' + - 'Ref A: FEC7AB3A1F9B48EDB6C061CBAAB75667 Ref B: PDX31EDGE0121 Ref C: 2021-06-03T21:32:59Z' status: code: 200 message: OK @@ -3474,7 +3519,7 @@ interactions: x-client-Ver: - 1.2.3 method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' @@ -3490,13 +3535,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:51:26 GMT + - Thu, 03 Jun 2021 21:33:00 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AjWULvilp05AqwrOkSt-g8s; expires=Thu, 24-Jun-2021 19:51:27 GMT; path=/; + - fpc=AkS7dHT645hJk4EevJF72bo; expires=Sat, 03-Jul-2021 21:33:00 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrtS7NRyZfXCy32Zb2WyjDZAfpbiGha-lL4vzCVBnUUydnOSs4ZZsWC1W5UZD6SZ4HuxPV_2-PdXYji5UpdCbCD2FQfRiR_p-bYmIzgwpCkD6cSWZrZPrF4T81XJoajmAuCl4aa9k97b7oGYHTaORsq98E4BLVdxZyucTu9MV9U6UgAA; + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr77_GKSaz99IeQ9YDC36xNJIQCVyiPUz6j_M7IpR8TIgnHWgM2qPWZeSQsqPGjI-fRCJSNOqx3pBwxxYNZiUjSubIiDOaVyjJh3GB9EXkHsvjqmFMt7l8JwiOH2H2nQW6gbfjmQt7r5r_PticMVjHgq3rAOCAYeYJbhaDLoeWwpkgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -3525,10 +3570,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters?api-version=2021-06-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":3,"hosts":["gp-fakehost04.mp01.mock01.vmcp.vs.management","gp-fakehost41.mp01.mock01.vmcp.vs.management","gp-fakehost33.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":3,"hosts":["gp-fakehost36.mp01.mock01.vmcp.vs.management","gp-fakehost41.mp01.mock01.vmcp.vs.management","gp-fakehost33.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"}]}' headers: cache-control: - no-cache @@ -3537,7 +3582,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:51:29 GMT + - Thu, 03 Jun 2021 21:33:00 GMT expires: - '-1' pragma: @@ -3549,7 +3594,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: F24E765B92774DF9B67C98CAB1492B43 Ref B: PDX31EDGE0110 Ref C: 2021-05-25T19:51:29Z' + - 'Ref A: 569945C26CDD47E79CC1A7048E2C4DE4 Ref B: PDX31EDGE0116 Ref C: 2021-06-03T21:33:00Z' status: code: 200 message: OK @@ -3577,7 +3622,7 @@ interactions: x-client-Ver: - 1.2.3 method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' @@ -3593,13 +3638,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:51:31 GMT + - Thu, 03 Jun 2021 21:33:01 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=Arf9w5MFvN9GuGXzRtlP270; expires=Thu, 24-Jun-2021 19:51:32 GMT; path=/; + - fpc=AiSADO4-FRlAsMAT1bUm2xc; expires=Sat, 03-Jul-2021 21:33:01 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrQdO1toQLxIUDpAVvuX6H_gJb6NMhYpLV6hOEOvuY-ivCkBdDeaCyuJG3_OOFjXGmE0CAtIDG84IsoHrS2E9j5hnsBnzP36Pub_eAnPv0oXC4-5pLL5Kmx0yq9VMjtyod04lFeTZpXg0CiVEqhbwFyajYH8elAN_Q05-yeBbN6I0gAA; + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr1QkrTZy2J6f7zVQdYNyNVMziecspG_Kx8hzjblyy7YZiL7bs8uQWtydOJlHzsFfAh1G3Z8gLWJB-tDZK1pYHsEjpYbLnHgySU19WKZi1XOyD9hreow1NIYwWjpGskDdJ2Q6BK5197U8RXQayYvSzykMIHNkXajTvVajx4t-ugXsgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -3608,7 +3653,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11722.21 - NCUS ProdSlices + - 2.1.11722.21 - WUS2 ProdSlices status: code: 200 message: OK @@ -3632,13 +3677,13 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":4,"hosts":["gp-fakehost04.mp01.mock01.vmcp.vs.management","gp-fakehost41.mp01.mock01.vmcp.vs.management","gp-fakehost33.mp01.mock01.vmcp.vs.management","gp-fakehost36.mp01.mock01.vmcp.vs.management"],"provisioningState":"Updating"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":4,"hosts":["gp-fakehost36.mp01.mock01.vmcp.vs.management","gp-fakehost41.mp01.mock01.vmcp.vs.management","gp-fakehost33.mp01.mock01.vmcp.vs.management","gp-fakehost04.mp01.mock01.vmcp.vs.management"],"provisioningState":"Updating"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"}' headers: azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/83603d1d-75c6-4deb-b8c2-b8a2bbaf0604?api-version=2021-06-01 + - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/27daa53f-9835-49bb-98aa-a109f9b2f9f7?api-version=2021-06-01 cache-control: - no-cache content-length: @@ -3646,7 +3691,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:51:35 GMT + - Thu, 03 Jun 2021 21:33:02 GMT expires: - '-1' pragma: @@ -3658,9 +3703,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1193' + - '1196' x-msedge-ref: - - 'Ref A: 218DDD1CEC2348879771165197E26CC9 Ref B: PDX31EDGE0122 Ref C: 2021-05-25T19:51:34Z' + - 'Ref A: D302D2B24C6F4276A87F739352EB130A Ref B: PDX31EDGE0117 Ref C: 2021-06-03T21:33:01Z' status: code: 201 message: Created @@ -3680,10 +3725,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/83603d1d-75c6-4deb-b8c2-b8a2bbaf0604?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/27daa53f-9835-49bb-98aa-a109f9b2f9f7?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/83603d1d-75c6-4deb-b8c2-b8a2bbaf0604","name":"83603d1d-75c6-4deb-b8c2-b8a2bbaf0604","percentComplete":0,"startTime":"2021-05-25T19:51:36.2520000+00:00","status":"Pending"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/27daa53f-9835-49bb-98aa-a109f9b2f9f7","name":"27daa53f-9835-49bb-98aa-a109f9b2f9f7","percentComplete":0,"startTime":"2021-06-03T21:32:41.3365440+00:00","status":"Pending"}' headers: cache-control: - no-cache @@ -3692,7 +3737,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:51:45 GMT + - Thu, 03 Jun 2021 21:33:12 GMT expires: - '-1' pragma: @@ -3704,7 +3749,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 993FA1657ECE4F06B3ADBD4CEA44FF7B Ref B: PDX31EDGE0122 Ref C: 2021-05-25T19:51:46Z' + - 'Ref A: 894DF56468F54DFEBD81FE9662A87B51 Ref B: PDX31EDGE0117 Ref C: 2021-06-03T21:33:13Z' status: code: 200 message: OK @@ -3724,10 +3769,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/83603d1d-75c6-4deb-b8c2-b8a2bbaf0604?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/27daa53f-9835-49bb-98aa-a109f9b2f9f7?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/83603d1d-75c6-4deb-b8c2-b8a2bbaf0604","name":"83603d1d-75c6-4deb-b8c2-b8a2bbaf0604","percentComplete":0,"startTime":"2021-05-25T19:51:36.2520000+00:00","status":"Pending"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/27daa53f-9835-49bb-98aa-a109f9b2f9f7","name":"27daa53f-9835-49bb-98aa-a109f9b2f9f7","percentComplete":0,"startTime":"2021-06-03T21:32:41.3365440+00:00","status":"Pending"}' headers: cache-control: - no-cache @@ -3736,7 +3781,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:51:55 GMT + - Thu, 03 Jun 2021 21:33:23 GMT expires: - '-1' pragma: @@ -3748,7 +3793,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 8C97DCBCA592440F8249B2BC1D35BC14 Ref B: PDX31EDGE0122 Ref C: 2021-05-25T19:51:56Z' + - 'Ref A: 8D44A32778DD4BCF9A7C503C1F44E790 Ref B: PDX31EDGE0117 Ref C: 2021-06-03T21:33:23Z' status: code: 200 message: OK @@ -3768,10 +3813,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/83603d1d-75c6-4deb-b8c2-b8a2bbaf0604?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/27daa53f-9835-49bb-98aa-a109f9b2f9f7?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/83603d1d-75c6-4deb-b8c2-b8a2bbaf0604","name":"83603d1d-75c6-4deb-b8c2-b8a2bbaf0604","percentComplete":0,"startTime":"2021-05-25T19:51:36.2520000+00:00","status":"Pending"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/27daa53f-9835-49bb-98aa-a109f9b2f9f7","name":"27daa53f-9835-49bb-98aa-a109f9b2f9f7","percentComplete":0,"startTime":"2021-06-03T21:32:41.3365440+00:00","status":"Pending"}' headers: cache-control: - no-cache @@ -3780,7 +3825,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:52:06 GMT + - Thu, 03 Jun 2021 21:33:33 GMT expires: - '-1' pragma: @@ -3792,128 +3837,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: E13D5DED97384D049FBDDE79CCC3CD27 Ref B: PDX31EDGE0122 Ref C: 2021-05-25T19:52:06Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 25 May 2021 19:52:18 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AmKNTE6GP7ZCv2KOlVli3G0; expires=Thu, 24-Jun-2021 19:52:19 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr4GQwdCFJQAbfdqrbvr9ncozktRwryTEbGqYPdD31d0m9UBlT-5aaA5xEdajKdRDSO_onLuF9L_Vxjg1Nt2lSjemcvBbDWe_3NlumWajKR6TiE3KIinHh-23-huuQAHHIwOuDTryDOhvQJr8x9dwFjHfkLTP09KYUJVQdHj2ZIjogAA; - domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ests-server: - - 2.1.11722.21 - WUS2 ProdSlices - status: - code: 200 - message: OK -- request: - body: grant_type=refresh_token&client_id=04b07795-8ddb-461a-bbee-02f9e1bf7b46&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&refresh_token=0.AAAAJtSG9haN20KBt6tXjhEMzZV3sATbjRpGu-4C-eG_e0YBABk.1.AgABAAAAAABYrKuFWqWSRpp9FiMCi-70AwDs_wQA7_-suBjJx7DaB6f4pkJ2S-AdlHn_PNRq3TWPrtVBmr0hIXbu-bWvhMrVVBmS7DXg5X_CUr5t9W7gIpa5y3EDaAu-a6kNMHx2q-rKvhPrP4aTETMDrOXOosreMgBHY85qXuWKocUsiJi8CILeG6OegqtZjpCbQdbZ713YJNP3dNUk6xt3iEEiR9HHgzwzAe3d3vTbgZpZjylDdbQrRLN64Jl8QGlFTeMNPJPkKtyPPE9h0VE6XgwVcXvwt3WetNYdJ_WzmsIsgNZOWjksBhgDteiw40JmSfFkaevqXHiNcIsuty9X2h3q-JHWJJQW2kKfoZgJaP0grXA3CBVEKQqtlFpBroru7ZvcI4_mOXsMiz1OZEMNq4L1E-v65WWXq8XMffZYNotAYgD5P55bDrClRbpcqkcNtSzajILTv-GUJiqcYp5lhItR88s_-rH73VOBNsvvCNbDRyEZgyvtAgfbcCQDZMJK7-Wx2-N8coyKG8Bm_S3-rD9DCew685xzyhRp95NX98H89lefkoYiqqNNxtAlQ6oPww8c-QeFHfkQWsy4dlctkxRudleNOfPqKn0Y-bmyXpoIi2dnjXGR3pGk0SU4cCN9JtCaW_BewogfkAnv_JHTWDHPUfpWyW8hizb-Vvze0xOpL2dVs2ur2ZsqUeV_XL4ZPOERd-M2ArSP7oYkIZzgGhFo_0hogQkDdBk1wMkx4iPLPDlK7DujgLR75rRSkWQ-JCwG9o3UT-yZrfDSQNfkMGkl9Mg7Q4EEzhR1UGcyi1UoPcFYzWA9WFIz7emnPCYhM4HKG9HgczSGuVDN-ZwIiwaYTPomEMDe9-NWy49MMnZSH3dEdzvVKfUgA7otyRFSLRZcEVTZljw_vKEJ-hjmy2Nc3q7BU3pZaKHf1bZmYp314rLGSAgZ3vRRn5l-ehsx61JZ2TNB1V8y4xqH15hLhZQQ0Ck4Iy2tbJNwy8g4gieTWmkL2ULnUhrBKtgfjRZMOqbem6oW54boES3TCM_LB96Hj-Ptbb1gZ0ZT93rSoTZtt2S4HZAmMfiS7oyivf6b4IgVMXGpNHkyJnZfofAPobj0UoKN4gHZPO_1zNLaLcNZaOLR.AQABAAAAAABYrKuFWqWSRpp9FiMCi-70al6en92-qyp9ooJ6jdSjKZC_h6eNVGxu3JbWsFfFljxu5WLqiIP3bcjJ556o74awUZALHAEurMUKD45nyY5H8dzhbKs8ce6DRcG5AM-lnUwv-jd-0u-hvoAR9cNGMraK-zCu8bvjV4yXDZ2PakTsPtm08PBmB9I28hHOZLBXppNpR7qD7TB3ny-QE8EIkZLhLZk0B0BK6uLeSCoj_r0Zok0wdAY_oE-yXKb9pMbtPWhw65TwFHGjXtKNckhzHELr5-guDRQOhKrqJV8kY4Q_M4s937ux36McKeBXT69bSrIgAA - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1671' - User-Agent: - - python-requests/2.22.0 - content-type: - - application/x-www-form-urlencoded - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: POST - uri: https://localhost:8866/f686d426-8d16-42db-81b7-ab578e110ccd/oauth2/token - response: - body: - string: '{"token_type":"Bearer","scope":"user_impersonation","expires_in":"3598","ext_expires_in":"3598","expires_on":"1621975941","not_before":"1621972041","resource":"https://management.core.windows.net/","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6InZhcF9pdmtIdHRMRmNubm9CWEF3SjVIWDBLNCIsImtpZCI6InZhcF9pdmtIdHRMRmNubm9CWEF3SjVIWDBLNCJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLXBwZS5uZXQvZjY4NmQ0MjYtOGQxNi00MmRiLTgxYjctYWI1NzhlMTEwY2NkLyIsImlhdCI6MTYyMTk3MjA0MSwibmJmIjoxNjIxOTcyMDQxLCJleHAiOjE2MjE5NzU5NDEsIl9jbGFpbV9uYW1lcyI6eyJncm91cHMiOiJzcmMxIn0sIl9jbGFpbV9zb3VyY2VzIjp7InNyYzEiOnsiZW5kcG9pbnQiOiJodHRwczovL2dyYXBoLnBwZS53aW5kb3dzLm5ldC9mNjg2ZDQyNi04ZDE2LTQyZGItODFiNy1hYjU3OGUxMTBjY2QvdXNlcnMvZWY3OWIxY2EtMGFlMS00NTdjLWFhNzctOGI4ODkyYTdiZmYyL2dldE1lbWJlck9iamVjdHMifX0sImFjciI6IjEiLCJhaW8iOiJFMk5nWURnVHVrUkE1TENaMzF2K3JHUzJCR1AyVjNlMTEvTzB5MXhWZnZlZ1RMdVY4U2dBIiwiYW1yIjpbInB3ZCJdLCJhcHBpZCI6IjA0YjA3Nzk1LThkZGItNDYxYS1iYmVlLTAyZjllMWJmN2I0NiIsImFwcGlkYWNyIjoiMCIsImZhbWlseV9uYW1lIjoiVGFnZ2FydCIsImdpdmVuX25hbWUiOiJDYW1lcm9uIiwiaXBhZGRyIjoiNTAuMzguNTIuMzgiLCJuYW1lIjoiQ2FtZXJvbiBUYWdnYXJ0Iiwib2lkIjoiZWY3OWIxY2EtMGFlMS00NTdjLWFhNzctOGI4ODkyYTdiZmYyIiwib25wcmVtX3NpZCI6IlMtMS01LTIxLTEyNDUyNTA5NS03MDgyNTk2MzctMTU0MzExOTAyMS0xOTY5MDY2IiwicHVpZCI6IjEwMDNERkZEMDAyRTc2QzYiLCJyaCI6IjAuQUFBQUp0U0c5aGFOMjBLQnQ2dFhqaEVNelpWM3NBVGJqUnBHdS00Qy1lR19lMFlCQUJrLiIsInNjcCI6InVzZXJfaW1wZXJzb25hdGlvbiIsInN1YiI6Im8xYnRTem4wUWE5ZDVuTzh3WXJJZUVDazlyUFBYSGVNbzlyMlRYR01GczQiLCJ0aWQiOiJmNjg2ZDQyNi04ZDE2LTQyZGItODFiNy1hYjU3OGUxMTBjY2QiLCJ1bmlxdWVfbmFtZSI6ImNhdGFnZ2FyQG1pY3Jvc29mdC5jb20iLCJ1cG4iOiJjYXRhZ2dhckBtaWNyb3NvZnQuY29tIiwidXRpIjoiY0hnYWozdm1JMEdWdzlxRHJmZ2pBQSIsInZlciI6IjEuMCIsIndpZHMiOlsiYjc5ZmJmNGQtM2VmOS00Njg5LTgxNDMtNzZiMTk0ZTg1NTA5Il0sInhtc190Y2R0IjoxMjg0NjkwNjkzfQ.UX8YNGjKtOpk9MGU9lKC7ck5dnM2J062u_E8PPaH7XX19DALfcuVTyestuZyc-G2JM07-Z1MHB58d9pavqfc4wWbBuK8j0sPqnU2a0WByBqfNWdCJFss7t2UYKnOMpVOBWdt1yNUl7cQ0d6aXkLfEvMKxTM9uqH77vEiebVII3YfH4SLyjv7P_zQgY4vvopaIS_WXx3Y_8t0dfGcSLBUxvsw9dVtXrwyHMnVjnhXQtZG19OjI5wn3998G2C9ZImuJeNuXwYtLpyyuh_h-jgT8GrE4wYCkCqPi_1uDvfh3xWQgXmt9Nnp1Hh8aGMKBtCC1sG3GjzW3me2mX2xBMJkHQ","refresh_token":"0.AAAAJtSG9haN20KBt6tXjhEMzZV3sATbjRpGu-4C-eG_e0YBABk.1.AgABAAAAAABYrKuFWqWSRpp9FiMCi-70AwDs_wQA7_-wzB46oBqfNIhjUxnsusVb9-E22giGazj6VgG_YFQXAKAiCmPYsDIjG1ZzEQk3-HH9PAd9LFdBhwiCbiDvHZNFMzK1Ff3t972xndvRY1ljwywhSVEdkCe6WGY3-73eb6dOR5xAkOsWLn2m-eiIikegOti942R99C30boq8PlowSammzjNNgcefPSmu6yQmxZUpk1EPeqQf9OLYVcmEW12ZnSKw2crrba1w-JlfIqOovdVh2mcz526xrm867jDICdd6Fqe7Sr_rqXr37P-R5qq3Nct3H64JDgYLWCcYh_-U4CHT2SVxqQ4IrybO7QozQMEIEJno7ycgDdUYU-36w6AMdZ5gorzWboR7ejx-y2rBQDDUkT7zuW8lLIfmP8Xz1l4xk7MJtCMb76S97l_N_6mIWdGbXoT_S8s4mmZMfIc4uf5at-FPOaiaQpv4x_J0WP40APWB7fzOyNtzvjkxM2LxymAUSEtzHjhoOY4G-SE-MwIroCwmuG7Tuwx_SD8KOGzXJSiKoSDBDioSoLYm0gGci7caeVooxrFUkg4xu_GOEIEoc--OHcf2_-Uuf9RIiWBbsIkQqLEkbUhP4maqO3e5nWcTPdvLTYHTNRHkTJUxim1oZEZ3R-ZvTxirRKAYncb3CLJl1wY_VCkFqYCP77RGylMCkPb6H0PeRP9KSIRtgQQOi6KFE5N-3FY8PZSA3P3JnbGDvEWonSaiV0hhSLrCZbSiOgXzac5XMk-1YL_pHRRzILG0nNcyDB2wtwPrLZk_gCQv_wUQwxYSLFF7EmvzWHzgwKOK3IsX4TP-zKtrIoLBPxLoQAl3oJ3dgyijnMTmOJMsKYT77C49n3vlZxGWU1RDfyelWv-YLnetY_tPSfvI2pizFLFPajnimA1hga03UK6aS-ZsN_KsS4MgJhaNZdjiiVfUmcpYBwTzjl6DfVec9aFA2Iok2BcWQHPuGxZbMg-gsNzqwJqoO8_2VT5HwDwX5Xek3ehJw5efJjT8KjzNFVK61vg4DAjeDpggKCGn82YHafh7H1By61ChCZXoYBYBXSdiISHdG72acuNTinn-WF5s3N2KIDRQTx-2tt1KUm6L1SFQ.AQABAAAAAABYrKuFWqWSRpp9FiMCi-70nVDkpLUAoXoLHE-Kx6q_iG-hWZ05qL2YcZyeXVUrcD3csic3ZCk3oeEnULQ0WBfty7uP7zQ2U5r1gGJYRcfJg4X2A8YOfTfL2Fo3zwe4IE3nzTlfME4R_vCbcVpnWNq69-CW4Vcg65Xg762l63UzRSRKv7ZnVKLDfWmO7lVZEIo9nszFCpe0iWCRwSYfUczkJEZb77vKfa_ZQKHph0E_IZNWBFjjoQU3iZzUMrhiyTPniT10Pm1ppR0z-KOAIRkWb9QM2Muk3FBCcEv6mXvNp0vyYbM-8snoM8Cm-xOaqCEgAA","foci":"1"}' - headers: - cache-control: - - no-store, no-cache - content-length: - - '3743' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 25 May 2021 19:52:21 GMT - expires: - - '-1' - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - pragma: - - no-cache - set-cookie: - - fpc=Amy_IFBdkwtBqSKIx4tYG36LFFZrAQAAAHRMP9gOAAAA; expires=Thu, 24-Jun-2021 - 19:52:22 GMT; path=/; secure; HttpOnly; SameSite=None - - stsservicecookie=estsppe; path=/; secure; samesite=none; httponly - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-clitelem: - - 1,0,0,3303550.0282, - x-ms-ests-server: - - 2.1.11811.0 - CHY PPE + - 'Ref A: 20A96CF80861437691D6C825D9827D38 Ref B: PDX31EDGE0117 Ref C: 2021-06-03T21:33:34Z' status: code: 200 message: OK @@ -3933,10 +3857,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/83603d1d-75c6-4deb-b8c2-b8a2bbaf0604?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/27daa53f-9835-49bb-98aa-a109f9b2f9f7?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/83603d1d-75c6-4deb-b8c2-b8a2bbaf0604","name":"83603d1d-75c6-4deb-b8c2-b8a2bbaf0604","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":4,"hosts":["gp-fakehost04.mp01.mock01.vmcp.vs.management","gp-fakehost41.mp01.mock01.vmcp.vs.management","gp-fakehost33.mp01.mock01.vmcp.vs.management","gp-fakehost36.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"},"startTime":"2021-05-25T19:51:36.2520000+00:00","status":"Succeeded"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/27daa53f-9835-49bb-98aa-a109f9b2f9f7","name":"27daa53f-9835-49bb-98aa-a109f9b2f9f7","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":4,"hosts":["gp-fakehost36.mp01.mock01.vmcp.vs.management","gp-fakehost41.mp01.mock01.vmcp.vs.management","gp-fakehost33.mp01.mock01.vmcp.vs.management","gp-fakehost04.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"},"startTime":"2021-06-03T21:32:41.3365440+00:00","status":"Succeeded"}' headers: cache-control: - no-cache @@ -3945,7 +3869,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:52:22 GMT + - Thu, 03 Jun 2021 21:33:43 GMT expires: - '-1' pragma: @@ -3957,7 +3881,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 472D1C07FAAA4D57B694244707F64F6F Ref B: PDX31EDGE0122 Ref C: 2021-05-25T19:52:22Z' + - 'Ref A: 856A8B04C4534D1C881E69778E60C941 Ref B: PDX31EDGE0117 Ref C: 2021-06-03T21:33:44Z' status: code: 200 message: OK @@ -3977,10 +3901,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":4,"hosts":["gp-fakehost04.mp01.mock01.vmcp.vs.management","gp-fakehost41.mp01.mock01.vmcp.vs.management","gp-fakehost33.mp01.mock01.vmcp.vs.management","gp-fakehost36.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":4,"hosts":["gp-fakehost36.mp01.mock01.vmcp.vs.management","gp-fakehost41.mp01.mock01.vmcp.vs.management","gp-fakehost33.mp01.mock01.vmcp.vs.management","gp-fakehost04.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"}' headers: cache-control: - no-cache @@ -3989,7 +3913,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:52:22 GMT + - Thu, 03 Jun 2021 21:33:43 GMT expires: - '-1' pragma: @@ -4001,7 +3925,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 03535E0F263544C1ACAAFE6A1E358ED2 Ref B: PDX31EDGE0122 Ref C: 2021-05-25T19:52:23Z' + - 'Ref A: 99B1DCEA7D6640938C2C978A5AB8DD93 Ref B: PDX31EDGE0117 Ref C: 2021-06-03T21:33:44Z' status: code: 200 message: OK @@ -4029,7 +3953,7 @@ interactions: x-client-Ver: - 1.2.3 method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' @@ -4045,13 +3969,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:52:25 GMT + - Thu, 03 Jun 2021 21:33:45 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AoeLOn_1c0ZDnPED0p3fgRE; expires=Thu, 24-Jun-2021 19:52:26 GMT; path=/; + - fpc=Aqd9KH0cr_1CnNlNnp4iMuE; expires=Sat, 03-Jul-2021 21:33:45 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrawWYCFdRomjjH11vJWh91PcU4pVzVR2VirUc9L4RC8LM4k_IUZAnlmzCoh_pqvKC7l8fH1SQZKBu1XQiBiDNh6-VVHWiee7EJDKFksqS4_exAhQTxxCoxQzmWiQSH-fieg7v1y_1JWRuMc4da3j5NcRPjsW3JSiITvlshVMfuB0gAA; + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrYyhJoCmq29tCivhCXPta0oCP3rVJt2RP-K2mN1CcGFbnXh6PcEcfhwyuefvmO3sww6ZLAATEeh0e7v4qmZsg5j4qJNjgF9dXa6U0kqs1bTWSYQH62EzO0f0P8-pYZF8tXAeal7yQtRxbEVbU6hEegC47v8OhS6jMp88pEcFoUp0gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -4060,7 +3984,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11774.8 - WUS2 ProdSlices + - 2.1.11722.26 - WUS2 ProdSlices status: code: 200 message: OK @@ -4082,13 +4006,13 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":4,"hosts":["gp-fakehost04.mp01.mock01.vmcp.vs.management","gp-fakehost41.mp01.mock01.vmcp.vs.management","gp-fakehost33.mp01.mock01.vmcp.vs.management","gp-fakehost36.mp01.mock01.vmcp.vs.management"],"provisioningState":"Deleting"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":4,"hosts":["gp-fakehost36.mp01.mock01.vmcp.vs.management","gp-fakehost41.mp01.mock01.vmcp.vs.management","gp-fakehost33.mp01.mock01.vmcp.vs.management","gp-fakehost04.mp01.mock01.vmcp.vs.management"],"provisioningState":"Deleting"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"}' headers: azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/d51524ed-7c0a-4804-a981-c5ddc5735851?api-version=2021-06-01 + - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/b08b75e9-4a1f-427d-8d6e-53d56e511186?api-version=2021-06-01 cache-control: - no-cache content-length: @@ -4096,11 +4020,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:52:29 GMT + - Thu, 03 Jun 2021 21:33:46 GMT expires: - '-1' location: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationresults/d51524ed-7c0a-4804-a981-c5ddc5735851?api-version=2021-06-01 + - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationresults/b08b75e9-4a1f-427d-8d6e-53d56e511186?api-version=2021-06-01 pragma: - no-cache strict-transport-security: @@ -4112,7 +4036,7 @@ interactions: x-ms-ratelimit-remaining-subscription-deletes: - '14999' x-msedge-ref: - - 'Ref A: A261869757EB4806B8A918333BCA07CB Ref B: PDX31EDGE0106 Ref C: 2021-05-25T19:52:28Z' + - 'Ref A: F366BFA33B6B40D8AA9852126AA3A6E1 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:33:45Z' status: code: 202 message: Accepted @@ -4132,10 +4056,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/d51524ed-7c0a-4804-a981-c5ddc5735851?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/b08b75e9-4a1f-427d-8d6e-53d56e511186?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/d51524ed-7c0a-4804-a981-c5ddc5735851","name":"d51524ed-7c0a-4804-a981-c5ddc5735851","percentComplete":0,"startTime":"2021-05-25T19:52:29.4267110+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/b08b75e9-4a1f-427d-8d6e-53d56e511186","name":"b08b75e9-4a1f-427d-8d6e-53d56e511186","percentComplete":0,"startTime":"2021-06-03T21:33:24.5517420+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -4144,7 +4068,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:52:39 GMT + - Thu, 03 Jun 2021 21:33:56 GMT expires: - '-1' pragma: @@ -4156,7 +4080,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 91ECEAAD57E24A2BABECA0DD90FD7974 Ref B: PDX31EDGE0106 Ref C: 2021-05-25T19:52:40Z' + - 'Ref A: B676E46C924446B0BED0E7A8315E83C8 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:33:56Z' status: code: 200 message: OK @@ -4176,10 +4100,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/d51524ed-7c0a-4804-a981-c5ddc5735851?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/b08b75e9-4a1f-427d-8d6e-53d56e511186?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/d51524ed-7c0a-4804-a981-c5ddc5735851","name":"d51524ed-7c0a-4804-a981-c5ddc5735851","percentComplete":50,"startTime":"2021-05-25T19:52:29.4267110+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/b08b75e9-4a1f-427d-8d6e-53d56e511186","name":"b08b75e9-4a1f-427d-8d6e-53d56e511186","percentComplete":50,"startTime":"2021-06-03T21:33:24.5517420+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -4188,7 +4112,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:52:49 GMT + - Thu, 03 Jun 2021 21:34:06 GMT expires: - '-1' pragma: @@ -4200,7 +4124,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 3670E122ADE44DE3A6545A5CAF456099 Ref B: PDX31EDGE0106 Ref C: 2021-05-25T19:52:50Z' + - 'Ref A: 4FFD0E0D3B604DDE9AB2ABA928F1740C Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:34:07Z' status: code: 200 message: OK @@ -4220,10 +4144,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/d51524ed-7c0a-4804-a981-c5ddc5735851?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/b08b75e9-4a1f-427d-8d6e-53d56e511186?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/d51524ed-7c0a-4804-a981-c5ddc5735851","name":"d51524ed-7c0a-4804-a981-c5ddc5735851","percentComplete":50,"startTime":"2021-05-25T19:52:29.4267110+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/b08b75e9-4a1f-427d-8d6e-53d56e511186","name":"b08b75e9-4a1f-427d-8d6e-53d56e511186","percentComplete":50,"startTime":"2021-06-03T21:33:24.5517420+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -4232,7 +4156,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:53:00 GMT + - Thu, 03 Jun 2021 21:34:16 GMT expires: - '-1' pragma: @@ -4244,7 +4168,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 06671AAD264445EA85E2191BDEAB9942 Ref B: PDX31EDGE0106 Ref C: 2021-05-25T19:53:00Z' + - 'Ref A: 4F2BE48EF1A9430598126F17FF2CA36B Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:34:17Z' status: code: 200 message: OK @@ -4264,10 +4188,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/d51524ed-7c0a-4804-a981-c5ddc5735851?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/b08b75e9-4a1f-427d-8d6e-53d56e511186?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/d51524ed-7c0a-4804-a981-c5ddc5735851","name":"d51524ed-7c0a-4804-a981-c5ddc5735851","percentComplete":75,"startTime":"2021-05-25T19:52:29.4267110+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/b08b75e9-4a1f-427d-8d6e-53d56e511186","name":"b08b75e9-4a1f-427d-8d6e-53d56e511186","percentComplete":75,"startTime":"2021-06-03T21:33:24.5517420+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -4276,7 +4200,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:53:10 GMT + - Thu, 03 Jun 2021 21:34:26 GMT expires: - '-1' pragma: @@ -4288,7 +4212,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: B8D6D0633C474D22B4D273197CB8009A Ref B: PDX31EDGE0106 Ref C: 2021-05-25T19:53:10Z' + - 'Ref A: 6E68400F2F05470D93CB69FD1D6BC032 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:34:27Z' status: code: 200 message: OK @@ -4308,10 +4232,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/d51524ed-7c0a-4804-a981-c5ddc5735851?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/b08b75e9-4a1f-427d-8d6e-53d56e511186?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/d51524ed-7c0a-4804-a981-c5ddc5735851","name":"d51524ed-7c0a-4804-a981-c5ddc5735851","percentComplete":75,"startTime":"2021-05-25T19:52:29.4267110+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/b08b75e9-4a1f-427d-8d6e-53d56e511186","name":"b08b75e9-4a1f-427d-8d6e-53d56e511186","percentComplete":75,"startTime":"2021-06-03T21:33:24.5517420+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -4320,7 +4244,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:53:20 GMT + - Thu, 03 Jun 2021 21:34:37 GMT expires: - '-1' pragma: @@ -4332,7 +4256,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 1FC1E56487D54EE3B706F2044208D54D Ref B: PDX31EDGE0106 Ref C: 2021-05-25T19:53:20Z' + - 'Ref A: 6D2C9B03F7AD4093AFBE21EE9FBF813D Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:34:37Z' status: code: 200 message: OK @@ -4352,10 +4276,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/d51524ed-7c0a-4804-a981-c5ddc5735851?api-version=2021-06-01 + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/b08b75e9-4a1f-427d-8d6e-53d56e511186?api-version=2021-06-01 response: body: - string: '{"endTime":"2021-05-25T19:53:23.4002516+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/d51524ed-7c0a-4804-a981-c5ddc5735851","name":"d51524ed-7c0a-4804-a981-c5ddc5735851","percentComplete":100,"startTime":"2021-05-25T19:52:29.4267110+00:00","status":"Succeeded"}' + string: '{"endTime":"2021-06-03T21:34:38.3993479+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/b08b75e9-4a1f-427d-8d6e-53d56e511186","name":"b08b75e9-4a1f-427d-8d6e-53d56e511186","percentComplete":100,"startTime":"2021-06-03T21:33:24.5517420+00:00","status":"Succeeded"}' headers: cache-control: - no-cache @@ -4364,7 +4288,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 25 May 2021 19:53:30 GMT + - Thu, 03 Jun 2021 21:34:47 GMT expires: - '-1' pragma: @@ -4376,7 +4300,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: E752B3FCD90142D482FC4C58A6D8CB8C Ref B: PDX31EDGE0106 Ref C: 2021-05-25T19:53:31Z' + - 'Ref A: E299D00C2D16454F8E86228489216440 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:34:48Z' status: code: 200 message: OK From c0e6d086f25fd027075b504f8ff0d528b1f05c22 Mon Sep 17 00:00:00 2001 From: Cameron Taggart Date: Thu, 3 Jun 2021 15:29:36 -0700 Subject: [PATCH 08/18] hcx tests coming soon --- .../latest/recordings/test_vmware_hcx.yaml | 849 ++++++++++++++++++ .../tests/latest/test_hcx_scenario.py | 19 +- 2 files changed, 860 insertions(+), 8 deletions(-) create mode 100644 src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml new file mode 100644 index 00000000000..c5d17bcad19 --- /dev/null +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml @@ -0,0 +1,849 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.3 + method: GET + uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - max-age=86400, private + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 03 Jun 2021 22:26:16 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AqSO25wOgqpBnLuBKk4fIs4; expires=Sat, 03-Jul-2021 22:26:16 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr2E7BkXLN7GZZUqAW7XrppQ9yajIaHweE_C9SGYoyjfBcF40-Sq6iMl0veYEKXoXzsJHcifnhkjkXQxCmVokQIFhoKV0RT__nFq9nywH9GKYNl9sMetqvBPDz7xS8dPu2HCOwzNn4X4mc2vW6vavOj5P7Mom4LmnT8TJaKBZ5xJMgAA; + domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly + - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.11722.21 - NCUS ProdSlices + status: + code: 200 + message: OK +- request: + body: '{"location": "westcentralus", "tags": {}, "sku": {"name": "av20"}, "properties": + {"managementCluster": {"clusterSize": 4}, "internet": "Disabled", "networkBlock": + "192.168.48.0/22", "vcenterPassword": "UpfBXae9ZquZSDXk(", "nsxtPassword": "5rqdLj4GF3cePUe6("}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud create + Connection: + - keep-alive + Content-Length: + - '259' + Content-Type: + - application/json + ParameterSetName: + - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password + --accept-eula + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"westcentralus","name":"cloud1","properties":{"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost18.mp01.mock01.vmcp.vs.management","gp-fakehost12.mp01.mock01.vmcp.vs.management"],"provisioningState":"Building"},"managementNetwork":"192.168.48.0/26","networkBlock":"192.168.48.0/22","provisioningNetwork":"192.168.50.0/25","provisioningState":"Building","vmotionNetwork":"192.168.49.128/25"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' + headers: + azure-asyncoperation: + - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf?api-version=2021-06-01 + cache-control: + - no-cache + content-length: + - '975' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 03 Jun 2021 22:26:29 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-msedge-ref: + - 'Ref A: 431A097792C3411C90C07EA44BF54933 Ref B: PDX31EDGE0108 Ref C: 2021-06-03T22:26:17Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud create + Connection: + - keep-alive + ParameterSetName: + - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password + --accept-eula + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf","name":"04d1c3b3-364d-4750-a15b-1454113509bf","percentComplete":0,"startTime":"2021-06-03T22:26:27.5613360+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '385' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 03 Jun 2021 22:26:39 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 8E2B85DDFFA1486695E47CF6730D9AD5 Ref B: PDX31EDGE0108 Ref C: 2021-06-03T22:26:39Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud create + Connection: + - keep-alive + ParameterSetName: + - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password + --accept-eula + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf","name":"04d1c3b3-364d-4750-a15b-1454113509bf","percentComplete":0,"startTime":"2021-06-03T22:26:27.5613360+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '385' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 03 Jun 2021 22:26:50 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: B969E803CFBC4D70970F706962F03BD8 Ref B: PDX31EDGE0108 Ref C: 2021-06-03T22:26:50Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud create + Connection: + - keep-alive + ParameterSetName: + - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password + --accept-eula + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf","name":"04d1c3b3-364d-4750-a15b-1454113509bf","percentComplete":88.75,"startTime":"2021-06-03T22:26:27.5613360+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '389' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 03 Jun 2021 22:27:00 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 6410BBF6172444C3A5B012993F1D18BF Ref B: PDX31EDGE0108 Ref C: 2021-06-03T22:27:00Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud create + Connection: + - keep-alive + ParameterSetName: + - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password + --accept-eula + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf","name":"04d1c3b3-364d-4750-a15b-1454113509bf","percentComplete":88.75,"startTime":"2021-06-03T22:26:27.5613360+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '389' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 03 Jun 2021 22:27:10 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 69DF69BDE2AF4187924532F74F5DE4AC Ref B: PDX31EDGE0108 Ref C: 2021-06-03T22:27:11Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud create + Connection: + - keep-alive + ParameterSetName: + - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password + --accept-eula + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf","name":"04d1c3b3-364d-4750-a15b-1454113509bf","percentComplete":100,"startTime":"2021-06-03T22:26:27.5613360+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '387' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 03 Jun 2021 22:27:21 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 2061B558D3C14D4E910D1F7585F6E8D7 Ref B: PDX31EDGE0108 Ref C: 2021-06-03T22:27:21Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud create + Connection: + - keep-alive + ParameterSetName: + - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password + --accept-eula + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf","name":"04d1c3b3-364d-4750-a15b-1454113509bf","percentComplete":100,"startTime":"2021-06-03T22:26:27.5613360+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '387' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 03 Jun 2021 22:27:31 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 304D7F804FBF41AE9F1BC0D42962C98F Ref B: PDX31EDGE0108 Ref C: 2021-06-03T22:27:31Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud create + Connection: + - keep-alive + ParameterSetName: + - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password + --accept-eula + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf","name":"04d1c3b3-364d-4750-a15b-1454113509bf","percentComplete":100,"startTime":"2021-06-03T22:26:27.5613360+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '387' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 03 Jun 2021 22:27:41 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: CD0ABF28B2724848A34620936D43C41E Ref B: PDX31EDGE0108 Ref C: 2021-06-03T22:27:41Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud create + Connection: + - keep-alive + ParameterSetName: + - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password + --accept-eula + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf","name":"04d1c3b3-364d-4750-a15b-1454113509bf","percentComplete":100,"startTime":"2021-06-03T22:26:27.5613360+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '387' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 03 Jun 2021 22:27:51 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 451E367B28F74820BA79547C365F76CF Ref B: PDX31EDGE0108 Ref C: 2021-06-03T22:27:52Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud create + Connection: + - keep-alive + ParameterSetName: + - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password + --accept-eula + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf","name":"04d1c3b3-364d-4750-a15b-1454113509bf","percentComplete":100,"startTime":"2021-06-03T22:26:27.5613360+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '387' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 03 Jun 2021 22:28:02 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: FAD9939452D9460386B7F00E203BBD71 Ref B: PDX31EDGE0108 Ref C: 2021-06-03T22:28:02Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud create + Connection: + - keep-alive + ParameterSetName: + - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password + --accept-eula + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf","name":"04d1c3b3-364d-4750-a15b-1454113509bf","percentComplete":100,"startTime":"2021-06-03T22:26:27.5613360+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '387' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 03 Jun 2021 22:28:12 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 12C1F4121F48479BB0CBB759A085DB32 Ref B: PDX31EDGE0108 Ref C: 2021-06-03T22:28:12Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud create + Connection: + - keep-alive + ParameterSetName: + - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password + --accept-eula + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf","name":"04d1c3b3-364d-4750-a15b-1454113509bf","percentComplete":100,"startTime":"2021-06-03T22:26:27.5613360+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '387' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 03 Jun 2021 22:28:22 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 37C3DB4A93B140CF87AFEE5F55200836 Ref B: PDX31EDGE0108 Ref C: 2021-06-03T22:28:22Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud create + Connection: + - keep-alive + ParameterSetName: + - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password + --accept-eula + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf","name":"04d1c3b3-364d-4750-a15b-1454113509bf","percentComplete":100,"startTime":"2021-06-03T22:26:27.5613360+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '387' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 03 Jun 2021 22:28:32 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 8FC23E1677BD48FAA79E56D6A46CE973 Ref B: PDX31EDGE0108 Ref C: 2021-06-03T22:28:33Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud create + Connection: + - keep-alive + ParameterSetName: + - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password + --accept-eula + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf?api-version=2021-06-01 + response: + body: + string: '{"endTime":"2021-06-03T22:28:33.7965579+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf","name":"04d1c3b3-364d-4750-a15b-1454113509bf","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"westcentralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt64-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt64-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt64-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt64-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.48.232/30","secondarySubnet":"192.168.48.236/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost18.mp01.mock01.vmcp.vs.management","gp-fakehost12.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/26","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/25","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.128/25"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"},"startTime":"2021-06-03T22:26:27.5613360+00:00","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '2067' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 03 Jun 2021 22:28:43 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: FE971AD8B42346899B56E07FC754981B Ref B: PDX31EDGE0108 Ref C: 2021-06-03T22:28:43Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud create + Connection: + - keep-alive + ParameterSetName: + - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password + --accept-eula + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"westcentralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt64-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt64-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt64-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt64-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.48.232/30","secondarySubnet":"192.168.48.236/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost18.mp01.mock01.vmcp.vs.management","gp-fakehost12.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/26","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/25","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.128/25"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' + headers: + cache-control: + - no-cache + content-length: + - '1619' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 03 Jun 2021 22:28:43 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 6BAA7AA47F6549098C1D51731EDF76A8 Ref B: PDX31EDGE0108 Ref C: 2021-06-03T22:28:43Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.3 + method: GET + uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - max-age=86400, private + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 03 Jun 2021 22:28:44 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=ArIzp7QvWYNLh2_FzcOyajs; expires=Sat, 03-Jul-2021 22:28:45 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrXum7S57AzN9GgPTwMCg-uub_KhsJ4KqBQFVF4t6zocVFMWfu3eLiGDWuSLhEtKkFlUynHZFSraYif03jJFQMMnbOLDAqe5fpD8jittKwrL3_45zsGnqEJQDoQ4uVRZK1B8n3_8bI4KmsKw0NoJmPMk7RvymyoZqegWnZm2mL0XogAA; + domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly + - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.11722.26 - NCUS ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud list + Connection: + - keep-alive + ParameterSetName: + - -g + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds?api-version=2021-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"westcentralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt64-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt64-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt64-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt64-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.48.232/30","secondarySubnet":"192.168.48.236/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost18.mp01.mock01.vmcp.vs.management","gp-fakehost12.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/26","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/25","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.128/25"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}]}' + headers: + cache-control: + - no-cache + content-length: + - '1631' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 03 Jun 2021 22:28:46 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: C88C8167222B44459B7B077E116488AB Ref B: PDX31EDGE0115 Ref C: 2021-06-03T22:28:45Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/vmware/azext_vmware/tests/latest/test_hcx_scenario.py b/src/vmware/azext_vmware/tests/latest/test_hcx_scenario.py index 29b0793d0a1..a68e466dbe9 100644 --- a/src/vmware/azext_vmware/tests/latest/test_hcx_scenario.py +++ b/src/vmware/azext_vmware/tests/latest/test_hcx_scenario.py @@ -7,7 +7,6 @@ import unittest from azure.cli.testsdk import (ScenarioTest, ResourceGroupPreparer) -from msrestazure.azure_exceptions import CloudError class VmwareHcxScenarioTest(ScenarioTest): @@ -18,6 +17,10 @@ def setUp(self): @ResourceGroupPreparer(name_prefix='cli_test_vmware_hcx') def test_vmware_hcx(self): + self.kwargs.update({ + 'loc': 'westcentralus', + 'privatecloud': 'cloud1', + }) # create a private cloud self.cmd('vmware private-cloud create -g {rg} -n {privatecloud} --location {loc} --sku av20 --cluster-size 4 --network-block 192.168.48.0/22 --nsxt-password 5rqdLj4GF3cePUe6( --vcenter-password UpfBXae9ZquZSDXk( --accept-eula') @@ -26,19 +29,19 @@ def test_vmware_hcx(self): self.assertEqual(count, 1, 'private cloud count expected to be 1') # hcx-enterprise-site list should report 0 - count = len(self.cmd('vmware hcx-enterprise-site list -g {rg} -c {privatecloud}').get_output_in_json()) - self.assertEqual(count, 0, 'hcx-enterprise-site count expected to be 0') + # count = len(self.cmd('vmware hcx-enterprise-site list -g {rg} -c {privatecloud}').get_output_in_json()) + # self.assertEqual(count, 0, 'hcx-enterprise-site count expected to be 0') # create authorization - self.cmd('vmware hcx-enterprise-site create -g {rg} -c {privatecloud} -n myhcx') + # self.cmd('vmware hcx-enterprise-site create -g {rg} -c {privatecloud} -n myhcx') # hcx-enterprise-site list should report 1 - count = len(self.cmd('vmware hcx-enterprise-site list -g {rg} -c {privatecloud}').get_output_in_json()) - self.assertEqual(count, 1, 'hcx-enterprise-site count expected to be 0') + # count = len(self.cmd('vmware hcx-enterprise-site list -g {rg} -c {privatecloud}').get_output_in_json()) + # self.assertEqual(count, 1, 'hcx-enterprise-site count expected to be 0') - self.cmd('vmware hcx-enterprise-site show -g {rg} -c {privatecloud} -n myhcx') + # self.cmd('vmware hcx-enterprise-site show -g {rg} -c {privatecloud} -n myhcx') - self.cmd('vmware hcx-enterprise-site delete -g {rg} -c {privatecloud} -n myhcx') + # self.cmd('vmware hcx-enterprise-site delete -g {rg} -c {privatecloud} -n myhcx') # bug 7470537 # hcx-enterprise-site list should report 0 From 41e35791978f81bf807bf862d15284a3e7d626b1 Mon Sep 17 00:00:00 2001 From: Cameron Taggart Date: Thu, 3 Jun 2021 15:35:35 -0700 Subject: [PATCH 09/18] put back help --- src/vmware/azext_vmware/_params.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/vmware/azext_vmware/_params.py b/src/vmware/azext_vmware/_params.py index 8ba2e42ea6d..9d1b47b63cb 100644 --- a/src/vmware/azext_vmware/_params.py +++ b/src/vmware/azext_vmware/_params.py @@ -74,12 +74,17 @@ def load_arguments(self, _): with self.argument_context('vmware datastore') as c: c.argument('name', options_list=['--name', '-n'], help='The name of the datastore.') c.argument('cluster', help='The name of the cluster.') + c.argument('lun_name', help='Name of the LUN to be used.') + + with self.argument_context('vmware datastore create') as c: + c.argument('nfs_provider_ip', help='IP address of the NFS provider.') + c.argument('nfs_file_path', help='File path through which the NFS volume is exposed by the provider.') + c.argument('endpoints', nargs='*', help='iSCSI provider target IP address list.') with self.argument_context('vmware datastore net-app-volume create') as c: c.argument('volume_id', help='Azure resource ID of the NetApp volume.') with self.argument_context('vmware datastore disk-pool-volume create') as c: - c.argument('lun_name', help='Name of the LUN to be used.') c.argument('target_id', help='Azure resource ID of the iSCSI target.') c.argument('mount_option', nargs='*', help='Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN.') c.argument('path', help='Device path.') From df36983f2f17817c530adcd11e7ad9126e3fe2db Mon Sep 17 00:00:00 2001 From: Cameron Taggart Date: Thu, 3 Jun 2021 18:24:17 -0700 Subject: [PATCH 10/18] add addons --- src/vmware/azext_vmware/_help.py | 124 ++ src/vmware/azext_vmware/_params.py | 12 + src/vmware/azext_vmware/commands.py | 21 + src/vmware/azext_vmware/custom.py | 63 + .../latest/recordings/test_vmware_addon.yaml | 1805 +++++++++++++++++ .../tests/latest/test_addon_scenario.py | 65 + 6 files changed, 2090 insertions(+) create mode 100644 src/vmware/azext_vmware/tests/latest/recordings/test_vmware_addon.yaml create mode 100644 src/vmware/azext_vmware/tests/latest/test_addon_scenario.py diff --git a/src/vmware/azext_vmware/_help.py b/src/vmware/azext_vmware/_help.py index b973b395c88..826d07b2a5b 100644 --- a/src/vmware/azext_vmware/_help.py +++ b/src/vmware/azext_vmware/_help.py @@ -12,6 +12,26 @@ short-summary: Commands to manage Azure VMware Solution. """ +helps['vmware addon'] = """ + type: group + short-summary: Commands to manage addons for a private cloud. +""" + +helps['vmware addon hcx'] = """ + type: group + short-summary: Commands to manage a HCX addon. +""" + +helps['vmware addon srm'] = """ + type: group + short-summary: Commands to manage a Site Recovery Manager (SRM) addon. +""" + +helps['vmware addon vr'] = """ + type: group + short-summary: Commands to manage a vSphere Replication (VR) addon. +""" + helps['vmware private-cloud'] = """ type: group short-summary: Commands to manage private clouds. @@ -227,3 +247,107 @@ - name: Delete an iSCSI or NFS based datastore. text: az vmware datastore delete --name MyCloudSANDatastore1 --resource-group MyResourceGroup --cluster Cluster-1 --private-cloud MyPrivateCloud """ + +helps['vmware addon list'] = """ + type: command + short-summary: List addons in a private cloud. + examples: + - name: List addons in a private cloud. + text: az vmware addon list --resource-group MyResourceGroup --private-cloud MyPrivateCloud +""" + +helps['vmware addon vr create'] = """ + type: command + short-summary: Create a vSphere Replication (VR) addon for a private cloud. + examples: + - name: Create a vSphere Replication (VR) addon. + text: az vmware addon vr create --resource-group MyResourceGroup --private-cloud MyPrivateCloud --vrs-count 1 +""" + +helps['vmware addon hcx create'] = """ + type: command + short-summary: Create a HCX addon for a private cloud. + examples: + - name: Create a HCX addon. + text: az vmware addon hcx create --resource-group MyResourceGroup --private-cloud MyPrivateCloud --offer "VMware MaaS Cloud Provider (Enterprise)" +""" + +helps['vmware addon srm create'] = """ + type: command + short-summary: Create a Site Recovery Manager (SRM) addon for a private cloud. + examples: + - name: Create a Site Recovery Manager (SRM) addon. + text: az vmware addon srm create --resource-group MyResourceGroup --private-cloud MyPrivateCloud --license-key "41915178-A8FF-4A4D-B683-6D735AF5E3F5" +""" + +helps['vmware addon vr show'] = """ + type: command + short-summary: Show details of a vSphere Replication (VR) addon for a private cloud. + examples: + - name: Show details of a vSphere Replication (VR) addon. + text: az vmware addon vr show --resource-group MyResourceGroup --private-cloud MyPrivateCloud +""" + +helps['vmware addon hcx show'] = """ + type: command + short-summary: Show details of a HCX addon for a private cloud. + examples: + - name: Show details of a HCX addon. + text: az vmware addon hcx show --resource-group MyResourceGroup --private-cloud MyPrivateCloud +""" + +helps['vmware addon srm show'] = """ + type: command + short-summary: Show details of a Site Recovery Manager (SRM) addon for a private cloud. + examples: + - name: Show details of a Site Recovery Manager (SRM) addon. + text: az vmware addon srm show --resource-group MyResourceGroup --private-cloud MyPrivateCloud +""" + +helps['vmware addon vr update'] = """ + type: command + short-summary: Update a vSphere Replication (VR) addon for a private cloud. + examples: + - name: Update a vSphere Replication (VR) addon. + text: az vmware addon vr update --resource-group MyResourceGroup --private-cloud MyPrivateCloud --vrs-count 1 +""" + +helps['vmware addon hcx update'] = """ + type: command + short-summary: Update a HCX addon for a private cloud. + examples: + - name: Update a HCX addon. + text: az vmware addon hcx update --resource-group MyResourceGroup --private-cloud MyPrivateCloud --offer "VMware MaaS Cloud Provider (Enterprise)" +""" + +helps['vmware addon srm update'] = """ + type: command + short-summary: Update a Site Recovery Manager (SRM) addon for a private cloud. + examples: + - name: Update a Site Recovery Manager (SRM) addon. + text: az vmware addon srm update --resource-group MyResourceGroup --private-cloud MyPrivateCloud --license-key "41915178-A8FF-4A4D-B683-6D735AF5E3F5" +""" + +helps['vmware addon vr delete'] = """ + type: command + short-summary: Delete a vSphere Replication (VR) addon for a private cloud. + examples: + - name: Delete a vSphere Replication (VR) addon. + text: az vmware addon vr delete --resource-group MyResourceGroup --private-cloud MyPrivateCloud +""" + +helps['vmware addon hcx delete'] = """ + type: command + short-summary: Delete a HCX addon for a private cloud. + examples: + - name: Delete a HCX addon. + text: az vmware addon hcx delete --resource-group MyResourceGroup --private-cloud MyPrivateCloud +""" + +helps['vmware addon srm delete'] = """ + type: command + short-summary: Delete a Site Recovery Manager (SRM) addon for a private cloud. + examples: + - name: Delete a Site Recovery Manager (SRM) addon. + text: az vmware addon srm delete --resource-group MyResourceGroup --private-cloud MyPrivateCloud +""" diff --git a/src/vmware/azext_vmware/_params.py b/src/vmware/azext_vmware/_params.py index 9d1b47b63cb..7bef9fb4873 100644 --- a/src/vmware/azext_vmware/_params.py +++ b/src/vmware/azext_vmware/_params.py @@ -88,3 +88,15 @@ def load_arguments(self, _): c.argument('target_id', help='Azure resource ID of the iSCSI target.') c.argument('mount_option', nargs='*', help='Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN.') c.argument('path', help='Device path.') + + with self.argument_context('vmware addon') as c: + c.argument('name', options_list=['--name', '-n'], help='Name of the addon.') + + with self.argument_context('vmware addon vr') as c: + c.argument('vrs_count', help='The vSphere Replication Server (VRS) count.') + + with self.argument_context('vmware addon hcx') as c: + c.argument('offer', help='The HCX offer, example "VMware MaaS Cloud Provider (Enterprise)".') + + with self.argument_context('vmware addon srm') as c: + c.argument('license_key', help='The Site Recovery Manager (SRM) license.') diff --git a/src/vmware/azext_vmware/commands.py b/src/vmware/azext_vmware/commands.py index 4ab4ed2d11b..799dcbd27c6 100644 --- a/src/vmware/azext_vmware/commands.py +++ b/src/vmware/azext_vmware/commands.py @@ -59,3 +59,24 @@ def load_command_table(self, _): with self.command_group('vmware datastore disk-pool-volume', vmware_sdk, client_factory=cf_vmware) as g: g.custom_command('create', 'datastore_diskpoolvolume_create') + + with self.command_group('vmware addon', vmware_sdk, client_factory=cf_vmware) as g: + g.custom_command('list', 'addon_list') + + with self.command_group('vmware addon vr', vmware_sdk, client_factory=cf_vmware) as g: + g.custom_command('create', 'addon_vr_create') + g.custom_command('show', 'addon_vr_show') + g.custom_command('update', 'addon_vr_update') + g.custom_command('delete', 'addon_vr_delete') + + with self.command_group('vmware addon hcx', vmware_sdk, client_factory=cf_vmware) as g: + g.custom_command('create', 'addon_hcx_create') + g.custom_command('show', 'addon_hcx_show') + g.custom_command('update', 'addon_hcx_update') + g.custom_command('delete', 'addon_hcx_delete') + + with self.command_group('vmware addon srm', vmware_sdk, client_factory=cf_vmware) as g: + g.custom_command('create', 'addon_srm_create') + g.custom_command('show', 'addon_srm_show') + g.custom_command('update', 'addon_srm_update') + g.custom_command('delete', 'addon_srm_delete') diff --git a/src/vmware/azext_vmware/custom.py b/src/vmware/azext_vmware/custom.py index d88c6e7f1b7..e53fb7acfc4 100644 --- a/src/vmware/azext_vmware/custom.py +++ b/src/vmware/azext_vmware/custom.py @@ -195,3 +195,66 @@ def datastore_show(cmd, client: AVSClient, resource_group_name, private_cloud, c def datastore_delete(cmd, client: AVSClient, resource_group_name, private_cloud, cluster, name): return client.datastores.begin_delete(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=cluster, datastore_name=name) + +def addon_list(cmd, client: AVSClient, resource_group_name, private_cloud): + return client.addons.list(resource_group_name=resource_group_name, private_cloud_name=private_cloud) + + +def addon_vr_create(cmd, client: AVSClient, resource_group_name, private_cloud, vrs_count: int): + from azext_vmware.vendored_sdks.avs_client.models import Addon, AddonVrProperties + properties=AddonVrProperties(vrs_count=vrs_count) + return client.addons.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="vr", properties=properties) + + +def addon_hcx_create(cmd, client: AVSClient, resource_group_name, private_cloud, offer: str): + from azext_vmware.vendored_sdks.avs_client.models import Addon, AddonHcxProperties + properties=AddonHcxProperties(offer=offer) + return client.addons.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="hcx", properties=properties) + + +def addon_srm_create(cmd, client: AVSClient, resource_group_name, private_cloud, license_key: str): + from azext_vmware.vendored_sdks.avs_client.models import Addon, AddonSrmProperties + properties=AddonSrmProperties(license_key=license_key) + return client.addons.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="srm", properties=properties) + + +def addon_vr_show(cmd, client: AVSClient, resource_group_name, private_cloud): + return client.addons.get(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="vr") + + +def addon_hcx_show(cmd, client: AVSClient, resource_group_name, private_cloud): + return client.addons.get(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="hcx") + + +def addon_srm_show(cmd, client: AVSClient, resource_group_name, private_cloud): + return client.addons.get(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="srm") + + +def addon_vr_update(cmd, client: AVSClient, resource_group_name, private_cloud, vrs_count: int): + from azext_vmware.vendored_sdks.avs_client.models import Addon, AddonVrProperties + properties=AddonVrProperties(vrs_count=vrs_count) + return client.addons.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="vr", properties=properties) + + +def addon_hcx_update(cmd, client: AVSClient, resource_group_name, private_cloud, offer: str): + from azext_vmware.vendored_sdks.avs_client.models import Addon, AddonHcxProperties + properties=AddonHcxProperties(offer=offer) + return client.addons.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="hcx", properties=properties) + + +def addon_srm_update(cmd, client: AVSClient, resource_group_name, private_cloud, license_key: str): + from azext_vmware.vendored_sdks.avs_client.models import Addon, AddonSrmProperties + properties=AddonSrmProperties(license_key=license_key) + return client.addons.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="srm", properties=properties) + + +def addon_vr_delete(cmd, client: AVSClient, resource_group_name, private_cloud): + return client.addons.begin_delete(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="vr") + + +def addon_hcx_delete(cmd, client: AVSClient, resource_group_name, private_cloud): + return client.addons.begin_delete(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="hcx") + + +def addon_srm_delete(cmd, client: AVSClient, resource_group_name, private_cloud): + return client.addons.begin_delete(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="srm") diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_addon.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_addon.yaml new file mode 100644 index 00000000000..03337806818 --- /dev/null +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_addon.yaml @@ -0,0 +1,1805 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.3 + method: GET + uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - max-age=86400, private + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:14:55 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AlgsTiJUP3FIrRG1JcPVEMw; expires=Sun, 04-Jul-2021 01:14:55 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevroOhDcX_mPGRtljDDj4Q1klOhQMVEbcBZ9y7OzKwXqUIF7_bFwRKIdtOazpn_-QnFYhG_ZQzU4lH1B2TWhj3Hj1VidKUhamjDcb3sMdb8AGa7po1-pVR0yK559ciAQ87U_9pKNiTberfEjvg-2zUYPjKgeD8aMZMoW3LZzWHFAdggAA; + domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly + - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.11722.21 - NCUS ProdSlices + status: + code: 200 + message: OK +- request: + body: '{"location": "northcentralus", "tags": {}, "sku": {"name": "av20"}, "properties": + {"managementCluster": {"clusterSize": 4}, "internet": "Disabled", "networkBlock": + "192.168.48.0/22"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud create + Connection: + - keep-alive + Content-Length: + - '183' + Content-Type: + - application/json + ParameterSetName: + - -g -n --location --sku --cluster-size --network-block --accept-eula + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1","location":"northcentralus","name":"mycloud1","properties":{"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost31.mp01.mock01.vmcp.vs.management","gp-fakehost30.mp01.mock01.vmcp.vs.management","gp-fakehost29.mp01.mock01.vmcp.vs.management","gp-fakehost28.mp01.mock01.vmcp.vs.management"],"provisioningState":"Building"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","provisioningNetwork":"192.168.50.0/24","provisioningState":"Building","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' + headers: + azure-asyncoperation: + - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6?api-version=2021-06-01 + cache-control: + - no-cache + content-length: + - '978' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:15:02 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-msedge-ref: + - 'Ref A: E68EC5C3FDB047D4851EDEE0B4C2C12F Ref B: PDX31EDGE0113 Ref C: 2021-06-04T01:14:55Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud create + Connection: + - keep-alive + ParameterSetName: + - -g -n --location --sku --cluster-size --network-block --accept-eula + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","name":"74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","percentComplete":0,"startTime":"2021-06-04T01:15:01.9605806+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '387' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:15:12 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 3C9C78087AB4450AB94EA2AF141D7E31 Ref B: PDX31EDGE0113 Ref C: 2021-06-04T01:15:12Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud create + Connection: + - keep-alive + ParameterSetName: + - -g -n --location --sku --cluster-size --network-block --accept-eula + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","name":"74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","percentComplete":0,"startTime":"2021-06-04T01:15:01.9605806+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '387' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:15:22 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: E8149F6885704EF1A6059802FA972DA3 Ref B: PDX31EDGE0113 Ref C: 2021-06-04T01:15:22Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud create + Connection: + - keep-alive + ParameterSetName: + - -g -n --location --sku --cluster-size --network-block --accept-eula + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","name":"74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","percentComplete":88.75,"startTime":"2021-06-04T01:15:01.9605806+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '391' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:15:32 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 1E35F494A033475ABBC44E4D06E27C96 Ref B: PDX31EDGE0113 Ref C: 2021-06-04T01:15:32Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud create + Connection: + - keep-alive + ParameterSetName: + - -g -n --location --sku --cluster-size --network-block --accept-eula + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","name":"74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","percentComplete":88.75,"startTime":"2021-06-04T01:15:01.9605806+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '391' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:15:42 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 7CB1EF3BBB6242BD84744AD93F32F01F Ref B: PDX31EDGE0113 Ref C: 2021-06-04T01:15:43Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud create + Connection: + - keep-alive + ParameterSetName: + - -g -n --location --sku --cluster-size --network-block --accept-eula + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","name":"74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","percentComplete":100,"startTime":"2021-06-04T01:15:01.9605806+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '389' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:15:52 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 8443BC2B28004A9B972D37F1056652D8 Ref B: PDX31EDGE0113 Ref C: 2021-06-04T01:15:53Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud create + Connection: + - keep-alive + ParameterSetName: + - -g -n --location --sku --cluster-size --network-block --accept-eula + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","name":"74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","percentComplete":100,"startTime":"2021-06-04T01:15:01.9605806+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '389' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:16:03 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 56563E9676834382A7C124F7A9E6C27C Ref B: PDX31EDGE0113 Ref C: 2021-06-04T01:16:03Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud create + Connection: + - keep-alive + ParameterSetName: + - -g -n --location --sku --cluster-size --network-block --accept-eula + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","name":"74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","percentComplete":100,"startTime":"2021-06-04T01:15:01.9605806+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '389' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:16:13 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: CE377FAB2F8E475391A3ADAF1B2605B8 Ref B: PDX31EDGE0113 Ref C: 2021-06-04T01:16:13Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud create + Connection: + - keep-alive + ParameterSetName: + - -g -n --location --sku --cluster-size --network-block --accept-eula + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","name":"74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","percentComplete":100,"startTime":"2021-06-04T01:15:01.9605806+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '389' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:16:23 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: D45A7CD0E487479E81BFDC4A868EAF3C Ref B: PDX31EDGE0113 Ref C: 2021-06-04T01:16:23Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud create + Connection: + - keep-alive + ParameterSetName: + - -g -n --location --sku --cluster-size --network-block --accept-eula + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","name":"74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","percentComplete":100,"startTime":"2021-06-04T01:15:01.9605806+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '389' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:16:33 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 39E7E3BD1F684223BDC2327C0B6BE7AB Ref B: PDX31EDGE0113 Ref C: 2021-06-04T01:16:34Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud create + Connection: + - keep-alive + ParameterSetName: + - -g -n --location --sku --cluster-size --network-block --accept-eula + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","name":"74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","percentComplete":100,"startTime":"2021-06-04T01:15:01.9605806+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '389' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:16:43 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 61BE8D450CC84B6D874D67E301B4602D Ref B: PDX31EDGE0113 Ref C: 2021-06-04T01:16:44Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud create + Connection: + - keep-alive + ParameterSetName: + - -g -n --location --sku --cluster-size --network-block --accept-eula + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","name":"74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","percentComplete":100,"startTime":"2021-06-04T01:15:01.9605806+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '389' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:16:54 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 8E7EE79974CD48D69F3F24C221E84547 Ref B: PDX31EDGE0113 Ref C: 2021-06-04T01:16:54Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud create + Connection: + - keep-alive + ParameterSetName: + - -g -n --location --sku --cluster-size --network-block --accept-eula + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6?api-version=2021-06-01 + response: + body: + string: '{"endTime":"2021-06-04T01:16:59.2258667+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","name":"74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1","location":"northcentralus","name":"mycloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt75-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt75-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt75-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt75-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost31.mp01.mock01.vmcp.vs.management","gp-fakehost30.mp01.mock01.vmcp.vs.management","gp-fakehost29.mp01.mock01.vmcp.vs.management","gp-fakehost28.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"},"startTime":"2021-06-04T01:15:01.9605806+00:00","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '2069' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:17:04 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 21BFA2A2E7A449458A670AA6AD99DFE9 Ref B: PDX31EDGE0113 Ref C: 2021-06-04T01:17:04Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud create + Connection: + - keep-alive + ParameterSetName: + - -g -n --location --sku --cluster-size --network-block --accept-eula + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1","location":"northcentralus","name":"mycloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt75-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt75-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt75-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt75-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost31.mp01.mock01.vmcp.vs.management","gp-fakehost30.mp01.mock01.vmcp.vs.management","gp-fakehost29.mp01.mock01.vmcp.vs.management","gp-fakehost28.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' + headers: + cache-control: + - no-cache + content-length: + - '1619' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:17:04 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 69D9634CE9004CDDB99625AC5789B76E Ref B: PDX31EDGE0113 Ref C: 2021-06-04T01:17:04Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.3 + method: GET + uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - max-age=86400, private + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:17:05 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AvJdidjTajVMpJI6tkbvCgo; expires=Sun, 04-Jul-2021 01:17:05 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr2HJdDjtvCUrc2CeixeTXUBlvXJa7xGTkRWj3QOC-vOovJC3V9rumQ0fEYRqDFnkm66LsbdmoSZ7AKI4NAjKSl2VBecA-FEcFIPF81X9KxnfKctgp-f1ofDu2TWqlxfQawS87iGb0-3BFgbEds96nGVgXWd6g5TEwcRiU5HBFW7EgAA; + domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly + - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.11722.26 - SCUS ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware addon list + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons?api-version=2021-06-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:17:05 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: D13ED1D68C0540809F10B1649E335D27 Ref B: PDX31EDGE0119 Ref C: 2021-06-04T01:17:05Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.3 + method: GET + uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - max-age=86400, private + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:17:06 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AvKvRMVhyU1CmxNvwH7muzo; expires=Sun, 04-Jul-2021 01:17:06 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrGimviEVQAG9CE5uWHnVUH1iSNMJyfPFGLD5aiR1SsWUJ2bwj12Yr0BXSuApQkfLRdhsHVerqBxK_ZWgerN5cO0xS4MfR6W49nL2fUliquL-4GcMNfgGFR5AXlDvfoP9Q1_GXzSC4Swl5VAdTANgVDVt3P8UGK71z28tsPNRJkkwgAA; + domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly + - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.11787.14 - SCUS ProdSlices + status: + code: 200 + message: OK +- request: + body: '{"properties": {"addonType": "VR", "vrsCount": 1}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware addon vr create + Connection: + - keep-alive + Content-Length: + - '50' + Content-Type: + - application/json + ParameterSetName: + - -g -c --vrs-count + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr","name":"vr","properties":{"addonType":"VR","provisioningState":"Building","vrsCount":1},"type":"Microsoft.AVS/privateClouds/addons"}' + headers: + azure-asyncoperation: + - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/a7c4a7bb-f176-4443-accf-52606e7b907b?api-version=2021-06-01 + cache-control: + - no-cache + content-length: + - '340' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:17:07 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1195' + x-msedge-ref: + - 'Ref A: 6AFFE1DDE1DD4B97918375009ABF1AC6 Ref B: PDX31EDGE0120 Ref C: 2021-06-04T01:17:06Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware addon vr create + Connection: + - keep-alive + ParameterSetName: + - -g -c --vrs-count + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/a7c4a7bb-f176-4443-accf-52606e7b907b?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/a7c4a7bb-f176-4443-accf-52606e7b907b","name":"a7c4a7bb-f176-4443-accf-52606e7b907b","percentComplete":25,"startTime":"2021-06-04T01:17:07.6503196+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '398' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:17:17 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: B4DCFE37D3634558A7761EA03AD72052 Ref B: PDX31EDGE0120 Ref C: 2021-06-04T01:17:17Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware addon vr create + Connection: + - keep-alive + ParameterSetName: + - -g -c --vrs-count + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/a7c4a7bb-f176-4443-accf-52606e7b907b?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/a7c4a7bb-f176-4443-accf-52606e7b907b","name":"a7c4a7bb-f176-4443-accf-52606e7b907b","percentComplete":0,"startTime":"2021-06-04T01:17:07.6503196+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '397' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:17:27 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 78AC6270A30643A59315B7EE00F4ED32 Ref B: PDX31EDGE0120 Ref C: 2021-06-04T01:17:28Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware addon vr create + Connection: + - keep-alive + ParameterSetName: + - -g -c --vrs-count + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/a7c4a7bb-f176-4443-accf-52606e7b907b?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/a7c4a7bb-f176-4443-accf-52606e7b907b","name":"a7c4a7bb-f176-4443-accf-52606e7b907b","percentComplete":50,"startTime":"2021-06-04T01:17:07.6503196+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '398' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:17:37 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 3B88D8C9502445DD9C31DC7C8051A0DF Ref B: PDX31EDGE0120 Ref C: 2021-06-04T01:17:38Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware addon vr create + Connection: + - keep-alive + ParameterSetName: + - -g -c --vrs-count + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/a7c4a7bb-f176-4443-accf-52606e7b907b?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/a7c4a7bb-f176-4443-accf-52606e7b907b","name":"a7c4a7bb-f176-4443-accf-52606e7b907b","percentComplete":0,"startTime":"2021-06-04T01:17:07.6503196+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '397' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:17:47 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 76FF3B630FB742619DEF746EC05674C4 Ref B: PDX31EDGE0120 Ref C: 2021-06-04T01:17:48Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware addon vr create + Connection: + - keep-alive + ParameterSetName: + - -g -c --vrs-count + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/a7c4a7bb-f176-4443-accf-52606e7b907b?api-version=2021-06-01 + response: + body: + string: '{"endTime":"2021-06-04T01:17:44.0502741+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/a7c4a7bb-f176-4443-accf-52606e7b907b","name":"a7c4a7bb-f176-4443-accf-52606e7b907b","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr","name":"vr","properties":{"addonType":"VR","provisioningState":"Succeeded","vrsCount":1},"type":"Microsoft.AVS/privateClouds/addons"},"startTime":"2021-06-04T01:17:07.6503196+00:00","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '801' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:17:58 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: FCD295CCABB24CF5947DC0FE831A34FC Ref B: PDX31EDGE0120 Ref C: 2021-06-04T01:17:58Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware addon vr create + Connection: + - keep-alive + ParameterSetName: + - -g -c --vrs-count + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr","name":"vr","properties":{"addonType":"VR","provisioningState":"Succeeded","vrsCount":1},"type":"Microsoft.AVS/privateClouds/addons"}' + headers: + cache-control: + - no-cache + content-length: + - '341' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:17:58 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 2BC0AAE5923846DA91FEB7F7C8B968D1 Ref B: PDX31EDGE0120 Ref C: 2021-06-04T01:17:58Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.3 + method: GET + uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - max-age=86400, private + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:17:58 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AoNokgBYlSVBtZKOL8n1xrY; expires=Sun, 04-Jul-2021 01:17:59 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrtO1NEQsZnsGnUjYGZw8kluGK-py-Y03C1b1-hgciN2AEVIvUgrDRcJnQB3mXiBlh1QkLBYH4IwsL84LQsknh-MjKLPceJC_JO0DBeHs0MjfoFOHzuP4zSzsSVDUFRoYcwE_8TMFZZMv8ZMqS_AGfG8l4oxZ-PZlNYC-7lMU01jIgAA; + domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly + - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.11722.21 - EUS ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware addon list + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons?api-version=2021-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr","name":"vr","properties":{"addonType":"VR","provisioningState":"Succeeded","vrsCount":1},"type":"Microsoft.AVS/privateClouds/addons"}]}' + headers: + cache-control: + - no-cache + content-length: + - '353' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:17:59 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 05BD151FA6764AA784FE3DCC8F8E1D3D Ref B: PDX31EDGE0111 Ref C: 2021-06-04T01:17:59Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.3 + method: GET + uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - max-age=86400, private + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:18:00 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AshtVrOo-1ZDjzlDEtDFg78; expires=Sun, 04-Jul-2021 01:18:00 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrXEESoVLh9tborC-5jO0qjlQmRHg0Id2nDz61j8LIfTsGbZ2bbWh2kUpX6qxyNVaeT5-tn3YFsdP1sIQVxWUwNE63mwkcZaUt1Cz5XMQWyT61uU9pvmeUVUlLl7QHcYNbjbrK5mF4VzJqgTwQbo8jbVXOtGNy5cf8AVGZfP2WOdUgAA; + domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly + - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.11722.21 - SCUS ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware addon vr show + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr","name":"vr","properties":{"addonType":"VR","provisioningState":"Succeeded","vrsCount":1},"type":"Microsoft.AVS/privateClouds/addons"}' + headers: + cache-control: + - no-cache + content-length: + - '341' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:18:00 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 262EFE2448474AFF86CF1CD2C54D6480 Ref B: PDX31EDGE0111 Ref C: 2021-06-04T01:18:00Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.3 + method: GET + uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - max-age=86400, private + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:18:00 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AhTm7fQbUAdEuhVbK8xP1qs; expires=Sun, 04-Jul-2021 01:18:00 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrOiiFQPf4_nciCCIipWyZSUZsjIm0atKnhF23cvHRrK_NEHzHFwvl8VcnvFlrV7ev4T0hWRQjiBhzGuR3a_7iB-yJY_Wucc2c-oEjaaX3uQu4EydAcOgj7VgN6ii5IanLi3QxsVLGqMjhob9Z5frRImc6g8hePviNGqTqfGx3InYgAA; + domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly + - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.11722.26 - EUS ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware addon vr delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr","name":"vr","properties":{"addonType":"VR","provisioningState":"Deleting","vrsCount":1},"type":"Microsoft.AVS/privateClouds/addons"}' + headers: + azure-asyncoperation: + - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/98235272-1944-43ca-b45c-bebd59b1bd92?api-version=2021-06-01 + cache-control: + - no-cache + content-length: + - '340' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:18:00 GMT + expires: + - '-1' + location: + - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationresults/98235272-1944-43ca-b45c-bebd59b1bd92?api-version=2021-06-01 + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14997' + x-msedge-ref: + - 'Ref A: CD5B5BFA6D4D444DB2D34BC3C02F1B2F Ref B: PDX31EDGE0121 Ref C: 2021-06-04T01:18:00Z' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware addon vr delete + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/98235272-1944-43ca-b45c-bebd59b1bd92?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/98235272-1944-43ca-b45c-bebd59b1bd92","name":"98235272-1944-43ca-b45c-bebd59b1bd92","percentComplete":0,"startTime":"2021-06-04T01:18:01.1326769+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '397' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:18:11 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: BC592D98F6C240B68C12F83D5DD1EEFB Ref B: PDX31EDGE0121 Ref C: 2021-06-04T01:18:11Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware addon vr delete + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/98235272-1944-43ca-b45c-bebd59b1bd92?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/98235272-1944-43ca-b45c-bebd59b1bd92","name":"98235272-1944-43ca-b45c-bebd59b1bd92","percentComplete":0,"startTime":"2021-06-04T01:18:01.1326769+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '397' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:18:21 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 32387C5DA5874D67A93A1560C208C400 Ref B: PDX31EDGE0121 Ref C: 2021-06-04T01:18:21Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware addon vr delete + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/98235272-1944-43ca-b45c-bebd59b1bd92?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/98235272-1944-43ca-b45c-bebd59b1bd92","name":"98235272-1944-43ca-b45c-bebd59b1bd92","percentComplete":50,"startTime":"2021-06-04T01:18:01.1326769+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '398' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:18:31 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: A8F32D41E935423FB28F701155BED24E Ref B: PDX31EDGE0121 Ref C: 2021-06-04T01:18:31Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware addon vr delete + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/98235272-1944-43ca-b45c-bebd59b1bd92?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/98235272-1944-43ca-b45c-bebd59b1bd92","name":"98235272-1944-43ca-b45c-bebd59b1bd92","percentComplete":0,"startTime":"2021-06-04T01:18:01.1326769+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '397' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:18:41 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 96815CAAF5134036B032510D806728BD Ref B: PDX31EDGE0121 Ref C: 2021-06-04T01:18:41Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware addon vr delete + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/98235272-1944-43ca-b45c-bebd59b1bd92?api-version=2021-06-01 + response: + body: + string: '{"endTime":"2021-06-04T01:18:39.0494200+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/98235272-1944-43ca-b45c-bebd59b1bd92","name":"98235272-1944-43ca-b45c-bebd59b1bd92","percentComplete":100,"startTime":"2021-06-04T01:18:01.1326769+00:00","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '446' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:18:51 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: D52AC86943324364834495C971CCCC37 Ref B: PDX31EDGE0121 Ref C: 2021-06-04T01:18:52Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.3 + method: GET + uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - max-age=86400, private + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:18:52 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Aonec9VPQYFMiOT1xefOtek; expires=Sun, 04-Jul-2021 01:18:52 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrJ5x1-VgS2KVYhm90pYVRX-JClvzgjcDE0RlN9_t5XwlrZIWYTXo9hE7fP5V3l4n6NkFkDky2K615sdL4QSlz18p5gOWkgRpB3UXmqOjC4DkuEWw8AVIkWPjKEq4klQWHKP862Fep7c17QQxxcm5awRSWsuFN9ee9jE1NiSnz6XogAA; + domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly + - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.11722.26 - EUS ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware addon list + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons?api-version=2021-06-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:18:53 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: E42B1FCEA4FA4BDEB76E1571C3D351F0 Ref B: PDX31EDGE0111 Ref C: 2021-06-04T01:18:53Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/vmware/azext_vmware/tests/latest/test_addon_scenario.py b/src/vmware/azext_vmware/tests/latest/test_addon_scenario.py new file mode 100644 index 00000000000..3c98b5ce987 --- /dev/null +++ b/src/vmware/azext_vmware/tests/latest/test_addon_scenario.py @@ -0,0 +1,65 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +import os +import unittest + +from azure.cli.testsdk import (ScenarioTest, ResourceGroupPreparer) +from msrestazure.azure_exceptions import CloudError + + +class VmwareAddonScenarioTest(ScenarioTest): + def setUp(self): + # https://vcrpy.readthedocs.io/en/latest/configuration.html#request-matching + self.vcr.match_on = ['scheme', 'method', 'path', 'query'] # not 'host', 'port' + super(VmwareAddonScenarioTest, self).setUp() + + @ResourceGroupPreparer(name_prefix='cli_test_vmware_addon') + def test_vmware_addon(self): + self.kwargs.update({ + 'loc': 'northcentralus', + 'privatecloud': 'mycloud1' + }) + + # create a private cloud + self.cmd('vmware private-cloud create -g {rg} -n {privatecloud} --location {loc} --sku av20 --cluster-size 4 --network-block 192.168.48.0/22 --accept-eula') + + # List all existing addon + count = len(self.cmd('vmware addon list -g {rg} -c {privatecloud}').get_output_in_json()) + self.assertEqual(count, 0, 'addon count expected to be 0') + + # Create a VR addon + self.cmd('az vmware addon vr create -g {rg} -c {privatecloud} --vrs-count 1') + + # List all existing addon + count = len(self.cmd('vmware addon list -g {rg} -c {privatecloud}').get_output_in_json()) + self.assertEqual(count, 1, 'addon count expected to be 1') + + # Show a VR addon + self.cmd('az vmware addon vr show -g {rg} -c {privatecloud}') + + # Delete a VR addon + self.cmd('az vmware addon vr delete -g {rg} -c {privatecloud}') + + # List all existing addon + count = len(self.cmd('vmware addon list -g {rg} -c {privatecloud}').get_output_in_json()) + self.assertEqual(count, 0, 'addon count expected to be 0') + + # # Create a SRM addon + # self.cmd('az vmware addon srm create -g {rg} -c {privatecloud} --license-key "41915178-A8FF-4A4D-B683-6D735AF5E3F5"') + + # # List all existing addon + # count = len(self.cmd('vmware addon list -g {rg} -c {privatecloud}').get_output_in_json()) + # self.assertEqual(count, 1, 'addon count expected to be 1') + + # # Show a SRM addon + # self.cmd('az vmware addon srm show -g {rg} -c {privatecloud}') + + # # Delete a SRM addon + # self.cmd('az vmware addon srm delete -g {rg} -c {privatecloud}') + + # # List all existing addon + # count = len(self.cmd('vmware addon list -g {rg} -c {privatecloud}').get_output_in_json()) + # self.assertEqual(count, 0, 'addon count expected to be 0') From df4b3bf21c01cb133e0462d1d5915b79c0d08230 Mon Sep 17 00:00:00 2001 From: Cameron Taggart Date: Thu, 3 Jun 2021 18:34:59 -0700 Subject: [PATCH 11/18] custom_show_command --- src/vmware/azext_vmware/commands.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vmware/azext_vmware/commands.py b/src/vmware/azext_vmware/commands.py index 799dcbd27c6..cff8688abbf 100644 --- a/src/vmware/azext_vmware/commands.py +++ b/src/vmware/azext_vmware/commands.py @@ -65,18 +65,18 @@ def load_command_table(self, _): with self.command_group('vmware addon vr', vmware_sdk, client_factory=cf_vmware) as g: g.custom_command('create', 'addon_vr_create') - g.custom_command('show', 'addon_vr_show') + g.custom_show_command('show', 'addon_vr_show') g.custom_command('update', 'addon_vr_update') g.custom_command('delete', 'addon_vr_delete') with self.command_group('vmware addon hcx', vmware_sdk, client_factory=cf_vmware) as g: g.custom_command('create', 'addon_hcx_create') - g.custom_command('show', 'addon_hcx_show') + g.custom_show_command('show', 'addon_hcx_show') g.custom_command('update', 'addon_hcx_update') g.custom_command('delete', 'addon_hcx_delete') with self.command_group('vmware addon srm', vmware_sdk, client_factory=cf_vmware) as g: g.custom_command('create', 'addon_srm_create') - g.custom_command('show', 'addon_srm_show') + g.custom_show_command('show', 'addon_srm_show') g.custom_command('update', 'addon_srm_update') g.custom_command('delete', 'addon_srm_delete') From ae4848156b891c40afc9d1415b6b5c41a2817786 Mon Sep 17 00:00:00 2001 From: Cameron Taggart Date: Thu, 3 Jun 2021 18:45:40 -0700 Subject: [PATCH 12/18] fix flake8 --- src/vmware/azext_vmware/custom.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/vmware/azext_vmware/custom.py b/src/vmware/azext_vmware/custom.py index e53fb7acfc4..69a3de29189 100644 --- a/src/vmware/azext_vmware/custom.py +++ b/src/vmware/azext_vmware/custom.py @@ -196,25 +196,26 @@ def datastore_show(cmd, client: AVSClient, resource_group_name, private_cloud, c def datastore_delete(cmd, client: AVSClient, resource_group_name, private_cloud, cluster, name): return client.datastores.begin_delete(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=cluster, datastore_name=name) + def addon_list(cmd, client: AVSClient, resource_group_name, private_cloud): return client.addons.list(resource_group_name=resource_group_name, private_cloud_name=private_cloud) def addon_vr_create(cmd, client: AVSClient, resource_group_name, private_cloud, vrs_count: int): from azext_vmware.vendored_sdks.avs_client.models import Addon, AddonVrProperties - properties=AddonVrProperties(vrs_count=vrs_count) + properties = AddonVrProperties(vrs_count=vrs_count) return client.addons.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="vr", properties=properties) def addon_hcx_create(cmd, client: AVSClient, resource_group_name, private_cloud, offer: str): from azext_vmware.vendored_sdks.avs_client.models import Addon, AddonHcxProperties - properties=AddonHcxProperties(offer=offer) + properties = AddonHcxProperties(offer=offer) return client.addons.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="hcx", properties=properties) def addon_srm_create(cmd, client: AVSClient, resource_group_name, private_cloud, license_key: str): from azext_vmware.vendored_sdks.avs_client.models import Addon, AddonSrmProperties - properties=AddonSrmProperties(license_key=license_key) + properties = AddonSrmProperties(license_key=license_key) return client.addons.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="srm", properties=properties) @@ -232,19 +233,19 @@ def addon_srm_show(cmd, client: AVSClient, resource_group_name, private_cloud): def addon_vr_update(cmd, client: AVSClient, resource_group_name, private_cloud, vrs_count: int): from azext_vmware.vendored_sdks.avs_client.models import Addon, AddonVrProperties - properties=AddonVrProperties(vrs_count=vrs_count) + properties = AddonVrProperties(vrs_count=vrs_count) return client.addons.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="vr", properties=properties) def addon_hcx_update(cmd, client: AVSClient, resource_group_name, private_cloud, offer: str): from azext_vmware.vendored_sdks.avs_client.models import Addon, AddonHcxProperties - properties=AddonHcxProperties(offer=offer) + properties = AddonHcxProperties(offer=offer) return client.addons.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="hcx", properties=properties) def addon_srm_update(cmd, client: AVSClient, resource_group_name, private_cloud, license_key: str): from azext_vmware.vendored_sdks.avs_client.models import Addon, AddonSrmProperties - properties=AddonSrmProperties(license_key=license_key) + properties = AddonSrmProperties(license_key=license_key) return client.addons.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="srm", properties=properties) From 733444aa51969034ff1bca3194671ac5cf05f91b Mon Sep 17 00:00:00 2001 From: Cameron Taggart Date: Fri, 4 Jun 2021 13:54:47 -0700 Subject: [PATCH 13/18] hcx tests --- .../latest/recordings/test_vmware_hcx.yaml | 1119 +++++++++++++++-- .../tests/latest/test_hcx_scenario.py | 27 +- 2 files changed, 1056 insertions(+), 90 deletions(-) diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml index c5d17bcad19..92294a09967 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml @@ -23,7 +23,7 @@ interactions: x-client-Ver: - 1.2.3 method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' @@ -39,13 +39,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 03 Jun 2021 22:26:16 GMT + - Fri, 04 Jun 2021 20:47:25 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AqSO25wOgqpBnLuBKk4fIs4; expires=Sat, 03-Jul-2021 22:26:16 GMT; path=/; + - fpc=Av89MEb4STpCrAwDkrweVHI; expires=Sun, 04-Jul-2021 20:47:26 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr2E7BkXLN7GZZUqAW7XrppQ9yajIaHweE_C9SGYoyjfBcF40-Sq6iMl0veYEKXoXzsJHcifnhkjkXQxCmVokQIFhoKV0RT__nFq9nywH9GKYNl9sMetqvBPDz7xS8dPu2HCOwzNn4X4mc2vW6vavOj5P7Mom4LmnT8TJaKBZ5xJMgAA; + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrpykcMjdTlSALJN7grLCyywaReickhAU1aDPAhiOqtHxzuTfBeOTDL1sLKBLJwM9YNzvhFwJRnCk0O-vuWFydXOgYZo8s5pjIJKDCqLZxl87RxkUXK2HLcE-POsV-H0CFtgJr9gwTx0HunBGTU-eRXZ98vYCSknVXjwng0_ZvMyIgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -81,13 +81,13 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"westcentralus","name":"cloud1","properties":{"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost18.mp01.mock01.vmcp.vs.management","gp-fakehost12.mp01.mock01.vmcp.vs.management"],"provisioningState":"Building"},"managementNetwork":"192.168.48.0/26","networkBlock":"192.168.48.0/22","provisioningNetwork":"192.168.50.0/25","provisioningState":"Building","vmotionNetwork":"192.168.49.128/25"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"westcentralus","name":"cloud1","properties":{"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost29.mp01.mock01.vmcp.vs.management","gp-fakehost26.mp01.mock01.vmcp.vs.management","gp-fakehost23.mp01.mock01.vmcp.vs.management"],"provisioningState":"Building"},"managementNetwork":"192.168.48.0/26","networkBlock":"192.168.48.0/22","provisioningNetwork":"192.168.50.0/25","provisioningState":"Building","vmotionNetwork":"192.168.49.128/25"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' headers: azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf?api-version=2021-06-01 + - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c?api-version=2021-06-01 cache-control: - no-cache content-length: @@ -95,7 +95,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 03 Jun 2021 22:26:29 GMT + - Fri, 04 Jun 2021 20:47:34 GMT expires: - '-1' pragma: @@ -107,9 +107,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' x-msedge-ref: - - 'Ref A: 431A097792C3411C90C07EA44BF54933 Ref B: PDX31EDGE0108 Ref C: 2021-06-03T22:26:17Z' + - 'Ref A: F65592E081E84BBABACD849AE30059E9 Ref B: PDX31EDGE0111 Ref C: 2021-06-04T20:47:28Z' status: code: 201 message: Created @@ -130,10 +130,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf?api-version=2021-06-01 + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf","name":"04d1c3b3-364d-4750-a15b-1454113509bf","percentComplete":0,"startTime":"2021-06-03T22:26:27.5613360+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c","name":"8799968a-d37f-4faf-a862-205936e3f76c","percentComplete":0,"startTime":"2021-06-04T20:47:28.4741907+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -142,7 +142,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 03 Jun 2021 22:26:39 GMT + - Fri, 04 Jun 2021 20:47:44 GMT expires: - '-1' pragma: @@ -154,7 +154,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 8E2B85DDFFA1486695E47CF6730D9AD5 Ref B: PDX31EDGE0108 Ref C: 2021-06-03T22:26:39Z' + - 'Ref A: 50479F585605401EA6C381F2A1C74FDC Ref B: PDX31EDGE0111 Ref C: 2021-06-04T20:47:45Z' status: code: 200 message: OK @@ -175,10 +175,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf?api-version=2021-06-01 + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf","name":"04d1c3b3-364d-4750-a15b-1454113509bf","percentComplete":0,"startTime":"2021-06-03T22:26:27.5613360+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c","name":"8799968a-d37f-4faf-a862-205936e3f76c","percentComplete":0,"startTime":"2021-06-04T20:47:28.4741907+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -187,7 +187,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 03 Jun 2021 22:26:50 GMT + - Fri, 04 Jun 2021 20:47:54 GMT expires: - '-1' pragma: @@ -199,7 +199,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: B969E803CFBC4D70970F706962F03BD8 Ref B: PDX31EDGE0108 Ref C: 2021-06-03T22:26:50Z' + - 'Ref A: DBF9EDFC2D38420F91926977935481A8 Ref B: PDX31EDGE0111 Ref C: 2021-06-04T20:47:55Z' status: code: 200 message: OK @@ -220,10 +220,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf?api-version=2021-06-01 + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf","name":"04d1c3b3-364d-4750-a15b-1454113509bf","percentComplete":88.75,"startTime":"2021-06-03T22:26:27.5613360+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c","name":"8799968a-d37f-4faf-a862-205936e3f76c","percentComplete":88.75,"startTime":"2021-06-04T20:47:28.4741907+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -232,7 +232,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 03 Jun 2021 22:27:00 GMT + - Fri, 04 Jun 2021 20:48:04 GMT expires: - '-1' pragma: @@ -244,7 +244,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 6410BBF6172444C3A5B012993F1D18BF Ref B: PDX31EDGE0108 Ref C: 2021-06-03T22:27:00Z' + - 'Ref A: F7CE87EE5B184BADBD8EEC74512D1692 Ref B: PDX31EDGE0111 Ref C: 2021-06-04T20:48:05Z' status: code: 200 message: OK @@ -265,10 +265,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf?api-version=2021-06-01 + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf","name":"04d1c3b3-364d-4750-a15b-1454113509bf","percentComplete":88.75,"startTime":"2021-06-03T22:26:27.5613360+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c","name":"8799968a-d37f-4faf-a862-205936e3f76c","percentComplete":88.75,"startTime":"2021-06-04T20:47:28.4741907+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -277,7 +277,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 03 Jun 2021 22:27:10 GMT + - Fri, 04 Jun 2021 20:48:15 GMT expires: - '-1' pragma: @@ -289,7 +289,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 69DF69BDE2AF4187924532F74F5DE4AC Ref B: PDX31EDGE0108 Ref C: 2021-06-03T22:27:11Z' + - 'Ref A: D62C34FDFB3C4EE2AF0DAA822FC7EFE5 Ref B: PDX31EDGE0111 Ref C: 2021-06-04T20:48:15Z' status: code: 200 message: OK @@ -310,10 +310,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf?api-version=2021-06-01 + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf","name":"04d1c3b3-364d-4750-a15b-1454113509bf","percentComplete":100,"startTime":"2021-06-03T22:26:27.5613360+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c","name":"8799968a-d37f-4faf-a862-205936e3f76c","percentComplete":100,"startTime":"2021-06-04T20:47:28.4741907+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -322,7 +322,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 03 Jun 2021 22:27:21 GMT + - Fri, 04 Jun 2021 20:48:25 GMT expires: - '-1' pragma: @@ -334,7 +334,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 2061B558D3C14D4E910D1F7585F6E8D7 Ref B: PDX31EDGE0108 Ref C: 2021-06-03T22:27:21Z' + - 'Ref A: F5912C70FB214AA5BFF35779B9F83B2D Ref B: PDX31EDGE0111 Ref C: 2021-06-04T20:48:26Z' status: code: 200 message: OK @@ -355,10 +355,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf?api-version=2021-06-01 + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf","name":"04d1c3b3-364d-4750-a15b-1454113509bf","percentComplete":100,"startTime":"2021-06-03T22:26:27.5613360+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c","name":"8799968a-d37f-4faf-a862-205936e3f76c","percentComplete":100,"startTime":"2021-06-04T20:47:28.4741907+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -367,7 +367,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 03 Jun 2021 22:27:31 GMT + - Fri, 04 Jun 2021 20:48:35 GMT expires: - '-1' pragma: @@ -379,7 +379,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 304D7F804FBF41AE9F1BC0D42962C98F Ref B: PDX31EDGE0108 Ref C: 2021-06-03T22:27:31Z' + - 'Ref A: 30BF35C47A534657883BFF79DCFA96DB Ref B: PDX31EDGE0111 Ref C: 2021-06-04T20:48:36Z' status: code: 200 message: OK @@ -400,10 +400,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf?api-version=2021-06-01 + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf","name":"04d1c3b3-364d-4750-a15b-1454113509bf","percentComplete":100,"startTime":"2021-06-03T22:26:27.5613360+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c","name":"8799968a-d37f-4faf-a862-205936e3f76c","percentComplete":100,"startTime":"2021-06-04T20:47:28.4741907+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -412,7 +412,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 03 Jun 2021 22:27:41 GMT + - Fri, 04 Jun 2021 20:48:45 GMT expires: - '-1' pragma: @@ -424,7 +424,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: CD0ABF28B2724848A34620936D43C41E Ref B: PDX31EDGE0108 Ref C: 2021-06-03T22:27:41Z' + - 'Ref A: 7EB6A35CA25C4EEBBBAE53230C6886EC Ref B: PDX31EDGE0111 Ref C: 2021-06-04T20:48:46Z' status: code: 200 message: OK @@ -445,10 +445,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf?api-version=2021-06-01 + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf","name":"04d1c3b3-364d-4750-a15b-1454113509bf","percentComplete":100,"startTime":"2021-06-03T22:26:27.5613360+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c","name":"8799968a-d37f-4faf-a862-205936e3f76c","percentComplete":100,"startTime":"2021-06-04T20:47:28.4741907+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -457,7 +457,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 03 Jun 2021 22:27:51 GMT + - Fri, 04 Jun 2021 20:48:56 GMT expires: - '-1' pragma: @@ -469,7 +469,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 451E367B28F74820BA79547C365F76CF Ref B: PDX31EDGE0108 Ref C: 2021-06-03T22:27:52Z' + - 'Ref A: F5E70D4E76B84E94A53BF91C2B9BBB52 Ref B: PDX31EDGE0111 Ref C: 2021-06-04T20:48:56Z' status: code: 200 message: OK @@ -490,10 +490,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf?api-version=2021-06-01 + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf","name":"04d1c3b3-364d-4750-a15b-1454113509bf","percentComplete":100,"startTime":"2021-06-03T22:26:27.5613360+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c","name":"8799968a-d37f-4faf-a862-205936e3f76c","percentComplete":100,"startTime":"2021-06-04T20:47:28.4741907+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -502,7 +502,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 03 Jun 2021 22:28:02 GMT + - Fri, 04 Jun 2021 20:49:06 GMT expires: - '-1' pragma: @@ -514,7 +514,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: FAD9939452D9460386B7F00E203BBD71 Ref B: PDX31EDGE0108 Ref C: 2021-06-03T22:28:02Z' + - 'Ref A: 8B22556FAF3941DD85129FC022D3956F Ref B: PDX31EDGE0111 Ref C: 2021-06-04T20:49:07Z' status: code: 200 message: OK @@ -535,10 +535,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf?api-version=2021-06-01 + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf","name":"04d1c3b3-364d-4750-a15b-1454113509bf","percentComplete":100,"startTime":"2021-06-03T22:26:27.5613360+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c","name":"8799968a-d37f-4faf-a862-205936e3f76c","percentComplete":100,"startTime":"2021-06-04T20:47:28.4741907+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -547,7 +547,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 03 Jun 2021 22:28:12 GMT + - Fri, 04 Jun 2021 20:49:16 GMT expires: - '-1' pragma: @@ -559,7 +559,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 12C1F4121F48479BB0CBB759A085DB32 Ref B: PDX31EDGE0108 Ref C: 2021-06-03T22:28:12Z' + - 'Ref A: 7EEF89A78A9F40968E42957C1C2D266F Ref B: PDX31EDGE0111 Ref C: 2021-06-04T20:49:17Z' status: code: 200 message: OK @@ -580,10 +580,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf?api-version=2021-06-01 + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf","name":"04d1c3b3-364d-4750-a15b-1454113509bf","percentComplete":100,"startTime":"2021-06-03T22:26:27.5613360+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c","name":"8799968a-d37f-4faf-a862-205936e3f76c","percentComplete":100,"startTime":"2021-06-04T20:47:28.4741907+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -592,7 +592,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 03 Jun 2021 22:28:22 GMT + - Fri, 04 Jun 2021 20:49:26 GMT expires: - '-1' pragma: @@ -604,7 +604,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 37C3DB4A93B140CF87AFEE5F55200836 Ref B: PDX31EDGE0108 Ref C: 2021-06-03T22:28:22Z' + - 'Ref A: E1DD2DC54B454DEEB9750D76E7C6059F Ref B: PDX31EDGE0111 Ref C: 2021-06-04T20:49:27Z' status: code: 200 message: OK @@ -625,10 +625,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf?api-version=2021-06-01 + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf","name":"04d1c3b3-364d-4750-a15b-1454113509bf","percentComplete":100,"startTime":"2021-06-03T22:26:27.5613360+00:00","status":"Building"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c","name":"8799968a-d37f-4faf-a862-205936e3f76c","percentComplete":100,"startTime":"2021-06-04T20:47:28.4741907+00:00","status":"Building"}' headers: cache-control: - no-cache @@ -637,7 +637,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 03 Jun 2021 22:28:32 GMT + - Fri, 04 Jun 2021 20:49:37 GMT expires: - '-1' pragma: @@ -649,7 +649,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: 8FC23E1677BD48FAA79E56D6A46CE973 Ref B: PDX31EDGE0108 Ref C: 2021-06-03T22:28:33Z' + - 'Ref A: 32C206FABEC641F2970FB35689C88C84 Ref B: PDX31EDGE0111 Ref C: 2021-06-04T20:49:37Z' status: code: 200 message: OK @@ -670,10 +670,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf?api-version=2021-06-01 + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c?api-version=2021-06-01 response: body: - string: '{"endTime":"2021-06-03T22:28:33.7965579+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/04d1c3b3-364d-4750-a15b-1454113509bf","name":"04d1c3b3-364d-4750-a15b-1454113509bf","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"westcentralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt64-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt64-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt64-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt64-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.48.232/30","secondarySubnet":"192.168.48.236/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost18.mp01.mock01.vmcp.vs.management","gp-fakehost12.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/26","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/25","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.128/25"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"},"startTime":"2021-06-03T22:26:27.5613360+00:00","status":"Succeeded"}' + string: '{"endTime":"2021-06-04T20:49:38.7927014+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c","name":"8799968a-d37f-4faf-a862-205936e3f76c","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"westcentralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt93-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt93-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt93-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt93-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.48.232/30","secondarySubnet":"192.168.48.236/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost29.mp01.mock01.vmcp.vs.management","gp-fakehost26.mp01.mock01.vmcp.vs.management","gp-fakehost23.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/26","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/25","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.128/25"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"},"startTime":"2021-06-04T20:47:28.4741907+00:00","status":"Succeeded"}' headers: cache-control: - no-cache @@ -682,7 +682,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 03 Jun 2021 22:28:43 GMT + - Fri, 04 Jun 2021 20:49:49 GMT expires: - '-1' pragma: @@ -694,7 +694,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: FE971AD8B42346899B56E07FC754981B Ref B: PDX31EDGE0108 Ref C: 2021-06-03T22:28:43Z' + - 'Ref A: 481BABE1BDE242FE9F87AE0262CA46A5 Ref B: PDX31EDGE0111 Ref C: 2021-06-04T20:49:48Z' status: code: 200 message: OK @@ -715,10 +715,10 @@ interactions: User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"westcentralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt64-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt64-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt64-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt64-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.48.232/30","secondarySubnet":"192.168.48.236/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost18.mp01.mock01.vmcp.vs.management","gp-fakehost12.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/26","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/25","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.128/25"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"westcentralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt93-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt93-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt93-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt93-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.48.232/30","secondarySubnet":"192.168.48.236/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost29.mp01.mock01.vmcp.vs.management","gp-fakehost26.mp01.mock01.vmcp.vs.management","gp-fakehost23.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/26","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/25","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.128/25"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' headers: cache-control: - no-cache @@ -727,7 +727,968 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 03 Jun 2021 22:28:43 GMT + - Fri, 04 Jun 2021 20:49:49 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 6C3239151D31471080BCA1D9F4A77256 Ref B: PDX31EDGE0111 Ref C: 2021-06-04T20:49:49Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.3 + method: GET + uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - max-age=86400, private + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 20:49:51 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AljdlyTyfspKnN_wMpTYKLg; expires=Sun, 04-Jul-2021 20:49:52 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrR51bU104JoVGEx4NZCFUx92HGTjJ7L_rIzSCP3ZcnbwnEOzgwyzLGUOW-XwXJEn_zqeLNY5pZPTObRI2CnZNYbzXlwjflYRb4Sk0jQ2Ul_lZLGBRyQF4jxgWIjkOgekFkmPnb8k0PTN3roSAeOAIe7MW_hW6NY2kqonkeEhc_JQgAA; + domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly + - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.11722.21 - NCUS ProdSlices + status: + code: 200 + message: OK +- request: + body: '{"properties": {"addonType": "HCX", "offer": "VMware MaaS Cloud Provider"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware addon hcx create + Connection: + - keep-alive + Content-Length: + - '75' + Content-Type: + - application/json + ParameterSetName: + - -g -c --offer + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons/hcx?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons/hcx","name":"hcx","properties":{"addonType":"HCX","offer":"VMware + MaaS Cloud Provider","provisioningState":"Building"},"type":"Microsoft.AVS/privateClouds/addons"}' + headers: + azure-asyncoperation: + - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons/hcx/operationstatuses/9f44e222-0450-4a61-94e8-7d3deafb7d16?api-version=2021-06-01 + cache-control: + - no-cache + content-length: + - '365' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 20:49:56 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-msedge-ref: + - 'Ref A: 2FFE7DDABDA143E9A32D846A8F4E7797 Ref B: PDX31EDGE0110 Ref C: 2021-06-04T20:49:54Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware addon hcx create + Connection: + - keep-alive + ParameterSetName: + - -g -c --offer + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons/hcx/operationstatuses/9f44e222-0450-4a61-94e8-7d3deafb7d16?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons/hcx/operationstatuses/9f44e222-0450-4a61-94e8-7d3deafb7d16","name":"9f44e222-0450-4a61-94e8-7d3deafb7d16","percentComplete":25,"startTime":"2021-06-04T20:49:51.5280087+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '397' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 20:50:07 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: A6DEFCC2809847FCA1AE160EA8EB220B Ref B: PDX31EDGE0110 Ref C: 2021-06-04T20:50:07Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware addon hcx create + Connection: + - keep-alive + ParameterSetName: + - -g -c --offer + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons/hcx/operationstatuses/9f44e222-0450-4a61-94e8-7d3deafb7d16?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons/hcx/operationstatuses/9f44e222-0450-4a61-94e8-7d3deafb7d16","name":"9f44e222-0450-4a61-94e8-7d3deafb7d16","percentComplete":0,"startTime":"2021-06-04T20:49:51.5280087+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '396' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 20:50:17 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 342CCD8E3A1D487284793F5A802610BD Ref B: PDX31EDGE0110 Ref C: 2021-06-04T20:50:17Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware addon hcx create + Connection: + - keep-alive + ParameterSetName: + - -g -c --offer + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons/hcx/operationstatuses/9f44e222-0450-4a61-94e8-7d3deafb7d16?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons/hcx/operationstatuses/9f44e222-0450-4a61-94e8-7d3deafb7d16","name":"9f44e222-0450-4a61-94e8-7d3deafb7d16","percentComplete":50,"startTime":"2021-06-04T20:49:51.5280087+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '397' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 20:50:27 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 12BB443BC56149CEB5C8B4E173178DBC Ref B: PDX31EDGE0110 Ref C: 2021-06-04T20:50:28Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware addon hcx create + Connection: + - keep-alive + ParameterSetName: + - -g -c --offer + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons/hcx/operationstatuses/9f44e222-0450-4a61-94e8-7d3deafb7d16?api-version=2021-06-01 + response: + body: + string: '{"endTime":"2021-06-04T20:50:23.6911030+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons/hcx/operationstatuses/9f44e222-0450-4a61-94e8-7d3deafb7d16","name":"9f44e222-0450-4a61-94e8-7d3deafb7d16","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons/hcx","name":"hcx","properties":{"addonType":"HCX","offer":"VMware + MaaS Cloud Provider","provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/addons"},"startTime":"2021-06-04T20:49:51.5280087+00:00","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '825' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 20:50:37 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 047096156FCE4AA38C25E2647D994349 Ref B: PDX31EDGE0110 Ref C: 2021-06-04T20:50:38Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware addon hcx create + Connection: + - keep-alive + ParameterSetName: + - -g -c --offer + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons/hcx?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons/hcx","name":"hcx","properties":{"addonType":"HCX","offer":"VMware + MaaS Cloud Provider","provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/addons"}' + headers: + cache-control: + - no-cache + content-length: + - '366' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 20:50:37 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: FFDAFF65CF534F1392A274B3AC46A864 Ref B: PDX31EDGE0110 Ref C: 2021-06-04T20:50:38Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.3 + method: GET + uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - max-age=86400, private + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 20:50:40 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AilGX3jytwxNv0HFya5UWAg; expires=Sun, 04-Jul-2021 20:50:41 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr0xeWN09IaRY74CrEKI6Z0FpEGOtwuGx9wgmDZS6wMV6EQ1gEcV5Qdi-fnsGA6xgYPmAJk3f3FY30-CeQgAr2XGs1fYIPDck6VF_wEWGzy1YoIycGhU4pMiyMj6VrBQTd5zPcbjeE6JU_4TIiGP6rsEJ4gF5H-r-q0YPZcGMSGc4gAA; + domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly + - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.11722.21 - NCUS ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware addon list + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons?api-version=2021-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons/hcx","name":"hcx","properties":{"addonType":"HCX","offer":"VMware + MaaS Cloud Provider","provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/addons"}]}' + headers: + cache-control: + - no-cache + content-length: + - '378' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 20:50:44 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: E2EB7866377B43AA9D9680A2BD186960 Ref B: PDX31EDGE0108 Ref C: 2021-06-04T20:50:43Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.3 + method: GET + uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - max-age=86400, private + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 20:50:46 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AmWN7sC5pgJJlQZ_KUVjxT0; expires=Sun, 04-Jul-2021 20:50:46 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrmNUFBX-aJ4-HBCKSxDlMQWNiS2D2PbpuN8g8G8JN-JPO2e2nqkjcm61M-PdxL09IyOi0k5ekJhfdJ0HU0lu57JkBKPiWjg8usJKmUTxaH7BybIZBJ2RGeDETXSCBKi-GQvqAKiJ08Nqt-Mwmn5Fhh9fa4Uz1j8nGrTENiRlnJQYgAA; + domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly + - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.11722.21 - SCUS ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware hcx-enterprise-site list + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites?api-version=2021-06-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 20:50:49 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 5134F2F683AB41B79C616D1185330F7D Ref B: PDX31EDGE0121 Ref C: 2021-06-04T20:50:48Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.3 + method: GET + uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - max-age=86400, private + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 20:50:51 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Av74CRYTc25Bk6hotr9ND_I; expires=Sun, 04-Jul-2021 20:50:51 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr8tZEdo4066Ojo98k7mSxHXEbV1ev6IB02MiBgkQ7jXyqmO1QEXs7N48s9hGWTM7nVebQ2XZw-2BS-aoHwZRAQGTEGSRSE_UikUfHWdjLqzyGMPcJBuyVBcVMO6AIEPgUsFVYr4YdlQrS5cWFRdchKtcbcKyk2tG7YHrriU-nQdEgAA; + domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly + - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.11722.21 - NCUS ProdSlices + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware hcx-enterprise-site create + Connection: + - keep-alive + Content-Length: + - '2' + Content-Type: + - application/json + ParameterSetName: + - -g -c -n + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/myhcx?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/myhcx","name":"myhcx","properties":{"activationKey":"d85d1920606e47e899ad9886ded09317","status":"Available"},"type":"Microsoft.AVS/privateClouds/hcxEnterpriseSites"}' + headers: + cache-control: + - no-cache + content-length: + - '379' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 20:50:54 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1196' + x-msedge-ref: + - 'Ref A: 5EFA30EDE9314B9C88684A3DCA63E328 Ref B: PDX31EDGE0107 Ref C: 2021-06-04T20:50:54Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.3 + method: GET + uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - max-age=86400, private + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 20:50:56 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AuerVSNF0t1Cl-j3dWKQ19U; expires=Sun, 04-Jul-2021 20:50:57 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrWqvtDvi-EZqMIMFKFHBpH3DNRJhnGoAfZCnsdtS6JWAsr59OxJQNvBzmBjSGP9usg_gYBiDusyOwUPiA0W7p2ybZdfrDCPOPfDYH0Gocteohj_MgoBOQV3jm1-nefK4AN9LTbYoFMxzVWHs6GdIajRBs3Ihc6CUCIfXSmjg-5EwgAA; + domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly + - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.11722.21 - SCUS ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware hcx-enterprise-site list + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites?api-version=2021-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/myhcx","name":"myhcx","properties":{"activationKey":"d85d1920606e47e899ad9886ded09317","status":"Available"},"type":"Microsoft.AVS/privateClouds/hcxEnterpriseSites"}]}' + headers: + cache-control: + - no-cache + content-length: + - '391' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 20:50:59 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: B9535F7206B448F69EF0D924FAD0475D Ref B: PDX31EDGE0110 Ref C: 2021-06-04T20:50:59Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.3 + method: GET + uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - max-age=86400, private + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 20:51:02 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AvwAZLSU3eFJqD-LsoZCfpg; expires=Sun, 04-Jul-2021 20:51:02 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrBDmLg2fAL3sRkIZzZlPtgRlmQ5mXar8-NBlg_qpX6TstZLO2vzX6yLzSYtEfCh58qNRVrUuYQIACt2LXs0eQMjlrQJshcmFxnzj7gCIVfMnsTbqjkngjnEayPoVSyE-rMvrr__WGCq_YTUM899uNAtCW-XAowThiUwxGTUlvYuwgAA; + domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly + - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.11722.21 - WUS2 ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware hcx-enterprise-site show + Connection: + - keep-alive + ParameterSetName: + - -g -c -n + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/myhcx?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/myhcx","name":"myhcx","properties":{"activationKey":"d85d1920606e47e899ad9886ded09317","status":"Available"},"type":"Microsoft.AVS/privateClouds/hcxEnterpriseSites"}' + headers: + cache-control: + - no-cache + content-length: + - '379' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 20:51:05 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: DE12268D387F47EAB0B5554F8C013761 Ref B: PDX31EDGE0122 Ref C: 2021-06-04T20:51:04Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.3 + method: GET + uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - max-age=86400, private + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 20:51:07 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AsTIUS5RlkRFpbgFOUNG68I; expires=Sun, 04-Jul-2021 20:51:08 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrEPFIznp3NQJLimGUARENSdsdmY9bPwa6WDWdHc9gZWZCsIHWizv3DgcVcc1xtWB1DBvxb4U1rF72ETSOGzbpts-1gpWMooDaMdUKV3kB2v5lvlwGXJ1X1UqJvoCn3BtM5ABIFQr4420GtUXwz-m95eFQQS-uPJMFaUn4DgjnlDkgAA; + domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly + - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.11722.21 - WUS2 ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware hcx-enterprise-site delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -c -n + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/myhcx?api-version=2021-06-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + content-type: + - text/html + date: + - Fri, 04 Jun 2021 20:51:10 GMT expires: - '-1' pragma: @@ -738,8 +1699,10 @@ interactions: - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14998' x-msedge-ref: - - 'Ref A: 6BAA7AA47F6549098C1D51731EDF76A8 Ref B: PDX31EDGE0108 Ref C: 2021-06-03T22:28:43Z' + - 'Ref A: E53C14394A334675AA518649A6161B86 Ref B: PDX31EDGE0115 Ref C: 2021-06-04T20:51:10Z' status: code: 200 message: OK @@ -767,7 +1730,7 @@ interactions: x-client-Ver: - 1.2.3 method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' @@ -783,13 +1746,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 03 Jun 2021 22:28:44 GMT + - Fri, 04 Jun 2021 20:51:13 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=ArIzp7QvWYNLh2_FzcOyajs; expires=Sat, 03-Jul-2021 22:28:45 GMT; path=/; + - fpc=Aj8yZ8GrwmVDq9LXkoakPGA; expires=Sun, 04-Jul-2021 20:51:13 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrXum7S57AzN9GgPTwMCg-uub_KhsJ4KqBQFVF4t6zocVFMWfu3eLiGDWuSLhEtKkFlUynHZFSraYif03jJFQMMnbOLDAqe5fpD8jittKwrL3_45zsGnqEJQDoQ4uVRZK1B8n3_8bI4KmsKw0NoJmPMk7RvymyoZqegWnZm2mL0XogAA; + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevri_KslxqkfMpHbO4lwwtw2uL5XDtj4y_PkT4snJfk5jxQwCGqJQfeJPEOEihuWpFtfa-JD7sVrxb6po5vxRScKGzjXfHbt0_InpENxsKktFW-wO5r898BuntqZhilcIKIFOqFxCH651Zh8rMpg1NaV2Rcaz-OMAEbZw4Qmqhef6UgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -798,7 +1761,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11722.26 - NCUS ProdSlices + - 2.1.11787.14 - WUS2 ProdSlices status: code: 200 message: OK @@ -810,27 +1773,27 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - vmware private-cloud list + - vmware hcx-enterprise-site list Connection: - keep-alive ParameterSetName: - - -g + - -g -c User-Agent: - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds?api-version=2021-06-01 + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites?api-version=2021-06-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"westcentralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt64-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt64-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt64-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt64-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.48.232/30","secondarySubnet":"192.168.48.236/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost18.mp01.mock01.vmcp.vs.management","gp-fakehost12.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/26","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/25","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.128/25"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}]}' + string: '{"value":[]}' headers: cache-control: - no-cache content-length: - - '1631' + - '12' content-type: - application/json; charset=utf-8 date: - - Thu, 03 Jun 2021 22:28:46 GMT + - Fri, 04 Jun 2021 20:51:15 GMT expires: - '-1' pragma: @@ -842,7 +1805,7 @@ interactions: x-content-type-options: - nosniff x-msedge-ref: - - 'Ref A: C88C8167222B44459B7B077E116488AB Ref B: PDX31EDGE0115 Ref C: 2021-06-03T22:28:45Z' + - 'Ref A: AF004BCE885E437CA041E26FE6A8FC2E Ref B: PDX31EDGE0114 Ref C: 2021-06-04T20:51:15Z' status: code: 200 message: OK diff --git a/src/vmware/azext_vmware/tests/latest/test_hcx_scenario.py b/src/vmware/azext_vmware/tests/latest/test_hcx_scenario.py index a68e466dbe9..576e33da42e 100644 --- a/src/vmware/azext_vmware/tests/latest/test_hcx_scenario.py +++ b/src/vmware/azext_vmware/tests/latest/test_hcx_scenario.py @@ -25,25 +25,28 @@ def test_vmware_hcx(self): # create a private cloud self.cmd('vmware private-cloud create -g {rg} -n {privatecloud} --location {loc} --sku av20 --cluster-size 4 --network-block 192.168.48.0/22 --nsxt-password 5rqdLj4GF3cePUe6( --vcenter-password UpfBXae9ZquZSDXk( --accept-eula') - count = len(self.cmd('vmware private-cloud list -g {rg}').get_output_in_json()) - self.assertEqual(count, 1, 'private cloud count expected to be 1') + # Create a HCX addon + self.cmd('az vmware addon hcx create -g {rg} -c {privatecloud} --offer "VMware MaaS Cloud Provider"') + + # List all existing addon + count = len(self.cmd('vmware addon list -g {rg} -c {privatecloud}').get_output_in_json()) + self.assertEqual(count, 1, 'addon count expected to be 1') # hcx-enterprise-site list should report 0 - # count = len(self.cmd('vmware hcx-enterprise-site list -g {rg} -c {privatecloud}').get_output_in_json()) - # self.assertEqual(count, 0, 'hcx-enterprise-site count expected to be 0') + count = len(self.cmd('vmware hcx-enterprise-site list -g {rg} -c {privatecloud}').get_output_in_json()) + self.assertEqual(count, 0, 'hcx-enterprise-site count expected to be 0') # create authorization - # self.cmd('vmware hcx-enterprise-site create -g {rg} -c {privatecloud} -n myhcx') + self.cmd('vmware hcx-enterprise-site create -g {rg} -c {privatecloud} -n myhcx') # hcx-enterprise-site list should report 1 - # count = len(self.cmd('vmware hcx-enterprise-site list -g {rg} -c {privatecloud}').get_output_in_json()) - # self.assertEqual(count, 1, 'hcx-enterprise-site count expected to be 0') + count = len(self.cmd('vmware hcx-enterprise-site list -g {rg} -c {privatecloud}').get_output_in_json()) + self.assertEqual(count, 1, 'hcx-enterprise-site count expected to be 0') - # self.cmd('vmware hcx-enterprise-site show -g {rg} -c {privatecloud} -n myhcx') + self.cmd('vmware hcx-enterprise-site show -g {rg} -c {privatecloud} -n myhcx') - # self.cmd('vmware hcx-enterprise-site delete -g {rg} -c {privatecloud} -n myhcx') + self.cmd('vmware hcx-enterprise-site delete -g {rg} -c {privatecloud} -n myhcx') - # bug 7470537 # hcx-enterprise-site list should report 0 - # count = len(self.cmd('vmware hcx-enterprise-site list -g {rg} -c {privatecloud}').get_output_in_json()) - # self.assertEqual(count, 0, 'hcx-enterprise-site count expected to be 0') + count = len(self.cmd('vmware hcx-enterprise-site list -g {rg} -c {privatecloud}').get_output_in_json()) + self.assertEqual(count, 0, 'hcx-enterprise-site count expected to be 0') From e56d2e1d227100c126d16c302598b960ce1cf938 Mon Sep 17 00:00:00 2001 From: Cameron Taggart Date: Fri, 4 Jun 2021 14:05:49 -0700 Subject: [PATCH 14/18] rename to netapp-volume --- src/vmware/CHANGELOG.md | 2 +- src/vmware/azext_vmware/_help.py | 12 ++++++------ src/vmware/azext_vmware/_params.py | 2 +- src/vmware/azext_vmware/commands.py | 2 +- src/vmware/azext_vmware/custom.py | 2 +- .../tests/latest/test_datastores_scenario.py | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/vmware/CHANGELOG.md b/src/vmware/CHANGELOG.md index f6d6692f6a0..4bba601f84a 100644 --- a/src/vmware/CHANGELOG.md +++ b/src/vmware/CHANGELOG.md @@ -2,7 +2,7 @@ ## 3.0.0 (2021-06) This version has **breaking changes**: -- `az vmware datastore create` has been removed. Please use `az vmware datastore net-app-volume create` or `az vmware datastore disk-pool-volume create` instead. +- `az vmware datastore create` has been removed. Please use `az vmware datastore netapp-volume create` or `az vmware datastore disk-pool-volume create` instead. Other changes: - update to AVS 2021-06-01 API diff --git a/src/vmware/azext_vmware/_help.py b/src/vmware/azext_vmware/_help.py index 826d07b2a5b..ecda202e798 100644 --- a/src/vmware/azext_vmware/_help.py +++ b/src/vmware/azext_vmware/_help.py @@ -195,30 +195,30 @@ helps['vmware datastore create'] = """ type: command - short-summary: Please use "net-app-volume create" or "disk-pool-volume create" instead. + short-summary: Please use "netapp-volume create" or "disk-pool-volume create" instead. """ -helps['vmware datastore net-app-volume'] = """ +helps['vmware datastore netapp-volume'] = """ type: group short-summary: Create a new Microsoft.NetApp provided NetApp volume in a private cloud cluster. """ -helps['vmware datastore net-app-volume create'] = """ +helps['vmware datastore netapp-volume create'] = """ type: command short-summary: Create a new Microsoft.NetApp provided NetApp volume in a private cloud cluster. examples: - name: Create a new Microsoft.NetApp provided NetApp volume based NFSv3 datastore. - text: az vmware datastore net-app-volume create --name ANFDatastore1 --resource-group MyResourceGroup --cluster Cluster-1 --private-cloud MyPrivateCloud --volume-id /subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/ResourceGroup1/providers/Microsoft.NetApp/netAppAccounts/NetAppAccount1/capacityPools/CapacityPool1/volumes/NFSVol1 + text: az vmware datastore netapp-volume create --name ANFDatastore1 --resource-group MyResourceGroup --cluster Cluster-1 --private-cloud MyPrivateCloud --volume-id /subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/ResourceGroup1/providers/Microsoft.NetApp/netAppAccounts/NetAppAccount1/capacityPools/CapacityPool1/volumes/NFSVol1 """ helps['vmware datastore disk-pool-volume'] = """ type: group - short-summary: Create a new Microsoft.StoragePool provided disk pool based iSCSI datastore in a private cloud cluster. + short-summary: Create a VMFS datastore in a private cloud cluster using Microsoft.StoragePool provided iSCSI target. """ helps['vmware datastore disk-pool-volume create'] = """ type: command - short-summary: Create a new Microsoft.StoragePool provided disk pool based iSCSI datastore in a private cloud cluster. + short-summary: Create a VMFS datastore in a private cloud cluster using Microsoft.StoragePool provided iSCSI target. examples: - name: Create a new Microsoft.StoragePool provided disk pool based iSCSI datastore. text: az vmware datastore disk-pool-volume create --name iSCSIDatastore1 --resource-group MyResourceGroup --cluster Cluster-1 --private-cloud MyPrivateCloud --target-id /subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/ResourceGroup1/providers/Microsoft.StoragePool/diskPools/mpio-diskpool/iscsiTargets/mpio-iscsi-target --lun-name lun0 diff --git a/src/vmware/azext_vmware/_params.py b/src/vmware/azext_vmware/_params.py index 7bef9fb4873..c0119f22bef 100644 --- a/src/vmware/azext_vmware/_params.py +++ b/src/vmware/azext_vmware/_params.py @@ -81,7 +81,7 @@ def load_arguments(self, _): c.argument('nfs_file_path', help='File path through which the NFS volume is exposed by the provider.') c.argument('endpoints', nargs='*', help='iSCSI provider target IP address list.') - with self.argument_context('vmware datastore net-app-volume create') as c: + with self.argument_context('vmware datastore netapp-volume create') as c: c.argument('volume_id', help='Azure resource ID of the NetApp volume.') with self.argument_context('vmware datastore disk-pool-volume create') as c: diff --git a/src/vmware/azext_vmware/commands.py b/src/vmware/azext_vmware/commands.py index cff8688abbf..a6f274f2cbf 100644 --- a/src/vmware/azext_vmware/commands.py +++ b/src/vmware/azext_vmware/commands.py @@ -54,7 +54,7 @@ def load_command_table(self, _): g.custom_show_command('show', 'datastore_show') g.custom_command('delete', 'datastore_delete') - with self.command_group('vmware datastore net-app-volume', vmware_sdk, client_factory=cf_vmware) as g: + with self.command_group('vmware datastore netapp-volume', vmware_sdk, client_factory=cf_vmware) as g: g.custom_command('create', 'datastore_netappvolume_create') with self.command_group('vmware datastore disk-pool-volume', vmware_sdk, client_factory=cf_vmware) as g: diff --git a/src/vmware/azext_vmware/custom.py b/src/vmware/azext_vmware/custom.py index 69a3de29189..6b9e61100ea 100644 --- a/src/vmware/azext_vmware/custom.py +++ b/src/vmware/azext_vmware/custom.py @@ -170,7 +170,7 @@ def hcxenterprisesite_delete(cmd, client: AVSClient, resource_group_name, privat def datastore_create(cmd, client: AVSClient, resource_group_name, private_cloud, cluster, name, nfs_provider_ip=None, nfs_file_path=None, endpoints=[], lun_name=None): - print('Please use "az vmware datastore net-app-volume create" or "az vmware datastore disk-pool-volume create" instead.') + print('Please use "az vmware datastore netapp-volume create" or "az vmware datastore disk-pool-volume create" instead.') def datastore_netappvolume_create(cmd, client: AVSClient, resource_group_name, private_cloud, cluster, name, volume_id): diff --git a/src/vmware/azext_vmware/tests/latest/test_datastores_scenario.py b/src/vmware/azext_vmware/tests/latest/test_datastores_scenario.py index 779a269553a..528bd1cd3f0 100644 --- a/src/vmware/azext_vmware/tests/latest/test_datastores_scenario.py +++ b/src/vmware/azext_vmware/tests/latest/test_datastores_scenario.py @@ -40,7 +40,7 @@ def test_vmware_datastores(self): self.cmd('az vmware datastore list --resource-group {rg} --private-cloud {privatecloud} --cluster {cluster}') # Create a new ANF based datastore - # self.cmd('az vmware datastore net-app-volume create --name ANFDatastore1 --resource-group {rg} --private-cloud {privatecloud} --cluster {cluster} --volume-id {volume_id}') + # self.cmd('az vmware datastore netapp-volume create --name ANFDatastore1 --resource-group {rg} --private-cloud {privatecloud} --cluster {cluster} --volume-id {volume_id}') # "ANF datastore is not enabled for the cloud SAN version 'v1' # Get the newly created ANF based datastore From db4dbed4dd47542d7da7cb76088e0331997bb8fd Mon Sep 17 00:00:00 2001 From: Cameron Taggart Date: Fri, 4 Jun 2021 14:13:21 -0700 Subject: [PATCH 15/18] add addon to changelog --- src/vmware/CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/vmware/CHANGELOG.md b/src/vmware/CHANGELOG.md index 4bba601f84a..27c1b251e7b 100644 --- a/src/vmware/CHANGELOG.md +++ b/src/vmware/CHANGELOG.md @@ -8,6 +8,10 @@ Other changes: - update to AVS 2021-06-01 API - add `az vmware private-cloud rotate-vcenter-password` - add `az vmware private-cloud rotate-nsxt-password` +- add `az vmware addon` command group +- add `az vmware addon hcx` command group to manage a HCX addon +- add `az vmware addon srm` command group to manage a Site Recovery Manager (SRM) addon +- add `az vmware addon vr` command group to manage a vSphere Replication (VR) addon ## 2.0.1 (2021-02) - Update the minimum az cli version to 2.11.0 [#3045](https://github.com/Azure/azure-cli-extensions/issues/3045) From 5c05ebdbecd7edef52947eac5ea456c2406d9d34 Mon Sep 17 00:00:00 2001 From: Cameron Taggart Date: Tue, 8 Jun 2021 09:52:02 -0600 Subject: [PATCH 16/18] format as [BREAKING CHANGE] in CHANGELOG.md Co-authored-by: Xing Zhou --- src/vmware/CHANGELOG.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/vmware/CHANGELOG.md b/src/vmware/CHANGELOG.md index 27c1b251e7b..7bfaf222662 100644 --- a/src/vmware/CHANGELOG.md +++ b/src/vmware/CHANGELOG.md @@ -1,8 +1,7 @@ # Release History ## 3.0.0 (2021-06) -This version has **breaking changes**: -- `az vmware datastore create` has been removed. Please use `az vmware datastore netapp-volume create` or `az vmware datastore disk-pool-volume create` instead. +- [BREAKING CHANGE] `az vmware datastore create` has been removed. Please use `az vmware datastore netapp-volume create` or `az vmware datastore disk-pool-volume create` instead. Other changes: - update to AVS 2021-06-01 API @@ -83,4 +82,4 @@ Add command for managing HCX Enterprise Sites for a private cloud: ## 0.2.0 (2019-07-16) - initial preview release -- see archived [az-vmware-cli releases](https://github.com/Azure/az-vmware-cli/releases) \ No newline at end of file +- see archived [az-vmware-cli releases](https://github.com/Azure/az-vmware-cli/releases) From 7b76b730c60a9fd10844a097901308d4f379c766 Mon Sep 17 00:00:00 2001 From: Cameron Taggart Date: Tue, 8 Jun 2021 10:09:51 -0600 Subject: [PATCH 17/18] capitalize other changes --- src/vmware/CHANGELOG.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/vmware/CHANGELOG.md b/src/vmware/CHANGELOG.md index 7bfaf222662..afacacd5707 100644 --- a/src/vmware/CHANGELOG.md +++ b/src/vmware/CHANGELOG.md @@ -4,13 +4,13 @@ - [BREAKING CHANGE] `az vmware datastore create` has been removed. Please use `az vmware datastore netapp-volume create` or `az vmware datastore disk-pool-volume create` instead. Other changes: -- update to AVS 2021-06-01 API -- add `az vmware private-cloud rotate-vcenter-password` -- add `az vmware private-cloud rotate-nsxt-password` -- add `az vmware addon` command group -- add `az vmware addon hcx` command group to manage a HCX addon -- add `az vmware addon srm` command group to manage a Site Recovery Manager (SRM) addon -- add `az vmware addon vr` command group to manage a vSphere Replication (VR) addon +- Update to AVS 2021-06-01 API +- Add `az vmware private-cloud rotate-vcenter-password` +- Add `az vmware private-cloud rotate-nsxt-password` +- Add `az vmware addon` command group +- Add `az vmware addon hcx` command group to manage a HCX addon +- Add `az vmware addon srm` command group to manage a Site Recovery Manager (SRM) addon +- Add `az vmware addon vr` command group to manage a vSphere Replication (VR) addon ## 2.0.1 (2021-02) - Update the minimum az cli version to 2.11.0 [#3045](https://github.com/Azure/azure-cli-extensions/issues/3045) From ab541ff8a987f945b0fe093aec7bd8a3f59b1481 Mon Sep 17 00:00:00 2001 From: Cameron Taggart Date: Tue, 8 Jun 2021 10:11:00 -0600 Subject: [PATCH 18/18] add deprecate_info to datastore_create --- src/vmware/azext_vmware/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vmware/azext_vmware/commands.py b/src/vmware/azext_vmware/commands.py index a6f274f2cbf..e47c3516b27 100644 --- a/src/vmware/azext_vmware/commands.py +++ b/src/vmware/azext_vmware/commands.py @@ -49,7 +49,7 @@ def load_command_table(self, _): g.custom_command('checktrialavailability', 'check_trial_availability') with self.command_group('vmware datastore', vmware_sdk, client_factory=cf_vmware) as g: - g.custom_command('create', 'datastore_create') + g.custom_command('create', 'datastore_create', deprecate_info=g.deprecate(redirect='"az vmware datastore netapp-volume create" or "az vmware datastore disk-pool-volume create"', hide=True)) g.custom_command('list', 'datastore_list') g.custom_show_command('show', 'datastore_show') g.custom_command('delete', 'datastore_delete')