From f0d9f884aa8ef927a766e593a9d3232d3ad9a99a Mon Sep 17 00:00:00 2001 From: Santosh Kumar Mishra <93mishra@gmail.com> Date: Thu, 21 Oct 2021 15:05:07 +0530 Subject: [PATCH] Update connectedvmware extension for public preview. (#3950) * Update connectedvmware extension for public preview. * Update src/connectedvmware/HISTORY.rst Co-authored-by: Xing Zhou * Update src/connectedvmware/azext_connectedvmware/_params.py Co-authored-by: Xing Zhou * Update src/connectedvmware/azext_connectedvmware/_params.py Co-authored-by: Xing Zhou * Update src/connectedvmware/azext_connectedvmware/_params.py Co-authored-by: Xing Zhou * Addressed Zhoxing review comment. * Addressed Zhoxing review comment. * Fixed violation test. * Fixed violation test. * removed deps Co-authored-by: Santosh Mishra Co-authored-by: Xing Zhou --- .github/CODEOWNERS | 2 +- src/connectedvmware/HISTORY.rst | 12 +- src/connectedvmware/README.md | 47 +- .../azext_connectedvmware/_client_factory.py | 28 + .../azext_connectedvmware/_help.py | 263 +- .../azext_connectedvmware/_params.py | 182 +- .../azext_connectedvmware/commands.py | 56 +- .../azext_connectedvmware/custom.py | 651 ++++- .../recordings/test_connectedvmware.yaml | 2190 +++++++++++++---- .../latest/test_connectedvmware_scenario.py | 72 +- ...azure_arc_vmware_management_service_api.py | 15 + ...azure_arc_vmware_management_service_api.py | 15 + .../vendored_sdks/aio/operations/__init__.py | 6 + .../aio/operations/_clusters_operations.py | 571 +++++ .../aio/operations/_datastores_operations.py | 571 +++++ .../aio/operations/_guest_agent_operations.py | 20 +- .../aio/operations/_hosts_operations.py | 571 +++++ .../_hybrid_identity_metadata_operations.py | 8 +- .../operations/_inventory_items_operations.py | 8 +- .../_machine_extensions_operations.py | 44 +- .../aio/operations/_operations.py | 2 +- .../operations/_resource_pools_operations.py | 24 +- .../aio/operations/_vcenters_operations.py | 24 +- .../_virtual_machine_templates_operations.py | 24 +- .../_virtual_machines_operations.py | 54 +- .../_virtual_networks_operations.py | 24 +- .../vendored_sdks/models/__init__.py | 45 + ...arc_vmware_management_service_api_enums.py | 35 + .../vendored_sdks/models/_models.py | 1126 +++++++-- .../vendored_sdks/models/_models_py3.py | 1182 +++++++-- .../vendored_sdks/operations/__init__.py | 6 + .../operations/_clusters_operations.py | 583 +++++ .../operations/_datastores_operations.py | 583 +++++ .../operations/_guest_agent_operations.py | 8 +- .../operations/_hosts_operations.py | 583 +++++ .../_machine_extensions_operations.py | 28 +- .../operations/_resource_pools_operations.py | 8 +- .../operations/_vcenters_operations.py | 8 +- .../_virtual_machine_templates_operations.py | 8 +- .../_virtual_machines_operations.py | 24 +- .../_virtual_networks_operations.py | 8 +- .../azext_connectedvmware/vmware_constants.py | 19 +- .../azext_connectedvmware/vmware_utils.py | 10 +- src/connectedvmware/setup.py | 4 +- src/service_name.json | 4 +- 45 files changed, 8565 insertions(+), 1191 deletions(-) create mode 100644 src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_clusters_operations.py create mode 100644 src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_datastores_operations.py create mode 100644 src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_hosts_operations.py create mode 100644 src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_clusters_operations.py create mode 100644 src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_datastores_operations.py create mode 100644 src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_hosts_operations.py diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index b4ce09a94c..8bf6703ca9 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -196,7 +196,7 @@ /src/webpubsub/ @zackliu -/src/connectedvmware/ @sanmishra18 +/src/connectedvmware/ @93mishra /src/diskpool/ @Juliehzl diff --git a/src/connectedvmware/HISTORY.rst b/src/connectedvmware/HISTORY.rst index 8c34bccfff..349a36c852 100644 --- a/src/connectedvmware/HISTORY.rst +++ b/src/connectedvmware/HISTORY.rst @@ -3,6 +3,16 @@ Release History =============== +0.1.2 +++++++ +* Added support for cluster, datastore and host. +* Added support for placement profile. + +0.1.1 +++++++ +* vcenter connection details can be skipped in CLI args, the user will be prompted for the skipped values in that case. + 0.1.0 ++++++ -* Initial release. \ No newline at end of file +* Initial release. + diff --git a/src/connectedvmware/README.md b/src/connectedvmware/README.md index be6d5b00be..04230307fc 100644 --- a/src/connectedvmware/README.md +++ b/src/connectedvmware/README.md @@ -1,15 +1,17 @@ -# Microsoft Azure CLI ConnectedVMware Extension # +# Microsoft Azure CLI ConnectedVMware Extension The Azure CLI extension for [Azure Arc for VMware PrivateCloud](https://github.com/Azure/azure-arc-enabled-vmware-vsphere-preview/blob/main/docs/overview.md) is an extension for Azure CLI 2.0. ## Install + ``` az extension add --name connectedvmware ``` ## Usage + See the [extension reference documenation](https://github.com/Azure/azure-arc-enabled-vmware-vsphere-preview/blob/main/docs/overview.md). -*Examples:* +_Examples:_ ##### Create Vcenter Resource @@ -38,6 +40,45 @@ az connectedvmware resource-pool create \ --name resourceName ``` +##### Create Cluster Resource + +``` +az connectedvmware cluster create \ + --subscription subscriptionId \ + --resource-group resourceGroupName \ + --location locationName \ + --custom-location customLocationName \ + --vcenter vcenterResourceName \ + --mo-ref-id morefId \ + --name resourceName +``` + +##### Create Host Resource + +``` +az connectedvmware host create \ + --subscription subscriptionId \ + --resource-group resourceGroupName \ + --location locationName \ + --custom-location customLocationName \ + --vcenter vcenterResourceName \ + --mo-ref-id morefId \ + --name resourceName +``` + +##### Create Datastore Resource + +``` +az connectedvmware datastore create \ + --subscription subscriptionId \ + --resource-group resourceGroupName \ + --location locationName \ + --custom-location customLocationName \ + --vcenter vcenterResourceName \ + --mo-ref-id morefId \ + --name resourceName +``` + ##### Create VM Template Resource ``` @@ -79,7 +120,9 @@ az connectedvmware vm create \ ``` ## Uninstall + You can see if the extension is installed by running `az --version` or `az extension list`. You can remove the extension by running: + ``` az extension remove --name connectedvmware ``` diff --git a/src/connectedvmware/azext_connectedvmware/_client_factory.py b/src/connectedvmware/azext_connectedvmware/_client_factory.py index 3ea908e11e..c71f797402 100644 --- a/src/connectedvmware/azext_connectedvmware/_client_factory.py +++ b/src/connectedvmware/azext_connectedvmware/_client_factory.py @@ -26,6 +26,27 @@ def cf_resource_pool(cli_ctx, *_): return cf_connectedvmware(cli_ctx).resource_pools +def cf_cluster(cli_ctx, *_): + """ + Client factory for clusters. + """ + return cf_connectedvmware(cli_ctx).clusters + + +def cf_datastore(cli_ctx, *_): + """ + Client factory for datastores. + """ + return cf_connectedvmware(cli_ctx).datastores + + +def cf_host(cli_ctx, *_): + """ + Client factory for hosts. + """ + return cf_connectedvmware(cli_ctx).hosts + + def cf_virtual_network(cli_ctx, *_): """ Client factory for virtual networks. @@ -52,3 +73,10 @@ def cf_inventory_item(cli_ctx, *_): Client factory for inventory items. """ return cf_connectedvmware(cli_ctx).inventory_items + + +def cf_guest_agent(cli_ctx, *_): + """ + Client factory for guest agent. + """ + return cf_connectedvmware(cli_ctx).guest_agent diff --git a/src/connectedvmware/azext_connectedvmware/_help.py b/src/connectedvmware/azext_connectedvmware/_help.py index 82755dac5d..3f139c7f27 100644 --- a/src/connectedvmware/azext_connectedvmware/_help.py +++ b/src/connectedvmware/azext_connectedvmware/_help.py @@ -70,6 +70,171 @@ --resource-group "resource group name" --subscription "Name or ID of subscription" """ +helps[ + 'connectedvmware cluster' +] = """ + type: group + short-summary: cluster resource +""" + +helps[ + 'connectedvmware cluster create' +] = """ + type: command + short-summary: "Create a cluster resource" + examples: + - name: Create cluster + text: |- + az connectedvmware cluster create --custom-location "custom location name" \ + --mo-ref-id "mo-ref id of the resource in vc" --name "cluster name" -l "location" \ + --resource-group "resource group name" --vcenter "name or id of the vcenter" +""" + +helps[ + 'connectedvmware cluster delete' +] = """ + type: command + short-summary: "Delete cluster resource" + examples: + - name: Delete cluster + text: |- + az connectedvmware cluster delete --ids "resource id" --name "cluster name" \ + --resource-group "resource group name" --subscription "Name or ID of subscription" +""" + +helps[ + 'connectedvmware cluster list' +] = """ + type: command + short-summary: "Retrieve a list of cluster of given resource group" + examples: + - name: Retrieve a list of cluster + text: |- + az connectedvmware cluster list --resource-group "resource group name" +""" + +helps[ + 'connectedvmware cluster show' +] = """ + type: command + short-summary: "Get details of a cluster by id, resource-group, cluster name, or subscription" + examples: + - name: Get details of a cluster + text: |- + az connectedvmware cluster show --ids "resource id" --name "cluster name" \ + --resource-group "resource group name" --subscription "Name or ID of subscription" +""" + +helps[ + 'connectedvmware datastore' +] = """ + type: group + short-summary: datastore resource +""" + +helps[ + 'connectedvmware datastore create' +] = """ + type: command + short-summary: "Create a datastore resource" + examples: + - name: Create datastore + text: |- + az connectedvmware datastore create --custom-location "custom location name" \ + --mo-ref-id "mo-ref id of the resource in vc" --name "datastore name" -l "location" \ + --resource-group "resource group name" --vcenter "name or id of the vcenter" +""" + +helps[ + 'connectedvmware datastore delete' +] = """ + type: command + short-summary: "Delete datastore resource" + examples: + - name: Delete datastore + text: |- + az connectedvmware datastore delete --ids "resource id" --name "datastore name" \ + --resource-group "resource group name" --subscription "Name or ID of subscription" +""" + +helps[ + 'connectedvmware datastore list' +] = """ + type: command + short-summary: "Retrieve a list of datastore of given resource group" + examples: + - name: Retrieve a list of datastore + text: |- + az connectedvmware datastore list --resource-group "resource group name" +""" + +helps[ + 'connectedvmware datastore show' +] = """ + type: command + short-summary: "Get details of a datastore by id, resource-group, datastore name, or subscription" + examples: + - name: Get details of a datastore + text: |- + az connectedvmware datastore show --ids "resource id" --name "datastore name" \ + --resource-group "resource group name" --subscription "Name or ID of subscription" +""" + +helps[ + 'connectedvmware host' +] = """ + type: group + short-summary: host resource +""" + +helps[ + 'connectedvmware host create' +] = """ + type: command + short-summary: "Create a host resource" + examples: + - name: Create host + text: |- + az connectedvmware host create --custom-location "custom location name" \ + --mo-ref-id "mo-ref id of the resource in vc" --name "host name" -l "location" \ + --resource-group "resource group name" --vcenter "name or id of the vcenter" +""" + +helps[ + 'connectedvmware host delete' +] = """ + type: command + short-summary: "Delete host resource" + examples: + - name: Delete host + text: |- + az connectedvmware host delete --ids "resource id" --name "host name" \ + --resource-group "resource group name" --subscription "Name or ID of subscription" +""" + +helps[ + 'connectedvmware host list' +] = """ + type: command + short-summary: "Retrieve a list of host of given resource group" + examples: + - name: Retrieve a list of host + text: |- + az connectedvmware host list --resource-group "resource group name" +""" + +helps[ + 'connectedvmware host show' +] = """ + type: command + short-summary: "Get details of a host by id, resource-group, host name, or subscription" + examples: + - name: Get details of a host + text: |- + az connectedvmware host show --ids "resource id" --name "host name" \ + --resource-group "resource group name" --subscription "Name or ID of subscription" +""" + helps[ 'connectedvmware vcenter' ] = """ @@ -126,6 +291,37 @@ --resource-group "resource group name" --subscription "Name or ID of subscription" """ +helps[ + 'connectedvmware vcenter inventory-item' +] = """ + type: group + short-summary: inventory item resource. +""" + +helps[ + 'connectedvmware vcenter inventory-item list' +] = """ + type: command + short-summary: "Retrieve a list of inventory item given by resource group and vcenter name." + examples: + - name: Retrieve a list of inventory item + text: |- + az connectedvmware vcenter inventory-item list --resource-group "resource group name" \ + --vcenter "name of the vcenter" +""" + +helps[ + 'connectedvmware vcenter inventory-item show' +] = """ + type: command + short-summary: "Get details of a inventory item by inventory item name or id, resource-group and vcenter name." + examples: + - name: Get details of a inventory item + text: |- + az connectedvmware vcenter inventory-item show --inventory-item "inventory item name" \ + --resource-group "resource group name" --vcenter "name of the vcenter" +""" + helps[ 'connectedvmware virtual-network' ] = """ @@ -198,7 +394,7 @@ - name: Create vm text: |- az connectedvmware vm create --custom-location "custom location name" --location \ - "Region name" --name "virtual network name" --resource-group "resource group name" \ + "region name" --name "virtual machine name" --resource-group "resource group name" \ --vcenter "name or id of the vcenter" --inventory-item "inventory item name or id" """ @@ -409,6 +605,40 @@ "resource group name" --vm-name "Name of the virtual machine" """ +helps[ + 'connectedvmware vm guest-agent' +] = """ + type: group + short-summary: vm guest agent. +""" + +helps[ + 'connectedvmware vm guest-agent enable' +] = """ + type: command + short-summary: "Enable guest agent on the vm" + examples: + - name: Enable guest agent on the vm + text: |- + az connectedvmware vm guest-agent enable --username "vm user name" --password "vm password" \ + --resource-group "resource group name" --subscription "Name or ID of subscription" \ + --vm-name "vm name" +""" + + +helps[ + 'connectedvmware vm guest-agent show' +] = """ + type: command + short-summary: "Get details of a guest agent by guest agent name, resource-group and vm name." + examples: + - name: Get details of a guest agent + text: |- + az connectedvmware vm guest-agent show --resource-group "resource group name" \ + --vm-name "name of the vm" +""" + + helps[ 'connectedvmware vm-template' ] = """ @@ -464,34 +694,3 @@ az connectedvmware vm-template show --ids "resource id" --name "vm template name" \ --resource-group "resource group name" --subscription "Name or ID of subscription" """ - -helps[ - 'connectedvmware inventory-item' -] = """ - type: group - short-summary: inventory item resource. -""" - -helps[ - 'connectedvmware inventory-item list' -] = """ - type: command - short-summary: "Retrieve a list of inventory item given by resource group and vcenter name." - examples: - - name: Retrieve a list of inventory item - text: |- - az connectedvmware inventory-item list --resource-group "resource group name" \ - --vcenter-name "name of the vcenter" -""" - -helps[ - 'connectedvmware inventory-item show' -] = """ - type: command - short-summary: "Get details of a inventory item by inventory item name or id, resource-group and vcenter name." - examples: - - name: Get details of a vm template - text: |- - az connectedvmware inventory-item show --inventory-item-name "inventory item name" \ - --resource-group "resource group name" --vcenter-name "name of the vcenter" -""" diff --git a/src/connectedvmware/azext_connectedvmware/_params.py b/src/connectedvmware/azext_connectedvmware/_params.py index f9d881adfc..97c1a1d957 100644 --- a/src/connectedvmware/azext_connectedvmware/_params.py +++ b/src/connectedvmware/azext_connectedvmware/_params.py @@ -11,15 +11,47 @@ def load_arguments(self, _): - connectedvmware_name_type = CLIArgumentType( + resource_name = CLIArgumentType( options_list='--resource-name', help='Name of the resource.', id_part='name' ) + custom_location = CLIArgumentType( + options_list=['--custom-location', '-c'], + help='Name or ID of the custom location that will manage this resource.', + ) + + vcenter = CLIArgumentType( + options_list=['--vcenter', '-v'], + help='Name or ID of the vCenter that is managing this resource.', + ) + + mo_ref_id = CLIArgumentType( + options_list=['--mo-ref-id', '-m'], + help='VCenter MoRef (Managed Object Reference) ID for the existing resource.', + ) + + inventory_item = CLIArgumentType( + options_list=['--inventory-item', '-i'], + help='Name or ID of the inventory item.', + ) + with self.argument_context('connectedvmware') as c: c.argument('tags', tags_type) c.argument('location', validator=get_default_location_from_resource_group) c.argument( - 'resource_name', connectedvmware_name_type, options_list=['--name', '-n'] + 'resource_name', resource_name, options_list=['--name', '-n'] + ) + c.argument( + 'custom_location', custom_location, options_list=['--custom-location', '-c'] + ) + c.argument( + 'vcenter', vcenter, options_list=['--vcenter', '-v'] + ) + c.argument( + 'mo_ref_id', mo_ref_id, options_list=['--mo-ref-id', '-m'] + ) + c.argument( + 'inventory_item', inventory_item, options_list=['--inventory-item', '-i'] ) with self.argument_context('connectedvmware vcenter connect') as c: @@ -29,11 +61,6 @@ def load_arguments(self, _): c.argument( 'port', type=int, options_list=['--port'], help="The port of the vCenter." ) - c.argument( - 'custom_location', - options_list=['--custom-location'], - help="Name or ID of the custom location that will manage this vCenter.", - ) c.argument( 'username', options_list=['--username'], @@ -48,102 +75,41 @@ def load_arguments(self, _): with self.argument_context('connectedvmware vcenter delete') as c: c.argument('force', action='store_true', help="Whether force delete or not.") - with self.argument_context('connectedvmware resource-pool create') as c: - c.argument( - 'custom_location', - options_list=['--custom-location'], - help="Name or ID of the custom location that is managing this resource pool.", - ) - c.argument( - 'vcenter', - options_list=['--vcenter'], - help="Name or ID of the vCenter that is managing this resource pool.", - ) - c.argument( - 'mo_ref_id', - options_list=['--mo-ref-id'], - help="VCenter MoRef (Managed Object Reference) ID for the existing resource pool.", - ) - c.argument( - 'inventory_item', - options_list=['--inventory-item'], - help="Name or ID of the inventory item.", - ) + self.argument_context('connectedvmware vcenter inventory-item list') + + self.argument_context('connectedvmware vcenter inventory-item show') + + self.argument_context('connectedvmware resource-pool create') with self.argument_context('connectedvmware resource-pool delete') as c: c.argument('force', action='store_true', help="Whether force delete or not.") - with self.argument_context('connectedvmware virtual-network create') as c: - c.argument( - 'custom_location', - options_list=['--custom-location'], - help="Name or ID of the custom location that is managing this virtual network.", - ) - c.argument( - 'vcenter', - options_list=['--vcenter'], - help="Name or ID of the vCenter that is managing this virtual network.", - ) - c.argument( - 'mo_ref_id', - options_list=['--mo-ref-id'], - help="VCenter MoRef (Managed Object Reference) ID for the existing virtual network.", - ) - c.argument( - 'inventory_item', - options_list=['--inventory-item'], - help="Name or ID of the inventory item.", - ) + self.argument_context('connectedvmware cluster create') + + with self.argument_context('connectedvmware cluster delete') as c: + c.argument('force', action='store_true', help="Whether force delete or not.") + + self.argument_context('connectedvmware datastore create') + + with self.argument_context('connectedvmware datastore delete') as c: + c.argument('force', action='store_true', help="Whether force delete or not.") + + self.argument_context('connectedvmware host create') + + with self.argument_context('connectedvmware host delete') as c: + c.argument('force', action='store_true', help="Whether force delete or not.") + + self.argument_context('connectedvmware virtual-network create') with self.argument_context('connectedvmware virtual-network delete') as c: c.argument('force', action='store_true', help="Whether force delete or not.") - with self.argument_context('connectedvmware vm-template create') as c: - c.argument( - 'arc_zone', - options_list=['--arc-zone'], - help="Name or ID of the Arc zone that is managing this vm template.", - ) - c.argument( - 'vcenter', - options_list=['--vcenter'], - help="Name or ID of the vCenter that is managing this vm template.", - ) - c.argument( - 'mo_ref_id', - options_list=['--mo-ref-id'], - help="VCenter MoRef (Managed Object Reference) ID for the existing vm template.", - ) - c.argument( - 'custom_location', - options_list=['--custom-location'], - help="Name or ID of the custom location that will manage this vCenter.", - ) - c.argument( - 'inventory_item', - options_list=['--inventory-item'], - help="Name or ID of the inventory item.", - ) + self.argument_context('connectedvmware vm-template create') with self.argument_context('connectedvmware vm-template delete') as c: c.argument('force', action='store_true', help="Whether force delete or not.") with self.argument_context('connectedvmware vm create') as c: - c.argument( - 'arc_zone', - options_list=['--arc-zone'], - help="Name or ID of the Arc zone to deploy the vm.", - ) - c.argument( - 'custom_location', - options_list=['--custom-location'], - help="Name or ID of the custom location that will manage this vm.", - ) - c.argument( - 'vcenter', - options_list=['--vcenter'], - help="Name or ID of the vCenter to deploy the vm.", - ) c.argument( 'vm_template', options_list=['--vm-template'], @@ -155,9 +121,19 @@ def load_arguments(self, _): help="Name or ID of the resource pool for deploying the vm.", ) c.argument( - 'inventory_item', - options_list=['--inventory-item'], - help="Name or ID of the inventory item.", + 'cluster', + options_list=['--cluster'], + help="Name or ID of the cluster for deploying the VM.", + ) + c.argument( + 'host', + options_list=['--host'], + help="Name or ID of the host for deploying the VM.", + ) + c.argument( + 'datastore', + options_list=['--datastore'], + help="Name or ID of the datastore for deploying the VM.", ) c.argument( 'admin_username', @@ -360,16 +336,22 @@ def load_arguments(self, _): help="The device key for the disk.", ) - with self.argument_context('connectedvmware inventory-item list') as c: + with self.argument_context('connectedvmware vm guest-agent enable') as c: c.argument( - 'vcenter_name', options_list=['--vcenter-name'], help="Name of the vCenter." + 'vm_name', options_list=['--vm-name'], help="Name of the VM." ) - - with self.argument_context('connectedvmware inventory-item show') as c: c.argument( - 'inventory_item_name', - options_list=['--inventory-item-name'], help="Name of the inventory item.", + 'username', + options_list=['--username'], + help="Username to use for connecting to the vm.", ) c.argument( - 'vcenter_name', options_list=['--vcenter-name'], help="Name of the vCenter.", + 'password', + options_list=['--password'], + help="Username password credentials to use for connecting to the VM.", + ) + + with self.argument_context('connectedvmware vm guest-agent show') as c: + c.argument( + 'vm_name', options_list=['--vm-name'], help="Name of the VM.", ) diff --git a/src/connectedvmware/azext_connectedvmware/commands.py b/src/connectedvmware/azext_connectedvmware/commands.py index eb876e883f..415351eea3 100644 --- a/src/connectedvmware/azext_connectedvmware/commands.py +++ b/src/connectedvmware/azext_connectedvmware/commands.py @@ -2,7 +2,7 @@ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -# pylint: disable=line-too-long +# pylint: disable=line-too-long, disable=too-many-statements from ._client_factory import ( cf_vcenter, @@ -11,6 +11,10 @@ cf_virtual_machine_template, cf_virtual_machine, cf_inventory_item, + cf_guest_agent, + cf_cluster, + cf_datastore, + cf_host, ) @@ -18,23 +22,53 @@ def load_command_table(self, _): with self.command_group('connectedvmware vcenter', client_factory=cf_vcenter) as g: g.custom_command('connect', 'connect_vcenter', supports_no_wait=True) - g.custom_command('delete', 'delete_vcenter', supports_no_wait=True) + g.custom_command('delete', 'delete_vcenter', supports_no_wait=True, confirmation=True) g.custom_show_command('show', 'show_vcenter') g.custom_command('list', 'list_vcenter') + with self.command_group( + 'connectedvmware vcenter inventory-item', client_factory=cf_inventory_item + ) as g: + g.custom_show_command('show', 'show_inventory_item') + g.custom_command('list', 'list_inventory_item') + with self.command_group( 'connectedvmware resource-pool', client_factory=cf_resource_pool ) as g: g.custom_command('create', 'create_resource_pool', supports_no_wait=True) - g.custom_command('delete', 'delete_resource_pool', supports_no_wait=True) + g.custom_command('delete', 'delete_resource_pool', supports_no_wait=True, confirmation=True) g.custom_show_command('show', 'show_resource_pool') g.custom_command('list', 'list_resource_pool') + with self.command_group( + 'connectedvmware cluster', client_factory=cf_cluster + ) as g: + g.custom_command('create', 'create_cluster', supports_no_wait=True) + g.custom_command('delete', 'delete_cluster', supports_no_wait=True, confirmation=True) + g.custom_show_command('show', 'show_cluster') + g.custom_command('list', 'list_cluster') + + with self.command_group( + 'connectedvmware datastore', client_factory=cf_datastore + ) as g: + g.custom_command('create', 'create_datastore', supports_no_wait=True) + g.custom_command('delete', 'delete_datastore', supports_no_wait=True, confirmation=True) + g.custom_show_command('show', 'show_datastore') + g.custom_command('list', 'list_datastore') + + with self.command_group( + 'connectedvmware host', client_factory=cf_host + ) as g: + g.custom_command('create', 'create_host', supports_no_wait=True) + g.custom_command('delete', 'delete_host', supports_no_wait=True, confirmation=True) + g.custom_show_command('show', 'show_host') + g.custom_command('list', 'list_host') + with self.command_group( 'connectedvmware virtual-network', client_factory=cf_virtual_network ) as g: g.custom_command('create', 'create_virtual_network', supports_no_wait=True) - g.custom_command('delete', 'delete_virtual_network', supports_no_wait=True) + g.custom_command('delete', 'delete_virtual_network', supports_no_wait=True, confirmation=True) g.custom_show_command('show', 'show_virtual_network') g.custom_command('list', 'list_virtual_network') @@ -42,7 +76,7 @@ def load_command_table(self, _): 'connectedvmware vm-template', client_factory=cf_virtual_machine_template ) as g: g.custom_command('create', 'create_vm_template', supports_no_wait=True) - g.custom_command('delete', 'delete_vm_template', supports_no_wait=True) + g.custom_command('delete', 'delete_vm_template', supports_no_wait=True, confirmation=True) g.custom_show_command('show', 'show_vm_template') g.custom_command('list', 'list_vm_template') @@ -50,7 +84,7 @@ def load_command_table(self, _): 'connectedvmware vm', client_factory=cf_virtual_machine ) as g: g.custom_command('create', 'create_vm', supports_no_wait=True) - g.custom_command('delete', 'delete_vm', supports_no_wait=True) + g.custom_command('delete', 'delete_vm', supports_no_wait=True, confirmation=True) g.custom_command('update', 'update_vm', supports_no_wait=True) g.custom_show_command('show', 'show_vm') g.custom_command('list', 'list_vm') @@ -63,7 +97,7 @@ def load_command_table(self, _): ) as g: g.custom_command('add', 'add_nic', supports_no_wait=True) g.custom_command('update', 'update_nic', supports_no_wait=True) - g.custom_command('delete', 'delete_nics', supports_no_wait=True) + g.custom_command('delete', 'delete_nics', supports_no_wait=True, confirmation=True) g.custom_show_command('show', 'show_nic') g.custom_command('list', 'list_nics') @@ -72,15 +106,15 @@ def load_command_table(self, _): ) as g: g.custom_command('add', 'add_disk', supports_no_wait=True) g.custom_command('update', 'update_disk', supports_no_wait=True) - g.custom_command('delete', 'delete_disks', supports_no_wait=True) + g.custom_command('delete', 'delete_disks', supports_no_wait=True, confirmation=True) g.custom_show_command('show', 'show_disk') g.custom_command('list', 'list_disks') with self.command_group( - 'connectedvmware inventory-item', client_factory=cf_inventory_item + 'connectedvmware vm guest-agent', client_factory=cf_guest_agent ) as g: - g.custom_show_command('show', 'show_inventory_item') - g.custom_command('list', 'list_inventory_item') + g.custom_command('enable', 'enable_guest_agent', supports_no_wait=True) + g.custom_show_command('show', 'show_guest_agent') with self.command_group('connectedvmware', is_preview=False): pass diff --git a/src/connectedvmware/azext_connectedvmware/custom.py b/src/connectedvmware/azext_connectedvmware/custom.py index dcebfed657..354f0364f7 100644 --- a/src/connectedvmware/azext_connectedvmware/custom.py +++ b/src/connectedvmware/azext_connectedvmware/custom.py @@ -2,8 +2,10 @@ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -# pylint: disable= too-many-lines, too-many-locals, unused-argument +# pylint: disable= too-many-lines, too-many-locals, unused-argument, too-many-branches, too-many-statements +import sys +from getpass import getpass from knack.util import CLIError from azext_connectedvmware.vmware_utils import get_resource_id from azure.cli.core.util import sdk_no_wait @@ -11,6 +13,9 @@ VMWARE_NAMESPACE, VCENTER_RESOURCE_TYPE, RESOURCEPOOL_RESOURCE_TYPE, + CLUSTER_RESOURCE_TYPE, + HOST_RESOURCE_TYPE, + DATASTORE_RESOURCE_TYPE, VMTEMPLATE_RESOURCE_TYPE, VIRTUALNETWORK_RESOURCE_TYPE, DEFAULT_VCENTER_PORT, @@ -31,7 +36,11 @@ DISK_SIZE, DISK_MODE, CONTROLLER_KEY, - UNIT_NUMBER + UNIT_NUMBER, + VIRTUALMACHINE_RESOURCE_TYPE, + VM_SYSTEM_ASSIGNED_INDENTITY_TYPE, + DEFAULT_GUEST_AGENT_NAME, + GUEST_AGENT_PROVISIONING_ACTION_INSTALL, ) from .vendored_sdks.models import ( @@ -47,6 +56,9 @@ OsProfile, PowerOnBootOption, ResourcePool, + Cluster, + Datastore, + Host, StorageProfile, StorageProfileUpdate, VCenter, @@ -59,15 +71,27 @@ VirtualNetwork, ExtendedLocation, StopVirtualMachineOptions, + Identity, + GuestAgent, + GuestCredential, + PlacementProfile, ) from .vendored_sdks.operations import ( VCentersOperations, ResourcePoolsOperations, + ClustersOperations, + DatastoresOperations, + HostsOperations, VirtualNetworksOperations, VirtualMachineTemplatesOperations, VirtualMachinesOperations, InventoryItemsOperations, + GuestAgentOperations, +) + +from ._client_factory import ( + cf_virtual_machine, ) # endregion @@ -80,9 +104,9 @@ def connect_vcenter( client: VCentersOperations, resource_group_name, resource_name, - fqdn, custom_location, location, + fqdn=None, username=None, password=None, port=DEFAULT_VCENTER_PORT, @@ -90,8 +114,32 @@ def connect_vcenter( no_wait=False, ): - if username is None or password is None: - raise CLIError("Missing vcenter credentials, provide username/password") + creds_ok = all(inp is not None for inp in [fqdn, username, password]) + while not creds_ok: + creds = { + 'fqdn': fqdn, + 'username': username, + 'password': password, + } + if fqdn is None: + print('Please provide vcenter fqdn: ', end='', file=sys.stderr) + creds['fqdn'] = input() + if username is None: + print('Please provide vcenter username: ', end='', file=sys.stderr) + creds['username'] = input() + if password is None: + creds['password'] = getpass('Please provide vcenter password: ') + print('Is this OK? [Y/n]: ', end='', file=sys.stderr) + res = input().lower() + if res in ['y', '']: + for cred_type, cred_val in creds.items(): + if not cred_val: + print(f'{cred_type} cannot be empty. Please try again.', file=sys.stderr) + continue + fqdn, username, password = creds['fqdn'], creds['username'], creds['password'] + creds_ok = True + elif res != 'n': + print('Please type y/n or leave empty.', file=sys.stderr) username_creds = VICredential(username=username, password=password) @@ -145,6 +193,28 @@ def list_vcenter(client: VCentersOperations, resource_group_name=None): return client.list() +# endregion + +# region InventoryItems + + +def show_inventory_item( + client: InventoryItemsOperations, + resource_group_name, + vcenter, + inventory_item +): + + return client.get(resource_group_name, vcenter, inventory_item) + + +def list_inventory_item( + client: InventoryItemsOperations, resource_group_name, vcenter +): + + return client.list_by_v_center(resource_group_name, vcenter) + + # endregion # region ResourcePools @@ -169,6 +239,11 @@ def create_resource_pool( "Missing parameter, provide either mo_ref_id or inventory_item id." ) + if mo_ref_id is not None and inventory_item is not None: + raise CLIError( + "mo_ref_id and inventory_item id both cannot be provided together." + ) + custom_location_id = get_resource_id( cmd, resource_group_name, @@ -248,6 +323,330 @@ def list_resource_pool(client: ResourcePoolsOperations, resource_group_name=None return client.list() +# endregion + +# region Clusters + + +def create_cluster( + cmd, + client: ClustersOperations, + resource_group_name, + resource_name, + custom_location, + location, + vcenter=None, + mo_ref_id=None, + inventory_item=None, + tags=None, + no_wait=False, +): + + if mo_ref_id is None and inventory_item is None: + raise CLIError( + "Missing parameter, provide either mo_ref_id or inventory_item id." + ) + + if mo_ref_id is not None and inventory_item is not None: + raise CLIError( + "mo_ref_id and inventory_item id both cannot be provided together." + ) + + custom_location_id = get_resource_id( + cmd, + resource_group_name, + EXTENDED_LOCATION_NAMESPACE, + CUSTOM_LOCATION_RESOURCE_TYPE, + custom_location, + ) + + extended_location = ExtendedLocation( + type=EXTENDED_LOCATION_TYPE, name=custom_location_id + ) + + inventory_item_id = None + vcenter_id = None + + if inventory_item is not None: + inventory_item_id = get_resource_id( + cmd, + resource_group_name, + VMWARE_NAMESPACE, + VCENTER_RESOURCE_TYPE, + vcenter, + INVENTORY_ITEM_TYPE, + inventory_item, + ) + else: + if vcenter is None: + raise CLIError("Missing parameter, provide vcenter name or id.") + + vcenter_id = get_resource_id( + cmd, resource_group_name, VMWARE_NAMESPACE, VCENTER_RESOURCE_TYPE, vcenter + ) + + if inventory_item_id is not None: + cluster = Cluster( + location=location, + extended_location=extended_location, + inventory_item_id=inventory_item_id, + ) + else: + cluster = Cluster( + location=location, + extended_location=extended_location, + v_center_id=vcenter_id, + mo_ref_id=mo_ref_id, + ) + + return sdk_no_wait( + no_wait, client.begin_create, resource_group_name, resource_name, cluster + ) + + +def delete_cluster( + client: ClustersOperations, + resource_group_name, + resource_name, + force=False, + no_wait=False, +): + + return sdk_no_wait( + no_wait, client.begin_delete, resource_group_name, resource_name, force + ) + + +def show_cluster( + client: ClustersOperations, resource_group_name, resource_name +): + + return client.get(resource_group_name, resource_name) + + +def list_cluster(client: ClustersOperations, resource_group_name=None): + + if resource_group_name: + return client.list_by_resource_group(resource_group_name) + return client.list() + + +# endregion + +# region Datastores + + +def create_datastore( + cmd, + client: DatastoresOperations, + resource_group_name, + resource_name, + custom_location, + location, + vcenter=None, + mo_ref_id=None, + inventory_item=None, + tags=None, + no_wait=False, +): + + if mo_ref_id is None and inventory_item is None: + raise CLIError( + "Missing parameter, provide either mo_ref_id or inventory_item id." + ) + + if mo_ref_id is not None and inventory_item is not None: + raise CLIError( + "mo_ref_id and inventory_item id both cannot be provided together." + ) + + custom_location_id = get_resource_id( + cmd, + resource_group_name, + EXTENDED_LOCATION_NAMESPACE, + CUSTOM_LOCATION_RESOURCE_TYPE, + custom_location, + ) + + extended_location = ExtendedLocation( + type=EXTENDED_LOCATION_TYPE, name=custom_location_id + ) + + inventory_item_id = None + vcenter_id = None + + if inventory_item is not None: + inventory_item_id = get_resource_id( + cmd, + resource_group_name, + VMWARE_NAMESPACE, + VCENTER_RESOURCE_TYPE, + vcenter, + INVENTORY_ITEM_TYPE, + inventory_item, + ) + else: + if vcenter is None: + raise CLIError("Missing parameter, provide vcenter name or id.") + + vcenter_id = get_resource_id( + cmd, resource_group_name, VMWARE_NAMESPACE, VCENTER_RESOURCE_TYPE, vcenter + ) + + if inventory_item_id is not None: + datastore = Datastore( + location=location, + extended_location=extended_location, + inventory_item_id=inventory_item_id, + ) + else: + datastore = Datastore( + location=location, + extended_location=extended_location, + v_center_id=vcenter_id, + mo_ref_id=mo_ref_id, + ) + + return sdk_no_wait( + no_wait, client.begin_create, resource_group_name, resource_name, datastore + ) + + +def delete_datastore( + client: DatastoresOperations, + resource_group_name, + resource_name, + force=False, + no_wait=False, +): + + return sdk_no_wait( + no_wait, client.begin_delete, resource_group_name, resource_name, force + ) + + +def show_datastore( + client: DatastoresOperations, resource_group_name, resource_name +): + + return client.get(resource_group_name, resource_name) + + +def list_datastore(client: DatastoresOperations, resource_group_name=None): + + if resource_group_name: + return client.list_by_resource_group(resource_group_name) + return client.list() + + +# endregion + +# region Hosts + + +def create_host( + cmd, + client: HostsOperations, + resource_group_name, + resource_name, + custom_location, + location, + vcenter=None, + mo_ref_id=None, + inventory_item=None, + tags=None, + no_wait=False, +): + + if mo_ref_id is None and inventory_item is None: + raise CLIError( + "Missing parameter, provide either mo_ref_id or inventory_item id." + ) + + if mo_ref_id is not None and inventory_item is not None: + raise CLIError( + "mo_ref_id and inventory_item id both cannot be provided together." + ) + + custom_location_id = get_resource_id( + cmd, + resource_group_name, + EXTENDED_LOCATION_NAMESPACE, + CUSTOM_LOCATION_RESOURCE_TYPE, + custom_location, + ) + + extended_location = ExtendedLocation( + type=EXTENDED_LOCATION_TYPE, name=custom_location_id + ) + + inventory_item_id = None + vcenter_id = None + + if inventory_item is not None: + inventory_item_id = get_resource_id( + cmd, + resource_group_name, + VMWARE_NAMESPACE, + VCENTER_RESOURCE_TYPE, + vcenter, + INVENTORY_ITEM_TYPE, + inventory_item, + ) + else: + if vcenter is None: + raise CLIError("Missing parameter, provide vcenter name or id.") + + vcenter_id = get_resource_id( + cmd, resource_group_name, VMWARE_NAMESPACE, VCENTER_RESOURCE_TYPE, vcenter + ) + + if inventory_item_id is not None: + host = Host( + location=location, + extended_location=extended_location, + inventory_item_id=inventory_item_id, + ) + else: + host = Host( + location=location, + extended_location=extended_location, + v_center_id=vcenter_id, + mo_ref_id=mo_ref_id, + ) + + return sdk_no_wait( + no_wait, client.begin_create, resource_group_name, resource_name, host + ) + + +def delete_host( + client: HostsOperations, + resource_group_name, + resource_name, + force=False, + no_wait=False, +): + + return sdk_no_wait( + no_wait, client.begin_delete, resource_group_name, resource_name, force + ) + + +def show_host( + client: HostsOperations, resource_group_name, resource_name +): + + return client.get(resource_group_name, resource_name) + + +def list_host(client: HostsOperations, resource_group_name=None): + + if resource_group_name: + return client.list_by_resource_group(resource_group_name) + return client.list() + + # endregion # region VirtualNetworks @@ -272,6 +671,11 @@ def create_virtual_network( "Missing parameter, provide either mo_ref_id or inventory_item id." ) + if mo_ref_id is not None and inventory_item is not None: + raise CLIError( + "mo_ref_id and inventory_item id both cannot be provided together." + ) + custom_location_id = get_resource_id( cmd, resource_group_name, @@ -381,6 +785,11 @@ def create_vm_template( "Missing parameter, provide either mo_ref_id or inventory_item id." ) + if mo_ref_id is not None and inventory_item is not None: + raise CLIError( + "mo_ref_id and inventory_item id both cannot be provided together." + ) + custom_location_id = get_resource_id( cmd, resource_group_name, @@ -466,6 +875,7 @@ def list_vm_template( # region VirtualMachines + def create_vm( cmd, client: VirtualMachinesOperations, @@ -474,8 +884,11 @@ def create_vm( custom_location, location, vcenter=None, - resource_pool=None, vm_template=None, + resource_pool=None, + cluster=None, + host=None, + datastore=None, inventory_item=None, admin_username=None, admin_password=None, @@ -488,11 +901,33 @@ def create_vm( no_wait=False, ): - if vm_template is None and inventory_item is None: + if not any([vm_template, inventory_item, datastore]): raise CLIError( - "Missing parameter, provide either vm_template or inventory_item id." + "either vm_template, inventory_item id or datastore must be provided." ) + if vm_template is not None or datastore is not None: + if not any([resource_pool, cluster, host]): + raise CLIError( + "either resource_pool, cluster or host must be provided while creating a VM." + ) + + if len([i for i in [resource_pool, cluster, host] if i is not None]) > 1: + raise CLIError( + "at max one of resource_pool, cluster or host can be provided." + ) + + if inventory_item is not None: + if vm_template is not None: + raise CLIError( + "both vm_template and inventory_item id cannot be provided together." + ) + + if any([resource_pool, cluster, host, datastore]): + raise CLIError( + "Placement input cannot be provided together with inventory_item." + ) + hardware_profile = None os_profile = None network_profile = None @@ -536,8 +971,13 @@ def create_vm( inventory_item_id = None vcenter_id = None + vm = None vm_template_id = None resource_pool_id = None + cluster_id = None + host_id = None + datastore_id = None + placement_profile = None if inventory_item is not None: inventory_item_id = get_resource_id( @@ -549,33 +989,7 @@ def create_vm( INVENTORY_ITEM_TYPE, inventory_item, ) - else: - if vcenter is None: - raise CLIError("Missing parameter, provide vcenter name or id.") - - vcenter_id = get_resource_id( - cmd, resource_group_name, VMWARE_NAMESPACE, VCENTER_RESOURCE_TYPE, vcenter - ) - - if vm_template is not None: - vm_template_id = get_resource_id( - cmd, - resource_group_name, - VMWARE_NAMESPACE, - VMTEMPLATE_RESOURCE_TYPE, - vm_template, - ) - if resource_pool is not None: - resource_pool_id = get_resource_id( - cmd, - resource_group_name, - VMWARE_NAMESPACE, - RESOURCEPOOL_RESOURCE_TYPE, - resource_pool, - ) - - if inventory_item_id is not None: vm = VirtualMachine( location=location, extended_location=extended_location, @@ -586,18 +1000,89 @@ def create_vm( inventory_item_id=inventory_item_id, ) else: - vm = VirtualMachine( - location=location, - extended_location=extended_location, - v_center_id=vcenter_id, + if vcenter is None: + raise CLIError("Missing parameter, provide vcenter name or id.") + + vcenter_id = get_resource_id( + cmd, resource_group_name, VMWARE_NAMESPACE, VCENTER_RESOURCE_TYPE, vcenter + ) + + if vm_template is not None: + vm_template_id = get_resource_id( + cmd, + resource_group_name, + VMWARE_NAMESPACE, + VMTEMPLATE_RESOURCE_TYPE, + vm_template, + ) + + if resource_pool is not None: + resource_pool_id = get_resource_id( + cmd, + resource_group_name, + VMWARE_NAMESPACE, + RESOURCEPOOL_RESOURCE_TYPE, + resource_pool, + ) + + if cluster is not None: + cluster_id = get_resource_id( + cmd, + resource_group_name, + VMWARE_NAMESPACE, + CLUSTER_RESOURCE_TYPE, + cluster, + ) + + if host is not None: + host_id = get_resource_id( + cmd, + resource_group_name, + VMWARE_NAMESPACE, + HOST_RESOURCE_TYPE, + host, + ) + + if datastore is not None: + datastore_id = get_resource_id( + cmd, + resource_group_name, + VMWARE_NAMESPACE, + DATASTORE_RESOURCE_TYPE, + datastore, + ) + + placement_profile = PlacementProfile( resource_pool_id=resource_pool_id, - template_id=vm_template_id, - hardware_profile=hardware_profile, - os_profile=os_profile, - network_profile=network_profile, - storage_profile=storage_profile, + cluster_id=cluster_id, + host_id=host_id, + datastore_id=datastore_id, ) + if vm_template is not None: + vm = VirtualMachine( + location=location, + extended_location=extended_location, + v_center_id=vcenter_id, + template_id=vm_template_id, + placement_profile=placement_profile, + hardware_profile=hardware_profile, + os_profile=os_profile, + network_profile=network_profile, + storage_profile=storage_profile, + ) + else: + vm = VirtualMachine( + location=location, + extended_location=extended_location, + v_center_id=vcenter_id, + placement_profile=placement_profile, + hardware_profile=hardware_profile, + os_profile=os_profile, + network_profile=network_profile, + storage_profile=storage_profile, + ) + return sdk_no_wait( no_wait, client.begin_create, resource_group_name, resource_name, vm ) @@ -1230,24 +1715,86 @@ def delete_disks( # endregion -# region InventoryItems +# region GuestAgent -def show_inventory_item( - client: InventoryItemsOperations, +def is_system_identity_enabled( + client: VirtualMachinesOperations, resource_group_name, - vcenter_name, - inventory_item_name + vm_name, ): + """ + Check whether system identity is enable or not on this vm. + """ - return client.get(resource_group_name, vcenter_name, inventory_item_name) + vm = client.get(resource_group_name, vm_name) + if vm.identity is not None and vm.identity.type == "SystemAssigned": + return True -def list_inventory_item( - client: InventoryItemsOperations, resource_group_name, vcenter_name + return False + + +def enable_system_identity( + client: VirtualMachinesOperations, + resource_group_name, + vm_name, ): + """ + Enable system assigned identity on this vm. + """ + + system_identity = Identity(type=VM_SYSTEM_ASSIGNED_INDENTITY_TYPE) + + vm_update = VirtualMachineUpdate(identity=system_identity) + + return sdk_no_wait( + client.begin_update, resource_group_name, vm_name, vm_update + ) + + +def enable_guest_agent( + cmd, + client: GuestAgentOperations, + resource_group_name, + vm_name, + username, + password, +): + """ + Enable guest agent on the given virtual machine. + """ + + vm_client = cf_virtual_machine(cmd.cli_ctx) + + if is_system_identity_enabled(vm_client, resource_group_name, vm_name) is False: + enable_system_identity(vm_client, resource_group_name, vm_name) + + vm_creds = GuestCredential(username=username, password=password) + + resource_id = get_resource_id(cmd, resource_group_name, VMWARE_NAMESPACE, VIRTUALMACHINE_RESOURCE_TYPE, vm_name) + + guest_agent = GuestAgent( + id=resource_id, + type=VIRTUALMACHINE_RESOURCE_TYPE, + name=DEFAULT_GUEST_AGENT_NAME, + credentials=vm_creds, + provisioning_action=GUEST_AGENT_PROVISIONING_ACTION_INSTALL, + ) + + return client.begin_create(resource_group_name, vm_name, DEFAULT_GUEST_AGENT_NAME, guest_agent) + + +def show_guest_agent( + client: GuestAgentOperations, + resource_group_name, + vm_name, +): + """ + Show the guest agent of the given vm and guest agent. + """ - return client.list_by_v_center(resource_group_name, vcenter_name) + return client.get(resource_group_name, vm_name, DEFAULT_GUEST_AGENT_NAME) # endregion diff --git a/src/connectedvmware/azext_connectedvmware/tests/latest/recordings/test_connectedvmware.yaml b/src/connectedvmware/azext_connectedvmware/tests/latest/recordings/test_connectedvmware.yaml index 6f77911a87..5464a5c004 100644 --- a/src/connectedvmware/azext_connectedvmware/tests/latest/recordings/test_connectedvmware.yaml +++ b/src/connectedvmware/azext_connectedvmware/tests/latest/recordings/test_connectedvmware.yaml @@ -13,23 +13,23 @@ interactions: ParameterSetName: - -g --name User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/vcenters/azcli-test-vcenter-avs?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/vcenters/azcli-test-vcenter-avs?api-version=2020-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/vcenters/azcli-test-vcenter-avs","name":"azcli-test-vcenter-avs","type":"microsoft.connectedvmwarevsphere/vcenters","kind":"VMware","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/azcli-test-rg/providers/microsoft.extendedlocation/customlocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-05-17T11:38:14.9072191Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-05-17T11:38:32.5791082Z"},"properties":{"credentials":{"username":"cloudadmin@vsphere.local"},"fqdn":"10.160.0.2","port":443,"provisioningState":"Succeeded","customResourceName":"fc8fce52-028e-4b61-b931-9a5902ab5a81","uuid":"fc8fce52-028e-4b61-b931-9a5902ab5a81","version":"6.7.0","instanceUuid":"4ea21e20-2883-44e4-9224-0a48dfff2a81","connectionStatus":"Connected"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/vcenters/azcli-test-vcenter-avs","name":"azcli-test-vcenter-avs","type":"microsoft.connectedvmwarevsphere/vcenters","kind":"VMware","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/az-cli-test2/providers/microsoft.extendedlocation/customlocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-09-26T12:00:13.8227026Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-10-07T06:19:35.5120885Z"},"properties":{"credentials":{"username":"cloudadmin@vsphere.local"},"fqdn":"10.220.0.2","port":443,"provisioningState":"Succeeded","uuid":"7a64e201-f0a9-4ff6-a854-60800edee66a","customResourceName":"7a64e201-f0a9-4ff6-a854-60800edee66a","statuses":[{"status":"True","type":"Connected","lastUpdatedAt":"2021-10-07T06:19:09Z"},{"status":"True","type":"Ready","lastUpdatedAt":"2021-09-26T12:00:29.3289417Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2021-09-26T12:00:29.3289417Z"}],"version":"6.7.0","instanceUuid":"90dc6a44-9d08-4c0f-942d-4968dea5c526","connectionStatus":"Connected"}}' headers: cache-control: - no-cache content-length: - - '1093' + - '1339' content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:37:50 GMT + - Thu, 14 Oct 2021 11:38:56 GMT etag: - - '"03005e99-0000-3400-0000-60a255b90000"' + - '"00004cec-0000-3400-0000-615e91770000"' expires: - '-1' pragma: @@ -61,43 +61,43 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/vcenters?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/vcenters?api-version=2020-10-01-preview response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/vcenters/azcli-test-vcenter-avs","name":"azcli-test-vcenter-avs","type":"microsoft.connectedvmwarevsphere/vcenters","kind":"VMware","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/azcli-test-rg/providers/microsoft.extendedlocation/customlocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-05-17T11:38:14.9072191Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-05-17T11:38:32.5791082Z"},"properties":{"credentials":{"username":"cloudadmin@vsphere.local"},"fqdn":"10.160.0.2","port":443,"provisioningState":"Succeeded","customResourceName":"fc8fce52-028e-4b61-b931-9a5902ab5a81","uuid":"fc8fce52-028e-4b61-b931-9a5902ab5a81","version":"6.7.0","instanceUuid":"4ea21e20-2883-44e4-9224-0a48dfff2a81","connectionStatus":"Connected"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/vcenters/azcli-test-vcenter-avs","name":"azcli-test-vcenter-avs","type":"microsoft.connectedvmwarevsphere/vcenters","kind":"VMware","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/az-cli-test2/providers/microsoft.extendedlocation/customlocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-09-26T12:00:13.8227026Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-10-07T06:19:35.5120885Z"},"properties":{"credentials":{"username":"cloudadmin@vsphere.local"},"fqdn":"10.220.0.2","port":443,"provisioningState":"Succeeded","uuid":"7a64e201-f0a9-4ff6-a854-60800edee66a","customResourceName":"7a64e201-f0a9-4ff6-a854-60800edee66a","statuses":[{"status":"True","type":"Connected","lastUpdatedAt":"2021-10-07T06:19:09Z"},{"status":"True","type":"Ready","lastUpdatedAt":"2021-09-26T12:00:29.3289417Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2021-09-26T12:00:29.3289417Z"}],"version":"6.7.0","instanceUuid":"90dc6a44-9d08-4c0f-942d-4968dea5c526","connectionStatus":"Connected"}}]}' headers: cache-control: - no-cache content-length: - - '1105' + - '1351' content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:37:52 GMT + - Thu, 14 Oct 2021 11:38:58 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - Accept-Encoding x-content-type-options: - nosniff - x-ms-providerhub-traffic: - - 'True' + x-ms-original-request-ids: + - f1920e97-15a2-4013-8b8e-a88995b6b49a + - a8fc31a4-0553-4cb7-bffd-8a131eadd661 + - b492cf0b-53f7-4704-a6b6-ccc40c08084a status: code: 200 message: OK - request: body: '{"location": "eastus2euap", "extendedLocation": {"type": "CustomLocation", - "name": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"}, - "properties": {"vCenterId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/VCenters/azcli-test-vcenter-avs", - "moRefId": "resgroup-5034"}}' + "name": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"}, + "properties": {"vCenterId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs", + "moRefId": "resgroup-74941"}}' headers: Accept: - application/json @@ -108,37 +108,37 @@ interactions: Connection: - keep-alive Content-Length: - - '454' + - '453' Content-Type: - application/json ParameterSetName: - -g -l --custom-location --vcenter --mo-ref-id --name User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/azcli-test-resource-pool?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/azcli-test-resource-pool?api-version=2020-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/azcli-test-resource-pool","name":"azcli-test-resource-pool","type":"microsoft.connectedvmwarevsphere/resourcepools","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-05-20T08:37:55.6347759Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-20T08:37:55.6347759Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/VCenters/azcli-test-vcenter-avs","moRefId":"resgroup-5034","provisioningState":"Accepted"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/azcli-test-resource-pool","name":"azcli-test-resource-pool","type":"microsoft.connectedvmwarevsphere/resourcepools","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-10-14T11:39:12.7474817Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-10-14T11:39:12.7474817Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs","moRefId":"resgroup-74941","provisioningState":"Accepted"}}' headers: api-supported-versions: - - 2019-12-20-privatepreview, 2020-10-01-preview + - 2020-10-01-preview azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/7a3ba638-76c1-462c-9eda-3ab3e685d8c6?api-version=2020-10-01-preview + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/28acca8e-cc33-4c11-8049-d7b4a1d9e8f0*F74FB8E8D5ACE8462137370B4094655F6ACA11599FD41ABE067321E2CD9379A3?api-version=2020-10-01-preview cache-control: - no-cache content-length: - - '972' + - '970' content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:37:57 GMT + - Thu, 14 Oct 2021 11:39:15 GMT etag: - - '"00006fb2-0000-3400-0000-60a61fe50000"' + - '"0200967a-0000-3400-0000-616816e20000"' expires: - '-1' location: - - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/ResourcePools/azcli-test-resource-pool + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/ResourcePools/azcli-test-resource-pool pragma: - no-cache strict-transport-security: @@ -166,23 +166,23 @@ interactions: ParameterSetName: - -g -l --custom-location --vcenter --mo-ref-id --name User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/7a3ba638-76c1-462c-9eda-3ab3e685d8c6?api-version=2020-10-01-preview + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/28acca8e-cc33-4c11-8049-d7b4a1d9e8f0*F74FB8E8D5ACE8462137370B4094655F6ACA11599FD41ABE067321E2CD9379A3?api-version=2020-10-01-preview response: body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/7a3ba638-76c1-462c-9eda-3ab3e685d8c6","name":"7a3ba638-76c1-462c-9eda-3ab3e685d8c6","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/azcli-test-resource-pool","status":"Succeeded","startTime":"2021-05-20T08:37:57.5788707Z","endTime":"2021-05-20T08:38:02.9907921Z","properties":null}' + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/28acca8e-cc33-4c11-8049-d7b4a1d9e8f0*F74FB8E8D5ACE8462137370B4094655F6ACA11599FD41ABE067321E2CD9379A3","name":"28acca8e-cc33-4c11-8049-d7b4a1d9e8f0*F74FB8E8D5ACE8462137370B4094655F6ACA11599FD41ABE067321E2CD9379A3","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/azcli-test-resource-pool","status":"Succeeded","startTime":"2021-10-14T11:39:14.336166Z","endTime":"2021-10-14T11:39:23.3998618Z","properties":null}' headers: cache-control: - no-cache content-length: - - '476' + - '604' content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:38:28 GMT + - Thu, 14 Oct 2021 11:39:46 GMT etag: - - '"0300235b-0000-3400-0000-60a61fea0000"' + - '"0300ca92-0000-3400-0000-616816eb0000"' expires: - '-1' pragma: @@ -212,23 +212,23 @@ interactions: ParameterSetName: - -g -l --custom-location --vcenter --mo-ref-id --name User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/azcli-test-resource-pool?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/azcli-test-resource-pool?api-version=2020-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/azcli-test-resource-pool","name":"azcli-test-resource-pool","type":"microsoft.connectedvmwarevsphere/resourcepools","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-05-20T08:37:55.6347759Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-05-20T08:38:02.7469224Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/VCenters/azcli-test-vcenter-avs","moRefId":"resgroup-5034","provisioningState":"Succeeded","customResourceName":"4f76ae05-2004-4d3b-bcde-372ef167b680","uuid":"4f76ae05-2004-4d3b-bcde-372ef167b680","moName":"SanmishraResourcePool","cpuSharesLevel":"normal","cpuLimitMHz":-1,"memSharesLevel":"normal","memLimitMB":-1}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/azcli-test-resource-pool","name":"azcli-test-resource-pool","type":"microsoft.connectedvmwarevsphere/resourcepools","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-10-14T11:39:12.7474817Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-10-14T11:39:23.2209664Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs","moRefId":"resgroup-74941","provisioningState":"Succeeded","uuid":"0a3f5e0e-13ed-4e43-93fe-a40b4a03ece6","customResourceName":"0a3f5e0e-13ed-4e43-93fe-a40b4a03ece6","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2021-10-14T11:39:23.1780815Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2021-10-14T11:39:23.1780815Z"}],"moName":"azclitest-rp","cpuSharesLevel":"normal","cpuLimitMHz":-1,"memSharesLevel":"normal","memLimitMB":-1}}' headers: cache-control: - no-cache content-length: - - '1217' + - '1378' content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:38:28 GMT + - Thu, 14 Oct 2021 11:39:46 GMT etag: - - '"000075b2-0000-3400-0000-60a61feb0000"' + - '"02009d7a-0000-3400-0000-616816eb0000"' expires: - '-1' pragma: @@ -260,23 +260,23 @@ interactions: ParameterSetName: - -g --name User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/azcli-test-resource-pool?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/azcli-test-resource-pool?api-version=2020-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/azcli-test-resource-pool","name":"azcli-test-resource-pool","type":"microsoft.connectedvmwarevsphere/resourcepools","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-05-20T08:37:55.6347759Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-05-20T08:38:02.7469224Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/VCenters/azcli-test-vcenter-avs","moRefId":"resgroup-5034","provisioningState":"Succeeded","customResourceName":"4f76ae05-2004-4d3b-bcde-372ef167b680","uuid":"4f76ae05-2004-4d3b-bcde-372ef167b680","moName":"SanmishraResourcePool","cpuSharesLevel":"normal","cpuLimitMHz":-1,"memSharesLevel":"normal","memLimitMB":-1}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/azcli-test-resource-pool","name":"azcli-test-resource-pool","type":"microsoft.connectedvmwarevsphere/resourcepools","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-10-14T11:39:12.7474817Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-10-14T11:39:23.2209664Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs","moRefId":"resgroup-74941","provisioningState":"Succeeded","uuid":"0a3f5e0e-13ed-4e43-93fe-a40b4a03ece6","customResourceName":"0a3f5e0e-13ed-4e43-93fe-a40b4a03ece6","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2021-10-14T11:39:23.1780815Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2021-10-14T11:39:23.1780815Z"}],"moName":"azclitest-rp","cpuSharesLevel":"normal","cpuLimitMHz":-1,"memSharesLevel":"normal","memLimitMB":-1}}' headers: cache-control: - no-cache content-length: - - '1217' + - '1378' content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:38:30 GMT + - Thu, 14 Oct 2021 11:39:49 GMT etag: - - '"000075b2-0000-3400-0000-60a61feb0000"' + - '"02009d7a-0000-3400-0000-616816eb0000"' expires: - '-1' pragma: @@ -308,84 +308,84 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/resourcePools?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/resourcePools?api-version=2020-10-01-preview response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/azcli-test-resource-pool","name":"azcli-test-resource-pool","type":"microsoft.connectedvmwarevsphere/resourcepools","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-05-20T08:37:55.6347759Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-05-20T08:38:02.7469224Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/VCenters/azcli-test-vcenter-avs","moRefId":"resgroup-5034","provisioningState":"Succeeded","customResourceName":"4f76ae05-2004-4d3b-bcde-372ef167b680","uuid":"4f76ae05-2004-4d3b-bcde-372ef167b680","moName":"SanmishraResourcePool","cpuSharesLevel":"normal","cpuLimitMHz":-1,"memSharesLevel":"normal","memLimitMB":-1}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/azcli-test-resource-pool","name":"azcli-test-resource-pool","type":"microsoft.connectedvmwarevsphere/resourcepools","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-10-14T11:39:12.7474817Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-10-14T11:39:23.2209664Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs","moRefId":"resgroup-74941","provisioningState":"Succeeded","uuid":"0a3f5e0e-13ed-4e43-93fe-a40b4a03ece6","customResourceName":"0a3f5e0e-13ed-4e43-93fe-a40b4a03ece6","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2021-10-14T11:39:23.1780815Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2021-10-14T11:39:23.1780815Z"}],"moName":"azclitest-rp","cpuSharesLevel":"normal","cpuLimitMHz":-1,"memSharesLevel":"normal","memLimitMB":-1}}]}' headers: cache-control: - no-cache content-length: - - '1229' + - '1390' content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:38:31 GMT + - Thu, 14 Oct 2021 11:39:51 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - Accept-Encoding x-content-type-options: - nosniff - x-ms-providerhub-traffic: - - 'True' + x-ms-original-request-ids: + - 6e3f8ebd-3dd7-4e3d-afa1-c3c2209d9cfc + - 9dd5fbb9-c547-446c-906f-1fd1a4a11107 + - 311b9d6e-0283-4938-8d81-7aef6f0a40a8 status: code: 200 message: OK - request: body: '{"location": "eastus2euap", "extendedLocation": {"type": "CustomLocation", - "name": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"}, - "properties": {"vCenterId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/VCenters/azcli-test-vcenter-avs", - "moRefId": "network-o761"}}' + "name": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"}, + "properties": {"vCenterId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs", + "moRefId": "domain-c7"}}' headers: Accept: - application/json Accept-Encoding: - gzip, deflate CommandName: - - connectedvmware virtual-network create + - connectedvmware cluster create Connection: - keep-alive Content-Length: - - '453' + - '448' Content-Type: - application/json ParameterSetName: - -g -l --custom-location --vcenter --mo-ref-id --name User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks/azcli-test-virtual-network?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/clusters/azcli-test-cluster?api-version=2020-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks/azcli-test-virtual-network","name":"azcli-test-virtual-network","type":"microsoft.connectedvmwarevsphere/virtualnetworks","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-05-20T08:38:34.5568052Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-20T08:38:34.5568052Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/VCenters/azcli-test-vcenter-avs","moRefId":"network-o761","provisioningState":"Accepted"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/clusters/azcli-test-cluster","name":"azcli-test-cluster","type":"microsoft.connectedvmwarevsphere/clusters","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-10-14T11:40:00.3694462Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-10-14T11:40:00.3694462Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs","moRefId":"domain-c7","provisioningState":"Accepted"}}' headers: api-supported-versions: - - 2019-12-20-privatepreview, 2020-10-01-preview + - 2020-10-01-preview azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/6706dad8-f453-402e-91f8-d3cb5c8b8835?api-version=2020-10-01-preview + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/baa08fda-d70a-4f31-ba89-ff10e0090d04*7E3402A3D560B71714CB10DE7D20A637F63719BF4A36BD182218E7887CA8C359?api-version=2020-10-01-preview cache-control: - no-cache content-length: - - '979' + - '943' content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:38:36 GMT + - Thu, 14 Oct 2021 11:40:03 GMT etag: - - '"03003f3e-0000-3400-0000-60a6200c0000"' + - '"0d00f6a9-0000-3400-0000-616817120000"' expires: - '-1' location: - - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/Clusters/azcli-test-cluster pragma: - no-cache strict-transport-security: @@ -395,7 +395,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -407,29 +407,29 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - connectedvmware virtual-network create + - connectedvmware cluster create Connection: - keep-alive ParameterSetName: - -g -l --custom-location --vcenter --mo-ref-id --name User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/6706dad8-f453-402e-91f8-d3cb5c8b8835?api-version=2020-10-01-preview + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/baa08fda-d70a-4f31-ba89-ff10e0090d04*7E3402A3D560B71714CB10DE7D20A637F63719BF4A36BD182218E7887CA8C359?api-version=2020-10-01-preview response: body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/6706dad8-f453-402e-91f8-d3cb5c8b8835","name":"6706dad8-f453-402e-91f8-d3cb5c8b8835","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks/azcli-test-virtual-network","status":"Succeeded","startTime":"2021-05-20T08:38:36.2649736Z","endTime":"2021-05-20T08:38:40.8917984Z","properties":null}' + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/baa08fda-d70a-4f31-ba89-ff10e0090d04*7E3402A3D560B71714CB10DE7D20A637F63719BF4A36BD182218E7887CA8C359","name":"baa08fda-d70a-4f31-ba89-ff10e0090d04*7E3402A3D560B71714CB10DE7D20A637F63719BF4A36BD182218E7887CA8C359","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/clusters/azcli-test-cluster","status":"Succeeded","startTime":"2021-10-14T11:40:02.4707196Z","endTime":"2021-10-14T11:40:10.1999248Z","properties":null}' headers: cache-control: - no-cache content-length: - - '480' + - '594' content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:39:06 GMT + - Thu, 14 Oct 2021 11:40:34 GMT etag: - - '"0300285b-0000-3400-0000-60a620100000"' + - '"0300e692-0000-3400-0000-6168171a0000"' expires: - '-1' pragma: @@ -453,29 +453,29 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - connectedvmware virtual-network create + - connectedvmware cluster create Connection: - keep-alive ParameterSetName: - -g -l --custom-location --vcenter --mo-ref-id --name User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks/azcli-test-virtual-network?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/clusters/azcli-test-cluster?api-version=2020-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks/azcli-test-virtual-network","name":"azcli-test-virtual-network","type":"microsoft.connectedvmwarevsphere/virtualnetworks","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-05-20T08:38:34.5568052Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-05-20T08:38:40.6787229Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/VCenters/azcli-test-vcenter-avs","moRefId":"network-o761","provisioningState":"Succeeded","customResourceName":"cf74f72f-b211-4c33-9d71-436729f9b46e","uuid":"cf74f72f-b211-4c33-9d71-436729f9b46e","moName":"segment-2"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/clusters/azcli-test-cluster","name":"azcli-test-cluster","type":"microsoft.connectedvmwarevsphere/clusters","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-10-14T11:40:00.3694462Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-10-14T11:40:10.0041655Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs","moRefId":"domain-c7","provisioningState":"Succeeded","uuid":"06ab6c87-f953-4171-8e00-83cdb210aaa9","customResourceName":"06ab6c87-f953-4171-8e00-83cdb210aaa9","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2021-10-14T11:40:09.9540129Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2021-10-14T11:40:09.9540129Z"}],"datastoreIds":[],"networkIds":[],"moName":"Cluster-1"}}' headers: cache-control: - no-cache content-length: - - '1127' + - '1297' content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:39:07 GMT + - Thu, 14 Oct 2021 11:40:35 GMT etag: - - '"0300453e-0000-3400-0000-60a620100000"' + - '"0d0004aa-0000-3400-0000-6168171a0000"' expires: - '-1' pragma: @@ -501,29 +501,29 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - connectedvmware virtual-network show + - connectedvmware cluster show Connection: - keep-alive ParameterSetName: - -g --name User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks/azcli-test-virtual-network?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/clusters/azcli-test-cluster?api-version=2020-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks/azcli-test-virtual-network","name":"azcli-test-virtual-network","type":"microsoft.connectedvmwarevsphere/virtualnetworks","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-05-20T08:38:34.5568052Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-05-20T08:38:40.6787229Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/VCenters/azcli-test-vcenter-avs","moRefId":"network-o761","provisioningState":"Succeeded","customResourceName":"cf74f72f-b211-4c33-9d71-436729f9b46e","uuid":"cf74f72f-b211-4c33-9d71-436729f9b46e","moName":"segment-2"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/clusters/azcli-test-cluster","name":"azcli-test-cluster","type":"microsoft.connectedvmwarevsphere/clusters","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-10-14T11:40:00.3694462Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-10-14T11:40:10.0041655Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs","moRefId":"domain-c7","provisioningState":"Succeeded","uuid":"06ab6c87-f953-4171-8e00-83cdb210aaa9","customResourceName":"06ab6c87-f953-4171-8e00-83cdb210aaa9","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2021-10-14T11:40:09.9540129Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2021-10-14T11:40:09.9540129Z"}],"datastoreIds":[],"networkIds":[],"moName":"Cluster-1"}}' headers: cache-control: - no-cache content-length: - - '1127' + - '1297' content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:39:09 GMT + - Thu, 14 Oct 2021 11:40:38 GMT etag: - - '"0300453e-0000-3400-0000-60a620100000"' + - '"0d0004aa-0000-3400-0000-6168171a0000"' expires: - '-1' pragma: @@ -549,90 +549,90 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - connectedvmware virtual-network list + - connectedvmware cluster list Connection: - keep-alive ParameterSetName: - -g User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/clusters?api-version=2020-10-01-preview response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks/azcli-test-virtual-network","name":"azcli-test-virtual-network","type":"microsoft.connectedvmwarevsphere/virtualnetworks","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-05-20T08:38:34.5568052Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-05-20T08:38:40.6787229Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/VCenters/azcli-test-vcenter-avs","moRefId":"network-o761","provisioningState":"Succeeded","customResourceName":"cf74f72f-b211-4c33-9d71-436729f9b46e","uuid":"cf74f72f-b211-4c33-9d71-436729f9b46e","moName":"segment-2"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/clusters/azcli-test-cluster","name":"azcli-test-cluster","type":"microsoft.connectedvmwarevsphere/clusters","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-10-14T11:40:00.3694462Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-10-14T11:40:10.0041655Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs","moRefId":"domain-c7","provisioningState":"Succeeded","uuid":"06ab6c87-f953-4171-8e00-83cdb210aaa9","customResourceName":"06ab6c87-f953-4171-8e00-83cdb210aaa9","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2021-10-14T11:40:09.9540129Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2021-10-14T11:40:09.9540129Z"}],"datastoreIds":[],"networkIds":[],"moName":"Cluster-1"}}]}' headers: cache-control: - no-cache content-length: - - '1139' + - '1309' content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:39:10 GMT + - Thu, 14 Oct 2021 11:40:41 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - Accept-Encoding x-content-type-options: - nosniff - x-ms-providerhub-traffic: - - 'True' + x-ms-original-request-ids: + - 773477a6-d433-4961-8473-e8db070c69dc + - b0fd37f5-9645-4491-b1da-3cb2735927ed + - a3a282a0-cbe1-48d4-840d-3436c36c62a2 status: code: 200 message: OK - request: body: '{"location": "eastus2euap", "extendedLocation": {"type": "CustomLocation", - "name": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"}, - "properties": {"vCenterId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/VCenters/azcli-test-vcenter-avs", - "moRefId": "vm-55"}}' + "name": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"}, + "properties": {"vCenterId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs", + "moRefId": "datastore-11"}}' headers: Accept: - application/json Accept-Encoding: - gzip, deflate CommandName: - - connectedvmware vm-template create + - connectedvmware datastore create Connection: - keep-alive Content-Length: - - '446' + - '451' Content-Type: - application/json ParameterSetName: - -g -l --custom-location --vcenter --mo-ref-id --name User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/azcli-test-vm-template?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/datastores/azcli-test-datastore?api-version=2020-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/azcli-test-vm-template","name":"azcli-test-vm-template","type":"microsoft.connectedvmwarevsphere/virtualmachinetemplates","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-05-20T08:39:12.5881165Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-20T08:39:12.5881165Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/VCenters/azcli-test-vcenter-avs","moRefId":"vm-55","provisioningState":"Accepted"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/datastores/azcli-test-datastore","name":"azcli-test-datastore","type":"microsoft.connectedvmwarevsphere/datastores","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-10-14T11:40:49.4124212Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-10-14T11:40:49.4124212Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs","moRefId":"datastore-11","provisioningState":"Accepted"}}' headers: api-supported-versions: - - 2019-12-20-privatepreview, 2020-10-01-preview + - 2020-10-01-preview azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/6adcef3a-863d-4f9b-affd-c8ceb7a5d4e6?api-version=2020-10-01-preview + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/e14998cf-2771-4079-a992-5ea51ad139fb*3FB3EFBB90995B10712C33D83D0AA785C0894818377DDCA49EB2500901C7D1E3?api-version=2020-10-01-preview cache-control: - no-cache content-length: - - '980' + - '954' content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:39:14 GMT + - Thu, 14 Oct 2021 11:40:51 GMT etag: - - '"00003985-0000-3400-0000-60a620320000"' + - '"0000ac5e-0000-3400-0000-616817430000"' expires: - '-1' location: - - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualMachineTemplates/azcli-test-vm-template + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/Datastores/azcli-test-datastore pragma: - no-cache strict-transport-security: @@ -642,7 +642,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -654,29 +654,29 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - connectedvmware vm-template create + - connectedvmware datastore create Connection: - keep-alive ParameterSetName: - -g -l --custom-location --vcenter --mo-ref-id --name User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/6adcef3a-863d-4f9b-affd-c8ceb7a5d4e6?api-version=2020-10-01-preview + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/e14998cf-2771-4079-a992-5ea51ad139fb*3FB3EFBB90995B10712C33D83D0AA785C0894818377DDCA49EB2500901C7D1E3?api-version=2020-10-01-preview response: body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/6adcef3a-863d-4f9b-affd-c8ceb7a5d4e6","name":"6adcef3a-863d-4f9b-affd-c8ceb7a5d4e6","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/azcli-test-vm-template","status":"Succeeded","startTime":"2021-05-20T08:39:14.1707703Z","endTime":"2021-05-20T08:39:17.3225485Z","properties":null}' + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/e14998cf-2771-4079-a992-5ea51ad139fb*3FB3EFBB90995B10712C33D83D0AA785C0894818377DDCA49EB2500901C7D1E3","name":"e14998cf-2771-4079-a992-5ea51ad139fb*3FB3EFBB90995B10712C33D83D0AA785C0894818377DDCA49EB2500901C7D1E3","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/datastores/azcli-test-datastore","status":"Succeeded","startTime":"2021-10-14T11:40:50.9485439Z","endTime":"2021-10-14T11:40:57.8867201Z","properties":null}' headers: cache-control: - no-cache content-length: - - '484' + - '598' content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:39:44 GMT + - Thu, 14 Oct 2021 11:41:22 GMT etag: - - '"03002c5b-0000-3400-0000-60a620350000"' + - '"0300f592-0000-3400-0000-616817490000"' expires: - '-1' pragma: @@ -700,32 +700,29 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - connectedvmware vm-template create + - connectedvmware datastore create Connection: - keep-alive ParameterSetName: - -g -l --custom-location --vcenter --mo-ref-id --name User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/azcli-test-vm-template?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/datastores/azcli-test-datastore?api-version=2020-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/azcli-test-vm-template","name":"azcli-test-vm-template","type":"microsoft.connectedvmwarevsphere/virtualmachinetemplates","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-05-20T08:39:12.5881165Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-05-20T08:39:17.0717431Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/VCenters/azcli-test-vcenter-avs","moRefId":"vm-55","provisioningState":"Succeeded","customResourceName":"7eeb56cf-13e8-48e6-b209-534a82e21b45","uuid":"7eeb56cf-13e8-48e6-b209-534a82e21b45","networkInterfaces":[{"name":"nic_1","label":"Network - adapter 1","macAddress":"00:50:56:93:2b:71","networkMoRefId":"network-o50","networkMoName":"segment-1","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}],"disks":[{"diskObjectId":"1816-2000","name":"disk_1","label":"Hard - disk 1","diskSizeGB":10,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0}],"moName":"azurevmwarecloudtestubuntu","memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"osType":"Linux","osName":"Ubuntu - Linux (64-bit)","folderPath":"SDDC-Datacenter/Templates"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/datastores/azcli-test-datastore","name":"azcli-test-datastore","type":"microsoft.connectedvmwarevsphere/datastores","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-10-14T11:40:49.4124212Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-10-14T11:40:57.6845531Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs","moRefId":"datastore-11","provisioningState":"Succeeded","uuid":"e1d41ff5-b573-45e9-b52d-362b2b8583fb","customResourceName":"e1d41ff5-b573-45e9-b52d-362b2b8583fb","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2021-10-14T11:40:57.6383934Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2021-10-14T11:40:57.6383934Z"}],"moName":"vsanDatastore"}}' headers: cache-control: - no-cache content-length: - - '1722' + - '1278' content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:39:45 GMT + - Thu, 14 Oct 2021 11:41:23 GMT etag: - - '"00003f85-0000-3400-0000-60a620350000"' + - '"0000b35e-0000-3400-0000-616817490000"' expires: - '-1' pragma: @@ -751,32 +748,29 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - connectedvmware vm-template show + - connectedvmware datastore show Connection: - keep-alive ParameterSetName: - -g --name User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/azcli-test-vm-template?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/datastores/azcli-test-datastore?api-version=2020-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/azcli-test-vm-template","name":"azcli-test-vm-template","type":"microsoft.connectedvmwarevsphere/virtualmachinetemplates","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-05-20T08:39:12.5881165Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-05-20T08:39:17.0717431Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/VCenters/azcli-test-vcenter-avs","moRefId":"vm-55","provisioningState":"Succeeded","customResourceName":"7eeb56cf-13e8-48e6-b209-534a82e21b45","uuid":"7eeb56cf-13e8-48e6-b209-534a82e21b45","networkInterfaces":[{"name":"nic_1","label":"Network - adapter 1","macAddress":"00:50:56:93:2b:71","networkMoRefId":"network-o50","networkMoName":"segment-1","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}],"disks":[{"diskObjectId":"1816-2000","name":"disk_1","label":"Hard - disk 1","diskSizeGB":10,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0}],"moName":"azurevmwarecloudtestubuntu","memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"osType":"Linux","osName":"Ubuntu - Linux (64-bit)","folderPath":"SDDC-Datacenter/Templates"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/datastores/azcli-test-datastore","name":"azcli-test-datastore","type":"microsoft.connectedvmwarevsphere/datastores","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-10-14T11:40:49.4124212Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-10-14T11:40:57.6845531Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs","moRefId":"datastore-11","provisioningState":"Succeeded","uuid":"e1d41ff5-b573-45e9-b52d-362b2b8583fb","customResourceName":"e1d41ff5-b573-45e9-b52d-362b2b8583fb","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2021-10-14T11:40:57.6383934Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2021-10-14T11:40:57.6383934Z"}],"moName":"vsanDatastore"}}' headers: cache-control: - no-cache content-length: - - '1722' + - '1278' content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:39:52 GMT + - Thu, 14 Oct 2021 11:41:25 GMT etag: - - '"00003f85-0000-3400-0000-60a620350000"' + - '"0000b35e-0000-3400-0000-616817490000"' expires: - '-1' pragma: @@ -802,155 +796,149 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - connectedvmware vm-template list + - connectedvmware datastore list Connection: - keep-alive ParameterSetName: - -g User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/datastores?api-version=2020-10-01-preview response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/azcli-test-vm-template","name":"azcli-test-vm-template","type":"microsoft.connectedvmwarevsphere/virtualmachinetemplates","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-05-20T08:39:12.5881165Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-05-20T08:39:17.0717431Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/VCenters/azcli-test-vcenter-avs","moRefId":"vm-55","provisioningState":"Succeeded","customResourceName":"7eeb56cf-13e8-48e6-b209-534a82e21b45","uuid":"7eeb56cf-13e8-48e6-b209-534a82e21b45","networkInterfaces":[{"name":"nic_1","label":"Network - adapter 1","macAddress":"00:50:56:93:2b:71","networkMoRefId":"network-o50","networkMoName":"segment-1","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}],"disks":[{"diskObjectId":"1816-2000","name":"disk_1","label":"Hard - disk 1","diskSizeGB":10,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0}],"moName":"azurevmwarecloudtestubuntu","memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"osType":"Linux","osName":"Ubuntu - Linux (64-bit)","folderPath":"SDDC-Datacenter/Templates"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/datastores/azcli-test-datastore","name":"azcli-test-datastore","type":"microsoft.connectedvmwarevsphere/datastores","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-10-14T11:40:49.4124212Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-10-14T11:40:57.6845531Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs","moRefId":"datastore-11","provisioningState":"Succeeded","uuid":"e1d41ff5-b573-45e9-b52d-362b2b8583fb","customResourceName":"e1d41ff5-b573-45e9-b52d-362b2b8583fb","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2021-10-14T11:40:57.6383934Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2021-10-14T11:40:57.6383934Z"}],"moName":"vsanDatastore"}}]}' headers: cache-control: - no-cache content-length: - - '1734' + - '1290' content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:39:54 GMT + - Thu, 14 Oct 2021 11:41:27 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - Accept-Encoding x-content-type-options: - nosniff - x-ms-providerhub-traffic: - - 'True' + x-ms-original-request-ids: + - 5f0829da-4788-46f0-9c2c-ee3ab0105877 + - d596361f-9f45-4403-8868-402e7a46f5f6 + - c3f084dd-3780-4060-a56f-f059fbee2e33 status: code: 200 message: OK - request: - body: null + body: '{"location": "eastus2euap", "extendedLocation": {"type": "CustomLocation", + "name": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"}, + "properties": {"vCenterId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs", + "moRefId": "host-10"}}' headers: Accept: - application/json Accept-Encoding: - gzip, deflate CommandName: - - connectedvmware inventory-item show + - connectedvmware host create Connection: - keep-alive + Content-Length: + - '446' + Content-Type: + - application/json ParameterSetName: - - -g --vcenter-name --inventory-item + - -g -l --custom-location --vcenter --mo-ref-id --name User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/vcenters/azcli-test-vcenter-avs/inventoryItems/resgroup-5034?api-version=2020-10-01-preview + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/hosts/azcli-test-host?api-version=2020-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/azcli-test-vcenter-avs/InventoryItems/resgroup-5034","name":"resgroup-5034","type":"microsoft.connectedvmwarevsphere/vcenters/inventoryitems","systemData":{"createdBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","createdByType":"Application","createdAt":"2021-05-17T11:38:31.7591468Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-05-20T08:37:53.6705422Z"},"properties":{"inventoryType":"ResourcePool","managedResourceId":"","moRefId":"resgroup-5034","provisioningState":"Succeeded","parent":{"moName":"Resources","inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/azcli-test-vcenter-avs/InventoryItems/resgroup-8"},"moName":"SanmishraResourcePool"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/hosts/azcli-test-host","name":"azcli-test-host","type":"microsoft.connectedvmwarevsphere/hosts","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-10-14T11:41:37.6315237Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-10-14T11:41:37.6315237Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs","moRefId":"host-10","provisioningState":"Accepted"}}' headers: + api-supported-versions: + - 2020-10-01-preview + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/6494bfe7-90f4-4039-827d-38aea3d157fd*B606F95858137F7537B56A1887E1F6AE9152C4B01A6618F5BF2320014B671309?api-version=2020-10-01-preview cache-control: - no-cache content-length: - - '954' + - '929' content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:39:55 GMT + - Thu, 14 Oct 2021 11:41:40 GMT etag: - - '"63003b0a-0000-3400-0000-60a61fe10000"' + - '"06005e18-0000-3400-0000-616817730000"' expires: - '-1' + location: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/Hosts/azcli-test-host pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff x-ms-providerhub-traffic: - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1198' status: - code: 200 - message: OK + code: 201 + message: Created - request: - body: '{"location": "eastus2euap", "extendedLocation": {"type": "CustomLocation", - "name": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"}, - "properties": {"resourcePoolId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/resourcepools/azcli-test-resource-pool", - "templateId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/virtualmachinetemplates/azcli-test-vm-template", - "vCenterId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/VCenters/azcli-test-vcenter-avs"}}' + body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - connectedvmware vm create + - connectedvmware host create Connection: - keep-alive - Content-Length: - - '798' - Content-Type: - - application/json ParameterSetName: - - -g -l --custom-location --vcenter --resource-pool --vm-template --name + - -g -l --custom-location --vcenter --mo-ref-id --name User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine?api-version=2020-10-01-preview + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/6494bfe7-90f4-4039-827d-38aea3d157fd*B606F95858137F7537B56A1887E1F6AE9152C4B01A6618F5BF2320014B671309?api-version=2020-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine","name":"azcli-test-virtual-machine","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-05-20T08:39:58.8473016Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-20T08:39:58.8473016Z"},"properties":{"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/resourcepools/azcli-test-resource-pool","templateId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/virtualmachinetemplates/azcli-test-vm-template","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/VCenters/azcli-test-vcenter-avs","provisioningState":"Accepted"}}' + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/6494bfe7-90f4-4039-827d-38aea3d157fd*B606F95858137F7537B56A1887E1F6AE9152C4B01A6618F5BF2320014B671309","name":"6494bfe7-90f4-4039-827d-38aea3d157fd*B606F95858137F7537B56A1887E1F6AE9152C4B01A6618F5BF2320014B671309","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/hosts/azcli-test-host","status":"Succeeded","startTime":"2021-10-14T11:41:39.2843702Z","endTime":"2021-10-14T11:41:46.8968715Z","properties":null}' headers: - api-supported-versions: - - 2019-12-20-privatepreview, 2020-10-01-preview - azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/f2445eee-835c-4a92-bca5-58282a394fe0?api-version=2020-10-01-preview cache-control: - no-cache content-length: - - '1338' + - '588' content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:39:59 GMT + - Thu, 14 Oct 2021 11:42:11 GMT etag: - - '"0f00e332-0000-3400-0000-60a6205f0000"' + - '"03002893-0000-3400-0000-6168177a0000"' expires: - '-1' - location: - - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualMachines/azcli-test-virtual-machine pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff - x-ms-providerhub-traffic: - - 'True' - x-ms-ratelimit-remaining-subscription-writes: - - '1199' status: - code: 201 - message: Created + code: 200 + message: OK - request: body: null headers: @@ -959,29 +947,29 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - connectedvmware vm create + - connectedvmware host create Connection: - keep-alive ParameterSetName: - - -g -l --custom-location --vcenter --resource-pool --vm-template --name + - -g -l --custom-location --vcenter --mo-ref-id --name User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/f2445eee-835c-4a92-bca5-58282a394fe0?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/hosts/azcli-test-host?api-version=2020-10-01-preview response: body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/f2445eee-835c-4a92-bca5-58282a394fe0","name":"f2445eee-835c-4a92-bca5-58282a394fe0","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine","status":"Accepted","startTime":"2021-05-20T08:39:59.3521231Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/hosts/azcli-test-host","name":"azcli-test-host","type":"microsoft.connectedvmwarevsphere/hosts","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-10-14T11:41:37.6315237Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-10-14T11:41:46.6522526Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs","moRefId":"host-10","provisioningState":"Succeeded","uuid":"c91cab96-c61d-44f8-8d60-a73316022420","customResourceName":"c91cab96-c61d-44f8-8d60-a73316022420","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2021-10-14T11:41:46.5929697Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2021-10-14T11:41:46.5929697Z"}],"moName":"esx04-r03.p01.f71506e8bc3e432e9ec20.southcentralus.avs.azure.com"}}' headers: cache-control: - no-cache content-length: - - '420' + - '1304' content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:40:29 GMT + - Thu, 14 Oct 2021 11:42:12 GMT etag: - - '"03002d5b-0000-3400-0000-60a6205f0000"' + - '"06006618-0000-3400-0000-6168177a0000"' expires: - '-1' pragma: @@ -994,6 +982,8 @@ interactions: - Accept-Encoding x-content-type-options: - nosniff + x-ms-providerhub-traffic: + - 'True' status: code: 200 message: OK @@ -1001,33 +991,33 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - connectedvmware vm create + - connectedvmware host show Connection: - keep-alive ParameterSetName: - - -g -l --custom-location --vcenter --resource-pool --vm-template --name + - -g --name User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/f2445eee-835c-4a92-bca5-58282a394fe0?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/hosts/azcli-test-host?api-version=2020-10-01-preview response: body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/f2445eee-835c-4a92-bca5-58282a394fe0","name":"f2445eee-835c-4a92-bca5-58282a394fe0","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine","status":"Accepted","startTime":"2021-05-20T08:39:59.3521231Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/hosts/azcli-test-host","name":"azcli-test-host","type":"microsoft.connectedvmwarevsphere/hosts","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-10-14T11:41:37.6315237Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-10-14T11:41:46.6522526Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs","moRefId":"host-10","provisioningState":"Succeeded","uuid":"c91cab96-c61d-44f8-8d60-a73316022420","customResourceName":"c91cab96-c61d-44f8-8d60-a73316022420","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2021-10-14T11:41:46.5929697Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2021-10-14T11:41:46.5929697Z"}],"moName":"esx04-r03.p01.f71506e8bc3e432e9ec20.southcentralus.avs.azure.com"}}' headers: cache-control: - no-cache content-length: - - '420' + - '1304' content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:41:01 GMT + - Thu, 14 Oct 2021 11:42:15 GMT etag: - - '"03002d5b-0000-3400-0000-60a6205f0000"' + - '"06006618-0000-3400-0000-6168177a0000"' expires: - '-1' pragma: @@ -1040,6 +1030,8 @@ interactions: - Accept-Encoding x-content-type-options: - nosniff + x-ms-providerhub-traffic: + - 'True' status: code: 200 message: OK @@ -1047,133 +1039,138 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - connectedvmware vm create + - connectedvmware host list Connection: - keep-alive ParameterSetName: - - -g -l --custom-location --vcenter --resource-pool --vm-template --name + - -g User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/f2445eee-835c-4a92-bca5-58282a394fe0?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/hosts?api-version=2020-10-01-preview response: body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/f2445eee-835c-4a92-bca5-58282a394fe0","name":"f2445eee-835c-4a92-bca5-58282a394fe0","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine","status":"Succeeded","startTime":"2021-05-20T08:39:59.3521231Z","endTime":"2021-05-20T08:41:24.1383683Z","properties":null}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/hosts/azcli-test-host","name":"azcli-test-host","type":"microsoft.connectedvmwarevsphere/hosts","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-10-14T11:41:37.6315237Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-10-14T11:41:46.6522526Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs","moRefId":"host-10","provisioningState":"Succeeded","uuid":"c91cab96-c61d-44f8-8d60-a73316022420","customResourceName":"c91cab96-c61d-44f8-8d60-a73316022420","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2021-10-14T11:41:46.5929697Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2021-10-14T11:41:46.5929697Z"}],"moName":"esx04-r03.p01.f71506e8bc3e432e9ec20.southcentralus.avs.azure.com"}}]}' headers: cache-control: - no-cache content-length: - - '480' + - '1316' content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:41:31 GMT - etag: - - '"0300315b-0000-3400-0000-60a620b40000"' + - Thu, 14 Oct 2021 11:42:17 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - Accept-Encoding x-content-type-options: - nosniff + x-ms-original-request-ids: + - 38364614-2033-4f18-aca1-6562911748e8 + - e760b63d-714d-4279-a335-e3b3ab622847 + - 4bcb52c1-f3b4-42db-92f8-d6e706677505 status: code: 200 message: OK - request: - body: null + body: '{"location": "eastus2euap", "extendedLocation": {"type": "CustomLocation", + "name": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"}, + "properties": {"vCenterId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs", + "moRefId": "network-o61"}}' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - connectedvmware vm create + - connectedvmware virtual-network create Connection: - keep-alive + Content-Length: + - '450' + Content-Type: + - application/json ParameterSetName: - - -g -l --custom-location --vcenter --resource-pool --vm-template --name + - -g -l --custom-location --vcenter --mo-ref-id --name User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine?api-version=2020-10-01-preview + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks/azcli-test-virtual-network?api-version=2020-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine","name":"azcli-test-virtual-machine","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-05-20T08:39:58.8473016Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-05-20T08:41:23.9017897Z"},"properties":{"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/resourcepools/azcli-test-resource-pool","templateId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/virtualmachinetemplates/azcli-test-vm-template","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/VCenters/azcli-test-vcenter-avs","provisioningState":"Succeeded","customResourceName":"57ab57b6-9697-4302-b6dc-25bd98e56fd3","uuid":"57ab57b6-9697-4302-b6dc-25bd98e56fd3","vmId":"57ab57b6-9697-4302-b6dc-25bd98e56fd3","networkProfile":{"networkInterfaces":[{"name":"nic_1","label":"Network - adapter 1","macAddress":"00:50:56:93:c1:59","networkMoRefId":"network-o50","networkMoName":"segment-1","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"13007-2000","name":"disk_1","label":"Hard - disk 1","diskSizeGB":10,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0}],"scsiControllers":[{"type":"lsilogic","controllerKey":1000,"scsiCtlrUnitNumber":7,"sharing":"noSharing"}]},"osProfile":{"computerName":"","osType":"Linux","osName":"Ubuntu - Linux (64-bit)","toolsRunningStatus":"guestToolsRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"11269"},"hardwareProfile":{"memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"instanceUuid":"57ab57b6-9697-4302-b6dc-25bd98e56fd3","moRefId":"vm-25875","moName":"azcli-test-virtual-machine","folderPath":"SDDC-Datacenter","powerState":"poweredOn"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks/azcli-test-virtual-network","name":"azcli-test-virtual-network","type":"microsoft.connectedvmwarevsphere/virtualnetworks","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-10-14T11:42:23.0165103Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-10-14T11:42:23.0165103Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs","moRefId":"network-o61","provisioningState":"Accepted"}}' headers: + api-supported-versions: + - 2020-10-01-preview + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/fa95f995-53c8-4bb9-b0de-0577d9beceb7*F3D669D4A4408B8365FC43D695FED29AD980D9C1D76A5B7C059FEE017F81A77D?api-version=2020-10-01-preview cache-control: - no-cache content-length: - - '2599' + - '975' content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:41:31 GMT + - Thu, 14 Oct 2021 11:42:24 GMT etag: - - '"0f000e33-0000-3400-0000-60a620b40000"' + - '"40007211-0000-3400-0000-6168179f0000"' expires: - '-1' + location: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff x-ms-providerhub-traffic: - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1197' status: - code: 200 - message: OK + code: 201 + message: Created - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - connectedvmware vm show + - connectedvmware virtual-network create Connection: - keep-alive ParameterSetName: - - -g --name + - -g -l --custom-location --vcenter --mo-ref-id --name User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine?api-version=2020-10-01-preview + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/fa95f995-53c8-4bb9-b0de-0577d9beceb7*F3D669D4A4408B8365FC43D695FED29AD980D9C1D76A5B7C059FEE017F81A77D?api-version=2020-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine","name":"azcli-test-virtual-machine","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-05-20T08:39:58.8473016Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-05-20T08:41:23.9017897Z"},"properties":{"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/resourcepools/azcli-test-resource-pool","templateId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/virtualmachinetemplates/azcli-test-vm-template","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/VCenters/azcli-test-vcenter-avs","provisioningState":"Succeeded","customResourceName":"57ab57b6-9697-4302-b6dc-25bd98e56fd3","uuid":"57ab57b6-9697-4302-b6dc-25bd98e56fd3","vmId":"57ab57b6-9697-4302-b6dc-25bd98e56fd3","networkProfile":{"networkInterfaces":[{"name":"nic_1","label":"Network - adapter 1","macAddress":"00:50:56:93:c1:59","networkMoRefId":"network-o50","networkMoName":"segment-1","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"13007-2000","name":"disk_1","label":"Hard - disk 1","diskSizeGB":10,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0}],"scsiControllers":[{"type":"lsilogic","controllerKey":1000,"scsiCtlrUnitNumber":7,"sharing":"noSharing"}]},"osProfile":{"computerName":"","osType":"Linux","osName":"Ubuntu - Linux (64-bit)","toolsRunningStatus":"guestToolsRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"11269"},"hardwareProfile":{"memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"instanceUuid":"57ab57b6-9697-4302-b6dc-25bd98e56fd3","moRefId":"vm-25875","moName":"azcli-test-virtual-machine","folderPath":"SDDC-Datacenter","powerState":"poweredOn"}}' + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/fa95f995-53c8-4bb9-b0de-0577d9beceb7*F3D669D4A4408B8365FC43D695FED29AD980D9C1D76A5B7C059FEE017F81A77D","name":"fa95f995-53c8-4bb9-b0de-0577d9beceb7*F3D669D4A4408B8365FC43D695FED29AD980D9C1D76A5B7C059FEE017F81A77D","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks/azcli-test-virtual-network","status":"Succeeded","startTime":"2021-10-14T11:42:23.546952Z","endTime":"2021-10-14T11:42:31.8446109Z","properties":null}' headers: cache-control: - no-cache content-length: - - '2599' + - '608' content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:41:33 GMT + - Thu, 14 Oct 2021 11:42:55 GMT etag: - - '"0f000e33-0000-3400-0000-60a620b40000"' + - '"03006593-0000-3400-0000-616817a70000"' expires: - '-1' pragma: @@ -1186,8 +1183,6 @@ interactions: - Accept-Encoding x-content-type-options: - nosniff - x-ms-providerhub-traffic: - - 'True' status: code: 200 message: OK @@ -1195,49 +1190,33 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - connectedvmware vm list + - connectedvmware virtual-network create Connection: - keep-alive ParameterSetName: - - -g + - -g -l --custom-location --vcenter --mo-ref-id --name User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks/azcli-test-virtual-network?api-version=2020-10-01-preview response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm1","name":"azcli-test-vm1","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-05-18T12:59:04.7997974Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-05-18T13:00:23.2903159Z"},"properties":{"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/resourcepools/azcli-test-resource-pool","templateId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/virtualmachinetemplates/azcli-test-vm-template","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/VCenters/azcli-test-vcenter-avs","provisioningState":"Failed","customResourceName":"ce0e4391-4972-499a-ba6b-4aad235a5f83","uuid":"ce0e4391-4972-499a-ba6b-4aad235a5f83","vmId":"ce0e4391-4972-499a-ba6b-4aad235a5f83","networkProfile":{"networkInterfaces":[{"name":"nic_1","label":"Network - adapter 1","macAddress":"00:50:56:93:24:aa","networkMoRefId":"network-o50","networkMoName":"segment-1","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"12430-2000","name":"disk_1","label":"Hard - disk 1","diskSizeGB":10,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0}],"scsiControllers":[{"type":"lsilogic","controllerKey":1000,"scsiCtlrUnitNumber":7,"sharing":"noSharing"}]},"osProfile":{"computerName":"","osType":"Linux","osName":"Ubuntu - Linux (64-bit)","toolsRunningStatus":"guestToolsNotRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"11301"},"hardwareProfile":{"memorySizeMB":2048,"numCPUs":1,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"instanceUuid":"ce0e4391-4972-499a-ba6b-4aad235a5f83","moRefId":"vm-24786","moName":"azcli-test-vm1","folderPath":"SDDC-Datacenter","powerState":"poweredOff"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm2","name":"azcli-test-vm2","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-05-18T13:01:40.9747469Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-05-18T13:03:08.5635184Z"},"properties":{"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/resourcepools/azcli-test-resource-pool","templateId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/virtualmachinetemplates/azcli-test-vm-template","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/VCenters/azcli-test-vcenter-avs","provisioningState":"Failed","customResourceName":"73f5c042-0a76-4eae-a5a4-337a1355bf0b","uuid":"73f5c042-0a76-4eae-a5a4-337a1355bf0b","vmId":"73f5c042-0a76-4eae-a5a4-337a1355bf0b","networkProfile":{"networkInterfaces":[{"name":"nic_1","label":"Network - adapter 1","macAddress":"00:50:56:93:d4:5e","networkMoRefId":"network-o50","networkMoName":"segment-1","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"12441-2000","name":"disk_1","label":"Hard - disk 1","diskSizeGB":10,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0}],"scsiControllers":[{"type":"lsilogic","controllerKey":1000,"scsiCtlrUnitNumber":7,"sharing":"noSharing"}]},"osProfile":{"computerName":"","osType":"Linux","osName":"Ubuntu - Linux (64-bit)","toolsRunningStatus":"guestToolsNotRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"11301"},"hardwareProfile":{"memorySizeMB":2048,"numCPUs":1,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"instanceUuid":"73f5c042-0a76-4eae-a5a4-337a1355bf0b","moRefId":"vm-24804","moName":"azcli-test-vm2","folderPath":"SDDC-Datacenter","powerState":"poweredOff"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm5","name":"azcli-test-vm5","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-05-18T18:28:42.4763239Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-05-18T18:30:02.1805026Z"},"properties":{"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/resourcepools/azcli-test-resource-pool","templateId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/virtualmachinetemplates/azcli-test-vm-template","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/VCenters/azcli-test-vcenter-avs","provisioningState":"Failed","customResourceName":"97b4c72d-6fe5-4f09-a71a-f23f97fd023e","uuid":"97b4c72d-6fe5-4f09-a71a-f23f97fd023e","vmId":"97b4c72d-6fe5-4f09-a71a-f23f97fd023e","networkProfile":{"networkInterfaces":[{"name":"nic_1","label":"Network - adapter 1","macAddress":"00:50:56:93:81:7b","networkMoRefId":"network-o50","networkMoName":"segment-1","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"12541-2000","name":"disk_1","label":"Hard - disk 1","diskSizeGB":10,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0}],"scsiControllers":[{"type":"lsilogic","controllerKey":1000,"scsiCtlrUnitNumber":7,"sharing":"noSharing"}]},"osProfile":{"computerName":"","osType":"Linux","osName":"Ubuntu - Linux (64-bit)","toolsRunningStatus":"guestToolsNotRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"11301"},"hardwareProfile":{"memorySizeMB":2048,"numCPUs":1,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"instanceUuid":"97b4c72d-6fe5-4f09-a71a-f23f97fd023e","moRefId":"vm-24976","moName":"azcli-test-vm5","folderPath":"SDDC-Datacenter","powerState":"poweredOff"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm6","name":"azcli-test-vm6","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-05-18T18:36:04.6331302Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-05-18T18:39:37.2256893Z"},"properties":{"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/resourcepools/azcli-test-resource-pool","templateId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/virtualmachinetemplates/azcli-test-vm-template2","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/VCenters/azcli-test-vcenter-avs","provisioningState":"Succeeded","customResourceName":"b84184fc-8e13-4147-a58c-99ac11a82e03","uuid":"b84184fc-8e13-4147-a58c-99ac11a82e03","vmId":"b84184fc-8e13-4147-a58c-99ac11a82e03","networkProfile":{"networkInterfaces":[{"name":"nic_1","label":"Network - adapter 1","macAddress":"00:50:56:93:d1:c3","networkMoRefId":"network-o50","networkMoName":"segment-1","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"12551-2000","name":"disk_1","label":"Hard - disk 1","diskSizeGB":10,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0}],"scsiControllers":[{"type":"lsilogic","controllerKey":1000,"scsiCtlrUnitNumber":7,"sharing":"noSharing"}]},"osProfile":{"computerName":"azcli-test-vm6","osType":"Linux","osName":"Ubuntu - Linux (64-bit)","toolsRunningStatus":"guestToolsNotRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"11269"},"hardwareProfile":{"memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"instanceUuid":"b84184fc-8e13-4147-a58c-99ac11a82e03","moRefId":"vm-24993","moName":"azcli-test-vm6","folderPath":"SDDC-Datacenter","powerState":"poweredOff"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/stop-vm-test","name":"stop-vm-test","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-05-19T07:36:13.9786742Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-05-19T07:37:42.6131581Z"},"properties":{"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/resourcepools/azcli-test-resource-pool","templateId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/virtualmachinetemplates/azcli-test-vm-template","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/VCenters/azcli-test-vcenter-avs","provisioningState":"Failed","customResourceName":"f4e0270f-9f91-4150-b6e9-bb6ac0d3783d","uuid":"f4e0270f-9f91-4150-b6e9-bb6ac0d3783d","vmId":"f4e0270f-9f91-4150-b6e9-bb6ac0d3783d","networkProfile":{"networkInterfaces":[{"name":"nic_1","label":"Network - adapter 1","macAddress":"00:50:56:93:56:85","networkMoRefId":"network-o50","networkMoName":"segment-1","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"12201-2000","name":"disk_1","label":"Hard - disk 1","diskSizeGB":10,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0}],"scsiControllers":[{"type":"lsilogic","controllerKey":1000,"scsiCtlrUnitNumber":7,"sharing":"noSharing"}]},"osProfile":{"computerName":"","osType":"Linux","osName":"Ubuntu - Linux (64-bit)","toolsRunningStatus":"guestToolsNotRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"11301"},"hardwareProfile":{"memorySizeMB":2048,"numCPUs":1,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"instanceUuid":"f4e0270f-9f91-4150-b6e9-bb6ac0d3783d","moRefId":"vm-25216","moName":"stop-vm-test","folderPath":"SDDC-Datacenter","powerState":"poweredOff"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine","name":"azcli-test-virtual-machine","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-05-20T08:39:58.8473016Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-05-20T08:41:23.9017897Z"},"properties":{"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/resourcepools/azcli-test-resource-pool","templateId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/virtualmachinetemplates/azcli-test-vm-template","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/VCenters/azcli-test-vcenter-avs","provisioningState":"Succeeded","customResourceName":"57ab57b6-9697-4302-b6dc-25bd98e56fd3","uuid":"57ab57b6-9697-4302-b6dc-25bd98e56fd3","vmId":"57ab57b6-9697-4302-b6dc-25bd98e56fd3","networkProfile":{"networkInterfaces":[{"name":"nic_1","label":"Network - adapter 1","macAddress":"00:50:56:93:c1:59","networkMoRefId":"network-o50","networkMoName":"segment-1","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"13007-2000","name":"disk_1","label":"Hard - disk 1","diskSizeGB":10,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0}],"scsiControllers":[{"type":"lsilogic","controllerKey":1000,"scsiCtlrUnitNumber":7,"sharing":"noSharing"}]},"osProfile":{"computerName":"","osType":"Linux","osName":"Ubuntu - Linux (64-bit)","toolsRunningStatus":"guestToolsRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"11269"},"hardwareProfile":{"memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"instanceUuid":"57ab57b6-9697-4302-b6dc-25bd98e56fd3","moRefId":"vm-25875","moName":"azcli-test-virtual-machine","folderPath":"SDDC-Datacenter","powerState":"poweredOn"}}]}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks/azcli-test-virtual-network","name":"azcli-test-virtual-network","type":"microsoft.connectedvmwarevsphere/virtualnetworks","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-10-14T11:42:23.0165103Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-10-14T11:42:31.5955954Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs","moRefId":"network-o61","provisioningState":"Succeeded","uuid":"670c6561-7e7f-4b53-af63-139467beccfb","customResourceName":"670c6561-7e7f-4b53-af63-139467beccfb","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2021-10-14T11:42:31.560628Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2021-10-14T11:42:31.560628Z"}],"moName":"Segment-1"}}' headers: cache-control: - no-cache content-length: - - '15448' + - '1293' content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:41:35 GMT + - Thu, 14 Oct 2021 11:42:57 GMT + etag: + - '"40008a11-0000-3400-0000-616817a70000"' expires: - '-1' pragma: @@ -1263,32 +1242,29 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - connectedvmware vm nic show + - connectedvmware virtual-network show Connection: - keep-alive ParameterSetName: - - -g --vm-name --name + - -g --name User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks/azcli-test-virtual-network?api-version=2020-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine","name":"azcli-test-virtual-machine","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-05-20T08:39:58.8473016Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-05-20T08:41:23.9017897Z"},"properties":{"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/resourcepools/azcli-test-resource-pool","templateId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/virtualmachinetemplates/azcli-test-vm-template","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/VCenters/azcli-test-vcenter-avs","provisioningState":"Succeeded","customResourceName":"57ab57b6-9697-4302-b6dc-25bd98e56fd3","uuid":"57ab57b6-9697-4302-b6dc-25bd98e56fd3","vmId":"57ab57b6-9697-4302-b6dc-25bd98e56fd3","networkProfile":{"networkInterfaces":[{"name":"nic_1","label":"Network - adapter 1","macAddress":"00:50:56:93:c1:59","networkMoRefId":"network-o50","networkMoName":"segment-1","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"13007-2000","name":"disk_1","label":"Hard - disk 1","diskSizeGB":10,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0}],"scsiControllers":[{"type":"lsilogic","controllerKey":1000,"scsiCtlrUnitNumber":7,"sharing":"noSharing"}]},"osProfile":{"computerName":"","osType":"Linux","osName":"Ubuntu - Linux (64-bit)","toolsRunningStatus":"guestToolsRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"11269"},"hardwareProfile":{"memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"instanceUuid":"57ab57b6-9697-4302-b6dc-25bd98e56fd3","moRefId":"vm-25875","moName":"azcli-test-virtual-machine","folderPath":"SDDC-Datacenter","powerState":"poweredOn"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks/azcli-test-virtual-network","name":"azcli-test-virtual-network","type":"microsoft.connectedvmwarevsphere/virtualnetworks","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-10-14T11:42:23.0165103Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-10-14T11:42:31.5955954Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs","moRefId":"network-o61","provisioningState":"Succeeded","uuid":"670c6561-7e7f-4b53-af63-139467beccfb","customResourceName":"670c6561-7e7f-4b53-af63-139467beccfb","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2021-10-14T11:42:31.560628Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2021-10-14T11:42:31.560628Z"}],"moName":"Segment-1"}}' headers: cache-control: - no-cache content-length: - - '2599' + - '1293' content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:41:36 GMT + - Thu, 14 Oct 2021 11:43:01 GMT etag: - - '"0f000e33-0000-3400-0000-60a620b40000"' + - '"40008a11-0000-3400-0000-616817a70000"' expires: - '-1' pragma: @@ -1314,134 +1290,134 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - connectedvmware vm nic list + - connectedvmware virtual-network list Connection: - keep-alive ParameterSetName: - - -g --vm-name + - -g User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks?api-version=2020-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine","name":"azcli-test-virtual-machine","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-05-20T08:39:58.8473016Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-05-20T08:41:23.9017897Z"},"properties":{"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/resourcepools/azcli-test-resource-pool","templateId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/virtualmachinetemplates/azcli-test-vm-template","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/VCenters/azcli-test-vcenter-avs","provisioningState":"Succeeded","customResourceName":"57ab57b6-9697-4302-b6dc-25bd98e56fd3","uuid":"57ab57b6-9697-4302-b6dc-25bd98e56fd3","vmId":"57ab57b6-9697-4302-b6dc-25bd98e56fd3","networkProfile":{"networkInterfaces":[{"name":"nic_1","label":"Network - adapter 1","macAddress":"00:50:56:93:c1:59","networkMoRefId":"network-o50","networkMoName":"segment-1","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"13007-2000","name":"disk_1","label":"Hard - disk 1","diskSizeGB":10,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0}],"scsiControllers":[{"type":"lsilogic","controllerKey":1000,"scsiCtlrUnitNumber":7,"sharing":"noSharing"}]},"osProfile":{"computerName":"","osType":"Linux","osName":"Ubuntu - Linux (64-bit)","toolsRunningStatus":"guestToolsRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"11269"},"hardwareProfile":{"memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"instanceUuid":"57ab57b6-9697-4302-b6dc-25bd98e56fd3","moRefId":"vm-25875","moName":"azcli-test-virtual-machine","folderPath":"SDDC-Datacenter","powerState":"poweredOn"}}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks/azcli-test-virtual-network","name":"azcli-test-virtual-network","type":"microsoft.connectedvmwarevsphere/virtualnetworks","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-10-14T11:42:23.0165103Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-10-14T11:42:31.5955954Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs","moRefId":"network-o61","provisioningState":"Succeeded","uuid":"670c6561-7e7f-4b53-af63-139467beccfb","customResourceName":"670c6561-7e7f-4b53-af63-139467beccfb","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2021-10-14T11:42:31.560628Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2021-10-14T11:42:31.560628Z"}],"moName":"Segment-1"}}]}' headers: cache-control: - no-cache content-length: - - '2599' + - '1305' content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:41:38 GMT - etag: - - '"0f000e33-0000-3400-0000-60a620b40000"' + - Thu, 14 Oct 2021 11:43:03 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - Accept-Encoding x-content-type-options: - nosniff - x-ms-providerhub-traffic: - - 'True' + x-ms-original-request-ids: + - b1f613db-69ef-404f-b732-71cf42d5c77e + - 70fa56a4-592b-4150-a8d5-8e057b0d5b38 + - 364f1a46-86c0-41a4-9e77-1f69c0f3490c status: code: 200 message: OK - request: - body: null + body: '{"location": "eastus2euap", "extendedLocation": {"type": "CustomLocation", + "name": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"}, + "properties": {"vCenterId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs", + "moRefId": "vm-141"}}' headers: Accept: - application/json Accept-Encoding: - gzip, deflate CommandName: - - connectedvmware vm disk show + - connectedvmware vm-template create Connection: - keep-alive + Content-Length: + - '445' + Content-Type: + - application/json ParameterSetName: - - -g --vm-name --name + - -g -l --custom-location --vcenter --mo-ref-id --name User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine?api-version=2020-10-01-preview + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/azcli-test-vm-template?api-version=2020-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine","name":"azcli-test-virtual-machine","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-05-20T08:39:58.8473016Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-05-20T08:41:23.9017897Z"},"properties":{"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/resourcepools/azcli-test-resource-pool","templateId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/virtualmachinetemplates/azcli-test-vm-template","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/VCenters/azcli-test-vcenter-avs","provisioningState":"Succeeded","customResourceName":"57ab57b6-9697-4302-b6dc-25bd98e56fd3","uuid":"57ab57b6-9697-4302-b6dc-25bd98e56fd3","vmId":"57ab57b6-9697-4302-b6dc-25bd98e56fd3","networkProfile":{"networkInterfaces":[{"name":"nic_1","label":"Network - adapter 1","macAddress":"00:50:56:93:c1:59","networkMoRefId":"network-o50","networkMoName":"segment-1","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"13007-2000","name":"disk_1","label":"Hard - disk 1","diskSizeGB":10,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0}],"scsiControllers":[{"type":"lsilogic","controllerKey":1000,"scsiCtlrUnitNumber":7,"sharing":"noSharing"}]},"osProfile":{"computerName":"","osType":"Linux","osName":"Ubuntu - Linux (64-bit)","toolsRunningStatus":"guestToolsRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"11269"},"hardwareProfile":{"memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"instanceUuid":"57ab57b6-9697-4302-b6dc-25bd98e56fd3","moRefId":"vm-25875","moName":"azcli-test-virtual-machine","folderPath":"SDDC-Datacenter","powerState":"poweredOn"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/azcli-test-vm-template","name":"azcli-test-vm-template","type":"microsoft.connectedvmwarevsphere/virtualmachinetemplates","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-10-14T11:43:13.4383402Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-10-14T11:43:13.4383402Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs","moRefId":"vm-141","provisioningState":"Accepted"}}' headers: + api-supported-versions: + - 2020-10-01-preview + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/0b0e5e9f-0d86-4fb1-8b3f-56dbda92b3b5*739A8DB20DE35FA614E0C5541FE2518D9E76FFE650E5EA3FC26BA40B95F1E8FB?api-version=2020-10-01-preview cache-control: - no-cache content-length: - - '2599' + - '978' content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:41:39 GMT + - Thu, 14 Oct 2021 11:43:16 GMT etag: - - '"0f000e33-0000-3400-0000-60a620b40000"' + - '"0f00b52f-0000-3400-0000-616817d30000"' expires: - '-1' + location: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/VirtualMachineTemplates/azcli-test-vm-template pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff x-ms-providerhub-traffic: - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' status: - code: 200 - message: OK + code: 201 + message: Created - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - connectedvmware vm disk list + - connectedvmware vm-template create Connection: - keep-alive ParameterSetName: - - -g --vm-name + - -g -l --custom-location --vcenter --mo-ref-id --name User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine?api-version=2020-10-01-preview + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/0b0e5e9f-0d86-4fb1-8b3f-56dbda92b3b5*739A8DB20DE35FA614E0C5541FE2518D9E76FFE650E5EA3FC26BA40B95F1E8FB?api-version=2020-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine","name":"azcli-test-virtual-machine","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-05-20T08:39:58.8473016Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-05-20T08:41:23.9017897Z"},"properties":{"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/resourcepools/azcli-test-resource-pool","templateId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/virtualmachinetemplates/azcli-test-vm-template","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/VCenters/azcli-test-vcenter-avs","provisioningState":"Succeeded","customResourceName":"57ab57b6-9697-4302-b6dc-25bd98e56fd3","uuid":"57ab57b6-9697-4302-b6dc-25bd98e56fd3","vmId":"57ab57b6-9697-4302-b6dc-25bd98e56fd3","networkProfile":{"networkInterfaces":[{"name":"nic_1","label":"Network - adapter 1","macAddress":"00:50:56:93:c1:59","networkMoRefId":"network-o50","networkMoName":"segment-1","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"13007-2000","name":"disk_1","label":"Hard - disk 1","diskSizeGB":10,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0}],"scsiControllers":[{"type":"lsilogic","controllerKey":1000,"scsiCtlrUnitNumber":7,"sharing":"noSharing"}]},"osProfile":{"computerName":"","osType":"Linux","osName":"Ubuntu - Linux (64-bit)","toolsRunningStatus":"guestToolsRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"11269"},"hardwareProfile":{"memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"instanceUuid":"57ab57b6-9697-4302-b6dc-25bd98e56fd3","moRefId":"vm-25875","moName":"azcli-test-virtual-machine","folderPath":"SDDC-Datacenter","powerState":"poweredOn"}}' + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/0b0e5e9f-0d86-4fb1-8b3f-56dbda92b3b5*739A8DB20DE35FA614E0C5541FE2518D9E76FFE650E5EA3FC26BA40B95F1E8FB","name":"0b0e5e9f-0d86-4fb1-8b3f-56dbda92b3b5*739A8DB20DE35FA614E0C5541FE2518D9E76FFE650E5EA3FC26BA40B95F1E8FB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/azcli-test-vm-template","status":"Succeeded","startTime":"2021-10-14T11:43:14.9450301Z","endTime":"2021-10-14T11:43:21.7730905Z","properties":null}' headers: cache-control: - no-cache content-length: - - '2599' + - '613' content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:41:41 GMT + - Thu, 14 Oct 2021 11:43:47 GMT etag: - - '"0f000e33-0000-3400-0000-60a620b40000"' + - '"03008193-0000-3400-0000-616817d90000"' expires: - '-1' pragma: @@ -1454,94 +1430,94 @@ interactions: - Accept-Encoding x-content-type-options: - nosniff - x-ms-providerhub-traffic: - - 'True' status: code: 200 message: OK - request: - body: '{"skipShutdown": false}' + body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - connectedvmware vm stop + - connectedvmware vm-template create Connection: - keep-alive - Content-Length: - - '23' - Content-Type: - - application/json ParameterSetName: - - -g --name + - -g -l --custom-location --vcenter --mo-ref-id --name User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine/stop?api-version=2020-10-01-preview + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/azcli-test-vm-template?api-version=2020-10-01-preview response: body: - string: 'null' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/azcli-test-vm-template","name":"azcli-test-vm-template","type":"microsoft.connectedvmwarevsphere/virtualmachinetemplates","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-10-14T11:43:13.4383402Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-10-14T11:43:21.5682446Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs","moRefId":"vm-141","provisioningState":"Succeeded","uuid":"00c6d7d1-74b6-4118-8ee4-b25704cab7da","customResourceName":"00c6d7d1-74b6-4118-8ee4-b25704cab7da","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2021-10-14T11:43:21.5325573Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2021-10-14T11:43:21.5325573Z"}],"networkInterfaces":[{"name":"nic_1","label":"Network + adapter 1","macAddress":"00:50:56:a9:7d:06","networkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network","networkMoRefId":"network-o61","networkMoName":"Segment-1","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset","ipAddress":"172.16.0.31","subnetMask":"255.255.252.0","ipAddressInfo":[{"ipAddress":"172.16.0.31","subnetMask":"255.255.252.0"},{"ipAddress":"fe80::250:56ff:fea9:7d06","subnetMask":"ffff:ffff:ffff:ffff:0000:0000:0000:0000"}]}}],"disks":[{"diskObjectId":"6307-2000","name":"disk_1","label":"Hard + disk 1","diskSizeGB":10,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0,"diskType":"flat"}],"moName":"azurevmwarecloudtestubuntu","memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"osType":"Linux","osName":"Ubuntu + Linux (64-bit)","folderPath":"SDDC-Datacenter/Templates","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"11269"}}' headers: - api-supported-versions: - - 2019-12-20-privatepreview, 2020-10-01-preview cache-control: - no-cache content-length: - - '4' + - '2382' content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:41:43 GMT + - Thu, 14 Oct 2021 11:43:48 GMT + etag: + - '"0f00c42f-0000-3400-0000-616817d90000"' expires: - '-1' - location: - - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/b257f025-d0d9-4bd7-8eba-d164ee205e7c?api-version=2020-10-01-preview pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff x-ms-providerhub-traffic: - 'True' - x-ms-ratelimit-remaining-subscription-writes: - - '1199' status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - connectedvmware vm stop + - connectedvmware vm-template show Connection: - keep-alive ParameterSetName: - -g --name User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/b257f025-d0d9-4bd7-8eba-d164ee205e7c?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/azcli-test-vm-template?api-version=2020-10-01-preview response: body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/b257f025-d0d9-4bd7-8eba-d164ee205e7c","name":"b257f025-d0d9-4bd7-8eba-d164ee205e7c","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine","status":"Succeeded","startTime":"2021-05-20T08:41:43.9752131Z","endTime":"2021-05-20T08:41:53.7301189Z","properties":null}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/azcli-test-vm-template","name":"azcli-test-vm-template","type":"microsoft.connectedvmwarevsphere/virtualmachinetemplates","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-10-14T11:43:13.4383402Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-10-14T11:43:21.5682446Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs","moRefId":"vm-141","provisioningState":"Succeeded","uuid":"00c6d7d1-74b6-4118-8ee4-b25704cab7da","customResourceName":"00c6d7d1-74b6-4118-8ee4-b25704cab7da","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2021-10-14T11:43:21.5325573Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2021-10-14T11:43:21.5325573Z"}],"networkInterfaces":[{"name":"nic_1","label":"Network + adapter 1","macAddress":"00:50:56:a9:7d:06","networkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network","networkMoRefId":"network-o61","networkMoName":"Segment-1","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset","ipAddress":"172.16.0.31","subnetMask":"255.255.252.0","ipAddressInfo":[{"ipAddress":"172.16.0.31","subnetMask":"255.255.252.0"},{"ipAddress":"fe80::250:56ff:fea9:7d06","subnetMask":"ffff:ffff:ffff:ffff:0000:0000:0000:0000"}]}}],"disks":[{"diskObjectId":"6307-2000","name":"disk_1","label":"Hard + disk 1","diskSizeGB":10,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0,"diskType":"flat"}],"moName":"azurevmwarecloudtestubuntu","memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"osType":"Linux","osName":"Ubuntu + Linux (64-bit)","folderPath":"SDDC-Datacenter/Templates","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"11269"}}' headers: cache-control: - no-cache content-length: - - '480' + - '2382' content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:42:14 GMT + - Thu, 14 Oct 2021 11:43:50 GMT etag: - - '"0300415b-0000-3400-0000-60a620d10000"' + - '"0f00c42f-0000-3400-0000-616817d90000"' expires: - '-1' pragma: @@ -1554,6 +1530,8 @@ interactions: - Accept-Encoding x-content-type-options: - nosniff + x-ms-providerhub-traffic: + - 'True' status: code: 200 message: OK @@ -1565,79 +1543,78 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - connectedvmware vm start + - connectedvmware vm-template list Connection: - keep-alive - Content-Length: - - '0' ParameterSetName: - - -g --name + - -g User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine/start?api-version=2020-10-01-preview + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates?api-version=2020-10-01-preview response: body: - string: 'null' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/azcli-test-vm-template","name":"azcli-test-vm-template","type":"microsoft.connectedvmwarevsphere/virtualmachinetemplates","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-10-14T11:43:13.4383402Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-10-14T11:43:21.5682446Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs","moRefId":"vm-141","provisioningState":"Succeeded","uuid":"00c6d7d1-74b6-4118-8ee4-b25704cab7da","customResourceName":"00c6d7d1-74b6-4118-8ee4-b25704cab7da","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2021-10-14T11:43:21.5325573Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2021-10-14T11:43:21.5325573Z"}],"networkInterfaces":[{"name":"nic_1","label":"Network + adapter 1","macAddress":"00:50:56:a9:7d:06","networkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network","networkMoRefId":"network-o61","networkMoName":"Segment-1","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset","ipAddress":"172.16.0.31","subnetMask":"255.255.252.0","ipAddressInfo":[{"ipAddress":"172.16.0.31","subnetMask":"255.255.252.0"},{"ipAddress":"fe80::250:56ff:fea9:7d06","subnetMask":"ffff:ffff:ffff:ffff:0000:0000:0000:0000"}]}}],"disks":[{"diskObjectId":"6307-2000","name":"disk_1","label":"Hard + disk 1","diskSizeGB":10,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0,"diskType":"flat"}],"moName":"azurevmwarecloudtestubuntu","memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"osType":"Linux","osName":"Ubuntu + Linux (64-bit)","folderPath":"SDDC-Datacenter/Templates","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"11269"}}]}' headers: - api-supported-versions: - - 2019-12-20-privatepreview, 2020-10-01-preview cache-control: - no-cache content-length: - - '4' + - '2394' content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:42:16 GMT + - Thu, 14 Oct 2021 11:43:54 GMT expires: - '-1' - location: - - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/0686e107-b82d-4402-ab9e-eca47c059855?api-version=2020-10-01-preview pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding x-content-type-options: - nosniff - x-ms-providerhub-traffic: - - 'True' - x-ms-ratelimit-remaining-subscription-writes: - - '1199' + x-ms-original-request-ids: + - 7a20b6a1-b465-4e22-ae30-658fb1416e59 + - c4a8dec6-26c9-415e-90fb-5c4f23f31394 + - fc2a0925-ec18-4a5a-b4fe-63a912fbb15c status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - connectedvmware vm start + - connectedvmware vcenter inventory-item show Connection: - keep-alive ParameterSetName: - - -g --name + - -g --vcenter --inventory-item User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/0686e107-b82d-4402-ab9e-eca47c059855?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/vcenters/azcli-test-vcenter-avs/inventoryItems/resgroup-74941?api-version=2020-10-01-preview response: body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/0686e107-b82d-4402-ab9e-eca47c059855","name":"0686e107-b82d-4402-ab9e-eca47c059855","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine","status":"Succeeded","startTime":"2021-05-20T08:42:16.8589057Z","endTime":"2021-05-20T08:42:24.9984698Z","properties":null}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/VCenters/azcli-test-vcenter-avs/InventoryItems/resgroup-74941","name":"resgroup-74941","type":"microsoft.connectedvmwarevsphere/vcenters/inventoryitems","kind":"ResourcePool","systemData":{"createdBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","createdByType":"Application","createdAt":"2021-10-05T16:03:08.7600239Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-10-14T11:39:22.4092019Z"},"properties":{"parent":{"moName":"Resources","inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/VCenters/azcli-test-vcenter-avs/InventoryItems/resgroup-8"},"inventoryType":"ResourcePool","managedResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/ResourcePools/azcli-test-resource-pool","moRefId":"resgroup-74941","provisioningState":"Succeeded","moName":"azclitest-rp"}}' headers: cache-control: - no-cache content-length: - - '480' + - '1129' content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:42:47 GMT + - Thu, 14 Oct 2021 11:43:55 GMT etag: - - '"03004d5b-0000-3400-0000-60a620f10000"' + - '"cd004da9-0000-3400-0000-616816ea0000"' expires: - '-1' pragma: @@ -1650,18 +1627,1093 @@ interactions: - Accept-Encoding x-content-type-options: - nosniff + x-ms-providerhub-traffic: + - 'True' status: code: 200 message: OK - request: - body: null + body: '{"location": "eastus2euap", "extendedLocation": {"type": "CustomLocation", + "name": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"}, + "properties": {"templateId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/virtualmachineTemplates/azcli-test-vm-template", + "vCenterId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs", + "placementProfile": {"resourcePoolId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/resourcePools/azcli-test-resource-pool"}}}' headers: Accept: - application/json Accept-Encoding: - gzip, deflate CommandName: - - connectedvmware vm delete + - connectedvmware vm create + Connection: + - keep-alive + Content-Length: + - '816' + Content-Type: + - application/json + ParameterSetName: + - -g -l --custom-location --vcenter --resource-pool --vm-template --name + User-Agent: + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine?api-version=2020-10-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine","name":"azcli-test-virtual-machine","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-10-14T11:44:01.5120446Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-10-14T11:44:01.5120446Z"},"properties":{"placementProfile":{"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/resourcePools/azcli-test-resource-pool"},"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/resourcePools/azcli-test-resource-pool","templateId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/virtualmachineTemplates/azcli-test-vm-template","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs","provisioningState":"Accepted","statuses":[{"status":"False","type":"Ready","reason":"Provisioning","message":"The + resource is being provisioned.","severity":"Info","lastUpdatedAt":"2021-10-14T11:44:03.9251339Z"},{"status":"False","type":"Idle","reason":"Provisioning","message":"The + resource is being provisioned.","severity":"Info","lastUpdatedAt":"2021-10-14T11:44:03.9251339Z"}]}}' + headers: + api-supported-versions: + - 2020-10-01-preview + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/780a895b-03d8-4975-90cb-4f7acd8755cb*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091?api-version=2020-10-01-preview + cache-control: + - no-cache + content-length: + - '1887' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 14 Oct 2021 11:44:04 GMT + etag: + - '"0200037d-0000-3400-0000-616818040000"' + expires: + - '-1' + location: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/VirtualMachines/azcli-test-virtual-machine + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - connectedvmware vm create + Connection: + - keep-alive + ParameterSetName: + - -g -l --custom-location --vcenter --resource-pool --vm-template --name + User-Agent: + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/780a895b-03d8-4975-90cb-4f7acd8755cb*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091?api-version=2020-10-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/780a895b-03d8-4975-90cb-4f7acd8755cb*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091","name":"780a895b-03d8-4975-90cb-4f7acd8755cb*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine","status":"Accepted","startTime":"2021-10-14T11:44:03.6650052Z"}' + headers: + cache-control: + - no-cache + content-length: + - '549' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 14 Oct 2021 11:44:35 GMT + etag: + - '"03009193-0000-3400-0000-616818030000"' + expires: + - '-1' + pragma: + - no-cache + 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: + - connectedvmware vm create + Connection: + - keep-alive + ParameterSetName: + - -g -l --custom-location --vcenter --resource-pool --vm-template --name + User-Agent: + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/780a895b-03d8-4975-90cb-4f7acd8755cb*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091?api-version=2020-10-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/780a895b-03d8-4975-90cb-4f7acd8755cb*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091","name":"780a895b-03d8-4975-90cb-4f7acd8755cb*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine","status":"Accepted","startTime":"2021-10-14T11:44:03.6650052Z"}' + headers: + cache-control: + - no-cache + content-length: + - '549' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 14 Oct 2021 11:45:06 GMT + etag: + - '"03009193-0000-3400-0000-616818030000"' + expires: + - '-1' + pragma: + - no-cache + 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: + - connectedvmware vm create + Connection: + - keep-alive + ParameterSetName: + - -g -l --custom-location --vcenter --resource-pool --vm-template --name + User-Agent: + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/780a895b-03d8-4975-90cb-4f7acd8755cb*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091?api-version=2020-10-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/780a895b-03d8-4975-90cb-4f7acd8755cb*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091","name":"780a895b-03d8-4975-90cb-4f7acd8755cb*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine","status":"Accepted","startTime":"2021-10-14T11:44:03.6650052Z"}' + headers: + cache-control: + - no-cache + content-length: + - '549' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 14 Oct 2021 11:45:38 GMT + etag: + - '"03009193-0000-3400-0000-616818030000"' + expires: + - '-1' + pragma: + - no-cache + 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: + - connectedvmware vm create + Connection: + - keep-alive + ParameterSetName: + - -g -l --custom-location --vcenter --resource-pool --vm-template --name + User-Agent: + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/780a895b-03d8-4975-90cb-4f7acd8755cb*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091?api-version=2020-10-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/780a895b-03d8-4975-90cb-4f7acd8755cb*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091","name":"780a895b-03d8-4975-90cb-4f7acd8755cb*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine","status":"Succeeded","startTime":"2021-10-14T11:44:03.6650052Z","endTime":"2021-10-14T11:45:59.2624632Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '609' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 14 Oct 2021 11:46:09 GMT + etag: + - '"0300c293-0000-3400-0000-616818770000"' + expires: + - '-1' + pragma: + - no-cache + 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: + - connectedvmware vm create + Connection: + - keep-alive + ParameterSetName: + - -g -l --custom-location --vcenter --resource-pool --vm-template --name + User-Agent: + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine?api-version=2020-10-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine","name":"azcli-test-virtual-machine","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-10-14T11:44:01.5120446Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-10-14T11:45:59.014777Z"},"properties":{"placementProfile":{"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/resourcePools/azcli-test-resource-pool"},"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/resourcePools/azcli-test-resource-pool","templateId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/virtualmachineTemplates/azcli-test-vm-template","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs","provisioningState":"Succeeded","statuses":[{"status":"True","type":"CustomizationCompleted","lastUpdatedAt":"2021-10-14T11:45:56Z"},{"status":"True","type":"Ready","lastUpdatedAt":"2021-10-14T11:45:58.9572448Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2021-10-14T11:45:58.9572448Z"}],"customResourceName":"d80b7c4a-ab6a-467b-a5c3-6cf8bed245cc","vmId":"d80b7c4a-ab6a-467b-a5c3-6cf8bed245cc","networkProfile":{"networkInterfaces":[{"name":"nic_1","label":"Network + adapter 1","macAddress":"00:50:56:a9:31:8d","networkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network","networkMoRefId":"network-o61","networkMoName":"Segment-1","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"7979-2000","name":"disk_1","label":"Hard + disk 1","diskSizeGB":10,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0,"diskType":"flat"}],"scsiControllers":[{"type":"lsilogic","controllerKey":1000,"scsiCtlrUnitNumber":7,"sharing":"noSharing"}]},"osProfile":{"computerName":"","osType":"Linux","osName":"Ubuntu + Linux (64-bit)","toolsRunningStatus":"guestToolsRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"11269"},"hardwareProfile":{"memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"instanceUuid":"d80b7c4a-ab6a-467b-a5c3-6cf8bed245cc","moRefId":"vm-81249","moName":"azcli-test-virtual-machine","folderPath":"SDDC-Datacenter","smbiosUuid":"4229758f-18bb-33e5-6149-5a934d07f6f1","firmwareType":"bios","powerState":"poweredOn"}}' + headers: + cache-control: + - no-cache + content-length: + - '3281' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 14 Oct 2021 11:46:11 GMT + etag: + - '"0200127d-0000-3400-0000-616818770000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - connectedvmware vm show + Connection: + - keep-alive + ParameterSetName: + - -g --name + User-Agent: + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine?api-version=2020-10-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine","name":"azcli-test-virtual-machine","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-10-14T11:44:01.5120446Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-10-14T11:45:59.014777Z"},"properties":{"placementProfile":{"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/resourcePools/azcli-test-resource-pool"},"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/resourcePools/azcli-test-resource-pool","templateId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/virtualmachineTemplates/azcli-test-vm-template","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs","provisioningState":"Succeeded","statuses":[{"status":"True","type":"CustomizationCompleted","lastUpdatedAt":"2021-10-14T11:45:56Z"},{"status":"True","type":"Ready","lastUpdatedAt":"2021-10-14T11:45:58.9572448Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2021-10-14T11:45:58.9572448Z"}],"customResourceName":"d80b7c4a-ab6a-467b-a5c3-6cf8bed245cc","vmId":"d80b7c4a-ab6a-467b-a5c3-6cf8bed245cc","networkProfile":{"networkInterfaces":[{"name":"nic_1","label":"Network + adapter 1","macAddress":"00:50:56:a9:31:8d","networkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network","networkMoRefId":"network-o61","networkMoName":"Segment-1","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"7979-2000","name":"disk_1","label":"Hard + disk 1","diskSizeGB":10,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0,"diskType":"flat"}],"scsiControllers":[{"type":"lsilogic","controllerKey":1000,"scsiCtlrUnitNumber":7,"sharing":"noSharing"}]},"osProfile":{"computerName":"","osType":"Linux","osName":"Ubuntu + Linux (64-bit)","toolsRunningStatus":"guestToolsRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"11269"},"hardwareProfile":{"memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"instanceUuid":"d80b7c4a-ab6a-467b-a5c3-6cf8bed245cc","moRefId":"vm-81249","moName":"azcli-test-virtual-machine","folderPath":"SDDC-Datacenter","smbiosUuid":"4229758f-18bb-33e5-6149-5a934d07f6f1","firmwareType":"bios","powerState":"poweredOn"}}' + headers: + cache-control: + - no-cache + content-length: + - '3281' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 14 Oct 2021 11:46:15 GMT + etag: + - '"0200127d-0000-3400-0000-616818770000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - connectedvmware vm list + Connection: + - keep-alive + ParameterSetName: + - -g + User-Agent: + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines?api-version=2020-10-01-preview + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine","name":"azcli-test-virtual-machine","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-10-14T11:44:01.5120446Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-10-14T11:45:59.014777Z"},"properties":{"placementProfile":{"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/resourcePools/azcli-test-resource-pool"},"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/resourcePools/azcli-test-resource-pool","templateId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/virtualmachineTemplates/azcli-test-vm-template","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs","provisioningState":"Succeeded","statuses":[{"status":"True","type":"CustomizationCompleted","lastUpdatedAt":"2021-10-14T11:45:56Z"},{"status":"True","type":"Ready","lastUpdatedAt":"2021-10-14T11:45:58.9572448Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2021-10-14T11:45:58.9572448Z"}],"customResourceName":"d80b7c4a-ab6a-467b-a5c3-6cf8bed245cc","vmId":"d80b7c4a-ab6a-467b-a5c3-6cf8bed245cc","networkProfile":{"networkInterfaces":[{"name":"nic_1","label":"Network + adapter 1","macAddress":"00:50:56:a9:31:8d","networkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network","networkMoRefId":"network-o61","networkMoName":"Segment-1","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"7979-2000","name":"disk_1","label":"Hard + disk 1","diskSizeGB":10,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0,"diskType":"flat"}],"scsiControllers":[{"type":"lsilogic","controllerKey":1000,"scsiCtlrUnitNumber":7,"sharing":"noSharing"}]},"osProfile":{"computerName":"","osType":"Linux","osName":"Ubuntu + Linux (64-bit)","toolsRunningStatus":"guestToolsRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"11269"},"hardwareProfile":{"memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"instanceUuid":"d80b7c4a-ab6a-467b-a5c3-6cf8bed245cc","moRefId":"vm-81249","moName":"azcli-test-virtual-machine","folderPath":"SDDC-Datacenter","smbiosUuid":"4229758f-18bb-33e5-6149-5a934d07f6f1","firmwareType":"bios","powerState":"poweredOn"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '3293' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 14 Oct 2021 11:46:23 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-original-request-ids: + - bc206a0b-218b-4b3a-94eb-420ffd0f5f79 + - ea4f8d14-42ab-4711-ae10-a78c7851fb14 + - 008532c8-7f69-44ec-b94f-4026d386646d + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - connectedvmware vm nic show + Connection: + - keep-alive + ParameterSetName: + - -g --vm-name --name + User-Agent: + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine?api-version=2020-10-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine","name":"azcli-test-virtual-machine","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-10-14T11:44:01.5120446Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-10-14T11:45:59.014777Z"},"properties":{"placementProfile":{"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/resourcePools/azcli-test-resource-pool"},"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/resourcePools/azcli-test-resource-pool","templateId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/virtualmachineTemplates/azcli-test-vm-template","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs","provisioningState":"Succeeded","statuses":[{"status":"True","type":"CustomizationCompleted","lastUpdatedAt":"2021-10-14T11:45:56Z"},{"status":"True","type":"Ready","lastUpdatedAt":"2021-10-14T11:45:58.9572448Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2021-10-14T11:45:58.9572448Z"}],"customResourceName":"d80b7c4a-ab6a-467b-a5c3-6cf8bed245cc","vmId":"d80b7c4a-ab6a-467b-a5c3-6cf8bed245cc","networkProfile":{"networkInterfaces":[{"name":"nic_1","label":"Network + adapter 1","macAddress":"00:50:56:a9:31:8d","networkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network","networkMoRefId":"network-o61","networkMoName":"Segment-1","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"7979-2000","name":"disk_1","label":"Hard + disk 1","diskSizeGB":10,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0,"diskType":"flat"}],"scsiControllers":[{"type":"lsilogic","controllerKey":1000,"scsiCtlrUnitNumber":7,"sharing":"noSharing"}]},"osProfile":{"computerName":"","osType":"Linux","osName":"Ubuntu + Linux (64-bit)","toolsRunningStatus":"guestToolsRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"11269"},"hardwareProfile":{"memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"instanceUuid":"d80b7c4a-ab6a-467b-a5c3-6cf8bed245cc","moRefId":"vm-81249","moName":"azcli-test-virtual-machine","folderPath":"SDDC-Datacenter","smbiosUuid":"4229758f-18bb-33e5-6149-5a934d07f6f1","firmwareType":"bios","powerState":"poweredOn"}}' + headers: + cache-control: + - no-cache + content-length: + - '3281' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 14 Oct 2021 11:46:26 GMT + etag: + - '"0200127d-0000-3400-0000-616818770000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - connectedvmware vm nic list + Connection: + - keep-alive + ParameterSetName: + - -g --vm-name + User-Agent: + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine?api-version=2020-10-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine","name":"azcli-test-virtual-machine","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-10-14T11:44:01.5120446Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-10-14T11:46:29.483235Z"},"properties":{"placementProfile":{"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/resourcePools/azcli-test-resource-pool"},"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/resourcePools/azcli-test-resource-pool","templateId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/virtualmachineTemplates/azcli-test-vm-template","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs","provisioningState":"Succeeded","statuses":[{"status":"True","type":"CustomizationCompleted","lastUpdatedAt":"2021-10-14T11:45:56Z"},{"status":"True","type":"Ready","lastUpdatedAt":"2021-10-14T11:45:58.9572448Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2021-10-14T11:45:58.9572448Z"}],"customResourceName":"d80b7c4a-ab6a-467b-a5c3-6cf8bed245cc","vmId":"d80b7c4a-ab6a-467b-a5c3-6cf8bed245cc","networkProfile":{"networkInterfaces":[{"name":"nic_1","label":"Network + adapter 1","ipAddresses":["172.16.0.44","fe80::250:56ff:fea9:318d"],"macAddress":"00:50:56:a9:31:8d","networkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network","networkMoRefId":"network-o61","networkMoName":"Segment-1","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset","gateway":["172.16.0.1"],"ipAddress":"172.16.0.44","subnetMask":"255.255.252.0","ipAddressInfo":[{"ipAddress":"172.16.0.44","subnetMask":"255.255.252.0"},{"ipAddress":"fe80::250:56ff:fea9:318d","subnetMask":"ffff:ffff:ffff:ffff:0000:0000:0000:0000"}]}}]},"storageProfile":{"disks":[{"diskObjectId":"7979-2000","name":"disk_1","label":"Hard + disk 1","diskSizeGB":10,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0,"diskType":"flat"}],"scsiControllers":[{"type":"lsilogic","controllerKey":1000,"scsiCtlrUnitNumber":7,"sharing":"noSharing"}]},"osProfile":{"computerName":"azcli-test-virtual-machine","osType":"Linux","osName":"Ubuntu + Linux (64-bit)","toolsRunningStatus":"guestToolsRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"11269"},"hardwareProfile":{"memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"instanceUuid":"d80b7c4a-ab6a-467b-a5c3-6cf8bed245cc","moRefId":"vm-81249","moName":"azcli-test-virtual-machine","folderPath":"SDDC-Datacenter","smbiosUuid":"4229758f-18bb-33e5-6149-5a934d07f6f1","firmwareType":"bios","powerState":"poweredOn"}}' + headers: + cache-control: + - no-cache + content-length: + - '3615' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 14 Oct 2021 11:46:30 GMT + etag: + - '"0200137d-0000-3400-0000-616818950000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - connectedvmware vm disk show + Connection: + - keep-alive + ParameterSetName: + - -g --vm-name --name + User-Agent: + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine?api-version=2020-10-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine","name":"azcli-test-virtual-machine","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-10-14T11:44:01.5120446Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-10-14T11:46:29.483235Z"},"properties":{"placementProfile":{"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/resourcePools/azcli-test-resource-pool"},"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/resourcePools/azcli-test-resource-pool","templateId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/virtualmachineTemplates/azcli-test-vm-template","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs","provisioningState":"Succeeded","statuses":[{"status":"True","type":"CustomizationCompleted","lastUpdatedAt":"2021-10-14T11:45:56Z"},{"status":"True","type":"Ready","lastUpdatedAt":"2021-10-14T11:45:58.9572448Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2021-10-14T11:45:58.9572448Z"}],"customResourceName":"d80b7c4a-ab6a-467b-a5c3-6cf8bed245cc","vmId":"d80b7c4a-ab6a-467b-a5c3-6cf8bed245cc","networkProfile":{"networkInterfaces":[{"name":"nic_1","label":"Network + adapter 1","ipAddresses":["172.16.0.44","fe80::250:56ff:fea9:318d"],"macAddress":"00:50:56:a9:31:8d","networkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network","networkMoRefId":"network-o61","networkMoName":"Segment-1","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset","gateway":["172.16.0.1"],"ipAddress":"172.16.0.44","subnetMask":"255.255.252.0","ipAddressInfo":[{"ipAddress":"172.16.0.44","subnetMask":"255.255.252.0"},{"ipAddress":"fe80::250:56ff:fea9:318d","subnetMask":"ffff:ffff:ffff:ffff:0000:0000:0000:0000"}]}}]},"storageProfile":{"disks":[{"diskObjectId":"7979-2000","name":"disk_1","label":"Hard + disk 1","diskSizeGB":10,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0,"diskType":"flat"}],"scsiControllers":[{"type":"lsilogic","controllerKey":1000,"scsiCtlrUnitNumber":7,"sharing":"noSharing"}]},"osProfile":{"computerName":"azcli-test-virtual-machine","osType":"Linux","osName":"Ubuntu + Linux (64-bit)","toolsRunningStatus":"guestToolsRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"11269"},"hardwareProfile":{"memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"instanceUuid":"d80b7c4a-ab6a-467b-a5c3-6cf8bed245cc","moRefId":"vm-81249","moName":"azcli-test-virtual-machine","folderPath":"SDDC-Datacenter","smbiosUuid":"4229758f-18bb-33e5-6149-5a934d07f6f1","firmwareType":"bios","powerState":"poweredOn"}}' + headers: + cache-control: + - no-cache + content-length: + - '3615' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 14 Oct 2021 11:46:34 GMT + etag: + - '"0200137d-0000-3400-0000-616818950000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - connectedvmware vm disk list + Connection: + - keep-alive + ParameterSetName: + - -g --vm-name + User-Agent: + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine?api-version=2020-10-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine","name":"azcli-test-virtual-machine","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus2euap","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl-avs"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2021-10-14T11:44:01.5120446Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2021-10-14T11:46:29.483235Z"},"properties":{"placementProfile":{"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/resourcePools/azcli-test-resource-pool"},"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/resourcePools/azcli-test-resource-pool","templateId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/virtualmachineTemplates/azcli-test-vm-template","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vcenter-avs","provisioningState":"Succeeded","statuses":[{"status":"True","type":"CustomizationCompleted","lastUpdatedAt":"2021-10-14T11:45:56Z"},{"status":"True","type":"Ready","lastUpdatedAt":"2021-10-14T11:45:58.9572448Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2021-10-14T11:45:58.9572448Z"}],"customResourceName":"d80b7c4a-ab6a-467b-a5c3-6cf8bed245cc","vmId":"d80b7c4a-ab6a-467b-a5c3-6cf8bed245cc","networkProfile":{"networkInterfaces":[{"name":"nic_1","label":"Network + adapter 1","ipAddresses":["172.16.0.44","fe80::250:56ff:fea9:318d"],"macAddress":"00:50:56:a9:31:8d","networkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network","networkMoRefId":"network-o61","networkMoName":"Segment-1","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset","gateway":["172.16.0.1"],"ipAddress":"172.16.0.44","subnetMask":"255.255.252.0","ipAddressInfo":[{"ipAddress":"172.16.0.44","subnetMask":"255.255.252.0"},{"ipAddress":"fe80::250:56ff:fea9:318d","subnetMask":"ffff:ffff:ffff:ffff:0000:0000:0000:0000"}]}}]},"storageProfile":{"disks":[{"diskObjectId":"7979-2000","name":"disk_1","label":"Hard + disk 1","diskSizeGB":10,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0,"diskType":"flat"}],"scsiControllers":[{"type":"lsilogic","controllerKey":1000,"scsiCtlrUnitNumber":7,"sharing":"noSharing"}]},"osProfile":{"computerName":"azcli-test-virtual-machine","osType":"Linux","osName":"Ubuntu + Linux (64-bit)","toolsRunningStatus":"guestToolsRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"11269"},"hardwareProfile":{"memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"instanceUuid":"d80b7c4a-ab6a-467b-a5c3-6cf8bed245cc","moRefId":"vm-81249","moName":"azcli-test-virtual-machine","folderPath":"SDDC-Datacenter","smbiosUuid":"4229758f-18bb-33e5-6149-5a934d07f6f1","firmwareType":"bios","powerState":"poweredOn"}}' + headers: + cache-control: + - no-cache + content-length: + - '3615' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 14 Oct 2021 11:46:36 GMT + etag: + - '"0200137d-0000-3400-0000-616818950000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: '{"skipShutdown": false}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - connectedvmware vm stop + Connection: + - keep-alive + Content-Length: + - '23' + Content-Type: + - application/json + ParameterSetName: + - -g --name + User-Agent: + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine/stop?api-version=2020-10-01-preview + response: + body: + string: 'null' + headers: + api-supported-versions: + - 2020-10-01-preview + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/edac6ba9-5d83-4b7e-95e4-87aaa5cf7389*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091?api-version=2020-10-01-preview + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 14 Oct 2021 11:46:39 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/edac6ba9-5d83-4b7e-95e4-87aaa5cf7389*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091?api-version=2020-10-01-preview + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - connectedvmware vm stop + Connection: + - keep-alive + ParameterSetName: + - -g --name + User-Agent: + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/edac6ba9-5d83-4b7e-95e4-87aaa5cf7389*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091?api-version=2020-10-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/edac6ba9-5d83-4b7e-95e4-87aaa5cf7389*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091","name":"edac6ba9-5d83-4b7e-95e4-87aaa5cf7389*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine","status":"Succeeded","startTime":"2021-10-14T11:46:39.409Z","endTime":"2021-10-14T11:46:56.6995408Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '605' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 14 Oct 2021 11:47:12 GMT + etag: + - '"0300e993-0000-3400-0000-616818b00000"' + expires: + - '-1' + pragma: + - no-cache + 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: + - connectedvmware vm stop + Connection: + - keep-alive + ParameterSetName: + - -g --name + User-Agent: + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/edac6ba9-5d83-4b7e-95e4-87aaa5cf7389*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091?api-version=2020-10-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/edac6ba9-5d83-4b7e-95e4-87aaa5cf7389*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091","name":"edac6ba9-5d83-4b7e-95e4-87aaa5cf7389*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine","status":"Succeeded","startTime":"2021-10-14T11:46:39.409Z","endTime":"2021-10-14T11:46:56.6995408Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '605' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 14 Oct 2021 11:47:13 GMT + etag: + - '"0300e993-0000-3400-0000-616818b00000"' + expires: + - '-1' + pragma: + - no-cache + 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: + - connectedvmware vm start + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g --name + User-Agent: + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine/start?api-version=2020-10-01-preview + response: + body: + string: 'null' + headers: + api-supported-versions: + - 2020-10-01-preview + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/214a1be1-5584-458f-a689-7ce9b0ce40b5*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091?api-version=2020-10-01-preview + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 14 Oct 2021 11:47:19 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/214a1be1-5584-458f-a689-7ce9b0ce40b5*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091?api-version=2020-10-01-preview + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - connectedvmware vm start + Connection: + - keep-alive + ParameterSetName: + - -g --name + User-Agent: + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/214a1be1-5584-458f-a689-7ce9b0ce40b5*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091?api-version=2020-10-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/214a1be1-5584-458f-a689-7ce9b0ce40b5*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091","name":"214a1be1-5584-458f-a689-7ce9b0ce40b5*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine","status":"Succeeded","startTime":"2021-10-14T11:47:19.3263546Z","endTime":"2021-10-14T11:47:31.2512514Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '609' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 14 Oct 2021 11:47:52 GMT + etag: + - '"03003d94-0000-3400-0000-616818d30000"' + expires: + - '-1' + pragma: + - no-cache + 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: + - connectedvmware vm start + Connection: + - keep-alive + ParameterSetName: + - -g --name + User-Agent: + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/214a1be1-5584-458f-a689-7ce9b0ce40b5*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091?api-version=2020-10-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/214a1be1-5584-458f-a689-7ce9b0ce40b5*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091","name":"214a1be1-5584-458f-a689-7ce9b0ce40b5*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine","status":"Succeeded","startTime":"2021-10-14T11:47:19.3263546Z","endTime":"2021-10-14T11:47:31.2512514Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '609' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 14 Oct 2021 11:47:54 GMT + etag: + - '"03003d94-0000-3400-0000-616818d30000"' + expires: + - '-1' + pragma: + - no-cache + 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: + - connectedvmware vm delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g --name + User-Agent: + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine?api-version=2020-10-01-preview&force=false + response: + body: + string: 'null' + headers: + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/618588ad-aebe-4ffd-a8f8-f18411d2bf41*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091?api-version=2020-10-01-preview + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 14 Oct 2021 11:48:05 GMT + etag: + - '"0200287d-0000-3400-0000-616818f50000"' + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/618588ad-aebe-4ffd-a8f8-f18411d2bf41*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091?api-version=2020-10-01-preview + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - connectedvmware vm delete + Connection: + - keep-alive + ParameterSetName: + - -g --name + User-Agent: + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/618588ad-aebe-4ffd-a8f8-f18411d2bf41*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091?api-version=2020-10-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/618588ad-aebe-4ffd-a8f8-f18411d2bf41*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091","name":"618588ad-aebe-4ffd-a8f8-f18411d2bf41*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine","status":"Deleting","startTime":"2021-10-14T11:48:04.5065608Z"}' + headers: + cache-control: + - no-cache + content-length: + - '549' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 14 Oct 2021 11:48:35 GMT + etag: + - '"03009894-0000-3400-0000-616818f40000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - connectedvmware vm delete + Connection: + - keep-alive + ParameterSetName: + - -g --name + User-Agent: + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/618588ad-aebe-4ffd-a8f8-f18411d2bf41*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091?api-version=2020-10-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/618588ad-aebe-4ffd-a8f8-f18411d2bf41*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091","name":"618588ad-aebe-4ffd-a8f8-f18411d2bf41*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine","status":"Deleting","startTime":"2021-10-14T11:48:04.5065608Z"}' + headers: + cache-control: + - no-cache + content-length: + - '549' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 14 Oct 2021 11:49:06 GMT + etag: + - '"03009894-0000-3400-0000-616818f40000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - connectedvmware vm delete + Connection: + - keep-alive + ParameterSetName: + - -g --name + User-Agent: + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/618588ad-aebe-4ffd-a8f8-f18411d2bf41*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091?api-version=2020-10-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/618588ad-aebe-4ffd-a8f8-f18411d2bf41*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091","name":"618588ad-aebe-4ffd-a8f8-f18411d2bf41*9CBF8C2888CFDB78A64F8045EFBBAE67E54148A949858EDDF9E054D0E7647091","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine","status":"Succeeded","startTime":"2021-10-14T11:48:04.5065608Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '568' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 14 Oct 2021 11:49:36 GMT + etag: + - '"03001795-0000-3400-0000-616819360000"' + expires: + - '-1' + pragma: + - no-cache + 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: + - connectedvmware resource-pool delete Connection: - keep-alive Content-Length: @@ -1669,15 +2721,17 @@ interactions: ParameterSetName: - -g --name User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine?api-version=2020-10-01-preview&force=false + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/azcli-test-resource-pool?api-version=2020-10-01-preview&force=false response: body: string: 'null' headers: api-supported-versions: - - 2019-12-20-privatepreview, 2020-10-01-preview + - 2020-10-01-preview + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/30080479-e35e-45d6-b6a6-d4b72576eca4*F74FB8E8D5ACE8462137370B4094655F6ACA11599FD41ABE067321E2CD9379A3?api-version=2020-10-01-preview cache-control: - no-cache content-length: @@ -1685,13 +2739,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:42:49 GMT + - Thu, 14 Oct 2021 11:49:42 GMT etag: - - '"0f002833-0000-3400-0000-60a6210a0000"' + - '"0200317b-0000-3400-0000-616819560000"' expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/ecabc3f1-87b2-44a6-83bf-688e7e5f93df?api-version=2020-10-01-preview + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/30080479-e35e-45d6-b6a6-d4b72576eca4*F74FB8E8D5ACE8462137370B4094655F6ACA11599FD41ABE067321E2CD9379A3?api-version=2020-10-01-preview pragma: - no-cache strict-transport-security: @@ -1701,7 +2755,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-deletes: - - '14998' + - '14999' status: code: 202 message: Accepted @@ -1713,29 +2767,29 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - connectedvmware vm delete + - connectedvmware resource-pool delete Connection: - keep-alive ParameterSetName: - -g --name User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/ecabc3f1-87b2-44a6-83bf-688e7e5f93df?api-version=2020-10-01-preview + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/30080479-e35e-45d6-b6a6-d4b72576eca4*F74FB8E8D5ACE8462137370B4094655F6ACA11599FD41ABE067321E2CD9379A3?api-version=2020-10-01-preview response: body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/ecabc3f1-87b2-44a6-83bf-688e7e5f93df","name":"ecabc3f1-87b2-44a6-83bf-688e7e5f93df","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-virtual-machine","status":"Succeeded","startTime":"2021-05-20T08:42:50.4087278Z","endTime":"2021-05-20T08:43:12.2600329Z","properties":null}' + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/30080479-e35e-45d6-b6a6-d4b72576eca4*F74FB8E8D5ACE8462137370B4094655F6ACA11599FD41ABE067321E2CD9379A3","name":"30080479-e35e-45d6-b6a6-d4b72576eca4*F74FB8E8D5ACE8462137370B4094655F6ACA11599FD41ABE067321E2CD9379A3","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/azcli-test-resource-pool","status":"Succeeded","startTime":"2021-10-14T11:49:42.2419659Z","endTime":"2021-10-14T11:49:43.465969Z","properties":null}' headers: cache-control: - no-cache content-length: - - '480' + - '604' content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:43:20 GMT + - Thu, 14 Oct 2021 11:50:12 GMT etag: - - '"0300865b-0000-3400-0000-60a621200000"' + - '"03004395-0000-3400-0000-616819570000"' expires: - '-1' pragma: @@ -1759,7 +2813,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - connectedvmware resource-pool delete + - connectedvmware cluster delete Connection: - keep-alive Content-Length: @@ -1767,15 +2821,17 @@ interactions: ParameterSetName: - -g --name User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/azcli-test-resource-pool?api-version=2020-10-01-preview&force=false + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/clusters/azcli-test-cluster?api-version=2020-10-01-preview&force=false response: body: string: 'null' headers: api-supported-versions: - - 2019-12-20-privatepreview, 2020-10-01-preview + - 2020-10-01-preview + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/6f2c5b8e-0b06-4e0a-b9f9-61f11fd8e32d*7E3402A3D560B71714CB10DE7D20A637F63719BF4A36BD182218E7887CA8C359?api-version=2020-10-01-preview cache-control: - no-cache content-length: @@ -1783,13 +2839,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:43:24 GMT + - Thu, 14 Oct 2021 11:50:16 GMT etag: - - '"000096b2-0000-3400-0000-60a6212c0000"' + - '"0d0099ac-0000-3400-0000-616819780000"' expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/50f428d4-efb7-4036-a275-b922ac9b1719?api-version=2020-10-01-preview + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/6f2c5b8e-0b06-4e0a-b9f9-61f11fd8e32d*7E3402A3D560B71714CB10DE7D20A637F63719BF4A36BD182218E7887CA8C359?api-version=2020-10-01-preview pragma: - no-cache strict-transport-security: @@ -1811,29 +2867,229 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - connectedvmware resource-pool delete + - connectedvmware cluster delete + Connection: + - keep-alive + ParameterSetName: + - -g --name + User-Agent: + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/6f2c5b8e-0b06-4e0a-b9f9-61f11fd8e32d*7E3402A3D560B71714CB10DE7D20A637F63719BF4A36BD182218E7887CA8C359?api-version=2020-10-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/6f2c5b8e-0b06-4e0a-b9f9-61f11fd8e32d*7E3402A3D560B71714CB10DE7D20A637F63719BF4A36BD182218E7887CA8C359","name":"6f2c5b8e-0b06-4e0a-b9f9-61f11fd8e32d*7E3402A3D560B71714CB10DE7D20A637F63719BF4A36BD182218E7887CA8C359","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/clusters/azcli-test-cluster","status":"Succeeded","startTime":"2021-10-14T11:50:16.8121049Z","endTime":"2021-10-14T11:50:18.4154298Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '594' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 14 Oct 2021 11:50:47 GMT + etag: + - '"03005395-0000-3400-0000-6168197a0000"' + expires: + - '-1' + pragma: + - no-cache + 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: + - connectedvmware datastore delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g --name + User-Agent: + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/datastores/azcli-test-datastore?api-version=2020-10-01-preview&force=false + response: + body: + string: 'null' + headers: + api-supported-versions: + - 2020-10-01-preview + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/e524ffec-3dd5-492f-beed-ea0473b36105*3FB3EFBB90995B10712C33D83D0AA785C0894818377DDCA49EB2500901C7D1E3?api-version=2020-10-01-preview + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 14 Oct 2021 11:50:51 GMT + etag: + - '"0000c75e-0000-3400-0000-6168199b0000"' + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/e524ffec-3dd5-492f-beed-ea0473b36105*3FB3EFBB90995B10712C33D83D0AA785C0894818377DDCA49EB2500901C7D1E3?api-version=2020-10-01-preview + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - connectedvmware datastore delete + Connection: + - keep-alive + ParameterSetName: + - -g --name + User-Agent: + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/e524ffec-3dd5-492f-beed-ea0473b36105*3FB3EFBB90995B10712C33D83D0AA785C0894818377DDCA49EB2500901C7D1E3?api-version=2020-10-01-preview + response: + body: + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/e524ffec-3dd5-492f-beed-ea0473b36105*3FB3EFBB90995B10712C33D83D0AA785C0894818377DDCA49EB2500901C7D1E3","name":"e524ffec-3dd5-492f-beed-ea0473b36105*3FB3EFBB90995B10712C33D83D0AA785C0894818377DDCA49EB2500901C7D1E3","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/datastores/azcli-test-datastore","status":"Succeeded","startTime":"2021-10-14T11:50:51.6954749Z","endTime":"2021-10-14T11:50:52.982163Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '597' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 14 Oct 2021 11:51:21 GMT + etag: + - '"03006995-0000-3400-0000-6168199c0000"' + expires: + - '-1' + pragma: + - no-cache + 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: + - connectedvmware host delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g --name + User-Agent: + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/hosts/azcli-test-host?api-version=2020-10-01-preview&force=false + response: + body: + string: 'null' + headers: + api-supported-versions: + - 2020-10-01-preview + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/64359e9a-aeed-4682-95db-cbc135712965*B606F95858137F7537B56A1887E1F6AE9152C4B01A6618F5BF2320014B671309?api-version=2020-10-01-preview + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 14 Oct 2021 11:51:27 GMT + etag: + - '"0600da18-0000-3400-0000-616819bf0000"' + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/64359e9a-aeed-4682-95db-cbc135712965*B606F95858137F7537B56A1887E1F6AE9152C4B01A6618F5BF2320014B671309?api-version=2020-10-01-preview + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - connectedvmware host delete Connection: - keep-alive ParameterSetName: - -g --name User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/50f428d4-efb7-4036-a275-b922ac9b1719?api-version=2020-10-01-preview + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/64359e9a-aeed-4682-95db-cbc135712965*B606F95858137F7537B56A1887E1F6AE9152C4B01A6618F5BF2320014B671309?api-version=2020-10-01-preview response: body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/50f428d4-efb7-4036-a275-b922ac9b1719","name":"50f428d4-efb7-4036-a275-b922ac9b1719","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/azcli-test-resource-pool","status":"Succeeded","startTime":"2021-05-20T08:43:24.1912596Z","endTime":"2021-05-20T08:43:26.7923187Z","properties":null}' + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/64359e9a-aeed-4682-95db-cbc135712965*B606F95858137F7537B56A1887E1F6AE9152C4B01A6618F5BF2320014B671309","name":"64359e9a-aeed-4682-95db-cbc135712965*B606F95858137F7537B56A1887E1F6AE9152C4B01A6618F5BF2320014B671309","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/hosts/azcli-test-host","status":"Succeeded","startTime":"2021-10-14T11:51:27.6139478Z","endTime":"2021-10-14T11:51:28.9164867Z","properties":null}' headers: cache-control: - no-cache content-length: - - '476' + - '588' content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:43:54 GMT + - Thu, 14 Oct 2021 11:51:58 GMT etag: - - '"03008a5b-0000-3400-0000-60a6212e0000"' + - '"03007a95-0000-3400-0000-616819c00000"' expires: - '-1' pragma: @@ -1865,15 +3121,17 @@ interactions: ParameterSetName: - -g --name User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks/azcli-test-virtual-network?api-version=2020-10-01-preview&force=false + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks/azcli-test-virtual-network?api-version=2020-10-01-preview&force=false response: body: string: 'null' headers: api-supported-versions: - - 2019-12-20-privatepreview, 2020-10-01-preview + - 2020-10-01-preview + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/178528e2-ed76-407b-9052-d150f1c88aa5*F3D669D4A4408B8365FC43D695FED29AD980D9C1D76A5B7C059FEE017F81A77D?api-version=2020-10-01-preview cache-control: - no-cache content-length: @@ -1881,13 +3139,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:43:56 GMT + - Thu, 14 Oct 2021 11:52:01 GMT etag: - - '"0300733e-0000-3400-0000-60a6214d0000"' + - '"40003818-0000-3400-0000-616819e10000"' expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/be7feab0-a07b-4580-965f-ef7fc6248ff7?api-version=2020-10-01-preview + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/178528e2-ed76-407b-9052-d150f1c88aa5*F3D669D4A4408B8365FC43D695FED29AD980D9C1D76A5B7C059FEE017F81A77D?api-version=2020-10-01-preview pragma: - no-cache strict-transport-security: @@ -1915,23 +3173,23 @@ interactions: ParameterSetName: - -g --name User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/be7feab0-a07b-4580-965f-ef7fc6248ff7?api-version=2020-10-01-preview + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/178528e2-ed76-407b-9052-d150f1c88aa5*F3D669D4A4408B8365FC43D695FED29AD980D9C1D76A5B7C059FEE017F81A77D?api-version=2020-10-01-preview response: body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/be7feab0-a07b-4580-965f-ef7fc6248ff7","name":"be7feab0-a07b-4580-965f-ef7fc6248ff7","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks/azcli-test-virtual-network","status":"Succeeded","startTime":"2021-05-20T08:43:57.4834252Z","endTime":"2021-05-20T08:43:58.4731169Z","properties":null}' + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/178528e2-ed76-407b-9052-d150f1c88aa5*F3D669D4A4408B8365FC43D695FED29AD980D9C1D76A5B7C059FEE017F81A77D","name":"178528e2-ed76-407b-9052-d150f1c88aa5*F3D669D4A4408B8365FC43D695FED29AD980D9C1D76A5B7C059FEE017F81A77D","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks/azcli-test-virtual-network","status":"Succeeded","startTime":"2021-10-14T11:52:01.8711456Z","endTime":"2021-10-14T11:52:03.8821708Z","properties":null}' headers: cache-control: - no-cache content-length: - - '480' + - '609' content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:44:27 GMT + - Thu, 14 Oct 2021 11:52:32 GMT etag: - - '"03008f5b-0000-3400-0000-60a6214e0000"' + - '"03008795-0000-3400-0000-616819e30000"' expires: - '-1' pragma: @@ -1963,15 +3221,17 @@ interactions: ParameterSetName: - -g --name User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/azcli-test-vm-template?api-version=2020-10-01-preview&force=false + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/azcli-test-vm-template?api-version=2020-10-01-preview&force=false response: body: string: 'null' headers: api-supported-versions: - - 2019-12-20-privatepreview, 2020-10-01-preview + - 2020-10-01-preview + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/278addc7-0779-47ab-bd0c-21994447ed58*739A8DB20DE35FA614E0C5541FE2518D9E76FFE650E5EA3FC26BA40B95F1E8FB?api-version=2020-10-01-preview cache-control: - no-cache content-length: @@ -1979,13 +3239,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:44:31 GMT + - Thu, 14 Oct 2021 11:52:34 GMT etag: - - '"00005185-0000-3400-0000-60a6216f0000"' + - '"0f001131-0000-3400-0000-61681a030000"' expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/8c693734-7fab-4d32-b9f2-c7a1d37c5163?api-version=2020-10-01-preview + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/278addc7-0779-47ab-bd0c-21994447ed58*739A8DB20DE35FA614E0C5541FE2518D9E76FFE650E5EA3FC26BA40B95F1E8FB?api-version=2020-10-01-preview pragma: - no-cache strict-transport-security: @@ -2013,23 +3273,23 @@ interactions: ParameterSetName: - -g --name User-Agent: - - AZURECLI/2.23.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.5 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.29.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.8.6 (Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/8c693734-7fab-4d32-b9f2-c7a1d37c5163?api-version=2020-10-01-preview + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/278addc7-0779-47ab-bd0c-21994447ed58*739A8DB20DE35FA614E0C5541FE2518D9E76FFE650E5EA3FC26BA40B95F1E8FB?api-version=2020-10-01-preview response: body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/8c693734-7fab-4d32-b9f2-c7a1d37c5163","name":"8c693734-7fab-4d32-b9f2-c7a1d37c5163","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/azcli-test-vm-template","status":"Succeeded","startTime":"2021-05-20T08:44:31.107236Z","endTime":"2021-05-20T08:44:32.2300551Z","properties":null}' + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS2EUAP/operationStatuses/278addc7-0779-47ab-bd0c-21994447ed58*739A8DB20DE35FA614E0C5541FE2518D9E76FFE650E5EA3FC26BA40B95F1E8FB","name":"278addc7-0779-47ab-bd0c-21994447ed58*739A8DB20DE35FA614E0C5541FE2518D9E76FFE650E5EA3FC26BA40B95F1E8FB","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-cli-test2/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/azcli-test-vm-template","status":"Succeeded","startTime":"2021-10-14T11:52:35.3139894Z","endTime":"2021-10-14T11:52:36.6248037Z","properties":null}' headers: cache-control: - no-cache content-length: - - '483' + - '613' content-type: - application/json; charset=utf-8 date: - - Thu, 20 May 2021 08:45:01 GMT + - Thu, 14 Oct 2021 11:53:06 GMT etag: - - '"0300925b-0000-3400-0000-60a621700000"' + - '"03008f95-0000-3400-0000-61681a040000"' expires: - '-1' pragma: diff --git a/src/connectedvmware/azext_connectedvmware/tests/latest/test_connectedvmware_scenario.py b/src/connectedvmware/azext_connectedvmware/tests/latest/test_connectedvmware_scenario.py index 038aa3d59b..4baf7fc857 100644 --- a/src/connectedvmware/azext_connectedvmware/tests/latest/test_connectedvmware_scenario.py +++ b/src/connectedvmware/azext_connectedvmware/tests/latest/test_connectedvmware_scenario.py @@ -18,15 +18,21 @@ class ConnectedvmwareScenarioTest(ScenarioTest): def test_connectedvmware(self): self.kwargs.update({ - 'rg': 'azcli-test-rg', + 'rg': 'az-cli-test2', 'loc': 'eastus2euap', 'cus_loc': 'azcli-test-cl-avs', 'vc_name': 'azcli-test-vcenter-avs', - 'rp_morefid': 'resgroup-5034', + 'rp_morefid': 'resgroup-74941', 'rp_name': 'azcli-test-resource-pool', - 'vnet_morefid': 'network-o761', + 'cluster_morefid': 'domain-c7', + 'cluster_name': 'azcli-test-cluster', + 'datastore_morefid': 'datastore-11', + 'datastore_name': 'azcli-test-datastore', + 'host_morefid': 'host-10', + 'host_name': 'azcli-test-host', + 'vnet_morefid': 'network-o61', 'vnet_name': 'azcli-test-virtual-network', - 'vmtpl_morefid': 'vm-55', + 'vmtpl_morefid': 'vm-141', 'vmtpl_name': 'azcli-test-vm-template', 'vm_name': 'azcli-test-virtual-machine', 'nic_name': 'nic_1', @@ -56,6 +62,45 @@ def test_connectedvmware(self): # At this point there should be 1 resource-pool resource. assert len(resource_list) >= 1 + # Create cluster resource. + self.cmd('az connectedvmware cluster create -g {rg} -l {loc} --custom-location {cus_loc} --vcenter {vc_name} --mo-ref-id {cluster_morefid} --name {cluster_name}') + + # Validate the show command output with cluster name. + self.cmd('az connectedvmware cluster show -g {rg} --name {cluster_name}', checks=[ + self.check('name', '{cluster_name}'), + ]) + + # List the cluster resources in this resource group. + resource_list = self.cmd('az connectedvmware cluster list -g {rg}').get_output_in_json() + # At this point there should be 1 cluster resource. + assert len(resource_list) >= 1 + + # Create datastore resource. + self.cmd('az connectedvmware datastore create -g {rg} -l {loc} --custom-location {cus_loc} --vcenter {vc_name} --mo-ref-id {datastore_morefid} --name {datastore_name}') + + # Validate the show command output with datastore name. + self.cmd('az connectedvmware datastore show -g {rg} --name {datastore_name}', checks=[ + self.check('name', '{datastore_name}'), + ]) + + # List the datastore resources in this resource group. + resource_list = self.cmd('az connectedvmware datastore list -g {rg}').get_output_in_json() + # At this point there should be 1 datastore resource. + assert len(resource_list) >= 1 + + # Create host resource. + self.cmd('az connectedvmware host create -g {rg} -l {loc} --custom-location {cus_loc} --vcenter {vc_name} --mo-ref-id {host_morefid} --name {host_name}') + + # Validate the show command output with host name. + self.cmd('az connectedvmware host show -g {rg} --name {host_name}', checks=[ + self.check('name', '{host_name}'), + ]) + + # List the host resources in this resource group. + resource_list = self.cmd('az connectedvmware host list -g {rg}').get_output_in_json() + # At this point there should be 1 host resource. + assert len(resource_list) >= 1 + # Create virtual-network resource. self.cmd('az connectedvmware virtual-network create -g {rg} -l {loc} --custom-location {cus_loc} --vcenter {vc_name} --mo-ref-id {vnet_morefid} --name {vnet_name}') @@ -83,7 +128,7 @@ def test_connectedvmware(self): assert len(resource_list) >= 1 # Validate the show command output with inventory-item name. - self.cmd('az connectedvmware inventory-item show -g {rg} --vcenter-name {vc_name} --inventory-item {rp_morefid}', checks=[ + self.cmd('az connectedvmware vcenter inventory-item show -g {rg} --vcenter {vc_name} --inventory-item {rp_morefid}', checks=[ self.check('name', '{rp_morefid}'), ]) @@ -127,13 +172,22 @@ def test_connectedvmware(self): self.cmd('az connectedvmware vm start -g {rg} --name {vm_name}') # Delete the created VM. - self.cmd('az connectedvmware vm delete -g {rg} --name {vm_name}') + self.cmd('az connectedvmware vm delete -g {rg} --name {vm_name} -y') # Delete the created resource-pool. - self.cmd('az connectedvmware resource-pool delete -g {rg} --name {rp_name}') + self.cmd('az connectedvmware resource-pool delete -g {rg} --name {rp_name} -y') + + # Delete the created cluster. + self.cmd('az connectedvmware cluster delete -g {rg} --name {cluster_name} -y') + + # Delete the created datastore. + self.cmd('az connectedvmware datastore delete -g {rg} --name {datastore_name} -y') + + # Delete the created host. + self.cmd('az connectedvmware host delete -g {rg} --name {host_name} -y') # Delete the created virtual-network. - self.cmd('az connectedvmware virtual-network delete -g {rg} --name {vnet_name}') + self.cmd('az connectedvmware virtual-network delete -g {rg} --name {vnet_name} -y') # Delete the created vm-template. - self.cmd('az connectedvmware vm-template delete -g {rg} --name {vmtpl_name}') + self.cmd('az connectedvmware vm-template delete -g {rg} --name {vmtpl_name} -y') \ No newline at end of file diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/_azure_arc_vmware_management_service_api.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/_azure_arc_vmware_management_service_api.py index b59b0a3db3..4d4f0f49e5 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/_azure_arc_vmware_management_service_api.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/_azure_arc_vmware_management_service_api.py @@ -21,6 +21,9 @@ from ._configuration import AzureArcVMwareManagementServiceAPIConfiguration from .operations import Operations from .operations import ResourcePoolsOperations +from .operations import ClustersOperations +from .operations import HostsOperations +from .operations import DatastoresOperations from .operations import VCentersOperations from .operations import VirtualMachinesOperations from .operations import VirtualMachineTemplatesOperations @@ -39,6 +42,12 @@ class AzureArcVMwareManagementServiceAPI(object): :vartype operations: azure_arc_vmware_management_service_api.operations.Operations :ivar resource_pools: ResourcePoolsOperations operations :vartype resource_pools: azure_arc_vmware_management_service_api.operations.ResourcePoolsOperations + :ivar clusters: ClustersOperations operations + :vartype clusters: azure_arc_vmware_management_service_api.operations.ClustersOperations + :ivar hosts: HostsOperations operations + :vartype hosts: azure_arc_vmware_management_service_api.operations.HostsOperations + :ivar datastores: DatastoresOperations operations + :vartype datastores: azure_arc_vmware_management_service_api.operations.DatastoresOperations :ivar vcenters: VCentersOperations operations :vartype vcenters: azure_arc_vmware_management_service_api.operations.VCentersOperations :ivar virtual_machines: VirtualMachinesOperations operations @@ -85,6 +94,12 @@ def __init__( self._client, self._config, self._serialize, self._deserialize) self.resource_pools = ResourcePoolsOperations( self._client, self._config, self._serialize, self._deserialize) + self.clusters = ClustersOperations( + self._client, self._config, self._serialize, self._deserialize) + self.hosts = HostsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.datastores = DatastoresOperations( + self._client, self._config, self._serialize, self._deserialize) self.vcenters = VCentersOperations( self._client, self._config, self._serialize, self._deserialize) self.virtual_machines = VirtualMachinesOperations( diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/_azure_arc_vmware_management_service_api.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/_azure_arc_vmware_management_service_api.py index 8942810ae9..1dea4672c0 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/_azure_arc_vmware_management_service_api.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/_azure_arc_vmware_management_service_api.py @@ -19,6 +19,9 @@ from ._configuration import AzureArcVMwareManagementServiceAPIConfiguration from .operations import Operations from .operations import ResourcePoolsOperations +from .operations import ClustersOperations +from .operations import HostsOperations +from .operations import DatastoresOperations from .operations import VCentersOperations from .operations import VirtualMachinesOperations from .operations import VirtualMachineTemplatesOperations @@ -37,6 +40,12 @@ class AzureArcVMwareManagementServiceAPI(object): :vartype operations: azure_arc_vmware_management_service_api.aio.operations.Operations :ivar resource_pools: ResourcePoolsOperations operations :vartype resource_pools: azure_arc_vmware_management_service_api.aio.operations.ResourcePoolsOperations + :ivar clusters: ClustersOperations operations + :vartype clusters: azure_arc_vmware_management_service_api.aio.operations.ClustersOperations + :ivar hosts: HostsOperations operations + :vartype hosts: azure_arc_vmware_management_service_api.aio.operations.HostsOperations + :ivar datastores: DatastoresOperations operations + :vartype datastores: azure_arc_vmware_management_service_api.aio.operations.DatastoresOperations :ivar vcenters: VCentersOperations operations :vartype vcenters: azure_arc_vmware_management_service_api.aio.operations.VCentersOperations :ivar virtual_machines: VirtualMachinesOperations operations @@ -82,6 +91,12 @@ def __init__( self._client, self._config, self._serialize, self._deserialize) self.resource_pools = ResourcePoolsOperations( self._client, self._config, self._serialize, self._deserialize) + self.clusters = ClustersOperations( + self._client, self._config, self._serialize, self._deserialize) + self.hosts = HostsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.datastores = DatastoresOperations( + self._client, self._config, self._serialize, self._deserialize) self.vcenters = VCentersOperations( self._client, self._config, self._serialize, self._deserialize) self.virtual_machines = VirtualMachinesOperations( diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/__init__.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/__init__.py index dbe61394bc..b41a867163 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/__init__.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/__init__.py @@ -8,6 +8,9 @@ from ._operations import Operations from ._resource_pools_operations import ResourcePoolsOperations +from ._clusters_operations import ClustersOperations +from ._hosts_operations import HostsOperations +from ._datastores_operations import DatastoresOperations from ._vcenters_operations import VCentersOperations from ._virtual_machines_operations import VirtualMachinesOperations from ._virtual_machine_templates_operations import VirtualMachineTemplatesOperations @@ -20,6 +23,9 @@ __all__ = [ 'Operations', 'ResourcePoolsOperations', + 'ClustersOperations', + 'HostsOperations', + 'DatastoresOperations', 'VCentersOperations', 'VirtualMachinesOperations', 'VirtualMachineTemplatesOperations', diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_clusters_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_clusters_operations.py new file mode 100644 index 0000000000..65a0981ed1 --- /dev/null +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_clusters_operations.py @@ -0,0 +1,571 @@ +# 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 ClustersOperations: + """ClustersOperations 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: ~azure_arc_vmware_management_service_api.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 + + async def _create_initial( + self, + resource_group_name: str, + cluster_name: str, + body: Optional["_models.Cluster"] = None, + **kwargs: Any + ) -> "_models.Cluster": + cls = kwargs.pop('cls', None) # type: ClsType["_models.Cluster"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_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 body is not None: + body_content = self._serialize.body(body, 'Cluster') + else: + body_content = None + 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('Cluster', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('Cluster', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/clusters/{clusterName}'} # type: ignore + + async def begin_create( + self, + resource_group_name: str, + cluster_name: str, + body: Optional["_models.Cluster"] = None, + **kwargs: Any + ) -> AsyncLROPoller["_models.Cluster"]: + """Implements cluster PUT method. + + Create Or Update cluster. + + :param resource_group_name: The Resource Group Name. + :type resource_group_name: str + :param cluster_name: Name of the cluster. + :type cluster_name: str + :param body: Request payload. + :type body: ~azure_arc_vmware_management_service_api.models.Cluster + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either Cluster or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure_arc_vmware_management_service_api.models.Cluster] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.Cluster"] + 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_initial( + resource_group_name=resource_group_name, + cluster_name=cluster_name, + body=body, + 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('Cluster', 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'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, 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.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/clusters/{clusterName}'} # type: ignore + + async def get( + self, + resource_group_name: str, + cluster_name: str, + **kwargs: Any + ) -> "_models.Cluster": + """Gets a cluster. + + Implements cluster GET method. + + :param resource_group_name: The Resource Group Name. + :type resource_group_name: str + :param cluster_name: Name of the cluster. + :type cluster_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Cluster, or the result of cls(response) + :rtype: ~azure_arc_vmware_management_service_api.models.Cluster + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.Cluster"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + 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'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('Cluster', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/clusters/{clusterName}'} # type: ignore + + async def update( + self, + resource_group_name: str, + cluster_name: str, + body: Optional["_models.ResourcePatch"] = None, + **kwargs: Any + ) -> "_models.Cluster": + """Updates a cluster. + + API to update certain properties of the cluster resource. + + :param resource_group_name: The Resource Group Name. + :type resource_group_name: str + :param cluster_name: Name of the cluster. + :type cluster_name: str + :param body: Resource properties to update. + :type body: ~azure_arc_vmware_management_service_api.models.ResourcePatch + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Cluster, or the result of cls(response) + :rtype: ~azure_arc_vmware_management_service_api.models.Cluster + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.Cluster"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.update.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_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 body is not None: + body_content = self._serialize.body(body, 'ResourcePatch') + else: + body_content = None + 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) + 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('Cluster', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/clusters/{clusterName}'} # type: ignore + + async def _delete_initial( + self, + resource_group_name: str, + cluster_name: str, + force: Optional[bool] = None, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + 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'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_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') + if force is not None: + query_parameters['force'] = self._serialize.query("force", force, 'bool') + + # 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/clusters/{clusterName}'} # type: ignore + + async def begin_delete( + self, + resource_group_name: str, + cluster_name: str, + force: Optional[bool] = None, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes an cluster. + + Implements cluster DELETE method. + + :param resource_group_name: The Resource Group Name. + :type resource_group_name: str + :param cluster_name: Name of the cluster. + :type cluster_name: str + :param force: Whether force delete was specified. + :type force: bool + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + 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, + cluster_name=cluster_name, + force=force, + 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'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_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.ConnectedVMwarevSphere/clusters/{clusterName}'} # type: ignore + + def list( + self, + **kwargs: Any + ) -> AsyncIterable["_models.ClustersList"]: + """Implements GET clusters in a subscription. + + List of clusters in a subscription. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ClustersList or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.ClustersList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ClustersList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + 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'), + } + 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('ClustersList', 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]: + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedVMwarevSphere/clusters'} # type: ignore + + def list_by_resource_group( + self, + resource_group_name: str, + **kwargs: Any + ) -> AsyncIterable["_models.ClustersList"]: + """Implements GET clusters in a resource group. + + List of clusters in a resource group. + + :param resource_group_name: The Resource Group Name. + :type resource_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ClustersList or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.ClustersList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ClustersList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + 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_by_resource_group.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_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('ClustersList', 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]: + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/clusters'} # type: ignore diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_datastores_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_datastores_operations.py new file mode 100644 index 0000000000..698422156d --- /dev/null +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_datastores_operations.py @@ -0,0 +1,571 @@ +# 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 DatastoresOperations: + """DatastoresOperations 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: ~azure_arc_vmware_management_service_api.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 + + async def _create_initial( + self, + resource_group_name: str, + datastore_name: str, + body: Optional["_models.Datastore"] = None, + **kwargs: Any + ) -> "_models.Datastore": + cls = kwargs.pop('cls', None) # type: ClsType["_models.Datastore"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'datastoreName': self._serialize.url("datastore_name", datastore_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 body is not None: + body_content = self._serialize.body(body, 'Datastore') + else: + body_content = None + 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('Datastore', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('Datastore', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/datastores/{datastoreName}'} # type: ignore + + async def begin_create( + self, + resource_group_name: str, + datastore_name: str, + body: Optional["_models.Datastore"] = None, + **kwargs: Any + ) -> AsyncLROPoller["_models.Datastore"]: + """Implements datastore PUT method. + + Create Or Update datastore. + + :param resource_group_name: The Resource Group Name. + :type resource_group_name: str + :param datastore_name: Name of the datastore. + :type datastore_name: str + :param body: Request payload. + :type body: ~azure_arc_vmware_management_service_api.models.Datastore + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either Datastore or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure_arc_vmware_management_service_api.models.Datastore] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.Datastore"] + 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_initial( + resource_group_name=resource_group_name, + datastore_name=datastore_name, + body=body, + 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('Datastore', 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'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'datastoreName': self._serialize.url("datastore_name", datastore_name, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, 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.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/datastores/{datastoreName}'} # type: ignore + + async def get( + self, + resource_group_name: str, + datastore_name: str, + **kwargs: Any + ) -> "_models.Datastore": + """Gets a datastore. + + Implements datastore GET method. + + :param resource_group_name: The Resource Group Name. + :type resource_group_name: str + :param datastore_name: Name of the datastore. + :type datastore_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Datastore, or the result of cls(response) + :rtype: ~azure_arc_vmware_management_service_api.models.Datastore + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.Datastore"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + 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'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'datastoreName': self._serialize.url("datastore_name", datastore_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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('Datastore', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/datastores/{datastoreName}'} # type: ignore + + async def update( + self, + resource_group_name: str, + datastore_name: str, + body: Optional["_models.ResourcePatch"] = None, + **kwargs: Any + ) -> "_models.Datastore": + """Updates a datastore. + + API to update certain properties of the datastore resource. + + :param resource_group_name: The Resource Group Name. + :type resource_group_name: str + :param datastore_name: Name of the datastore. + :type datastore_name: str + :param body: Resource properties to update. + :type body: ~azure_arc_vmware_management_service_api.models.ResourcePatch + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Datastore, or the result of cls(response) + :rtype: ~azure_arc_vmware_management_service_api.models.Datastore + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.Datastore"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.update.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'datastoreName': self._serialize.url("datastore_name", datastore_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 body is not None: + body_content = self._serialize.body(body, 'ResourcePatch') + else: + body_content = None + 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) + 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('Datastore', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/datastores/{datastoreName}'} # type: ignore + + async def _delete_initial( + self, + resource_group_name: str, + datastore_name: str, + force: Optional[bool] = None, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + 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'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'datastoreName': self._serialize.url("datastore_name", datastore_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') + if force is not None: + query_parameters['force'] = self._serialize.query("force", force, 'bool') + + # 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/datastores/{datastoreName}'} # type: ignore + + async def begin_delete( + self, + resource_group_name: str, + datastore_name: str, + force: Optional[bool] = None, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes an datastore. + + Implements datastore DELETE method. + + :param resource_group_name: The Resource Group Name. + :type resource_group_name: str + :param datastore_name: Name of the datastore. + :type datastore_name: str + :param force: Whether force delete was specified. + :type force: bool + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + 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, + datastore_name=datastore_name, + force=force, + 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'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'datastoreName': self._serialize.url("datastore_name", datastore_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.ConnectedVMwarevSphere/datastores/{datastoreName}'} # type: ignore + + def list( + self, + **kwargs: Any + ) -> AsyncIterable["_models.DatastoresList"]: + """Implements GET datastores in a subscription. + + List of datastores in a subscription. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either DatastoresList or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.DatastoresList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.DatastoresList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + 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'), + } + 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('DatastoresList', 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]: + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedVMwarevSphere/datastores'} # type: ignore + + def list_by_resource_group( + self, + resource_group_name: str, + **kwargs: Any + ) -> AsyncIterable["_models.DatastoresList"]: + """Implements GET datastores in a resource group. + + List of datastores in a resource group. + + :param resource_group_name: The Resource Group Name. + :type resource_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either DatastoresList or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.DatastoresList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.DatastoresList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + 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_by_resource_group.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_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('DatastoresList', 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]: + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/datastores'} # type: ignore diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_guest_agent_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_guest_agent_operations.py index 54657ebbfe..e994a31104 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_guest_agent_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_guest_agent_operations.py @@ -49,7 +49,7 @@ async def _create_initial( virtual_machine_name: str, name: str, body: Optional["_models.GuestAgent"] = None, - **kwargs + **kwargs: Any ) -> "_models.GuestAgent": cls = kwargs.pop('cls', None) # type: ClsType["_models.GuestAgent"] error_map = { @@ -112,7 +112,7 @@ async def begin_create( virtual_machine_name: str, name: str, body: Optional["_models.GuestAgent"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GuestAgent"]: """Implements GuestAgent PUT method. @@ -128,8 +128,8 @@ async def begin_create( :type body: ~azure_arc_vmware_management_service_api.models.GuestAgent :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 GuestAgent or the result of cls(response) @@ -189,7 +189,7 @@ async def get( resource_group_name: str, virtual_machine_name: str, name: str, - **kwargs + **kwargs: Any ) -> "_models.GuestAgent": """Gets GuestAgent. @@ -254,7 +254,7 @@ async def _delete_initial( resource_group_name: str, virtual_machine_name: str, name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -301,7 +301,7 @@ async def begin_delete( resource_group_name: str, virtual_machine_name: str, name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes an GuestAgent. @@ -315,8 +315,8 @@ async def begin_delete( :type 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) @@ -371,7 +371,7 @@ def list_by_vm( self, resource_group_name: str, virtual_machine_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.GuestAgentList"]: """Implements GET GuestAgent in a vm. diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_hosts_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_hosts_operations.py new file mode 100644 index 0000000000..d0b9b27f30 --- /dev/null +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_hosts_operations.py @@ -0,0 +1,571 @@ +# 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 HostsOperations: + """HostsOperations 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: ~azure_arc_vmware_management_service_api.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 + + async def _create_initial( + self, + resource_group_name: str, + host_name: str, + body: Optional["_models.Host"] = None, + **kwargs: Any + ) -> "_models.Host": + cls = kwargs.pop('cls', None) # type: ClsType["_models.Host"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'hostName': self._serialize.url("host_name", host_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 body is not None: + body_content = self._serialize.body(body, 'Host') + else: + body_content = None + 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('Host', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('Host', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/hosts/{hostName}'} # type: ignore + + async def begin_create( + self, + resource_group_name: str, + host_name: str, + body: Optional["_models.Host"] = None, + **kwargs: Any + ) -> AsyncLROPoller["_models.Host"]: + """Implements host PUT method. + + Create Or Update host. + + :param resource_group_name: The Resource Group Name. + :type resource_group_name: str + :param host_name: Name of the host. + :type host_name: str + :param body: Request payload. + :type body: ~azure_arc_vmware_management_service_api.models.Host + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either Host or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure_arc_vmware_management_service_api.models.Host] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.Host"] + 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_initial( + resource_group_name=resource_group_name, + host_name=host_name, + body=body, + 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('Host', 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'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'hostName': self._serialize.url("host_name", host_name, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, 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.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/hosts/{hostName}'} # type: ignore + + async def get( + self, + resource_group_name: str, + host_name: str, + **kwargs: Any + ) -> "_models.Host": + """Gets a host. + + Implements host GET method. + + :param resource_group_name: The Resource Group Name. + :type resource_group_name: str + :param host_name: Name of the host. + :type host_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Host, or the result of cls(response) + :rtype: ~azure_arc_vmware_management_service_api.models.Host + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.Host"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + 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'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'hostName': self._serialize.url("host_name", host_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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('Host', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/hosts/{hostName}'} # type: ignore + + async def update( + self, + resource_group_name: str, + host_name: str, + body: Optional["_models.ResourcePatch"] = None, + **kwargs: Any + ) -> "_models.Host": + """Updates a host. + + API to update certain properties of the host resource. + + :param resource_group_name: The Resource Group Name. + :type resource_group_name: str + :param host_name: Name of the host. + :type host_name: str + :param body: Resource properties to update. + :type body: ~azure_arc_vmware_management_service_api.models.ResourcePatch + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Host, or the result of cls(response) + :rtype: ~azure_arc_vmware_management_service_api.models.Host + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.Host"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.update.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'hostName': self._serialize.url("host_name", host_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 body is not None: + body_content = self._serialize.body(body, 'ResourcePatch') + else: + body_content = None + 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) + 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('Host', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/hosts/{hostName}'} # type: ignore + + async def _delete_initial( + self, + resource_group_name: str, + host_name: str, + force: Optional[bool] = None, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + 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'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'hostName': self._serialize.url("host_name", host_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') + if force is not None: + query_parameters['force'] = self._serialize.query("force", force, 'bool') + + # 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/hosts/{hostName}'} # type: ignore + + async def begin_delete( + self, + resource_group_name: str, + host_name: str, + force: Optional[bool] = None, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes an host. + + Implements host DELETE method. + + :param resource_group_name: The Resource Group Name. + :type resource_group_name: str + :param host_name: Name of the host. + :type host_name: str + :param force: Whether force delete was specified. + :type force: bool + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + 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, + host_name=host_name, + force=force, + 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'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'hostName': self._serialize.url("host_name", host_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.ConnectedVMwarevSphere/hosts/{hostName}'} # type: ignore + + def list( + self, + **kwargs: Any + ) -> AsyncIterable["_models.HostsList"]: + """Implements GET hosts in a subscription. + + List of hosts in a subscription. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either HostsList or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.HostsList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.HostsList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + 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'), + } + 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('HostsList', 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]: + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedVMwarevSphere/hosts'} # type: ignore + + def list_by_resource_group( + self, + resource_group_name: str, + **kwargs: Any + ) -> AsyncIterable["_models.HostsList"]: + """Implements GET hosts in a resource group. + + List of hosts in a resource group. + + :param resource_group_name: The Resource Group Name. + :type resource_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either HostsList or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.HostsList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.HostsList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + 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_by_resource_group.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_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('HostsList', 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]: + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/hosts'} # type: ignore diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_hybrid_identity_metadata_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_hybrid_identity_metadata_operations.py index de016a57c1..c77c3577a2 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_hybrid_identity_metadata_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_hybrid_identity_metadata_operations.py @@ -47,7 +47,7 @@ async def create( virtual_machine_name: str, metadata_name: str, body: Optional["_models.HybridIdentityMetadata"] = None, - **kwargs + **kwargs: Any ) -> "_models.HybridIdentityMetadata": """Implements HybridIdentityMetadata PUT method. @@ -122,7 +122,7 @@ async def get( resource_group_name: str, virtual_machine_name: str, metadata_name: str, - **kwargs + **kwargs: Any ) -> "_models.HybridIdentityMetadata": """Gets HybridIdentityMetadata. @@ -187,7 +187,7 @@ async def delete( resource_group_name: str, virtual_machine_name: str, metadata_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes an HybridIdentityMetadata. @@ -248,7 +248,7 @@ def list_by_vm( self, resource_group_name: str, virtual_machine_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.HybridIdentityMetadataList"]: """Implements GET HybridIdentityMetadata in a vm. diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_inventory_items_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_inventory_items_operations.py index 15bf1d9eeb..3964fa934e 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_inventory_items_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_inventory_items_operations.py @@ -47,7 +47,7 @@ async def create( vcenter_name: str, inventory_item_name: str, body: Optional["_models.InventoryItem"] = None, - **kwargs + **kwargs: Any ) -> "_models.InventoryItem": """Implements InventoryItem PUT method. @@ -122,7 +122,7 @@ async def get( resource_group_name: str, vcenter_name: str, inventory_item_name: str, - **kwargs + **kwargs: Any ) -> "_models.InventoryItem": """Gets InventoryItem. @@ -187,7 +187,7 @@ async def delete( resource_group_name: str, vcenter_name: str, inventory_item_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes an inventoryItem. @@ -248,7 +248,7 @@ def list_by_v_center( self, resource_group_name: str, vcenter_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.InventoryItemsList"]: """Implements GET inventoryItems in a vCenter. diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_machine_extensions_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_machine_extensions_operations.py index f171cf6a51..adcb8d8e3b 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_machine_extensions_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_machine_extensions_operations.py @@ -49,9 +49,9 @@ async def _create_or_update_initial( name: str, extension_name: str, extension_parameters: "_models.MachineExtension", - **kwargs - ) -> Optional["_models.MachineExtension"]: - cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.MachineExtension"]] + **kwargs: Any + ) -> "_models.MachineExtension": + cls = kwargs.pop('cls', None) # type: ClsType["_models.MachineExtension"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -91,10 +91,12 @@ async def _create_or_update_initial( error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = None if response.status_code == 200: deserialized = self._deserialize('MachineExtension', pipeline_response) + if response.status_code == 201: + deserialized = self._deserialize('MachineExtension', pipeline_response) + if cls: return cls(pipeline_response, deserialized, {}) @@ -107,7 +109,7 @@ async def begin_create_or_update( name: str, extension_name: str, extension_parameters: "_models.MachineExtension", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.MachineExtension"]: """The operation to create or update the extension. @@ -121,8 +123,8 @@ async def begin_create_or_update( :type extension_parameters: ~azure_arc_vmware_management_service_api.models.MachineExtension :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 MachineExtension or the result of cls(response) @@ -183,9 +185,9 @@ async def _update_initial( name: str, extension_name: str, extension_parameters: "_models.MachineExtensionUpdate", - **kwargs - ) -> Optional["_models.MachineExtension"]: - cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.MachineExtension"]] + **kwargs: Any + ) -> "_models.MachineExtension": + cls = kwargs.pop('cls', None) # type: ClsType["_models.MachineExtension"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -225,10 +227,12 @@ async def _update_initial( error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = None if response.status_code == 200: deserialized = self._deserialize('MachineExtension', pipeline_response) + if response.status_code == 201: + deserialized = self._deserialize('MachineExtension', pipeline_response) + if cls: return cls(pipeline_response, deserialized, {}) @@ -241,7 +245,7 @@ async def begin_update( name: str, extension_name: str, extension_parameters: "_models.MachineExtensionUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.MachineExtension"]: """The operation to update the extension. @@ -255,8 +259,8 @@ async def begin_update( :type extension_parameters: ~azure_arc_vmware_management_service_api.models.MachineExtensionUpdate :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 MachineExtension or the result of cls(response) @@ -316,7 +320,7 @@ async def _delete_initial( resource_group_name: str, name: str, extension_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -363,7 +367,7 @@ async def begin_delete( resource_group_name: str, name: str, extension_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to delete the extension. @@ -375,8 +379,8 @@ async def begin_delete( :type extension_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) @@ -432,7 +436,7 @@ async def get( resource_group_name: str, name: str, extension_name: str, - **kwargs + **kwargs: Any ) -> "_models.MachineExtension": """The operation to get the extension. @@ -495,7 +499,7 @@ def list( resource_group_name: str, name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.MachineExtensionsListResult"]: """The operation to get all extensions of a non-Azure machine. diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_operations.py index 964d2d4a7e..462475b6c0 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.OperationsList"]: """Returns list of all operations. diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_resource_pools_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_resource_pools_operations.py index 9cfbc9f8bb..19c7a7a9a8 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_resource_pools_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_resource_pools_operations.py @@ -48,7 +48,7 @@ async def _create_initial( resource_group_name: str, resource_pool_name: str, body: Optional["_models.ResourcePool"] = None, - **kwargs + **kwargs: Any ) -> "_models.ResourcePool": cls = kwargs.pop('cls', None) # type: ClsType["_models.ResourcePool"] error_map = { @@ -109,7 +109,7 @@ async def begin_create( resource_group_name: str, resource_pool_name: str, body: Optional["_models.ResourcePool"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ResourcePool"]: """Implements resourcePool PUT method. @@ -123,8 +123,8 @@ async def begin_create( :type body: ~azure_arc_vmware_management_service_api.models.ResourcePool :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 ResourcePool or the result of cls(response) @@ -181,7 +181,7 @@ async def get( self, resource_group_name: str, resource_pool_name: str, - **kwargs + **kwargs: Any ) -> "_models.ResourcePool": """Gets a resourcePool. @@ -243,7 +243,7 @@ async def update( resource_group_name: str, resource_pool_name: str, body: Optional["_models.ResourcePatch"] = None, - **kwargs + **kwargs: Any ) -> "_models.ResourcePool": """Updates a resourcePool. @@ -315,7 +315,7 @@ async def _delete_initial( resource_group_name: str, resource_pool_name: str, force: Optional[bool] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -363,7 +363,7 @@ async def begin_delete( resource_group_name: str, resource_pool_name: str, force: Optional[bool] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes an resourcePool. @@ -377,8 +377,8 @@ async def begin_delete( :type force: bool :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) @@ -430,7 +430,7 @@ def get_long_running_output(pipeline_response): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourcePoolsList"]: """Implements GET resourcePools in a subscription. @@ -500,7 +500,7 @@ async def get_next(next_link=None): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourcePoolsList"]: """Implements GET resourcePools in a resource group. diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_vcenters_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_vcenters_operations.py index d3344f6d1f..1505b91c10 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_vcenters_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_vcenters_operations.py @@ -48,7 +48,7 @@ async def _create_initial( resource_group_name: str, vcenter_name: str, body: Optional["_models.VCenter"] = None, - **kwargs + **kwargs: Any ) -> "_models.VCenter": cls = kwargs.pop('cls', None) # type: ClsType["_models.VCenter"] error_map = { @@ -109,7 +109,7 @@ async def begin_create( resource_group_name: str, vcenter_name: str, body: Optional["_models.VCenter"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VCenter"]: """Implements vCenter PUT method. @@ -123,8 +123,8 @@ async def begin_create( :type body: ~azure_arc_vmware_management_service_api.models.VCenter :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 VCenter or the result of cls(response) @@ -181,7 +181,7 @@ async def get( self, resource_group_name: str, vcenter_name: str, - **kwargs + **kwargs: Any ) -> "_models.VCenter": """Gets a vCenter. @@ -243,7 +243,7 @@ async def update( resource_group_name: str, vcenter_name: str, body: Optional["_models.ResourcePatch"] = None, - **kwargs + **kwargs: Any ) -> "_models.VCenter": """Updates a vCenter. @@ -315,7 +315,7 @@ async def _delete_initial( resource_group_name: str, vcenter_name: str, force: Optional[bool] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -363,7 +363,7 @@ async def begin_delete( resource_group_name: str, vcenter_name: str, force: Optional[bool] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes an vCenter. @@ -377,8 +377,8 @@ async def begin_delete( :type force: bool :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) @@ -430,7 +430,7 @@ def get_long_running_output(pipeline_response): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VCentersList"]: """Implements GET vCenters in a subscription. @@ -500,7 +500,7 @@ async def get_next(next_link=None): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VCentersList"]: """Implements GET vCenters in a resource group. diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_virtual_machine_templates_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_virtual_machine_templates_operations.py index 6dcda81110..c93bd051cd 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_virtual_machine_templates_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_virtual_machine_templates_operations.py @@ -48,7 +48,7 @@ async def _create_initial( resource_group_name: str, virtual_machine_template_name: str, body: Optional["_models.VirtualMachineTemplate"] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineTemplate": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineTemplate"] error_map = { @@ -109,7 +109,7 @@ async def begin_create( resource_group_name: str, virtual_machine_template_name: str, body: Optional["_models.VirtualMachineTemplate"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineTemplate"]: """Implements virtual machine template PUT method. @@ -123,8 +123,8 @@ async def begin_create( :type body: ~azure_arc_vmware_management_service_api.models.VirtualMachineTemplate :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 VirtualMachineTemplate or the result of cls(response) @@ -181,7 +181,7 @@ async def get( self, resource_group_name: str, virtual_machine_template_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineTemplate": """Gets a virtual machine template. @@ -243,7 +243,7 @@ async def update( resource_group_name: str, virtual_machine_template_name: str, body: Optional["_models.ResourcePatch"] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineTemplate": """Updates a virtual machine template. @@ -315,7 +315,7 @@ async def _delete_initial( resource_group_name: str, virtual_machine_template_name: str, force: Optional[bool] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -363,7 +363,7 @@ async def begin_delete( resource_group_name: str, virtual_machine_template_name: str, force: Optional[bool] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes an virtual machine template. @@ -377,8 +377,8 @@ async def begin_delete( :type force: bool :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) @@ -430,7 +430,7 @@ def get_long_running_output(pipeline_response): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineTemplatesList"]: """Implements GET virtualMachineTemplates in a subscription. @@ -500,7 +500,7 @@ async def get_next(next_link=None): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineTemplatesList"]: """Implements GET virtualMachineTemplates in a resource group. diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_virtual_machines_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_virtual_machines_operations.py index 8f1ef9c87d..8bf87cbea7 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_virtual_machines_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_virtual_machines_operations.py @@ -48,7 +48,7 @@ async def _create_initial( resource_group_name: str, virtual_machine_name: str, body: Optional["_models.VirtualMachine"] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachine": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] error_map = { @@ -109,7 +109,7 @@ async def begin_create( resource_group_name: str, virtual_machine_name: str, body: Optional["_models.VirtualMachine"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachine"]: """Implements virtual machine PUT method. @@ -123,8 +123,8 @@ async def begin_create( :type body: ~azure_arc_vmware_management_service_api.models.VirtualMachine :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 VirtualMachine or the result of cls(response) @@ -181,7 +181,7 @@ async def get( self, resource_group_name: str, virtual_machine_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachine": """Gets a virtual machine. @@ -243,7 +243,7 @@ async def _update_initial( resource_group_name: str, virtual_machine_name: str, body: Optional["_models.VirtualMachineUpdate"] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachine": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] error_map = { @@ -304,7 +304,7 @@ async def begin_update( resource_group_name: str, virtual_machine_name: str, body: Optional["_models.VirtualMachineUpdate"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachine"]: """Updates a virtual machine. @@ -318,8 +318,8 @@ async def begin_update( :type body: ~azure_arc_vmware_management_service_api.models.VirtualMachineUpdate :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 VirtualMachine or the result of cls(response) @@ -377,7 +377,7 @@ async def _delete_initial( resource_group_name: str, virtual_machine_name: str, force: Optional[bool] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -425,7 +425,7 @@ async def begin_delete( resource_group_name: str, virtual_machine_name: str, force: Optional[bool] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes an virtual machine. @@ -439,8 +439,8 @@ async def begin_delete( :type force: bool :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) @@ -495,7 +495,7 @@ async def _stop_initial( resource_group_name: str, virtual_machine_name: str, body: Optional["_models.StopVirtualMachineOptions"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -549,7 +549,7 @@ async def begin_stop( resource_group_name: str, virtual_machine_name: str, body: Optional["_models.StopVirtualMachineOptions"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Implements the operation to stop a virtual machine. @@ -563,8 +563,8 @@ async def begin_stop( :type body: ~azure_arc_vmware_management_service_api.models.StopVirtualMachineOptions :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) @@ -618,7 +618,7 @@ async def _start_initial( self, resource_group_name: str, virtual_machine_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -663,7 +663,7 @@ async def begin_start( self, resource_group_name: str, virtual_machine_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Implements the operation to start a virtual machine. @@ -675,8 +675,8 @@ async def begin_start( :type virtual_machine_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) @@ -729,7 +729,7 @@ async def _restart_initial( self, resource_group_name: str, virtual_machine_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -774,7 +774,7 @@ async def begin_restart( self, resource_group_name: str, virtual_machine_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Implements the operation to restart a virtual machine. @@ -786,8 +786,8 @@ async def begin_restart( :type virtual_machine_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) @@ -838,7 +838,7 @@ def get_long_running_output(pipeline_response): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachinesList"]: """Implements GET virtualMachines in a subscription. @@ -908,7 +908,7 @@ async def get_next(next_link=None): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachinesList"]: """Implements GET virtualMachines in a resource group. diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_virtual_networks_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_virtual_networks_operations.py index 67b8ed42ed..de4184e064 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_virtual_networks_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_virtual_networks_operations.py @@ -48,7 +48,7 @@ async def _create_initial( resource_group_name: str, virtual_network_name: str, body: Optional["_models.VirtualNetwork"] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualNetwork": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualNetwork"] error_map = { @@ -109,7 +109,7 @@ async def begin_create( resource_group_name: str, virtual_network_name: str, body: Optional["_models.VirtualNetwork"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualNetwork"]: """Implements virtual network PUT method. @@ -123,8 +123,8 @@ async def begin_create( :type body: ~azure_arc_vmware_management_service_api.models.VirtualNetwork :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 VirtualNetwork or the result of cls(response) @@ -181,7 +181,7 @@ async def get( self, resource_group_name: str, virtual_network_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualNetwork": """Gets a virtual network. @@ -243,7 +243,7 @@ async def update( resource_group_name: str, virtual_network_name: str, body: Optional["_models.ResourcePatch"] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualNetwork": """Updates a virtual network. @@ -315,7 +315,7 @@ async def _delete_initial( resource_group_name: str, virtual_network_name: str, force: Optional[bool] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -363,7 +363,7 @@ async def begin_delete( resource_group_name: str, virtual_network_name: str, force: Optional[bool] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes an virtual network. @@ -377,8 +377,8 @@ async def begin_delete( :type force: bool :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) @@ -430,7 +430,7 @@ def get_long_running_output(pipeline_response): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualNetworksList"]: """Implements GET virtualNetworks in a subscription. @@ -500,7 +500,7 @@ async def get_next(next_link=None): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualNetworksList"]: """Implements GET virtualNetworks in a resource group. diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/__init__.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/__init__.py index 9b06fbbb5b..8565dca41b 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/__init__.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/__init__.py @@ -7,14 +7,25 @@ # -------------------------------------------------------------------------- try: + from ._models_py3 import Cluster + from ._models_py3 import ClusterInventoryItem + from ._models_py3 import ClustersList from ._models_py3 import Condition + from ._models_py3 import Datastore + from ._models_py3 import DatastoreInventoryItem + from ._models_py3 import DatastoresList from ._models_py3 import ErrorDefinition + from ._models_py3 import ErrorDetail from ._models_py3 import ErrorResponse from ._models_py3 import ExtendedLocation from ._models_py3 import GuestAgent from ._models_py3 import GuestAgentList + from ._models_py3 import GuestAgentProfile from ._models_py3 import GuestCredential from ._models_py3 import HardwareProfile + from ._models_py3 import Host + from ._models_py3 import HostsList + from ._models_py3 import HttpProxyConfiguration from ._models_py3 import HybridIdentityMetadata from ._models_py3 import HybridIdentityMetadataList from ._models_py3 import Identity @@ -38,12 +49,14 @@ from ._models_py3 import OperationDisplay from ._models_py3 import OperationsList from ._models_py3 import OsProfile + from ._models_py3 import PlacementProfile from ._models_py3 import ProxyResource from ._models_py3 import Resource from ._models_py3 import ResourcePatch from ._models_py3 import ResourcePool from ._models_py3 import ResourcePoolInventoryItem from ._models_py3 import ResourcePoolsList + from ._models_py3 import ResourceStatus from ._models_py3 import StopVirtualMachineOptions from ._models_py3 import StorageProfile from ._models_py3 import StorageProfileUpdate @@ -65,14 +78,25 @@ from ._models_py3 import VirtualNetworksList from ._models_py3 import VirtualSCSIController except (SyntaxError, ImportError): + from ._models import Cluster # type: ignore + from ._models import ClusterInventoryItem # type: ignore + from ._models import ClustersList # type: ignore from ._models import Condition # type: ignore + from ._models import Datastore # type: ignore + from ._models import DatastoreInventoryItem # type: ignore + from ._models import DatastoresList # type: ignore from ._models import ErrorDefinition # type: ignore + from ._models import ErrorDetail # type: ignore from ._models import ErrorResponse # type: ignore from ._models import ExtendedLocation # type: ignore from ._models import GuestAgent # type: ignore from ._models import GuestAgentList # type: ignore + from ._models import GuestAgentProfile # type: ignore from ._models import GuestCredential # type: ignore from ._models import HardwareProfile # type: ignore + from ._models import Host # type: ignore + from ._models import HostsList # type: ignore + from ._models import HttpProxyConfiguration # type: ignore from ._models import HybridIdentityMetadata # type: ignore from ._models import HybridIdentityMetadataList # type: ignore from ._models import Identity # type: ignore @@ -96,12 +120,14 @@ from ._models import OperationDisplay # type: ignore from ._models import OperationsList # type: ignore from ._models import OsProfile # type: ignore + from ._models import PlacementProfile # type: ignore from ._models import ProxyResource # type: ignore from ._models import Resource # type: ignore from ._models import ResourcePatch # type: ignore from ._models import ResourcePool # type: ignore from ._models import ResourcePoolInventoryItem # type: ignore from ._models import ResourcePoolsList # type: ignore + from ._models import ResourceStatus # type: ignore from ._models import StopVirtualMachineOptions # type: ignore from ._models import StorageProfile # type: ignore from ._models import StorageProfileUpdate # type: ignore @@ -126,6 +152,7 @@ from ._azure_arc_vmware_management_service_api_enums import ( CreatedByType, DiskMode, + DiskType, IPAddressAllocationMethod, IdentityType, InventoryType, @@ -133,20 +160,33 @@ OsType, PowerOnBootOption, ProvisioningAction, + ProvisioningState, SCSIControllerType, StatusLevelTypes, + StatusTypes, VirtualSCSISharing, ) __all__ = [ + 'Cluster', + 'ClusterInventoryItem', + 'ClustersList', 'Condition', + 'Datastore', + 'DatastoreInventoryItem', + 'DatastoresList', 'ErrorDefinition', + 'ErrorDetail', 'ErrorResponse', 'ExtendedLocation', 'GuestAgent', 'GuestAgentList', + 'GuestAgentProfile', 'GuestCredential', 'HardwareProfile', + 'Host', + 'HostsList', + 'HttpProxyConfiguration', 'HybridIdentityMetadata', 'HybridIdentityMetadataList', 'Identity', @@ -170,12 +210,14 @@ 'OperationDisplay', 'OperationsList', 'OsProfile', + 'PlacementProfile', 'ProxyResource', 'Resource', 'ResourcePatch', 'ResourcePool', 'ResourcePoolInventoryItem', 'ResourcePoolsList', + 'ResourceStatus', 'StopVirtualMachineOptions', 'StorageProfile', 'StorageProfileUpdate', @@ -198,6 +240,7 @@ 'VirtualSCSIController', 'CreatedByType', 'DiskMode', + 'DiskType', 'IPAddressAllocationMethod', 'IdentityType', 'InventoryType', @@ -205,7 +248,9 @@ 'OsType', 'PowerOnBootOption', 'ProvisioningAction', + 'ProvisioningState', 'SCSIControllerType', 'StatusLevelTypes', + 'StatusTypes', 'VirtualSCSISharing', ] diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/_azure_arc_vmware_management_service_api_enums.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/_azure_arc_vmware_management_service_api_enums.py index e86e1faad9..40baa56f77 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/_azure_arc_vmware_management_service_api_enums.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/_azure_arc_vmware_management_service_api_enums.py @@ -43,6 +43,18 @@ class DiskMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): INDEPENDENT_PERSISTENT = "independent_persistent" INDEPENDENT_NONPERSISTENT = "independent_nonpersistent" +class DiskType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Defines the different types of disks. + """ + + FLAT = "flat" + PMEM = "pmem" + RAWPHYSICAL = "rawphysical" + RAWVIRTUAL = "rawvirtual" + SPARSE = "sparse" + SESPARSE = "sesparse" + UNKNOWN = "unknown" + class IdentityType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The type of managed service identity. """ @@ -58,6 +70,8 @@ class InventoryType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): VIRTUAL_MACHINE = "VirtualMachine" VIRTUAL_MACHINE_TEMPLATE = "VirtualMachineTemplate" VIRTUAL_NETWORK = "VirtualNetwork" + CLUSTER = "Cluster" + DATASTORE = "Datastore" class IPAddressAllocationMethod(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """IP address allocation method. @@ -104,6 +118,19 @@ class ProvisioningAction(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): UNINSTALL = "uninstall" REPAIR = "repair" +class ProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The current deployment state of resource. + """ + + SUCCEEDED = "Succeeded" + FAILED = "Failed" + CANCELED = "Canceled" + PROVISIONING = "Provisioning" + UPDATING = "Updating" + DELETING = "Deleting" + ACCEPTED = "Accepted" + CREATED = "Created" + class SCSIControllerType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Defines the different types of SCSI controllers. """ @@ -121,6 +148,14 @@ class StatusLevelTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): WARNING = "Warning" ERROR = "Error" +class StatusTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The status of the hybrid machine agent. + """ + + CONNECTED = "Connected" + DISCONNECTED = "Disconnected" + ERROR = "Error" + class VirtualSCSISharing(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Defines the sharing mode for sharing the SCSI bus. """ diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/_models.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/_models.py index 66cbe90a65..3ddb908d08 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/_models.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/_models.py @@ -10,44 +10,444 @@ import msrest.serialization +class Cluster(msrest.serialization.Model): + """Define the cluster. + + 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 location: Required. Gets or sets the location. + :type location: str + :param extended_location: Gets or sets the extended location. + :type extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :ivar system_data: The system data. + :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :param tags: A set of tags. Gets or sets the Resource tags. + :type tags: dict[str, str] + :ivar name: Gets or sets the name. + :vartype name: str + :ivar id: Gets or sets the Id. + :vartype id: str + :ivar type: Gets or sets the type of the resource. + :vartype type: str + :param kind: Metadata used by portal/tooling/etc to render different UX experiences for + resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, + the resource provider must validate and persist this value. + :type kind: str + :ivar uuid: Gets or sets a unique identifier for this resource. + :vartype uuid: str + :param v_center_id: Gets or sets the ARM Id of the vCenter resource in which this cluster + resides. + :type v_center_id: str + :param mo_ref_id: Gets or sets the vCenter MoRef (Managed Object Reference) ID for the cluster. + :type mo_ref_id: str + :param inventory_item_id: Gets or sets the inventory Item ID for the cluster. + :type inventory_item_id: str + :ivar mo_name: Gets or sets the vCenter Managed Object name for the cluster. + :vartype mo_name: str + :ivar statuses: The resource status information. + :vartype statuses: list[~azure_arc_vmware_management_service_api.models.ResourceStatus] + :ivar custom_resource_name: Gets the name of the corresponding resource in Kubernetes. + :vartype custom_resource_name: str + :ivar provisioning_state: Gets or sets the provisioning state. + :vartype provisioning_state: str + """ + + _validation = { + 'location': {'required': True}, + 'system_data': {'readonly': True}, + 'name': {'readonly': True}, + 'id': {'readonly': True}, + 'type': {'readonly': True}, + 'uuid': {'readonly': True}, + 'mo_name': {'readonly': True}, + 'statuses': {'readonly': True}, + 'custom_resource_name': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'extended_location': {'key': 'extendedLocation', 'type': 'ExtendedLocation'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'name': {'key': 'name', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'uuid': {'key': 'properties.uuid', 'type': 'str'}, + 'v_center_id': {'key': 'properties.vCenterId', 'type': 'str'}, + 'mo_ref_id': {'key': 'properties.moRefId', 'type': 'str'}, + 'inventory_item_id': {'key': 'properties.inventoryItemId', 'type': 'str'}, + 'mo_name': {'key': 'properties.moName', 'type': 'str'}, + 'statuses': {'key': 'properties.statuses', 'type': '[ResourceStatus]'}, + 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(Cluster, self).__init__(**kwargs) + self.location = kwargs['location'] + self.extended_location = kwargs.get('extended_location', None) + self.system_data = None + self.tags = kwargs.get('tags', None) + self.name = None + self.id = None + self.type = None + self.kind = kwargs.get('kind', None) + self.uuid = None + self.v_center_id = kwargs.get('v_center_id', None) + self.mo_ref_id = kwargs.get('mo_ref_id', None) + self.inventory_item_id = kwargs.get('inventory_item_id', None) + self.mo_name = None + self.statuses = None + self.custom_resource_name = None + self.provisioning_state = None + + +class InventoryItemProperties(msrest.serialization.Model): + """Defines the resource properties. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: ClusterInventoryItem, DatastoreInventoryItem, ResourcePoolInventoryItem, VirtualMachineInventoryItem, VirtualMachineTemplateInventoryItem, VirtualNetworkInventoryItem. + + 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 inventory_type: Required. They inventory type.Constant filled by server. Possible + values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", + "Cluster", "Datastore". + :type inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + :param managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory + resource. + :type managed_resource_id: str + :param mo_ref_id: Gets or sets the MoRef (Managed Object Reference) ID for the inventory item. + :type mo_ref_id: str + :param mo_name: Gets or sets the vCenter Managed Object name for the inventory item. + :type mo_name: str + :ivar provisioning_state: Gets or sets the provisioning state. + :vartype provisioning_state: str + """ + + _validation = { + 'inventory_type': {'required': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'inventory_type': {'key': 'inventoryType', 'type': 'str'}, + 'managed_resource_id': {'key': 'managedResourceId', 'type': 'str'}, + 'mo_ref_id': {'key': 'moRefId', 'type': 'str'}, + 'mo_name': {'key': 'moName', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + _subtype_map = { + 'inventory_type': {'Cluster': 'ClusterInventoryItem', 'Datastore': 'DatastoreInventoryItem', 'ResourcePool': 'ResourcePoolInventoryItem', 'VirtualMachine': 'VirtualMachineInventoryItem', 'VirtualMachineTemplate': 'VirtualMachineTemplateInventoryItem', 'VirtualNetwork': 'VirtualNetworkInventoryItem'} + } + + def __init__( + self, + **kwargs + ): + super(InventoryItemProperties, self).__init__(**kwargs) + self.inventory_type = None # type: Optional[str] + self.managed_resource_id = kwargs.get('managed_resource_id', None) + self.mo_ref_id = kwargs.get('mo_ref_id', None) + self.mo_name = kwargs.get('mo_name', None) + self.provisioning_state = None + + +class ClusterInventoryItem(InventoryItemProperties): + """The cluster inventory item. + + 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 inventory_type: Required. They inventory type.Constant filled by server. Possible + values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", + "Cluster", "Datastore". + :type inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + :param managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory + resource. + :type managed_resource_id: str + :param mo_ref_id: Gets or sets the MoRef (Managed Object Reference) ID for the inventory item. + :type mo_ref_id: str + :param mo_name: Gets or sets the vCenter Managed Object name for the inventory item. + :type mo_name: str + :ivar provisioning_state: Gets or sets the provisioning state. + :vartype provisioning_state: str + """ + + _validation = { + 'inventory_type': {'required': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'inventory_type': {'key': 'inventoryType', 'type': 'str'}, + 'managed_resource_id': {'key': 'managedResourceId', 'type': 'str'}, + 'mo_ref_id': {'key': 'moRefId', 'type': 'str'}, + 'mo_name': {'key': 'moName', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ClusterInventoryItem, self).__init__(**kwargs) + self.inventory_type = 'Cluster' # type: str + + +class ClustersList(msrest.serialization.Model): + """List of Clusters. + + All required parameters must be populated in order to send to Azure. + + :param next_link: Url to follow for getting next page of Clusters. + :type next_link: str + :param value: Required. Array of Clusters. + :type value: list[~azure_arc_vmware_management_service_api.models.Cluster] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[Cluster]'}, + } + + def __init__( + self, + **kwargs + ): + super(ClustersList, self).__init__(**kwargs) + self.next_link = kwargs.get('next_link', None) + self.value = kwargs['value'] + + class Condition(msrest.serialization.Model): """Condition defines an extension to status. - Variables are only populated by the server, and will be ignored when sending a request. + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar status: Status of the condition. + :vartype status: str + :ivar reason: The reason for the condition's status. + :vartype reason: str + :ivar message: A human readable message indicating details about the status. + :vartype message: str + :ivar severity: Severity with which to treat failures of this type of condition. + :vartype severity: str + """ + + _validation = { + 'status': {'readonly': True}, + 'reason': {'readonly': True}, + 'message': {'readonly': True}, + 'severity': {'readonly': True}, + } + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'reason': {'key': 'reason', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'severity': {'key': 'severity', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(Condition, self).__init__(**kwargs) + self.status = None + self.reason = None + self.message = None + self.severity = None + + +class Datastore(msrest.serialization.Model): + """Define the datastore. + + 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 location: Required. Gets or sets the location. + :type location: str + :param extended_location: Gets or sets the extended location. + :type extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :ivar system_data: The system data. + :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :param tags: A set of tags. Gets or sets the Resource tags. + :type tags: dict[str, str] + :ivar name: Gets or sets the name. + :vartype name: str + :ivar id: Gets or sets the Id. + :vartype id: str + :ivar type: Gets or sets the type of the resource. + :vartype type: str + :param kind: Metadata used by portal/tooling/etc to render different UX experiences for + resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, + the resource provider must validate and persist this value. + :type kind: str + :ivar uuid: Gets or sets a unique identifier for this resource. + :vartype uuid: str + :param v_center_id: Gets or sets the ARM Id of the vCenter resource in which this datastore + resides. + :type v_center_id: str + :param mo_ref_id: Gets or sets the vCenter MoRef (Managed Object Reference) ID for the + datastore. + :type mo_ref_id: str + :param inventory_item_id: Gets or sets the inventory Item ID for the datastore. + :type inventory_item_id: str + :ivar mo_name: Gets or sets the vCenter Managed Object name for the datastore. + :vartype mo_name: str + :ivar statuses: The resource status information. + :vartype statuses: list[~azure_arc_vmware_management_service_api.models.ResourceStatus] + :ivar custom_resource_name: Gets the name of the corresponding resource in Kubernetes. + :vartype custom_resource_name: str + :ivar provisioning_state: Provisioning state of the resource. Possible values include: + "Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", + "Created". + :vartype provisioning_state: str or + ~azure_arc_vmware_management_service_api.models.ProvisioningState + """ + + _validation = { + 'location': {'required': True}, + 'system_data': {'readonly': True}, + 'name': {'readonly': True}, + 'id': {'readonly': True}, + 'type': {'readonly': True}, + 'uuid': {'readonly': True}, + 'mo_name': {'readonly': True}, + 'statuses': {'readonly': True}, + 'custom_resource_name': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'extended_location': {'key': 'extendedLocation', 'type': 'ExtendedLocation'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'name': {'key': 'name', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'uuid': {'key': 'properties.uuid', 'type': 'str'}, + 'v_center_id': {'key': 'properties.vCenterId', 'type': 'str'}, + 'mo_ref_id': {'key': 'properties.moRefId', 'type': 'str'}, + 'inventory_item_id': {'key': 'properties.inventoryItemId', 'type': 'str'}, + 'mo_name': {'key': 'properties.moName', 'type': 'str'}, + 'statuses': {'key': 'properties.statuses', 'type': '[ResourceStatus]'}, + 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(Datastore, self).__init__(**kwargs) + self.location = kwargs['location'] + self.extended_location = kwargs.get('extended_location', None) + self.system_data = None + self.tags = kwargs.get('tags', None) + self.name = None + self.id = None + self.type = None + self.kind = kwargs.get('kind', None) + self.uuid = None + self.v_center_id = kwargs.get('v_center_id', None) + self.mo_ref_id = kwargs.get('mo_ref_id', None) + self.inventory_item_id = kwargs.get('inventory_item_id', None) + self.mo_name = None + self.statuses = None + self.custom_resource_name = None + self.provisioning_state = None + + +class DatastoreInventoryItem(InventoryItemProperties): + """The datastore inventory item. + + 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 inventory_type: Required. They inventory type.Constant filled by server. Possible + values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", + "Cluster", "Datastore". + :type inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + :param managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory + resource. + :type managed_resource_id: str + :param mo_ref_id: Gets or sets the MoRef (Managed Object Reference) ID for the inventory item. + :type mo_ref_id: str + :param mo_name: Gets or sets the vCenter Managed Object name for the inventory item. + :type mo_name: str + :ivar provisioning_state: Gets or sets the provisioning state. + :vartype provisioning_state: str + """ + + _validation = { + 'inventory_type': {'required': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'inventory_type': {'key': 'inventoryType', 'type': 'str'}, + 'managed_resource_id': {'key': 'managedResourceId', 'type': 'str'}, + 'mo_ref_id': {'key': 'moRefId', 'type': 'str'}, + 'mo_name': {'key': 'moName', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(DatastoreInventoryItem, self).__init__(**kwargs) + self.inventory_type = 'Datastore' # type: str + - :ivar status: Status of the condition. - :vartype status: str - :ivar reason: The reason for the condition's status. - :vartype reason: str - :ivar message: A human readable message indicating details about the status. - :vartype message: str - :ivar severity: Severity with which to treat failures of this type of condition. - :vartype severity: str +class DatastoresList(msrest.serialization.Model): + """List of Datastores. + + All required parameters must be populated in order to send to Azure. + + :param next_link: Url to follow for getting next page of Datastores. + :type next_link: str + :param value: Required. Array of Datastores. + :type value: list[~azure_arc_vmware_management_service_api.models.Datastore] """ _validation = { - 'status': {'readonly': True}, - 'reason': {'readonly': True}, - 'message': {'readonly': True}, - 'severity': {'readonly': True}, + 'value': {'required': True}, } _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'reason': {'key': 'reason', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'severity': {'key': 'severity', 'type': 'str'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[Datastore]'}, } def __init__( self, **kwargs ): - super(Condition, self).__init__(**kwargs) - self.status = None - self.reason = None - self.message = None - self.severity = None + super(DatastoresList, self).__init__(**kwargs) + self.next_link = kwargs.get('next_link', None) + self.value = kwargs['value'] class ErrorDefinition(msrest.serialization.Model): @@ -85,6 +485,44 @@ def __init__( self.details = None +class ErrorDetail(msrest.serialization.Model): + """Error details. + + All required parameters must be populated in order to send to Azure. + + :param code: Required. The error's code. + :type code: str + :param message: Required. A human readable error message. + :type message: str + :param target: Indicates which property in the request is responsible for the error. + :type target: str + :param details: Additional error details. + :type details: list[~azure_arc_vmware_management_service_api.models.ErrorDetail] + """ + + _validation = { + 'code': {'required': True}, + 'message': {'required': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ErrorDetail]'}, + } + + def __init__( + self, + **kwargs + ): + super(ErrorDetail, self).__init__(**kwargs) + self.code = kwargs['code'] + self.message = kwargs['message'] + self.target = kwargs.get('target', None) + self.details = kwargs.get('details', None) + + class ErrorResponse(msrest.serialization.Model): """Error response. @@ -165,7 +603,7 @@ def __init__( class ProxyResource(Resource): - """The resource model definition for an Azure Resource Manager proxy resource. It will have everything other than required location and tags. + """The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location. Variables are only populated by the server, and will be ignored when sending a request. @@ -213,14 +651,20 @@ class GuestAgent(ProxyResource): :vartype type: str :ivar system_data: The system data. :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :ivar uuid: Gets or sets a unique identifier for this resource. + :vartype uuid: str :param credentials: Username / Password Credentials to provision guest agent. :type credentials: ~azure_arc_vmware_management_service_api.models.GuestCredential + :param http_proxy_config: HTTP Proxy configuration for the VM. + :type http_proxy_config: ~azure_arc_vmware_management_service_api.models.HttpProxyConfiguration :param provisioning_action: Gets or sets the guest agent provisioning action. Possible values include: "install", "uninstall", "repair". :type provisioning_action: str or ~azure_arc_vmware_management_service_api.models.ProvisioningAction :ivar status: Gets or sets the guest agent status. :vartype status: str + :ivar custom_resource_name: Gets the name of the corresponding resource in Kubernetes. + :vartype custom_resource_name: str :ivar provisioning_state: Gets or sets the provisioning state. :vartype provisioning_state: str """ @@ -230,7 +674,9 @@ class GuestAgent(ProxyResource): 'name': {'readonly': True}, 'type': {'readonly': True}, 'system_data': {'readonly': True}, + 'uuid': {'readonly': True}, 'status': {'readonly': True}, + 'custom_resource_name': {'readonly': True}, 'provisioning_state': {'readonly': True}, } @@ -238,10 +684,252 @@ class GuestAgent(ProxyResource): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, - 'system_data': {'key': 'systemData', 'type': 'SystemData'}, - 'credentials': {'key': 'properties.credentials', 'type': 'GuestCredential'}, - 'provisioning_action': {'key': 'properties.provisioningAction', 'type': 'str'}, - 'status': {'key': 'properties.status', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + 'uuid': {'key': 'properties.uuid', 'type': 'str'}, + 'credentials': {'key': 'properties.credentials', 'type': 'GuestCredential'}, + 'http_proxy_config': {'key': 'properties.httpProxyConfig', 'type': 'HttpProxyConfiguration'}, + 'provisioning_action': {'key': 'properties.provisioningAction', 'type': 'str'}, + 'status': {'key': 'properties.status', 'type': 'str'}, + 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(GuestAgent, self).__init__(**kwargs) + self.system_data = None + self.uuid = None + self.credentials = kwargs.get('credentials', None) + self.http_proxy_config = kwargs.get('http_proxy_config', None) + self.provisioning_action = kwargs.get('provisioning_action', None) + self.status = None + self.custom_resource_name = None + self.provisioning_state = None + + +class GuestAgentList(msrest.serialization.Model): + """List of GuestAgent. + + All required parameters must be populated in order to send to Azure. + + :param next_link: Url to follow for getting next page of GuestAgent. + :type next_link: str + :param value: Required. Array of GuestAgent. + :type value: list[~azure_arc_vmware_management_service_api.models.GuestAgent] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[GuestAgent]'}, + } + + def __init__( + self, + **kwargs + ): + super(GuestAgentList, self).__init__(**kwargs) + self.next_link = kwargs.get('next_link', None) + self.value = kwargs['value'] + + +class GuestAgentProfile(msrest.serialization.Model): + """Defines the resource properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar vm_uuid: Specifies the VM's unique SMBIOS ID. + :vartype vm_uuid: str + :ivar status: The status of the hybrid machine agent. Possible values include: "Connected", + "Disconnected", "Error". + :vartype status: str or ~azure_arc_vmware_management_service_api.models.StatusTypes + :ivar last_status_change: The time of the last status change. + :vartype last_status_change: ~datetime.datetime + :ivar agent_version: The hybrid machine agent full version. + :vartype agent_version: str + :ivar error_details: Details about the error state. + :vartype error_details: list[~azure_arc_vmware_management_service_api.models.ErrorDetail] + """ + + _validation = { + 'vm_uuid': {'readonly': True}, + 'status': {'readonly': True}, + 'last_status_change': {'readonly': True}, + 'agent_version': {'readonly': True}, + 'error_details': {'readonly': True}, + } + + _attribute_map = { + 'vm_uuid': {'key': 'vmUuid', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'last_status_change': {'key': 'lastStatusChange', 'type': 'iso-8601'}, + 'agent_version': {'key': 'agentVersion', 'type': 'str'}, + 'error_details': {'key': 'errorDetails', 'type': '[ErrorDetail]'}, + } + + def __init__( + self, + **kwargs + ): + super(GuestAgentProfile, self).__init__(**kwargs) + self.vm_uuid = None + self.status = None + self.last_status_change = None + self.agent_version = None + self.error_details = None + + +class GuestCredential(msrest.serialization.Model): + """Username / Password Credentials to connect to guest. + + :param username: Gets or sets username to connect with the guest. + :type username: str + :param password: Gets or sets the password to connect with the guest. + :type password: str + """ + + _attribute_map = { + 'username': {'key': 'username', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(GuestCredential, self).__init__(**kwargs) + self.username = kwargs.get('username', None) + self.password = kwargs.get('password', None) + + +class HardwareProfile(msrest.serialization.Model): + """Defines the resource properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param memory_size_mb: Gets or sets memory size in MBs for the vm. + :type memory_size_mb: int + :param num_cp_us: Gets or sets the number of vCPUs for the vm. + :type num_cp_us: int + :param num_cores_per_socket: Gets or sets the number of cores per socket for the vm. Defaults + to 1 if unspecified. + :type num_cores_per_socket: int + :ivar cpu_hot_add_enabled: Gets or sets a value indicating whether virtual processors can be + added while this virtual machine is running. + :vartype cpu_hot_add_enabled: bool + :ivar cpu_hot_remove_enabled: Gets or sets a value indicating whether virtual processors can be + removed while this virtual machine is running. + :vartype cpu_hot_remove_enabled: bool + :ivar memory_hot_add_enabled: Gets or sets a value indicating whether memory can be added while + this virtual machine is running. + :vartype memory_hot_add_enabled: bool + """ + + _validation = { + 'cpu_hot_add_enabled': {'readonly': True}, + 'cpu_hot_remove_enabled': {'readonly': True}, + 'memory_hot_add_enabled': {'readonly': True}, + } + + _attribute_map = { + 'memory_size_mb': {'key': 'memorySizeMB', 'type': 'int'}, + 'num_cp_us': {'key': 'numCPUs', 'type': 'int'}, + 'num_cores_per_socket': {'key': 'numCoresPerSocket', 'type': 'int'}, + 'cpu_hot_add_enabled': {'key': 'cpuHotAddEnabled', 'type': 'bool'}, + 'cpu_hot_remove_enabled': {'key': 'cpuHotRemoveEnabled', 'type': 'bool'}, + 'memory_hot_add_enabled': {'key': 'memoryHotAddEnabled', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(HardwareProfile, self).__init__(**kwargs) + self.memory_size_mb = kwargs.get('memory_size_mb', None) + self.num_cp_us = kwargs.get('num_cp_us', None) + self.num_cores_per_socket = kwargs.get('num_cores_per_socket', None) + self.cpu_hot_add_enabled = None + self.cpu_hot_remove_enabled = None + self.memory_hot_add_enabled = None + + +class Host(msrest.serialization.Model): + """Define the host. + + 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 location: Required. Gets or sets the location. + :type location: str + :param extended_location: Gets or sets the extended location. + :type extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :ivar system_data: The system data. + :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :param tags: A set of tags. Gets or sets the Resource tags. + :type tags: dict[str, str] + :ivar name: Gets or sets the name. + :vartype name: str + :ivar id: Gets or sets the Id. + :vartype id: str + :ivar type: Gets or sets the type of the resource. + :vartype type: str + :param kind: Metadata used by portal/tooling/etc to render different UX experiences for + resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, + the resource provider must validate and persist this value. + :type kind: str + :ivar uuid: Gets or sets a unique identifier for this resource. + :vartype uuid: str + :param v_center_id: Gets or sets the ARM Id of the vCenter resource in which this host resides. + :type v_center_id: str + :param mo_ref_id: Gets or sets the vCenter MoRef (Managed Object Reference) ID for the host. + :type mo_ref_id: str + :param inventory_item_id: Gets or sets the inventory Item ID for the host. + :type inventory_item_id: str + :ivar mo_name: Gets or sets the vCenter Managed Object name for the host. + :vartype mo_name: str + :ivar statuses: The resource status information. + :vartype statuses: list[~azure_arc_vmware_management_service_api.models.ResourceStatus] + :ivar custom_resource_name: Gets the name of the corresponding resource in Kubernetes. + :vartype custom_resource_name: str + :ivar provisioning_state: Gets or sets the provisioning state. + :vartype provisioning_state: str + """ + + _validation = { + 'location': {'required': True}, + 'system_data': {'readonly': True}, + 'name': {'readonly': True}, + 'id': {'readonly': True}, + 'type': {'readonly': True}, + 'uuid': {'readonly': True}, + 'mo_name': {'readonly': True}, + 'statuses': {'readonly': True}, + 'custom_resource_name': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'extended_location': {'key': 'extendedLocation', 'type': 'ExtendedLocation'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'name': {'key': 'name', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'uuid': {'key': 'properties.uuid', 'type': 'str'}, + 'v_center_id': {'key': 'properties.vCenterId', 'type': 'str'}, + 'mo_ref_id': {'key': 'properties.moRefId', 'type': 'str'}, + 'inventory_item_id': {'key': 'properties.inventoryItemId', 'type': 'str'}, + 'mo_name': {'key': 'properties.moName', 'type': 'str'}, + 'statuses': {'key': 'properties.statuses', 'type': '[ResourceStatus]'}, + 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, } @@ -249,23 +937,34 @@ def __init__( self, **kwargs ): - super(GuestAgent, self).__init__(**kwargs) + super(Host, self).__init__(**kwargs) + self.location = kwargs['location'] + self.extended_location = kwargs.get('extended_location', None) self.system_data = None - self.credentials = kwargs.get('credentials', None) - self.provisioning_action = kwargs.get('provisioning_action', None) - self.status = None + self.tags = kwargs.get('tags', None) + self.name = None + self.id = None + self.type = None + self.kind = kwargs.get('kind', None) + self.uuid = None + self.v_center_id = kwargs.get('v_center_id', None) + self.mo_ref_id = kwargs.get('mo_ref_id', None) + self.inventory_item_id = kwargs.get('inventory_item_id', None) + self.mo_name = None + self.statuses = None + self.custom_resource_name = None self.provisioning_state = None -class GuestAgentList(msrest.serialization.Model): - """List of GuestAgent. +class HostsList(msrest.serialization.Model): + """List of Hosts. All required parameters must be populated in order to send to Azure. - :param next_link: Url to follow for getting next page of GuestAgent. + :param next_link: Url to follow for getting next page of Hosts. :type next_link: str - :param value: Required. Array of GuestAgent. - :type value: list[~azure_arc_vmware_management_service_api.models.GuestAgent] + :param value: Required. Array of Hosts. + :type value: list[~azure_arc_vmware_management_service_api.models.Host] """ _validation = { @@ -274,90 +973,35 @@ class GuestAgentList(msrest.serialization.Model): _attribute_map = { 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'value': {'key': 'value', 'type': '[GuestAgent]'}, + 'value': {'key': 'value', 'type': '[Host]'}, } def __init__( self, **kwargs ): - super(GuestAgentList, self).__init__(**kwargs) + super(HostsList, self).__init__(**kwargs) self.next_link = kwargs.get('next_link', None) self.value = kwargs['value'] -class GuestCredential(msrest.serialization.Model): - """Username / Password Credentials to connect to guest. - - :param username: Gets or sets username to connect with the guest. - :type username: str - :param password: Gets or sets the password to connect with the guest. - :type password: str - """ - - _attribute_map = { - 'username': {'key': 'username', 'type': 'str'}, - 'password': {'key': 'password', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(GuestCredential, self).__init__(**kwargs) - self.username = kwargs.get('username', None) - self.password = kwargs.get('password', None) - - -class HardwareProfile(msrest.serialization.Model): - """Defines the resource properties. - - Variables are only populated by the server, and will be ignored when sending a request. +class HttpProxyConfiguration(msrest.serialization.Model): + """HTTP Proxy configuration for the VM. - :param memory_size_mb: Gets or sets memory size in MBs for the vm. - :type memory_size_mb: int - :param num_cp_us: Gets or sets the number of vCPUs for the vm. - :type num_cp_us: int - :param num_cores_per_socket: Gets or sets the number of cores per socket for the vm. Defaults - to 1 if unspecified. - :type num_cores_per_socket: int - :ivar cpu_hot_add_enabled: Gets or sets a value indicating whether virtual processors can be - added while this virtual machine is running. - :vartype cpu_hot_add_enabled: bool - :ivar cpu_hot_remove_enabled: Gets or sets a value indicating whether virtual processors can be - removed while this virtual machine is running. - :vartype cpu_hot_remove_enabled: bool - :ivar memory_hot_add_enabled: Gets or sets a value indicating whether memory can be added while - this virtual machine is running. - :vartype memory_hot_add_enabled: bool + :param https_proxy: Gets or sets httpsProxy url. + :type https_proxy: str """ - _validation = { - 'cpu_hot_add_enabled': {'readonly': True}, - 'cpu_hot_remove_enabled': {'readonly': True}, - 'memory_hot_add_enabled': {'readonly': True}, - } - _attribute_map = { - 'memory_size_mb': {'key': 'memorySizeMB', 'type': 'int'}, - 'num_cp_us': {'key': 'numCPUs', 'type': 'int'}, - 'num_cores_per_socket': {'key': 'numCoresPerSocket', 'type': 'int'}, - 'cpu_hot_add_enabled': {'key': 'cpuHotAddEnabled', 'type': 'bool'}, - 'cpu_hot_remove_enabled': {'key': 'cpuHotRemoveEnabled', 'type': 'bool'}, - 'memory_hot_add_enabled': {'key': 'memoryHotAddEnabled', 'type': 'bool'}, + 'https_proxy': {'key': 'httpsProxy', 'type': 'str'}, } def __init__( self, **kwargs ): - super(HardwareProfile, self).__init__(**kwargs) - self.memory_size_mb = kwargs.get('memory_size_mb', None) - self.num_cp_us = kwargs.get('num_cp_us', None) - self.num_cores_per_socket = kwargs.get('num_cores_per_socket', None) - self.cpu_hot_add_enabled = None - self.cpu_hot_remove_enabled = None - self.memory_hot_add_enabled = None + super(HttpProxyConfiguration, self).__init__(**kwargs) + self.https_proxy = kwargs.get('https_proxy', None) class HybridIdentityMetadata(ProxyResource): @@ -501,8 +1145,13 @@ class InventoryItem(ProxyResource): :vartype type: str :ivar system_data: The system data. :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :param kind: Metadata used by portal/tooling/etc to render different UX experiences for + resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, + the resource provider must validate and persist this value. + :type kind: str :param inventory_type: Required. They inventory type.Constant filled by server. Possible - values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork". + values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", + "Cluster", "Datastore". :type inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType :param managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. @@ -529,6 +1178,7 @@ class InventoryItem(ProxyResource): 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + 'kind': {'key': 'kind', 'type': 'str'}, 'inventory_type': {'key': 'properties.inventoryType', 'type': 'str'}, 'managed_resource_id': {'key': 'properties.managedResourceId', 'type': 'str'}, 'mo_ref_id': {'key': 'properties.moRefId', 'type': 'str'}, @@ -542,6 +1192,7 @@ def __init__( ): super(InventoryItem, self).__init__(**kwargs) self.system_data = None + self.kind = kwargs.get('kind', None) self.inventory_type = None # type: Optional[str] self.managed_resource_id = kwargs.get('managed_resource_id', None) self.mo_ref_id = kwargs.get('mo_ref_id', None) @@ -572,59 +1223,6 @@ def __init__( self.mo_name = kwargs.get('mo_name', None) -class InventoryItemProperties(msrest.serialization.Model): - """Defines the resource properties. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ResourcePoolInventoryItem, VirtualMachineInventoryItem, VirtualMachineTemplateInventoryItem, VirtualNetworkInventoryItem. - - 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 inventory_type: Required. They inventory type.Constant filled by server. Possible - values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork". - :type inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType - :param managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory - resource. - :type managed_resource_id: str - :param mo_ref_id: Gets or sets the MoRef (Managed Object Reference) ID for the inventory item. - :type mo_ref_id: str - :param mo_name: Gets or sets the vCenter Managed Object name for the inventory item. - :type mo_name: str - :ivar provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str - """ - - _validation = { - 'inventory_type': {'required': True}, - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'inventory_type': {'key': 'inventoryType', 'type': 'str'}, - 'managed_resource_id': {'key': 'managedResourceId', 'type': 'str'}, - 'mo_ref_id': {'key': 'moRefId', 'type': 'str'}, - 'mo_name': {'key': 'moName', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - } - - _subtype_map = { - 'inventory_type': {'ResourcePool': 'ResourcePoolInventoryItem', 'VirtualMachine': 'VirtualMachineInventoryItem', 'VirtualMachineTemplate': 'VirtualMachineTemplateInventoryItem', 'VirtualNetwork': 'VirtualNetworkInventoryItem'} - } - - def __init__( - self, - **kwargs - ): - super(InventoryItemProperties, self).__init__(**kwargs) - self.inventory_type = None # type: Optional[str] - self.managed_resource_id = kwargs.get('managed_resource_id', None) - self.mo_ref_id = kwargs.get('mo_ref_id', None) - self.mo_name = kwargs.get('mo_name', None) - self.provisioning_state = None - - class InventoryItemsList(msrest.serialization.Model): """List of InventoryItems. @@ -686,10 +1284,10 @@ class MachineExtension(msrest.serialization.Model): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param instance_view: The machine extension instance view. @@ -928,10 +1526,10 @@ class MachineExtensionUpdate(ResourcePatch): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any """ _attribute_map = { @@ -1307,9 +1905,9 @@ class OsProfile(msrest.serialization.Model): :type admin_username: str :param admin_password: Gets or sets administrator password. :type admin_password: str - :ivar os_type: Gets or sets the type of the os. Possible values include: "Windows", "Linux", + :param os_type: Gets or sets the type of the os. Possible values include: "Windows", "Linux", "Other". - :vartype os_type: str or ~azure_arc_vmware_management_service_api.models.OsType + :type os_type: str or ~azure_arc_vmware_management_service_api.models.OsType :ivar os_name: Gets or sets os name. :vartype os_name: str :ivar tools_running_status: Gets or sets the current running status of VMware Tools running in @@ -1323,7 +1921,6 @@ class OsProfile(msrest.serialization.Model): """ _validation = { - 'os_type': {'readonly': True}, 'os_name': {'readonly': True}, 'tools_running_status': {'readonly': True}, 'tools_version_status': {'readonly': True}, @@ -1349,13 +1946,48 @@ def __init__( self.computer_name = kwargs.get('computer_name', None) self.admin_username = kwargs.get('admin_username', None) self.admin_password = kwargs.get('admin_password', None) - self.os_type = None + self.os_type = kwargs.get('os_type', None) self.os_name = None self.tools_running_status = None self.tools_version_status = None self.tools_version = None +class PlacementProfile(msrest.serialization.Model): + """Defines the resource properties. + + :param resource_pool_id: Gets or sets the ARM Id of the resourcePool resource on which this + virtual machine will deploy. + :type resource_pool_id: str + :param cluster_id: Gets or sets the ARM Id of the cluster resource on which this virtual + machine will deploy. + :type cluster_id: str + :param host_id: Gets or sets the ARM Id of the host resource on which this virtual machine will + deploy. + :type host_id: str + :param datastore_id: Gets or sets the ARM Id of the datastore resource on which the data for + the virtual machine will be kept. + :type datastore_id: str + """ + + _attribute_map = { + 'resource_pool_id': {'key': 'resourcePoolId', 'type': 'str'}, + 'cluster_id': {'key': 'clusterId', 'type': 'str'}, + 'host_id': {'key': 'hostId', 'type': 'str'}, + 'datastore_id': {'key': 'datastoreId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(PlacementProfile, self).__init__(**kwargs) + self.resource_pool_id = kwargs.get('resource_pool_id', None) + self.cluster_id = kwargs.get('cluster_id', None) + self.host_id = kwargs.get('host_id', None) + self.datastore_id = kwargs.get('datastore_id', None) + + class ResourcePool(msrest.serialization.Model): """Define the resourcePool. @@ -1417,6 +2049,8 @@ class ResourcePool(msrest.serialization.Model): :vartype mem_limit_mb: long :ivar custom_resource_name: Gets the name of the corresponding resource in Kubernetes. :vartype custom_resource_name: str + :ivar statuses: The resource status information. + :vartype statuses: list[~azure_arc_vmware_management_service_api.models.ResourceStatus] :ivar provisioning_state: Gets or sets the provisioning state. :vartype provisioning_state: str """ @@ -1436,6 +2070,7 @@ class ResourcePool(msrest.serialization.Model): 'mem_reservation_mb': {'readonly': True}, 'mem_limit_mb': {'readonly': True}, 'custom_resource_name': {'readonly': True}, + 'statuses': {'readonly': True}, 'provisioning_state': {'readonly': True}, } @@ -1460,6 +2095,7 @@ class ResourcePool(msrest.serialization.Model): 'mem_reservation_mb': {'key': 'properties.memReservationMB', 'type': 'long'}, 'mem_limit_mb': {'key': 'properties.memLimitMB', 'type': 'long'}, 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, + 'statuses': {'key': 'properties.statuses', 'type': '[ResourceStatus]'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, } @@ -1488,6 +2124,7 @@ def __init__( self.mem_reservation_mb = None self.mem_limit_mb = None self.custom_resource_name = None + self.statuses = None self.provisioning_state = None @@ -1499,7 +2136,8 @@ class ResourcePoolInventoryItem(InventoryItemProperties): All required parameters must be populated in order to send to Azure. :param inventory_type: Required. They inventory type.Constant filled by server. Possible - values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork". + values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", + "Cluster", "Datastore". :type inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType :param managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. @@ -1566,6 +2204,56 @@ def __init__( self.value = kwargs['value'] +class ResourceStatus(msrest.serialization.Model): + """The resource status information. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar type: The type of the condition. + :vartype type: str + :ivar status: Status of the condition. + :vartype status: str + :ivar reason: The reason for the condition's status. + :vartype reason: str + :ivar message: A human readable message indicating details about the status. + :vartype message: str + :ivar severity: Severity with which to treat failures of this type of condition. + :vartype severity: str + :ivar last_updated_at: The last update time for this condition. + :vartype last_updated_at: ~datetime.datetime + """ + + _validation = { + 'type': {'readonly': True}, + 'status': {'readonly': True}, + 'reason': {'readonly': True}, + 'message': {'readonly': True}, + 'severity': {'readonly': True}, + 'last_updated_at': {'readonly': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'reason': {'key': 'reason', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'severity': {'key': 'severity', 'type': 'str'}, + 'last_updated_at': {'key': 'lastUpdatedAt', 'type': 'iso-8601'}, + } + + def __init__( + self, + **kwargs + ): + super(ResourceStatus, self).__init__(**kwargs) + self.type = None + self.status = None + self.reason = None + self.message = None + self.severity = None + self.last_updated_at = None + + class StopVirtualMachineOptions(msrest.serialization.Model): """Defines the stop action properties. @@ -1653,7 +2341,7 @@ class SystemData(msrest.serialization.Model): values include: "User", "Application", "ManagedIdentity", "Key". :type last_modified_by_type: str or ~azure_arc_vmware_management_service_api.models.CreatedByType - :param last_modified_at: The type of identity that last modified the resource. + :param last_modified_at: The timestamp of resource last modification (UTC). :type last_modified_at: ~datetime.datetime """ @@ -1720,6 +2408,8 @@ class VCenter(msrest.serialization.Model): :vartype custom_resource_name: str :param credentials: Username / Password Credentials to connect to vcenter. :type credentials: ~azure_arc_vmware_management_service_api.models.VICredential + :ivar statuses: The resource status information. + :vartype statuses: list[~azure_arc_vmware_management_service_api.models.ResourceStatus] :ivar provisioning_state: Gets or sets the provisioning state. :vartype provisioning_state: str """ @@ -1737,6 +2427,7 @@ class VCenter(msrest.serialization.Model): 'instance_uuid': {'readonly': True}, 'connection_status': {'readonly': True}, 'custom_resource_name': {'readonly': True}, + 'statuses': {'readonly': True}, 'provisioning_state': {'readonly': True}, } @@ -1757,6 +2448,7 @@ class VCenter(msrest.serialization.Model): 'connection_status': {'key': 'properties.connectionStatus', 'type': 'str'}, 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, 'credentials': {'key': 'properties.credentials', 'type': 'VICredential'}, + 'statuses': {'key': 'properties.statuses', 'type': '[ResourceStatus]'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, } @@ -1781,6 +2473,7 @@ def __init__( self.connection_status = None self.custom_resource_name = None self.credentials = kwargs.get('credentials', None) + self.statuses = None self.provisioning_state = None @@ -1858,6 +2551,11 @@ class VirtualDisk(msrest.serialization.Model): :type controller_key: int :param unit_number: Gets or sets the unit number of the disk on the controller. :type unit_number: int + :param device_name: Gets or sets the device name. + :type device_name: str + :param disk_type: Gets or sets the disk backing type. Possible values include: "flat", "pmem", + "rawphysical", "rawvirtual", "sparse", "sesparse", "unknown". + :type disk_type: str or ~azure_arc_vmware_management_service_api.models.DiskType """ _validation = { @@ -1874,6 +2572,8 @@ class VirtualDisk(msrest.serialization.Model): 'disk_mode': {'key': 'diskMode', 'type': 'str'}, 'controller_key': {'key': 'controllerKey', 'type': 'int'}, 'unit_number': {'key': 'unitNumber', 'type': 'int'}, + 'device_name': {'key': 'deviceName', 'type': 'str'}, + 'disk_type': {'key': 'diskType', 'type': 'str'}, } def __init__( @@ -1889,6 +2589,8 @@ def __init__( self.disk_mode = kwargs.get('disk_mode', None) self.controller_key = kwargs.get('controller_key', None) self.unit_number = kwargs.get('unit_number', None) + self.device_name = kwargs.get('device_name', None) + self.disk_type = kwargs.get('disk_type', None) class VirtualDiskUpdate(msrest.serialization.Model): @@ -1907,6 +2609,11 @@ class VirtualDiskUpdate(msrest.serialization.Model): :type controller_key: int :param unit_number: Gets or sets the unit number of the disk on the controller. :type unit_number: int + :param device_name: Gets or sets the device name. + :type device_name: str + :param disk_type: Gets or sets the disk backing type. Possible values include: "flat", "pmem", + "rawphysical", "rawvirtual", "sparse", "sesparse", "unknown". + :type disk_type: str or ~azure_arc_vmware_management_service_api.models.DiskType """ _attribute_map = { @@ -1916,6 +2623,8 @@ class VirtualDiskUpdate(msrest.serialization.Model): 'disk_mode': {'key': 'diskMode', 'type': 'str'}, 'controller_key': {'key': 'controllerKey', 'type': 'int'}, 'unit_number': {'key': 'unitNumber', 'type': 'int'}, + 'device_name': {'key': 'deviceName', 'type': 'str'}, + 'disk_type': {'key': 'diskType', 'type': 'str'}, } def __init__( @@ -1929,6 +2638,8 @@ def __init__( self.disk_mode = kwargs.get('disk_mode', None) self.controller_key = kwargs.get('controller_key', None) self.unit_number = kwargs.get('unit_number', None) + self.device_name = kwargs.get('device_name', None) + self.disk_type = kwargs.get('disk_type', None) class VirtualMachine(msrest.serialization.Model): @@ -1968,6 +2679,8 @@ class VirtualMachine(msrest.serialization.Model): :param v_center_id: Gets or sets the ARM Id of the vCenter resource in which this resource pool resides. :type v_center_id: str + :param placement_profile: Placement properties. + :type placement_profile: ~azure_arc_vmware_management_service_api.models.PlacementProfile :param os_profile: OS properties. :type os_profile: ~azure_arc_vmware_management_service_api.models.OsProfile :param hardware_profile: Hardware properties. @@ -1976,6 +2689,8 @@ class VirtualMachine(msrest.serialization.Model): :type network_profile: ~azure_arc_vmware_management_service_api.models.NetworkProfile :param storage_profile: Storage properties. :type storage_profile: ~azure_arc_vmware_management_service_api.models.StorageProfile + :param guest_agent_profile: Guest agent status properties. + :type guest_agent_profile: ~azure_arc_vmware_management_service_api.models.GuestAgentProfile :param mo_ref_id: Gets or sets the vCenter MoRef (Managed Object Reference) ID for the virtual machine. :type mo_ref_id: str @@ -1987,12 +2702,16 @@ class VirtualMachine(msrest.serialization.Model): :vartype folder_path: str :ivar instance_uuid: Gets or sets the instance uuid of the vm. :vartype instance_uuid: str + :param smbios_uuid: Gets or sets the SMBIOS UUID of the vm. + :type smbios_uuid: str :ivar power_state: Gets the power state of the virtual machine. :vartype power_state: str :ivar custom_resource_name: Gets the name of the corresponding resource in Kubernetes. :vartype custom_resource_name: str :ivar uuid: Gets or sets a unique identifier for this resource. :vartype uuid: str + :ivar statuses: The resource status information. + :vartype statuses: list[~azure_arc_vmware_management_service_api.models.ResourceStatus] :ivar provisioning_state: Gets or sets the provisioning state. :vartype provisioning_state: str :ivar vm_id: Gets or sets a unique identifier for the vm resource. @@ -2011,6 +2730,7 @@ class VirtualMachine(msrest.serialization.Model): 'power_state': {'readonly': True}, 'custom_resource_name': {'readonly': True}, 'uuid': {'readonly': True}, + 'statuses': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'vm_id': {'readonly': True}, } @@ -2028,18 +2748,22 @@ class VirtualMachine(msrest.serialization.Model): 'resource_pool_id': {'key': 'properties.resourcePoolId', 'type': 'str'}, 'template_id': {'key': 'properties.templateId', 'type': 'str'}, 'v_center_id': {'key': 'properties.vCenterId', 'type': 'str'}, + 'placement_profile': {'key': 'properties.placementProfile', 'type': 'PlacementProfile'}, 'os_profile': {'key': 'properties.osProfile', 'type': 'OsProfile'}, 'hardware_profile': {'key': 'properties.hardwareProfile', 'type': 'HardwareProfile'}, 'network_profile': {'key': 'properties.networkProfile', 'type': 'NetworkProfile'}, 'storage_profile': {'key': 'properties.storageProfile', 'type': 'StorageProfile'}, + 'guest_agent_profile': {'key': 'properties.guestAgentProfile', 'type': 'GuestAgentProfile'}, 'mo_ref_id': {'key': 'properties.moRefId', 'type': 'str'}, 'inventory_item_id': {'key': 'properties.inventoryItemId', 'type': 'str'}, 'mo_name': {'key': 'properties.moName', 'type': 'str'}, 'folder_path': {'key': 'properties.folderPath', 'type': 'str'}, 'instance_uuid': {'key': 'properties.instanceUuid', 'type': 'str'}, + 'smbios_uuid': {'key': 'properties.smbiosUuid', 'type': 'str'}, 'power_state': {'key': 'properties.powerState', 'type': 'str'}, 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, 'uuid': {'key': 'properties.uuid', 'type': 'str'}, + 'statuses': {'key': 'properties.statuses', 'type': '[ResourceStatus]'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'vm_id': {'key': 'properties.vmId', 'type': 'str'}, } @@ -2061,18 +2785,22 @@ def __init__( self.resource_pool_id = kwargs.get('resource_pool_id', None) self.template_id = kwargs.get('template_id', None) self.v_center_id = kwargs.get('v_center_id', None) + self.placement_profile = kwargs.get('placement_profile', None) self.os_profile = kwargs.get('os_profile', None) self.hardware_profile = kwargs.get('hardware_profile', None) self.network_profile = kwargs.get('network_profile', None) self.storage_profile = kwargs.get('storage_profile', None) + self.guest_agent_profile = kwargs.get('guest_agent_profile', None) self.mo_ref_id = kwargs.get('mo_ref_id', None) self.inventory_item_id = kwargs.get('inventory_item_id', None) self.mo_name = None self.folder_path = None self.instance_uuid = None + self.smbios_uuid = kwargs.get('smbios_uuid', None) self.power_state = None self.custom_resource_name = None self.uuid = None + self.statuses = None self.provisioning_state = None self.vm_id = None @@ -2085,7 +2813,8 @@ class VirtualMachineInventoryItem(InventoryItemProperties): All required parameters must be populated in order to send to Azure. :param inventory_type: Required. They inventory type.Constant filled by server. Possible - values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork". + values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", + "Cluster", "Datastore". :type inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType :param managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. @@ -2096,9 +2825,9 @@ class VirtualMachineInventoryItem(InventoryItemProperties): :type mo_name: str :ivar provisioning_state: Gets or sets the provisioning state. :vartype provisioning_state: str - :ivar os_type: Gets or sets the type of the os. Possible values include: "Windows", "Linux", + :param os_type: Gets or sets the type of the os. Possible values include: "Windows", "Linux", "Other". - :vartype os_type: str or ~azure_arc_vmware_management_service_api.models.OsType + :type os_type: str or ~azure_arc_vmware_management_service_api.models.OsType :param os_name: Gets or sets os name. :type os_name: str :param ip_addresses: Gets or sets the nic ip addresses. @@ -2111,12 +2840,27 @@ class VirtualMachineInventoryItem(InventoryItemProperties): :type resource_pool: ~azure_arc_vmware_management_service_api.models.InventoryItemDetails :param instance_uuid: Gets or sets the instance uuid of the vm. :type instance_uuid: str + :param smbios_uuid: Gets or sets the SMBIOS UUID of the vm. + :type smbios_uuid: str + :ivar power_state: Gets the power state of the virtual machine. + :vartype power_state: str + :ivar tools_running_status: Gets or sets the current running status of VMware Tools running in + the guest operating system. + :vartype tools_running_status: str + :ivar tools_version_status: Gets or sets the current version status of VMware Tools installed + in the guest operating system. + :vartype tools_version_status: str + :ivar tools_version: Gets or sets the current version of VMware Tools. + :vartype tools_version: str """ _validation = { 'inventory_type': {'required': True}, 'provisioning_state': {'readonly': True}, - 'os_type': {'readonly': True}, + 'power_state': {'readonly': True}, + 'tools_running_status': {'readonly': True}, + 'tools_version_status': {'readonly': True}, + 'tools_version': {'readonly': True}, } _attribute_map = { @@ -2132,6 +2876,11 @@ class VirtualMachineInventoryItem(InventoryItemProperties): 'host': {'key': 'host', 'type': 'InventoryItemDetails'}, 'resource_pool': {'key': 'resourcePool', 'type': 'InventoryItemDetails'}, 'instance_uuid': {'key': 'instanceUuid', 'type': 'str'}, + 'smbios_uuid': {'key': 'smbiosUuid', 'type': 'str'}, + 'power_state': {'key': 'powerState', 'type': 'str'}, + 'tools_running_status': {'key': 'toolsRunningStatus', 'type': 'str'}, + 'tools_version_status': {'key': 'toolsVersionStatus', 'type': 'str'}, + 'tools_version': {'key': 'toolsVersion', 'type': 'str'}, } def __init__( @@ -2140,13 +2889,18 @@ def __init__( ): super(VirtualMachineInventoryItem, self).__init__(**kwargs) self.inventory_type = 'VirtualMachine' # type: str - self.os_type = None + self.os_type = kwargs.get('os_type', None) self.os_name = kwargs.get('os_name', None) self.ip_addresses = kwargs.get('ip_addresses', None) self.folder_path = kwargs.get('folder_path', None) self.host = kwargs.get('host', None) self.resource_pool = kwargs.get('resource_pool', None) self.instance_uuid = kwargs.get('instance_uuid', None) + self.smbios_uuid = kwargs.get('smbios_uuid', None) + self.power_state = None + self.tools_running_status = None + self.tools_version_status = None + self.tools_version = None class VirtualMachinesList(msrest.serialization.Model): @@ -2237,6 +2991,13 @@ class VirtualMachineTemplate(msrest.serialization.Model): :vartype disks: list[~azure_arc_vmware_management_service_api.models.VirtualDisk] :ivar custom_resource_name: Gets the name of the corresponding resource in Kubernetes. :vartype custom_resource_name: str + :ivar tools_version_status: Gets or sets the current version status of VMware Tools installed + in the guest operating system. + :vartype tools_version_status: str + :ivar tools_version: Gets or sets the current version of VMware Tools. + :vartype tools_version: str + :ivar statuses: The resource status information. + :vartype statuses: list[~azure_arc_vmware_management_service_api.models.ResourceStatus] :ivar provisioning_state: Gets or sets the provisioning state. :vartype provisioning_state: str """ @@ -2258,6 +3019,9 @@ class VirtualMachineTemplate(msrest.serialization.Model): 'network_interfaces': {'readonly': True}, 'disks': {'readonly': True}, 'custom_resource_name': {'readonly': True}, + 'tools_version_status': {'readonly': True}, + 'tools_version': {'readonly': True}, + 'statuses': {'readonly': True}, 'provisioning_state': {'readonly': True}, } @@ -2284,6 +3048,9 @@ class VirtualMachineTemplate(msrest.serialization.Model): 'network_interfaces': {'key': 'properties.networkInterfaces', 'type': '[NetworkInterface]'}, 'disks': {'key': 'properties.disks', 'type': '[VirtualDisk]'}, 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, + 'tools_version_status': {'key': 'properties.toolsVersionStatus', 'type': 'str'}, + 'tools_version': {'key': 'properties.toolsVersion', 'type': 'str'}, + 'statuses': {'key': 'properties.statuses', 'type': '[ResourceStatus]'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, } @@ -2314,6 +3081,9 @@ def __init__( self.network_interfaces = None self.disks = None self.custom_resource_name = None + self.tools_version_status = None + self.tools_version = None + self.statuses = None self.provisioning_state = None @@ -2325,7 +3095,8 @@ class VirtualMachineTemplateInventoryItem(InventoryItemProperties): All required parameters must be populated in order to send to Azure. :param inventory_type: Required. They inventory type.Constant filled by server. Possible - values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork". + values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", + "Cluster", "Datastore". :type inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType :param managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. @@ -2343,9 +3114,9 @@ class VirtualMachineTemplateInventoryItem(InventoryItemProperties): :param num_cores_per_socket: Gets or sets the number of cores per socket for the template. Defaults to 1 if unspecified. :type num_cores_per_socket: int - :ivar os_type: Gets or sets the type of the os. Possible values include: "Windows", "Linux", + :param os_type: Gets or sets the type of the os. Possible values include: "Windows", "Linux", "Other". - :vartype os_type: str or ~azure_arc_vmware_management_service_api.models.OsType + :type os_type: str or ~azure_arc_vmware_management_service_api.models.OsType :param os_name: Gets or sets os name. :type os_name: str :param folder_path: Gets or sets the folder path of the template. @@ -2355,7 +3126,6 @@ class VirtualMachineTemplateInventoryItem(InventoryItemProperties): _validation = { 'inventory_type': {'required': True}, 'provisioning_state': {'readonly': True}, - 'os_type': {'readonly': True}, } _attribute_map = { @@ -2381,7 +3151,7 @@ def __init__( self.memory_size_mb = kwargs.get('memory_size_mb', None) self.num_cp_us = kwargs.get('num_cp_us', None) self.num_cores_per_socket = kwargs.get('num_cores_per_socket', None) - self.os_type = None + self.os_type = kwargs.get('os_type', None) self.os_name = kwargs.get('os_name', None) self.folder_path = kwargs.get('folder_path', None) @@ -2489,6 +3259,8 @@ class VirtualNetwork(msrest.serialization.Model): :vartype mo_name: str :ivar custom_resource_name: Gets the name of the corresponding resource in Kubernetes. :vartype custom_resource_name: str + :ivar statuses: The resource status information. + :vartype statuses: list[~azure_arc_vmware_management_service_api.models.ResourceStatus] :ivar provisioning_state: Gets or sets the provisioning state. :vartype provisioning_state: str """ @@ -2502,6 +3274,7 @@ class VirtualNetwork(msrest.serialization.Model): 'uuid': {'readonly': True}, 'mo_name': {'readonly': True}, 'custom_resource_name': {'readonly': True}, + 'statuses': {'readonly': True}, 'provisioning_state': {'readonly': True}, } @@ -2520,6 +3293,7 @@ class VirtualNetwork(msrest.serialization.Model): 'inventory_item_id': {'key': 'properties.inventoryItemId', 'type': 'str'}, 'mo_name': {'key': 'properties.moName', 'type': 'str'}, 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, + 'statuses': {'key': 'properties.statuses', 'type': '[ResourceStatus]'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, } @@ -2542,6 +3316,7 @@ def __init__( self.inventory_item_id = kwargs.get('inventory_item_id', None) self.mo_name = None self.custom_resource_name = None + self.statuses = None self.provisioning_state = None @@ -2553,7 +3328,8 @@ class VirtualNetworkInventoryItem(InventoryItemProperties): All required parameters must be populated in order to send to Azure. :param inventory_type: Required. They inventory type.Constant filled by server. Possible - values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork". + values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", + "Cluster", "Datastore". :type inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType :param managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/_models_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/_models_py3.py index 9d03d5a0e0..6113e7a5eb 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/_models_py3.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/_models_py3.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- import datetime -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union from azure.core.exceptions import HttpResponseError import msrest.serialization @@ -15,6 +15,250 @@ from ._azure_arc_vmware_management_service_api_enums import * +class Cluster(msrest.serialization.Model): + """Define the cluster. + + 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 location: Required. Gets or sets the location. + :type location: str + :param extended_location: Gets or sets the extended location. + :type extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :ivar system_data: The system data. + :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :param tags: A set of tags. Gets or sets the Resource tags. + :type tags: dict[str, str] + :ivar name: Gets or sets the name. + :vartype name: str + :ivar id: Gets or sets the Id. + :vartype id: str + :ivar type: Gets or sets the type of the resource. + :vartype type: str + :param kind: Metadata used by portal/tooling/etc to render different UX experiences for + resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, + the resource provider must validate and persist this value. + :type kind: str + :ivar uuid: Gets or sets a unique identifier for this resource. + :vartype uuid: str + :param v_center_id: Gets or sets the ARM Id of the vCenter resource in which this cluster + resides. + :type v_center_id: str + :param mo_ref_id: Gets or sets the vCenter MoRef (Managed Object Reference) ID for the cluster. + :type mo_ref_id: str + :param inventory_item_id: Gets or sets the inventory Item ID for the cluster. + :type inventory_item_id: str + :ivar mo_name: Gets or sets the vCenter Managed Object name for the cluster. + :vartype mo_name: str + :ivar statuses: The resource status information. + :vartype statuses: list[~azure_arc_vmware_management_service_api.models.ResourceStatus] + :ivar custom_resource_name: Gets the name of the corresponding resource in Kubernetes. + :vartype custom_resource_name: str + :ivar provisioning_state: Gets or sets the provisioning state. + :vartype provisioning_state: str + """ + + _validation = { + 'location': {'required': True}, + 'system_data': {'readonly': True}, + 'name': {'readonly': True}, + 'id': {'readonly': True}, + 'type': {'readonly': True}, + 'uuid': {'readonly': True}, + 'mo_name': {'readonly': True}, + 'statuses': {'readonly': True}, + 'custom_resource_name': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'extended_location': {'key': 'extendedLocation', 'type': 'ExtendedLocation'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'name': {'key': 'name', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'uuid': {'key': 'properties.uuid', 'type': 'str'}, + 'v_center_id': {'key': 'properties.vCenterId', 'type': 'str'}, + 'mo_ref_id': {'key': 'properties.moRefId', 'type': 'str'}, + 'inventory_item_id': {'key': 'properties.inventoryItemId', 'type': 'str'}, + 'mo_name': {'key': 'properties.moName', 'type': 'str'}, + 'statuses': {'key': 'properties.statuses', 'type': '[ResourceStatus]'}, + 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__( + self, + *, + location: str, + extended_location: Optional["ExtendedLocation"] = None, + tags: Optional[Dict[str, str]] = None, + kind: Optional[str] = None, + v_center_id: Optional[str] = None, + mo_ref_id: Optional[str] = None, + inventory_item_id: Optional[str] = None, + **kwargs + ): + super(Cluster, self).__init__(**kwargs) + self.location = location + self.extended_location = extended_location + self.system_data = None + self.tags = tags + self.name = None + self.id = None + self.type = None + self.kind = kind + self.uuid = None + self.v_center_id = v_center_id + self.mo_ref_id = mo_ref_id + self.inventory_item_id = inventory_item_id + self.mo_name = None + self.statuses = None + self.custom_resource_name = None + self.provisioning_state = None + + +class InventoryItemProperties(msrest.serialization.Model): + """Defines the resource properties. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: ClusterInventoryItem, DatastoreInventoryItem, ResourcePoolInventoryItem, VirtualMachineInventoryItem, VirtualMachineTemplateInventoryItem, VirtualNetworkInventoryItem. + + 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 inventory_type: Required. They inventory type.Constant filled by server. Possible + values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", + "Cluster", "Datastore". + :type inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + :param managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory + resource. + :type managed_resource_id: str + :param mo_ref_id: Gets or sets the MoRef (Managed Object Reference) ID for the inventory item. + :type mo_ref_id: str + :param mo_name: Gets or sets the vCenter Managed Object name for the inventory item. + :type mo_name: str + :ivar provisioning_state: Gets or sets the provisioning state. + :vartype provisioning_state: str + """ + + _validation = { + 'inventory_type': {'required': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'inventory_type': {'key': 'inventoryType', 'type': 'str'}, + 'managed_resource_id': {'key': 'managedResourceId', 'type': 'str'}, + 'mo_ref_id': {'key': 'moRefId', 'type': 'str'}, + 'mo_name': {'key': 'moName', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + _subtype_map = { + 'inventory_type': {'Cluster': 'ClusterInventoryItem', 'Datastore': 'DatastoreInventoryItem', 'ResourcePool': 'ResourcePoolInventoryItem', 'VirtualMachine': 'VirtualMachineInventoryItem', 'VirtualMachineTemplate': 'VirtualMachineTemplateInventoryItem', 'VirtualNetwork': 'VirtualNetworkInventoryItem'} + } + + def __init__( + self, + *, + managed_resource_id: Optional[str] = None, + mo_ref_id: Optional[str] = None, + mo_name: Optional[str] = None, + **kwargs + ): + super(InventoryItemProperties, self).__init__(**kwargs) + self.inventory_type = None # type: Optional[str] + self.managed_resource_id = managed_resource_id + self.mo_ref_id = mo_ref_id + self.mo_name = mo_name + self.provisioning_state = None + + +class ClusterInventoryItem(InventoryItemProperties): + """The cluster inventory item. + + 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 inventory_type: Required. They inventory type.Constant filled by server. Possible + values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", + "Cluster", "Datastore". + :type inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + :param managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory + resource. + :type managed_resource_id: str + :param mo_ref_id: Gets or sets the MoRef (Managed Object Reference) ID for the inventory item. + :type mo_ref_id: str + :param mo_name: Gets or sets the vCenter Managed Object name for the inventory item. + :type mo_name: str + :ivar provisioning_state: Gets or sets the provisioning state. + :vartype provisioning_state: str + """ + + _validation = { + 'inventory_type': {'required': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'inventory_type': {'key': 'inventoryType', 'type': 'str'}, + 'managed_resource_id': {'key': 'managedResourceId', 'type': 'str'}, + 'mo_ref_id': {'key': 'moRefId', 'type': 'str'}, + 'mo_name': {'key': 'moName', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__( + self, + *, + managed_resource_id: Optional[str] = None, + mo_ref_id: Optional[str] = None, + mo_name: Optional[str] = None, + **kwargs + ): + super(ClusterInventoryItem, self).__init__(managed_resource_id=managed_resource_id, mo_ref_id=mo_ref_id, mo_name=mo_name, **kwargs) + self.inventory_type = 'Cluster' # type: str + + +class ClustersList(msrest.serialization.Model): + """List of Clusters. + + All required parameters must be populated in order to send to Azure. + + :param next_link: Url to follow for getting next page of Clusters. + :type next_link: str + :param value: Required. Array of Clusters. + :type value: list[~azure_arc_vmware_management_service_api.models.Cluster] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[Cluster]'}, + } + + def __init__( + self, + *, + value: List["Cluster"], + next_link: Optional[str] = None, + **kwargs + ): + super(ClustersList, self).__init__(**kwargs) + self.next_link = next_link + self.value = value + + class Condition(msrest.serialization.Model): """Condition defines an extension to status. @@ -48,11 +292,201 @@ def __init__( self, **kwargs ): - super(Condition, self).__init__(**kwargs) - self.status = None - self.reason = None - self.message = None - self.severity = None + super(Condition, self).__init__(**kwargs) + self.status = None + self.reason = None + self.message = None + self.severity = None + + +class Datastore(msrest.serialization.Model): + """Define the datastore. + + 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 location: Required. Gets or sets the location. + :type location: str + :param extended_location: Gets or sets the extended location. + :type extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :ivar system_data: The system data. + :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :param tags: A set of tags. Gets or sets the Resource tags. + :type tags: dict[str, str] + :ivar name: Gets or sets the name. + :vartype name: str + :ivar id: Gets or sets the Id. + :vartype id: str + :ivar type: Gets or sets the type of the resource. + :vartype type: str + :param kind: Metadata used by portal/tooling/etc to render different UX experiences for + resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, + the resource provider must validate and persist this value. + :type kind: str + :ivar uuid: Gets or sets a unique identifier for this resource. + :vartype uuid: str + :param v_center_id: Gets or sets the ARM Id of the vCenter resource in which this datastore + resides. + :type v_center_id: str + :param mo_ref_id: Gets or sets the vCenter MoRef (Managed Object Reference) ID for the + datastore. + :type mo_ref_id: str + :param inventory_item_id: Gets or sets the inventory Item ID for the datastore. + :type inventory_item_id: str + :ivar mo_name: Gets or sets the vCenter Managed Object name for the datastore. + :vartype mo_name: str + :ivar statuses: The resource status information. + :vartype statuses: list[~azure_arc_vmware_management_service_api.models.ResourceStatus] + :ivar custom_resource_name: Gets the name of the corresponding resource in Kubernetes. + :vartype custom_resource_name: str + :ivar provisioning_state: Provisioning state of the resource. Possible values include: + "Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", + "Created". + :vartype provisioning_state: str or + ~azure_arc_vmware_management_service_api.models.ProvisioningState + """ + + _validation = { + 'location': {'required': True}, + 'system_data': {'readonly': True}, + 'name': {'readonly': True}, + 'id': {'readonly': True}, + 'type': {'readonly': True}, + 'uuid': {'readonly': True}, + 'mo_name': {'readonly': True}, + 'statuses': {'readonly': True}, + 'custom_resource_name': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'extended_location': {'key': 'extendedLocation', 'type': 'ExtendedLocation'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'name': {'key': 'name', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'uuid': {'key': 'properties.uuid', 'type': 'str'}, + 'v_center_id': {'key': 'properties.vCenterId', 'type': 'str'}, + 'mo_ref_id': {'key': 'properties.moRefId', 'type': 'str'}, + 'inventory_item_id': {'key': 'properties.inventoryItemId', 'type': 'str'}, + 'mo_name': {'key': 'properties.moName', 'type': 'str'}, + 'statuses': {'key': 'properties.statuses', 'type': '[ResourceStatus]'}, + 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__( + self, + *, + location: str, + extended_location: Optional["ExtendedLocation"] = None, + tags: Optional[Dict[str, str]] = None, + kind: Optional[str] = None, + v_center_id: Optional[str] = None, + mo_ref_id: Optional[str] = None, + inventory_item_id: Optional[str] = None, + **kwargs + ): + super(Datastore, self).__init__(**kwargs) + self.location = location + self.extended_location = extended_location + self.system_data = None + self.tags = tags + self.name = None + self.id = None + self.type = None + self.kind = kind + self.uuid = None + self.v_center_id = v_center_id + self.mo_ref_id = mo_ref_id + self.inventory_item_id = inventory_item_id + self.mo_name = None + self.statuses = None + self.custom_resource_name = None + self.provisioning_state = None + + +class DatastoreInventoryItem(InventoryItemProperties): + """The datastore inventory item. + + 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 inventory_type: Required. They inventory type.Constant filled by server. Possible + values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", + "Cluster", "Datastore". + :type inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + :param managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory + resource. + :type managed_resource_id: str + :param mo_ref_id: Gets or sets the MoRef (Managed Object Reference) ID for the inventory item. + :type mo_ref_id: str + :param mo_name: Gets or sets the vCenter Managed Object name for the inventory item. + :type mo_name: str + :ivar provisioning_state: Gets or sets the provisioning state. + :vartype provisioning_state: str + """ + + _validation = { + 'inventory_type': {'required': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'inventory_type': {'key': 'inventoryType', 'type': 'str'}, + 'managed_resource_id': {'key': 'managedResourceId', 'type': 'str'}, + 'mo_ref_id': {'key': 'moRefId', 'type': 'str'}, + 'mo_name': {'key': 'moName', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__( + self, + *, + managed_resource_id: Optional[str] = None, + mo_ref_id: Optional[str] = None, + mo_name: Optional[str] = None, + **kwargs + ): + super(DatastoreInventoryItem, self).__init__(managed_resource_id=managed_resource_id, mo_ref_id=mo_ref_id, mo_name=mo_name, **kwargs) + self.inventory_type = 'Datastore' # type: str + + +class DatastoresList(msrest.serialization.Model): + """List of Datastores. + + All required parameters must be populated in order to send to Azure. + + :param next_link: Url to follow for getting next page of Datastores. + :type next_link: str + :param value: Required. Array of Datastores. + :type value: list[~azure_arc_vmware_management_service_api.models.Datastore] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[Datastore]'}, + } + + def __init__( + self, + *, + value: List["Datastore"], + next_link: Optional[str] = None, + **kwargs + ): + super(DatastoresList, self).__init__(**kwargs) + self.next_link = next_link + self.value = value class ErrorDefinition(msrest.serialization.Model): @@ -90,6 +524,49 @@ def __init__( self.details = None +class ErrorDetail(msrest.serialization.Model): + """Error details. + + All required parameters must be populated in order to send to Azure. + + :param code: Required. The error's code. + :type code: str + :param message: Required. A human readable error message. + :type message: str + :param target: Indicates which property in the request is responsible for the error. + :type target: str + :param details: Additional error details. + :type details: list[~azure_arc_vmware_management_service_api.models.ErrorDetail] + """ + + _validation = { + 'code': {'required': True}, + 'message': {'required': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ErrorDetail]'}, + } + + def __init__( + self, + *, + code: str, + message: str, + target: Optional[str] = None, + details: Optional[List["ErrorDetail"]] = None, + **kwargs + ): + super(ErrorDetail, self).__init__(**kwargs) + self.code = code + self.message = message + self.target = target + self.details = details + + class ErrorResponse(msrest.serialization.Model): """Error response. @@ -175,7 +652,7 @@ def __init__( class ProxyResource(Resource): - """The resource model definition for an Azure Resource Manager proxy resource. It will have everything other than required location and tags. + """The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location. Variables are only populated by the server, and will be ignored when sending a request. @@ -223,14 +700,20 @@ class GuestAgent(ProxyResource): :vartype type: str :ivar system_data: The system data. :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :ivar uuid: Gets or sets a unique identifier for this resource. + :vartype uuid: str :param credentials: Username / Password Credentials to provision guest agent. :type credentials: ~azure_arc_vmware_management_service_api.models.GuestCredential + :param http_proxy_config: HTTP Proxy configuration for the VM. + :type http_proxy_config: ~azure_arc_vmware_management_service_api.models.HttpProxyConfiguration :param provisioning_action: Gets or sets the guest agent provisioning action. Possible values include: "install", "uninstall", "repair". :type provisioning_action: str or ~azure_arc_vmware_management_service_api.models.ProvisioningAction :ivar status: Gets or sets the guest agent status. :vartype status: str + :ivar custom_resource_name: Gets the name of the corresponding resource in Kubernetes. + :vartype custom_resource_name: str :ivar provisioning_state: Gets or sets the provisioning state. :vartype provisioning_state: str """ @@ -240,7 +723,9 @@ class GuestAgent(ProxyResource): 'name': {'readonly': True}, 'type': {'readonly': True}, 'system_data': {'readonly': True}, + 'uuid': {'readonly': True}, 'status': {'readonly': True}, + 'custom_resource_name': {'readonly': True}, 'provisioning_state': {'readonly': True}, } @@ -249,9 +734,12 @@ class GuestAgent(ProxyResource): 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + 'uuid': {'key': 'properties.uuid', 'type': 'str'}, 'credentials': {'key': 'properties.credentials', 'type': 'GuestCredential'}, + 'http_proxy_config': {'key': 'properties.httpProxyConfig', 'type': 'HttpProxyConfiguration'}, 'provisioning_action': {'key': 'properties.provisioningAction', 'type': 'str'}, 'status': {'key': 'properties.status', 'type': 'str'}, + 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, } @@ -259,26 +747,295 @@ def __init__( self, *, credentials: Optional["GuestCredential"] = None, + http_proxy_config: Optional["HttpProxyConfiguration"] = None, provisioning_action: Optional[Union[str, "ProvisioningAction"]] = None, **kwargs ): - super(GuestAgent, self).__init__(**kwargs) + super(GuestAgent, self).__init__(**kwargs) + self.system_data = None + self.uuid = None + self.credentials = credentials + self.http_proxy_config = http_proxy_config + self.provisioning_action = provisioning_action + self.status = None + self.custom_resource_name = None + self.provisioning_state = None + + +class GuestAgentList(msrest.serialization.Model): + """List of GuestAgent. + + All required parameters must be populated in order to send to Azure. + + :param next_link: Url to follow for getting next page of GuestAgent. + :type next_link: str + :param value: Required. Array of GuestAgent. + :type value: list[~azure_arc_vmware_management_service_api.models.GuestAgent] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[GuestAgent]'}, + } + + def __init__( + self, + *, + value: List["GuestAgent"], + next_link: Optional[str] = None, + **kwargs + ): + super(GuestAgentList, self).__init__(**kwargs) + self.next_link = next_link + self.value = value + + +class GuestAgentProfile(msrest.serialization.Model): + """Defines the resource properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar vm_uuid: Specifies the VM's unique SMBIOS ID. + :vartype vm_uuid: str + :ivar status: The status of the hybrid machine agent. Possible values include: "Connected", + "Disconnected", "Error". + :vartype status: str or ~azure_arc_vmware_management_service_api.models.StatusTypes + :ivar last_status_change: The time of the last status change. + :vartype last_status_change: ~datetime.datetime + :ivar agent_version: The hybrid machine agent full version. + :vartype agent_version: str + :ivar error_details: Details about the error state. + :vartype error_details: list[~azure_arc_vmware_management_service_api.models.ErrorDetail] + """ + + _validation = { + 'vm_uuid': {'readonly': True}, + 'status': {'readonly': True}, + 'last_status_change': {'readonly': True}, + 'agent_version': {'readonly': True}, + 'error_details': {'readonly': True}, + } + + _attribute_map = { + 'vm_uuid': {'key': 'vmUuid', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'last_status_change': {'key': 'lastStatusChange', 'type': 'iso-8601'}, + 'agent_version': {'key': 'agentVersion', 'type': 'str'}, + 'error_details': {'key': 'errorDetails', 'type': '[ErrorDetail]'}, + } + + def __init__( + self, + **kwargs + ): + super(GuestAgentProfile, self).__init__(**kwargs) + self.vm_uuid = None + self.status = None + self.last_status_change = None + self.agent_version = None + self.error_details = None + + +class GuestCredential(msrest.serialization.Model): + """Username / Password Credentials to connect to guest. + + :param username: Gets or sets username to connect with the guest. + :type username: str + :param password: Gets or sets the password to connect with the guest. + :type password: str + """ + + _attribute_map = { + 'username': {'key': 'username', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, + } + + def __init__( + self, + *, + username: Optional[str] = None, + password: Optional[str] = None, + **kwargs + ): + super(GuestCredential, self).__init__(**kwargs) + self.username = username + self.password = password + + +class HardwareProfile(msrest.serialization.Model): + """Defines the resource properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param memory_size_mb: Gets or sets memory size in MBs for the vm. + :type memory_size_mb: int + :param num_cp_us: Gets or sets the number of vCPUs for the vm. + :type num_cp_us: int + :param num_cores_per_socket: Gets or sets the number of cores per socket for the vm. Defaults + to 1 if unspecified. + :type num_cores_per_socket: int + :ivar cpu_hot_add_enabled: Gets or sets a value indicating whether virtual processors can be + added while this virtual machine is running. + :vartype cpu_hot_add_enabled: bool + :ivar cpu_hot_remove_enabled: Gets or sets a value indicating whether virtual processors can be + removed while this virtual machine is running. + :vartype cpu_hot_remove_enabled: bool + :ivar memory_hot_add_enabled: Gets or sets a value indicating whether memory can be added while + this virtual machine is running. + :vartype memory_hot_add_enabled: bool + """ + + _validation = { + 'cpu_hot_add_enabled': {'readonly': True}, + 'cpu_hot_remove_enabled': {'readonly': True}, + 'memory_hot_add_enabled': {'readonly': True}, + } + + _attribute_map = { + 'memory_size_mb': {'key': 'memorySizeMB', 'type': 'int'}, + 'num_cp_us': {'key': 'numCPUs', 'type': 'int'}, + 'num_cores_per_socket': {'key': 'numCoresPerSocket', 'type': 'int'}, + 'cpu_hot_add_enabled': {'key': 'cpuHotAddEnabled', 'type': 'bool'}, + 'cpu_hot_remove_enabled': {'key': 'cpuHotRemoveEnabled', 'type': 'bool'}, + 'memory_hot_add_enabled': {'key': 'memoryHotAddEnabled', 'type': 'bool'}, + } + + def __init__( + self, + *, + memory_size_mb: Optional[int] = None, + num_cp_us: Optional[int] = None, + num_cores_per_socket: Optional[int] = None, + **kwargs + ): + super(HardwareProfile, self).__init__(**kwargs) + self.memory_size_mb = memory_size_mb + self.num_cp_us = num_cp_us + self.num_cores_per_socket = num_cores_per_socket + self.cpu_hot_add_enabled = None + self.cpu_hot_remove_enabled = None + self.memory_hot_add_enabled = None + + +class Host(msrest.serialization.Model): + """Define the host. + + 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 location: Required. Gets or sets the location. + :type location: str + :param extended_location: Gets or sets the extended location. + :type extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :ivar system_data: The system data. + :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :param tags: A set of tags. Gets or sets the Resource tags. + :type tags: dict[str, str] + :ivar name: Gets or sets the name. + :vartype name: str + :ivar id: Gets or sets the Id. + :vartype id: str + :ivar type: Gets or sets the type of the resource. + :vartype type: str + :param kind: Metadata used by portal/tooling/etc to render different UX experiences for + resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, + the resource provider must validate and persist this value. + :type kind: str + :ivar uuid: Gets or sets a unique identifier for this resource. + :vartype uuid: str + :param v_center_id: Gets or sets the ARM Id of the vCenter resource in which this host resides. + :type v_center_id: str + :param mo_ref_id: Gets or sets the vCenter MoRef (Managed Object Reference) ID for the host. + :type mo_ref_id: str + :param inventory_item_id: Gets or sets the inventory Item ID for the host. + :type inventory_item_id: str + :ivar mo_name: Gets or sets the vCenter Managed Object name for the host. + :vartype mo_name: str + :ivar statuses: The resource status information. + :vartype statuses: list[~azure_arc_vmware_management_service_api.models.ResourceStatus] + :ivar custom_resource_name: Gets the name of the corresponding resource in Kubernetes. + :vartype custom_resource_name: str + :ivar provisioning_state: Gets or sets the provisioning state. + :vartype provisioning_state: str + """ + + _validation = { + 'location': {'required': True}, + 'system_data': {'readonly': True}, + 'name': {'readonly': True}, + 'id': {'readonly': True}, + 'type': {'readonly': True}, + 'uuid': {'readonly': True}, + 'mo_name': {'readonly': True}, + 'statuses': {'readonly': True}, + 'custom_resource_name': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'extended_location': {'key': 'extendedLocation', 'type': 'ExtendedLocation'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'name': {'key': 'name', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'uuid': {'key': 'properties.uuid', 'type': 'str'}, + 'v_center_id': {'key': 'properties.vCenterId', 'type': 'str'}, + 'mo_ref_id': {'key': 'properties.moRefId', 'type': 'str'}, + 'inventory_item_id': {'key': 'properties.inventoryItemId', 'type': 'str'}, + 'mo_name': {'key': 'properties.moName', 'type': 'str'}, + 'statuses': {'key': 'properties.statuses', 'type': '[ResourceStatus]'}, + 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__( + self, + *, + location: str, + extended_location: Optional["ExtendedLocation"] = None, + tags: Optional[Dict[str, str]] = None, + kind: Optional[str] = None, + v_center_id: Optional[str] = None, + mo_ref_id: Optional[str] = None, + inventory_item_id: Optional[str] = None, + **kwargs + ): + super(Host, self).__init__(**kwargs) + self.location = location + self.extended_location = extended_location self.system_data = None - self.credentials = credentials - self.provisioning_action = provisioning_action - self.status = None + self.tags = tags + self.name = None + self.id = None + self.type = None + self.kind = kind + self.uuid = None + self.v_center_id = v_center_id + self.mo_ref_id = mo_ref_id + self.inventory_item_id = inventory_item_id + self.mo_name = None + self.statuses = None + self.custom_resource_name = None self.provisioning_state = None -class GuestAgentList(msrest.serialization.Model): - """List of GuestAgent. +class HostsList(msrest.serialization.Model): + """List of Hosts. All required parameters must be populated in order to send to Azure. - :param next_link: Url to follow for getting next page of GuestAgent. + :param next_link: Url to follow for getting next page of Hosts. :type next_link: str - :param value: Required. Array of GuestAgent. - :type value: list[~azure_arc_vmware_management_service_api.models.GuestAgent] + :param value: Required. Array of Hosts. + :type value: list[~azure_arc_vmware_management_service_api.models.Host] """ _validation = { @@ -287,100 +1044,40 @@ class GuestAgentList(msrest.serialization.Model): _attribute_map = { 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'value': {'key': 'value', 'type': '[GuestAgent]'}, + 'value': {'key': 'value', 'type': '[Host]'}, } def __init__( self, *, - value: List["GuestAgent"], + value: List["Host"], next_link: Optional[str] = None, **kwargs ): - super(GuestAgentList, self).__init__(**kwargs) + super(HostsList, self).__init__(**kwargs) self.next_link = next_link self.value = value -class GuestCredential(msrest.serialization.Model): - """Username / Password Credentials to connect to guest. - - :param username: Gets or sets username to connect with the guest. - :type username: str - :param password: Gets or sets the password to connect with the guest. - :type password: str - """ - - _attribute_map = { - 'username': {'key': 'username', 'type': 'str'}, - 'password': {'key': 'password', 'type': 'str'}, - } - - def __init__( - self, - *, - username: Optional[str] = None, - password: Optional[str] = None, - **kwargs - ): - super(GuestCredential, self).__init__(**kwargs) - self.username = username - self.password = password - - -class HardwareProfile(msrest.serialization.Model): - """Defines the resource properties. - - Variables are only populated by the server, and will be ignored when sending a request. +class HttpProxyConfiguration(msrest.serialization.Model): + """HTTP Proxy configuration for the VM. - :param memory_size_mb: Gets or sets memory size in MBs for the vm. - :type memory_size_mb: int - :param num_cp_us: Gets or sets the number of vCPUs for the vm. - :type num_cp_us: int - :param num_cores_per_socket: Gets or sets the number of cores per socket for the vm. Defaults - to 1 if unspecified. - :type num_cores_per_socket: int - :ivar cpu_hot_add_enabled: Gets or sets a value indicating whether virtual processors can be - added while this virtual machine is running. - :vartype cpu_hot_add_enabled: bool - :ivar cpu_hot_remove_enabled: Gets or sets a value indicating whether virtual processors can be - removed while this virtual machine is running. - :vartype cpu_hot_remove_enabled: bool - :ivar memory_hot_add_enabled: Gets or sets a value indicating whether memory can be added while - this virtual machine is running. - :vartype memory_hot_add_enabled: bool + :param https_proxy: Gets or sets httpsProxy url. + :type https_proxy: str """ - _validation = { - 'cpu_hot_add_enabled': {'readonly': True}, - 'cpu_hot_remove_enabled': {'readonly': True}, - 'memory_hot_add_enabled': {'readonly': True}, - } - _attribute_map = { - 'memory_size_mb': {'key': 'memorySizeMB', 'type': 'int'}, - 'num_cp_us': {'key': 'numCPUs', 'type': 'int'}, - 'num_cores_per_socket': {'key': 'numCoresPerSocket', 'type': 'int'}, - 'cpu_hot_add_enabled': {'key': 'cpuHotAddEnabled', 'type': 'bool'}, - 'cpu_hot_remove_enabled': {'key': 'cpuHotRemoveEnabled', 'type': 'bool'}, - 'memory_hot_add_enabled': {'key': 'memoryHotAddEnabled', 'type': 'bool'}, + 'https_proxy': {'key': 'httpsProxy', 'type': 'str'}, } def __init__( self, *, - memory_size_mb: Optional[int] = None, - num_cp_us: Optional[int] = None, - num_cores_per_socket: Optional[int] = None, + https_proxy: Optional[str] = None, **kwargs ): - super(HardwareProfile, self).__init__(**kwargs) - self.memory_size_mb = memory_size_mb - self.num_cp_us = num_cp_us - self.num_cores_per_socket = num_cores_per_socket - self.cpu_hot_add_enabled = None - self.cpu_hot_remove_enabled = None - self.memory_hot_add_enabled = None + super(HttpProxyConfiguration, self).__init__(**kwargs) + self.https_proxy = https_proxy class HybridIdentityMetadata(ProxyResource): @@ -532,8 +1229,13 @@ class InventoryItem(ProxyResource): :vartype type: str :ivar system_data: The system data. :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :param kind: Metadata used by portal/tooling/etc to render different UX experiences for + resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, + the resource provider must validate and persist this value. + :type kind: str :param inventory_type: Required. They inventory type.Constant filled by server. Possible - values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork". + values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", + "Cluster", "Datastore". :type inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType :param managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. @@ -560,6 +1262,7 @@ class InventoryItem(ProxyResource): 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + 'kind': {'key': 'kind', 'type': 'str'}, 'inventory_type': {'key': 'properties.inventoryType', 'type': 'str'}, 'managed_resource_id': {'key': 'properties.managedResourceId', 'type': 'str'}, 'mo_ref_id': {'key': 'properties.moRefId', 'type': 'str'}, @@ -570,6 +1273,7 @@ class InventoryItem(ProxyResource): def __init__( self, *, + kind: Optional[str] = None, managed_resource_id: Optional[str] = None, mo_ref_id: Optional[str] = None, mo_name: Optional[str] = None, @@ -577,6 +1281,7 @@ def __init__( ): super(InventoryItem, self).__init__(**kwargs) self.system_data = None + self.kind = kind self.inventory_type = None # type: Optional[str] self.managed_resource_id = managed_resource_id self.mo_ref_id = mo_ref_id @@ -610,63 +1315,6 @@ def __init__( self.mo_name = mo_name -class InventoryItemProperties(msrest.serialization.Model): - """Defines the resource properties. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ResourcePoolInventoryItem, VirtualMachineInventoryItem, VirtualMachineTemplateInventoryItem, VirtualNetworkInventoryItem. - - 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 inventory_type: Required. They inventory type.Constant filled by server. Possible - values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork". - :type inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType - :param managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory - resource. - :type managed_resource_id: str - :param mo_ref_id: Gets or sets the MoRef (Managed Object Reference) ID for the inventory item. - :type mo_ref_id: str - :param mo_name: Gets or sets the vCenter Managed Object name for the inventory item. - :type mo_name: str - :ivar provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str - """ - - _validation = { - 'inventory_type': {'required': True}, - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'inventory_type': {'key': 'inventoryType', 'type': 'str'}, - 'managed_resource_id': {'key': 'managedResourceId', 'type': 'str'}, - 'mo_ref_id': {'key': 'moRefId', 'type': 'str'}, - 'mo_name': {'key': 'moName', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - } - - _subtype_map = { - 'inventory_type': {'ResourcePool': 'ResourcePoolInventoryItem', 'VirtualMachine': 'VirtualMachineInventoryItem', 'VirtualMachineTemplate': 'VirtualMachineTemplateInventoryItem', 'VirtualNetwork': 'VirtualNetworkInventoryItem'} - } - - def __init__( - self, - *, - managed_resource_id: Optional[str] = None, - mo_ref_id: Optional[str] = None, - mo_name: Optional[str] = None, - **kwargs - ): - super(InventoryItemProperties, self).__init__(**kwargs) - self.inventory_type = None # type: Optional[str] - self.managed_resource_id = managed_resource_id - self.mo_ref_id = mo_ref_id - self.mo_name = mo_name - self.provisioning_state = None - - class InventoryItemsList(msrest.serialization.Model): """List of InventoryItems. @@ -731,10 +1379,10 @@ class MachineExtension(msrest.serialization.Model): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param instance_view: The machine extension instance view. @@ -778,8 +1426,8 @@ def __init__( type_properties_type: Optional[str] = None, type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, instance_view: Optional["MachineExtensionPropertiesInstanceView"] = None, **kwargs ): @@ -993,10 +1641,10 @@ class MachineExtensionUpdate(ResourcePatch): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any """ _attribute_map = { @@ -1019,8 +1667,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, **kwargs ): super(MachineExtensionUpdate, self).__init__(tags=tags, **kwargs) @@ -1416,9 +2064,9 @@ class OsProfile(msrest.serialization.Model): :type admin_username: str :param admin_password: Gets or sets administrator password. :type admin_password: str - :ivar os_type: Gets or sets the type of the os. Possible values include: "Windows", "Linux", + :param os_type: Gets or sets the type of the os. Possible values include: "Windows", "Linux", "Other". - :vartype os_type: str or ~azure_arc_vmware_management_service_api.models.OsType + :type os_type: str or ~azure_arc_vmware_management_service_api.models.OsType :ivar os_name: Gets or sets os name. :vartype os_name: str :ivar tools_running_status: Gets or sets the current running status of VMware Tools running in @@ -1432,7 +2080,6 @@ class OsProfile(msrest.serialization.Model): """ _validation = { - 'os_type': {'readonly': True}, 'os_name': {'readonly': True}, 'tools_running_status': {'readonly': True}, 'tools_version_status': {'readonly': True}, @@ -1456,19 +2103,60 @@ def __init__( computer_name: Optional[str] = None, admin_username: Optional[str] = None, admin_password: Optional[str] = None, + os_type: Optional[Union[str, "OsType"]] = None, **kwargs ): super(OsProfile, self).__init__(**kwargs) self.computer_name = computer_name self.admin_username = admin_username self.admin_password = admin_password - self.os_type = None + self.os_type = os_type self.os_name = None self.tools_running_status = None self.tools_version_status = None self.tools_version = None +class PlacementProfile(msrest.serialization.Model): + """Defines the resource properties. + + :param resource_pool_id: Gets or sets the ARM Id of the resourcePool resource on which this + virtual machine will deploy. + :type resource_pool_id: str + :param cluster_id: Gets or sets the ARM Id of the cluster resource on which this virtual + machine will deploy. + :type cluster_id: str + :param host_id: Gets or sets the ARM Id of the host resource on which this virtual machine will + deploy. + :type host_id: str + :param datastore_id: Gets or sets the ARM Id of the datastore resource on which the data for + the virtual machine will be kept. + :type datastore_id: str + """ + + _attribute_map = { + 'resource_pool_id': {'key': 'resourcePoolId', 'type': 'str'}, + 'cluster_id': {'key': 'clusterId', 'type': 'str'}, + 'host_id': {'key': 'hostId', 'type': 'str'}, + 'datastore_id': {'key': 'datastoreId', 'type': 'str'}, + } + + def __init__( + self, + *, + resource_pool_id: Optional[str] = None, + cluster_id: Optional[str] = None, + host_id: Optional[str] = None, + datastore_id: Optional[str] = None, + **kwargs + ): + super(PlacementProfile, self).__init__(**kwargs) + self.resource_pool_id = resource_pool_id + self.cluster_id = cluster_id + self.host_id = host_id + self.datastore_id = datastore_id + + class ResourcePool(msrest.serialization.Model): """Define the resourcePool. @@ -1530,6 +2218,8 @@ class ResourcePool(msrest.serialization.Model): :vartype mem_limit_mb: long :ivar custom_resource_name: Gets the name of the corresponding resource in Kubernetes. :vartype custom_resource_name: str + :ivar statuses: The resource status information. + :vartype statuses: list[~azure_arc_vmware_management_service_api.models.ResourceStatus] :ivar provisioning_state: Gets or sets the provisioning state. :vartype provisioning_state: str """ @@ -1549,6 +2239,7 @@ class ResourcePool(msrest.serialization.Model): 'mem_reservation_mb': {'readonly': True}, 'mem_limit_mb': {'readonly': True}, 'custom_resource_name': {'readonly': True}, + 'statuses': {'readonly': True}, 'provisioning_state': {'readonly': True}, } @@ -1573,6 +2264,7 @@ class ResourcePool(msrest.serialization.Model): 'mem_reservation_mb': {'key': 'properties.memReservationMB', 'type': 'long'}, 'mem_limit_mb': {'key': 'properties.memLimitMB', 'type': 'long'}, 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, + 'statuses': {'key': 'properties.statuses', 'type': '[ResourceStatus]'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, } @@ -1609,6 +2301,7 @@ def __init__( self.mem_reservation_mb = None self.mem_limit_mb = None self.custom_resource_name = None + self.statuses = None self.provisioning_state = None @@ -1620,7 +2313,8 @@ class ResourcePoolInventoryItem(InventoryItemProperties): All required parameters must be populated in order to send to Azure. :param inventory_type: Required. They inventory type.Constant filled by server. Possible - values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork". + values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", + "Cluster", "Datastore". :type inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType :param managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. @@ -1695,6 +2389,56 @@ def __init__( self.value = value +class ResourceStatus(msrest.serialization.Model): + """The resource status information. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar type: The type of the condition. + :vartype type: str + :ivar status: Status of the condition. + :vartype status: str + :ivar reason: The reason for the condition's status. + :vartype reason: str + :ivar message: A human readable message indicating details about the status. + :vartype message: str + :ivar severity: Severity with which to treat failures of this type of condition. + :vartype severity: str + :ivar last_updated_at: The last update time for this condition. + :vartype last_updated_at: ~datetime.datetime + """ + + _validation = { + 'type': {'readonly': True}, + 'status': {'readonly': True}, + 'reason': {'readonly': True}, + 'message': {'readonly': True}, + 'severity': {'readonly': True}, + 'last_updated_at': {'readonly': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'reason': {'key': 'reason', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'severity': {'key': 'severity', 'type': 'str'}, + 'last_updated_at': {'key': 'lastUpdatedAt', 'type': 'iso-8601'}, + } + + def __init__( + self, + **kwargs + ): + super(ResourceStatus, self).__init__(**kwargs) + self.type = None + self.status = None + self.reason = None + self.message = None + self.severity = None + self.last_updated_at = None + + class StopVirtualMachineOptions(msrest.serialization.Model): """Defines the stop action properties. @@ -1788,7 +2532,7 @@ class SystemData(msrest.serialization.Model): values include: "User", "Application", "ManagedIdentity", "Key". :type last_modified_by_type: str or ~azure_arc_vmware_management_service_api.models.CreatedByType - :param last_modified_at: The type of identity that last modified the resource. + :param last_modified_at: The timestamp of resource last modification (UTC). :type last_modified_at: ~datetime.datetime """ @@ -1862,6 +2606,8 @@ class VCenter(msrest.serialization.Model): :vartype custom_resource_name: str :param credentials: Username / Password Credentials to connect to vcenter. :type credentials: ~azure_arc_vmware_management_service_api.models.VICredential + :ivar statuses: The resource status information. + :vartype statuses: list[~azure_arc_vmware_management_service_api.models.ResourceStatus] :ivar provisioning_state: Gets or sets the provisioning state. :vartype provisioning_state: str """ @@ -1879,6 +2625,7 @@ class VCenter(msrest.serialization.Model): 'instance_uuid': {'readonly': True}, 'connection_status': {'readonly': True}, 'custom_resource_name': {'readonly': True}, + 'statuses': {'readonly': True}, 'provisioning_state': {'readonly': True}, } @@ -1899,6 +2646,7 @@ class VCenter(msrest.serialization.Model): 'connection_status': {'key': 'properties.connectionStatus', 'type': 'str'}, 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, 'credentials': {'key': 'properties.credentials', 'type': 'VICredential'}, + 'statuses': {'key': 'properties.statuses', 'type': '[ResourceStatus]'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, } @@ -1931,6 +2679,7 @@ def __init__( self.connection_status = None self.custom_resource_name = None self.credentials = credentials + self.statuses = None self.provisioning_state = None @@ -2014,6 +2763,11 @@ class VirtualDisk(msrest.serialization.Model): :type controller_key: int :param unit_number: Gets or sets the unit number of the disk on the controller. :type unit_number: int + :param device_name: Gets or sets the device name. + :type device_name: str + :param disk_type: Gets or sets the disk backing type. Possible values include: "flat", "pmem", + "rawphysical", "rawvirtual", "sparse", "sesparse", "unknown". + :type disk_type: str or ~azure_arc_vmware_management_service_api.models.DiskType """ _validation = { @@ -2030,6 +2784,8 @@ class VirtualDisk(msrest.serialization.Model): 'disk_mode': {'key': 'diskMode', 'type': 'str'}, 'controller_key': {'key': 'controllerKey', 'type': 'int'}, 'unit_number': {'key': 'unitNumber', 'type': 'int'}, + 'device_name': {'key': 'deviceName', 'type': 'str'}, + 'disk_type': {'key': 'diskType', 'type': 'str'}, } def __init__( @@ -2041,6 +2797,8 @@ def __init__( disk_mode: Optional[Union[str, "DiskMode"]] = None, controller_key: Optional[int] = None, unit_number: Optional[int] = None, + device_name: Optional[str] = None, + disk_type: Optional[Union[str, "DiskType"]] = None, **kwargs ): super(VirtualDisk, self).__init__(**kwargs) @@ -2052,6 +2810,8 @@ def __init__( self.disk_mode = disk_mode self.controller_key = controller_key self.unit_number = unit_number + self.device_name = device_name + self.disk_type = disk_type class VirtualDiskUpdate(msrest.serialization.Model): @@ -2070,6 +2830,11 @@ class VirtualDiskUpdate(msrest.serialization.Model): :type controller_key: int :param unit_number: Gets or sets the unit number of the disk on the controller. :type unit_number: int + :param device_name: Gets or sets the device name. + :type device_name: str + :param disk_type: Gets or sets the disk backing type. Possible values include: "flat", "pmem", + "rawphysical", "rawvirtual", "sparse", "sesparse", "unknown". + :type disk_type: str or ~azure_arc_vmware_management_service_api.models.DiskType """ _attribute_map = { @@ -2079,6 +2844,8 @@ class VirtualDiskUpdate(msrest.serialization.Model): 'disk_mode': {'key': 'diskMode', 'type': 'str'}, 'controller_key': {'key': 'controllerKey', 'type': 'int'}, 'unit_number': {'key': 'unitNumber', 'type': 'int'}, + 'device_name': {'key': 'deviceName', 'type': 'str'}, + 'disk_type': {'key': 'diskType', 'type': 'str'}, } def __init__( @@ -2090,6 +2857,8 @@ def __init__( disk_mode: Optional[Union[str, "DiskMode"]] = None, controller_key: Optional[int] = None, unit_number: Optional[int] = None, + device_name: Optional[str] = None, + disk_type: Optional[Union[str, "DiskType"]] = None, **kwargs ): super(VirtualDiskUpdate, self).__init__(**kwargs) @@ -2099,6 +2868,8 @@ def __init__( self.disk_mode = disk_mode self.controller_key = controller_key self.unit_number = unit_number + self.device_name = device_name + self.disk_type = disk_type class VirtualMachine(msrest.serialization.Model): @@ -2138,6 +2909,8 @@ class VirtualMachine(msrest.serialization.Model): :param v_center_id: Gets or sets the ARM Id of the vCenter resource in which this resource pool resides. :type v_center_id: str + :param placement_profile: Placement properties. + :type placement_profile: ~azure_arc_vmware_management_service_api.models.PlacementProfile :param os_profile: OS properties. :type os_profile: ~azure_arc_vmware_management_service_api.models.OsProfile :param hardware_profile: Hardware properties. @@ -2146,6 +2919,8 @@ class VirtualMachine(msrest.serialization.Model): :type network_profile: ~azure_arc_vmware_management_service_api.models.NetworkProfile :param storage_profile: Storage properties. :type storage_profile: ~azure_arc_vmware_management_service_api.models.StorageProfile + :param guest_agent_profile: Guest agent status properties. + :type guest_agent_profile: ~azure_arc_vmware_management_service_api.models.GuestAgentProfile :param mo_ref_id: Gets or sets the vCenter MoRef (Managed Object Reference) ID for the virtual machine. :type mo_ref_id: str @@ -2157,12 +2932,16 @@ class VirtualMachine(msrest.serialization.Model): :vartype folder_path: str :ivar instance_uuid: Gets or sets the instance uuid of the vm. :vartype instance_uuid: str + :param smbios_uuid: Gets or sets the SMBIOS UUID of the vm. + :type smbios_uuid: str :ivar power_state: Gets the power state of the virtual machine. :vartype power_state: str :ivar custom_resource_name: Gets the name of the corresponding resource in Kubernetes. :vartype custom_resource_name: str :ivar uuid: Gets or sets a unique identifier for this resource. :vartype uuid: str + :ivar statuses: The resource status information. + :vartype statuses: list[~azure_arc_vmware_management_service_api.models.ResourceStatus] :ivar provisioning_state: Gets or sets the provisioning state. :vartype provisioning_state: str :ivar vm_id: Gets or sets a unique identifier for the vm resource. @@ -2181,6 +2960,7 @@ class VirtualMachine(msrest.serialization.Model): 'power_state': {'readonly': True}, 'custom_resource_name': {'readonly': True}, 'uuid': {'readonly': True}, + 'statuses': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'vm_id': {'readonly': True}, } @@ -2198,18 +2978,22 @@ class VirtualMachine(msrest.serialization.Model): 'resource_pool_id': {'key': 'properties.resourcePoolId', 'type': 'str'}, 'template_id': {'key': 'properties.templateId', 'type': 'str'}, 'v_center_id': {'key': 'properties.vCenterId', 'type': 'str'}, + 'placement_profile': {'key': 'properties.placementProfile', 'type': 'PlacementProfile'}, 'os_profile': {'key': 'properties.osProfile', 'type': 'OsProfile'}, 'hardware_profile': {'key': 'properties.hardwareProfile', 'type': 'HardwareProfile'}, 'network_profile': {'key': 'properties.networkProfile', 'type': 'NetworkProfile'}, 'storage_profile': {'key': 'properties.storageProfile', 'type': 'StorageProfile'}, + 'guest_agent_profile': {'key': 'properties.guestAgentProfile', 'type': 'GuestAgentProfile'}, 'mo_ref_id': {'key': 'properties.moRefId', 'type': 'str'}, 'inventory_item_id': {'key': 'properties.inventoryItemId', 'type': 'str'}, 'mo_name': {'key': 'properties.moName', 'type': 'str'}, 'folder_path': {'key': 'properties.folderPath', 'type': 'str'}, 'instance_uuid': {'key': 'properties.instanceUuid', 'type': 'str'}, + 'smbios_uuid': {'key': 'properties.smbiosUuid', 'type': 'str'}, 'power_state': {'key': 'properties.powerState', 'type': 'str'}, 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, 'uuid': {'key': 'properties.uuid', 'type': 'str'}, + 'statuses': {'key': 'properties.statuses', 'type': '[ResourceStatus]'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'vm_id': {'key': 'properties.vmId', 'type': 'str'}, } @@ -2225,12 +3009,15 @@ def __init__( resource_pool_id: Optional[str] = None, template_id: Optional[str] = None, v_center_id: Optional[str] = None, + placement_profile: Optional["PlacementProfile"] = None, os_profile: Optional["OsProfile"] = None, hardware_profile: Optional["HardwareProfile"] = None, network_profile: Optional["NetworkProfile"] = None, storage_profile: Optional["StorageProfile"] = None, + guest_agent_profile: Optional["GuestAgentProfile"] = None, mo_ref_id: Optional[str] = None, inventory_item_id: Optional[str] = None, + smbios_uuid: Optional[str] = None, **kwargs ): super(VirtualMachine, self).__init__(**kwargs) @@ -2246,18 +3033,22 @@ def __init__( self.resource_pool_id = resource_pool_id self.template_id = template_id self.v_center_id = v_center_id + self.placement_profile = placement_profile self.os_profile = os_profile self.hardware_profile = hardware_profile self.network_profile = network_profile self.storage_profile = storage_profile + self.guest_agent_profile = guest_agent_profile self.mo_ref_id = mo_ref_id self.inventory_item_id = inventory_item_id self.mo_name = None self.folder_path = None self.instance_uuid = None + self.smbios_uuid = smbios_uuid self.power_state = None self.custom_resource_name = None self.uuid = None + self.statuses = None self.provisioning_state = None self.vm_id = None @@ -2270,7 +3061,8 @@ class VirtualMachineInventoryItem(InventoryItemProperties): All required parameters must be populated in order to send to Azure. :param inventory_type: Required. They inventory type.Constant filled by server. Possible - values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork". + values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", + "Cluster", "Datastore". :type inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType :param managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. @@ -2281,9 +3073,9 @@ class VirtualMachineInventoryItem(InventoryItemProperties): :type mo_name: str :ivar provisioning_state: Gets or sets the provisioning state. :vartype provisioning_state: str - :ivar os_type: Gets or sets the type of the os. Possible values include: "Windows", "Linux", + :param os_type: Gets or sets the type of the os. Possible values include: "Windows", "Linux", "Other". - :vartype os_type: str or ~azure_arc_vmware_management_service_api.models.OsType + :type os_type: str or ~azure_arc_vmware_management_service_api.models.OsType :param os_name: Gets or sets os name. :type os_name: str :param ip_addresses: Gets or sets the nic ip addresses. @@ -2296,12 +3088,27 @@ class VirtualMachineInventoryItem(InventoryItemProperties): :type resource_pool: ~azure_arc_vmware_management_service_api.models.InventoryItemDetails :param instance_uuid: Gets or sets the instance uuid of the vm. :type instance_uuid: str + :param smbios_uuid: Gets or sets the SMBIOS UUID of the vm. + :type smbios_uuid: str + :ivar power_state: Gets the power state of the virtual machine. + :vartype power_state: str + :ivar tools_running_status: Gets or sets the current running status of VMware Tools running in + the guest operating system. + :vartype tools_running_status: str + :ivar tools_version_status: Gets or sets the current version status of VMware Tools installed + in the guest operating system. + :vartype tools_version_status: str + :ivar tools_version: Gets or sets the current version of VMware Tools. + :vartype tools_version: str """ _validation = { 'inventory_type': {'required': True}, 'provisioning_state': {'readonly': True}, - 'os_type': {'readonly': True}, + 'power_state': {'readonly': True}, + 'tools_running_status': {'readonly': True}, + 'tools_version_status': {'readonly': True}, + 'tools_version': {'readonly': True}, } _attribute_map = { @@ -2317,6 +3124,11 @@ class VirtualMachineInventoryItem(InventoryItemProperties): 'host': {'key': 'host', 'type': 'InventoryItemDetails'}, 'resource_pool': {'key': 'resourcePool', 'type': 'InventoryItemDetails'}, 'instance_uuid': {'key': 'instanceUuid', 'type': 'str'}, + 'smbios_uuid': {'key': 'smbiosUuid', 'type': 'str'}, + 'power_state': {'key': 'powerState', 'type': 'str'}, + 'tools_running_status': {'key': 'toolsRunningStatus', 'type': 'str'}, + 'tools_version_status': {'key': 'toolsVersionStatus', 'type': 'str'}, + 'tools_version': {'key': 'toolsVersion', 'type': 'str'}, } def __init__( @@ -2325,23 +3137,30 @@ def __init__( managed_resource_id: Optional[str] = None, mo_ref_id: Optional[str] = None, mo_name: Optional[str] = None, + os_type: Optional[Union[str, "OsType"]] = None, os_name: Optional[str] = None, ip_addresses: Optional[List[str]] = None, folder_path: Optional[str] = None, host: Optional["InventoryItemDetails"] = None, resource_pool: Optional["InventoryItemDetails"] = None, instance_uuid: Optional[str] = None, + smbios_uuid: Optional[str] = None, **kwargs ): super(VirtualMachineInventoryItem, self).__init__(managed_resource_id=managed_resource_id, mo_ref_id=mo_ref_id, mo_name=mo_name, **kwargs) self.inventory_type = 'VirtualMachine' # type: str - self.os_type = None + self.os_type = os_type self.os_name = os_name self.ip_addresses = ip_addresses self.folder_path = folder_path self.host = host self.resource_pool = resource_pool self.instance_uuid = instance_uuid + self.smbios_uuid = smbios_uuid + self.power_state = None + self.tools_running_status = None + self.tools_version_status = None + self.tools_version = None class VirtualMachinesList(msrest.serialization.Model): @@ -2435,6 +3254,13 @@ class VirtualMachineTemplate(msrest.serialization.Model): :vartype disks: list[~azure_arc_vmware_management_service_api.models.VirtualDisk] :ivar custom_resource_name: Gets the name of the corresponding resource in Kubernetes. :vartype custom_resource_name: str + :ivar tools_version_status: Gets or sets the current version status of VMware Tools installed + in the guest operating system. + :vartype tools_version_status: str + :ivar tools_version: Gets or sets the current version of VMware Tools. + :vartype tools_version: str + :ivar statuses: The resource status information. + :vartype statuses: list[~azure_arc_vmware_management_service_api.models.ResourceStatus] :ivar provisioning_state: Gets or sets the provisioning state. :vartype provisioning_state: str """ @@ -2456,6 +3282,9 @@ class VirtualMachineTemplate(msrest.serialization.Model): 'network_interfaces': {'readonly': True}, 'disks': {'readonly': True}, 'custom_resource_name': {'readonly': True}, + 'tools_version_status': {'readonly': True}, + 'tools_version': {'readonly': True}, + 'statuses': {'readonly': True}, 'provisioning_state': {'readonly': True}, } @@ -2482,6 +3311,9 @@ class VirtualMachineTemplate(msrest.serialization.Model): 'network_interfaces': {'key': 'properties.networkInterfaces', 'type': '[NetworkInterface]'}, 'disks': {'key': 'properties.disks', 'type': '[VirtualDisk]'}, 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, + 'tools_version_status': {'key': 'properties.toolsVersionStatus', 'type': 'str'}, + 'tools_version': {'key': 'properties.toolsVersion', 'type': 'str'}, + 'statuses': {'key': 'properties.statuses', 'type': '[ResourceStatus]'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, } @@ -2520,6 +3352,9 @@ def __init__( self.network_interfaces = None self.disks = None self.custom_resource_name = None + self.tools_version_status = None + self.tools_version = None + self.statuses = None self.provisioning_state = None @@ -2531,7 +3366,8 @@ class VirtualMachineTemplateInventoryItem(InventoryItemProperties): All required parameters must be populated in order to send to Azure. :param inventory_type: Required. They inventory type.Constant filled by server. Possible - values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork". + values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", + "Cluster", "Datastore". :type inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType :param managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. @@ -2549,9 +3385,9 @@ class VirtualMachineTemplateInventoryItem(InventoryItemProperties): :param num_cores_per_socket: Gets or sets the number of cores per socket for the template. Defaults to 1 if unspecified. :type num_cores_per_socket: int - :ivar os_type: Gets or sets the type of the os. Possible values include: "Windows", "Linux", + :param os_type: Gets or sets the type of the os. Possible values include: "Windows", "Linux", "Other". - :vartype os_type: str or ~azure_arc_vmware_management_service_api.models.OsType + :type os_type: str or ~azure_arc_vmware_management_service_api.models.OsType :param os_name: Gets or sets os name. :type os_name: str :param folder_path: Gets or sets the folder path of the template. @@ -2561,7 +3397,6 @@ class VirtualMachineTemplateInventoryItem(InventoryItemProperties): _validation = { 'inventory_type': {'required': True}, 'provisioning_state': {'readonly': True}, - 'os_type': {'readonly': True}, } _attribute_map = { @@ -2587,6 +3422,7 @@ def __init__( memory_size_mb: Optional[int] = None, num_cp_us: Optional[int] = None, num_cores_per_socket: Optional[int] = None, + os_type: Optional[Union[str, "OsType"]] = None, os_name: Optional[str] = None, folder_path: Optional[str] = None, **kwargs @@ -2596,7 +3432,7 @@ def __init__( self.memory_size_mb = memory_size_mb self.num_cp_us = num_cp_us self.num_cores_per_socket = num_cores_per_socket - self.os_type = None + self.os_type = os_type self.os_name = os_name self.folder_path = folder_path @@ -2713,6 +3549,8 @@ class VirtualNetwork(msrest.serialization.Model): :vartype mo_name: str :ivar custom_resource_name: Gets the name of the corresponding resource in Kubernetes. :vartype custom_resource_name: str + :ivar statuses: The resource status information. + :vartype statuses: list[~azure_arc_vmware_management_service_api.models.ResourceStatus] :ivar provisioning_state: Gets or sets the provisioning state. :vartype provisioning_state: str """ @@ -2726,6 +3564,7 @@ class VirtualNetwork(msrest.serialization.Model): 'uuid': {'readonly': True}, 'mo_name': {'readonly': True}, 'custom_resource_name': {'readonly': True}, + 'statuses': {'readonly': True}, 'provisioning_state': {'readonly': True}, } @@ -2744,6 +3583,7 @@ class VirtualNetwork(msrest.serialization.Model): 'inventory_item_id': {'key': 'properties.inventoryItemId', 'type': 'str'}, 'mo_name': {'key': 'properties.moName', 'type': 'str'}, 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, + 'statuses': {'key': 'properties.statuses', 'type': '[ResourceStatus]'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, } @@ -2774,6 +3614,7 @@ def __init__( self.inventory_item_id = inventory_item_id self.mo_name = None self.custom_resource_name = None + self.statuses = None self.provisioning_state = None @@ -2785,7 +3626,8 @@ class VirtualNetworkInventoryItem(InventoryItemProperties): All required parameters must be populated in order to send to Azure. :param inventory_type: Required. They inventory type.Constant filled by server. Possible - values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork". + values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", + "Cluster", "Datastore". :type inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType :param managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/__init__.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/__init__.py index dbe61394bc..b41a867163 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/__init__.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/__init__.py @@ -8,6 +8,9 @@ from ._operations import Operations from ._resource_pools_operations import ResourcePoolsOperations +from ._clusters_operations import ClustersOperations +from ._hosts_operations import HostsOperations +from ._datastores_operations import DatastoresOperations from ._vcenters_operations import VCentersOperations from ._virtual_machines_operations import VirtualMachinesOperations from ._virtual_machine_templates_operations import VirtualMachineTemplatesOperations @@ -20,6 +23,9 @@ __all__ = [ 'Operations', 'ResourcePoolsOperations', + 'ClustersOperations', + 'HostsOperations', + 'DatastoresOperations', 'VCentersOperations', 'VirtualMachinesOperations', 'VirtualMachineTemplatesOperations', diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_clusters_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_clusters_operations.py new file mode 100644 index 0000000000..37b2d6ea3a --- /dev/null +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_clusters_operations.py @@ -0,0 +1,583 @@ +# 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 ClustersOperations(object): + """ClustersOperations 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: ~azure_arc_vmware_management_service_api.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 _create_initial( + self, + resource_group_name, # type: str + cluster_name, # type: str + body=None, # type: Optional["_models.Cluster"] + **kwargs # type: Any + ): + # type: (...) -> "_models.Cluster" + cls = kwargs.pop('cls', None) # type: ClsType["_models.Cluster"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_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 body is not None: + body_content = self._serialize.body(body, 'Cluster') + else: + body_content = None + 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('Cluster', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('Cluster', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/clusters/{clusterName}'} # type: ignore + + def begin_create( + self, + resource_group_name, # type: str + cluster_name, # type: str + body=None, # type: Optional["_models.Cluster"] + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.Cluster"] + """Implements cluster PUT method. + + Create Or Update cluster. + + :param resource_group_name: The Resource Group Name. + :type resource_group_name: str + :param cluster_name: Name of the cluster. + :type cluster_name: str + :param body: Request payload. + :type body: ~azure_arc_vmware_management_service_api.models.Cluster + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either Cluster or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure_arc_vmware_management_service_api.models.Cluster] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.Cluster"] + 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_initial( + resource_group_name=resource_group_name, + cluster_name=cluster_name, + body=body, + 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('Cluster', 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'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, 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.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/clusters/{clusterName}'} # type: ignore + + def get( + self, + resource_group_name, # type: str + cluster_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.Cluster" + """Gets a cluster. + + Implements cluster GET method. + + :param resource_group_name: The Resource Group Name. + :type resource_group_name: str + :param cluster_name: Name of the cluster. + :type cluster_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Cluster, or the result of cls(response) + :rtype: ~azure_arc_vmware_management_service_api.models.Cluster + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.Cluster"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + 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'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('Cluster', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/clusters/{clusterName}'} # type: ignore + + def update( + self, + resource_group_name, # type: str + cluster_name, # type: str + body=None, # type: Optional["_models.ResourcePatch"] + **kwargs # type: Any + ): + # type: (...) -> "_models.Cluster" + """Updates a cluster. + + API to update certain properties of the cluster resource. + + :param resource_group_name: The Resource Group Name. + :type resource_group_name: str + :param cluster_name: Name of the cluster. + :type cluster_name: str + :param body: Resource properties to update. + :type body: ~azure_arc_vmware_management_service_api.models.ResourcePatch + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Cluster, or the result of cls(response) + :rtype: ~azure_arc_vmware_management_service_api.models.Cluster + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.Cluster"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.update.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_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 body is not None: + body_content = self._serialize.body(body, 'ResourcePatch') + else: + body_content = None + 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) + 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('Cluster', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/clusters/{clusterName}'} # type: ignore + + def _delete_initial( + self, + resource_group_name, # type: str + cluster_name, # type: str + force=None, # type: Optional[bool] + **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 = "2020-10-01-preview" + 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'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_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') + if force is not None: + query_parameters['force'] = self._serialize.query("force", force, 'bool') + + # 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/clusters/{clusterName}'} # type: ignore + + def begin_delete( + self, + resource_group_name, # type: str + cluster_name, # type: str + force=None, # type: Optional[bool] + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Deletes an cluster. + + Implements cluster DELETE method. + + :param resource_group_name: The Resource Group Name. + :type resource_group_name: str + :param cluster_name: Name of the cluster. + :type cluster_name: str + :param force: Whether force delete was specified. + :type force: bool + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + 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, + cluster_name=cluster_name, + force=force, + 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'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_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.ConnectedVMwarevSphere/clusters/{clusterName}'} # type: ignore + + def list( + self, + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.ClustersList"] + """Implements GET clusters in a subscription. + + List of clusters in a subscription. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ClustersList or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure_arc_vmware_management_service_api.models.ClustersList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ClustersList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + 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'), + } + 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('ClustersList', 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]: + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedVMwarevSphere/clusters'} # type: ignore + + def list_by_resource_group( + self, + resource_group_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.ClustersList"] + """Implements GET clusters in a resource group. + + List of clusters in a resource group. + + :param resource_group_name: The Resource Group Name. + :type resource_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ClustersList or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure_arc_vmware_management_service_api.models.ClustersList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ClustersList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + 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_by_resource_group.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_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('ClustersList', 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]: + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/clusters'} # type: ignore diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_datastores_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_datastores_operations.py new file mode 100644 index 0000000000..f2c6a7e61b --- /dev/null +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_datastores_operations.py @@ -0,0 +1,583 @@ +# 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 DatastoresOperations(object): + """DatastoresOperations 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: ~azure_arc_vmware_management_service_api.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 _create_initial( + self, + resource_group_name, # type: str + datastore_name, # type: str + body=None, # type: Optional["_models.Datastore"] + **kwargs # type: Any + ): + # type: (...) -> "_models.Datastore" + cls = kwargs.pop('cls', None) # type: ClsType["_models.Datastore"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'datastoreName': self._serialize.url("datastore_name", datastore_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 body is not None: + body_content = self._serialize.body(body, 'Datastore') + else: + body_content = None + 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('Datastore', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('Datastore', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/datastores/{datastoreName}'} # type: ignore + + def begin_create( + self, + resource_group_name, # type: str + datastore_name, # type: str + body=None, # type: Optional["_models.Datastore"] + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.Datastore"] + """Implements datastore PUT method. + + Create Or Update datastore. + + :param resource_group_name: The Resource Group Name. + :type resource_group_name: str + :param datastore_name: Name of the datastore. + :type datastore_name: str + :param body: Request payload. + :type body: ~azure_arc_vmware_management_service_api.models.Datastore + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either Datastore or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure_arc_vmware_management_service_api.models.Datastore] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.Datastore"] + 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_initial( + resource_group_name=resource_group_name, + datastore_name=datastore_name, + body=body, + 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('Datastore', 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'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'datastoreName': self._serialize.url("datastore_name", datastore_name, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, 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.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/datastores/{datastoreName}'} # type: ignore + + def get( + self, + resource_group_name, # type: str + datastore_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.Datastore" + """Gets a datastore. + + Implements datastore GET method. + + :param resource_group_name: The Resource Group Name. + :type resource_group_name: str + :param datastore_name: Name of the datastore. + :type datastore_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Datastore, or the result of cls(response) + :rtype: ~azure_arc_vmware_management_service_api.models.Datastore + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.Datastore"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + 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'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'datastoreName': self._serialize.url("datastore_name", datastore_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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('Datastore', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/datastores/{datastoreName}'} # type: ignore + + def update( + self, + resource_group_name, # type: str + datastore_name, # type: str + body=None, # type: Optional["_models.ResourcePatch"] + **kwargs # type: Any + ): + # type: (...) -> "_models.Datastore" + """Updates a datastore. + + API to update certain properties of the datastore resource. + + :param resource_group_name: The Resource Group Name. + :type resource_group_name: str + :param datastore_name: Name of the datastore. + :type datastore_name: str + :param body: Resource properties to update. + :type body: ~azure_arc_vmware_management_service_api.models.ResourcePatch + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Datastore, or the result of cls(response) + :rtype: ~azure_arc_vmware_management_service_api.models.Datastore + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.Datastore"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.update.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'datastoreName': self._serialize.url("datastore_name", datastore_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 body is not None: + body_content = self._serialize.body(body, 'ResourcePatch') + else: + body_content = None + 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) + 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('Datastore', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/datastores/{datastoreName}'} # type: ignore + + def _delete_initial( + self, + resource_group_name, # type: str + datastore_name, # type: str + force=None, # type: Optional[bool] + **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 = "2020-10-01-preview" + 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'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'datastoreName': self._serialize.url("datastore_name", datastore_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') + if force is not None: + query_parameters['force'] = self._serialize.query("force", force, 'bool') + + # 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/datastores/{datastoreName}'} # type: ignore + + def begin_delete( + self, + resource_group_name, # type: str + datastore_name, # type: str + force=None, # type: Optional[bool] + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Deletes an datastore. + + Implements datastore DELETE method. + + :param resource_group_name: The Resource Group Name. + :type resource_group_name: str + :param datastore_name: Name of the datastore. + :type datastore_name: str + :param force: Whether force delete was specified. + :type force: bool + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + 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, + datastore_name=datastore_name, + force=force, + 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'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'datastoreName': self._serialize.url("datastore_name", datastore_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.ConnectedVMwarevSphere/datastores/{datastoreName}'} # type: ignore + + def list( + self, + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.DatastoresList"] + """Implements GET datastores in a subscription. + + List of datastores in a subscription. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either DatastoresList or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure_arc_vmware_management_service_api.models.DatastoresList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.DatastoresList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + 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'), + } + 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('DatastoresList', 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]: + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedVMwarevSphere/datastores'} # type: ignore + + def list_by_resource_group( + self, + resource_group_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.DatastoresList"] + """Implements GET datastores in a resource group. + + List of datastores in a resource group. + + :param resource_group_name: The Resource Group Name. + :type resource_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either DatastoresList or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure_arc_vmware_management_service_api.models.DatastoresList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.DatastoresList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + 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_by_resource_group.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_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('DatastoresList', 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]: + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/datastores'} # type: ignore diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_guest_agent_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_guest_agent_operations.py index fd8d819c93..8713262a33 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_guest_agent_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_guest_agent_operations.py @@ -134,8 +134,8 @@ def begin_create( :type body: ~azure_arc_vmware_management_service_api.models.GuestAgent :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 GuestAgent or the result of cls(response) @@ -324,8 +324,8 @@ def begin_delete( :type 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/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_hosts_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_hosts_operations.py new file mode 100644 index 0000000000..5478f162d7 --- /dev/null +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_hosts_operations.py @@ -0,0 +1,583 @@ +# 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 HostsOperations(object): + """HostsOperations 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: ~azure_arc_vmware_management_service_api.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 _create_initial( + self, + resource_group_name, # type: str + host_name, # type: str + body=None, # type: Optional["_models.Host"] + **kwargs # type: Any + ): + # type: (...) -> "_models.Host" + cls = kwargs.pop('cls', None) # type: ClsType["_models.Host"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'hostName': self._serialize.url("host_name", host_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 body is not None: + body_content = self._serialize.body(body, 'Host') + else: + body_content = None + 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('Host', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('Host', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/hosts/{hostName}'} # type: ignore + + def begin_create( + self, + resource_group_name, # type: str + host_name, # type: str + body=None, # type: Optional["_models.Host"] + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.Host"] + """Implements host PUT method. + + Create Or Update host. + + :param resource_group_name: The Resource Group Name. + :type resource_group_name: str + :param host_name: Name of the host. + :type host_name: str + :param body: Request payload. + :type body: ~azure_arc_vmware_management_service_api.models.Host + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either Host or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure_arc_vmware_management_service_api.models.Host] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.Host"] + 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_initial( + resource_group_name=resource_group_name, + host_name=host_name, + body=body, + 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('Host', 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'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'hostName': self._serialize.url("host_name", host_name, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, 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.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/hosts/{hostName}'} # type: ignore + + def get( + self, + resource_group_name, # type: str + host_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.Host" + """Gets a host. + + Implements host GET method. + + :param resource_group_name: The Resource Group Name. + :type resource_group_name: str + :param host_name: Name of the host. + :type host_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Host, or the result of cls(response) + :rtype: ~azure_arc_vmware_management_service_api.models.Host + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.Host"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + 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'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'hostName': self._serialize.url("host_name", host_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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('Host', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/hosts/{hostName}'} # type: ignore + + def update( + self, + resource_group_name, # type: str + host_name, # type: str + body=None, # type: Optional["_models.ResourcePatch"] + **kwargs # type: Any + ): + # type: (...) -> "_models.Host" + """Updates a host. + + API to update certain properties of the host resource. + + :param resource_group_name: The Resource Group Name. + :type resource_group_name: str + :param host_name: Name of the host. + :type host_name: str + :param body: Resource properties to update. + :type body: ~azure_arc_vmware_management_service_api.models.ResourcePatch + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Host, or the result of cls(response) + :rtype: ~azure_arc_vmware_management_service_api.models.Host + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.Host"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.update.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'hostName': self._serialize.url("host_name", host_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 body is not None: + body_content = self._serialize.body(body, 'ResourcePatch') + else: + body_content = None + 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) + 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('Host', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/hosts/{hostName}'} # type: ignore + + def _delete_initial( + self, + resource_group_name, # type: str + host_name, # type: str + force=None, # type: Optional[bool] + **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 = "2020-10-01-preview" + 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'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'hostName': self._serialize.url("host_name", host_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') + if force is not None: + query_parameters['force'] = self._serialize.query("force", force, 'bool') + + # 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/hosts/{hostName}'} # type: ignore + + def begin_delete( + self, + resource_group_name, # type: str + host_name, # type: str + force=None, # type: Optional[bool] + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Deletes an host. + + Implements host DELETE method. + + :param resource_group_name: The Resource Group Name. + :type resource_group_name: str + :param host_name: Name of the host. + :type host_name: str + :param force: Whether force delete was specified. + :type force: bool + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + 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, + host_name=host_name, + force=force, + 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'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'hostName': self._serialize.url("host_name", host_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.ConnectedVMwarevSphere/hosts/{hostName}'} # type: ignore + + def list( + self, + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.HostsList"] + """Implements GET hosts in a subscription. + + List of hosts in a subscription. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either HostsList or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure_arc_vmware_management_service_api.models.HostsList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.HostsList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + 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'), + } + 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('HostsList', 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]: + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedVMwarevSphere/hosts'} # type: ignore + + def list_by_resource_group( + self, + resource_group_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.HostsList"] + """Implements GET hosts in a resource group. + + List of hosts in a resource group. + + :param resource_group_name: The Resource Group Name. + :type resource_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either HostsList or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure_arc_vmware_management_service_api.models.HostsList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.HostsList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + 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_by_resource_group.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_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('HostsList', 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]: + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/hosts'} # type: ignore diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_machine_extensions_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_machine_extensions_operations.py index 6810f01e93..bb73535132 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_machine_extensions_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_machine_extensions_operations.py @@ -55,8 +55,8 @@ def _create_or_update_initial( extension_parameters, # type: "_models.MachineExtension" **kwargs # type: Any ): - # type: (...) -> Optional["_models.MachineExtension"] - cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.MachineExtension"]] + # type: (...) -> "_models.MachineExtension" + cls = kwargs.pop('cls', None) # type: ClsType["_models.MachineExtension"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -96,10 +96,12 @@ def _create_or_update_initial( error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = None if response.status_code == 200: deserialized = self._deserialize('MachineExtension', pipeline_response) + if response.status_code == 201: + deserialized = self._deserialize('MachineExtension', pipeline_response) + if cls: return cls(pipeline_response, deserialized, {}) @@ -127,8 +129,8 @@ def begin_create_or_update( :type extension_parameters: ~azure_arc_vmware_management_service_api.models.MachineExtension :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 MachineExtension or the result of cls(response) @@ -191,8 +193,8 @@ def _update_initial( extension_parameters, # type: "_models.MachineExtensionUpdate" **kwargs # type: Any ): - # type: (...) -> Optional["_models.MachineExtension"] - cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.MachineExtension"]] + # type: (...) -> "_models.MachineExtension" + cls = kwargs.pop('cls', None) # type: ClsType["_models.MachineExtension"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -232,10 +234,12 @@ def _update_initial( error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = None if response.status_code == 200: deserialized = self._deserialize('MachineExtension', pipeline_response) + if response.status_code == 201: + deserialized = self._deserialize('MachineExtension', pipeline_response) + if cls: return cls(pipeline_response, deserialized, {}) @@ -263,8 +267,8 @@ def begin_update( :type extension_parameters: ~azure_arc_vmware_management_service_api.models.MachineExtensionUpdate :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 MachineExtension or the result of cls(response) @@ -385,8 +389,8 @@ def begin_delete( :type extension_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/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_resource_pools_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_resource_pools_operations.py index c3b1e0a4ba..0578f17286 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_resource_pools_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_resource_pools_operations.py @@ -129,8 +129,8 @@ def begin_create( :type body: ~azure_arc_vmware_management_service_api.models.ResourcePool :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 ResourcePool or the result of cls(response) @@ -387,8 +387,8 @@ def begin_delete( :type force: bool :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/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_vcenters_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_vcenters_operations.py index 3f859d4149..33b7db50a9 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_vcenters_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_vcenters_operations.py @@ -129,8 +129,8 @@ def begin_create( :type body: ~azure_arc_vmware_management_service_api.models.VCenter :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 VCenter or the result of cls(response) @@ -387,8 +387,8 @@ def begin_delete( :type force: bool :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/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_virtual_machine_templates_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_virtual_machine_templates_operations.py index a5fcfb44aa..e5ba84d0fe 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_virtual_machine_templates_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_virtual_machine_templates_operations.py @@ -129,8 +129,8 @@ def begin_create( :type body: ~azure_arc_vmware_management_service_api.models.VirtualMachineTemplate :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 VirtualMachineTemplate or the result of cls(response) @@ -387,8 +387,8 @@ def begin_delete( :type force: bool :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/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_virtual_machines_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_virtual_machines_operations.py index 8099a83bf0..e55ae66f64 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_virtual_machines_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_virtual_machines_operations.py @@ -129,8 +129,8 @@ def begin_create( :type body: ~azure_arc_vmware_management_service_api.models.VirtualMachine :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 VirtualMachine or the result of cls(response) @@ -327,8 +327,8 @@ def begin_update( :type body: ~azure_arc_vmware_management_service_api.models.VirtualMachineUpdate :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 VirtualMachine or the result of cls(response) @@ -450,8 +450,8 @@ def begin_delete( :type force: bool :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) @@ -576,8 +576,8 @@ def begin_stop( :type body: ~azure_arc_vmware_management_service_api.models.StopVirtualMachineOptions :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) @@ -690,8 +690,8 @@ def begin_start( :type virtual_machine_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) @@ -803,8 +803,8 @@ def begin_restart( :type virtual_machine_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/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_virtual_networks_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_virtual_networks_operations.py index d72e1811a7..cfff5dc516 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_virtual_networks_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_virtual_networks_operations.py @@ -129,8 +129,8 @@ def begin_create( :type body: ~azure_arc_vmware_management_service_api.models.VirtualNetwork :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 VirtualNetwork or the result of cls(response) @@ -387,8 +387,8 @@ def begin_delete( :type force: bool :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/connectedvmware/azext_connectedvmware/vmware_constants.py b/src/connectedvmware/azext_connectedvmware/vmware_constants.py index 541ee99ac2..027dc25af5 100644 --- a/src/connectedvmware/azext_connectedvmware/vmware_constants.py +++ b/src/connectedvmware/azext_connectedvmware/vmware_constants.py @@ -4,21 +4,28 @@ # -------------------------------------------------------------------------------------------- VMWARE_NAMESPACE = "Microsoft.ConnectedVmwarevSphere" -VCENTER_RESOURCE_TYPE = "VCenters" -RESOURCEPOOL_RESOURCE_TYPE = "resourcepools" -VMTEMPLATE_RESOURCE_TYPE = "virtualmachinetemplates" -VIRTUALNETWORK_RESOURCE_TYPE = "virtualnetworks" - -DEFAULT_VCENTER_PORT = 443 +VCENTER_RESOURCE_TYPE = "vcenters" +RESOURCEPOOL_RESOURCE_TYPE = "resourcePools" +CLUSTER_RESOURCE_TYPE = "clusters" +DATASTORE_RESOURCE_TYPE = "datastores" +HOST_RESOURCE_TYPE = "hosts" +VMTEMPLATE_RESOURCE_TYPE = "virtualmachineTemplates" +VIRTUALNETWORK_RESOURCE_TYPE = "virtualNetworks" +VIRTUALMACHINE_RESOURCE_TYPE = "virtualMachines" EXTENDED_LOCATION_NAMESPACE = "Microsoft.ExtendedLocation" CUSTOM_LOCATION_RESOURCE_TYPE = "CustomLocations" EXTENDED_LOCATION_TYPE = "CustomLocation" INVENTORY_ITEM_TYPE = "InventoryItems" +DEFAULT_GUEST_AGENT_NAME = "default" +VM_SYSTEM_ASSIGNED_INDENTITY_TYPE = "SystemAssigned" +GUEST_AGENT_PROVISIONING_ACTION_INSTALL = "install" NAME_PARAMETER = "name" DEVICE_KEY = "device-key" +DEFAULT_VCENTER_PORT = 443 + # Nic parameters. NETWORK = "network" NIC_TYPE = "nic-type" diff --git a/src/connectedvmware/azext_connectedvmware/vmware_utils.py b/src/connectedvmware/azext_connectedvmware/vmware_utils.py index f19ed831d9..f690eac2aa 100644 --- a/src/connectedvmware/azext_connectedvmware/vmware_utils.py +++ b/src/connectedvmware/azext_connectedvmware/vmware_utils.py @@ -22,9 +22,9 @@ def get_resource_id( """ if not is_valid_resource_id(resource): - resource_ids = None + _resource_id = None if child_type_1 and child_name_1: - resource_ids = resource_id( + _resource_id = resource_id( subscription=get_subscription_id(cmd.cli_ctx), resource_group=resource_group_name, namespace=provider_name_space, @@ -34,7 +34,7 @@ def get_resource_id( child_name_1=child_name_1, ) else: - resource_ids = resource_id( + _resource_id = resource_id( subscription=get_subscription_id(cmd.cli_ctx), resource_group=resource_group_name, namespace=provider_name_space, @@ -43,9 +43,9 @@ def get_resource_id( ) else: - resource_ids = resource + _resource_id = resource - return resource_ids + return _resource_id def create_dictionary_from_arg_string(values, option_string=None): diff --git a/src/connectedvmware/setup.py b/src/connectedvmware/setup.py index 55055993cc..df2b8698ff 100644 --- a/src/connectedvmware/setup.py +++ b/src/connectedvmware/setup.py @@ -18,7 +18,7 @@ # TODO: Confirm this is the right version number you want and it matches your # HISTORY.rst entry. -VERSION = '0.1.0' +VERSION = '0.1.2' # The full list of classifiers is available at # https://pypi.python.org/pypi?%3Aaction=list_classifiers @@ -35,7 +35,7 @@ ] # TODO: Add any additional SDK dependencies here -DEPENDENCIES = ['azure-cli-core'] +DEPENDENCIES = [] with open('README.rst', 'r', encoding='utf-8') as f: README = f.read() diff --git a/src/service_name.json b/src/service_name.json index 6243faee83..b3da68d67f 100644 --- a/src/service_name.json +++ b/src/service_name.json @@ -431,8 +431,8 @@ }, { "Command": "az connectedvmware", - "AzureServiceName": "Azure Arc", - "URL": "" + "AzureServiceName": "Azure Arc for PrivateClouds", + "URL": "https://github.com/Azure/azure-arc-enabled-vmware-vsphere-preview/blob/main/docs/overview.md" }, { "Command": "az dataprotection",