diff --git a/src/connectedvmware/HISTORY.rst b/src/connectedvmware/HISTORY.rst index 7aa9608c696..ab574e9735b 100644 --- a/src/connectedvmware/HISTORY.rst +++ b/src/connectedvmware/HISTORY.rst @@ -3,6 +3,11 @@ Release History =============== +0.1.9 +++++++ +* Update API Version from 2020-10-01-preview to 2022-01-10-preview. +* Support for VM delete in retain mode. + 0.1.8 ++++++ * Displaying asterisks (*****) for password input. diff --git a/src/connectedvmware/azext_connectedvmware/_actions.py b/src/connectedvmware/azext_connectedvmware/_actions.py index e0a57401703..d7cb34f62c4 100644 --- a/src/connectedvmware/azext_connectedvmware/_actions.py +++ b/src/connectedvmware/azext_connectedvmware/_actions.py @@ -10,8 +10,8 @@ import argparse from collections import defaultdict -from azext_connectedvmware.vmware_utils import create_dictionary_from_arg_string from azure.cli.core.azclierror import InvalidArgumentValueError +from azext_connectedvmware.vmware_utils import create_dictionary_from_arg_string class VmNicAddAction(argparse._AppendAction): diff --git a/src/connectedvmware/azext_connectedvmware/_params.py b/src/connectedvmware/azext_connectedvmware/_params.py index 9bafc12070d..3a2caa56d27 100644 --- a/src/connectedvmware/azext_connectedvmware/_params.py +++ b/src/connectedvmware/azext_connectedvmware/_params.py @@ -200,6 +200,11 @@ def load_arguments(self, _): with self.argument_context('connectedvmware vm delete') as c: c.argument('force', action='store_true', help="Whether force delete or not.") + c.argument( + 'retain', + action='store_true', + help='Disable the VM from azure; delete the ARM resource but retain the VM in VMware.', + ) with self.argument_context('connectedvmware vm stop') as c: c.argument( diff --git a/src/connectedvmware/azext_connectedvmware/custom.py b/src/connectedvmware/azext_connectedvmware/custom.py index cc3d27596d5..cf0b0f865c0 100644 --- a/src/connectedvmware/azext_connectedvmware/custom.py +++ b/src/connectedvmware/azext_connectedvmware/custom.py @@ -7,8 +7,8 @@ from pwinput import pwinput from knack.util import CLIError -from azext_connectedvmware.vmware_utils import get_resource_id from azure.cli.core.util import sdk_no_wait +from azext_connectedvmware.vmware_utils import get_resource_id from .vmware_constants import ( VMWARE_NAMESPACE, VCENTER_RESOURCE_TYPE, @@ -975,11 +975,12 @@ def delete_vm( resource_group_name, resource_name, force=False, + retain=None, no_wait=False, ): return sdk_no_wait( - no_wait, client.begin_delete, resource_group_name, resource_name, force + no_wait, client.begin_delete, resource_group_name, resource_name, force, retain, ) 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 37744160a22..e10d9b5f418 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.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/vcenters/azcli-test-vc?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/vcenters/azcli-test-vc?api-version=2022-01-10-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/vcenters/azcli-test-vc","name":"azcli-test-vc","type":"microsoft.connectedvmwarevsphere/vcenters","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/azcli-test-rg/providers/microsoft.extendedlocation/customlocations/azcli-test-cl"},"tags":{},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-06-09T14:07:02.7602325Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-09T14:07:02.7602325Z"},"properties":{"credentials":{"username":"arcvmware"},"fqdn":"idclab-vcen67.fareast.corp.microsoft.com","port":443,"provisioningState":"Succeeded","uuid":"41d6a083-5efe-4299-aa91-2888093ce30b","statuses":[{"status":"True","type":"Connected","lastUpdatedAt":"2022-06-09T14:07:28Z"},{"status":"True","type":"Ready","lastUpdatedAt":"2022-06-09T14:07:33.3173839Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-06-09T14:07:33.3173839Z"}],"customResourceName":"41d6a083-5efe-4299-aa91-2888093ce30b","version":"6.7.0","instanceUuid":"db73f8f2-624c-4a0f-905b-8c6f34442cbc","connectionStatus":"Connected"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/vcenters/azcli-test-vc","name":"azcli-test-vc","type":"microsoft.connectedvmwarevsphere/vcenters","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/azcli-test-rg/providers/microsoft.extendedlocation/customlocations/azcli-test-cl"},"tags":{},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-06-09T14:07:02.7602325Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2022-11-21T13:05:11.6763009Z"},"properties":{"credentials":{"username":"arcuser"},"uuid":"41d6a083-5efe-4299-aa91-2888093ce30b","fqdn":"idclab-vcen67.fareast.corp.microsoft.com","port":443,"version":"6.7.0","instanceUuid":"db73f8f2-624c-4a0f-905b-8c6f34442cbc","customResourceName":"41d6a083-5efe-4299-aa91-2888093ce30b","connectionStatus":"Connected","provisioningState":"Succeeded","statuses":[{"status":"True","type":"Connected","lastUpdatedAt":"2022-11-21T13:03:50Z"},{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-20T06:39:26.4957001Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-20T06:39:26.4957001Z"}]}}' headers: cache-control: - no-cache content-length: - - '1319' + - '1337' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:19:08 GMT + - Wed, 23 Nov 2022 10:38:26 GMT etag: - - '"9c008ddd-0000-0100-0000-62a1fea50000"' + - '"3500479e-0000-0100-0000-637b77870000"' expires: - '-1' pragma: @@ -61,21 +61,21 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) 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/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/vcenters?api-version=2022-01-10-preview response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/vcenters/azcli-test-vc","name":"azcli-test-vc","type":"microsoft.connectedvmwarevsphere/vcenters","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/azcli-test-rg/providers/microsoft.extendedlocation/customlocations/azcli-test-cl"},"tags":{},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-06-09T14:07:02.7602325Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-09T14:07:02.7602325Z"},"properties":{"credentials":{"username":"arcvmware"},"fqdn":"idclab-vcen67.fareast.corp.microsoft.com","port":443,"provisioningState":"Succeeded","uuid":"41d6a083-5efe-4299-aa91-2888093ce30b","statuses":[{"status":"True","type":"Connected","lastUpdatedAt":"2022-06-09T14:07:28Z"},{"status":"True","type":"Ready","lastUpdatedAt":"2022-06-09T14:07:33.3173839Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-06-09T14:07:33.3173839Z"}],"customResourceName":"41d6a083-5efe-4299-aa91-2888093ce30b","version":"6.7.0","instanceUuid":"db73f8f2-624c-4a0f-905b-8c6f34442cbc","connectionStatus":"Connected"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/vcenters/azcli-test-vc","name":"azcli-test-vc","type":"microsoft.connectedvmwarevsphere/vcenters","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/azcli-test-rg/providers/microsoft.extendedlocation/customlocations/azcli-test-cl"},"tags":{},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-06-09T14:07:02.7602325Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2022-11-21T13:05:11.6763009Z"},"properties":{"credentials":{"username":"arcuser"},"uuid":"41d6a083-5efe-4299-aa91-2888093ce30b","fqdn":"idclab-vcen67.fareast.corp.microsoft.com","port":443,"version":"6.7.0","instanceUuid":"db73f8f2-624c-4a0f-905b-8c6f34442cbc","customResourceName":"41d6a083-5efe-4299-aa91-2888093ce30b","connectionStatus":"Connected","provisioningState":"Succeeded","statuses":[{"status":"True","type":"Connected","lastUpdatedAt":"2022-11-21T13:03:50Z"},{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-20T06:39:26.4957001Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-20T06:39:26.4957001Z"}]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/microsoft.connectedvmwarevsphere/vcenters/azcli-test-vc3","name":"azcli-test-vc3","type":"microsoft.connectedvmwarevsphere/vcenters","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl3"},"tags":{},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-10-04T09:06:06.6806239Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2022-11-21T12:02:00.8897914Z"},"properties":{"credentials":{"username":"arcvmware"},"fqdn":"idclab-vcen67.fareast.corp.microsoft.com","port":443,"provisioningState":"Succeeded","uuid":"f8341f8d-7f2e-458c-91db-1b071a33e257","statuses":[{"status":"True","type":"Connected","lastUpdatedAt":"2022-11-21T12:01:21Z"},{"status":"True","type":"Ready","lastUpdatedAt":"2022-10-04T09:07:04.6046743Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-10-04T09:07:04.6046743Z"}],"customResourceName":"f8341f8d-7f2e-458c-91db-1b071a33e257","version":"6.7.0","instanceUuid":"db73f8f2-624c-4a0f-905b-8c6f34442cbc","connectionStatus":"Connected"}}]}' headers: cache-control: - no-cache content-length: - - '1331' + - '2692' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:19:12 GMT + - Wed, 23 Nov 2022 10:38:29 GMT expires: - '-1' pragma: @@ -87,10 +87,13 @@ interactions: x-content-type-options: - nosniff x-ms-original-request-ids: - - 0ebd4e29-ab54-499a-954f-4e55af4aa991 - - bdcb17b0-399d-4c77-b183-0c5e963f7be8 - - 5aa7e6e4-d5fd-49aa-815e-892b01ceaaed - - 7981e847-e866-4f1b-9371-35a91e50b73f + - ebb2fbd5-a34f-4685-a67e-944f4716c29e + - d84f7e5f-4e59-4cc3-8cfd-31e8c9072af4 + - 7e1ced85-c475-4103-a2ec-7d667c02adf8 + - 3cf1a5ad-545b-4e67-8018-882675716bcf + - 2ef841a4-3092-4e20-b5ab-ec8c12014507 + - d4638bb0-097f-46bf-9ad7-c35844df89b6 + - 1ed9244b-6422-416c-800f-e8337a7b0bba status: code: 200 message: OK @@ -114,31 +117,31 @@ interactions: ParameterSetName: - -g -l --custom-location --vcenter -i --name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) 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/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/azcli-test-resource-pool?api-version=2022-01-10-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":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-06-14T15:19:20.8175406Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-14T15:19:20.8175406Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/resgroup-724471","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","provisioningState":"Accepted"}}' + 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":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"snaskar@microsoft.com","createdByType":"User","createdAt":"2022-11-23T03:15:12.7023157Z","lastModifiedBy":"snaskar@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T10:38:32.0549905Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/resgroup-724471","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","uuid":"71b82483-b8d9-41e1-af89-51b4bffb8113","moRefId":"resgroup-724471","moName":"azcli-test-rp","customResourceName":"71b82483-b8d9-41e1-af89-51b4bffb8113","cpuSharesLevel":"normal","cpuLimitMHz":-1,"memSharesLevel":"normal","memLimitMB":-1,"provisioningState":"Accepted","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-23T03:16:22.643203Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-23T03:16:22.643203Z"}]}}' headers: api-supported-versions: - - 2020-10-01-preview, 2022-01-10-preview + - 2020-10-01-preview, 2022-01-10-preview, 2022-07-15-preview azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/383770d1-6277-4ad4-9169-2749dead7dd9*E33D395D76158BAF7C5815D334D05A902D2A49219B7EE04A2C06FA58A8E43EFC?api-version=2020-10-01-preview + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/e0c43d53-c20b-4fe5-9977-aecf67e0e6d4*E33D395D76158BAF7C5815D334D05A902D2A49219B7EE04A2C06FA58A8E43EFC?api-version=2022-01-10-preview cache-control: - no-cache content-length: - - '1126' + - '1536' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:19:24 GMT + - Wed, 23 Nov 2022 10:38:33 GMT etag: - - '"bb04c57a-0000-0100-0000-62a8a6fb0000"' + - '"d100ee99-0000-0100-0000-637df8290000"' 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/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/azcli-test-resource-pool pragma: - no-cache strict-transport-security: @@ -166,58 +169,12 @@ interactions: ParameterSetName: - -g -l --custom-location --vcenter -i --name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/383770d1-6277-4ad4-9169-2749dead7dd9*E33D395D76158BAF7C5815D334D05A902D2A49219B7EE04A2C06FA58A8E43EFC?api-version=2020-10-01-preview + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/e0c43d53-c20b-4fe5-9977-aecf67e0e6d4*E33D395D76158BAF7C5815D334D05A902D2A49219B7EE04A2C06FA58A8E43EFC?api-version=2022-01-10-preview response: body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/383770d1-6277-4ad4-9169-2749dead7dd9*E33D395D76158BAF7C5815D334D05A902D2A49219B7EE04A2C06FA58A8E43EFC","name":"383770d1-6277-4ad4-9169-2749dead7dd9*E33D395D76158BAF7C5815D334D05A902D2A49219B7EE04A2C06FA58A8E43EFC","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/azcli-test-resource-pool","status":"Accepted","startTime":"2022-06-14T15:19:23.2815445Z"}' - headers: - cache-control: - - no-cache - content-length: - - '541' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 14 Jun 2022 15:19:39 GMT - etag: - - '"8f0066d7-0000-0100-0000-62a8a6fb0000"' - 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 resource-pool create - Connection: - - keep-alive - ParameterSetName: - - -g -l --custom-location --vcenter -i --name - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/383770d1-6277-4ad4-9169-2749dead7dd9*E33D395D76158BAF7C5815D334D05A902D2A49219B7EE04A2C06FA58A8E43EFC?api-version=2020-10-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/383770d1-6277-4ad4-9169-2749dead7dd9*E33D395D76158BAF7C5815D334D05A902D2A49219B7EE04A2C06FA58A8E43EFC","name":"383770d1-6277-4ad4-9169-2749dead7dd9*E33D395D76158BAF7C5815D334D05A902D2A49219B7EE04A2C06FA58A8E43EFC","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/azcli-test-resource-pool","status":"Succeeded","startTime":"2022-06-14T15:19:23.2815445Z","endTime":"2022-06-14T15:19:42.6650009Z","properties":null}' + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/e0c43d53-c20b-4fe5-9977-aecf67e0e6d4*E33D395D76158BAF7C5815D334D05A902D2A49219B7EE04A2C06FA58A8E43EFC","name":"e0c43d53-c20b-4fe5-9977-aecf67e0e6d4*E33D395D76158BAF7C5815D334D05A902D2A49219B7EE04A2C06FA58A8E43EFC","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/azcli-test-resource-pool","status":"Succeeded","startTime":"2022-11-23T10:38:33.1891903Z","endTime":"2022-11-23T10:38:48.8675587Z","properties":null}' headers: cache-control: - no-cache @@ -226,9 +183,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:20:10 GMT + - Wed, 23 Nov 2022 10:39:03 GMT etag: - - '"8f00acd7-0000-0100-0000-62a8a70e0000"' + - '"7e0195a8-0000-0100-0000-637df8380000"' expires: - '-1' pragma: @@ -258,23 +215,23 @@ interactions: ParameterSetName: - -g -l --custom-location --vcenter -i --name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) 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/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/azcli-test-resource-pool?api-version=2022-01-10-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":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-06-14T15:19:20.8175406Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-14T15:19:20.8175406Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/resgroup-724471","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","provisioningState":"Succeeded","uuid":"be8d9f62-b9fd-4de8-bc2f-82014e0457a8","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-06-14T15:19:42.4304469Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-06-14T15:19:42.4304469Z"}],"moRefId":"resgroup-724471","customResourceName":"be8d9f62-b9fd-4de8-bc2f-82014e0457a8","moName":"azcli-test-rp","cpuSharesLevel":"normal","cpuLimitMHz":-1,"memSharesLevel":"normal","memLimitMB":-1}}' + 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":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"snaskar@microsoft.com","createdByType":"User","createdAt":"2022-11-23T03:15:12.7023157Z","lastModifiedBy":"snaskar@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T10:38:32.0549905Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/resgroup-724471","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","uuid":"71b82483-b8d9-41e1-af89-51b4bffb8113","moRefId":"resgroup-724471","moName":"azcli-test-rp","customResourceName":"71b82483-b8d9-41e1-af89-51b4bffb8113","cpuSharesLevel":"normal","cpuLimitMHz":-1,"memSharesLevel":"normal","memLimitMB":-1,"provisioningState":"Succeeded","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-23T10:38:48.4909028Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-23T10:38:48.4909028Z"}]}}' headers: cache-control: - no-cache content-length: - - '1543' + - '1539' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:20:11 GMT + - Wed, 23 Nov 2022 10:39:03 GMT etag: - - '"bb04ce7a-0000-0100-0000-62a8a70e0000"' + - '"d100fc99-0000-0100-0000-637df8380000"' expires: - '-1' pragma: @@ -306,23 +263,23 @@ interactions: ParameterSetName: - -g --name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) 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/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/azcli-test-resource-pool?api-version=2022-01-10-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":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-06-14T15:19:20.8175406Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-14T15:19:20.8175406Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/resgroup-724471","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","provisioningState":"Succeeded","uuid":"be8d9f62-b9fd-4de8-bc2f-82014e0457a8","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-06-14T15:19:42.4304469Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-06-14T15:19:42.4304469Z"}],"moRefId":"resgroup-724471","customResourceName":"be8d9f62-b9fd-4de8-bc2f-82014e0457a8","moName":"azcli-test-rp","cpuSharesLevel":"normal","cpuLimitMHz":-1,"memSharesLevel":"normal","memLimitMB":-1}}' + 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":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"snaskar@microsoft.com","createdByType":"User","createdAt":"2022-11-23T03:15:12.7023157Z","lastModifiedBy":"snaskar@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T10:38:32.0549905Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/resgroup-724471","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","uuid":"71b82483-b8d9-41e1-af89-51b4bffb8113","moRefId":"resgroup-724471","moName":"azcli-test-rp","customResourceName":"71b82483-b8d9-41e1-af89-51b4bffb8113","cpuSharesLevel":"normal","cpuLimitMHz":-1,"memSharesLevel":"normal","memLimitMB":-1,"provisioningState":"Succeeded","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-23T10:38:48.4909028Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-23T10:38:48.4909028Z"}]}}' headers: cache-control: - no-cache content-length: - - '1543' + - '1539' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:20:11 GMT + - Wed, 23 Nov 2022 10:39:06 GMT etag: - - '"bb04ce7a-0000-0100-0000-62a8a70e0000"' + - '"d100fc99-0000-0100-0000-637df8380000"' expires: - '-1' pragma: @@ -354,21 +311,21 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) 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/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/resourcePools?api-version=2022-01-10-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":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-06-14T15:19:20.8175406Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-14T15:19:20.8175406Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/resgroup-724471","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","provisioningState":"Succeeded","uuid":"be8d9f62-b9fd-4de8-bc2f-82014e0457a8","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-06-14T15:19:42.4304469Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-06-14T15:19:42.4304469Z"}],"moRefId":"resgroup-724471","customResourceName":"be8d9f62-b9fd-4de8-bc2f-82014e0457a8","moName":"azcli-test-rp","cpuSharesLevel":"normal","cpuLimitMHz":-1,"memSharesLevel":"normal","memLimitMB":-1}}]}' + 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":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"snaskar@microsoft.com","createdByType":"User","createdAt":"2022-11-23T03:15:12.7023157Z","lastModifiedBy":"snaskar@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T10:38:32.0549905Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/resgroup-724471","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","uuid":"71b82483-b8d9-41e1-af89-51b4bffb8113","moRefId":"resgroup-724471","moName":"azcli-test-rp","customResourceName":"71b82483-b8d9-41e1-af89-51b4bffb8113","cpuSharesLevel":"normal","cpuLimitMHz":-1,"memSharesLevel":"normal","memLimitMB":-1,"provisioningState":"Succeeded","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-23T10:38:48.4909028Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-23T10:38:48.4909028Z"}]}}]}' headers: cache-control: - no-cache content-length: - - '1555' + - '1551' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:20:15 GMT + - Wed, 23 Nov 2022 10:39:08 GMT expires: - '-1' pragma: @@ -380,10 +337,13 @@ interactions: x-content-type-options: - nosniff x-ms-original-request-ids: - - ff9a0fe0-5f8e-4277-9e17-a20a25de39c7 - - fd3189e9-9d68-4e55-ad13-83e186416285 - - 7cc9c9a9-45a0-4002-b39c-94e49d5dc46f - - c951d9be-6987-43ba-9b69-b66d060e6979 + - bea8d4d5-dee9-484a-99d9-335e54d1bf0c + - 24a8eb59-a0ed-4f59-bc2a-27b09250ecc4 + - a31420b1-fca5-4954-ae0c-9ca223d44e07 + - d7cf406e-b1cd-409a-9c1c-3b5d05e3b4ed + - c9d578f0-0074-490d-b407-7b523223eace + - c29846f2-644f-4942-bd6f-a1dfc01b5de4 + - 6daea541-bd66-44fc-852f-507fd7f41d39 status: code: 200 message: OK @@ -407,31 +367,31 @@ interactions: ParameterSetName: - -g -l --custom-location --vcenter -i --name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/clusters/azcli-test-cluster?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/clusters/azcli-test-cluster?api-version=2022-01-10-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/clusters/azcli-test-cluster","name":"azcli-test-cluster","type":"microsoft.connectedvmwarevsphere/clusters","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-06-14T15:20:22.8843089Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-14T15:20:22.8843089Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/domain-c649660","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","provisioningState":"Accepted"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/clusters/azcli-test-cluster","name":"azcli-test-cluster","type":"microsoft.connectedvmwarevsphere/clusters","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"snaskar@microsoft.com","createdByType":"User","createdAt":"2022-11-23T03:17:29.3216663Z","lastModifiedBy":"snaskar@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T10:39:10.4150848Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/domain-c649660","datastoreIds":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/Datastores/azcli-test-datastore"],"networkIds":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network"],"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","uuid":"e8f03411-d884-4dc6-9a68-67dbde614cfc","customResourceName":"e8f03411-d884-4dc6-9a68-67dbde614cfc","moRefId":"domain-c649660","moName":"Cluster1","provisioningState":"Accepted","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-23T03:17:49.3636139Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-23T03:17:49.3636139Z"}]}}' headers: api-supported-versions: - - 2020-10-01-preview, 2022-01-10-preview + - 2020-10-01-preview, 2022-01-10-preview, 2022-07-15-preview azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/c4ab0b23-5d92-42b2-88b5-60edf44fa00e*BA7D5BCC10B0E3C8353A43CFDD3238340013F133409368F1AB6C672583FED47E?api-version=2020-10-01-preview + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/69e530af-ebf9-4558-b612-6e1fbef62cc6*BA7D5BCC10B0E3C8353A43CFDD3238340013F133409368F1AB6C672583FED47E?api-version=2022-01-10-preview cache-control: - no-cache content-length: - - '1103' + - '1783' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:20:27 GMT + - Wed, 23 Nov 2022 10:39:11 GMT etag: - - '"4504c1f5-0000-0100-0000-62a8a73a0000"' + - '"210255a1-0000-0100-0000-637df8500000"' expires: - '-1' location: - - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/Clusters/azcli-test-cluster + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/clusters/azcli-test-cluster pragma: - no-cache strict-transport-security: @@ -459,23 +419,23 @@ interactions: ParameterSetName: - -g -l --custom-location --vcenter -i --name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/c4ab0b23-5d92-42b2-88b5-60edf44fa00e*BA7D5BCC10B0E3C8353A43CFDD3238340013F133409368F1AB6C672583FED47E?api-version=2020-10-01-preview + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/69e530af-ebf9-4558-b612-6e1fbef62cc6*BA7D5BCC10B0E3C8353A43CFDD3238340013F133409368F1AB6C672583FED47E?api-version=2022-01-10-preview response: body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/c4ab0b23-5d92-42b2-88b5-60edf44fa00e*BA7D5BCC10B0E3C8353A43CFDD3238340013F133409368F1AB6C672583FED47E","name":"c4ab0b23-5d92-42b2-88b5-60edf44fa00e*BA7D5BCC10B0E3C8353A43CFDD3238340013F133409368F1AB6C672583FED47E","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/clusters/azcli-test-cluster","status":"Succeeded","startTime":"2022-06-14T15:20:26.403933Z","endTime":"2022-06-14T15:20:42.8637057Z","properties":null}' + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/69e530af-ebf9-4558-b612-6e1fbef62cc6*BA7D5BCC10B0E3C8353A43CFDD3238340013F133409368F1AB6C672583FED47E","name":"69e530af-ebf9-4558-b612-6e1fbef62cc6*BA7D5BCC10B0E3C8353A43CFDD3238340013F133409368F1AB6C672583FED47E","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/clusters/azcli-test-cluster","status":"Succeeded","startTime":"2022-11-23T10:39:12.1284677Z","endTime":"2022-11-23T10:39:29.2714089Z","properties":null}' headers: cache-control: - no-cache content-length: - - '589' + - '590' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:20:43 GMT + - Wed, 23 Nov 2022 10:39:42 GMT etag: - - '"8f004cd9-0000-0100-0000-62a8a74a0000"' + - '"7e0101a9-0000-0100-0000-637df8610000"' expires: - '-1' pragma: @@ -505,23 +465,23 @@ interactions: ParameterSetName: - -g -l --custom-location --vcenter -i --name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/clusters/azcli-test-cluster?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/clusters/azcli-test-cluster?api-version=2022-01-10-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/clusters/azcli-test-cluster","name":"azcli-test-cluster","type":"microsoft.connectedvmwarevsphere/clusters","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-06-14T15:20:22.8843089Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-14T15:20:22.8843089Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/domain-c649660","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","provisioningState":"Succeeded","uuid":"9248b396-3123-4633-bc48-b3aa16fdae7f","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-06-14T15:20:42.6486752Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-06-14T15:20:42.6486752Z"}],"customResourceName":"9248b396-3123-4633-bc48-b3aa16fdae7f","moRefId":"domain-c649660","datastoreIds":[],"networkIds":[],"moName":"Cluster1"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/clusters/azcli-test-cluster","name":"azcli-test-cluster","type":"microsoft.connectedvmwarevsphere/clusters","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"snaskar@microsoft.com","createdByType":"User","createdAt":"2022-11-23T03:17:29.3216663Z","lastModifiedBy":"snaskar@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T10:39:10.4150848Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/domain-c649660","datastoreIds":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/Datastores/azcli-test-datastore"],"networkIds":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network"],"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","uuid":"e8f03411-d884-4dc6-9a68-67dbde614cfc","customResourceName":"e8f03411-d884-4dc6-9a68-67dbde614cfc","moRefId":"domain-c649660","moName":"Cluster1","provisioningState":"Succeeded","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-23T10:39:28.8883391Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-23T10:39:28.8883391Z"}]}}' headers: cache-control: - no-cache content-length: - - '1463' + - '1784' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:20:44 GMT + - Wed, 23 Nov 2022 10:39:44 GMT etag: - - '"4504d0f7-0000-0100-0000-62a8a74a0000"' + - '"210268a1-0000-0100-0000-637df8610000"' expires: - '-1' pragma: @@ -553,23 +513,23 @@ interactions: ParameterSetName: - -g --name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/clusters/azcli-test-cluster?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/clusters/azcli-test-cluster?api-version=2022-01-10-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/clusters/azcli-test-cluster","name":"azcli-test-cluster","type":"microsoft.connectedvmwarevsphere/clusters","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-06-14T15:20:22.8843089Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-14T15:20:22.8843089Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/domain-c649660","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","provisioningState":"Succeeded","uuid":"9248b396-3123-4633-bc48-b3aa16fdae7f","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-06-14T15:20:42.6486752Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-06-14T15:20:42.6486752Z"}],"customResourceName":"9248b396-3123-4633-bc48-b3aa16fdae7f","moRefId":"domain-c649660","datastoreIds":[],"networkIds":[],"moName":"Cluster1"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/clusters/azcli-test-cluster","name":"azcli-test-cluster","type":"microsoft.connectedvmwarevsphere/clusters","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"snaskar@microsoft.com","createdByType":"User","createdAt":"2022-11-23T03:17:29.3216663Z","lastModifiedBy":"snaskar@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T10:39:10.4150848Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/domain-c649660","datastoreIds":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/Datastores/azcli-test-datastore"],"networkIds":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network"],"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","uuid":"e8f03411-d884-4dc6-9a68-67dbde614cfc","customResourceName":"e8f03411-d884-4dc6-9a68-67dbde614cfc","moRefId":"domain-c649660","moName":"Cluster1","provisioningState":"Succeeded","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-23T10:39:28.8883391Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-23T10:39:28.8883391Z"}]}}' headers: cache-control: - no-cache content-length: - - '1463' + - '1784' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:20:48 GMT + - Wed, 23 Nov 2022 10:39:45 GMT etag: - - '"4504d0f7-0000-0100-0000-62a8a74a0000"' + - '"210268a1-0000-0100-0000-637df8610000"' expires: - '-1' pragma: @@ -601,21 +561,21 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/clusters?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/clusters?api-version=2022-01-10-preview response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/clusters/azcli-test-cluster","name":"azcli-test-cluster","type":"microsoft.connectedvmwarevsphere/clusters","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-06-14T15:20:22.8843089Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-14T15:20:22.8843089Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/domain-c649660","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","provisioningState":"Succeeded","uuid":"9248b396-3123-4633-bc48-b3aa16fdae7f","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-06-14T15:20:42.6486752Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-06-14T15:20:42.6486752Z"}],"customResourceName":"9248b396-3123-4633-bc48-b3aa16fdae7f","moRefId":"domain-c649660","datastoreIds":[],"networkIds":[],"moName":"Cluster1"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/clusters/azcli-test-cluster","name":"azcli-test-cluster","type":"microsoft.connectedvmwarevsphere/clusters","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"snaskar@microsoft.com","createdByType":"User","createdAt":"2022-11-23T03:17:29.3216663Z","lastModifiedBy":"snaskar@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T10:39:10.4150848Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/domain-c649660","datastoreIds":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/Datastores/azcli-test-datastore"],"networkIds":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network"],"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","uuid":"e8f03411-d884-4dc6-9a68-67dbde614cfc","customResourceName":"e8f03411-d884-4dc6-9a68-67dbde614cfc","moRefId":"domain-c649660","moName":"Cluster1","provisioningState":"Succeeded","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-23T10:39:28.8883391Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-23T10:39:28.8883391Z"}]}}]}' headers: cache-control: - no-cache content-length: - - '1475' + - '1796' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:20:51 GMT + - Wed, 23 Nov 2022 10:39:46 GMT expires: - '-1' pragma: @@ -627,10 +587,13 @@ interactions: x-content-type-options: - nosniff x-ms-original-request-ids: - - 420ce1b0-3a15-4215-a1dd-e203792ee059 - - bf4a44bc-4ffa-4299-a5b7-4ebf74e1b8c3 - - 1788cff2-0ef3-498a-8ad4-a45c65dafed3 - - 967917f8-dcf0-4c7d-b27d-5aa83fe81213 + - dec13cf5-9db6-4e41-abb0-e2f27deff44c + - 44709614-30d3-45e7-a6ce-7513976b16ca + - 3c15e99f-fbeb-4556-b6e6-54306ed75025 + - 1b3c52f4-a36b-42f9-8b78-90a3147bc96f + - d2656f2e-6d3b-4b86-b052-21ba8472017d + - b4f6af1f-4a47-4320-b859-8b9613affc29 + - 9ac43ae2-0f9d-4da8-8a41-49dc1d52ce94 status: code: 200 message: OK @@ -654,31 +617,32 @@ interactions: ParameterSetName: - -g -l --custom-location --vcenter -i --name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/datastores/azcli-test-datastore?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/datastores/azcli-test-datastore?api-version=2022-01-10-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/datastores/azcli-test-datastore","name":"azcli-test-datastore","type":"microsoft.connectedvmwarevsphere/datastores","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-06-14T15:21:00.478007Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-14T15:21:00.478007Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/datastore-563660","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","provisioningState":"Accepted"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/datastores/azcli-test-datastore","name":"azcli-test-datastore","type":"microsoft.connectedvmwarevsphere/datastores","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"snaskar@microsoft.com","createdByType":"User","createdAt":"2022-11-23T03:18:12.7087316Z","lastModifiedBy":"snaskar@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T10:39:50.0642765Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/datastore-563660","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","uuid":"0d17773a-2885-4b85-9856-25fbf9924386","customResourceName":"0d17773a-2885-4b85-9856-25fbf9924386","moRefId":"datastore-563660","moName":"Shared + 15TB","provisioningState":"Accepted","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-23T03:18:24.99137Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-23T03:18:24.99137Z"}]}}' headers: api-supported-versions: - - 2020-10-01-preview, 2022-01-10-preview + - 2020-10-01-preview, 2022-01-10-preview, 2022-07-15-preview azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/390500f4-4228-4281-a479-8a84e6c99fc2*0BA3195A388F8E68B2BCA768784A2C477B581CF3750C51FB69057C6907EB9D70?api-version=2020-10-01-preview + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/fc3b90e9-4512-478f-aa48-780625b437e0*0BA3195A388F8E68B2BCA768784A2C477B581CF3750C51FB69057C6907EB9D70?api-version=2022-01-10-preview cache-control: - no-cache content-length: - - '1111' + - '1435' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:21:04 GMT + - Wed, 23 Nov 2022 10:39:51 GMT etag: - - '"1000b953-0000-0100-0000-62a8a75f0000"' + - '"0501a30b-0000-0100-0000-637df8780000"' expires: - '-1' location: - - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/Datastores/azcli-test-datastore + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/datastores/azcli-test-datastore pragma: - no-cache strict-transport-security: @@ -706,12 +670,12 @@ interactions: ParameterSetName: - -g -l --custom-location --vcenter -i --name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/390500f4-4228-4281-a479-8a84e6c99fc2*0BA3195A388F8E68B2BCA768784A2C477B581CF3750C51FB69057C6907EB9D70?api-version=2020-10-01-preview + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/fc3b90e9-4512-478f-aa48-780625b437e0*0BA3195A388F8E68B2BCA768784A2C477B581CF3750C51FB69057C6907EB9D70?api-version=2022-01-10-preview response: body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/390500f4-4228-4281-a479-8a84e6c99fc2*0BA3195A388F8E68B2BCA768784A2C477B581CF3750C51FB69057C6907EB9D70","name":"390500f4-4228-4281-a479-8a84e6c99fc2*0BA3195A388F8E68B2BCA768784A2C477B581CF3750C51FB69057C6907EB9D70","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/datastores/azcli-test-datastore","status":"Succeeded","startTime":"2022-06-14T15:21:03.3798315Z","endTime":"2022-06-14T15:21:15.5493336Z","properties":null}' + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/fc3b90e9-4512-478f-aa48-780625b437e0*0BA3195A388F8E68B2BCA768784A2C477B581CF3750C51FB69057C6907EB9D70","name":"fc3b90e9-4512-478f-aa48-780625b437e0*0BA3195A388F8E68B2BCA768784A2C477B581CF3750C51FB69057C6907EB9D70","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/datastores/azcli-test-datastore","status":"Succeeded","startTime":"2022-11-23T10:39:52.0368833Z","endTime":"2022-11-23T10:40:11.4140576Z","properties":null}' headers: cache-control: - no-cache @@ -720,9 +684,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:21:20 GMT + - Wed, 23 Nov 2022 10:40:21 GMT etag: - - '"8f00d4d9-0000-0100-0000-62a8a76b0000"' + - '"7e016ea9-0000-0100-0000-637df88b0000"' expires: - '-1' pragma: @@ -752,24 +716,24 @@ interactions: ParameterSetName: - -g -l --custom-location --vcenter -i --name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/datastores/azcli-test-datastore?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/datastores/azcli-test-datastore?api-version=2022-01-10-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/datastores/azcli-test-datastore","name":"azcli-test-datastore","type":"microsoft.connectedvmwarevsphere/datastores","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-06-14T15:21:00.478007Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-14T15:21:00.478007Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/datastore-563660","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","provisioningState":"Succeeded","uuid":"d41045f4-7b79-4229-8581-ffb2045ac4e6","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-06-14T15:21:15.3047349Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-06-14T15:21:15.3047349Z"}],"customResourceName":"d41045f4-7b79-4229-8581-ffb2045ac4e6","moRefId":"datastore-563660","moName":"Shared - 15TB"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/datastores/azcli-test-datastore","name":"azcli-test-datastore","type":"microsoft.connectedvmwarevsphere/datastores","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"snaskar@microsoft.com","createdByType":"User","createdAt":"2022-11-23T03:18:12.7087316Z","lastModifiedBy":"snaskar@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T10:39:50.0642765Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/datastore-563660","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","uuid":"0d17773a-2885-4b85-9856-25fbf9924386","customResourceName":"0d17773a-2885-4b85-9856-25fbf9924386","moRefId":"datastore-563660","moName":"Shared + 15TB","provisioningState":"Succeeded","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-23T10:40:11.0931875Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-23T10:40:11.0931875Z"}]}}' headers: cache-control: - no-cache content-length: - - '1442' + - '1440' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:21:21 GMT + - Wed, 23 Nov 2022 10:40:22 GMT etag: - - '"1000ca53-0000-0100-0000-62a8a76b0000"' + - '"0501dc0b-0000-0100-0000-637df88b0000"' expires: - '-1' pragma: @@ -801,24 +765,24 @@ interactions: ParameterSetName: - -g --name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/datastores/azcli-test-datastore?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/datastores/azcli-test-datastore?api-version=2022-01-10-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/datastores/azcli-test-datastore","name":"azcli-test-datastore","type":"microsoft.connectedvmwarevsphere/datastores","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-06-14T15:21:00.478007Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-14T15:21:00.478007Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/datastore-563660","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","provisioningState":"Succeeded","uuid":"d41045f4-7b79-4229-8581-ffb2045ac4e6","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-06-14T15:21:15.3047349Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-06-14T15:21:15.3047349Z"}],"customResourceName":"d41045f4-7b79-4229-8581-ffb2045ac4e6","moRefId":"datastore-563660","moName":"Shared - 15TB"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/datastores/azcli-test-datastore","name":"azcli-test-datastore","type":"microsoft.connectedvmwarevsphere/datastores","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"snaskar@microsoft.com","createdByType":"User","createdAt":"2022-11-23T03:18:12.7087316Z","lastModifiedBy":"snaskar@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T10:39:50.0642765Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/datastore-563660","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","uuid":"0d17773a-2885-4b85-9856-25fbf9924386","customResourceName":"0d17773a-2885-4b85-9856-25fbf9924386","moRefId":"datastore-563660","moName":"Shared + 15TB","provisioningState":"Succeeded","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-23T10:40:11.0931875Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-23T10:40:11.0931875Z"}]}}' headers: cache-control: - no-cache content-length: - - '1442' + - '1440' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:21:25 GMT + - Wed, 23 Nov 2022 10:40:25 GMT etag: - - '"1000ca53-0000-0100-0000-62a8a76b0000"' + - '"0501dc0b-0000-0100-0000-637df88b0000"' expires: - '-1' pragma: @@ -850,22 +814,22 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/datastores?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/datastores?api-version=2022-01-10-preview response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/datastores/azcli-test-datastore","name":"azcli-test-datastore","type":"microsoft.connectedvmwarevsphere/datastores","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-06-14T15:21:00.478007Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-14T15:21:00.478007Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/datastore-563660","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","provisioningState":"Succeeded","uuid":"d41045f4-7b79-4229-8581-ffb2045ac4e6","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-06-14T15:21:15.3047349Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-06-14T15:21:15.3047349Z"}],"customResourceName":"d41045f4-7b79-4229-8581-ffb2045ac4e6","moRefId":"datastore-563660","moName":"Shared - 15TB"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/datastores/azcli-test-datastore","name":"azcli-test-datastore","type":"microsoft.connectedvmwarevsphere/datastores","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"snaskar@microsoft.com","createdByType":"User","createdAt":"2022-11-23T03:18:12.7087316Z","lastModifiedBy":"snaskar@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T10:39:50.0642765Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/datastore-563660","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","uuid":"0d17773a-2885-4b85-9856-25fbf9924386","customResourceName":"0d17773a-2885-4b85-9856-25fbf9924386","moRefId":"datastore-563660","moName":"Shared + 15TB","provisioningState":"Succeeded","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-23T10:40:11.0931875Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-23T10:40:11.0931875Z"}]}}]}' headers: cache-control: - no-cache content-length: - - '1454' + - '1452' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:21:27 GMT + - Wed, 23 Nov 2022 10:40:26 GMT expires: - '-1' pragma: @@ -877,10 +841,13 @@ interactions: x-content-type-options: - nosniff x-ms-original-request-ids: - - fa94e65a-c207-42a9-be6a-2f79c9062bd7 - - cec61edc-1134-4e17-b9d2-9f534361d844 - - 749d2c0d-a0cf-469d-a881-b5dd9340a04e - - 533ca426-81e4-49a0-b817-562eb7a956a4 + - c8c616bb-c6b3-49d5-aabb-0c1109daafd8 + - 7db48697-2380-422f-82db-4872e85b7eee + - 8d508a14-fcf3-4592-8276-a39b3aa6f539 + - 3480f1c3-e959-48b4-8f23-e4ee649978c6 + - 6cd7e336-32f2-4086-992e-a75fb0a08026 + - 6854d6bf-d624-4546-97e4-4a64503acc01 + - 9f4487e1-87b1-465d-9044-d308e9d08c81 status: code: 200 message: OK @@ -904,31 +871,31 @@ interactions: ParameterSetName: - -g -l --custom-location --vcenter -i --name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/hosts/azcli-test-host?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/hosts/azcli-test-host?api-version=2022-01-10-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/hosts/azcli-test-host","name":"azcli-test-host","type":"microsoft.connectedvmwarevsphere/hosts","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-06-14T15:21:38.471214Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-14T15:21:38.471214Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/host-713902","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","provisioningState":"Accepted"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/hosts/azcli-test-host","name":"azcli-test-host","type":"microsoft.connectedvmwarevsphere/hosts","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"snaskar@microsoft.com","createdByType":"User","createdAt":"2022-11-23T03:18:51.7926224Z","lastModifiedBy":"snaskar@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T10:40:27.8953891Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/host-713902","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","uuid":"ce6467fc-77f4-458f-b746-17399aa7b1a2","customResourceName":"ce6467fc-77f4-458f-b746-17399aa7b1a2","moRefId":"host-713902","moName":"10.150.172.144","provisioningState":"Accepted","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-23T03:19:05.7309497Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-23T03:19:05.7309497Z"}]}}' headers: api-supported-versions: - - 2020-10-01-preview, 2022-01-10-preview + - 2020-10-01-preview, 2022-01-10-preview, 2022-07-15-preview azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/50435c78-cc33-4dfb-871b-d0c9096af75e*B55A001CADA037E0E2ED8E056C839E3102437398BD45444965294749D0CB7C3C?api-version=2020-10-01-preview + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/391ebbc6-f1dc-44d7-88f9-dddf1743a785*B55A001CADA037E0E2ED8E056C839E3102437398BD45444965294749D0CB7C3C?api-version=2022-01-10-preview cache-control: - no-cache content-length: - - '1086' + - '1412' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:21:43 GMT + - Wed, 23 Nov 2022 10:40:29 GMT etag: - - '"2d01c0e4-0000-0100-0000-62a8a7860000"' + - '"1900ef1d-0000-0100-0000-637df89d0000"' expires: - '-1' location: - - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/Hosts/azcli-test-host + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/hosts/azcli-test-host pragma: - no-cache strict-transport-security: @@ -938,7 +905,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -956,23 +923,23 @@ interactions: ParameterSetName: - -g -l --custom-location --vcenter -i --name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/50435c78-cc33-4dfb-871b-d0c9096af75e*B55A001CADA037E0E2ED8E056C839E3102437398BD45444965294749D0CB7C3C?api-version=2020-10-01-preview + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/391ebbc6-f1dc-44d7-88f9-dddf1743a785*B55A001CADA037E0E2ED8E056C839E3102437398BD45444965294749D0CB7C3C?api-version=2022-01-10-preview response: body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/50435c78-cc33-4dfb-871b-d0c9096af75e*B55A001CADA037E0E2ED8E056C839E3102437398BD45444965294749D0CB7C3C","name":"50435c78-cc33-4dfb-871b-d0c9096af75e*B55A001CADA037E0E2ED8E056C839E3102437398BD45444965294749D0CB7C3C","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/hosts/azcli-test-host","status":"Succeeded","startTime":"2022-06-14T15:21:41.8393902Z","endTime":"2022-06-14T15:21:58.105492Z","properties":null}' + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/391ebbc6-f1dc-44d7-88f9-dddf1743a785*B55A001CADA037E0E2ED8E056C839E3102437398BD45444965294749D0CB7C3C","name":"391ebbc6-f1dc-44d7-88f9-dddf1743a785*B55A001CADA037E0E2ED8E056C839E3102437398BD45444965294749D0CB7C3C","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/hosts/azcli-test-host","status":"Succeeded","startTime":"2022-11-23T10:40:29.6099123Z","endTime":"2022-11-23T10:40:37.9885265Z","properties":null}' headers: cache-control: - no-cache content-length: - - '583' + - '584' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:21:58 GMT + - Wed, 23 Nov 2022 10:40:59 GMT etag: - - '"8f0066da-0000-0100-0000-62a8a7960000"' + - '"7e01dea9-0000-0100-0000-637df8a50000"' expires: - '-1' pragma: @@ -1002,23 +969,23 @@ interactions: ParameterSetName: - -g -l --custom-location --vcenter -i --name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/hosts/azcli-test-host?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/hosts/azcli-test-host?api-version=2022-01-10-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/hosts/azcli-test-host","name":"azcli-test-host","type":"microsoft.connectedvmwarevsphere/hosts","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-06-14T15:21:38.471214Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-14T15:21:38.471214Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/host-713902","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","provisioningState":"Succeeded","uuid":"c3b57dd9-3680-4610-a1ea-e2c0c29eabe2","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-06-14T15:21:57.8831747Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-06-14T15:21:57.8831747Z"}],"customResourceName":"c3b57dd9-3680-4610-a1ea-e2c0c29eabe2","moRefId":"host-713902","moName":"10.150.172.144"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/hosts/azcli-test-host","name":"azcli-test-host","type":"microsoft.connectedvmwarevsphere/hosts","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"snaskar@microsoft.com","createdByType":"User","createdAt":"2022-11-23T03:18:51.7926224Z","lastModifiedBy":"snaskar@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T10:40:27.8953891Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/host-713902","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","uuid":"ce6467fc-77f4-458f-b746-17399aa7b1a2","customResourceName":"ce6467fc-77f4-458f-b746-17399aa7b1a2","moRefId":"host-713902","moName":"10.150.172.144","provisioningState":"Succeeded","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-23T10:40:37.5597491Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-23T10:40:37.5597491Z"}]}}' headers: cache-control: - no-cache content-length: - - '1415' + - '1413' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:21:59 GMT + - Wed, 23 Nov 2022 10:41:00 GMT etag: - - '"2d01c8e4-0000-0100-0000-62a8a7960000"' + - '"1900fa1d-0000-0100-0000-637df8a60000"' expires: - '-1' pragma: @@ -1050,23 +1017,23 @@ interactions: ParameterSetName: - -g --name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/hosts/azcli-test-host?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/hosts/azcli-test-host?api-version=2022-01-10-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/hosts/azcli-test-host","name":"azcli-test-host","type":"microsoft.connectedvmwarevsphere/hosts","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-06-14T15:21:38.471214Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-14T15:21:38.471214Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/host-713902","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","provisioningState":"Succeeded","uuid":"c3b57dd9-3680-4610-a1ea-e2c0c29eabe2","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-06-14T15:21:57.8831747Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-06-14T15:21:57.8831747Z"}],"customResourceName":"c3b57dd9-3680-4610-a1ea-e2c0c29eabe2","moRefId":"host-713902","moName":"10.150.172.144"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/hosts/azcli-test-host","name":"azcli-test-host","type":"microsoft.connectedvmwarevsphere/hosts","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"snaskar@microsoft.com","createdByType":"User","createdAt":"2022-11-23T03:18:51.7926224Z","lastModifiedBy":"snaskar@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T10:40:27.8953891Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/host-713902","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","uuid":"ce6467fc-77f4-458f-b746-17399aa7b1a2","customResourceName":"ce6467fc-77f4-458f-b746-17399aa7b1a2","moRefId":"host-713902","moName":"10.150.172.144","provisioningState":"Succeeded","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-23T10:40:37.5597491Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-23T10:40:37.5597491Z"}]}}' headers: cache-control: - no-cache content-length: - - '1415' + - '1413' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:22:02 GMT + - Wed, 23 Nov 2022 10:41:01 GMT etag: - - '"2d01c8e4-0000-0100-0000-62a8a7960000"' + - '"1900fa1d-0000-0100-0000-637df8a60000"' expires: - '-1' pragma: @@ -1098,21 +1065,21 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/hosts?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/hosts?api-version=2022-01-10-preview response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/hosts/azcli-test-host","name":"azcli-test-host","type":"microsoft.connectedvmwarevsphere/hosts","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-06-14T15:21:38.471214Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-14T15:21:38.471214Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/host-713902","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","provisioningState":"Succeeded","uuid":"c3b57dd9-3680-4610-a1ea-e2c0c29eabe2","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-06-14T15:21:57.8831747Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-06-14T15:21:57.8831747Z"}],"customResourceName":"c3b57dd9-3680-4610-a1ea-e2c0c29eabe2","moRefId":"host-713902","moName":"10.150.172.144"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/hosts/azcli-test-host","name":"azcli-test-host","type":"microsoft.connectedvmwarevsphere/hosts","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"snaskar@microsoft.com","createdByType":"User","createdAt":"2022-11-23T03:18:51.7926224Z","lastModifiedBy":"snaskar@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T10:40:27.8953891Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/host-713902","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","uuid":"ce6467fc-77f4-458f-b746-17399aa7b1a2","customResourceName":"ce6467fc-77f4-458f-b746-17399aa7b1a2","moRefId":"host-713902","moName":"10.150.172.144","provisioningState":"Succeeded","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-23T10:40:37.5597491Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-23T10:40:37.5597491Z"}]}}]}' headers: cache-control: - no-cache content-length: - - '1427' + - '1425' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:22:03 GMT + - Wed, 23 Nov 2022 10:41:01 GMT expires: - '-1' pragma: @@ -1124,10 +1091,13 @@ interactions: x-content-type-options: - nosniff x-ms-original-request-ids: - - 5191800e-efbe-4afe-b853-e803618afec0 - - a094a4f1-a3ed-4581-ac1c-c4bf2b43789e - - b9deb521-1ac8-4dd3-a5d6-438d496e5269 - - 4d616591-1c5d-436b-bef4-3e7b745df7ad + - 9649470a-bed1-42bb-9d68-6e47bcae0bd1 + - 6a426145-ae23-405f-b104-d11fa0ac351d + - 1de81534-eb1d-4b22-8cf1-34c6bdc6f8ef + - 8c0c46b8-216e-42e2-8e60-c262b254d553 + - c28ce1c8-d603-430c-b8c2-dde8af5edf4d + - 44feabc6-e33e-4c97-8403-413a2b495094 + - 384f2d5b-d869-4e83-b992-930be21c9ff4 status: code: 200 message: OK @@ -1151,31 +1121,32 @@ interactions: ParameterSetName: - -g -l --custom-location --vcenter -i --name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) 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/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks/azcli-test-virtual-network?api-version=2022-01-10-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":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-06-14T15:22:08.7063684Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-14T15:22:08.7063684Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/network-563661","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","provisioningState":"Accepted"}}' + 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":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"snaskar@microsoft.com","createdByType":"User","createdAt":"2022-11-23T03:19:29.3745628Z","lastModifiedBy":"snaskar@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T10:41:03.0548968Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/network-563661","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","uuid":"93a64e07-3525-4bf0-a75e-11ed25fa4f0d","customResourceName":"93a64e07-3525-4bf0-a75e-11ed25fa4f0d","moRefId":"network-563661","moName":"VM + Network","provisioningState":"Accepted","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-23T03:19:49.0386369Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-23T03:19:49.0386369Z"}]}}' headers: api-supported-versions: - - 2020-10-01-preview, 2022-01-10-preview + - 2020-10-01-preview, 2022-01-10-preview, 2022-07-15-preview azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/96d01d67-3690-43c9-af5e-a0e03bc48b09*CB0A480FE4EF7C13EBE7E6D61E1DABA694436AED00BC4B639CBD00E8ACDF3866?api-version=2020-10-01-preview + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/9305ea3b-f703-4703-8c3d-7e5cb084bdce*CB0A480FE4EF7C13EBE7E6D61E1DABA694436AED00BC4B639CBD00E8ACDF3866?api-version=2022-01-10-preview cache-control: - no-cache content-length: - - '1133' + - '1456' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:22:11 GMT + - Wed, 23 Nov 2022 10:41:05 GMT etag: - - '"260190e8-0000-0100-0000-62a8a7a20000"' + - '"35010e71-0000-0100-0000-637df8c10000"' 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/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks/azcli-test-virtual-network pragma: - no-cache strict-transport-security: @@ -1203,12 +1174,12 @@ interactions: ParameterSetName: - -g -l --custom-location --vcenter -i --name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/96d01d67-3690-43c9-af5e-a0e03bc48b09*CB0A480FE4EF7C13EBE7E6D61E1DABA694436AED00BC4B639CBD00E8ACDF3866?api-version=2020-10-01-preview + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/9305ea3b-f703-4703-8c3d-7e5cb084bdce*CB0A480FE4EF7C13EBE7E6D61E1DABA694436AED00BC4B639CBD00E8ACDF3866?api-version=2022-01-10-preview response: body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/96d01d67-3690-43c9-af5e-a0e03bc48b09*CB0A480FE4EF7C13EBE7E6D61E1DABA694436AED00BC4B639CBD00E8ACDF3866","name":"96d01d67-3690-43c9-af5e-a0e03bc48b09*CB0A480FE4EF7C13EBE7E6D61E1DABA694436AED00BC4B639CBD00E8ACDF3866","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks/azcli-test-virtual-network","status":"Succeeded","startTime":"2022-06-14T15:22:10.6031487Z","endTime":"2022-06-14T15:22:19.8709802Z","properties":null}' + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/9305ea3b-f703-4703-8c3d-7e5cb084bdce*CB0A480FE4EF7C13EBE7E6D61E1DABA694436AED00BC4B639CBD00E8ACDF3866","name":"9305ea3b-f703-4703-8c3d-7e5cb084bdce*CB0A480FE4EF7C13EBE7E6D61E1DABA694436AED00BC4B639CBD00E8ACDF3866","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks/azcli-test-virtual-network","status":"Succeeded","startTime":"2022-11-23T10:41:04.8439195Z","endTime":"2022-11-23T10:41:13.2688552Z","properties":null}' headers: cache-control: - no-cache @@ -1217,9 +1188,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:22:27 GMT + - Wed, 23 Nov 2022 10:41:35 GMT etag: - - '"8f00bbda-0000-0100-0000-62a8a7ab0000"' + - '"7e01a2aa-0000-0100-0000-637df8c90000"' expires: - '-1' pragma: @@ -1249,24 +1220,24 @@ interactions: ParameterSetName: - -g -l --custom-location --vcenter -i --name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) 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/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks/azcli-test-virtual-network?api-version=2022-01-10-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":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-06-14T15:22:08.7063684Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-14T15:22:08.7063684Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/network-563661","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","provisioningState":"Succeeded","uuid":"8f12491f-0651-41e6-93f7-2ae75a426387","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-06-14T15:22:19.6182013Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-06-14T15:22:19.6182013Z"}],"customResourceName":"8f12491f-0651-41e6-93f7-2ae75a426387","moRefId":"network-563661","moName":"VM - Network"}}' + 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":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"snaskar@microsoft.com","createdByType":"User","createdAt":"2022-11-23T03:19:29.3745628Z","lastModifiedBy":"snaskar@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T10:41:03.0548968Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/network-563661","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","uuid":"93a64e07-3525-4bf0-a75e-11ed25fa4f0d","customResourceName":"93a64e07-3525-4bf0-a75e-11ed25fa4f0d","moRefId":"network-563661","moName":"VM + Network","provisioningState":"Succeeded","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-23T10:41:12.991432Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-23T10:41:12.991432Z"}]}}' headers: cache-control: - no-cache content-length: - - '1461' + - '1455' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:22:28 GMT + - Wed, 23 Nov 2022 10:41:35 GMT etag: - - '"2601bce8-0000-0100-0000-62a8a7ab0000"' + - '"35018271-0000-0100-0000-637df8c90000"' expires: - '-1' pragma: @@ -1298,24 +1269,24 @@ interactions: ParameterSetName: - -g --name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) 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/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks/azcli-test-virtual-network?api-version=2022-01-10-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":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-06-14T15:22:08.7063684Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-14T15:22:08.7063684Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/network-563661","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","provisioningState":"Succeeded","uuid":"8f12491f-0651-41e6-93f7-2ae75a426387","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-06-14T15:22:19.6182013Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-06-14T15:22:19.6182013Z"}],"customResourceName":"8f12491f-0651-41e6-93f7-2ae75a426387","moRefId":"network-563661","moName":"VM - Network"}}' + 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":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"snaskar@microsoft.com","createdByType":"User","createdAt":"2022-11-23T03:19:29.3745628Z","lastModifiedBy":"snaskar@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T10:41:03.0548968Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/network-563661","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","uuid":"93a64e07-3525-4bf0-a75e-11ed25fa4f0d","customResourceName":"93a64e07-3525-4bf0-a75e-11ed25fa4f0d","moRefId":"network-563661","moName":"VM + Network","provisioningState":"Succeeded","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-23T10:41:12.991432Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-23T10:41:12.991432Z"}]}}' headers: cache-control: - no-cache content-length: - - '1461' + - '1455' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:22:30 GMT + - Wed, 23 Nov 2022 10:41:36 GMT etag: - - '"2601bce8-0000-0100-0000-62a8a7ab0000"' + - '"35018271-0000-0100-0000-637df8c90000"' expires: - '-1' pragma: @@ -1347,22 +1318,22 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) 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/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks?api-version=2022-01-10-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":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-06-14T15:22:08.7063684Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-14T15:22:08.7063684Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/network-563661","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","provisioningState":"Succeeded","uuid":"8f12491f-0651-41e6-93f7-2ae75a426387","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-06-14T15:22:19.6182013Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-06-14T15:22:19.6182013Z"}],"customResourceName":"8f12491f-0651-41e6-93f7-2ae75a426387","moRefId":"network-563661","moName":"VM - Network"}}]}' + 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":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"snaskar@microsoft.com","createdByType":"User","createdAt":"2022-11-23T03:19:29.3745628Z","lastModifiedBy":"snaskar@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T10:41:03.0548968Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/network-563661","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","uuid":"93a64e07-3525-4bf0-a75e-11ed25fa4f0d","customResourceName":"93a64e07-3525-4bf0-a75e-11ed25fa4f0d","moRefId":"network-563661","moName":"VM + Network","provisioningState":"Succeeded","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-23T10:41:12.991432Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-23T10:41:12.991432Z"}]}}]}' headers: cache-control: - no-cache content-length: - - '1473' + - '1467' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:22:32 GMT + - Wed, 23 Nov 2022 10:41:37 GMT expires: - '-1' pragma: @@ -1374,10 +1345,13 @@ interactions: x-content-type-options: - nosniff x-ms-original-request-ids: - - 06c74b1b-921f-412b-aaee-3758a74b58c6 - - 2cb57196-952f-4342-89dd-88b87b68ec10 - - 2e46e73f-7ea6-4b1c-b22b-c7d679217420 - - 40013cea-0126-4dd4-85f5-c1a56a9d0bc1 + - 817275e3-f8b4-4c45-9725-1e3aa59942fa + - eff42748-0e6a-454d-ad1c-bfdc88b0c684 + - 931587aa-54cb-4083-862a-3f5377dffa42 + - c5f47534-1e37-4b6b-907a-8c08b77fa7d2 + - 8cfee765-1315-4254-a265-a6a9781ee3a3 + - 1e4a3bd6-b046-479d-946b-e4f4285bb628 + - 2abf1199-6ad2-4608-a752-8e5aff8a05af status: code: 200 message: OK @@ -1401,31 +1375,35 @@ interactions: ParameterSetName: - -g -l --custom-location --vcenter -i --name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) 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/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/azcli-test-vm-template?api-version=2022-01-10-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":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-06-14T15:22:39.1900036Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-14T15:22:39.1900036Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/vmtpl-vm-651858","provisioningState":"Accepted"}}' + 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":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"snaskar@microsoft.com","createdByType":"User","createdAt":"2022-11-23T03:20:19.4488469Z","lastModifiedBy":"snaskar@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T10:41:38.4610237Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","networkInterfaces":[{"name":"nic_1","label":"Network + adapter 1","macAddress":"00:50:56:95:c7:08","networkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network","networkMoRefId":"network-563661","networkMoName":"VM + Network","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}],"disks":[{"diskObjectId":"1-2000","name":"disk_1","label":"Hard + disk 1","diskSizeGB":10,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0,"diskType":"flat"}],"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/vmtpl-vm-651858","uuid":"1b4e1acb-b5d3-409d-ab5b-4d9449c201c2","customResourceName":"1b4e1acb-b5d3-409d-ab5b-4d9449c201c2","moRefId":"vm-651858","moName":"azurevmwarecloudtestubuntu","memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"osName":"Ubuntu + Linux (64-bit)","folderPath":"ArcPrivateClouds-67/Templates","toolsVersionStatus":"guestToolsSupportedOld","toolsVersion":"10304","provisioningState":"Accepted","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-23T03:20:38.6791291Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-23T03:20:38.6791291Z"}]}}' headers: api-supported-versions: - - 2020-10-01-preview, 2022-01-10-preview + - 2020-10-01-preview, 2022-01-10-preview, 2022-07-15-preview azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/dbfcbe1d-a6d6-48de-9004-9179c661589a*04EA61613559B90D23ED3ECFACDF2E6D1E27A0B3817A66B3F21A8114E2761CF3?api-version=2020-10-01-preview + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/72a0fb60-ab6c-4b5b-98a7-2187e8550bb8*04EA61613559B90D23ED3ECFACDF2E6D1E27A0B3817A66B3F21A8114E2761CF3?api-version=2022-01-10-preview cache-control: - no-cache content-length: - - '1142' + - '2309' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:22:43 GMT + - Wed, 23 Nov 2022 10:41:40 GMT etag: - - '"cc005ec5-0000-0100-0000-62a8a7c20000"' + - '"0b0186eb-0000-0100-0000-637df8e50000"' 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/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/azcli-test-vm-template pragma: - no-cache strict-transport-security: @@ -1435,7 +1413,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -1453,58 +1431,12 @@ interactions: ParameterSetName: - -g -l --custom-location --vcenter -i --name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/dbfcbe1d-a6d6-48de-9004-9179c661589a*04EA61613559B90D23ED3ECFACDF2E6D1E27A0B3817A66B3F21A8114E2761CF3?api-version=2020-10-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/dbfcbe1d-a6d6-48de-9004-9179c661589a*04EA61613559B90D23ED3ECFACDF2E6D1E27A0B3817A66B3F21A8114E2761CF3","name":"dbfcbe1d-a6d6-48de-9004-9179c661589a*04EA61613559B90D23ED3ECFACDF2E6D1E27A0B3817A66B3F21A8114E2761CF3","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/azcli-test-vm-template","status":"Accepted","startTime":"2022-06-14T15:22:41.9604012Z"}' - headers: - cache-control: - - no-cache - content-length: - - '549' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 14 Jun 2022 15:22:58 GMT - etag: - - '"8f0017db-0000-0100-0000-62a8a7c10000"' - 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-template create - Connection: - - keep-alive - ParameterSetName: - - -g -l --custom-location --vcenter -i --name - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/dbfcbe1d-a6d6-48de-9004-9179c661589a*04EA61613559B90D23ED3ECFACDF2E6D1E27A0B3817A66B3F21A8114E2761CF3?api-version=2020-10-01-preview + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/72a0fb60-ab6c-4b5b-98a7-2187e8550bb8*04EA61613559B90D23ED3ECFACDF2E6D1E27A0B3817A66B3F21A8114E2761CF3?api-version=2022-01-10-preview response: body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/dbfcbe1d-a6d6-48de-9004-9179c661589a*04EA61613559B90D23ED3ECFACDF2E6D1E27A0B3817A66B3F21A8114E2761CF3","name":"dbfcbe1d-a6d6-48de-9004-9179c661589a*04EA61613559B90D23ED3ECFACDF2E6D1E27A0B3817A66B3F21A8114E2761CF3","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/azcli-test-vm-template","status":"Succeeded","startTime":"2022-06-14T15:22:41.9604012Z","endTime":"2022-06-14T15:23:00.5179283Z","properties":null}' + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/72a0fb60-ab6c-4b5b-98a7-2187e8550bb8*04EA61613559B90D23ED3ECFACDF2E6D1E27A0B3817A66B3F21A8114E2761CF3","name":"72a0fb60-ab6c-4b5b-98a7-2187e8550bb8*04EA61613559B90D23ED3ECFACDF2E6D1E27A0B3817A66B3F21A8114E2761CF3","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/azcli-test-vm-template","status":"Succeeded","startTime":"2022-11-23T10:41:40.9385411Z","endTime":"2022-11-23T10:41:50.2445442Z","properties":null}' headers: cache-control: - no-cache @@ -1513,9 +1445,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:23:29 GMT + - Wed, 23 Nov 2022 10:42:11 GMT etag: - - '"8f0067db-0000-0100-0000-62a8a7d40000"' + - '"7e0108ab-0000-0100-0000-637df8ee0000"' expires: - '-1' pragma: @@ -1545,27 +1477,27 @@ interactions: ParameterSetName: - -g -l --custom-location --vcenter -i --name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) 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/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/azcli-test-vm-template?api-version=2022-01-10-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":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-06-14T15:22:39.1900036Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-14T15:22:39.1900036Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/vmtpl-vm-651858","provisioningState":"Succeeded","uuid":"77c16c61-5949-46d0-b114-3b1835eabd2e","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-06-14T15:23:00.2817511Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-06-14T15:23:00.2817511Z"}],"customResourceName":"77c16c61-5949-46d0-b114-3b1835eabd2e","moRefId":"vm-651858","networkInterfaces":[{"name":"nic_1","label":"Network + 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":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"snaskar@microsoft.com","createdByType":"User","createdAt":"2022-11-23T03:20:19.4488469Z","lastModifiedBy":"snaskar@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T10:41:38.4610237Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","networkInterfaces":[{"name":"nic_1","label":"Network adapter 1","macAddress":"00:50:56:95:c7:08","networkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network","networkMoRefId":"network-563661","networkMoName":"VM Network","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}],"disks":[{"diskObjectId":"1-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":"ArcPrivateClouds-67/Templates","toolsVersionStatus":"guestToolsSupportedOld","toolsVersion":"10304"}}' + disk 1","diskSizeGB":10,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0,"diskType":"flat"}],"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/vmtpl-vm-651858","uuid":"1b4e1acb-b5d3-409d-ab5b-4d9449c201c2","customResourceName":"1b4e1acb-b5d3-409d-ab5b-4d9449c201c2","moRefId":"vm-651858","moName":"azurevmwarecloudtestubuntu","memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"osName":"Ubuntu + Linux (64-bit)","folderPath":"ArcPrivateClouds-67/Templates","toolsVersionStatus":"guestToolsSupportedOld","toolsVersion":"10304","provisioningState":"Succeeded","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-23T10:41:49.8847049Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-23T10:41:49.8847049Z"}],"osType":"Linux"}}' headers: cache-control: - no-cache content-length: - - '2331' + - '2327' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:23:30 GMT + - Wed, 23 Nov 2022 10:42:12 GMT etag: - - '"cc00a8c5-0000-0100-0000-62a8a7d40000"' + - '"0b0192eb-0000-0100-0000-637df8ee0000"' expires: - '-1' pragma: @@ -1597,27 +1529,27 @@ interactions: ParameterSetName: - -g --name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) 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/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/azcli-test-vm-template?api-version=2022-01-10-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":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-06-14T15:22:39.1900036Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-14T15:22:39.1900036Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/vmtpl-vm-651858","provisioningState":"Succeeded","uuid":"77c16c61-5949-46d0-b114-3b1835eabd2e","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-06-14T15:23:00.2817511Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-06-14T15:23:00.2817511Z"}],"customResourceName":"77c16c61-5949-46d0-b114-3b1835eabd2e","moRefId":"vm-651858","networkInterfaces":[{"name":"nic_1","label":"Network + 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":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"snaskar@microsoft.com","createdByType":"User","createdAt":"2022-11-23T03:20:19.4488469Z","lastModifiedBy":"snaskar@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T10:41:38.4610237Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","networkInterfaces":[{"name":"nic_1","label":"Network adapter 1","macAddress":"00:50:56:95:c7:08","networkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network","networkMoRefId":"network-563661","networkMoName":"VM Network","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}],"disks":[{"diskObjectId":"1-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":"ArcPrivateClouds-67/Templates","toolsVersionStatus":"guestToolsSupportedOld","toolsVersion":"10304"}}' + disk 1","diskSizeGB":10,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0,"diskType":"flat"}],"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/vmtpl-vm-651858","uuid":"1b4e1acb-b5d3-409d-ab5b-4d9449c201c2","customResourceName":"1b4e1acb-b5d3-409d-ab5b-4d9449c201c2","moRefId":"vm-651858","moName":"azurevmwarecloudtestubuntu","memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"osName":"Ubuntu + Linux (64-bit)","folderPath":"ArcPrivateClouds-67/Templates","toolsVersionStatus":"guestToolsSupportedOld","toolsVersion":"10304","provisioningState":"Succeeded","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-23T10:41:49.8847049Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-23T10:41:49.8847049Z"}],"osType":"Linux"}}' headers: cache-control: - no-cache content-length: - - '2331' + - '2327' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:23:32 GMT + - Wed, 23 Nov 2022 10:42:12 GMT etag: - - '"cc00a8c5-0000-0100-0000-62a8a7d40000"' + - '"0b0192eb-0000-0100-0000-637df8ee0000"' expires: - '-1' pragma: @@ -1649,25 +1581,25 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) 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/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates?api-version=2022-01-10-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":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-06-14T15:22:39.1900036Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-14T15:22:39.1900036Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/vmtpl-vm-651858","provisioningState":"Succeeded","uuid":"77c16c61-5949-46d0-b114-3b1835eabd2e","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-06-14T15:23:00.2817511Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-06-14T15:23:00.2817511Z"}],"customResourceName":"77c16c61-5949-46d0-b114-3b1835eabd2e","moRefId":"vm-651858","networkInterfaces":[{"name":"nic_1","label":"Network + 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":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"snaskar@microsoft.com","createdByType":"User","createdAt":"2022-11-23T03:20:19.4488469Z","lastModifiedBy":"snaskar@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T10:41:38.4610237Z"},"properties":{"vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","networkInterfaces":[{"name":"nic_1","label":"Network adapter 1","macAddress":"00:50:56:95:c7:08","networkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network","networkMoRefId":"network-563661","networkMoName":"VM Network","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}],"disks":[{"diskObjectId":"1-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":"ArcPrivateClouds-67/Templates","toolsVersionStatus":"guestToolsSupportedOld","toolsVersion":"10304"}}]}' + disk 1","diskSizeGB":10,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0,"diskType":"flat"}],"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/vmtpl-vm-651858","uuid":"1b4e1acb-b5d3-409d-ab5b-4d9449c201c2","customResourceName":"1b4e1acb-b5d3-409d-ab5b-4d9449c201c2","moRefId":"vm-651858","moName":"azurevmwarecloudtestubuntu","memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"osName":"Ubuntu + Linux (64-bit)","folderPath":"ArcPrivateClouds-67/Templates","toolsVersionStatus":"guestToolsSupportedOld","toolsVersion":"10304","provisioningState":"Succeeded","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-23T10:41:49.8847049Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-23T10:41:49.8847049Z"}],"osType":"Linux"}}]}' headers: cache-control: - no-cache content-length: - - '2343' + - '2339' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:23:34 GMT + - Wed, 23 Nov 2022 10:42:13 GMT expires: - '-1' pragma: @@ -1679,10 +1611,13 @@ interactions: x-content-type-options: - nosniff x-ms-original-request-ids: - - 7b439f3f-e9b1-41b6-8dba-0601963877f2 - - 95883c2e-6110-4974-8706-05611a35e511 - - 9a5a9803-0b92-4ee1-b3ff-5d5d347f61cf - - 87f16f2b-db38-473e-980c-1c973bc4a942 + - b96ce395-3d98-4d61-b6f8-bd0c4e7cb771 + - 76bec894-0e63-46b8-b29a-1334c3a4b9bd + - dabab350-ce2d-449b-8735-9cdb113900d8 + - 3881e2e6-6c0b-4d3e-a0cd-a5c003fed52d + - f7deea39-7f24-4863-92bd-e19582734daf + - 5e4b5f3f-bd12-493b-af27-df74f313b9fa + - f68e0942-b683-4735-8485-825b56b7048e status: code: 200 message: OK @@ -1700,12 +1635,12 @@ interactions: ParameterSetName: - -g --vcenter --i User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/vcenters/azcli-test-vc/inventoryItems/resgroup-724471?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/vcenters/azcli-test-vc/inventoryItems/resgroup-724471?api-version=2022-01-10-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/azcli-test-vc/InventoryItems/resgroup-724471","name":"resgroup-724471","type":"microsoft.connectedvmwarevsphere/vcenters/inventoryitems","kind":"ResourcePool","systemData":{"createdBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","createdByType":"Application","createdAt":"2022-06-09T14:08:15.5811607Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2022-06-14T15:19:37.6462196Z"},"properties":{"parent":{"moName":"Resources","inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/azcli-test-vc/InventoryItems/resgroup-649661"},"inventoryType":"ResourcePool","managedResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/ResourcePools/azcli-test-resource-pool","moRefId":"resgroup-724471","moName":"azcli-test-rp","provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/azcli-test-vc/InventoryItems/resgroup-724471","name":"resgroup-724471","type":"microsoft.connectedvmwarevsphere/vcenters/inventoryitems","kind":"ResourcePool","systemData":{"createdBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","createdByType":"Application","createdAt":"2022-11-20T06:42:01.8027118Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2022-11-23T03:15:28.9205912Z"},"properties":{"parent":{"moName":"Resources","inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/azcli-test-vc/InventoryItems/resgroup-649661"},"inventoryType":"ResourcePool","managedResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/ResourcePools/azcli-test-resource-pool","moRefId":"resgroup-724471","moName":"azcli-test-rp","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -1714,9 +1649,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:23:35 GMT + - Wed, 23 Nov 2022 10:42:14 GMT etag: - - '"cf006b7f-0000-0100-0000-62a8a7090000"' + - '"7a03a111-0000-0100-0000-637d90500000"' expires: - '-1' pragma: @@ -1756,33 +1691,33 @@ interactions: ParameterSetName: - -g -l --custom-location --vcenter --resource-pool --vm-template --name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm?api-version=2022-01-10-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","name":"azcli-test-vm","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-06-14T15:23:41.3119921Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-14T15:23:41.3119921Z"},"properties":{"placementProfile":{"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/resourcePools/azcli-test-resource-pool"},"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-vc","provisioningState":"Accepted","statuses":[{"status":"False","type":"Ready","reason":"Provisioning","message":"The - resource is being provisioned.","severity":"Info","lastUpdatedAt":"2022-06-14T15:23:42.2517346Z"},{"status":"False","type":"Idle","reason":"Provisioning","message":"The - resource is being provisioned.","severity":"Info","lastUpdatedAt":"2022-06-14T15:23:42.2517346Z"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","name":"azcli-test-vm","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"snaskar@microsoft.com","createdByType":"User","createdAt":"2022-11-23T03:21:01.2620446Z","lastModifiedBy":"snaskar@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T10:42:16.3883011Z"},"properties":{"provisioningState":"Accepted","statuses":[{"status":"False","type":"Ready","reason":"Provisioning","message":"The + resource is being provisioned.","severity":"Info","lastUpdatedAt":"2022-11-23T10:42:17.0209617Z"},{"status":"False","type":"Idle","reason":"Provisioning","message":"The + resource is being provisioned.","severity":"Info","lastUpdatedAt":"2022-11-23T10:42:17.0209617Z"}],"vmId":"7f8fc1e1-b2b2-4366-9a53-97fadee67f20","customResourceName":"7f8fc1e1-b2b2-4366-9a53-97fadee67f20","instanceUuid":"7f8fc1e1-b2b2-4366-9a53-97fadee67f20","placementProfile":{"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-vc"}}' headers: api-supported-versions: - - 2020-10-01-preview, 2022-01-10-preview + - 2020-10-01-preview, 2022-01-10-preview, 2022-07-15-preview azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/4606887d-9578-41ea-ad31-1bacd8e59fbd*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2020-10-01-preview + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/5d589e75-6ff1-460f-a8bc-13501e25ce28*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2022-01-10-preview cache-control: - no-cache content-length: - - '1849' + - '1823' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:23:42 GMT + - Wed, 23 Nov 2022 10:42:19 GMT etag: - - '"2b017bd9-0000-0100-0000-62a8a7fe0000"' + - '"230190c6-0000-0100-0000-637df9090000"' expires: - '-1' location: - - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualMachines/azcli-test-vm + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm pragma: - no-cache strict-transport-security: @@ -1792,7 +1727,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1197' status: code: 201 message: Created @@ -1810,12 +1745,12 @@ interactions: ParameterSetName: - -g -l --custom-location --vcenter --resource-pool --vm-template --name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/4606887d-9578-41ea-ad31-1bacd8e59fbd*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2020-10-01-preview + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/5d589e75-6ff1-460f-a8bc-13501e25ce28*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2022-01-10-preview response: body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/4606887d-9578-41ea-ad31-1bacd8e59fbd*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","name":"4606887d-9578-41ea-ad31-1bacd8e59fbd*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","status":"Accepted","startTime":"2022-06-14T15:23:42.0443049Z"}' + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/5d589e75-6ff1-460f-a8bc-13501e25ce28*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","name":"5d589e75-6ff1-460f-a8bc-13501e25ce28*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","status":"Accepted","startTime":"2022-11-23T10:42:16.8363799Z"}' headers: cache-control: - no-cache @@ -1824,9 +1759,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:23:58 GMT + - Wed, 23 Nov 2022 10:42:49 GMT etag: - - '"8f0002dc-0000-0100-0000-62a8a7fe0000"' + - '"7e0160ab-0000-0100-0000-637df9080000"' expires: - '-1' pragma: @@ -1856,12 +1791,12 @@ interactions: ParameterSetName: - -g -l --custom-location --vcenter --resource-pool --vm-template --name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/4606887d-9578-41ea-ad31-1bacd8e59fbd*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2020-10-01-preview + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/5d589e75-6ff1-460f-a8bc-13501e25ce28*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2022-01-10-preview response: body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/4606887d-9578-41ea-ad31-1bacd8e59fbd*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","name":"4606887d-9578-41ea-ad31-1bacd8e59fbd*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","status":"Accepted","startTime":"2022-06-14T15:23:42.0443049Z"}' + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/5d589e75-6ff1-460f-a8bc-13501e25ce28*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","name":"5d589e75-6ff1-460f-a8bc-13501e25ce28*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","status":"Accepted","startTime":"2022-11-23T10:42:16.8363799Z"}' headers: cache-control: - no-cache @@ -1870,9 +1805,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:24:28 GMT + - Wed, 23 Nov 2022 10:43:20 GMT etag: - - '"8f0002dc-0000-0100-0000-62a8a7fe0000"' + - '"7e0160ab-0000-0100-0000-637df9080000"' expires: - '-1' pragma: @@ -1902,12 +1837,12 @@ interactions: ParameterSetName: - -g -l --custom-location --vcenter --resource-pool --vm-template --name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/4606887d-9578-41ea-ad31-1bacd8e59fbd*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2020-10-01-preview + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/5d589e75-6ff1-460f-a8bc-13501e25ce28*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2022-01-10-preview response: body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/4606887d-9578-41ea-ad31-1bacd8e59fbd*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","name":"4606887d-9578-41ea-ad31-1bacd8e59fbd*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","status":"Succeeded","startTime":"2022-06-14T15:23:42.0443049Z","endTime":"2022-06-14T15:24:56.4387339Z","properties":null}' + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/5d589e75-6ff1-460f-a8bc-13501e25ce28*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","name":"5d589e75-6ff1-460f-a8bc-13501e25ce28*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","status":"Succeeded","startTime":"2022-11-23T10:42:16.8363799Z","endTime":"2022-11-23T10:43:46.1539212Z","properties":null}' headers: cache-control: - no-cache @@ -1916,9 +1851,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:24:59 GMT + - Wed, 23 Nov 2022 10:43:50 GMT etag: - - '"8f000add-0000-0100-0000-62a8a8480000"' + - '"7e0165ac-0000-0100-0000-637df9620000"' expires: - '-1' pragma: @@ -1948,27 +1883,27 @@ interactions: ParameterSetName: - -g -l --custom-location --vcenter --resource-pool --vm-template --name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm?api-version=2022-01-10-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","name":"azcli-test-vm","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-06-14T15:23:41.3119921Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-14T15:23:41.3119921Z"},"properties":{"placementProfile":{"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/resourcePools/azcli-test-resource-pool"},"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-vc","provisioningState":"Succeeded","statuses":[{"status":"True","type":"CustomizationCompleted","lastUpdatedAt":"2022-06-14T15:24:50Z"},{"status":"True","type":"Ready","lastUpdatedAt":"2022-06-14T15:24:56.1462284Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-06-14T15:24:56.1462284Z"}],"vmId":"831dc695-badc-459b-9485-9b48f9e0b03e","customResourceName":"831dc695-badc-459b-9485-9b48f9e0b03e","networkProfile":{"networkInterfaces":[{"name":"nic_1","label":"Network - adapter 1","macAddress":"00:50:56:95:2c:8b","networkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network","networkMoRefId":"network-563661","networkMoName":"VM - Network","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"1211-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":"guestToolsNotRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"10304"},"hardwareProfile":{"memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"instanceUuid":"831dc695-badc-459b-9485-9b48f9e0b03e","moRefId":"vm-731238","moName":"azcli-test-vm","folderPath":"ArcPrivateClouds-67","smbiosUuid":"4215bf71-1ae1-1b9d-7ca9-220e15c5133a","firmwareType":"bios","powerState":"poweredOn"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","name":"azcli-test-vm","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"snaskar@microsoft.com","createdByType":"User","createdAt":"2022-11-23T03:21:01.2620446Z","lastModifiedBy":"snaskar@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T10:42:16.3883011Z"},"properties":{"provisioningState":"Succeeded","statuses":[{"status":"True","type":"CustomizationCompleted","lastUpdatedAt":"2022-11-23T10:43:39Z"},{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-23T10:43:45.7319262Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-23T10:43:45.7319262Z"}],"vmId":"7f8fc1e1-b2b2-4366-9a53-97fadee67f20","customResourceName":"7f8fc1e1-b2b2-4366-9a53-97fadee67f20","instanceUuid":"7f8fc1e1-b2b2-4366-9a53-97fadee67f20","placementProfile":{"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-vc","networkProfile":{"networkInterfaces":[{"name":"nic_1","label":"Network + adapter 1","macAddress":"00:50:56:95:83:97","networkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network","networkMoRefId":"network-563661","networkMoName":"VM + Network","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"2158-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"}]},"securityProfile":{"uefiSettings":{"secureBootEnabled":false}},"osProfile":{"computerName":"","osType":"Linux","osName":"Ubuntu + Linux (64-bit)","guestId":"ubuntu64Guest","toolsRunningStatus":"guestToolsNotRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"10304"},"hardwareProfile":{"memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"moRefId":"vm-1107247","moName":"azcli-test-vm","folderPath":"ArcPrivateClouds-67","smbiosUuid":"4215dd6f-c081-60ce-bb61-d1867f33c1e5","firmwareType":"bios","powerState":"poweredOn"}}' headers: cache-control: - no-cache content-length: - - '3224' + - '3128' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:25:00 GMT + - Wed, 23 Nov 2022 10:43:51 GMT etag: - - '"2b016adb-0000-0100-0000-62a8a8480000"' + - '"2301e5c7-0000-0100-0000-637df9620000"' expires: - '-1' pragma: @@ -2000,27 +1935,27 @@ interactions: ParameterSetName: - -g --name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm?api-version=2022-01-10-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","name":"azcli-test-vm","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-06-14T15:23:41.3119921Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-14T15:23:41.3119921Z"},"properties":{"placementProfile":{"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/resourcePools/azcli-test-resource-pool"},"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-vc","provisioningState":"Succeeded","statuses":[{"status":"True","type":"CustomizationCompleted","lastUpdatedAt":"2022-06-14T15:24:50Z"},{"status":"True","type":"Ready","lastUpdatedAt":"2022-06-14T15:24:56.1462284Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-06-14T15:24:56.1462284Z"}],"vmId":"831dc695-badc-459b-9485-9b48f9e0b03e","customResourceName":"831dc695-badc-459b-9485-9b48f9e0b03e","networkProfile":{"networkInterfaces":[{"name":"nic_1","label":"Network - adapter 1","macAddress":"00:50:56:95:2c:8b","networkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network","networkMoRefId":"network-563661","networkMoName":"VM - Network","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"1211-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":"guestToolsNotRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"10304"},"hardwareProfile":{"memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"instanceUuid":"831dc695-badc-459b-9485-9b48f9e0b03e","moRefId":"vm-731238","moName":"azcli-test-vm","folderPath":"ArcPrivateClouds-67","smbiosUuid":"4215bf71-1ae1-1b9d-7ca9-220e15c5133a","firmwareType":"bios","powerState":"poweredOn"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","name":"azcli-test-vm","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"snaskar@microsoft.com","createdByType":"User","createdAt":"2022-11-23T03:21:01.2620446Z","lastModifiedBy":"snaskar@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T10:42:16.3883011Z"},"properties":{"provisioningState":"Succeeded","statuses":[{"status":"True","type":"CustomizationCompleted","lastUpdatedAt":"2022-11-23T10:43:39Z"},{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-23T10:43:45.7319262Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-23T10:43:45.7319262Z"}],"vmId":"7f8fc1e1-b2b2-4366-9a53-97fadee67f20","customResourceName":"7f8fc1e1-b2b2-4366-9a53-97fadee67f20","instanceUuid":"7f8fc1e1-b2b2-4366-9a53-97fadee67f20","placementProfile":{"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-vc","networkProfile":{"networkInterfaces":[{"name":"nic_1","label":"Network + adapter 1","macAddress":"00:50:56:95:83:97","networkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network","networkMoRefId":"network-563661","networkMoName":"VM + Network","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"2158-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"}]},"securityProfile":{"uefiSettings":{"secureBootEnabled":false}},"osProfile":{"computerName":"","osType":"Linux","osName":"Ubuntu + Linux (64-bit)","guestId":"ubuntu64Guest","toolsRunningStatus":"guestToolsNotRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"10304"},"hardwareProfile":{"memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"moRefId":"vm-1107247","moName":"azcli-test-vm","folderPath":"ArcPrivateClouds-67","smbiosUuid":"4215dd6f-c081-60ce-bb61-d1867f33c1e5","firmwareType":"bios","powerState":"poweredOn"}}' headers: cache-control: - no-cache content-length: - - '3224' + - '3128' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:25:03 GMT + - Wed, 23 Nov 2022 10:43:52 GMT etag: - - '"2b016adb-0000-0100-0000-62a8a8480000"' + - '"2301e5c7-0000-0100-0000-637df9620000"' expires: - '-1' pragma: @@ -2052,25 +1987,78 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) 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 - response: - body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","name":"azcli-test-vm","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-06-14T15:23:41.3119921Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-14T15:23:41.3119921Z"},"properties":{"placementProfile":{"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/resourcePools/azcli-test-resource-pool"},"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-vc","provisioningState":"Succeeded","statuses":[{"status":"True","type":"CustomizationCompleted","lastUpdatedAt":"2022-06-14T15:24:50Z"},{"status":"True","type":"Ready","lastUpdatedAt":"2022-06-14T15:24:56.1462284Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-06-14T15:24:56.1462284Z"}],"vmId":"831dc695-badc-459b-9485-9b48f9e0b03e","customResourceName":"831dc695-badc-459b-9485-9b48f9e0b03e","networkProfile":{"networkInterfaces":[{"name":"nic_1","label":"Network - adapter 1","macAddress":"00:50:56:95:2c:8b","networkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network","networkMoRefId":"network-563661","networkMoName":"VM - Network","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"1211-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":"guestToolsNotRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"10304"},"hardwareProfile":{"memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"instanceUuid":"831dc695-badc-459b-9485-9b48f9e0b03e","moRefId":"vm-731238","moName":"azcli-test-vm","folderPath":"ArcPrivateClouds-67","smbiosUuid":"4215bf71-1ae1-1b9d-7ca9-220e15c5133a","firmwareType":"bios","powerState":"poweredOn"}}]}' - headers: - cache-control: - - no-cache - content-length: - - '3236' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 14 Jun 2022 15:25:06 GMT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines?api-version=2022-01-10-preview + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualMachines/test-tls-2008-vm","name":"test-tls-2008-vm","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/azcli-test-rg/providers/microsoft.extendedlocation/customlocations/azcli-test-cl"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-09-05T08:30:42.1795071Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2022-09-05T14:36:26.4762Z"},"identity":{"principalId":"3f90d124-dcd4-4969-afb7-7e0ce562bded","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/azcli-test-vc/InventoryItems/vm-905283","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/azcli-test-vc","moRefId":"vm-905283","provisioningState":"Succeeded","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-09-05T08:31:10.6870387Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-09-05T08:31:10.6870387Z"}],"vmId":"50fc4be1-3fb5-43d5-8170-055c6f703712","placementProfile":{},"customResourceName":"50fc4be1-3fb5-43d5-8170-055c6f703712","networkProfile":{"networkInterfaces":[{"label":"Network + adapter 1","ipAddresses":["2404:f801:4800:18:2925:afe1:abe:3d1f","fe80::2925:afe1:abe:3d1f","10.150.174.103"],"macAddress":"00:50:56:95:5b:cc","networkMoRefId":"network-563661","networkMoName":"VM + Network","nicType":"e1000","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"1826-2000","label":"Hard + disk 1","diskSizeGB":40,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0,"diskType":"flat"}],"scsiControllers":[{"type":"lsilogicsas","controllerKey":1000,"scsiCtlrUnitNumber":7,"sharing":"noSharing"}]},"securityProfile":{"uefiSettings":{"secureBootEnabled":false}},"osProfile":{"computerName":"WIN-568Q34LD1AU","osType":"Windows","osName":"Microsoft + Windows Server 2008 R2 (64-bit)","guestId":"windows7Server64Guest","toolsRunningStatus":"guestToolsRunning","toolsVersionStatus":"guestToolsSupportedOld","toolsVersion":"10279"},"hardwareProfile":{"memorySizeMB":4096,"numCPUs":2,"numCoresPerSocket":2,"cpuHotAddEnabled":false,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":false},"moName":"test-tls-2008-vm","folderPath":"ArcPrivateClouds-67/sanmishra","instanceUuid":"501509d1-3e57-7275-628c-7535605a5718","smbiosUuid":"42150434-f1b1-64f9-acb6-3cb178b1bf9e","firmwareType":"bios","powerState":"poweredOn"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualMachines/test-tls-2016-vm","name":"test-tls-2016-vm","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/azcli-test-rg/providers/microsoft.extendedlocation/customlocations/azcli-test-cl"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-09-06T10:24:49.6105202Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-06T10:27:43.4923832Z"},"identity":{"principalId":"66efa49e-9e2f-44d0-a060-1ecfb788a889","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/azcli-test-vc/InventoryItems/vm-908221","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/azcli-test-vc","moRefId":"vm-908221","provisioningState":"Failed","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-09-06T10:25:16.4778938Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-09-06T10:25:16.4778938Z"}],"vmId":"65907f12-72e4-4ae7-b7c3-221c3db2840e","placementProfile":{},"customResourceName":"65907f12-72e4-4ae7-b7c3-221c3db2840e","networkProfile":{"networkInterfaces":[{"label":"Network + adapter 1","ipAddresses":["2404:f801:4800:18:35ba:1054:1c7a:933c","fe80::35ba:1054:1c7a:933c","10.150.171.91"],"macAddress":"00:50:56:95:df:76","networkMoRefId":"network-563661","networkMoName":"VM + Network","nicType":"e1000e","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"1829-2000","label":"Hard + disk 1","diskSizeGB":128,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0,"diskType":"flat"}],"scsiControllers":[{"type":"lsilogicsas","controllerKey":1000,"scsiCtlrUnitNumber":7,"sharing":"noSharing"}]},"securityProfile":{"uefiSettings":{"secureBootEnabled":true}},"osProfile":{"computerName":"WIN-SLL72D76QIR","osType":"Windows","osName":"Microsoft + Windows Server 2016 or later (64-bit)","guestId":"windows9Server64Guest","toolsRunningStatus":"guestToolsRunning","toolsVersionStatus":"guestToolsSupportedNew","toolsVersion":"11265"},"hardwareProfile":{"memorySizeMB":4096,"numCPUs":2,"numCoresPerSocket":2,"cpuHotAddEnabled":false,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":false},"instanceUuid":"5015bd5f-84b3-a7f7-8c2b-64360331165c","moName":"test-tls-2016-vm","folderPath":"ArcPrivateClouds-67","smbiosUuid":"4215a430-8e8a-620a-3bed-83eeec95f613","firmwareType":"efi","powerState":"poweredOn"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualMachines/test-tls-2016-vm2","name":"test-tls-2016-vm2","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/azcli-test-rg/providers/microsoft.extendedlocation/customlocations/azcli-test-cl"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-09-06T10:29:58.7536979Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-06T10:34:00.8763709Z"},"identity":{"principalId":"946d4870-ee11-4a09-ab77-6a349757761a","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/azcli-test-vc/InventoryItems/vm-908301","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/azcli-test-vc","moRefId":"vm-908301","provisioningState":"Succeeded","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-09-06T10:30:27.0882692Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-09-06T10:30:27.0882692Z"}],"vmId":"448ba6f6-1d31-4b45-ba82-02049f8ad172","placementProfile":{},"customResourceName":"448ba6f6-1d31-4b45-ba82-02049f8ad172","networkProfile":{"networkInterfaces":[{"label":"Network + adapter 1","ipAddresses":["2404:f801:4800:18:cd89:c35d:a475:5e87","fe80::cd89:c35d:a475:5e87","10.150.169.68"],"macAddress":"00:50:56:95:42:12","networkMoRefId":"network-563661","networkMoName":"VM + Network","nicType":"e1000e","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"1831-2000","label":"Hard + disk 1","diskSizeGB":128,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0,"diskType":"flat"}],"scsiControllers":[{"type":"lsilogicsas","controllerKey":1000,"scsiCtlrUnitNumber":7,"sharing":"noSharing"}]},"securityProfile":{"uefiSettings":{"secureBootEnabled":true}},"osProfile":{"computerName":"WIN-SLL72D76QIR","osType":"Windows","osName":"Microsoft + Windows Server 2016 or later (64-bit)","guestId":"windows9Server64Guest","toolsRunningStatus":"guestToolsRunning","toolsVersionStatus":"guestToolsSupportedNew","toolsVersion":"11265"},"hardwareProfile":{"memorySizeMB":4096,"numCPUs":2,"numCoresPerSocket":2,"cpuHotAddEnabled":false,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":false},"instanceUuid":"5015b88e-40aa-e47a-fd6c-1b100b92cbd7","moName":"test-tls-2016-vm2","folderPath":"ArcPrivateClouds-67","smbiosUuid":"4215791d-fa42-87d7-f7e4-910f01f9d8ec","firmwareType":"efi","powerState":"poweredOn"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualMachines/domain-join-linux","name":"domain-join-linux","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/azcli-test-rg/providers/microsoft.extendedlocation/customlocations/azcli-test-cl3"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-10-04T09:16:13.5732051Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2022-11-22T07:12:03.5279115Z"},"identity":{"principalId":"4cf405ec-8a87-4294-a766-af8d95f59dfb","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/azcli-test-vc3/InventoryItems/vm-932828","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/azcli-test-vc3","provisioningState":"Succeeded","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-10-04T09:16:33.0728942Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-10-04T09:16:33.0728942Z"}],"vmId":"0f9d1b20-dae1-48b5-b327-a38337d57d74","placementProfile":{},"customResourceName":"0f9d1b20-dae1-48b5-b327-a38337d57d74","moRefId":"vm-932828","networkProfile":{"networkInterfaces":[{"label":"Network + adapter 1","macAddress":"00:50:56:95:54:f7","networkMoRefId":"network-563661","networkMoName":"VM + Network","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"95-2000","label":"Hard + disk 1","diskSizeGB":10,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0,"diskType":"flat"},{"diskObjectId":"95-2001","label":"Hard + disk 2","diskSizeGB":32,"deviceKey":2001,"diskMode":"persistent","controllerKey":1000,"unitNumber":1,"diskType":"flat"}],"scsiControllers":[{"type":"lsilogic","controllerKey":1000,"scsiCtlrUnitNumber":7,"sharing":"noSharing"}]},"securityProfile":{"uefiSettings":{"secureBootEnabled":false}},"osProfile":{"computerName":"arcmappvm1.fareast.corp.microsoft.com","osType":"Linux","osName":"Ubuntu + Linux (64-bit)","guestId":"ubuntu64Guest","toolsRunningStatus":"guestToolsNotRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"11360"},"hardwareProfile":{"memorySizeMB":8192,"numCPUs":2,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"moName":"domain-join-linux","folderPath":"ArcPrivateClouds-67/sanmishra","instanceUuid":"5015b76e-fe59-d740-c8f5-676ba46592ef","smbiosUuid":"42155926-027e-3725-56d3-19da20b36a11","firmwareType":"bios","powerState":"poweredOff"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualMachines/guptah-ps-envVar-2k8-ps5-1","name":"guptah-ps-envVar-2k8-ps5-1","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/azcli-test-rg/providers/microsoft.extendedlocation/customlocations/azcli-test-cl3"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-10-11T04:56:11.3589432Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2022-11-23T09:56:47.7395835Z"},"identity":{"principalId":"7f80e13f-084c-4540-aedd-47ab46f40ac4","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/azcli-test-vc3/InventoryItems/vm-910600","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/azcli-test-vc3","provisioningState":"Succeeded","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-10-11T04:56:39.6845629Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-10-11T04:56:39.6845629Z"}],"vmId":"56c3c50c-a09e-43b0-a992-26e7457badc0","placementProfile":{},"customResourceName":"56c3c50c-a09e-43b0-a992-26e7457badc0","moRefId":"vm-910600","networkProfile":{"networkInterfaces":[{"label":"Network + adapter 1","ipAddresses":["2404:f801:4800:18:6500:9eb0:9157:bffd","fe80::6500:9eb0:9157:bffd","10.150.173.208"],"macAddress":"00:50:56:95:51:e8","networkMoRefId":"network-563661","networkMoName":"VM + Network","nicType":"e1000","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"664-2000","label":"Hard + disk 1","diskSizeGB":40,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0,"diskType":"flat"}],"scsiControllers":[{"type":"lsilogicsas","controllerKey":1000,"scsiCtlrUnitNumber":7,"sharing":"noSharing"}]},"securityProfile":{"uefiSettings":{"secureBootEnabled":false}},"osProfile":{"computerName":"guptah-ps-env-0","osType":"Windows","osName":"Microsoft + Windows Server 2008 R2 (64-bit)","guestId":"windows7Server64Guest","toolsRunningStatus":"guestToolsRunning","toolsVersionStatus":"guestToolsSupportedOld","toolsVersion":"10279","allowExtensionOperations":true},"hardwareProfile":{"memorySizeMB":4096,"numCPUs":2,"numCoresPerSocket":2,"cpuHotAddEnabled":false,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":false},"instanceUuid":"5015f760-64bd-8dc9-6438-f508c4024d6e","moName":"guptah-ps-envVar-2k8-ps5.1","folderPath":"ArcPrivateClouds-67/guptah","smbiosUuid":"42158309-182d-b97f-3ea7-9e911892a664","firmwareType":"bios","powerState":"poweredOn","guestAgentProfile":{"vmUuid":"09831542-2D18-7FB9-3EA7-9E911892A664","status":"Connected","lastStatusChange":"2022-11-23T09:56:47.5356501Z","agentVersion":"1.22.02077.495","errorDetails":[]}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualMachines/sanmishra-2008-vm1","name":"sanmishra-2008-vm1","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/azcli-test-rg/providers/microsoft.extendedlocation/customlocations/azcli-test-cl3"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-10-12T09:55:24.6538554Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2022-11-23T10:06:39.2573652Z"},"identity":{"principalId":"82139ae9-6a10-47f3-a0fb-b16baeb447f5","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/azcli-test-vc3/InventoryItems/vm-1021434","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/azcli-test-vc3","provisioningState":"Succeeded","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-10-12T09:55:44.3327192Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-10-12T09:55:44.3327192Z"}],"vmId":"cf7158e9-63d5-4a54-9bee-051ce584d3b5","placementProfile":{},"customResourceName":"cf7158e9-63d5-4a54-9bee-051ce584d3b5","moRefId":"vm-1021434","networkProfile":{"networkInterfaces":[{"label":"Network + adapter 1","ipAddresses":["2404:f801:4800:18:8cb7:6b72:da32:4bf3","fe80::8cb7:6b72:da32:4bf3","10.150.173.139"],"macAddress":"00:50:56:95:7d:ce","networkMoRefId":"network-563661","networkMoName":"VM + Network","nicType":"e1000","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"811-2000","label":"Hard + disk 1","diskSizeGB":40,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0,"diskType":"flat"}],"scsiControllers":[{"type":"lsilogicsas","controllerKey":1000,"scsiCtlrUnitNumber":7,"sharing":"noSharing"}]},"securityProfile":{"uefiSettings":{"secureBootEnabled":false}},"osProfile":{"computerName":"guptah-ps-env-0","osType":"Windows","osName":"Microsoft + Windows Server 2008 R2 (64-bit)","guestId":"windows7Server64Guest","toolsRunningStatus":"guestToolsRunning","toolsVersionStatus":"guestToolsSupportedOld","toolsVersion":"10279","allowExtensionOperations":true},"hardwareProfile":{"memorySizeMB":4096,"numCPUs":2,"numCoresPerSocket":2,"cpuHotAddEnabled":false,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":false},"instanceUuid":"5015dd67-7091-76a5-bbbe-1f8e21790c2d","moName":"sanmishra-2008-vm1","folderPath":"ArcPrivateClouds-67/sanmishra","smbiosUuid":"42154c93-86ce-fd84-3245-30e62511562f","firmwareType":"bios","powerState":"poweredOn","guestAgentProfile":{"vmUuid":"934C1542-CE86-84FD-3245-30E62511562F","status":"Connected","lastStatusChange":"2022-11-23T10:06:35.9396882Z","agentVersion":"1.23.02105.577","errorDetails":[]}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualMachines/sanmishra-TLS-2008-vm","name":"sanmishra-TLS-2008-vm","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/azcli-test-rg/providers/microsoft.extendedlocation/customlocations/azcli-test-cl3"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-10-12T10:14:28.1839774Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2022-11-23T10:23:23.7876613Z"},"identity":{"principalId":"1b00d936-d155-4f9f-acf9-9e46b876010d","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/azcli-test-vc3/InventoryItems/vm-1021561","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/azcli-test-vc3","provisioningState":"Succeeded","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-10-12T10:14:52.0143702Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-10-12T10:14:52.0143702Z"}],"vmId":"c212ecf8-8171-4ce5-afc4-05a2ec462dbb","placementProfile":{},"customResourceName":"c212ecf8-8171-4ce5-afc4-05a2ec462dbb","moRefId":"vm-1021561","networkProfile":{"networkInterfaces":[{"label":"Network + adapter 1","ipAddresses":["2404:f801:4800:18:b915:c6ba:595:2c31","fe80::b915:c6ba:595:2c31","10.150.174.30"],"macAddress":"00:50:56:95:32:55","networkMoRefId":"network-563661","networkMoName":"VM + Network","nicType":"e1000","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"2005-2000","label":"Hard + disk 1","diskSizeGB":40,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0,"diskType":"flat"}],"scsiControllers":[{"type":"lsilogicsas","controllerKey":1000,"scsiCtlrUnitNumber":7,"sharing":"noSharing"}]},"securityProfile":{"uefiSettings":{"secureBootEnabled":false}},"osProfile":{"computerName":"guptah-ps-env-0","osType":"Windows","osName":"Microsoft + Windows Server 2008 R2 (64-bit)","guestId":"windows7Server64Guest","toolsRunningStatus":"guestToolsRunning","toolsVersionStatus":"guestToolsSupportedOld","toolsVersion":"10279","allowExtensionOperations":true},"hardwareProfile":{"memorySizeMB":4096,"numCPUs":2,"numCoresPerSocket":2,"cpuHotAddEnabled":false,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":false},"instanceUuid":"5015b154-cb57-8e81-b49c-b6d7c81c62de","moName":"sanmishra-TLS-2008-vm","folderPath":"ArcPrivateClouds-67/sanmishra","smbiosUuid":"4215c802-6ef6-d288-5541-65c6cfb568c0","firmwareType":"bios","powerState":"poweredOn","guestAgentProfile":{"vmUuid":"02C81542-F66E-88D2-5541-65C6CFB568C0","status":"Connected","lastStatusChange":"2022-11-23T10:23:21.8115953Z","agentVersion":"1.23.02105.577","errorDetails":[]}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualMachines/sanmishra-2008-vm2","name":"sanmishra-2008-vm2","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/azcli-test-rg/providers/microsoft.extendedlocation/customlocations/azcli-test-cl3"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-10-27T09:50:58.5271429Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2022-11-22T07:12:08.7901874Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/azcli-test-vc3/InventoryItems/vm-1026164","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/azcli-test-vc3","provisioningState":"Succeeded","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-10-27T09:51:57.3808646Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-10-27T09:51:57.3808646Z"}],"vmId":"e09c0211-549d-44ab-b181-9eee84b71231","placementProfile":{},"customResourceName":"e09c0211-549d-44ab-b181-9eee84b71231","moRefId":"vm-1026164","networkProfile":{"networkInterfaces":[{"label":"Network + adapter 1","ipAddresses":["2404:f801:4800:18:207a:1c14:29bd:1079","fe80::207a:1c14:29bd:1079","10.150.175.122"],"macAddress":"00:50:56:95:34:78","networkMoRefId":"network-563661","networkMoName":"VM + Network","nicType":"e1000","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"2012-2000","label":"Hard + disk 1","diskSizeGB":40,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0,"diskType":"flat"}],"scsiControllers":[{"type":"lsilogicsas","controllerKey":1000,"scsiCtlrUnitNumber":7,"sharing":"noSharing"}]},"securityProfile":{"uefiSettings":{"secureBootEnabled":false}},"osProfile":{"computerName":"guptah-ps-env-0","osType":"Windows","osName":"Microsoft + Windows Server 2008 R2 (64-bit)","guestId":"windows7Server64Guest","toolsRunningStatus":"guestToolsRunning","toolsVersionStatus":"guestToolsSupportedOld","toolsVersion":"10279"},"hardwareProfile":{"memorySizeMB":4096,"numCPUs":2,"numCoresPerSocket":2,"cpuHotAddEnabled":false,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":false},"moName":"sanmishra-2008-vm2","folderPath":"ArcPrivateClouds-67/sanmishra","instanceUuid":"5015b4ab-93a4-cee2-8856-5d03e743ea81","smbiosUuid":"4215c37a-5e10-3f32-397b-e8f0a7db8220","firmwareType":"bios","powerState":"poweredOn"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualMachines/test-linux-domain-join-vm","name":"test-linux-domain-join-vm","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/azcli-test-rg/providers/microsoft.extendedlocation/customlocations/azcli-test-cl3"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-11-02T07:21:36.2614695Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2022-11-22T15:58:45.6034972Z"},"identity":{"principalId":"985fbf97-d394-45fd-89eb-91ec8ec30a51","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/azcli-test-vc3/InventoryItems/vm-1088071","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/azcli-test-vc3","provisioningState":"Succeeded","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-02T07:22:04.124883Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-02T07:22:04.124883Z"}],"vmId":"e9b25965-cdcd-4f4d-9181-4c26a05dd510","placementProfile":{},"customResourceName":"e9b25965-cdcd-4f4d-9181-4c26a05dd510","moRefId":"vm-1088071","networkProfile":{"networkInterfaces":[{"label":"Network + adapter 1","ipAddresses":["10.150.170.205","2404:f801:4800:18:cc29:3525:37df:cfab","2404:f801:4800:18:dcb:9d0b:d91c:a6b0","2404:f801:4800:18:38ff:9303:9ebc:38a0","2404:f801:4800:18:32c1:fbec:e9dc:ed87","2404:f801:4800:18:cea6:40fc:290f:d374","2404:f801:4800:18:b6f6:6494:6535:d2e9","2404:f801:4800:18:5e82:bccd:add:8819","2404:f801:4800:18:c3f7:e359:f223:c984","fe80::3ac8:41c1:a4a:2693"],"macAddress":"00:50:56:95:a2:25","networkMoRefId":"network-563661","networkMoName":"VM + Network","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"865-2000","label":"Hard + disk 1","diskSizeGB":32,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0,"diskType":"flat"}],"scsiControllers":[{"type":"lsilogic","controllerKey":1000,"scsiCtlrUnitNumber":7,"sharing":"noSharing"}]},"securityProfile":{"uefiSettings":{"secureBootEnabled":false}},"osProfile":{"computerName":"samishraarcvm1","osType":"Linux","osName":"Ubuntu + Linux (64-bit)","guestId":"ubuntu64Guest","toolsRunningStatus":"guestToolsRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"11360"},"hardwareProfile":{"memorySizeMB":8192,"numCPUs":4,"numCoresPerSocket":1,"cpuHotAddEnabled":false,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":false},"moName":"test-linux-domain-join-vm","folderPath":"ArcPrivateClouds-67/sanmishra","instanceUuid":"5015d6db-220f-db36-3103-d3c4485b7760","smbiosUuid":"42157eba-5717-1e64-0df7-38974bd346ea","firmwareType":"bios","powerState":"poweredOn"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualMachines/ubuntu2004vm1","name":"ubuntu2004vm1","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/azcli-test-rg/providers/microsoft.extendedlocation/customlocations/azcli-test-cl3"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-11-08T07:20:59.3308523Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2022-11-18T04:43:14.7572039Z"},"identity":{"principalId":"4dfdd174-6c53-45f8-9f6e-7610c5c45037","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/azcli-test-vc3/InventoryItems/vm-968481","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/azcli-test-vc3","provisioningState":"Succeeded","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-08T07:21:22.3745083Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-08T07:21:22.3745083Z"}],"vmId":"1c1f3c1b-aa24-4461-a14c-6369d073727b","placementProfile":{},"customResourceName":"1c1f3c1b-aa24-4461-a14c-6369d073727b","moRefId":"vm-968481","networkProfile":{"networkInterfaces":[{"label":"Network + adapter 1","ipAddresses":["10.150.220.99","2404:f801:4800:17:250:56ff:fe95:6755","fe80::250:56ff:fe95:6755"],"macAddress":"00:50:56:95:67:55","networkMoRefId":"network-802407","networkMoName":"VM + Network","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"8-2000","label":"Hard + disk 1","diskSizeGB":64,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0,"diskType":"flat"}],"scsiControllers":[{"type":"lsilogic","controllerKey":1000,"scsiCtlrUnitNumber":7,"sharing":"noSharing"}]},"securityProfile":{"uefiSettings":{"secureBootEnabled":false}},"osProfile":{"computerName":"ubuntu2004vm1","osType":"Linux","osName":"Ubuntu + Linux (64-bit)","guestId":"ubuntu64Guest","toolsRunningStatus":"guestToolsRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"11360"},"hardwareProfile":{"memorySizeMB":4096,"numCPUs":2,"numCoresPerSocket":1,"cpuHotAddEnabled":false,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":false},"instanceUuid":"5015dec5-8d05-090a-77c1-afef8c44ca78","moName":"ubuntu2004vm1","folderPath":"AzureMigrateTestbed","smbiosUuid":"421557db-0ba5-967b-4b79-dad85da3441f","firmwareType":"bios","powerState":"poweredOn"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualMachines/2k16-oldvmwaretool-vm","name":"2k16-oldvmwaretool-vm","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/azcli-test-rg/providers/microsoft.extendedlocation/customlocations/azcli-test-cl3"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-11-16T05:03:20.8908549Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2022-11-22T07:12:07.589376Z"},"identity":{"principalId":"d5c5723e-a029-4cd8-ba9f-36aad3e601b9","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/azcli-test-vc3/InventoryItems/vm-1094265","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/azcli-test-vc3","provisioningState":"Succeeded","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-16T05:03:46.7485739Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-16T05:03:46.7485739Z"}],"vmId":"d42d9787-962f-46a9-addd-0a76b00492e0","placementProfile":{},"customResourceName":"d42d9787-962f-46a9-addd-0a76b00492e0","moRefId":"vm-1094265","networkProfile":{"networkInterfaces":[{"label":"Network + adapter 1","macAddress":"00:50:56:95:41:65","networkMoRefId":"network-563661","networkMoName":"VM + Network","nicType":"e1000e","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"2122-2000","label":"Hard + disk 1","diskSizeGB":30,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0,"diskType":"flat"}],"scsiControllers":[{"type":"lsilogicsas","controllerKey":1000,"scsiCtlrUnitNumber":7,"sharing":"noSharing"}]},"securityProfile":{"uefiSettings":{"secureBootEnabled":true}},"osProfile":{"computerName":"WIN-GCTRC6G31HE","osType":"Windows","osName":"Microsoft + Windows Server 2016 or later (64-bit)","guestId":"windows9Server64Guest","toolsRunningStatus":"guestToolsNotRunning","toolsVersionStatus":"guestToolsSupportedOld","toolsVersion":"10338","allowExtensionOperations":true},"hardwareProfile":{"memorySizeMB":4096,"numCPUs":2,"numCoresPerSocket":2,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"instanceUuid":"50153c9a-95d9-c6b4-0d37-013e08030161","moName":"2k16-oldvmwaretool-vm","folderPath":"ArcPrivateClouds-67/sanmishra","smbiosUuid":"42158f88-bba3-3d8a-6375-4e1c65accc71","firmwareType":"efi","powerState":"poweredOff","guestAgentProfile":{"vmUuid":"888F1542-A3BB-8A3D-6375-4E1C65ACCC71","status":"Disconnected","lastStatusChange":"2022-11-16T06:05:02.1060941Z","agentVersion":"1.23.02105.577","errorDetails":[]}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","name":"azcli-test-vm","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"snaskar@microsoft.com","createdByType":"User","createdAt":"2022-11-23T03:21:01.2620446Z","lastModifiedBy":"snaskar@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T10:42:16.3883011Z"},"properties":{"provisioningState":"Succeeded","statuses":[{"status":"True","type":"CustomizationCompleted","lastUpdatedAt":"2022-11-23T10:43:39Z"},{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-23T10:43:45.7319262Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-23T10:43:45.7319262Z"}],"vmId":"7f8fc1e1-b2b2-4366-9a53-97fadee67f20","customResourceName":"7f8fc1e1-b2b2-4366-9a53-97fadee67f20","instanceUuid":"7f8fc1e1-b2b2-4366-9a53-97fadee67f20","placementProfile":{"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-vc","networkProfile":{"networkInterfaces":[{"name":"nic_1","label":"Network + adapter 1","macAddress":"00:50:56:95:83:97","networkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network","networkMoRefId":"network-563661","networkMoName":"VM + Network","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"2158-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"}]},"securityProfile":{"uefiSettings":{"secureBootEnabled":false}},"osProfile":{"computerName":"","osType":"Linux","osName":"Ubuntu + Linux (64-bit)","guestId":"ubuntu64Guest","toolsRunningStatus":"guestToolsNotRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"10304"},"hardwareProfile":{"memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"moRefId":"vm-1107247","moName":"azcli-test-vm","folderPath":"ArcPrivateClouds-67","smbiosUuid":"4215dd6f-c081-60ce-bb61-d1867f33c1e5","firmwareType":"bios","powerState":"poweredOn"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualMachines/2022-domain-join-test-vm","name":"2022-domain-join-test-vm","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/azcli-test-rg/providers/microsoft.extendedlocation/customlocations/azcli-test-cl3"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-11-23T06:57:50.1046195Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2022-11-23T06:59:51.4763277Z"},"identity":{"principalId":"7c482bf4-fad5-4841-b500-56dd1f6a2891","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/azcli-test-vc3/InventoryItems/vm-1106422","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/azcli-test-vc3","provisioningState":"Succeeded","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-23T06:58:24.5088968Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-23T06:58:24.5088968Z"}],"vmId":"130a3a8f-1102-4a56-a090-7f63a88afa56","placementProfile":{},"customResourceName":"130a3a8f-1102-4a56-a090-7f63a88afa56","moRefId":"vm-1106422","networkProfile":{"networkInterfaces":[{"label":"Network + adapter 1","ipAddresses":["2404:f801:4800:18:b672:2434:f5c1:1328","fe80::b4cc:bbbd:9494:6c48","10.150.171.37"],"macAddress":"00:50:56:95:53:56","networkMoRefId":"network-563661","networkMoName":"VM + Network","nicType":"e1000e","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"2144-2000","label":"Hard + disk 1","diskSizeGB":120,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0,"diskType":"flat"}],"scsiControllers":[{"type":"lsilogicsas","controllerKey":1000,"scsiCtlrUnitNumber":7,"sharing":"noSharing"}]},"securityProfile":{"uefiSettings":{"secureBootEnabled":true}},"osProfile":{"computerName":"WIN-C6HTGQDIQGS.fareast.corp.microsoft.com","osType":"Windows","osName":"Microsoft + Windows Server 2016 or later (64-bit)","guestId":"windows9Server64Guest","toolsRunningStatus":"guestToolsRunning","toolsVersionStatus":"guestToolsSupportedNew","toolsVersion":"12293"},"hardwareProfile":{"memorySizeMB":8192,"numCPUs":2,"numCoresPerSocket":2,"cpuHotAddEnabled":false,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":false},"instanceUuid":"5015cca1-edae-3910-8b78-eebdc17c64db","moName":"2022-domain-join-test-vm","folderPath":"ArcPrivateClouds-67/sanmishra","smbiosUuid":"42155f2c-6c82-34be-8f24-cfed34550425","firmwareType":"efi","powerState":"poweredOn"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualMachines/2022-non-domain-test-vm2","name":"2022-non-domain-test-vm2","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/azcli-test-rg/providers/microsoft.extendedlocation/customlocations/azcli-test-cl3"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-11-23T07:51:43.2251164Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T07:58:49.8778801Z"},"identity":{"principalId":"679492d8-53dd-4c45-ba6b-d427aa146207","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/azcli-test-vc3/InventoryItems/vm-1107171","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/azcli-test-vc3","provisioningState":"Succeeded","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-23T07:52:11.6548302Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-23T07:52:11.6548302Z"}],"vmId":"acdb3e6e-73a1-4e2e-9868-d5930bf96f58","placementProfile":{},"customResourceName":"acdb3e6e-73a1-4e2e-9868-d5930bf96f58","moRefId":"vm-1107171","networkProfile":{"networkInterfaces":[{"label":"Network + adapter 1","ipAddresses":["2404:f801:4800:18:8c26:1b97:2885:afae","fe80::8c26:1b97:2885:afae","10.150.174.82"],"macAddress":"00:50:56:95:0c:a0","networkMoRefId":"network-563661","networkMoName":"VM + Network","nicType":"e1000e","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"408-2000","label":"Hard + disk 1","diskSizeGB":120,"deviceKey":2000,"diskMode":"persistent","controllerKey":1000,"unitNumber":0,"diskType":"flat"}],"scsiControllers":[{"type":"lsilogicsas","controllerKey":1000,"scsiCtlrUnitNumber":7,"sharing":"noSharing"}]},"securityProfile":{"uefiSettings":{"secureBootEnabled":true}},"osProfile":{"computerName":"WIN-C6HTGQDIQGS","osType":"Windows","osName":"Microsoft + Windows Server 2016 or later (64-bit)","guestId":"windows9Server64Guest","toolsRunningStatus":"guestToolsRunning","toolsVersionStatus":"guestToolsSupportedNew","toolsVersion":"12293"},"hardwareProfile":{"memorySizeMB":8192,"numCPUs":2,"numCoresPerSocket":2,"cpuHotAddEnabled":false,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":false},"instanceUuid":"50153d54-39fa-5d1a-84c2-9a2db25079c2","moName":"2022-non-domain-test-vm2","folderPath":"ArcPrivateClouds-67/sanmishra","smbiosUuid":"42156d9b-84cf-943d-5510-74c3e5534f02","firmwareType":"efi","powerState":"poweredOn"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '42964' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Nov 2022 10:43:53 GMT expires: - '-1' pragma: @@ -2082,10 +2070,13 @@ interactions: x-content-type-options: - nosniff x-ms-original-request-ids: - - ec6d2a40-61e0-424b-8453-9f42bc0fb7fc - - 910ac4ef-5b0e-4873-b91c-3144cf123180 - - 8a79ab16-6994-4e47-bf8e-9f85c7e4a3b9 - - 14fd3874-8ad8-4520-86c5-38ea7d8c3558 + - 161bd85a-f4c4-4f94-9982-3ba43781947d + - b82342f1-9878-461f-9399-1791f784e243 + - 24d5c0b3-d641-48c9-929c-b311b980b1f9 + - 0f9d9a27-a287-42e8-bc9e-45691f11a526 + - b4254bd8-9d56-490f-9061-cf78d294a818 + - af4e1398-f6c0-49c4-bf6d-9f51417000a1 + - 9d17bcb8-2f31-41aa-8892-625f602115ef status: code: 200 message: OK @@ -2103,27 +2094,27 @@ interactions: ParameterSetName: - -g --vm-name --name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm?api-version=2022-01-10-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","name":"azcli-test-vm","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-06-14T15:23:41.3119921Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-14T15:23:41.3119921Z"},"properties":{"placementProfile":{"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/resourcePools/azcli-test-resource-pool"},"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-vc","provisioningState":"Succeeded","statuses":[{"status":"True","type":"CustomizationCompleted","lastUpdatedAt":"2022-06-14T15:24:50Z"},{"status":"True","type":"Ready","lastUpdatedAt":"2022-06-14T15:24:56.1462284Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-06-14T15:24:56.1462284Z"}],"vmId":"831dc695-badc-459b-9485-9b48f9e0b03e","customResourceName":"831dc695-badc-459b-9485-9b48f9e0b03e","networkProfile":{"networkInterfaces":[{"name":"nic_1","label":"Network - adapter 1","macAddress":"00:50:56:95:2c:8b","networkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network","networkMoRefId":"network-563661","networkMoName":"VM - Network","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"1211-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":"guestToolsNotRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"10304"},"hardwareProfile":{"memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"instanceUuid":"831dc695-badc-459b-9485-9b48f9e0b03e","moRefId":"vm-731238","moName":"azcli-test-vm","folderPath":"ArcPrivateClouds-67","smbiosUuid":"4215bf71-1ae1-1b9d-7ca9-220e15c5133a","firmwareType":"bios","powerState":"poweredOn"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","name":"azcli-test-vm","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"snaskar@microsoft.com","createdByType":"User","createdAt":"2022-11-23T03:21:01.2620446Z","lastModifiedBy":"snaskar@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T10:42:16.3883011Z"},"properties":{"provisioningState":"Succeeded","statuses":[{"status":"True","type":"CustomizationCompleted","lastUpdatedAt":"2022-11-23T10:43:39Z"},{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-23T10:43:45.7319262Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-23T10:43:45.7319262Z"}],"vmId":"7f8fc1e1-b2b2-4366-9a53-97fadee67f20","customResourceName":"7f8fc1e1-b2b2-4366-9a53-97fadee67f20","instanceUuid":"7f8fc1e1-b2b2-4366-9a53-97fadee67f20","placementProfile":{"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-vc","networkProfile":{"networkInterfaces":[{"name":"nic_1","label":"Network + adapter 1","macAddress":"00:50:56:95:83:97","networkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network","networkMoRefId":"network-563661","networkMoName":"VM + Network","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"2158-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"}]},"securityProfile":{"uefiSettings":{"secureBootEnabled":false}},"osProfile":{"computerName":"","osType":"Linux","osName":"Ubuntu + Linux (64-bit)","guestId":"ubuntu64Guest","toolsRunningStatus":"guestToolsNotRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"10304"},"hardwareProfile":{"memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"moRefId":"vm-1107247","moName":"azcli-test-vm","folderPath":"ArcPrivateClouds-67","smbiosUuid":"4215dd6f-c081-60ce-bb61-d1867f33c1e5","firmwareType":"bios","powerState":"poweredOn"}}' headers: cache-control: - no-cache content-length: - - '3224' + - '3128' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:25:09 GMT + - Wed, 23 Nov 2022 10:43:54 GMT etag: - - '"2b016adb-0000-0100-0000-62a8a8480000"' + - '"2301e5c7-0000-0100-0000-637df9620000"' expires: - '-1' pragma: @@ -2155,27 +2146,27 @@ interactions: ParameterSetName: - -g --vm-name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm?api-version=2022-01-10-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","name":"azcli-test-vm","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-06-14T15:23:41.3119921Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-14T15:23:41.3119921Z"},"properties":{"placementProfile":{"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/resourcePools/azcli-test-resource-pool"},"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-vc","provisioningState":"Succeeded","statuses":[{"status":"True","type":"CustomizationCompleted","lastUpdatedAt":"2022-06-14T15:24:50Z"},{"status":"True","type":"Ready","lastUpdatedAt":"2022-06-14T15:24:56.1462284Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-06-14T15:24:56.1462284Z"}],"vmId":"831dc695-badc-459b-9485-9b48f9e0b03e","customResourceName":"831dc695-badc-459b-9485-9b48f9e0b03e","networkProfile":{"networkInterfaces":[{"name":"nic_1","label":"Network - adapter 1","macAddress":"00:50:56:95:2c:8b","networkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network","networkMoRefId":"network-563661","networkMoName":"VM - Network","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"1211-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":"guestToolsNotRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"10304"},"hardwareProfile":{"memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"instanceUuid":"831dc695-badc-459b-9485-9b48f9e0b03e","moRefId":"vm-731238","moName":"azcli-test-vm","folderPath":"ArcPrivateClouds-67","smbiosUuid":"4215bf71-1ae1-1b9d-7ca9-220e15c5133a","firmwareType":"bios","powerState":"poweredOn"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","name":"azcli-test-vm","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"snaskar@microsoft.com","createdByType":"User","createdAt":"2022-11-23T03:21:01.2620446Z","lastModifiedBy":"snaskar@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T10:42:16.3883011Z"},"properties":{"provisioningState":"Succeeded","statuses":[{"status":"True","type":"CustomizationCompleted","lastUpdatedAt":"2022-11-23T10:43:39Z"},{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-23T10:43:45.7319262Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-23T10:43:45.7319262Z"}],"vmId":"7f8fc1e1-b2b2-4366-9a53-97fadee67f20","customResourceName":"7f8fc1e1-b2b2-4366-9a53-97fadee67f20","instanceUuid":"7f8fc1e1-b2b2-4366-9a53-97fadee67f20","placementProfile":{"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-vc","networkProfile":{"networkInterfaces":[{"name":"nic_1","label":"Network + adapter 1","macAddress":"00:50:56:95:83:97","networkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network","networkMoRefId":"network-563661","networkMoName":"VM + Network","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"2158-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"}]},"securityProfile":{"uefiSettings":{"secureBootEnabled":false}},"osProfile":{"computerName":"","osType":"Linux","osName":"Ubuntu + Linux (64-bit)","guestId":"ubuntu64Guest","toolsRunningStatus":"guestToolsNotRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"10304"},"hardwareProfile":{"memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"moRefId":"vm-1107247","moName":"azcli-test-vm","folderPath":"ArcPrivateClouds-67","smbiosUuid":"4215dd6f-c081-60ce-bb61-d1867f33c1e5","firmwareType":"bios","powerState":"poweredOn"}}' headers: cache-control: - no-cache content-length: - - '3224' + - '3128' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:25:11 GMT + - Wed, 23 Nov 2022 10:43:55 GMT etag: - - '"2b016adb-0000-0100-0000-62a8a8480000"' + - '"2301e5c7-0000-0100-0000-637df9620000"' expires: - '-1' pragma: @@ -2207,27 +2198,27 @@ interactions: ParameterSetName: - -g --vm-name --name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm?api-version=2022-01-10-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","name":"azcli-test-vm","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-06-14T15:23:41.3119921Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-14T15:23:41.3119921Z"},"properties":{"placementProfile":{"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/resourcePools/azcli-test-resource-pool"},"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-vc","provisioningState":"Succeeded","statuses":[{"status":"True","type":"CustomizationCompleted","lastUpdatedAt":"2022-06-14T15:24:50Z"},{"status":"True","type":"Ready","lastUpdatedAt":"2022-06-14T15:24:56.1462284Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-06-14T15:24:56.1462284Z"}],"vmId":"831dc695-badc-459b-9485-9b48f9e0b03e","customResourceName":"831dc695-badc-459b-9485-9b48f9e0b03e","networkProfile":{"networkInterfaces":[{"name":"nic_1","label":"Network - adapter 1","macAddress":"00:50:56:95:2c:8b","networkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network","networkMoRefId":"network-563661","networkMoName":"VM - Network","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"1211-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":"guestToolsNotRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"10304"},"hardwareProfile":{"memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"instanceUuid":"831dc695-badc-459b-9485-9b48f9e0b03e","moRefId":"vm-731238","moName":"azcli-test-vm","folderPath":"ArcPrivateClouds-67","smbiosUuid":"4215bf71-1ae1-1b9d-7ca9-220e15c5133a","firmwareType":"bios","powerState":"poweredOn"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","name":"azcli-test-vm","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"snaskar@microsoft.com","createdByType":"User","createdAt":"2022-11-23T03:21:01.2620446Z","lastModifiedBy":"snaskar@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T10:42:16.3883011Z"},"properties":{"provisioningState":"Succeeded","statuses":[{"status":"True","type":"CustomizationCompleted","lastUpdatedAt":"2022-11-23T10:43:39Z"},{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-23T10:43:45.7319262Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-23T10:43:45.7319262Z"}],"vmId":"7f8fc1e1-b2b2-4366-9a53-97fadee67f20","customResourceName":"7f8fc1e1-b2b2-4366-9a53-97fadee67f20","instanceUuid":"7f8fc1e1-b2b2-4366-9a53-97fadee67f20","placementProfile":{"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-vc","networkProfile":{"networkInterfaces":[{"name":"nic_1","label":"Network + adapter 1","macAddress":"00:50:56:95:83:97","networkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network","networkMoRefId":"network-563661","networkMoName":"VM + Network","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"2158-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"}]},"securityProfile":{"uefiSettings":{"secureBootEnabled":false}},"osProfile":{"computerName":"","osType":"Linux","osName":"Ubuntu + Linux (64-bit)","guestId":"ubuntu64Guest","toolsRunningStatus":"guestToolsNotRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"10304"},"hardwareProfile":{"memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"moRefId":"vm-1107247","moName":"azcli-test-vm","folderPath":"ArcPrivateClouds-67","smbiosUuid":"4215dd6f-c081-60ce-bb61-d1867f33c1e5","firmwareType":"bios","powerState":"poweredOn"}}' headers: cache-control: - no-cache content-length: - - '3224' + - '3128' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:25:13 GMT + - Wed, 23 Nov 2022 10:43:56 GMT etag: - - '"2b016adb-0000-0100-0000-62a8a8480000"' + - '"2301e5c7-0000-0100-0000-637df9620000"' expires: - '-1' pragma: @@ -2259,27 +2250,27 @@ interactions: ParameterSetName: - -g --vm-name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm?api-version=2022-01-10-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","name":"azcli-test-vm","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-06-14T15:23:41.3119921Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-14T15:23:41.3119921Z"},"properties":{"placementProfile":{"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/resourcePools/azcli-test-resource-pool"},"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-vc","provisioningState":"Succeeded","statuses":[{"status":"True","type":"CustomizationCompleted","lastUpdatedAt":"2022-06-14T15:24:50Z"},{"status":"True","type":"Ready","lastUpdatedAt":"2022-06-14T15:24:56.1462284Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-06-14T15:24:56.1462284Z"}],"vmId":"831dc695-badc-459b-9485-9b48f9e0b03e","customResourceName":"831dc695-badc-459b-9485-9b48f9e0b03e","networkProfile":{"networkInterfaces":[{"name":"nic_1","label":"Network - adapter 1","macAddress":"00:50:56:95:2c:8b","networkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network","networkMoRefId":"network-563661","networkMoName":"VM - Network","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"1211-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":"guestToolsNotRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"10304"},"hardwareProfile":{"memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"instanceUuid":"831dc695-badc-459b-9485-9b48f9e0b03e","moRefId":"vm-731238","moName":"azcli-test-vm","folderPath":"ArcPrivateClouds-67","smbiosUuid":"4215bf71-1ae1-1b9d-7ca9-220e15c5133a","firmwareType":"bios","powerState":"poweredOn"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","name":"azcli-test-vm","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"snaskar@microsoft.com","createdByType":"User","createdAt":"2022-11-23T03:21:01.2620446Z","lastModifiedBy":"snaskar@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T10:42:16.3883011Z"},"properties":{"provisioningState":"Succeeded","statuses":[{"status":"True","type":"CustomizationCompleted","lastUpdatedAt":"2022-11-23T10:43:39Z"},{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-23T10:43:45.7319262Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-23T10:43:45.7319262Z"}],"vmId":"7f8fc1e1-b2b2-4366-9a53-97fadee67f20","customResourceName":"7f8fc1e1-b2b2-4366-9a53-97fadee67f20","instanceUuid":"7f8fc1e1-b2b2-4366-9a53-97fadee67f20","placementProfile":{"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-vc","networkProfile":{"networkInterfaces":[{"name":"nic_1","label":"Network + adapter 1","macAddress":"00:50:56:95:83:97","networkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network","networkMoRefId":"network-563661","networkMoName":"VM + Network","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"2158-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"}]},"securityProfile":{"uefiSettings":{"secureBootEnabled":false}},"osProfile":{"computerName":"","osType":"Linux","osName":"Ubuntu + Linux (64-bit)","guestId":"ubuntu64Guest","toolsRunningStatus":"guestToolsNotRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"10304"},"hardwareProfile":{"memorySizeMB":1024,"numCPUs":1,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"moRefId":"vm-1107247","moName":"azcli-test-vm","folderPath":"ArcPrivateClouds-67","smbiosUuid":"4215dd6f-c081-60ce-bb61-d1867f33c1e5","firmwareType":"bios","powerState":"poweredOn"}}' headers: cache-control: - no-cache content-length: - - '3224' + - '3128' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:25:15 GMT + - Wed, 23 Nov 2022 10:43:57 GMT etag: - - '"2b016adb-0000-0100-0000-62a8a8480000"' + - '"2301e5c7-0000-0100-0000-637df9620000"' expires: - '-1' pragma: @@ -2315,37 +2306,37 @@ interactions: ParameterSetName: - -g --name --memory-size --num-CPUs User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm?api-version=2022-01-10-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","name":"azcli-test-vm","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-06-14T15:23:41.3119921Z","lastModifiedBy":"sanmishra@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-14T15:25:17.3992319Z"},"properties":{"placementProfile":{"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/resourcePools/azcli-test-resource-pool"},"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-vc","provisioningState":"Accepted","statuses":[{"status":"True","type":"CustomizationCompleted","lastUpdatedAt":"2022-06-14T15:24:50Z"},{"status":"False","type":"Ready","reason":"Provisioning","message":"The - resource is being provisioned.","severity":"Info","lastUpdatedAt":"2022-06-14T15:25:18.4592745Z"},{"status":"False","type":"Idle","reason":"Provisioning","message":"The - resource is being provisioned.","severity":"Info","lastUpdatedAt":"2022-06-14T15:25:18.4592745Z"}],"vmId":"831dc695-badc-459b-9485-9b48f9e0b03e","customResourceName":"831dc695-badc-459b-9485-9b48f9e0b03e","networkProfile":{"networkInterfaces":[{"name":"nic_1","label":"Network - adapter 1","macAddress":"00:50:56:95:2c:8b","networkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network","networkMoRefId":"network-563661","networkMoName":"VM - Network","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"1211-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":"guestToolsNotRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"10304"},"hardwareProfile":{"memorySizeMB":2048,"numCPUs":2,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"instanceUuid":"831dc695-badc-459b-9485-9b48f9e0b03e","moRefId":"vm-731238","moName":"azcli-test-vm","folderPath":"ArcPrivateClouds-67","smbiosUuid":"4215bf71-1ae1-1b9d-7ca9-220e15c5133a","firmwareType":"bios","powerState":"poweredOn"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","name":"azcli-test-vm","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"snaskar@microsoft.com","createdByType":"User","createdAt":"2022-11-23T03:21:01.2620446Z","lastModifiedBy":"snaskar@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T10:43:59.0712367Z"},"properties":{"provisioningState":"Accepted","statuses":[{"status":"True","type":"CustomizationCompleted","lastUpdatedAt":"2022-11-23T10:43:39Z"},{"status":"False","type":"Ready","reason":"Provisioning","message":"The + resource is being provisioned.","severity":"Info","lastUpdatedAt":"2022-11-23T10:43:59.563556Z"},{"status":"False","type":"Idle","reason":"Provisioning","message":"The + resource is being provisioned.","severity":"Info","lastUpdatedAt":"2022-11-23T10:43:59.563556Z"}],"vmId":"7f8fc1e1-b2b2-4366-9a53-97fadee67f20","customResourceName":"7f8fc1e1-b2b2-4366-9a53-97fadee67f20","instanceUuid":"7f8fc1e1-b2b2-4366-9a53-97fadee67f20","placementProfile":{"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-vc","networkProfile":{"networkInterfaces":[{"name":"nic_1","label":"Network + adapter 1","macAddress":"00:50:56:95:83:97","networkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network","networkMoRefId":"network-563661","networkMoName":"VM + Network","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset"}}]},"storageProfile":{"disks":[{"diskObjectId":"2158-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"}]},"securityProfile":{"uefiSettings":{"secureBootEnabled":false}},"osProfile":{"computerName":"","osType":"Linux","osName":"Ubuntu + Linux (64-bit)","guestId":"ubuntu64Guest","toolsRunningStatus":"guestToolsNotRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"10304"},"hardwareProfile":{"memorySizeMB":2048,"numCPUs":2,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"moRefId":"vm-1107247","moName":"azcli-test-vm","folderPath":"ArcPrivateClouds-67","smbiosUuid":"4215dd6f-c081-60ce-bb61-d1867f33c1e5","firmwareType":"bios","powerState":"poweredOn"}}' headers: api-supported-versions: - - 2020-10-01-preview, 2022-01-10-preview + - 2020-10-01-preview, 2022-01-10-preview, 2022-07-15-preview azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/724cf03f-4545-4c6a-9feb-21ad39b64d58*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2020-10-01-preview + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/a693a773-02ff-435a-ae79-83d0a1fbab4c*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2022-01-10-preview cache-control: - no-cache content-length: - - '3403' + - '3305' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:25:22 GMT + - Wed, 23 Nov 2022 10:44:03 GMT etag: - - '"2b011edc-0000-0100-0000-62a8a85e0000"' + - '"230132c8-0000-0100-0000-637df96f0000"' expires: - '-1' location: - - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualMachines/azcli-test-vm + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm pragma: - no-cache strict-transport-security: @@ -2355,7 +2346,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 201 message: Created @@ -2373,23 +2364,23 @@ interactions: ParameterSetName: - -g --name --memory-size --num-CPUs User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/724cf03f-4545-4c6a-9feb-21ad39b64d58*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2020-10-01-preview + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/a693a773-02ff-435a-ae79-83d0a1fbab4c*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2022-01-10-preview response: body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/724cf03f-4545-4c6a-9feb-21ad39b64d58*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","name":"724cf03f-4545-4c6a-9feb-21ad39b64d58*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","status":"Accepted","startTime":"2022-06-14T15:25:18.3684464Z"}' + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/a693a773-02ff-435a-ae79-83d0a1fbab4c*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","name":"a693a773-02ff-435a-ae79-83d0a1fbab4c*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","status":"Succeeded","startTime":"2022-11-23T10:43:59.3953694Z","endTime":"2022-11-23T10:44:23.6792746Z","properties":null}' headers: cache-control: - no-cache content-length: - - '532' + - '592' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:25:37 GMT + - Wed, 23 Nov 2022 10:44:34 GMT etag: - - '"8f0050dd-0000-0100-0000-62a8a85e0000"' + - '"7e01f5ac-0000-0100-0000-637df9870000"' expires: - '-1' pragma: @@ -2419,23 +2410,27 @@ interactions: ParameterSetName: - -g --name --memory-size --num-CPUs User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/724cf03f-4545-4c6a-9feb-21ad39b64d58*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2020-10-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm?api-version=2022-01-10-preview response: body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/724cf03f-4545-4c6a-9feb-21ad39b64d58*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","name":"724cf03f-4545-4c6a-9feb-21ad39b64d58*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","status":"Succeeded","startTime":"2022-06-14T15:25:18.3684464Z","endTime":"2022-06-14T15:25:42.1153993Z","properties":null}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","name":"azcli-test-vm","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"snaskar@microsoft.com","createdByType":"User","createdAt":"2022-11-23T03:21:01.2620446Z","lastModifiedBy":"snaskar@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T10:43:59.0712367Z"},"properties":{"provisioningState":"Succeeded","statuses":[{"status":"True","type":"CustomizationCompleted","lastUpdatedAt":"2022-11-23T10:43:39Z"},{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-23T10:44:23.3446291Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-23T10:44:23.3446291Z"}],"vmId":"7f8fc1e1-b2b2-4366-9a53-97fadee67f20","customResourceName":"7f8fc1e1-b2b2-4366-9a53-97fadee67f20","instanceUuid":"7f8fc1e1-b2b2-4366-9a53-97fadee67f20","placementProfile":{"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-vc","networkProfile":{"networkInterfaces":[{"name":"nic_1","label":"Network + adapter 1","ipAddresses":["10.150.169.45","fe80::250:56ff:fe95:8397","2404:f801:4800:18:250:56ff:fe95:8397"],"macAddress":"00:50:56:95:83:97","networkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network","networkMoRefId":"network-563661","networkMoName":"VM + Network","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset","gateway":["10.150.168.1","fe80::12f3:11ff:fe36:994b","fe80::12f3:11ff:fe3b:55d3"],"ipAddress":"10.150.169.45","subnetMask":"255.255.248.0","ipAddressInfo":[{"ipAddress":"10.150.169.45","subnetMask":"255.255.248.0"},{"ipAddress":"fe80::250:56ff:fe95:8397","subnetMask":"ffff:ffff:ffff:ffff:0000:0000:0000:0000"},{"ipAddress":"2404:f801:4800:18:250:56ff:fe95:8397","subnetMask":"ffff:ffff:ffff:ffff:0000:0000:0000:0000"}]}}]},"storageProfile":{"disks":[{"diskObjectId":"2158-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"}]},"securityProfile":{"uefiSettings":{"secureBootEnabled":false}},"osProfile":{"computerName":"azcli-test-vm","osType":"Linux","osName":"Ubuntu + Linux (64-bit)","guestId":"ubuntu64Guest","toolsRunningStatus":"guestToolsRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"10304"},"hardwareProfile":{"memorySizeMB":2048,"numCPUs":2,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"moRefId":"vm-1107247","moName":"azcli-test-vm","folderPath":"ArcPrivateClouds-67","smbiosUuid":"4215dd6f-c081-60ce-bb61-d1867f33c1e5","firmwareType":"bios","powerState":"poweredOn"}}' headers: cache-control: - no-cache content-length: - - '592' + - '3657' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:26:08 GMT + - Wed, 23 Nov 2022 10:44:35 GMT etag: - - '"8f00a6dd-0000-0100-0000-62a8a8760000"' + - '"2301a0c8-0000-0100-0000-637df9870000"' expires: - '-1' pragma: @@ -2448,9 +2443,65 @@ interactions: - 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.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm/stop?api-version=2022-01-10-preview + response: + body: + string: 'null' + headers: + api-supported-versions: + - 2020-10-01-preview, 2022-01-10-preview, 2022-07-15-preview + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/94485c57-5f79-456b-9dc2-aa6f7b5be2a6*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2022-01-10-preview + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Nov 2022 10:44:36 GMT + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/94485c57-5f79-456b-9dc2-aa6f7b5be2a6*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2022-01-10-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: @@ -2459,33 +2510,29 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - connectedvmware vm update + - connectedvmware vm stop Connection: - keep-alive ParameterSetName: - - -g --name --memory-size --num-CPUs + - -g --name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm?api-version=2020-10-01-preview + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/94485c57-5f79-456b-9dc2-aa6f7b5be2a6*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2022-01-10-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","name":"azcli-test-vm","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"sanmishra@microsoft.com","createdByType":"User","createdAt":"2022-06-14T15:23:41.3119921Z","lastModifiedBy":"ac9dc5fe-b644-4832-9d03-d9f1ab70c5f7","lastModifiedByType":"Application","lastModifiedAt":"2022-06-14T15:26:09.2344437Z"},"properties":{"placementProfile":{"resourcePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/resourcePools/azcli-test-resource-pool"},"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-vc","provisioningState":"Succeeded","statuses":[{"status":"True","type":"CustomizationCompleted","lastUpdatedAt":"2022-06-14T15:24:50Z"},{"status":"True","type":"Ready","lastUpdatedAt":"2022-06-14T15:25:40.2284223Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-06-14T15:25:40.2284223Z"}],"vmId":"831dc695-badc-459b-9485-9b48f9e0b03e","customResourceName":"831dc695-badc-459b-9485-9b48f9e0b03e","networkProfile":{"networkInterfaces":[{"name":"nic_1","label":"Network - adapter 1","ipAddresses":["10.150.171.188","fe80::250:56ff:fe95:2c8b","2404:f801:4800:18:250:56ff:fe95:2c8b"],"macAddress":"00:50:56:95:2c:8b","networkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network","networkMoRefId":"network-563661","networkMoName":"VM - Network","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset","gateway":["10.150.168.1","fe80::12f3:11ff:fe3b:55d3","fe80::12f3:11ff:fe36:994b"],"ipAddress":"10.150.171.188","subnetMask":"255.255.248.0","ipAddressInfo":[{"ipAddress":"10.150.171.188","subnetMask":"255.255.248.0"},{"ipAddress":"fe80::250:56ff:fe95:2c8b","subnetMask":"ffff:ffff:ffff:ffff:0000:0000:0000:0000"},{"ipAddress":"2404:f801:4800:18:250:56ff:fe95:2c8b","subnetMask":"ffff:ffff:ffff:ffff:0000:0000:0000:0000"}]}}]},"storageProfile":{"disks":[{"diskObjectId":"1211-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-vm","osType":"Linux","osName":"Ubuntu - Linux (64-bit)","toolsRunningStatus":"guestToolsRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"10304"},"hardwareProfile":{"memorySizeMB":2048,"numCPUs":2,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"instanceUuid":"831dc695-badc-459b-9485-9b48f9e0b03e","moRefId":"vm-731238","moName":"azcli-test-vm","folderPath":"ArcPrivateClouds-67","smbiosUuid":"4215bf71-1ae1-1b9d-7ca9-220e15c5133a","firmwareType":"bios","powerState":"poweredOn"}}' + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/94485c57-5f79-456b-9dc2-aa6f7b5be2a6*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","name":"94485c57-5f79-456b-9dc2-aa6f7b5be2a6*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","status":"Succeeded","startTime":"2022-11-23T10:44:36.5636097Z","endTime":"2022-11-23T10:44:58.2048414Z","properties":null}' headers: cache-control: - no-cache content-length: - - '3776' + - '592' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:26:09 GMT + - Wed, 23 Nov 2022 10:45:07 GMT etag: - - '"2b01a1dd-0000-0100-0000-62a8a8910000"' + - '"7e014dad-0000-0100-0000-637df9aa0000"' expires: - '-1' pragma: @@ -2498,104 +2545,104 @@ 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 Connection: - keep-alive - Content-Length: - - '23' - Content-Type: - - application/json ParameterSetName: - -g --name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-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-vm/stop?api-version=2020-10-01-preview + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/94485c57-5f79-456b-9dc2-aa6f7b5be2a6*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2022-01-10-preview response: body: - string: 'null' + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/94485c57-5f79-456b-9dc2-aa6f7b5be2a6*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","name":"94485c57-5f79-456b-9dc2-aa6f7b5be2a6*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","status":"Succeeded","startTime":"2022-11-23T10:44:36.5636097Z","endTime":"2022-11-23T10:44:58.2048414Z","properties":null}' headers: - api-supported-versions: - - 2020-10-01-preview, 2022-01-10-preview - azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/370e27f2-51ab-43c3-b591-33931a8940a4*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2020-10-01-preview cache-control: - no-cache content-length: - - '4' + - '592' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:26:12 GMT + - Wed, 23 Nov 2022 10:45:07 GMT + etag: + - '"7e014dad-0000-0100-0000-637df9aa0000"' expires: - '-1' - location: - - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/370e27f2-51ab-43c3-b591-33931a8940a4*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?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 start Connection: - keep-alive + Content-Length: + - '0' ParameterSetName: - -g --name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/370e27f2-51ab-43c3-b591-33931a8940a4*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2020-10-01-preview + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm/start?api-version=2022-01-10-preview response: body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/370e27f2-51ab-43c3-b591-33931a8940a4*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","name":"370e27f2-51ab-43c3-b591-33931a8940a4*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","status":"Accepted","startTime":"2022-06-14T15:26:12.3551561Z"}' + string: 'null' headers: + api-supported-versions: + - 2020-10-01-preview, 2022-01-10-preview, 2022-07-15-preview + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/e7972f53-cacc-4217-b629-e15495f64139*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2022-01-10-preview cache-control: - no-cache content-length: - - '532' + - '4' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:26:28 GMT - etag: - - '"8f00ffdd-0000-0100-0000-62a8a8940000"' + - Wed, 23 Nov 2022 10:49:05 GMT expires: - '-1' + location: + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/e7972f53-cacc-4217-b629-e15495f64139*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2022-01-10-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 @@ -2607,29 +2654,29 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - connectedvmware vm stop + - connectedvmware vm start Connection: - keep-alive ParameterSetName: - -g --name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/370e27f2-51ab-43c3-b591-33931a8940a4*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2020-10-01-preview + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/e7972f53-cacc-4217-b629-e15495f64139*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2022-01-10-preview response: body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/370e27f2-51ab-43c3-b591-33931a8940a4*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","name":"370e27f2-51ab-43c3-b591-33931a8940a4*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","status":"Succeeded","startTime":"2022-06-14T15:26:12.3551561Z","endTime":"2022-06-14T15:26:29.640323Z","properties":null}' + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/e7972f53-cacc-4217-b629-e15495f64139*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","name":"e7972f53-cacc-4217-b629-e15495f64139*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","status":"Succeeded","startTime":"2022-11-23T10:49:05.5171278Z","endTime":"2022-11-23T10:49:32.9789773Z","properties":null}' headers: cache-control: - no-cache content-length: - - '591' + - '592' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:26:58 GMT + - Wed, 23 Nov 2022 10:49:35 GMT etag: - - '"8f0038de-0000-0100-0000-62a8a8a50000"' + - '"7e016cb0-0000-0100-0000-637dfabc0000"' expires: - '-1' pragma: @@ -2653,29 +2700,29 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - connectedvmware vm stop + - connectedvmware vm start Connection: - keep-alive ParameterSetName: - -g --name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/370e27f2-51ab-43c3-b591-33931a8940a4*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2020-10-01-preview + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/e7972f53-cacc-4217-b629-e15495f64139*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2022-01-10-preview response: body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/370e27f2-51ab-43c3-b591-33931a8940a4*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","name":"370e27f2-51ab-43c3-b591-33931a8940a4*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","status":"Succeeded","startTime":"2022-06-14T15:26:12.3551561Z","endTime":"2022-06-14T15:26:29.640323Z","properties":null}' + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/e7972f53-cacc-4217-b629-e15495f64139*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","name":"e7972f53-cacc-4217-b629-e15495f64139*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","status":"Succeeded","startTime":"2022-11-23T10:49:05.5171278Z","endTime":"2022-11-23T10:49:32.9789773Z","properties":null}' headers: cache-control: - no-cache content-length: - - '591' + - '592' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:26:59 GMT + - Wed, 23 Nov 2022 10:49:36 GMT etag: - - '"8f0038de-0000-0100-0000-62a8a8a50000"' + - '"7e016cb0-0000-0100-0000-637dfabc0000"' expires: - '-1' pragma: @@ -2699,25 +2746,25 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - connectedvmware vm start + - connectedvmware vm delete Connection: - keep-alive Content-Length: - '0' ParameterSetName: - - -g --name + - -g --name --retain -y User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-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-vm/start?api-version=2020-10-01-preview + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm?api-version=2022-01-10-preview&force=false&retain=true response: body: string: 'null' headers: api-supported-versions: - - 2020-10-01-preview, 2022-01-10-preview + - 2020-10-01-preview, 2022-01-10-preview, 2022-07-15-preview azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/e1ac2e14-10c2-4a3f-9340-3092a06b2c1e*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2020-10-01-preview + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/b641daee-30b3-4dd5-b8cc-23edbd0e2d4f*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2022-01-10-preview cache-control: - no-cache content-length: @@ -2725,11 +2772,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:27:01 GMT + - Wed, 23 Nov 2022 10:49:39 GMT + etag: + - '"23019ccd-0000-0100-0000-637dfac40000"' expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/e1ac2e14-10c2-4a3f-9340-3092a06b2c1e*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2020-10-01-preview + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/b641daee-30b3-4dd5-b8cc-23edbd0e2d4f*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2022-01-10-preview pragma: - no-cache strict-transport-security: @@ -2738,8 +2787,8 @@ interactions: - nosniff x-ms-providerhub-traffic: - 'True' - x-ms-ratelimit-remaining-subscription-writes: - - '1199' + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' status: code: 202 message: Accepted @@ -2751,18 +2800,18 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - connectedvmware vm start + - connectedvmware vm delete Connection: - keep-alive ParameterSetName: - - -g --name + - -g --name --retain -y User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/e1ac2e14-10c2-4a3f-9340-3092a06b2c1e*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2020-10-01-preview + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/b641daee-30b3-4dd5-b8cc-23edbd0e2d4f*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2022-01-10-preview response: body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/e1ac2e14-10c2-4a3f-9340-3092a06b2c1e*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","name":"e1ac2e14-10c2-4a3f-9340-3092a06b2c1e*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","status":"Accepted","startTime":"2022-06-14T15:27:02.1655963Z"}' + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/b641daee-30b3-4dd5-b8cc-23edbd0e2d4f*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","name":"b641daee-30b3-4dd5-b8cc-23edbd0e2d4f*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","status":"Deleting","startTime":"2022-11-23T10:49:40.2454059Z"}' headers: cache-control: - no-cache @@ -2771,9 +2820,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:27:17 GMT + - Wed, 23 Nov 2022 10:50:10 GMT etag: - - '"8f0093de-0000-0100-0000-62a8a8c60000"' + - '"7e0186b0-0000-0100-0000-637dfac40000"' expires: - '-1' pragma: @@ -2793,29 +2842,29 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - connectedvmware vm start + - connectedvmware vm delete Connection: - keep-alive ParameterSetName: - - -g --name + - -g --name --retain -y User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/e1ac2e14-10c2-4a3f-9340-3092a06b2c1e*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2020-10-01-preview + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/b641daee-30b3-4dd5-b8cc-23edbd0e2d4f*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2022-01-10-preview response: body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/e1ac2e14-10c2-4a3f-9340-3092a06b2c1e*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","name":"e1ac2e14-10c2-4a3f-9340-3092a06b2c1e*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","status":"Succeeded","startTime":"2022-06-14T15:27:02.1655963Z","endTime":"2022-06-14T15:27:19.6105116Z","properties":null}' + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/b641daee-30b3-4dd5-b8cc-23edbd0e2d4f*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","name":"b641daee-30b3-4dd5-b8cc-23edbd0e2d4f*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","status":"Succeeded","startTime":"2022-11-23T10:49:40.2454059Z","properties":null}' headers: cache-control: - no-cache content-length: - - '592' + - '551' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:27:47 GMT + - Wed, 23 Nov 2022 10:50:41 GMT etag: - - '"8f00cfde-0000-0100-0000-62a8a8d70000"' + - '"7e012db1-0000-0100-0000-637dfaf60000"' expires: - '-1' pragma: @@ -2831,6 +2880,66 @@ interactions: status: code: 200 message: OK +- request: + body: '{"location": "eastus", "extendedLocation": {"type": "CustomLocation", "name": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"}, + "properties": {"inventoryItemId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/vm-1107247"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - connectedvmware vm create + Connection: + - keep-alive + Content-Length: + - '440' + Content-Type: + - application/json + ParameterSetName: + - -g -l --custom-location --vcenter -i --name + User-Agent: + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm?api-version=2022-01-10-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","name":"azcli-test-vm","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"snaskar@microsoft.com","createdByType":"User","createdAt":"2022-11-23T10:50:46.5991932Z","lastModifiedBy":"snaskar@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T10:50:46.5991932Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/vm-1107247","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","provisioningState":"Accepted","statuses":[{"status":"False","type":"Ready","reason":"Provisioning","message":"The + resource is being provisioned.","severity":"Info","lastUpdatedAt":"2022-11-23T10:50:48.5370355Z"},{"status":"False","type":"Idle","reason":"Provisioning","message":"The + resource is being provisioned.","severity":"Info","lastUpdatedAt":"2022-11-23T10:50:48.5370355Z"}]}}' + headers: + api-supported-versions: + - 2020-10-01-preview, 2022-01-10-preview, 2022-07-15-preview + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/3f53ab20-9eb3-411d-92f4-b25c2c8d9519*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2022-01-10-preview + cache-control: + - no-cache + content-length: + - '1467' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Nov 2022 10:50:49 GMT + etag: + - '"230180ce-0000-0100-0000-637dfb080000"' + expires: + - '-1' + location: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm + 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: 201 + message: Created - request: body: null headers: @@ -2839,18 +2948,18 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - connectedvmware vm start + - connectedvmware vm create Connection: - keep-alive ParameterSetName: - - -g --name + - -g -l --custom-location --vcenter -i --name User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/e1ac2e14-10c2-4a3f-9340-3092a06b2c1e*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2020-10-01-preview + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/3f53ab20-9eb3-411d-92f4-b25c2c8d9519*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2022-01-10-preview response: body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/e1ac2e14-10c2-4a3f-9340-3092a06b2c1e*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","name":"e1ac2e14-10c2-4a3f-9340-3092a06b2c1e*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","status":"Succeeded","startTime":"2022-06-14T15:27:02.1655963Z","endTime":"2022-06-14T15:27:19.6105116Z","properties":null}' + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/3f53ab20-9eb3-411d-92f4-b25c2c8d9519*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","name":"3f53ab20-9eb3-411d-92f4-b25c2c8d9519*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","status":"Succeeded","startTime":"2022-11-23T10:50:48.0987097Z","endTime":"2022-11-23T10:51:09.3587235Z","properties":null}' headers: cache-control: - no-cache @@ -2859,9 +2968,59 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:27:48 GMT + - Wed, 23 Nov 2022 10:51:21 GMT + etag: + - '"7e01c4b1-0000-0100-0000-637dfb1d0000"' + 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 -i --name + User-Agent: + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm?api-version=2022-01-10-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","name":"azcli-test-vm","type":"microsoft.connectedvmwarevsphere/virtualmachines","kind":"VMware","location":"eastus","extendedLocation":{"type":"CustomLocation","name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ExtendedLocation/CustomLocations/azcli-test-cl"},"systemData":{"createdBy":"snaskar@microsoft.com","createdByType":"User","createdAt":"2022-11-23T10:50:46.5991932Z","lastModifiedBy":"snaskar@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-23T10:50:46.5991932Z"},"properties":{"inventoryItemId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc/InventoryItems/vm-1107247","vCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVmwarevSphere/vcenters/azcli-test-vc","provisioningState":"Succeeded","statuses":[{"status":"True","type":"Ready","lastUpdatedAt":"2022-11-23T10:51:09.0118997Z"},{"status":"True","type":"Idle","lastUpdatedAt":"2022-11-23T10:51:09.0118997Z"}],"vmId":"102182d9-644a-4a50-a659-b74d711aa631","placementProfile":{},"customResourceName":"102182d9-644a-4a50-a659-b74d711aa631","moRefId":"vm-1107247","networkProfile":{"networkInterfaces":[{"label":"Network + adapter 1","ipAddresses":["10.150.169.45","fe80::250:56ff:fe95:8397","2404:f801:4800:18:250:56ff:fe95:8397"],"macAddress":"00:50:56:95:83:97","networkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/azcli-test-virtual-network","networkMoRefId":"network-563661","networkMoName":"VM + Network","nicType":"vmxnet3","deviceKey":4000,"powerOnBoot":"enabled","ipSettings":{"allocationMethod":"unset","gateway":["10.150.168.1","fe80::12f3:11ff:fe36:994b","fe80::12f3:11ff:fe3b:55d3"],"ipAddress":"10.150.169.45","subnetMask":"255.255.248.0","ipAddressInfo":[{"ipAddress":"10.150.169.45","subnetMask":"255.255.248.0"},{"ipAddress":"fe80::250:56ff:fe95:8397","subnetMask":"ffff:ffff:ffff:ffff:0000:0000:0000:0000"},{"ipAddress":"2404:f801:4800:18:250:56ff:fe95:8397","subnetMask":"ffff:ffff:ffff:ffff:0000:0000:0000:0000"}]}}]},"storageProfile":{"disks":[{"diskObjectId":"2158-2000","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"}]},"securityProfile":{"uefiSettings":{"secureBootEnabled":false}},"osProfile":{"computerName":"azcli-test-vm","osType":"Linux","osName":"Ubuntu + Linux (64-bit)","guestId":"ubuntu64Guest","toolsRunningStatus":"guestToolsRunning","toolsVersionStatus":"guestToolsUnmanaged","toolsVersion":"10304"},"hardwareProfile":{"memorySizeMB":2048,"numCPUs":2,"numCoresPerSocket":1,"cpuHotAddEnabled":true,"cpuHotRemoveEnabled":false,"memoryHotAddEnabled":true},"instanceUuid":"7f8fc1e1-b2b2-4366-9a53-97fadee67f20","moName":"azcli-test-vm","folderPath":"ArcPrivateClouds-67","smbiosUuid":"4215dd6f-c081-60ce-bb61-d1867f33c1e5","firmwareType":"bios","powerState":"poweredOn"}}' + headers: + cache-control: + - no-cache + content-length: + - '3363' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Nov 2022 10:51:23 GMT etag: - - '"8f00cfde-0000-0100-0000-62a8a8d70000"' + - '"2301ddce-0000-0100-0000-637dfb1d0000"' expires: - '-1' pragma: @@ -2874,6 +3033,8 @@ interactions: - Accept-Encoding x-content-type-options: - nosniff + x-ms-providerhub-traffic: + - 'True' status: code: 200 message: OK @@ -2893,17 +3054,17 @@ interactions: ParameterSetName: - -g --name -y User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm?api-version=2020-10-01-preview&force=false + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm?api-version=2022-01-10-preview&force=false response: body: string: 'null' headers: api-supported-versions: - - 2020-10-01-preview, 2022-01-10-preview + - 2020-10-01-preview, 2022-01-10-preview, 2022-07-15-preview azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/fbdd490f-156e-4389-b5ba-a279f7972f66*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2020-10-01-preview + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/77346d17-84d2-419d-9f0a-4c6ef2b6e591*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2022-01-10-preview cache-control: - no-cache content-length: @@ -2911,13 +3072,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:27:50 GMT + - Wed, 23 Nov 2022 10:51:26 GMT etag: - - '"2b01e6df-0000-0100-0000-62a8a8f70000"' + - '"230135cf-0000-0100-0000-637dfb2e0000"' expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/fbdd490f-156e-4389-b5ba-a279f7972f66*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2020-10-01-preview + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/77346d17-84d2-419d-9f0a-4c6ef2b6e591*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2022-01-10-preview pragma: - no-cache strict-transport-security: @@ -2945,12 +3106,12 @@ interactions: ParameterSetName: - -g --name -y User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/fbdd490f-156e-4389-b5ba-a279f7972f66*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2020-10-01-preview + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/77346d17-84d2-419d-9f0a-4c6ef2b6e591*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2022-01-10-preview response: body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/fbdd490f-156e-4389-b5ba-a279f7972f66*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","name":"fbdd490f-156e-4389-b5ba-a279f7972f66*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","status":"Deleting","startTime":"2022-06-14T15:27:51.1676208Z"}' + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/77346d17-84d2-419d-9f0a-4c6ef2b6e591*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","name":"77346d17-84d2-419d-9f0a-4c6ef2b6e591*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","status":"Deleting","startTime":"2022-11-23T10:51:26.4588896Z"}' headers: cache-control: - no-cache @@ -2959,9 +3120,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:28:22 GMT + - Wed, 23 Nov 2022 10:51:56 GMT etag: - - '"8f0042df-0000-0100-0000-62a8a8f70000"' + - '"7e0124b2-0000-0100-0000-637dfb2e0000"' expires: - '-1' pragma: @@ -2987,12 +3148,12 @@ interactions: ParameterSetName: - -g --name -y User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/fbdd490f-156e-4389-b5ba-a279f7972f66*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2020-10-01-preview + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/77346d17-84d2-419d-9f0a-4c6ef2b6e591*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2022-01-10-preview response: body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/fbdd490f-156e-4389-b5ba-a279f7972f66*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","name":"fbdd490f-156e-4389-b5ba-a279f7972f66*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","status":"Deleting","startTime":"2022-06-14T15:27:51.1676208Z"}' + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/77346d17-84d2-419d-9f0a-4c6ef2b6e591*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","name":"77346d17-84d2-419d-9f0a-4c6ef2b6e591*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","status":"Deleting","startTime":"2022-11-23T10:51:26.4588896Z"}' headers: cache-control: - no-cache @@ -3001,9 +3162,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:28:52 GMT + - Wed, 23 Nov 2022 10:52:26 GMT etag: - - '"8f0042df-0000-0100-0000-62a8a8f70000"' + - '"7e0124b2-0000-0100-0000-637dfb2e0000"' expires: - '-1' pragma: @@ -3029,12 +3190,12 @@ interactions: ParameterSetName: - -g --name -y User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/fbdd490f-156e-4389-b5ba-a279f7972f66*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2020-10-01-preview + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/77346d17-84d2-419d-9f0a-4c6ef2b6e591*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2?api-version=2022-01-10-preview response: body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/fbdd490f-156e-4389-b5ba-a279f7972f66*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","name":"fbdd490f-156e-4389-b5ba-a279f7972f66*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","status":"Succeeded","startTime":"2022-06-14T15:27:51.1676208Z","properties":null}' + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/77346d17-84d2-419d-9f0a-4c6ef2b6e591*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","name":"77346d17-84d2-419d-9f0a-4c6ef2b6e591*8C24F2E947DEC83F8FA8A160B4EB9CF89800D9D0046AB1D69E82BD6A56D025D2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/azcli-test-vm","status":"Succeeded","startTime":"2022-11-23T10:51:26.4588896Z","properties":null}' headers: cache-control: - no-cache @@ -3043,9 +3204,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:29:23 GMT + - Wed, 23 Nov 2022 10:52:57 GMT etag: - - '"8f0061e0-0000-0100-0000-62a8a93a0000"' + - '"7e01d5b2-0000-0100-0000-637dfb6f0000"' expires: - '-1' pragma: @@ -3077,17 +3238,17 @@ interactions: ParameterSetName: - -g --name -y User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) 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/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/azcli-test-resource-pool?api-version=2022-01-10-preview&force=false response: body: string: 'null' headers: api-supported-versions: - - 2020-10-01-preview, 2022-01-10-preview + - 2020-10-01-preview, 2022-01-10-preview, 2022-07-15-preview azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/38ca0033-c7b7-4725-97ce-2bdfd7905234*E33D395D76158BAF7C5815D334D05A902D2A49219B7EE04A2C06FA58A8E43EFC?api-version=2020-10-01-preview + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/16b98cce-5e3e-4132-ba16-1352fb10d73c*E33D395D76158BAF7C5815D334D05A902D2A49219B7EE04A2C06FA58A8E43EFC?api-version=2022-01-10-preview cache-control: - no-cache content-length: @@ -3095,13 +3256,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:29:29 GMT + - Wed, 23 Nov 2022 10:53:02 GMT etag: - - '"bb04d07b-0000-0100-0000-62a8a9590000"' + - '"d100079b-0000-0100-0000-637dfb8e0000"' expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/38ca0033-c7b7-4725-97ce-2bdfd7905234*E33D395D76158BAF7C5815D334D05A902D2A49219B7EE04A2C06FA58A8E43EFC?api-version=2020-10-01-preview + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/16b98cce-5e3e-4132-ba16-1352fb10d73c*E33D395D76158BAF7C5815D334D05A902D2A49219B7EE04A2C06FA58A8E43EFC?api-version=2022-01-10-preview pragma: - no-cache strict-transport-security: @@ -3129,23 +3290,23 @@ interactions: ParameterSetName: - -g --name -y User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/38ca0033-c7b7-4725-97ce-2bdfd7905234*E33D395D76158BAF7C5815D334D05A902D2A49219B7EE04A2C06FA58A8E43EFC?api-version=2020-10-01-preview + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/16b98cce-5e3e-4132-ba16-1352fb10d73c*E33D395D76158BAF7C5815D334D05A902D2A49219B7EE04A2C06FA58A8E43EFC?api-version=2022-01-10-preview response: body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/38ca0033-c7b7-4725-97ce-2bdfd7905234*E33D395D76158BAF7C5815D334D05A902D2A49219B7EE04A2C06FA58A8E43EFC","name":"38ca0033-c7b7-4725-97ce-2bdfd7905234*E33D395D76158BAF7C5815D334D05A902D2A49219B7EE04A2C06FA58A8E43EFC","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/azcli-test-resource-pool","status":"Succeeded","startTime":"2022-06-14T15:29:29.4895821Z","endTime":"2022-06-14T15:29:32.4393125Z","properties":null}' + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/16b98cce-5e3e-4132-ba16-1352fb10d73c*E33D395D76158BAF7C5815D334D05A902D2A49219B7EE04A2C06FA58A8E43EFC","name":"16b98cce-5e3e-4132-ba16-1352fb10d73c*E33D395D76158BAF7C5815D334D05A902D2A49219B7EE04A2C06FA58A8E43EFC","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/azcli-test-resource-pool","status":"Succeeded","startTime":"2022-11-23T10:53:02.8567291Z","endTime":"2022-11-23T10:53:07.263207Z","properties":null}' headers: cache-control: - no-cache content-length: - - '601' + - '600' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:29:45 GMT + - Wed, 23 Nov 2022 10:53:33 GMT etag: - - '"8f0064e1-0000-0100-0000-62a8a95c0000"' + - '"7e0138b3-0000-0100-0000-637dfb930000"' expires: - '-1' pragma: @@ -3177,17 +3338,17 @@ interactions: ParameterSetName: - -g --name -y User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/clusters/azcli-test-cluster?api-version=2020-10-01-preview&force=false + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/clusters/azcli-test-cluster?api-version=2022-01-10-preview&force=false response: body: string: 'null' headers: api-supported-versions: - - 2020-10-01-preview, 2022-01-10-preview + - 2020-10-01-preview, 2022-01-10-preview, 2022-07-15-preview azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/923060b8-3af1-48e5-9f24-768649347d58*BA7D5BCC10B0E3C8353A43CFDD3238340013F133409368F1AB6C672583FED47E?api-version=2020-10-01-preview + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/7ef570e4-7a5f-41f5-b2e1-c929d6ca33ce*BA7D5BCC10B0E3C8353A43CFDD3238340013F133409368F1AB6C672583FED47E?api-version=2022-01-10-preview cache-control: - no-cache content-length: @@ -3195,13 +3356,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:29:49 GMT + - Wed, 23 Nov 2022 10:53:35 GMT etag: - - '"4604ca33-0000-0100-0000-62a8a96d0000"' + - '"21023ea3-0000-0100-0000-637dfbaf0000"' expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/923060b8-3af1-48e5-9f24-768649347d58*BA7D5BCC10B0E3C8353A43CFDD3238340013F133409368F1AB6C672583FED47E?api-version=2020-10-01-preview + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/7ef570e4-7a5f-41f5-b2e1-c929d6ca33ce*BA7D5BCC10B0E3C8353A43CFDD3238340013F133409368F1AB6C672583FED47E?api-version=2022-01-10-preview pragma: - no-cache strict-transport-security: @@ -3211,7 +3372,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + - '14998' status: code: 202 message: Accepted @@ -3229,23 +3390,23 @@ interactions: ParameterSetName: - -g --name -y User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/923060b8-3af1-48e5-9f24-768649347d58*BA7D5BCC10B0E3C8353A43CFDD3238340013F133409368F1AB6C672583FED47E?api-version=2020-10-01-preview + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/7ef570e4-7a5f-41f5-b2e1-c929d6ca33ce*BA7D5BCC10B0E3C8353A43CFDD3238340013F133409368F1AB6C672583FED47E?api-version=2022-01-10-preview response: body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/923060b8-3af1-48e5-9f24-768649347d58*BA7D5BCC10B0E3C8353A43CFDD3238340013F133409368F1AB6C672583FED47E","name":"923060b8-3af1-48e5-9f24-768649347d58*BA7D5BCC10B0E3C8353A43CFDD3238340013F133409368F1AB6C672583FED47E","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/clusters/azcli-test-cluster","status":"Succeeded","startTime":"2022-06-14T15:29:49.3443311Z","endTime":"2022-06-14T15:29:51.0262696Z","properties":null}' + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/7ef570e4-7a5f-41f5-b2e1-c929d6ca33ce*BA7D5BCC10B0E3C8353A43CFDD3238340013F133409368F1AB6C672583FED47E","name":"7ef570e4-7a5f-41f5-b2e1-c929d6ca33ce*BA7D5BCC10B0E3C8353A43CFDD3238340013F133409368F1AB6C672583FED47E","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/clusters/azcli-test-cluster","status":"Succeeded","startTime":"2022-11-23T10:53:35.757613Z","endTime":"2022-11-23T10:53:40.3484279Z","properties":null}' headers: cache-control: - no-cache content-length: - - '590' + - '589' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:30:04 GMT + - Wed, 23 Nov 2022 10:54:05 GMT etag: - - '"8f00f5e1-0000-0100-0000-62a8a96f0000"' + - '"7e0191b3-0000-0100-0000-637dfbb40000"' expires: - '-1' pragma: @@ -3277,17 +3438,17 @@ interactions: ParameterSetName: - -g --name -y User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/datastores/azcli-test-datastore?api-version=2020-10-01-preview&force=false + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/datastores/azcli-test-datastore?api-version=2022-01-10-preview&force=false response: body: string: 'null' headers: api-supported-versions: - - 2020-10-01-preview, 2022-01-10-preview + - 2020-10-01-preview, 2022-01-10-preview, 2022-07-15-preview azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/253e9a41-fa6b-43b2-881a-1786fe7fc49e*0BA3195A388F8E68B2BCA768784A2C477B581CF3750C51FB69057C6907EB9D70?api-version=2020-10-01-preview + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/77c65392-05aa-4cf9-b2d1-a1d397c713cb*0BA3195A388F8E68B2BCA768784A2C477B581CF3750C51FB69057C6907EB9D70?api-version=2022-01-10-preview cache-control: - no-cache content-length: @@ -3295,13 +3456,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:30:09 GMT + - Wed, 23 Nov 2022 10:54:08 GMT etag: - - '"10000855-0000-0100-0000-62a8a9810000"' + - '"05010414-0000-0100-0000-637dfbd00000"' expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/253e9a41-fa6b-43b2-881a-1786fe7fc49e*0BA3195A388F8E68B2BCA768784A2C477B581CF3750C51FB69057C6907EB9D70?api-version=2020-10-01-preview + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/77c65392-05aa-4cf9-b2d1-a1d397c713cb*0BA3195A388F8E68B2BCA768784A2C477B581CF3750C51FB69057C6907EB9D70?api-version=2022-01-10-preview pragma: - no-cache strict-transport-security: @@ -3311,7 +3472,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + - '14998' status: code: 202 message: Accepted @@ -3329,12 +3490,12 @@ interactions: ParameterSetName: - -g --name -y User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/253e9a41-fa6b-43b2-881a-1786fe7fc49e*0BA3195A388F8E68B2BCA768784A2C477B581CF3750C51FB69057C6907EB9D70?api-version=2020-10-01-preview + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/77c65392-05aa-4cf9-b2d1-a1d397c713cb*0BA3195A388F8E68B2BCA768784A2C477B581CF3750C51FB69057C6907EB9D70?api-version=2022-01-10-preview response: body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/253e9a41-fa6b-43b2-881a-1786fe7fc49e*0BA3195A388F8E68B2BCA768784A2C477B581CF3750C51FB69057C6907EB9D70","name":"253e9a41-fa6b-43b2-881a-1786fe7fc49e*0BA3195A388F8E68B2BCA768784A2C477B581CF3750C51FB69057C6907EB9D70","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/datastores/azcli-test-datastore","status":"Succeeded","startTime":"2022-06-14T15:30:09.0960546Z","endTime":"2022-06-14T15:30:12.6376934Z","properties":null}' + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/77c65392-05aa-4cf9-b2d1-a1d397c713cb*0BA3195A388F8E68B2BCA768784A2C477B581CF3750C51FB69057C6907EB9D70","name":"77c65392-05aa-4cf9-b2d1-a1d397c713cb*0BA3195A388F8E68B2BCA768784A2C477B581CF3750C51FB69057C6907EB9D70","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/datastores/azcli-test-datastore","status":"Succeeded","startTime":"2022-11-23T10:54:08.4552348Z","endTime":"2022-11-23T10:54:11.6652164Z","properties":null}' headers: cache-control: - no-cache @@ -3343,19 +3504,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:30:24 GMT + - Wed, 23 Nov 2022 10:54:38 GMT etag: - - '"8f0080e2-0000-0100-0000-62a8a9840000"' + - '"7e01ebb3-0000-0100-0000-637dfbd30000"' expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff status: @@ -3377,17 +3534,17 @@ interactions: ParameterSetName: - -g --name -y User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/hosts/azcli-test-host?api-version=2020-10-01-preview&force=false + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/hosts/azcli-test-host?api-version=2022-01-10-preview&force=false response: body: string: 'null' headers: api-supported-versions: - - 2020-10-01-preview, 2022-01-10-preview + - 2020-10-01-preview, 2022-01-10-preview, 2022-07-15-preview azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/f4bdc936-8c5a-4ac3-bdd0-a33079dce0cc*B55A001CADA037E0E2ED8E056C839E3102437398BD45444965294749D0CB7C3C?api-version=2020-10-01-preview + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/5e3adf06-bd83-47f9-ba01-03d0687c92e6*B55A001CADA037E0E2ED8E056C839E3102437398BD45444965294749D0CB7C3C?api-version=2022-01-10-preview cache-control: - no-cache content-length: @@ -3395,13 +3552,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:30:26 GMT + - Wed, 23 Nov 2022 10:54:39 GMT etag: - - '"2d01a8e6-0000-0100-0000-62a8a9930000"' + - '"1900f422-0000-0100-0000-637dfbf00000"' expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/f4bdc936-8c5a-4ac3-bdd0-a33079dce0cc*B55A001CADA037E0E2ED8E056C839E3102437398BD45444965294749D0CB7C3C?api-version=2020-10-01-preview + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/5e3adf06-bd83-47f9-ba01-03d0687c92e6*B55A001CADA037E0E2ED8E056C839E3102437398BD45444965294749D0CB7C3C?api-version=2022-01-10-preview pragma: - no-cache strict-transport-security: @@ -3411,7 +3568,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + - '14997' status: code: 202 message: Accepted @@ -3429,33 +3586,29 @@ interactions: ParameterSetName: - -g --name -y User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/f4bdc936-8c5a-4ac3-bdd0-a33079dce0cc*B55A001CADA037E0E2ED8E056C839E3102437398BD45444965294749D0CB7C3C?api-version=2020-10-01-preview + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/5e3adf06-bd83-47f9-ba01-03d0687c92e6*B55A001CADA037E0E2ED8E056C839E3102437398BD45444965294749D0CB7C3C?api-version=2022-01-10-preview response: body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/f4bdc936-8c5a-4ac3-bdd0-a33079dce0cc*B55A001CADA037E0E2ED8E056C839E3102437398BD45444965294749D0CB7C3C","name":"f4bdc936-8c5a-4ac3-bdd0-a33079dce0cc*B55A001CADA037E0E2ED8E056C839E3102437398BD45444965294749D0CB7C3C","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/hosts/azcli-test-host","status":"Succeeded","startTime":"2022-06-14T15:30:27.7375069Z","endTime":"2022-06-14T15:30:29.605743Z","properties":null}' + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/5e3adf06-bd83-47f9-ba01-03d0687c92e6*B55A001CADA037E0E2ED8E056C839E3102437398BD45444965294749D0CB7C3C","name":"5e3adf06-bd83-47f9-ba01-03d0687c92e6*B55A001CADA037E0E2ED8E056C839E3102437398BD45444965294749D0CB7C3C","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/hosts/azcli-test-host","status":"Succeeded","startTime":"2022-11-23T10:54:40.6884489Z","endTime":"2022-11-23T10:54:43.8245266Z","properties":null}' headers: cache-control: - no-cache content-length: - - '583' + - '584' content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:30:43 GMT + - Wed, 23 Nov 2022 10:55:11 GMT etag: - - '"8f0007e3-0000-0100-0000-62a8a9950000"' + - '"7e016db4-0000-0100-0000-637dfbf30000"' expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff status: @@ -3477,17 +3630,17 @@ interactions: ParameterSetName: - -g --name -y User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) 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/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks/azcli-test-virtual-network?api-version=2022-01-10-preview&force=false response: body: string: 'null' headers: api-supported-versions: - - 2020-10-01-preview, 2022-01-10-preview + - 2020-10-01-preview, 2022-01-10-preview, 2022-07-15-preview azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/e08960bd-d53c-47a9-9383-c264247842ef*CB0A480FE4EF7C13EBE7E6D61E1DABA694436AED00BC4B639CBD00E8ACDF3866?api-version=2020-10-01-preview + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/dc670889-f55a-4585-9268-31c4d379262f*CB0A480FE4EF7C13EBE7E6D61E1DABA694436AED00BC4B639CBD00E8ACDF3866?api-version=2022-01-10-preview cache-control: - no-cache content-length: @@ -3495,13 +3648,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:30:45 GMT + - Wed, 23 Nov 2022 10:55:13 GMT etag: - - '"260112f2-0000-0100-0000-62a8a9a60000"' + - '"350134a0-0000-0100-0000-637dfc110000"' expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/e08960bd-d53c-47a9-9383-c264247842ef*CB0A480FE4EF7C13EBE7E6D61E1DABA694436AED00BC4B639CBD00E8ACDF3866?api-version=2020-10-01-preview + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/dc670889-f55a-4585-9268-31c4d379262f*CB0A480FE4EF7C13EBE7E6D61E1DABA694436AED00BC4B639CBD00E8ACDF3866?api-version=2022-01-10-preview pragma: - no-cache strict-transport-security: @@ -3511,7 +3664,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + - '14998' status: code: 202 message: Accepted @@ -3529,12 +3682,12 @@ interactions: ParameterSetName: - -g --name -y User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/e08960bd-d53c-47a9-9383-c264247842ef*CB0A480FE4EF7C13EBE7E6D61E1DABA694436AED00BC4B639CBD00E8ACDF3866?api-version=2020-10-01-preview + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/dc670889-f55a-4585-9268-31c4d379262f*CB0A480FE4EF7C13EBE7E6D61E1DABA694436AED00BC4B639CBD00E8ACDF3866?api-version=2022-01-10-preview response: body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/e08960bd-d53c-47a9-9383-c264247842ef*CB0A480FE4EF7C13EBE7E6D61E1DABA694436AED00BC4B639CBD00E8ACDF3866","name":"e08960bd-d53c-47a9-9383-c264247842ef*CB0A480FE4EF7C13EBE7E6D61E1DABA694436AED00BC4B639CBD00E8ACDF3866","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks/azcli-test-virtual-network","status":"Succeeded","startTime":"2022-06-14T15:30:46.5285208Z","endTime":"2022-06-14T15:30:48.2888879Z","properties":null}' + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/dc670889-f55a-4585-9268-31c4d379262f*CB0A480FE4EF7C13EBE7E6D61E1DABA694436AED00BC4B639CBD00E8ACDF3866","name":"dc670889-f55a-4585-9268-31c4d379262f*CB0A480FE4EF7C13EBE7E6D61E1DABA694436AED00BC4B639CBD00E8ACDF3866","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks/azcli-test-virtual-network","status":"Succeeded","startTime":"2022-11-23T10:55:13.4099013Z","endTime":"2022-11-23T10:55:17.6493673Z","properties":null}' headers: cache-control: - no-cache @@ -3543,9 +3696,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:31:02 GMT + - Wed, 23 Nov 2022 10:55:43 GMT etag: - - '"8f00a2e3-0000-0100-0000-62a8a9a80000"' + - '"7e01ccb4-0000-0100-0000-637dfc150000"' expires: - '-1' pragma: @@ -3577,17 +3730,17 @@ interactions: ParameterSetName: - -g --name -y User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) 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/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/azcli-test-vm-template?api-version=2022-01-10-preview&force=false response: body: string: 'null' headers: api-supported-versions: - - 2020-10-01-preview, 2022-01-10-preview + - 2020-10-01-preview, 2022-01-10-preview, 2022-07-15-preview azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/196bafef-070d-41e5-9eff-d0fe2f6831fe*04EA61613559B90D23ED3ECFACDF2E6D1E27A0B3817A66B3F21A8114E2761CF3?api-version=2020-10-01-preview + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/c13d1085-f222-48e8-b67a-5d891edf66fe*04EA61613559B90D23ED3ECFACDF2E6D1E27A0B3817A66B3F21A8114E2761CF3?api-version=2022-01-10-preview cache-control: - no-cache content-length: @@ -3595,13 +3748,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:31:03 GMT + - Wed, 23 Nov 2022 10:55:47 GMT etag: - - '"cc0077cd-0000-0100-0000-62a8a9b80000"' + - '"0b019eef-0000-0100-0000-637dfc330000"' expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/196bafef-070d-41e5-9eff-d0fe2f6831fe*04EA61613559B90D23ED3ECFACDF2E6D1E27A0B3817A66B3F21A8114E2761CF3?api-version=2020-10-01-preview + - https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/c13d1085-f222-48e8-b67a-5d891edf66fe*04EA61613559B90D23ED3ECFACDF2E6D1E27A0B3817A66B3F21A8114E2761CF3?api-version=2022-01-10-preview pragma: - no-cache strict-transport-security: @@ -3629,12 +3782,12 @@ interactions: ParameterSetName: - -g --name -y User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-connectedvmware/0.1.1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.42.0 azsdk-python-mgmt-connectedvmware/1.0.0b1 Python/3.10.2 (Linux-5.17.5-76051705-generic-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/196bafef-070d-41e5-9eff-d0fe2f6831fe*04EA61613559B90D23ED3ECFACDF2E6D1E27A0B3817A66B3F21A8114E2761CF3?api-version=2020-10-01-preview + uri: https://management.azure.com/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/c13d1085-f222-48e8-b67a-5d891edf66fe*04EA61613559B90D23ED3ECFACDF2E6D1E27A0B3817A66B3F21A8114E2761CF3?api-version=2022-01-10-preview response: body: - string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/196bafef-070d-41e5-9eff-d0fe2f6831fe*04EA61613559B90D23ED3ECFACDF2E6D1E27A0B3817A66B3F21A8114E2761CF3","name":"196bafef-070d-41e5-9eff-d0fe2f6831fe*04EA61613559B90D23ED3ECFACDF2E6D1E27A0B3817A66B3F21A8114E2761CF3","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/azcli-test-vm-template","status":"Succeeded","startTime":"2022-06-14T15:31:04.4681165Z","endTime":"2022-06-14T15:31:07.2447307Z","properties":null}' + string: '{"id":"/providers/Microsoft.ConnectedVMwarevSphere/locations/EASTUS/operationStatuses/c13d1085-f222-48e8-b67a-5d891edf66fe*04EA61613559B90D23ED3ECFACDF2E6D1E27A0B3817A66B3F21A8114E2761CF3","name":"c13d1085-f222-48e8-b67a-5d891edf66fe*04EA61613559B90D23ED3ECFACDF2E6D1E27A0B3817A66B3F21A8114E2761CF3","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azcli-test-rg/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/azcli-test-vm-template","status":"Succeeded","startTime":"2022-11-23T10:55:47.3974198Z","endTime":"2022-11-23T10:55:50.9929826Z","properties":null}' headers: cache-control: - no-cache @@ -3643,9 +3796,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 14 Jun 2022 15:31:20 GMT + - Wed, 23 Nov 2022 10:56:17 GMT etag: - - '"8f005ce4-0000-0100-0000-62a8a9bb0000"' + - '"7e0129b5-0000-0100-0000-637dfc360000"' 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 38a631e7567..a4495d23728 100644 --- a/src/connectedvmware/azext_connectedvmware/tests/latest/test_connectedvmware_scenario.py +++ b/src/connectedvmware/azext_connectedvmware/tests/latest/test_connectedvmware_scenario.py @@ -53,7 +53,7 @@ def test_connectedvmware(self): self.cmd('az connectedvmware vcenter list -g {rg}').get_output_in_json() ) # vcenter count list should report 1 - self.assertEqual(count, 1, 'vcenter resource count expected to be 1') + self.assertGreaterEqual(count, 1, 'vcenter resource count expected to be at least 1') # Create resource-pool resource. self.cmd( @@ -189,12 +189,16 @@ def test_connectedvmware(self): ) # Validate the show command output with vm name. - self.cmd( + vm = self.cmd( 'az connectedvmware vm show -g {rg} --name {vm_name}', checks=[ self.check('name', '{vm_name}'), ], - ) + ).get_output_in_json() + vm_moRefId = vm['moRefId'] + self.kwargs.update({ 'vm_moRefId': vm_moRefId }) + self.assertIsNotNone(vm_moRefId) + self.assertNotEqual(len(vm_moRefId), 0, 'moRefId of the VM should not be empty') # List the VM resources in this resource group. resource_list = self.cmd( @@ -247,6 +251,14 @@ def test_connectedvmware(self): # Start VM. self.cmd('az connectedvmware vm start -g {rg} --name {vm_name}') + # Disable the VM from azure; delete the ARM resource, retain the VM in vCenter. + self.cmd('az connectedvmware vm delete -g {rg} --name {vm_name} --retain -y') + + # Enable the VM to azure again. + self.cmd( + 'az connectedvmware vm create -g {rg} -l {loc} --custom-location {cus_loc} --vcenter {vc_name} -i {vm_moRefId} --name {vm_name}' + ) + # Delete the created VM. self.cmd('az connectedvmware vm delete -g {rg} --name {vm_name} -y') 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 38a5f12e2f8..028e5f58ddb 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 @@ -29,6 +29,8 @@ class AzureArcVMwareManagementServiceAPI(object): # pylint: disable=too-many- :ivar operations: Operations operations :vartype operations: azure.mgmt.connectedvmware.operations.Operations + :ivar virtual_machines: VirtualMachinesOperations operations + :vartype virtual_machines: azure.mgmt.connectedvmware.operations.VirtualMachinesOperations :ivar resource_pools: ResourcePoolsOperations operations :vartype resource_pools: azure.mgmt.connectedvmware.operations.ResourcePoolsOperations :ivar clusters: ClustersOperations operations @@ -39,8 +41,6 @@ class AzureArcVMwareManagementServiceAPI(object): # pylint: disable=too-many- :vartype datastores: azure.mgmt.connectedvmware.operations.DatastoresOperations :ivar vcenters: VCentersOperations operations :vartype vcenters: azure.mgmt.connectedvmware.operations.VCentersOperations - :ivar virtual_machines: VirtualMachinesOperations operations - :vartype virtual_machines: azure.mgmt.connectedvmware.operations.VirtualMachinesOperations :ivar virtual_machine_templates: VirtualMachineTemplatesOperations operations :vartype virtual_machine_templates: azure.mgmt.connectedvmware.operations.VirtualMachineTemplatesOperations @@ -61,7 +61,7 @@ class AzureArcVMwareManagementServiceAPI(object): # pylint: disable=too-many- :type subscription_id: str :param base_url: Service URL. Default value is 'https://management.azure.com'. :type base_url: str - :keyword api_version: Api Version. The default value is "2020-10-01-preview". Note that + :keyword api_version: Api Version. The default value is "2022-01-10-preview". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no @@ -84,12 +84,12 @@ def __init__( self._deserialize = Deserializer(client_models) self._serialize.client_side_validation = False self.operations = Operations(self._client, self._config, self._serialize, self._deserialize) + self.virtual_machines = VirtualMachinesOperations(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(self._client, self._config, self._serialize, self._deserialize) self.virtual_machine_templates = VirtualMachineTemplatesOperations(self._client, self._config, self._serialize, self._deserialize) self.virtual_networks = VirtualNetworksOperations(self._client, self._config, self._serialize, self._deserialize) self.inventory_items = InventoryItemsOperations(self._client, self._config, self._serialize, self._deserialize) diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/_configuration.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/_configuration.py index 8c0fcbeb174..1ef5cb26bff 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/_configuration.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/_configuration.py @@ -31,7 +31,7 @@ class AzureArcVMwareManagementServiceAPIConfiguration(Configuration): # pylint: :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: The Subscription ID. :type subscription_id: str - :keyword api_version: Api Version. The default value is "2020-10-01-preview". Note that + :keyword api_version: Api Version. The default value is "2022-01-10-preview". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ @@ -44,7 +44,7 @@ def __init__( ): # type: (...) -> None super(AzureArcVMwareManagementServiceAPIConfiguration, self).__init__(**kwargs) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str if credential is None: raise ValueError("Parameter 'credential' must not be None.") diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/_version.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/_version.py index 8761a6c8ec5..e5754a47ce6 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/_version.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "0.1.1" +VERSION = "1.0.0b1" 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 ec58e23df91..b6067bbacce 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 @@ -27,6 +27,8 @@ class AzureArcVMwareManagementServiceAPI: # pylint: disable=too-many-instance :ivar operations: Operations operations :vartype operations: azure.mgmt.connectedvmware.aio.operations.Operations + :ivar virtual_machines: VirtualMachinesOperations operations + :vartype virtual_machines: azure.mgmt.connectedvmware.aio.operations.VirtualMachinesOperations :ivar resource_pools: ResourcePoolsOperations operations :vartype resource_pools: azure.mgmt.connectedvmware.aio.operations.ResourcePoolsOperations :ivar clusters: ClustersOperations operations @@ -37,8 +39,6 @@ class AzureArcVMwareManagementServiceAPI: # pylint: disable=too-many-instance :vartype datastores: azure.mgmt.connectedvmware.aio.operations.DatastoresOperations :ivar vcenters: VCentersOperations operations :vartype vcenters: azure.mgmt.connectedvmware.aio.operations.VCentersOperations - :ivar virtual_machines: VirtualMachinesOperations operations - :vartype virtual_machines: azure.mgmt.connectedvmware.aio.operations.VirtualMachinesOperations :ivar virtual_machine_templates: VirtualMachineTemplatesOperations operations :vartype virtual_machine_templates: azure.mgmt.connectedvmware.aio.operations.VirtualMachineTemplatesOperations @@ -60,7 +60,7 @@ class AzureArcVMwareManagementServiceAPI: # pylint: disable=too-many-instance :type subscription_id: str :param base_url: Service URL. Default value is 'https://management.azure.com'. :type base_url: str - :keyword api_version: Api Version. The default value is "2020-10-01-preview". Note that + :keyword api_version: Api Version. The default value is "2022-01-10-preview". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no @@ -82,12 +82,12 @@ def __init__( self._deserialize = Deserializer(client_models) self._serialize.client_side_validation = False self.operations = Operations(self._client, self._config, self._serialize, self._deserialize) + self.virtual_machines = VirtualMachinesOperations(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(self._client, self._config, self._serialize, self._deserialize) self.virtual_machine_templates = VirtualMachineTemplatesOperations(self._client, self._config, self._serialize, self._deserialize) self.virtual_networks = VirtualNetworksOperations(self._client, self._config, self._serialize, self._deserialize) self.inventory_items = InventoryItemsOperations(self._client, self._config, self._serialize, self._deserialize) diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/_configuration.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/_configuration.py index 23a6b884f5d..38fea25b86c 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/_configuration.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/_configuration.py @@ -29,7 +29,7 @@ class AzureArcVMwareManagementServiceAPIConfiguration(Configuration): # pylint: :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: The Subscription ID. :type subscription_id: str - :keyword api_version: Api Version. The default value is "2020-10-01-preview". Note that + :keyword api_version: Api Version. The default value is "2022-01-10-preview". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ @@ -41,7 +41,7 @@ def __init__( **kwargs: Any ) -> None: super(AzureArcVMwareManagementServiceAPIConfiguration, self).__init__(**kwargs) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str if credential is None: raise ValueError("Parameter 'credential' must not be None.") 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 de63ef86d5d..81e185f271d 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/__init__.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/__init__.py @@ -7,12 +7,12 @@ # -------------------------------------------------------------------------- from ._operations import Operations +from ._virtual_machines_operations import VirtualMachinesOperations 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 from ._virtual_networks_operations import VirtualNetworksOperations from ._inventory_items_operations import InventoryItemsOperations @@ -22,12 +22,12 @@ __all__ = [ 'Operations', + 'VirtualMachinesOperations', 'ResourcePoolsOperations', 'ClustersOperations', 'HostsOperations', 'DatastoresOperations', 'VCentersOperations', - 'VirtualMachinesOperations', 'VirtualMachineTemplatesOperations', 'VirtualNetworksOperations', 'InventoryItemsOperations', 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 index e6c74ce39a8..428457476bd 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_clusters_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_clusters_operations.py @@ -60,7 +60,7 @@ async def _create_initial( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -136,7 +136,7 @@ async def begin_create( :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.connectedvmware.models.Cluster] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.Cluster"] @@ -205,7 +205,7 @@ async def get( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_get_request( @@ -269,7 +269,7 @@ async def update( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -324,7 +324,7 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_delete_request_initial( @@ -385,7 +385,7 @@ async def begin_delete( # pylint: disable=inconsistent-return-statements :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( @@ -438,7 +438,7 @@ def list( ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.ClustersList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.ClustersList"] error_map = { @@ -516,7 +516,7 @@ def list_by_resource_group( ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.ClustersList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.ClustersList"] error_map = { 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 index 18aaa08385c..36650886e12 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_datastores_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_datastores_operations.py @@ -60,7 +60,7 @@ async def _create_initial( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -136,7 +136,7 @@ async def begin_create( :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.connectedvmware.models.Datastore] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.Datastore"] @@ -205,7 +205,7 @@ async def get( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_get_request( @@ -269,7 +269,7 @@ async def update( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -324,7 +324,7 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_delete_request_initial( @@ -385,7 +385,7 @@ async def begin_delete( # pylint: disable=inconsistent-return-statements :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( @@ -438,7 +438,7 @@ def list( ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.DatastoresList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.DatastoresList"] error_map = { @@ -516,7 +516,7 @@ def list_by_resource_group( ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.DatastoresList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.DatastoresList"] error_map = { 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 deleted file mode 100644 index e994a31104c..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_guest_agent_operations.py +++ /dev/null @@ -1,445 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from 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 GuestAgentOperations: - """GuestAgentOperations 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, - virtual_machine_name: str, - name: str, - body: Optional["_models.GuestAgent"] = None, - **kwargs: Any - ) -> "_models.GuestAgent": - cls = kwargs.pop('cls', None) # type: ClsType["_models.GuestAgent"] - 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'), - 'virtualMachineName': self._serialize.url("virtual_machine_name", virtual_machine_name, 'str'), - 'name': self._serialize.url("name", 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, 'GuestAgent') - 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('GuestAgent', pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize('GuestAgent', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - _create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/guestAgents/{name}'} # type: ignore - - async def begin_create( - self, - resource_group_name: str, - virtual_machine_name: str, - name: str, - body: Optional["_models.GuestAgent"] = None, - **kwargs: Any - ) -> AsyncLROPoller["_models.GuestAgent"]: - """Implements GuestAgent PUT method. - - Create Or Update GuestAgent. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param virtual_machine_name: Name of the vm. - :type virtual_machine_name: str - :param name: Name of the guestAgents. - :type name: str - :param body: Request payload. - :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: 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) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure_arc_vmware_management_service_api.models.GuestAgent] - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["_models.GuestAgent"] - 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, - virtual_machine_name=virtual_machine_name, - name=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('GuestAgent', 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'), - 'virtualMachineName': self._serialize.url("virtual_machine_name", virtual_machine_name, 'str'), - 'name': self._serialize.url("name", 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/virtualMachines/{virtualMachineName}/guestAgents/{name}'} # type: ignore - - async def get( - self, - resource_group_name: str, - virtual_machine_name: str, - name: str, - **kwargs: Any - ) -> "_models.GuestAgent": - """Gets GuestAgent. - - Implements GuestAgent GET method. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param virtual_machine_name: Name of the vm. - :type virtual_machine_name: str - :param name: Name of the GuestAgent. - :type name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: GuestAgent, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.GuestAgent - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.GuestAgent"] - 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'), - 'virtualMachineName': self._serialize.url("virtual_machine_name", virtual_machine_name, 'str'), - 'name': self._serialize.url("name", 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('GuestAgent', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/guestAgents/{name}'} # type: ignore - - async def _delete_initial( - self, - resource_group_name: str, - virtual_machine_name: str, - name: str, - **kwargs: Any - ) -> None: - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "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'), - 'virtualMachineName': self._serialize.url("virtual_machine_name", virtual_machine_name, 'str'), - 'name': self._serialize.url("name", name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.delete(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - 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/virtualMachines/{virtualMachineName}/guestAgents/{name}'} # type: ignore - - async def begin_delete( - self, - resource_group_name: str, - virtual_machine_name: str, - name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Deletes an GuestAgent. - - Implements GuestAgent DELETE method. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param virtual_machine_name: Name of the vm. - :type virtual_machine_name: str - :param name: Name of the GuestAgent. - :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: 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, - virtual_machine_name=virtual_machine_name, - name=name, - cls=lambda x,y,z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - if cls: - return cls(pipeline_response, None, {}) - - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'virtualMachineName': self._serialize.url("virtual_machine_name", virtual_machine_name, 'str'), - 'name': self._serialize.url("name", 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/virtualMachines/{virtualMachineName}/guestAgents/{name}'} # type: ignore - - def list_by_vm( - self, - resource_group_name: str, - virtual_machine_name: str, - **kwargs: Any - ) -> AsyncIterable["_models.GuestAgentList"]: - """Implements GET GuestAgent in a vm. - - Returns the list of GuestAgent of the given vm. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param virtual_machine_name: Name of the vm. - :type virtual_machine_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either GuestAgentList or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.GuestAgentList] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.GuestAgentList"] - 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_vm.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'), - 'virtualMachineName': self._serialize.url("virtual_machine_name", virtual_machine_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('GuestAgentList', 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_vm.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/guestAgents'} # type: ignore diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_guest_agents_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_guest_agents_operations.py index cc8fee0164c..ccd3cb0a12a 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_guest_agents_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_guest_agents_operations.py @@ -61,7 +61,7 @@ async def _create_initial( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -141,7 +141,7 @@ async def begin_create( :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.connectedvmware.models.GuestAgent] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.GuestAgent"] @@ -214,7 +214,7 @@ async def get( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_get_request( @@ -263,7 +263,7 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_delete_request_initial( @@ -324,7 +324,7 @@ async def begin_delete( # pylint: disable=inconsistent-return-statements :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( @@ -383,7 +383,7 @@ def list_by_vm( ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.GuestAgentList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.GuestAgentList"] error_map = { 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 index e326b8ef9e1..39aa5d47fc0 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_hosts_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_hosts_operations.py @@ -60,7 +60,7 @@ async def _create_initial( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -135,7 +135,7 @@ async def begin_create( :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.connectedvmware.models.Host] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.Host"] @@ -204,7 +204,7 @@ async def get( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_get_request( @@ -268,7 +268,7 @@ async def update( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -323,7 +323,7 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_delete_request_initial( @@ -384,7 +384,7 @@ async def begin_delete( # pylint: disable=inconsistent-return-statements :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( @@ -436,7 +436,7 @@ def list( :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.HostsList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.HostsList"] error_map = { @@ -513,7 +513,7 @@ def list_by_resource_group( :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.HostsList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.HostsList"] error_map = { 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 a89201049f5..3c9a39d2e18 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 @@ -77,7 +77,7 @@ async def create( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -149,7 +149,7 @@ async def get( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_get_request( @@ -214,7 +214,7 @@ async def delete( # pylint: disable=inconsistent-return-statements } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_delete_request( @@ -268,7 +268,7 @@ def list_by_vm( ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.HybridIdentityMetadataList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.HybridIdentityMetadataList"] error_map = { 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 2cadb077453..d732b825e53 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 @@ -77,7 +77,7 @@ async def create( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -149,7 +149,7 @@ async def get( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_get_request( @@ -214,7 +214,7 @@ async def delete( # pylint: disable=inconsistent-return-statements } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_delete_request( @@ -267,7 +267,7 @@ def list_by_v_center( ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.InventoryItemsList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.InventoryItemsList"] error_map = { 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 df43f3d772b..67ab3a96e19 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 @@ -61,7 +61,7 @@ async def _create_or_update_initial( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] _json = self._serialize.body(extension_parameters, 'MachineExtension') @@ -136,7 +136,7 @@ async def begin_create_or_update( :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.connectedvmware.models.MachineExtension] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.MachineExtension"] @@ -194,7 +194,7 @@ async def _update_initial( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] _json = self._serialize.body(extension_parameters, 'MachineExtensionUpdate') @@ -269,7 +269,7 @@ async def begin_update( :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.connectedvmware.models.MachineExtension] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.MachineExtension"] @@ -326,7 +326,7 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_delete_request_initial( @@ -385,7 +385,7 @@ async def begin_delete( # pylint: disable=inconsistent-return-statements :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( @@ -450,7 +450,7 @@ async def get( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_get_request( @@ -509,7 +509,7 @@ def list( ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.MachineExtensionsListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.MachineExtensionsListResult"] error_map = { 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 06a94a727d6..0a0bd70ec0e 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_operations.py @@ -57,7 +57,7 @@ def list( ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.OperationsList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationsList"] error_map = { 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 536ee9b968c..2c5e3d9af1e 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 @@ -60,7 +60,7 @@ async def _create_initial( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -136,7 +136,7 @@ async def begin_create( :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.connectedvmware.models.ResourcePool] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.ResourcePool"] @@ -205,7 +205,7 @@ async def get( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_get_request( @@ -269,7 +269,7 @@ async def update( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -324,7 +324,7 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_delete_request_initial( @@ -385,7 +385,7 @@ async def begin_delete( # pylint: disable=inconsistent-return-statements :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( @@ -438,7 +438,7 @@ def list( ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.ResourcePoolsList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.ResourcePoolsList"] error_map = { @@ -516,7 +516,7 @@ def list_by_resource_group( ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.ResourcePoolsList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.ResourcePoolsList"] error_map = { 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 02a0af9dfd5..ef2814df551 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 @@ -60,7 +60,7 @@ async def _create_initial( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -136,7 +136,7 @@ async def begin_create( :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.connectedvmware.models.VCenter] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.VCenter"] @@ -205,7 +205,7 @@ async def get( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_get_request( @@ -269,7 +269,7 @@ async def update( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -324,7 +324,7 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_delete_request_initial( @@ -385,7 +385,7 @@ async def begin_delete( # pylint: disable=inconsistent-return-statements :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( @@ -438,7 +438,7 @@ def list( ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.VCentersList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.VCentersList"] error_map = { @@ -516,7 +516,7 @@ def list_by_resource_group( ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.VCentersList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.VCentersList"] error_map = { 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 8184134933d..d315166c741 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 @@ -60,7 +60,7 @@ async def _create_initial( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -137,7 +137,7 @@ async def begin_create( ~azure.core.polling.AsyncLROPoller[~azure.mgmt.connectedvmware.models.VirtualMachineTemplate] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineTemplate"] @@ -206,7 +206,7 @@ async def get( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_get_request( @@ -270,7 +270,7 @@ async def update( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -325,7 +325,7 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_delete_request_initial( @@ -386,7 +386,7 @@ async def begin_delete( # pylint: disable=inconsistent-return-statements :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( @@ -440,7 +440,7 @@ def list( ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.VirtualMachineTemplatesList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineTemplatesList"] error_map = { @@ -519,7 +519,7 @@ def list_by_resource_group( ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.VirtualMachineTemplatesList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineTemplatesList"] error_map = { 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 478adc846c0..7c9694beb7c 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 @@ -21,7 +21,7 @@ from ... import models as _models from ..._vendor import _convert_request -from ...operations._virtual_machines_operations import build_create_request_initial, build_delete_request_initial, build_get_request, build_list_by_resource_group_request, build_list_request, build_restart_request_initial, build_start_request_initial, build_stop_request_initial, build_update_request_initial +from ...operations._virtual_machines_operations import build_assess_patches_request_initial, build_create_request_initial, build_delete_request_initial, build_get_request, build_install_patches_request_initial, build_list_by_resource_group_request, build_list_request, build_restart_request_initial, build_start_request_initial, build_stop_request_initial, build_update_request_initial T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -47,6 +47,248 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._deserialize = deserializer self._config = config + async def _assess_patches_initial( + self, + resource_group_name: str, + name: str, + **kwargs: Any + ) -> Optional["_models.VirtualMachineAssessPatchesResult"]: + cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.VirtualMachineAssessPatchesResult"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str + + + request = build_assess_patches_request_initial( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + name=name, + api_version=api_version, + template_url=self._assess_patches_initial.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('VirtualMachineAssessPatchesResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + _assess_patches_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{name}/assessPatches"} # type: ignore + + + @distributed_trace_async + async def begin_assess_patches( + self, + resource_group_name: str, + name: str, + **kwargs: Any + ) -> AsyncLROPoller["_models.VirtualMachineAssessPatchesResult"]: + """The operation to assess patches on a vSphere VMware machine identity in Azure. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param name: The name of the vSphere VMware machine. + :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: 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 VirtualMachineAssessPatchesResult or + the result of cls(response) + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.connectedvmware.models.VirtualMachineAssessPatchesResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineAssessPatchesResult"] + 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._assess_patches_initial( + resource_group_name=resource_group_name, + name=name, + api_version=api_version, + cls=lambda x,y,z: x, + **kwargs + ) + kwargs.pop('error_map', None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = self._deserialize('VirtualMachineAssessPatchesResult', pipeline_response) + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + + if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + + begin_assess_patches.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{name}/assessPatches"} # type: ignore + + async def _install_patches_initial( + self, + resource_group_name: str, + name: str, + install_patches_input: "_models.VirtualMachineInstallPatchesParameters", + **kwargs: Any + ) -> Optional["_models.VirtualMachineInstallPatchesResult"]: + cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.VirtualMachineInstallPatchesResult"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + + _json = self._serialize.body(install_patches_input, 'VirtualMachineInstallPatchesParameters') + + request = build_install_patches_request_initial( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + name=name, + api_version=api_version, + content_type=content_type, + json=_json, + template_url=self._install_patches_initial.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('VirtualMachineInstallPatchesResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + _install_patches_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{name}/installPatches"} # type: ignore + + + @distributed_trace_async + async def begin_install_patches( + self, + resource_group_name: str, + name: str, + install_patches_input: "_models.VirtualMachineInstallPatchesParameters", + **kwargs: Any + ) -> AsyncLROPoller["_models.VirtualMachineInstallPatchesResult"]: + """The operation to install patches on a vSphere VMware machine identity in Azure. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param name: The name of the vSphere VMware machine. + :type name: str + :param install_patches_input: Input for InstallPatches as directly received by the API. + :type install_patches_input: + ~azure.mgmt.connectedvmware.models.VirtualMachineInstallPatchesParameters + :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 VirtualMachineInstallPatchesResult + or the result of cls(response) + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.connectedvmware.models.VirtualMachineInstallPatchesResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineInstallPatchesResult"] + 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._install_patches_initial( + resource_group_name=resource_group_name, + name=name, + install_patches_input=install_patches_input, + api_version=api_version, + content_type=content_type, + cls=lambda x,y,z: x, + **kwargs + ) + kwargs.pop('error_map', None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = self._deserialize('VirtualMachineInstallPatchesResult', pipeline_response) + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + + if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + + begin_install_patches.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{name}/installPatches"} # type: ignore + async def _create_initial( self, resource_group_name: str, @@ -60,7 +302,7 @@ async def _create_initial( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -136,7 +378,7 @@ async def begin_create( :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.connectedvmware.models.VirtualMachine] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] @@ -205,7 +447,7 @@ async def get( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_get_request( @@ -253,7 +495,7 @@ async def _update_initial( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -330,7 +572,7 @@ async def begin_update( :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.connectedvmware.models.VirtualMachine] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] @@ -378,6 +620,7 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements resource_group_name: str, virtual_machine_name: str, force: Optional[bool] = None, + retain: Optional[bool] = None, **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] @@ -386,7 +629,7 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_delete_request_initial( @@ -395,6 +638,7 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements virtual_machine_name=virtual_machine_name, api_version=api_version, force=force, + retain=retain, template_url=self._delete_initial.metadata['url'], ) request = _convert_request(request) @@ -423,6 +667,7 @@ async def begin_delete( # pylint: disable=inconsistent-return-statements resource_group_name: str, virtual_machine_name: str, force: Optional[bool] = None, + retain: Optional[bool] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes an virtual machine. @@ -435,6 +680,8 @@ async def begin_delete( # pylint: disable=inconsistent-return-statements :type virtual_machine_name: str :param force: Whether force delete was specified. :type force: bool + :param retain: Whether to just disable the VM from azure and retain the VM in the VMM. + :type retain: 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 @@ -447,7 +694,7 @@ async def begin_delete( # pylint: disable=inconsistent-return-statements :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( @@ -460,6 +707,7 @@ async def begin_delete( # pylint: disable=inconsistent-return-statements resource_group_name=resource_group_name, virtual_machine_name=virtual_machine_name, force=force, + retain=retain, api_version=api_version, cls=lambda x,y,z: x, **kwargs @@ -498,7 +746,7 @@ async def _stop_initial( # pylint: disable=inconsistent-return-statements } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -565,7 +813,7 @@ async def begin_stop( # pylint: disable=inconsistent-return-statements :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] @@ -617,7 +865,7 @@ async def _start_initial( # pylint: disable=inconsistent-return-statements } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_start_request_initial( @@ -674,7 +922,7 @@ async def begin_start( # pylint: disable=inconsistent-return-statements :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( @@ -723,7 +971,7 @@ async def _restart_initial( # pylint: disable=inconsistent-return-statements } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_restart_request_initial( @@ -780,7 +1028,7 @@ async def begin_restart( # pylint: disable=inconsistent-return-statements :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( @@ -832,7 +1080,7 @@ def list( ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.VirtualMachinesList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachinesList"] error_map = { @@ -910,7 +1158,7 @@ def list_by_resource_group( ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.VirtualMachinesList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachinesList"] error_map = { 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 ebd6d739fb4..01618a15f4d 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 @@ -60,7 +60,7 @@ async def _create_initial( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -136,7 +136,7 @@ async def begin_create( :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.connectedvmware.models.VirtualNetwork] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualNetwork"] @@ -205,7 +205,7 @@ async def get( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_get_request( @@ -269,7 +269,7 @@ async def update( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -324,7 +324,7 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_delete_request_initial( @@ -385,7 +385,7 @@ async def begin_delete( # pylint: disable=inconsistent-return-statements :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( @@ -438,7 +438,7 @@ def list( ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.VirtualNetworksList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualNetworksList"] error_map = { @@ -516,7 +516,7 @@ def list_by_resource_group( ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.VirtualNetworksList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualNetworksList"] error_map = { 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 deleted file mode 100644 index 3d217c884eb..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/azure_arc_vmware_management_service_api.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import SDKClient -from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.operations import Operations -from .operations.resource_pools_operations import ResourcePoolsOperations -from .operations.vcenters_operations import VCentersOperations -from .operations.virtual_machines_operations import VirtualMachinesOperations -from .operations.virtual_machine_templates_operations import VirtualMachineTemplatesOperations -from .operations.virtual_networks_operations import VirtualNetworksOperations -from .operations.inventory_items_operations import InventoryItemsOperations -from . import models - - -class AzureArcVMwareManagementServiceAPIConfiguration(AzureConfiguration): - """Configuration for AzureArcVMwareManagementServiceAPI - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The Subscription ID. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(AzureArcVMwareManagementServiceAPIConfiguration, self).__init__(base_url) - - self.add_user_agent('azure-mgmt-connectedvmware/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id - - -class AzureArcVMwareManagementServiceAPI(SDKClient): - """Self service experience for VMware. - - :ivar config: Configuration for client. - :vartype config: AzureArcVMwareManagementServiceAPIConfiguration - - :ivar operations: Operations operations - :vartype operations: azure.mgmt.vmware.v2020_10_01_preview.operations.Operations - :ivar resource_pools: ResourcePools operations - :vartype resource_pools: azure.mgmt.vmware.v2020_10_01_preview.operations.ResourcePoolsOperations - :ivar vcenters: VCenters operations - :vartype vcenters: azure.mgmt.vmware.v2020_10_01_preview.operations.VCentersOperations - :ivar virtual_machines: VirtualMachines operations - :vartype virtual_machines: azure.mgmt.vmware.v2020_10_01_preview.operations.VirtualMachinesOperations - :ivar virtual_machine_templates: VirtualMachineTemplates operations - :vartype virtual_machine_templates: azure.mgmt.vmware.v2020_10_01_preview.operations.VirtualMachineTemplatesOperations - :ivar virtual_networks: VirtualNetworks operations - :vartype virtual_networks: azure.mgmt.vmware.v2020_10_01_preview.operations.VirtualNetworksOperations - :ivar inventory_items: InventoryItems operations - :vartype inventory_items: azure.mgmt.vmware.v2020_10_01_preview.operations.InventoryItemsOperations - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The Subscription ID. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - - self.config = AzureArcVMwareManagementServiceAPIConfiguration(credentials, subscription_id, base_url) - super(AzureArcVMwareManagementServiceAPI, self).__init__(self.config.credentials, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self.api_version = '2020-10-01-preview' - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.operations = Operations( - self._client, self.config, self._serialize, self._deserialize) - self.resource_pools = ResourcePoolsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.vcenters = VCentersOperations( - self._client, self.config, self._serialize, self._deserialize) - self.virtual_machines = VirtualMachinesOperations( - self._client, self.config, self._serialize, self._deserialize) - self.virtual_machine_templates = VirtualMachineTemplatesOperations( - self._client, self.config, self._serialize, self._deserialize) - self.virtual_networks = VirtualNetworksOperations( - self._client, self.config, self._serialize, self._deserialize) - self.inventory_items = InventoryItemsOperations( - self._client, self.config, self._serialize, self._deserialize) diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/__init__.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/__init__.py index 137a2f8f856..bb4dc2bd87d 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/__init__.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/__init__.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- try: + from ._models_py3 import AvailablePatchCountByClassification from ._models_py3 import Cluster from ._models_py3 import ClusterInventoryItem from ._models_py3 import ClustersList @@ -34,6 +35,7 @@ from ._models_py3 import InventoryItemDetails from ._models_py3 import InventoryItemProperties from ._models_py3 import InventoryItemsList + from ._models_py3 import LinuxParameters from ._models_py3 import MachineExtension from ._models_py3 import MachineExtensionInstanceView from ._models_py3 import MachineExtensionInstanceViewStatus @@ -50,6 +52,11 @@ from ._models_py3 import OperationDisplay from ._models_py3 import OperationsList from ._models_py3 import OsProfile + from ._models_py3 import OsProfileLinuxConfiguration + from ._models_py3 import OsProfileUpdate + from ._models_py3 import OsProfileUpdateLinuxConfiguration + from ._models_py3 import OsProfileUpdateWindowsConfiguration + from ._models_py3 import OsProfileWindowsConfiguration from ._models_py3 import PlacementProfile from ._models_py3 import ProxyResource from ._models_py3 import Resource @@ -58,16 +65,21 @@ from ._models_py3 import ResourcePoolInventoryItem from ._models_py3 import ResourcePoolsList from ._models_py3 import ResourceStatus + from ._models_py3 import SecurityProfile from ._models_py3 import StopVirtualMachineOptions from ._models_py3 import StorageProfile from ._models_py3 import StorageProfileUpdate from ._models_py3 import SystemData + from ._models_py3 import UefiSettings from ._models_py3 import VCenter from ._models_py3 import VCentersList from ._models_py3 import VICredential from ._models_py3 import VirtualDisk from ._models_py3 import VirtualDiskUpdate from ._models_py3 import VirtualMachine + from ._models_py3 import VirtualMachineAssessPatchesResult + from ._models_py3 import VirtualMachineInstallPatchesParameters + from ._models_py3 import VirtualMachineInstallPatchesResult from ._models_py3 import VirtualMachineInventoryItem from ._models_py3 import VirtualMachineTemplate from ._models_py3 import VirtualMachineTemplateInventoryItem @@ -78,7 +90,9 @@ from ._models_py3 import VirtualNetworkInventoryItem from ._models_py3 import VirtualNetworksList from ._models_py3 import VirtualSCSIController + from ._models_py3 import WindowsParameters except (SyntaxError, ImportError): + from ._models import AvailablePatchCountByClassification # type: ignore from ._models import Cluster # type: ignore from ._models import ClusterInventoryItem # type: ignore from ._models import ClustersList # type: ignore @@ -106,6 +120,7 @@ from ._models import InventoryItemDetails # type: ignore from ._models import InventoryItemProperties # type: ignore from ._models import InventoryItemsList # type: ignore + from ._models import LinuxParameters # type: ignore from ._models import MachineExtension # type: ignore from ._models import MachineExtensionInstanceView # type: ignore from ._models import MachineExtensionInstanceViewStatus # type: ignore @@ -122,6 +137,11 @@ from ._models import OperationDisplay # type: ignore from ._models import OperationsList # type: ignore from ._models import OsProfile # type: ignore + from ._models import OsProfileLinuxConfiguration # type: ignore + from ._models import OsProfileUpdate # type: ignore + from ._models import OsProfileUpdateLinuxConfiguration # type: ignore + from ._models import OsProfileUpdateWindowsConfiguration # type: ignore + from ._models import OsProfileWindowsConfiguration # type: ignore from ._models import PlacementProfile # type: ignore from ._models import ProxyResource # type: ignore from ._models import Resource # type: ignore @@ -130,16 +150,21 @@ from ._models import ResourcePoolInventoryItem # type: ignore from ._models import ResourcePoolsList # type: ignore from ._models import ResourceStatus # type: ignore + from ._models import SecurityProfile # type: ignore from ._models import StopVirtualMachineOptions # type: ignore from ._models import StorageProfile # type: ignore from ._models import StorageProfileUpdate # type: ignore from ._models import SystemData # type: ignore + from ._models import UefiSettings # type: ignore from ._models import VCenter # type: ignore from ._models import VCentersList # type: ignore from ._models import VICredential # type: ignore from ._models import VirtualDisk # type: ignore from ._models import VirtualDiskUpdate # type: ignore from ._models import VirtualMachine # type: ignore + from ._models import VirtualMachineAssessPatchesResult # type: ignore + from ._models import VirtualMachineInstallPatchesParameters # type: ignore + from ._models import VirtualMachineInstallPatchesResult # type: ignore from ._models import VirtualMachineInventoryItem # type: ignore from ._models import VirtualMachineTemplate # type: ignore from ._models import VirtualMachineTemplateInventoryItem # type: ignore @@ -150,6 +175,7 @@ from ._models import VirtualNetworkInventoryItem # type: ignore from ._models import VirtualNetworksList # type: ignore from ._models import VirtualSCSIController # type: ignore + from ._models import WindowsParameters # type: ignore from ._azure_arc_vmware_management_service_api_enums import ( CreatedByType, @@ -161,16 +187,25 @@ InventoryType, NICType, OsType, + OsTypeUM, + PatchOperationStartedBy, + PatchOperationStatus, + PatchServiceUsed, PowerOnBootOption, ProvisioningAction, ProvisioningState, SCSIControllerType, StatusLevelTypes, StatusTypes, + VMGuestPatchClassificationLinux, + VMGuestPatchClassificationWindows, + VMGuestPatchRebootSetting, + VMGuestPatchRebootStatus, VirtualSCSISharing, ) __all__ = [ + 'AvailablePatchCountByClassification', 'Cluster', 'ClusterInventoryItem', 'ClustersList', @@ -198,6 +233,7 @@ 'InventoryItemDetails', 'InventoryItemProperties', 'InventoryItemsList', + 'LinuxParameters', 'MachineExtension', 'MachineExtensionInstanceView', 'MachineExtensionInstanceViewStatus', @@ -214,6 +250,11 @@ 'OperationDisplay', 'OperationsList', 'OsProfile', + 'OsProfileLinuxConfiguration', + 'OsProfileUpdate', + 'OsProfileUpdateLinuxConfiguration', + 'OsProfileUpdateWindowsConfiguration', + 'OsProfileWindowsConfiguration', 'PlacementProfile', 'ProxyResource', 'Resource', @@ -222,16 +263,21 @@ 'ResourcePoolInventoryItem', 'ResourcePoolsList', 'ResourceStatus', + 'SecurityProfile', 'StopVirtualMachineOptions', 'StorageProfile', 'StorageProfileUpdate', 'SystemData', + 'UefiSettings', 'VCenter', 'VCentersList', 'VICredential', 'VirtualDisk', 'VirtualDiskUpdate', 'VirtualMachine', + 'VirtualMachineAssessPatchesResult', + 'VirtualMachineInstallPatchesParameters', + 'VirtualMachineInstallPatchesResult', 'VirtualMachineInventoryItem', 'VirtualMachineTemplate', 'VirtualMachineTemplateInventoryItem', @@ -242,6 +288,7 @@ 'VirtualNetworkInventoryItem', 'VirtualNetworksList', 'VirtualSCSIController', + 'WindowsParameters', 'CreatedByType', 'DiskMode', 'DiskType', @@ -251,11 +298,19 @@ 'InventoryType', 'NICType', 'OsType', + 'OsTypeUM', + 'PatchOperationStartedBy', + 'PatchOperationStatus', + 'PatchServiceUsed', 'PowerOnBootOption', 'ProvisioningAction', 'ProvisioningState', 'SCSIControllerType', 'StatusLevelTypes', 'StatusTypes', + 'VMGuestPatchClassificationLinux', + 'VMGuestPatchClassificationWindows', + 'VMGuestPatchRebootSetting', + 'VMGuestPatchRebootStatus', '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 6d7ccd29d1c..4b71120aa06 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 @@ -96,6 +96,43 @@ class OsType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): LINUX = "Linux" OTHER = "Other" +class OsTypeUM(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): + """The operating system type of the machine. + """ + + WINDOWS = "Windows" + LINUX = "Linux" + +class PatchOperationStartedBy(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): + """Indicates if operation was triggered by user or by platform. + """ + + USER = "User" + PLATFORM = "Platform" + +class PatchOperationStatus(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): + """The overall success or failure status of the operation. It remains "InProgress" until the + operation completes. At that point it will become "Unknown", "Failed", "Succeeded", or + "CompletedWithWarnings." + """ + + UNKNOWN = "Unknown" + IN_PROGRESS = "InProgress" + FAILED = "Failed" + SUCCEEDED = "Succeeded" + COMPLETED_WITH_WARNINGS = "CompletedWithWarnings" + +class PatchServiceUsed(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): + """Specifies the patch service used for the operation. + """ + + UNKNOWN = "Unknown" + WU = "WU" + WU_WSUS = "WU_WSUS" + YUM = "YUM" + APT = "APT" + ZYPPER = "Zypper" + class PowerOnBootOption(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """Defines the options for power on boot. """ @@ -156,3 +193,39 @@ class VirtualSCSISharing(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): NO_SHARING = "noSharing" PHYSICAL_SHARING = "physicalSharing" VIRTUAL_SHARING = "virtualSharing" + +class VMGuestPatchClassificationLinux(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): + + CRITICAL = "Critical" + SECURITY = "Security" + OTHER = "Other" + +class VMGuestPatchClassificationWindows(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): + + CRITICAL = "Critical" + SECURITY = "Security" + UPDATE_ROLL_UP = "UpdateRollUp" + FEATURE_PACK = "FeaturePack" + SERVICE_PACK = "ServicePack" + DEFINITION = "Definition" + TOOLS = "Tools" + UPDATES = "Updates" + +class VMGuestPatchRebootSetting(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): + """Defines when it is acceptable to reboot a VM during a software update operation. + """ + + IF_REQUIRED = "IfRequired" + NEVER = "Never" + ALWAYS = "Always" + +class VMGuestPatchRebootStatus(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): + """The reboot state of the VM following completion of the operation. + """ + + UNKNOWN = "Unknown" + NOT_NEEDED = "NotNeeded" + REQUIRED = "Required" + STARTED = "Started" + FAILED = "Failed" + COMPLETED = "Completed" diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/_models.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/_models.py index 0ae0717a7e9..e7b775cf774 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/_models.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/_models.py @@ -10,6 +10,73 @@ import msrest.serialization +class AvailablePatchCountByClassification(msrest.serialization.Model): + """Summarization of patches available for installation on the machine by classification. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar security: Number of security patches available for installation. + :vartype security: int + :ivar critical: Number of critical patches available for installation. + :vartype critical: int + :ivar definition: Number of definition patches available for installation. + :vartype definition: int + :ivar update_rollup: Number of update Rollup patches available for installation. + :vartype update_rollup: int + :ivar feature_pack: Number of feature pack patches available for installation. + :vartype feature_pack: int + :ivar service_pack: Number of service pack patches available for installation. + :vartype service_pack: int + :ivar tools: Number of tools patches available for installation. + :vartype tools: int + :ivar updates: Number of updates category patches available for installation. + :vartype updates: int + :ivar other: Number of other patches available for installation. + :vartype other: int + """ + + _validation = { + 'security': {'readonly': True}, + 'critical': {'readonly': True}, + 'definition': {'readonly': True}, + 'update_rollup': {'readonly': True}, + 'feature_pack': {'readonly': True}, + 'service_pack': {'readonly': True}, + 'tools': {'readonly': True}, + 'updates': {'readonly': True}, + 'other': {'readonly': True}, + } + + _attribute_map = { + 'security': {'key': 'security', 'type': 'int'}, + 'critical': {'key': 'critical', 'type': 'int'}, + 'definition': {'key': 'definition', 'type': 'int'}, + 'update_rollup': {'key': 'updateRollup', 'type': 'int'}, + 'feature_pack': {'key': 'featurePack', 'type': 'int'}, + 'service_pack': {'key': 'servicePack', 'type': 'int'}, + 'tools': {'key': 'tools', 'type': 'int'}, + 'updates': {'key': 'updates', 'type': 'int'}, + 'other': {'key': 'other', 'type': 'int'}, + } + + def __init__( + self, + **kwargs + ): + """ + """ + super(AvailablePatchCountByClassification, self).__init__(**kwargs) + self.security = None + self.critical = None + self.definition = None + self.update_rollup = None + self.feature_pack = None + self.service_pack = None + self.tools = None + self.updates = None + self.other = None + + class Cluster(msrest.serialization.Model): """Define the cluster. @@ -1550,6 +1617,49 @@ def __init__( self.value = kwargs['value'] +class LinuxParameters(msrest.serialization.Model): + """Input for InstallPatches on a Linux VM, as directly received by the API. + + :ivar classifications_to_include: The update classifications to select when installing patches + for Linux. + :vartype classifications_to_include: list[str or + ~azure.mgmt.connectedvmware.models.VMGuestPatchClassificationLinux] + :ivar package_name_masks_to_include: packages to include in the patch operation. Format: + packageName_packageVersion. + :vartype package_name_masks_to_include: list[str] + :ivar package_name_masks_to_exclude: packages to exclude in the patch operation. Format: + packageName_packageVersion. + :vartype package_name_masks_to_exclude: list[str] + """ + + _attribute_map = { + 'classifications_to_include': {'key': 'classificationsToInclude', 'type': '[str]'}, + 'package_name_masks_to_include': {'key': 'packageNameMasksToInclude', 'type': '[str]'}, + 'package_name_masks_to_exclude': {'key': 'packageNameMasksToExclude', 'type': '[str]'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword classifications_to_include: The update classifications to select when installing + patches for Linux. + :paramtype classifications_to_include: list[str or + ~azure.mgmt.connectedvmware.models.VMGuestPatchClassificationLinux] + :keyword package_name_masks_to_include: packages to include in the patch operation. Format: + packageName_packageVersion. + :paramtype package_name_masks_to_include: list[str] + :keyword package_name_masks_to_exclude: packages to exclude in the patch operation. Format: + packageName_packageVersion. + :paramtype package_name_masks_to_exclude: list[str] + """ + super(LinuxParameters, self).__init__(**kwargs) + self.classifications_to_include = kwargs.get('classifications_to_include', None) + self.package_name_masks_to_include = kwargs.get('package_name_masks_to_include', None) + self.package_name_masks_to_exclude = kwargs.get('package_name_masks_to_exclude', None) + + class MachineExtension(msrest.serialization.Model): """Describes a Machine Extension. @@ -1577,6 +1687,9 @@ class MachineExtension(msrest.serialization.Model): :vartype type_properties_type: str :ivar type_handler_version: Specifies the version of the script handler. :vartype type_handler_version: str + :ivar enable_automatic_upgrade: Indicates whether the extension should be automatically + upgraded by the platform if there is a newer version available. + :vartype enable_automatic_upgrade: bool :ivar auto_upgrade_minor_version: Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. @@ -1612,6 +1725,7 @@ class MachineExtension(msrest.serialization.Model): 'publisher': {'key': 'properties.publisher', 'type': 'str'}, 'type_properties_type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, + 'enable_automatic_upgrade': {'key': 'properties.enableAutomaticUpgrade', 'type': 'bool'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, 'settings': {'key': 'properties.settings', 'type': 'object'}, 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, @@ -1638,6 +1752,9 @@ def __init__( :paramtype type_properties_type: str :keyword type_handler_version: Specifies the version of the script handler. :paramtype type_handler_version: str + :keyword enable_automatic_upgrade: Indicates whether the extension should be automatically + upgraded by the platform if there is a newer version available. + :paramtype enable_automatic_upgrade: bool :keyword auto_upgrade_minor_version: Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. @@ -1662,6 +1779,7 @@ def __init__( self.publisher = kwargs.get('publisher', None) self.type_properties_type = kwargs.get('type_properties_type', None) self.type_handler_version = kwargs.get('type_handler_version', None) + self.enable_automatic_upgrade = kwargs.get('enable_automatic_upgrade', None) self.auto_upgrade_minor_version = kwargs.get('auto_upgrade_minor_version', None) self.settings = kwargs.get('settings', None) self.protected_settings = kwargs.get('protected_settings', None) @@ -1866,6 +1984,9 @@ class MachineExtensionUpdate(ResourcePatch): :vartype type: str :ivar type_handler_version: Specifies the version of the script handler. :vartype type_handler_version: str + :ivar enable_automatic_upgrade: Indicates whether the extension should be automatically + upgraded by the platform if there is a newer version available. + :vartype enable_automatic_upgrade: bool :ivar auto_upgrade_minor_version: Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. @@ -1883,6 +2004,7 @@ class MachineExtensionUpdate(ResourcePatch): 'publisher': {'key': 'properties.publisher', 'type': 'str'}, 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, + 'enable_automatic_upgrade': {'key': 'properties.enableAutomaticUpgrade', 'type': 'bool'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, 'settings': {'key': 'properties.settings', 'type': 'object'}, 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, @@ -1904,6 +2026,9 @@ def __init__( :paramtype type: str :keyword type_handler_version: Specifies the version of the script handler. :paramtype type_handler_version: str + :keyword enable_automatic_upgrade: Indicates whether the extension should be automatically + upgraded by the platform if there is a newer version available. + :paramtype enable_automatic_upgrade: bool :keyword auto_upgrade_minor_version: Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. @@ -1919,6 +2044,7 @@ def __init__( self.publisher = kwargs.get('publisher', None) self.type = kwargs.get('type', None) self.type_handler_version = kwargs.get('type_handler_version', None) + self.enable_automatic_upgrade = kwargs.get('enable_automatic_upgrade', None) self.auto_upgrade_minor_version = kwargs.get('auto_upgrade_minor_version', None) self.settings = kwargs.get('settings', None) self.protected_settings = kwargs.get('protected_settings', None) @@ -2350,6 +2476,11 @@ class OsProfile(msrest.serialization.Model): :vartype admin_username: str :ivar admin_password: Gets or sets administrator password. :vartype admin_password: str + :ivar guest_id: Gets or sets the guestId. + :vartype guest_id: str + :ivar allow_extension_operations: Gets or sets a value indicating whether the VM is ready for + extension operations. + :vartype allow_extension_operations: bool :ivar os_type: Gets or sets the type of the os. Possible values include: "Windows", "Linux", "Other". :vartype os_type: str or ~azure.mgmt.connectedvmware.models.OsType @@ -2363,9 +2494,15 @@ class OsProfile(msrest.serialization.Model): :vartype tools_version_status: str :ivar tools_version: Gets or sets the current version of VMware Tools. :vartype tools_version: str + :ivar windows_configuration: Specifies the windows configuration for update management. + :vartype windows_configuration: + ~azure.mgmt.connectedvmware.models.OsProfileWindowsConfiguration + :ivar linux_configuration: Specifies the linux configuration for update management. + :vartype linux_configuration: ~azure.mgmt.connectedvmware.models.OsProfileLinuxConfiguration """ _validation = { + 'allow_extension_operations': {'readonly': True}, 'os_name': {'readonly': True}, 'tools_running_status': {'readonly': True}, 'tools_version_status': {'readonly': True}, @@ -2376,11 +2513,15 @@ class OsProfile(msrest.serialization.Model): 'computer_name': {'key': 'computerName', 'type': 'str'}, 'admin_username': {'key': 'adminUsername', 'type': 'str'}, 'admin_password': {'key': 'adminPassword', 'type': 'str'}, + 'guest_id': {'key': 'guestId', 'type': 'str'}, + 'allow_extension_operations': {'key': 'allowExtensionOperations', 'type': 'bool'}, 'os_type': {'key': 'osType', 'type': 'str'}, 'os_name': {'key': 'osName', 'type': 'str'}, 'tools_running_status': {'key': 'toolsRunningStatus', 'type': 'str'}, 'tools_version_status': {'key': 'toolsVersionStatus', 'type': 'str'}, 'tools_version': {'key': 'toolsVersion', 'type': 'str'}, + 'windows_configuration': {'key': 'windowsConfiguration', 'type': 'OsProfileWindowsConfiguration'}, + 'linux_configuration': {'key': 'linuxConfiguration', 'type': 'OsProfileLinuxConfiguration'}, } def __init__( @@ -2394,19 +2535,179 @@ def __init__( :paramtype admin_username: str :keyword admin_password: Gets or sets administrator password. :paramtype admin_password: str + :keyword guest_id: Gets or sets the guestId. + :paramtype guest_id: str :keyword os_type: Gets or sets the type of the os. Possible values include: "Windows", "Linux", "Other". :paramtype os_type: str or ~azure.mgmt.connectedvmware.models.OsType + :keyword windows_configuration: Specifies the windows configuration for update management. + :paramtype windows_configuration: + ~azure.mgmt.connectedvmware.models.OsProfileWindowsConfiguration + :keyword linux_configuration: Specifies the linux configuration for update management. + :paramtype linux_configuration: ~azure.mgmt.connectedvmware.models.OsProfileLinuxConfiguration """ super(OsProfile, self).__init__(**kwargs) 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.guest_id = kwargs.get('guest_id', None) + self.allow_extension_operations = 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 + self.windows_configuration = kwargs.get('windows_configuration', None) + self.linux_configuration = kwargs.get('linux_configuration', None) + + +class OsProfileLinuxConfiguration(msrest.serialization.Model): + """Specifies the linux configuration for update management. + + :ivar assessment_mode: Specifies the assessment mode. + :vartype assessment_mode: str + :ivar patch_mode: Specifies the patch mode. + :vartype patch_mode: str + """ + + _attribute_map = { + 'assessment_mode': {'key': 'patchSettings.assessmentMode', 'type': 'str'}, + 'patch_mode': {'key': 'patchSettings.patchMode', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword assessment_mode: Specifies the assessment mode. + :paramtype assessment_mode: str + :keyword patch_mode: Specifies the patch mode. + :paramtype patch_mode: str + """ + super(OsProfileLinuxConfiguration, self).__init__(**kwargs) + self.assessment_mode = kwargs.get('assessment_mode', None) + self.patch_mode = kwargs.get('patch_mode', None) + + +class OsProfileUpdate(msrest.serialization.Model): + """Defines the os update properties. + + :ivar windows_configuration: Specifies the windows configuration for update management. + :vartype windows_configuration: + ~azure.mgmt.connectedvmware.models.OsProfileUpdateWindowsConfiguration + :ivar linux_configuration: Specifies the linux configuration for update management. + :vartype linux_configuration: + ~azure.mgmt.connectedvmware.models.OsProfileUpdateLinuxConfiguration + """ + + _attribute_map = { + 'windows_configuration': {'key': 'windowsConfiguration', 'type': 'OsProfileUpdateWindowsConfiguration'}, + 'linux_configuration': {'key': 'linuxConfiguration', 'type': 'OsProfileUpdateLinuxConfiguration'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword windows_configuration: Specifies the windows configuration for update management. + :paramtype windows_configuration: + ~azure.mgmt.connectedvmware.models.OsProfileUpdateWindowsConfiguration + :keyword linux_configuration: Specifies the linux configuration for update management. + :paramtype linux_configuration: + ~azure.mgmt.connectedvmware.models.OsProfileUpdateLinuxConfiguration + """ + super(OsProfileUpdate, self).__init__(**kwargs) + self.windows_configuration = kwargs.get('windows_configuration', None) + self.linux_configuration = kwargs.get('linux_configuration', None) + + +class OsProfileUpdateLinuxConfiguration(msrest.serialization.Model): + """Specifies the linux configuration for update management. + + :ivar assessment_mode: Specifies the assessment mode. + :vartype assessment_mode: str + :ivar patch_mode: Specifies the patch mode. + :vartype patch_mode: str + """ + + _attribute_map = { + 'assessment_mode': {'key': 'patchSettings.assessmentMode', 'type': 'str'}, + 'patch_mode': {'key': 'patchSettings.patchMode', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword assessment_mode: Specifies the assessment mode. + :paramtype assessment_mode: str + :keyword patch_mode: Specifies the patch mode. + :paramtype patch_mode: str + """ + super(OsProfileUpdateLinuxConfiguration, self).__init__(**kwargs) + self.assessment_mode = kwargs.get('assessment_mode', None) + self.patch_mode = kwargs.get('patch_mode', None) + + +class OsProfileUpdateWindowsConfiguration(msrest.serialization.Model): + """Specifies the windows configuration for update management. + + :ivar assessment_mode: Specifies the assessment mode. + :vartype assessment_mode: str + :ivar patch_mode: Specifies the patch mode. + :vartype patch_mode: str + """ + + _attribute_map = { + 'assessment_mode': {'key': 'patchSettings.assessmentMode', 'type': 'str'}, + 'patch_mode': {'key': 'patchSettings.patchMode', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword assessment_mode: Specifies the assessment mode. + :paramtype assessment_mode: str + :keyword patch_mode: Specifies the patch mode. + :paramtype patch_mode: str + """ + super(OsProfileUpdateWindowsConfiguration, self).__init__(**kwargs) + self.assessment_mode = kwargs.get('assessment_mode', None) + self.patch_mode = kwargs.get('patch_mode', None) + + +class OsProfileWindowsConfiguration(msrest.serialization.Model): + """Specifies the windows configuration for update management. + + :ivar assessment_mode: Specifies the assessment mode. + :vartype assessment_mode: str + :ivar patch_mode: Specifies the patch mode. + :vartype patch_mode: str + """ + + _attribute_map = { + 'assessment_mode': {'key': 'patchSettings.assessmentMode', 'type': 'str'}, + 'patch_mode': {'key': 'patchSettings.patchMode', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword assessment_mode: Specifies the assessment mode. + :paramtype assessment_mode: str + :keyword patch_mode: Specifies the patch mode. + :paramtype patch_mode: str + """ + super(OsProfileWindowsConfiguration, self).__init__(**kwargs) + self.assessment_mode = kwargs.get('assessment_mode', None) + self.patch_mode = kwargs.get('patch_mode', None) class PlacementProfile(msrest.serialization.Model): @@ -2764,6 +3065,31 @@ def __init__( self.last_updated_at = None +class SecurityProfile(msrest.serialization.Model): + """Specifies the Security profile settings for the virtual machine. + + :ivar uefi_settings: Specifies the security settings like secure boot used while creating the + virtual machine. + :vartype uefi_settings: ~azure.mgmt.connectedvmware.models.UefiSettings + """ + + _attribute_map = { + 'uefi_settings': {'key': 'uefiSettings', 'type': 'UefiSettings'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword uefi_settings: Specifies the security settings like secure boot used while creating + the virtual machine. + :paramtype uefi_settings: ~azure.mgmt.connectedvmware.models.UefiSettings + """ + super(SecurityProfile, self).__init__(**kwargs) + self.uefi_settings = kwargs.get('uefi_settings', None) + + class StopVirtualMachineOptions(msrest.serialization.Model): """Defines the stop action properties. @@ -2905,6 +3231,31 @@ def __init__( self.last_modified_at = kwargs.get('last_modified_at', None) +class UefiSettings(msrest.serialization.Model): + """Specifies the security settings like secure boot used while creating the virtual machine. + + :ivar secure_boot_enabled: Specifies whether secure boot should be enabled on the virtual + machine. + :vartype secure_boot_enabled: bool + """ + + _attribute_map = { + 'secure_boot_enabled': {'key': 'secureBootEnabled', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword secure_boot_enabled: Specifies whether secure boot should be enabled on the virtual + machine. + :paramtype secure_boot_enabled: bool + """ + super(UefiSettings, self).__init__(**kwargs) + self.secure_boot_enabled = kwargs.get('secure_boot_enabled', None) + + class VCenter(msrest.serialization.Model): """Defines the vCenter. @@ -3299,6 +3650,8 @@ class VirtualMachine(msrest.serialization.Model): :vartype storage_profile: ~azure.mgmt.connectedvmware.models.StorageProfile :ivar guest_agent_profile: Guest agent status properties. :vartype guest_agent_profile: ~azure.mgmt.connectedvmware.models.GuestAgentProfile + :ivar security_profile: Gets the security profile. + :vartype security_profile: ~azure.mgmt.connectedvmware.models.SecurityProfile :ivar mo_ref_id: Gets or sets the vCenter MoRef (Managed Object Reference) ID for the virtual machine. :vartype mo_ref_id: str @@ -3364,6 +3717,7 @@ class VirtualMachine(msrest.serialization.Model): 'network_profile': {'key': 'properties.networkProfile', 'type': 'NetworkProfile'}, 'storage_profile': {'key': 'properties.storageProfile', 'type': 'StorageProfile'}, 'guest_agent_profile': {'key': 'properties.guestAgentProfile', 'type': 'GuestAgentProfile'}, + 'security_profile': {'key': 'properties.securityProfile', 'type': 'SecurityProfile'}, 'mo_ref_id': {'key': 'properties.moRefId', 'type': 'str'}, 'inventory_item_id': {'key': 'properties.inventoryItemId', 'type': 'str'}, 'mo_name': {'key': 'properties.moName', 'type': 'str'}, @@ -3418,6 +3772,8 @@ def __init__( :paramtype storage_profile: ~azure.mgmt.connectedvmware.models.StorageProfile :keyword guest_agent_profile: Guest agent status properties. :paramtype guest_agent_profile: ~azure.mgmt.connectedvmware.models.GuestAgentProfile + :keyword security_profile: Gets the security profile. + :paramtype security_profile: ~azure.mgmt.connectedvmware.models.SecurityProfile :keyword mo_ref_id: Gets or sets the vCenter MoRef (Managed Object Reference) ID for the virtual machine. :paramtype mo_ref_id: str @@ -3447,6 +3803,7 @@ def __init__( 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.security_profile = kwargs.get('security_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 @@ -3462,6 +3819,259 @@ def __init__( self.vm_id = None +class VirtualMachineAssessPatchesResult(msrest.serialization.Model): + """Describes the properties of an AssessPatches result. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar status: The overall success or failure status of the operation. It remains "InProgress" + until the operation completes. At that point it will become "Unknown", "Failed", "Succeeded", + or "CompletedWithWarnings.". Possible values include: "Unknown", "InProgress", "Failed", + "Succeeded", "CompletedWithWarnings". + :vartype status: str or ~azure.mgmt.connectedvmware.models.PatchOperationStatus + :ivar assessment_activity_id: The activity ID of the operation that produced this result. + :vartype assessment_activity_id: str + :ivar reboot_pending: The overall reboot status of the VM. It will be true when partially + installed patches require a reboot to complete installation but the reboot has not yet + occurred. + :vartype reboot_pending: bool + :ivar available_patch_count_by_classification: Summarization of patches available for + installation on the machine by classification. + :vartype available_patch_count_by_classification: + ~azure.mgmt.connectedvmware.models.AvailablePatchCountByClassification + :ivar start_date_time: The UTC timestamp when the operation began. + :vartype start_date_time: ~datetime.datetime + :ivar last_modified_date_time: The UTC timestamp when the operation finished. + :vartype last_modified_date_time: ~datetime.datetime + :ivar started_by: Indicates if operation was triggered by user or by platform. Possible values + include: "User", "Platform". + :vartype started_by: str or ~azure.mgmt.connectedvmware.models.PatchOperationStartedBy + :ivar patch_service_used: Specifies the patch service used for the operation. Possible values + include: "Unknown", "WU", "WU_WSUS", "YUM", "APT", "Zypper". + :vartype patch_service_used: str or ~azure.mgmt.connectedvmware.models.PatchServiceUsed + :ivar os_type: The operating system type of the machine. Possible values include: "Windows", + "Linux". + :vartype os_type: str or ~azure.mgmt.connectedvmware.models.OsTypeUM + :ivar error_details: The errors that were encountered during execution of the operation. The + details array contains the list of them. + :vartype error_details: ~azure.mgmt.connectedvmware.models.ErrorDetail + """ + + _validation = { + 'status': {'readonly': True}, + 'assessment_activity_id': {'readonly': True}, + 'reboot_pending': {'readonly': True}, + 'start_date_time': {'readonly': True}, + 'last_modified_date_time': {'readonly': True}, + 'started_by': {'readonly': True}, + 'patch_service_used': {'readonly': True}, + 'os_type': {'readonly': True}, + 'error_details': {'readonly': True}, + } + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'assessment_activity_id': {'key': 'assessmentActivityId', 'type': 'str'}, + 'reboot_pending': {'key': 'rebootPending', 'type': 'bool'}, + 'available_patch_count_by_classification': {'key': 'availablePatchCountByClassification', 'type': 'AvailablePatchCountByClassification'}, + 'start_date_time': {'key': 'startDateTime', 'type': 'iso-8601'}, + 'last_modified_date_time': {'key': 'lastModifiedDateTime', 'type': 'iso-8601'}, + 'started_by': {'key': 'startedBy', 'type': 'str'}, + 'patch_service_used': {'key': 'patchServiceUsed', 'type': 'str'}, + 'os_type': {'key': 'osType', 'type': 'str'}, + 'error_details': {'key': 'errorDetails', 'type': 'ErrorDetail'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword available_patch_count_by_classification: Summarization of patches available for + installation on the machine by classification. + :paramtype available_patch_count_by_classification: + ~azure.mgmt.connectedvmware.models.AvailablePatchCountByClassification + """ + super(VirtualMachineAssessPatchesResult, self).__init__(**kwargs) + self.status = None + self.assessment_activity_id = None + self.reboot_pending = None + self.available_patch_count_by_classification = kwargs.get('available_patch_count_by_classification', None) + self.start_date_time = None + self.last_modified_date_time = None + self.started_by = None + self.patch_service_used = None + self.os_type = None + self.error_details = None + + +class VirtualMachineInstallPatchesParameters(msrest.serialization.Model): + """Input for InstallPatches as directly received by the API. + + All required parameters must be populated in order to send to Azure. + + :ivar maximum_duration: Required. Specifies the maximum amount of time that the operation will + run. It must be an ISO 8601-compliant duration string such as PT4H (4 hours). + :vartype maximum_duration: str + :ivar reboot_setting: Required. Defines when it is acceptable to reboot a VM during a software + update operation. Possible values include: "IfRequired", "Never", "Always". + :vartype reboot_setting: str or ~azure.mgmt.connectedvmware.models.VMGuestPatchRebootSetting + :ivar windows_parameters: Input for InstallPatches on a Windows VM, as directly received by the + API. + :vartype windows_parameters: ~azure.mgmt.connectedvmware.models.WindowsParameters + :ivar linux_parameters: Input for InstallPatches on a Linux VM, as directly received by the + API. + :vartype linux_parameters: ~azure.mgmt.connectedvmware.models.LinuxParameters + """ + + _validation = { + 'maximum_duration': {'required': True}, + 'reboot_setting': {'required': True}, + } + + _attribute_map = { + 'maximum_duration': {'key': 'maximumDuration', 'type': 'str'}, + 'reboot_setting': {'key': 'rebootSetting', 'type': 'str'}, + 'windows_parameters': {'key': 'windowsParameters', 'type': 'WindowsParameters'}, + 'linux_parameters': {'key': 'linuxParameters', 'type': 'LinuxParameters'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword maximum_duration: Required. Specifies the maximum amount of time that the operation + will run. It must be an ISO 8601-compliant duration string such as PT4H (4 hours). + :paramtype maximum_duration: str + :keyword reboot_setting: Required. Defines when it is acceptable to reboot a VM during a + software update operation. Possible values include: "IfRequired", "Never", "Always". + :paramtype reboot_setting: str or ~azure.mgmt.connectedvmware.models.VMGuestPatchRebootSetting + :keyword windows_parameters: Input for InstallPatches on a Windows VM, as directly received by + the API. + :paramtype windows_parameters: ~azure.mgmt.connectedvmware.models.WindowsParameters + :keyword linux_parameters: Input for InstallPatches on a Linux VM, as directly received by the + API. + :paramtype linux_parameters: ~azure.mgmt.connectedvmware.models.LinuxParameters + """ + super(VirtualMachineInstallPatchesParameters, self).__init__(**kwargs) + self.maximum_duration = kwargs['maximum_duration'] + self.reboot_setting = kwargs['reboot_setting'] + self.windows_parameters = kwargs.get('windows_parameters', None) + self.linux_parameters = kwargs.get('linux_parameters', None) + + +class VirtualMachineInstallPatchesResult(msrest.serialization.Model): + """The result summary of an installation operation. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar status: The overall success or failure status of the operation. It remains "InProgress" + until the operation completes. At that point it will become "Failed", "Succeeded", "Unknown" or + "CompletedWithWarnings.". Possible values include: "Unknown", "InProgress", "Failed", + "Succeeded", "CompletedWithWarnings". + :vartype status: str or ~azure.mgmt.connectedvmware.models.PatchOperationStatus + :ivar installation_activity_id: The activity ID of the operation that produced this result. + :vartype installation_activity_id: str + :ivar reboot_status: The reboot state of the VM following completion of the operation. Possible + values include: "Unknown", "NotNeeded", "Required", "Started", "Failed", "Completed". + :vartype reboot_status: str or ~azure.mgmt.connectedvmware.models.VMGuestPatchRebootStatus + :ivar maintenance_window_exceeded: Whether the operation ran out of time before it completed + all its intended actions. + :vartype maintenance_window_exceeded: bool + :ivar excluded_patch_count: The number of patches that were not installed due to the user + blocking their installation. + :vartype excluded_patch_count: int + :ivar not_selected_patch_count: The number of patches that were detected as available for + install, but did not meet the operation's criteria. + :vartype not_selected_patch_count: int + :ivar pending_patch_count: The number of patches that were identified as meeting the + installation criteria, but were not able to be installed. Typically this happens when + maintenanceWindowExceeded == true. + :vartype pending_patch_count: int + :ivar installed_patch_count: The number of patches successfully installed. + :vartype installed_patch_count: int + :ivar failed_patch_count: The number of patches that could not be installed due to some issue. + See errors for details. + :vartype failed_patch_count: int + :ivar start_date_time: The UTC timestamp when the operation began. + :vartype start_date_time: ~datetime.datetime + :ivar last_modified_date_time: The UTC timestamp when the operation finished. + :vartype last_modified_date_time: ~datetime.datetime + :ivar started_by: Indicates if operation was triggered by user or by platform. Possible values + include: "User", "Platform". + :vartype started_by: str or ~azure.mgmt.connectedvmware.models.PatchOperationStartedBy + :ivar patch_service_used: Specifies the patch service used for the operation. Possible values + include: "Unknown", "WU", "WU_WSUS", "YUM", "APT", "Zypper". + :vartype patch_service_used: str or ~azure.mgmt.connectedvmware.models.PatchServiceUsed + :ivar os_type: The operating system type of the machine. Possible values include: "Windows", + "Linux". + :vartype os_type: str or ~azure.mgmt.connectedvmware.models.OsTypeUM + :ivar error_details: The errors that were encountered during execution of the operation. The + details array contains the list of them. + :vartype error_details: ~azure.mgmt.connectedvmware.models.ErrorDetail + """ + + _validation = { + 'status': {'readonly': True}, + 'installation_activity_id': {'readonly': True}, + 'reboot_status': {'readonly': True}, + 'maintenance_window_exceeded': {'readonly': True}, + 'excluded_patch_count': {'readonly': True}, + 'not_selected_patch_count': {'readonly': True}, + 'pending_patch_count': {'readonly': True}, + 'installed_patch_count': {'readonly': True}, + 'failed_patch_count': {'readonly': True}, + 'start_date_time': {'readonly': True}, + 'last_modified_date_time': {'readonly': True}, + 'started_by': {'readonly': True}, + 'patch_service_used': {'readonly': True}, + 'os_type': {'readonly': True}, + 'error_details': {'readonly': True}, + } + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'installation_activity_id': {'key': 'installationActivityId', 'type': 'str'}, + 'reboot_status': {'key': 'rebootStatus', 'type': 'str'}, + 'maintenance_window_exceeded': {'key': 'maintenanceWindowExceeded', 'type': 'bool'}, + 'excluded_patch_count': {'key': 'excludedPatchCount', 'type': 'int'}, + 'not_selected_patch_count': {'key': 'notSelectedPatchCount', 'type': 'int'}, + 'pending_patch_count': {'key': 'pendingPatchCount', 'type': 'int'}, + 'installed_patch_count': {'key': 'installedPatchCount', 'type': 'int'}, + 'failed_patch_count': {'key': 'failedPatchCount', 'type': 'int'}, + 'start_date_time': {'key': 'startDateTime', 'type': 'iso-8601'}, + 'last_modified_date_time': {'key': 'lastModifiedDateTime', 'type': 'iso-8601'}, + 'started_by': {'key': 'startedBy', 'type': 'str'}, + 'patch_service_used': {'key': 'patchServiceUsed', 'type': 'str'}, + 'os_type': {'key': 'osType', 'type': 'str'}, + 'error_details': {'key': 'errorDetails', 'type': 'ErrorDetail'}, + } + + def __init__( + self, + **kwargs + ): + """ + """ + super(VirtualMachineInstallPatchesResult, self).__init__(**kwargs) + self.status = None + self.installation_activity_id = None + self.reboot_status = None + self.maintenance_window_exceeded = None + self.excluded_patch_count = None + self.not_selected_patch_count = None + self.pending_patch_count = None + self.installed_patch_count = None + self.failed_patch_count = None + self.start_date_time = None + self.last_modified_date_time = None + self.started_by = None + self.patch_service_used = None + self.os_type = None + self.error_details = None + + class VirtualMachineInventoryItem(InventoryItemProperties): """The VM inventory item. @@ -3940,6 +4550,8 @@ class VirtualMachineUpdate(msrest.serialization.Model): :vartype identity: ~azure.mgmt.connectedvmware.models.Identity :ivar hardware_profile: Defines the resource properties. :vartype hardware_profile: ~azure.mgmt.connectedvmware.models.HardwareProfile + :ivar os_profile: OS properties. + :vartype os_profile: ~azure.mgmt.connectedvmware.models.OsProfileUpdate :ivar storage_profile: Defines the resource update properties. :vartype storage_profile: ~azure.mgmt.connectedvmware.models.StorageProfileUpdate :ivar network_profile: Defines the update resource properties. @@ -3950,6 +4562,7 @@ class VirtualMachineUpdate(msrest.serialization.Model): 'tags': {'key': 'tags', 'type': '{str}'}, 'identity': {'key': 'identity', 'type': 'Identity'}, 'hardware_profile': {'key': 'properties.hardwareProfile', 'type': 'HardwareProfile'}, + 'os_profile': {'key': 'properties.osProfile', 'type': 'OsProfileUpdate'}, 'storage_profile': {'key': 'properties.storageProfile', 'type': 'StorageProfileUpdate'}, 'network_profile': {'key': 'properties.networkProfile', 'type': 'NetworkProfileUpdate'}, } @@ -3965,6 +4578,8 @@ def __init__( :paramtype identity: ~azure.mgmt.connectedvmware.models.Identity :keyword hardware_profile: Defines the resource properties. :paramtype hardware_profile: ~azure.mgmt.connectedvmware.models.HardwareProfile + :keyword os_profile: OS properties. + :paramtype os_profile: ~azure.mgmt.connectedvmware.models.OsProfileUpdate :keyword storage_profile: Defines the resource update properties. :paramtype storage_profile: ~azure.mgmt.connectedvmware.models.StorageProfileUpdate :keyword network_profile: Defines the update resource properties. @@ -3974,6 +4589,7 @@ def __init__( self.tags = kwargs.get('tags', None) self.identity = kwargs.get('identity', None) self.hardware_profile = kwargs.get('hardware_profile', None) + self.os_profile = kwargs.get('os_profile', None) self.storage_profile = kwargs.get('storage_profile', None) self.network_profile = kwargs.get('network_profile', None) @@ -4235,3 +4851,58 @@ def __init__( self.bus_number = kwargs.get('bus_number', None) self.scsi_ctlr_unit_number = kwargs.get('scsi_ctlr_unit_number', None) self.sharing = kwargs.get('sharing', None) + + +class WindowsParameters(msrest.serialization.Model): + """Input for InstallPatches on a Windows VM, as directly received by the API. + + :ivar classifications_to_include: The update classifications to select when installing patches + for Windows. + :vartype classifications_to_include: list[str or + ~azure.mgmt.connectedvmware.models.VMGuestPatchClassificationWindows] + :ivar kb_numbers_to_include: Kbs to include in the patch operation. + :vartype kb_numbers_to_include: list[str] + :ivar kb_numbers_to_exclude: Kbs to exclude in the patch operation. + :vartype kb_numbers_to_exclude: list[str] + :ivar exclude_kbs_requiring_reboot: Filters out Kbs that don't have an + InstallationRebootBehavior of 'NeverReboots' when this is set to true. + :vartype exclude_kbs_requiring_reboot: bool + :ivar max_patch_publish_date: This is used to install patches that were published on or before + this given max published date. + :vartype max_patch_publish_date: ~datetime.datetime + """ + + _attribute_map = { + 'classifications_to_include': {'key': 'classificationsToInclude', 'type': '[str]'}, + 'kb_numbers_to_include': {'key': 'kbNumbersToInclude', 'type': '[str]'}, + 'kb_numbers_to_exclude': {'key': 'kbNumbersToExclude', 'type': '[str]'}, + 'exclude_kbs_requiring_reboot': {'key': 'excludeKbsRequiringReboot', 'type': 'bool'}, + 'max_patch_publish_date': {'key': 'maxPatchPublishDate', 'type': 'iso-8601'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword classifications_to_include: The update classifications to select when installing + patches for Windows. + :paramtype classifications_to_include: list[str or + ~azure.mgmt.connectedvmware.models.VMGuestPatchClassificationWindows] + :keyword kb_numbers_to_include: Kbs to include in the patch operation. + :paramtype kb_numbers_to_include: list[str] + :keyword kb_numbers_to_exclude: Kbs to exclude in the patch operation. + :paramtype kb_numbers_to_exclude: list[str] + :keyword exclude_kbs_requiring_reboot: Filters out Kbs that don't have an + InstallationRebootBehavior of 'NeverReboots' when this is set to true. + :paramtype exclude_kbs_requiring_reboot: bool + :keyword max_patch_publish_date: This is used to install patches that were published on or + before this given max published date. + :paramtype max_patch_publish_date: ~datetime.datetime + """ + super(WindowsParameters, self).__init__(**kwargs) + self.classifications_to_include = kwargs.get('classifications_to_include', None) + self.kb_numbers_to_include = kwargs.get('kb_numbers_to_include', None) + self.kb_numbers_to_exclude = kwargs.get('kb_numbers_to_exclude', None) + self.exclude_kbs_requiring_reboot = kwargs.get('exclude_kbs_requiring_reboot', None) + self.max_patch_publish_date = kwargs.get('max_patch_publish_date', None) 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 3e9a1e398f6..567161a5dd8 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/_models_py3.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/_models_py3.py @@ -15,6 +15,73 @@ from ._azure_arc_vmware_management_service_api_enums import * +class AvailablePatchCountByClassification(msrest.serialization.Model): + """Summarization of patches available for installation on the machine by classification. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar security: Number of security patches available for installation. + :vartype security: int + :ivar critical: Number of critical patches available for installation. + :vartype critical: int + :ivar definition: Number of definition patches available for installation. + :vartype definition: int + :ivar update_rollup: Number of update Rollup patches available for installation. + :vartype update_rollup: int + :ivar feature_pack: Number of feature pack patches available for installation. + :vartype feature_pack: int + :ivar service_pack: Number of service pack patches available for installation. + :vartype service_pack: int + :ivar tools: Number of tools patches available for installation. + :vartype tools: int + :ivar updates: Number of updates category patches available for installation. + :vartype updates: int + :ivar other: Number of other patches available for installation. + :vartype other: int + """ + + _validation = { + 'security': {'readonly': True}, + 'critical': {'readonly': True}, + 'definition': {'readonly': True}, + 'update_rollup': {'readonly': True}, + 'feature_pack': {'readonly': True}, + 'service_pack': {'readonly': True}, + 'tools': {'readonly': True}, + 'updates': {'readonly': True}, + 'other': {'readonly': True}, + } + + _attribute_map = { + 'security': {'key': 'security', 'type': 'int'}, + 'critical': {'key': 'critical', 'type': 'int'}, + 'definition': {'key': 'definition', 'type': 'int'}, + 'update_rollup': {'key': 'updateRollup', 'type': 'int'}, + 'feature_pack': {'key': 'featurePack', 'type': 'int'}, + 'service_pack': {'key': 'servicePack', 'type': 'int'}, + 'tools': {'key': 'tools', 'type': 'int'}, + 'updates': {'key': 'updates', 'type': 'int'}, + 'other': {'key': 'other', 'type': 'int'}, + } + + def __init__( + self, + **kwargs + ): + """ + """ + super(AvailablePatchCountByClassification, self).__init__(**kwargs) + self.security = None + self.critical = None + self.definition = None + self.update_rollup = None + self.feature_pack = None + self.service_pack = None + self.tools = None + self.updates = None + self.other = None + + class Cluster(msrest.serialization.Model): """Define the cluster. @@ -1652,6 +1719,53 @@ def __init__( self.value = value +class LinuxParameters(msrest.serialization.Model): + """Input for InstallPatches on a Linux VM, as directly received by the API. + + :ivar classifications_to_include: The update classifications to select when installing patches + for Linux. + :vartype classifications_to_include: list[str or + ~azure.mgmt.connectedvmware.models.VMGuestPatchClassificationLinux] + :ivar package_name_masks_to_include: packages to include in the patch operation. Format: + packageName_packageVersion. + :vartype package_name_masks_to_include: list[str] + :ivar package_name_masks_to_exclude: packages to exclude in the patch operation. Format: + packageName_packageVersion. + :vartype package_name_masks_to_exclude: list[str] + """ + + _attribute_map = { + 'classifications_to_include': {'key': 'classificationsToInclude', 'type': '[str]'}, + 'package_name_masks_to_include': {'key': 'packageNameMasksToInclude', 'type': '[str]'}, + 'package_name_masks_to_exclude': {'key': 'packageNameMasksToExclude', 'type': '[str]'}, + } + + def __init__( + self, + *, + classifications_to_include: Optional[List[Union[str, "VMGuestPatchClassificationLinux"]]] = None, + package_name_masks_to_include: Optional[List[str]] = None, + package_name_masks_to_exclude: Optional[List[str]] = None, + **kwargs + ): + """ + :keyword classifications_to_include: The update classifications to select when installing + patches for Linux. + :paramtype classifications_to_include: list[str or + ~azure.mgmt.connectedvmware.models.VMGuestPatchClassificationLinux] + :keyword package_name_masks_to_include: packages to include in the patch operation. Format: + packageName_packageVersion. + :paramtype package_name_masks_to_include: list[str] + :keyword package_name_masks_to_exclude: packages to exclude in the patch operation. Format: + packageName_packageVersion. + :paramtype package_name_masks_to_exclude: list[str] + """ + super(LinuxParameters, self).__init__(**kwargs) + self.classifications_to_include = classifications_to_include + self.package_name_masks_to_include = package_name_masks_to_include + self.package_name_masks_to_exclude = package_name_masks_to_exclude + + class MachineExtension(msrest.serialization.Model): """Describes a Machine Extension. @@ -1679,6 +1793,9 @@ class MachineExtension(msrest.serialization.Model): :vartype type_properties_type: str :ivar type_handler_version: Specifies the version of the script handler. :vartype type_handler_version: str + :ivar enable_automatic_upgrade: Indicates whether the extension should be automatically + upgraded by the platform if there is a newer version available. + :vartype enable_automatic_upgrade: bool :ivar auto_upgrade_minor_version: Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. @@ -1714,6 +1831,7 @@ class MachineExtension(msrest.serialization.Model): 'publisher': {'key': 'properties.publisher', 'type': 'str'}, 'type_properties_type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, + 'enable_automatic_upgrade': {'key': 'properties.enableAutomaticUpgrade', 'type': 'bool'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, 'settings': {'key': 'properties.settings', 'type': 'object'}, 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, @@ -1730,6 +1848,7 @@ def __init__( publisher: Optional[str] = None, type_properties_type: Optional[str] = None, type_handler_version: Optional[str] = None, + enable_automatic_upgrade: Optional[bool] = None, auto_upgrade_minor_version: Optional[bool] = None, settings: Optional[Any] = None, protected_settings: Optional[Any] = None, @@ -1751,6 +1870,9 @@ def __init__( :paramtype type_properties_type: str :keyword type_handler_version: Specifies the version of the script handler. :paramtype type_handler_version: str + :keyword enable_automatic_upgrade: Indicates whether the extension should be automatically + upgraded by the platform if there is a newer version available. + :paramtype enable_automatic_upgrade: bool :keyword auto_upgrade_minor_version: Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. @@ -1775,6 +1897,7 @@ def __init__( self.publisher = publisher self.type_properties_type = type_properties_type self.type_handler_version = type_handler_version + self.enable_automatic_upgrade = enable_automatic_upgrade self.auto_upgrade_minor_version = auto_upgrade_minor_version self.settings = settings self.protected_settings = protected_settings @@ -1988,6 +2111,9 @@ class MachineExtensionUpdate(ResourcePatch): :vartype type: str :ivar type_handler_version: Specifies the version of the script handler. :vartype type_handler_version: str + :ivar enable_automatic_upgrade: Indicates whether the extension should be automatically + upgraded by the platform if there is a newer version available. + :vartype enable_automatic_upgrade: bool :ivar auto_upgrade_minor_version: Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. @@ -2005,6 +2131,7 @@ class MachineExtensionUpdate(ResourcePatch): 'publisher': {'key': 'properties.publisher', 'type': 'str'}, 'type': {'key': 'properties.type', 'type': 'str'}, 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, + 'enable_automatic_upgrade': {'key': 'properties.enableAutomaticUpgrade', 'type': 'bool'}, 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, 'settings': {'key': 'properties.settings', 'type': 'object'}, 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, @@ -2018,6 +2145,7 @@ def __init__( publisher: Optional[str] = None, type: Optional[str] = None, type_handler_version: Optional[str] = None, + enable_automatic_upgrade: Optional[bool] = None, auto_upgrade_minor_version: Optional[bool] = None, settings: Optional[Any] = None, protected_settings: Optional[Any] = None, @@ -2035,6 +2163,9 @@ def __init__( :paramtype type: str :keyword type_handler_version: Specifies the version of the script handler. :paramtype type_handler_version: str + :keyword enable_automatic_upgrade: Indicates whether the extension should be automatically + upgraded by the platform if there is a newer version available. + :paramtype enable_automatic_upgrade: bool :keyword auto_upgrade_minor_version: Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. @@ -2050,6 +2181,7 @@ def __init__( self.publisher = publisher self.type = type self.type_handler_version = type_handler_version + self.enable_automatic_upgrade = enable_automatic_upgrade self.auto_upgrade_minor_version = auto_upgrade_minor_version self.settings = settings self.protected_settings = protected_settings @@ -2516,6 +2648,11 @@ class OsProfile(msrest.serialization.Model): :vartype admin_username: str :ivar admin_password: Gets or sets administrator password. :vartype admin_password: str + :ivar guest_id: Gets or sets the guestId. + :vartype guest_id: str + :ivar allow_extension_operations: Gets or sets a value indicating whether the VM is ready for + extension operations. + :vartype allow_extension_operations: bool :ivar os_type: Gets or sets the type of the os. Possible values include: "Windows", "Linux", "Other". :vartype os_type: str or ~azure.mgmt.connectedvmware.models.OsType @@ -2529,9 +2666,15 @@ class OsProfile(msrest.serialization.Model): :vartype tools_version_status: str :ivar tools_version: Gets or sets the current version of VMware Tools. :vartype tools_version: str + :ivar windows_configuration: Specifies the windows configuration for update management. + :vartype windows_configuration: + ~azure.mgmt.connectedvmware.models.OsProfileWindowsConfiguration + :ivar linux_configuration: Specifies the linux configuration for update management. + :vartype linux_configuration: ~azure.mgmt.connectedvmware.models.OsProfileLinuxConfiguration """ _validation = { + 'allow_extension_operations': {'readonly': True}, 'os_name': {'readonly': True}, 'tools_running_status': {'readonly': True}, 'tools_version_status': {'readonly': True}, @@ -2542,11 +2685,15 @@ class OsProfile(msrest.serialization.Model): 'computer_name': {'key': 'computerName', 'type': 'str'}, 'admin_username': {'key': 'adminUsername', 'type': 'str'}, 'admin_password': {'key': 'adminPassword', 'type': 'str'}, + 'guest_id': {'key': 'guestId', 'type': 'str'}, + 'allow_extension_operations': {'key': 'allowExtensionOperations', 'type': 'bool'}, 'os_type': {'key': 'osType', 'type': 'str'}, 'os_name': {'key': 'osName', 'type': 'str'}, 'tools_running_status': {'key': 'toolsRunningStatus', 'type': 'str'}, 'tools_version_status': {'key': 'toolsVersionStatus', 'type': 'str'}, 'tools_version': {'key': 'toolsVersion', 'type': 'str'}, + 'windows_configuration': {'key': 'windowsConfiguration', 'type': 'OsProfileWindowsConfiguration'}, + 'linux_configuration': {'key': 'linuxConfiguration', 'type': 'OsProfileLinuxConfiguration'}, } def __init__( @@ -2555,7 +2702,10 @@ def __init__( computer_name: Optional[str] = None, admin_username: Optional[str] = None, admin_password: Optional[str] = None, + guest_id: Optional[str] = None, os_type: Optional[Union[str, "OsType"]] = None, + windows_configuration: Optional["OsProfileWindowsConfiguration"] = None, + linux_configuration: Optional["OsProfileLinuxConfiguration"] = None, **kwargs ): """ @@ -2565,19 +2715,194 @@ def __init__( :paramtype admin_username: str :keyword admin_password: Gets or sets administrator password. :paramtype admin_password: str + :keyword guest_id: Gets or sets the guestId. + :paramtype guest_id: str :keyword os_type: Gets or sets the type of the os. Possible values include: "Windows", "Linux", "Other". :paramtype os_type: str or ~azure.mgmt.connectedvmware.models.OsType + :keyword windows_configuration: Specifies the windows configuration for update management. + :paramtype windows_configuration: + ~azure.mgmt.connectedvmware.models.OsProfileWindowsConfiguration + :keyword linux_configuration: Specifies the linux configuration for update management. + :paramtype linux_configuration: ~azure.mgmt.connectedvmware.models.OsProfileLinuxConfiguration """ super(OsProfile, self).__init__(**kwargs) self.computer_name = computer_name self.admin_username = admin_username self.admin_password = admin_password + self.guest_id = guest_id + self.allow_extension_operations = None self.os_type = os_type self.os_name = None self.tools_running_status = None self.tools_version_status = None self.tools_version = None + self.windows_configuration = windows_configuration + self.linux_configuration = linux_configuration + + +class OsProfileLinuxConfiguration(msrest.serialization.Model): + """Specifies the linux configuration for update management. + + :ivar assessment_mode: Specifies the assessment mode. + :vartype assessment_mode: str + :ivar patch_mode: Specifies the patch mode. + :vartype patch_mode: str + """ + + _attribute_map = { + 'assessment_mode': {'key': 'patchSettings.assessmentMode', 'type': 'str'}, + 'patch_mode': {'key': 'patchSettings.patchMode', 'type': 'str'}, + } + + def __init__( + self, + *, + assessment_mode: Optional[str] = None, + patch_mode: Optional[str] = None, + **kwargs + ): + """ + :keyword assessment_mode: Specifies the assessment mode. + :paramtype assessment_mode: str + :keyword patch_mode: Specifies the patch mode. + :paramtype patch_mode: str + """ + super(OsProfileLinuxConfiguration, self).__init__(**kwargs) + self.assessment_mode = assessment_mode + self.patch_mode = patch_mode + + +class OsProfileUpdate(msrest.serialization.Model): + """Defines the os update properties. + + :ivar windows_configuration: Specifies the windows configuration for update management. + :vartype windows_configuration: + ~azure.mgmt.connectedvmware.models.OsProfileUpdateWindowsConfiguration + :ivar linux_configuration: Specifies the linux configuration for update management. + :vartype linux_configuration: + ~azure.mgmt.connectedvmware.models.OsProfileUpdateLinuxConfiguration + """ + + _attribute_map = { + 'windows_configuration': {'key': 'windowsConfiguration', 'type': 'OsProfileUpdateWindowsConfiguration'}, + 'linux_configuration': {'key': 'linuxConfiguration', 'type': 'OsProfileUpdateLinuxConfiguration'}, + } + + def __init__( + self, + *, + windows_configuration: Optional["OsProfileUpdateWindowsConfiguration"] = None, + linux_configuration: Optional["OsProfileUpdateLinuxConfiguration"] = None, + **kwargs + ): + """ + :keyword windows_configuration: Specifies the windows configuration for update management. + :paramtype windows_configuration: + ~azure.mgmt.connectedvmware.models.OsProfileUpdateWindowsConfiguration + :keyword linux_configuration: Specifies the linux configuration for update management. + :paramtype linux_configuration: + ~azure.mgmt.connectedvmware.models.OsProfileUpdateLinuxConfiguration + """ + super(OsProfileUpdate, self).__init__(**kwargs) + self.windows_configuration = windows_configuration + self.linux_configuration = linux_configuration + + +class OsProfileUpdateLinuxConfiguration(msrest.serialization.Model): + """Specifies the linux configuration for update management. + + :ivar assessment_mode: Specifies the assessment mode. + :vartype assessment_mode: str + :ivar patch_mode: Specifies the patch mode. + :vartype patch_mode: str + """ + + _attribute_map = { + 'assessment_mode': {'key': 'patchSettings.assessmentMode', 'type': 'str'}, + 'patch_mode': {'key': 'patchSettings.patchMode', 'type': 'str'}, + } + + def __init__( + self, + *, + assessment_mode: Optional[str] = None, + patch_mode: Optional[str] = None, + **kwargs + ): + """ + :keyword assessment_mode: Specifies the assessment mode. + :paramtype assessment_mode: str + :keyword patch_mode: Specifies the patch mode. + :paramtype patch_mode: str + """ + super(OsProfileUpdateLinuxConfiguration, self).__init__(**kwargs) + self.assessment_mode = assessment_mode + self.patch_mode = patch_mode + + +class OsProfileUpdateWindowsConfiguration(msrest.serialization.Model): + """Specifies the windows configuration for update management. + + :ivar assessment_mode: Specifies the assessment mode. + :vartype assessment_mode: str + :ivar patch_mode: Specifies the patch mode. + :vartype patch_mode: str + """ + + _attribute_map = { + 'assessment_mode': {'key': 'patchSettings.assessmentMode', 'type': 'str'}, + 'patch_mode': {'key': 'patchSettings.patchMode', 'type': 'str'}, + } + + def __init__( + self, + *, + assessment_mode: Optional[str] = None, + patch_mode: Optional[str] = None, + **kwargs + ): + """ + :keyword assessment_mode: Specifies the assessment mode. + :paramtype assessment_mode: str + :keyword patch_mode: Specifies the patch mode. + :paramtype patch_mode: str + """ + super(OsProfileUpdateWindowsConfiguration, self).__init__(**kwargs) + self.assessment_mode = assessment_mode + self.patch_mode = patch_mode + + +class OsProfileWindowsConfiguration(msrest.serialization.Model): + """Specifies the windows configuration for update management. + + :ivar assessment_mode: Specifies the assessment mode. + :vartype assessment_mode: str + :ivar patch_mode: Specifies the patch mode. + :vartype patch_mode: str + """ + + _attribute_map = { + 'assessment_mode': {'key': 'patchSettings.assessmentMode', 'type': 'str'}, + 'patch_mode': {'key': 'patchSettings.patchMode', 'type': 'str'}, + } + + def __init__( + self, + *, + assessment_mode: Optional[str] = None, + patch_mode: Optional[str] = None, + **kwargs + ): + """ + :keyword assessment_mode: Specifies the assessment mode. + :paramtype assessment_mode: str + :keyword patch_mode: Specifies the patch mode. + :paramtype patch_mode: str + """ + super(OsProfileWindowsConfiguration, self).__init__(**kwargs) + self.assessment_mode = assessment_mode + self.patch_mode = patch_mode class PlacementProfile(msrest.serialization.Model): @@ -2956,6 +3281,33 @@ def __init__( self.last_updated_at = None +class SecurityProfile(msrest.serialization.Model): + """Specifies the Security profile settings for the virtual machine. + + :ivar uefi_settings: Specifies the security settings like secure boot used while creating the + virtual machine. + :vartype uefi_settings: ~azure.mgmt.connectedvmware.models.UefiSettings + """ + + _attribute_map = { + 'uefi_settings': {'key': 'uefiSettings', 'type': 'UefiSettings'}, + } + + def __init__( + self, + *, + uefi_settings: Optional["UefiSettings"] = None, + **kwargs + ): + """ + :keyword uefi_settings: Specifies the security settings like secure boot used while creating + the virtual machine. + :paramtype uefi_settings: ~azure.mgmt.connectedvmware.models.UefiSettings + """ + super(SecurityProfile, self).__init__(**kwargs) + self.uefi_settings = uefi_settings + + class StopVirtualMachineOptions(msrest.serialization.Model): """Defines the stop action properties. @@ -3110,6 +3462,33 @@ def __init__( self.last_modified_at = last_modified_at +class UefiSettings(msrest.serialization.Model): + """Specifies the security settings like secure boot used while creating the virtual machine. + + :ivar secure_boot_enabled: Specifies whether secure boot should be enabled on the virtual + machine. + :vartype secure_boot_enabled: bool + """ + + _attribute_map = { + 'secure_boot_enabled': {'key': 'secureBootEnabled', 'type': 'bool'}, + } + + def __init__( + self, + *, + secure_boot_enabled: Optional[bool] = None, + **kwargs + ): + """ + :keyword secure_boot_enabled: Specifies whether secure boot should be enabled on the virtual + machine. + :paramtype secure_boot_enabled: bool + """ + super(UefiSettings, self).__init__(**kwargs) + self.secure_boot_enabled = secure_boot_enabled + + class VCenter(msrest.serialization.Model): """Defines the vCenter. @@ -3536,6 +3915,8 @@ class VirtualMachine(msrest.serialization.Model): :vartype storage_profile: ~azure.mgmt.connectedvmware.models.StorageProfile :ivar guest_agent_profile: Guest agent status properties. :vartype guest_agent_profile: ~azure.mgmt.connectedvmware.models.GuestAgentProfile + :ivar security_profile: Gets the security profile. + :vartype security_profile: ~azure.mgmt.connectedvmware.models.SecurityProfile :ivar mo_ref_id: Gets or sets the vCenter MoRef (Managed Object Reference) ID for the virtual machine. :vartype mo_ref_id: str @@ -3601,6 +3982,7 @@ class VirtualMachine(msrest.serialization.Model): 'network_profile': {'key': 'properties.networkProfile', 'type': 'NetworkProfile'}, 'storage_profile': {'key': 'properties.storageProfile', 'type': 'StorageProfile'}, 'guest_agent_profile': {'key': 'properties.guestAgentProfile', 'type': 'GuestAgentProfile'}, + 'security_profile': {'key': 'properties.securityProfile', 'type': 'SecurityProfile'}, 'mo_ref_id': {'key': 'properties.moRefId', 'type': 'str'}, 'inventory_item_id': {'key': 'properties.inventoryItemId', 'type': 'str'}, 'mo_name': {'key': 'properties.moName', 'type': 'str'}, @@ -3633,6 +4015,7 @@ def __init__( network_profile: Optional["NetworkProfile"] = None, storage_profile: Optional["StorageProfile"] = None, guest_agent_profile: Optional["GuestAgentProfile"] = None, + security_profile: Optional["SecurityProfile"] = None, mo_ref_id: Optional[str] = None, inventory_item_id: Optional[str] = None, smbios_uuid: Optional[str] = None, @@ -3674,6 +4057,8 @@ def __init__( :paramtype storage_profile: ~azure.mgmt.connectedvmware.models.StorageProfile :keyword guest_agent_profile: Guest agent status properties. :paramtype guest_agent_profile: ~azure.mgmt.connectedvmware.models.GuestAgentProfile + :keyword security_profile: Gets the security profile. + :paramtype security_profile: ~azure.mgmt.connectedvmware.models.SecurityProfile :keyword mo_ref_id: Gets or sets the vCenter MoRef (Managed Object Reference) ID for the virtual machine. :paramtype mo_ref_id: str @@ -3703,6 +4088,7 @@ def __init__( self.network_profile = network_profile self.storage_profile = storage_profile self.guest_agent_profile = guest_agent_profile + self.security_profile = security_profile self.mo_ref_id = mo_ref_id self.inventory_item_id = inventory_item_id self.mo_name = None @@ -3718,6 +4104,266 @@ def __init__( self.vm_id = None +class VirtualMachineAssessPatchesResult(msrest.serialization.Model): + """Describes the properties of an AssessPatches result. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar status: The overall success or failure status of the operation. It remains "InProgress" + until the operation completes. At that point it will become "Unknown", "Failed", "Succeeded", + or "CompletedWithWarnings.". Possible values include: "Unknown", "InProgress", "Failed", + "Succeeded", "CompletedWithWarnings". + :vartype status: str or ~azure.mgmt.connectedvmware.models.PatchOperationStatus + :ivar assessment_activity_id: The activity ID of the operation that produced this result. + :vartype assessment_activity_id: str + :ivar reboot_pending: The overall reboot status of the VM. It will be true when partially + installed patches require a reboot to complete installation but the reboot has not yet + occurred. + :vartype reboot_pending: bool + :ivar available_patch_count_by_classification: Summarization of patches available for + installation on the machine by classification. + :vartype available_patch_count_by_classification: + ~azure.mgmt.connectedvmware.models.AvailablePatchCountByClassification + :ivar start_date_time: The UTC timestamp when the operation began. + :vartype start_date_time: ~datetime.datetime + :ivar last_modified_date_time: The UTC timestamp when the operation finished. + :vartype last_modified_date_time: ~datetime.datetime + :ivar started_by: Indicates if operation was triggered by user or by platform. Possible values + include: "User", "Platform". + :vartype started_by: str or ~azure.mgmt.connectedvmware.models.PatchOperationStartedBy + :ivar patch_service_used: Specifies the patch service used for the operation. Possible values + include: "Unknown", "WU", "WU_WSUS", "YUM", "APT", "Zypper". + :vartype patch_service_used: str or ~azure.mgmt.connectedvmware.models.PatchServiceUsed + :ivar os_type: The operating system type of the machine. Possible values include: "Windows", + "Linux". + :vartype os_type: str or ~azure.mgmt.connectedvmware.models.OsTypeUM + :ivar error_details: The errors that were encountered during execution of the operation. The + details array contains the list of them. + :vartype error_details: ~azure.mgmt.connectedvmware.models.ErrorDetail + """ + + _validation = { + 'status': {'readonly': True}, + 'assessment_activity_id': {'readonly': True}, + 'reboot_pending': {'readonly': True}, + 'start_date_time': {'readonly': True}, + 'last_modified_date_time': {'readonly': True}, + 'started_by': {'readonly': True}, + 'patch_service_used': {'readonly': True}, + 'os_type': {'readonly': True}, + 'error_details': {'readonly': True}, + } + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'assessment_activity_id': {'key': 'assessmentActivityId', 'type': 'str'}, + 'reboot_pending': {'key': 'rebootPending', 'type': 'bool'}, + 'available_patch_count_by_classification': {'key': 'availablePatchCountByClassification', 'type': 'AvailablePatchCountByClassification'}, + 'start_date_time': {'key': 'startDateTime', 'type': 'iso-8601'}, + 'last_modified_date_time': {'key': 'lastModifiedDateTime', 'type': 'iso-8601'}, + 'started_by': {'key': 'startedBy', 'type': 'str'}, + 'patch_service_used': {'key': 'patchServiceUsed', 'type': 'str'}, + 'os_type': {'key': 'osType', 'type': 'str'}, + 'error_details': {'key': 'errorDetails', 'type': 'ErrorDetail'}, + } + + def __init__( + self, + *, + available_patch_count_by_classification: Optional["AvailablePatchCountByClassification"] = None, + **kwargs + ): + """ + :keyword available_patch_count_by_classification: Summarization of patches available for + installation on the machine by classification. + :paramtype available_patch_count_by_classification: + ~azure.mgmt.connectedvmware.models.AvailablePatchCountByClassification + """ + super(VirtualMachineAssessPatchesResult, self).__init__(**kwargs) + self.status = None + self.assessment_activity_id = None + self.reboot_pending = None + self.available_patch_count_by_classification = available_patch_count_by_classification + self.start_date_time = None + self.last_modified_date_time = None + self.started_by = None + self.patch_service_used = None + self.os_type = None + self.error_details = None + + +class VirtualMachineInstallPatchesParameters(msrest.serialization.Model): + """Input for InstallPatches as directly received by the API. + + All required parameters must be populated in order to send to Azure. + + :ivar maximum_duration: Required. Specifies the maximum amount of time that the operation will + run. It must be an ISO 8601-compliant duration string such as PT4H (4 hours). + :vartype maximum_duration: str + :ivar reboot_setting: Required. Defines when it is acceptable to reboot a VM during a software + update operation. Possible values include: "IfRequired", "Never", "Always". + :vartype reboot_setting: str or ~azure.mgmt.connectedvmware.models.VMGuestPatchRebootSetting + :ivar windows_parameters: Input for InstallPatches on a Windows VM, as directly received by the + API. + :vartype windows_parameters: ~azure.mgmt.connectedvmware.models.WindowsParameters + :ivar linux_parameters: Input for InstallPatches on a Linux VM, as directly received by the + API. + :vartype linux_parameters: ~azure.mgmt.connectedvmware.models.LinuxParameters + """ + + _validation = { + 'maximum_duration': {'required': True}, + 'reboot_setting': {'required': True}, + } + + _attribute_map = { + 'maximum_duration': {'key': 'maximumDuration', 'type': 'str'}, + 'reboot_setting': {'key': 'rebootSetting', 'type': 'str'}, + 'windows_parameters': {'key': 'windowsParameters', 'type': 'WindowsParameters'}, + 'linux_parameters': {'key': 'linuxParameters', 'type': 'LinuxParameters'}, + } + + def __init__( + self, + *, + maximum_duration: str, + reboot_setting: Union[str, "VMGuestPatchRebootSetting"], + windows_parameters: Optional["WindowsParameters"] = None, + linux_parameters: Optional["LinuxParameters"] = None, + **kwargs + ): + """ + :keyword maximum_duration: Required. Specifies the maximum amount of time that the operation + will run. It must be an ISO 8601-compliant duration string such as PT4H (4 hours). + :paramtype maximum_duration: str + :keyword reboot_setting: Required. Defines when it is acceptable to reboot a VM during a + software update operation. Possible values include: "IfRequired", "Never", "Always". + :paramtype reboot_setting: str or ~azure.mgmt.connectedvmware.models.VMGuestPatchRebootSetting + :keyword windows_parameters: Input for InstallPatches on a Windows VM, as directly received by + the API. + :paramtype windows_parameters: ~azure.mgmt.connectedvmware.models.WindowsParameters + :keyword linux_parameters: Input for InstallPatches on a Linux VM, as directly received by the + API. + :paramtype linux_parameters: ~azure.mgmt.connectedvmware.models.LinuxParameters + """ + super(VirtualMachineInstallPatchesParameters, self).__init__(**kwargs) + self.maximum_duration = maximum_duration + self.reboot_setting = reboot_setting + self.windows_parameters = windows_parameters + self.linux_parameters = linux_parameters + + +class VirtualMachineInstallPatchesResult(msrest.serialization.Model): + """The result summary of an installation operation. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar status: The overall success or failure status of the operation. It remains "InProgress" + until the operation completes. At that point it will become "Failed", "Succeeded", "Unknown" or + "CompletedWithWarnings.". Possible values include: "Unknown", "InProgress", "Failed", + "Succeeded", "CompletedWithWarnings". + :vartype status: str or ~azure.mgmt.connectedvmware.models.PatchOperationStatus + :ivar installation_activity_id: The activity ID of the operation that produced this result. + :vartype installation_activity_id: str + :ivar reboot_status: The reboot state of the VM following completion of the operation. Possible + values include: "Unknown", "NotNeeded", "Required", "Started", "Failed", "Completed". + :vartype reboot_status: str or ~azure.mgmt.connectedvmware.models.VMGuestPatchRebootStatus + :ivar maintenance_window_exceeded: Whether the operation ran out of time before it completed + all its intended actions. + :vartype maintenance_window_exceeded: bool + :ivar excluded_patch_count: The number of patches that were not installed due to the user + blocking their installation. + :vartype excluded_patch_count: int + :ivar not_selected_patch_count: The number of patches that were detected as available for + install, but did not meet the operation's criteria. + :vartype not_selected_patch_count: int + :ivar pending_patch_count: The number of patches that were identified as meeting the + installation criteria, but were not able to be installed. Typically this happens when + maintenanceWindowExceeded == true. + :vartype pending_patch_count: int + :ivar installed_patch_count: The number of patches successfully installed. + :vartype installed_patch_count: int + :ivar failed_patch_count: The number of patches that could not be installed due to some issue. + See errors for details. + :vartype failed_patch_count: int + :ivar start_date_time: The UTC timestamp when the operation began. + :vartype start_date_time: ~datetime.datetime + :ivar last_modified_date_time: The UTC timestamp when the operation finished. + :vartype last_modified_date_time: ~datetime.datetime + :ivar started_by: Indicates if operation was triggered by user or by platform. Possible values + include: "User", "Platform". + :vartype started_by: str or ~azure.mgmt.connectedvmware.models.PatchOperationStartedBy + :ivar patch_service_used: Specifies the patch service used for the operation. Possible values + include: "Unknown", "WU", "WU_WSUS", "YUM", "APT", "Zypper". + :vartype patch_service_used: str or ~azure.mgmt.connectedvmware.models.PatchServiceUsed + :ivar os_type: The operating system type of the machine. Possible values include: "Windows", + "Linux". + :vartype os_type: str or ~azure.mgmt.connectedvmware.models.OsTypeUM + :ivar error_details: The errors that were encountered during execution of the operation. The + details array contains the list of them. + :vartype error_details: ~azure.mgmt.connectedvmware.models.ErrorDetail + """ + + _validation = { + 'status': {'readonly': True}, + 'installation_activity_id': {'readonly': True}, + 'reboot_status': {'readonly': True}, + 'maintenance_window_exceeded': {'readonly': True}, + 'excluded_patch_count': {'readonly': True}, + 'not_selected_patch_count': {'readonly': True}, + 'pending_patch_count': {'readonly': True}, + 'installed_patch_count': {'readonly': True}, + 'failed_patch_count': {'readonly': True}, + 'start_date_time': {'readonly': True}, + 'last_modified_date_time': {'readonly': True}, + 'started_by': {'readonly': True}, + 'patch_service_used': {'readonly': True}, + 'os_type': {'readonly': True}, + 'error_details': {'readonly': True}, + } + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'installation_activity_id': {'key': 'installationActivityId', 'type': 'str'}, + 'reboot_status': {'key': 'rebootStatus', 'type': 'str'}, + 'maintenance_window_exceeded': {'key': 'maintenanceWindowExceeded', 'type': 'bool'}, + 'excluded_patch_count': {'key': 'excludedPatchCount', 'type': 'int'}, + 'not_selected_patch_count': {'key': 'notSelectedPatchCount', 'type': 'int'}, + 'pending_patch_count': {'key': 'pendingPatchCount', 'type': 'int'}, + 'installed_patch_count': {'key': 'installedPatchCount', 'type': 'int'}, + 'failed_patch_count': {'key': 'failedPatchCount', 'type': 'int'}, + 'start_date_time': {'key': 'startDateTime', 'type': 'iso-8601'}, + 'last_modified_date_time': {'key': 'lastModifiedDateTime', 'type': 'iso-8601'}, + 'started_by': {'key': 'startedBy', 'type': 'str'}, + 'patch_service_used': {'key': 'patchServiceUsed', 'type': 'str'}, + 'os_type': {'key': 'osType', 'type': 'str'}, + 'error_details': {'key': 'errorDetails', 'type': 'ErrorDetail'}, + } + + def __init__( + self, + **kwargs + ): + """ + """ + super(VirtualMachineInstallPatchesResult, self).__init__(**kwargs) + self.status = None + self.installation_activity_id = None + self.reboot_status = None + self.maintenance_window_exceeded = None + self.excluded_patch_count = None + self.not_selected_patch_count = None + self.pending_patch_count = None + self.installed_patch_count = None + self.failed_patch_count = None + self.start_date_time = None + self.last_modified_date_time = None + self.started_by = None + self.patch_service_used = None + self.os_type = None + self.error_details = None + + class VirtualMachineInventoryItem(InventoryItemProperties): """The VM inventory item. @@ -4232,6 +4878,8 @@ class VirtualMachineUpdate(msrest.serialization.Model): :vartype identity: ~azure.mgmt.connectedvmware.models.Identity :ivar hardware_profile: Defines the resource properties. :vartype hardware_profile: ~azure.mgmt.connectedvmware.models.HardwareProfile + :ivar os_profile: OS properties. + :vartype os_profile: ~azure.mgmt.connectedvmware.models.OsProfileUpdate :ivar storage_profile: Defines the resource update properties. :vartype storage_profile: ~azure.mgmt.connectedvmware.models.StorageProfileUpdate :ivar network_profile: Defines the update resource properties. @@ -4242,6 +4890,7 @@ class VirtualMachineUpdate(msrest.serialization.Model): 'tags': {'key': 'tags', 'type': '{str}'}, 'identity': {'key': 'identity', 'type': 'Identity'}, 'hardware_profile': {'key': 'properties.hardwareProfile', 'type': 'HardwareProfile'}, + 'os_profile': {'key': 'properties.osProfile', 'type': 'OsProfileUpdate'}, 'storage_profile': {'key': 'properties.storageProfile', 'type': 'StorageProfileUpdate'}, 'network_profile': {'key': 'properties.networkProfile', 'type': 'NetworkProfileUpdate'}, } @@ -4252,6 +4901,7 @@ def __init__( tags: Optional[Dict[str, str]] = None, identity: Optional["Identity"] = None, hardware_profile: Optional["HardwareProfile"] = None, + os_profile: Optional["OsProfileUpdate"] = None, storage_profile: Optional["StorageProfileUpdate"] = None, network_profile: Optional["NetworkProfileUpdate"] = None, **kwargs @@ -4263,6 +4913,8 @@ def __init__( :paramtype identity: ~azure.mgmt.connectedvmware.models.Identity :keyword hardware_profile: Defines the resource properties. :paramtype hardware_profile: ~azure.mgmt.connectedvmware.models.HardwareProfile + :keyword os_profile: OS properties. + :paramtype os_profile: ~azure.mgmt.connectedvmware.models.OsProfileUpdate :keyword storage_profile: Defines the resource update properties. :paramtype storage_profile: ~azure.mgmt.connectedvmware.models.StorageProfileUpdate :keyword network_profile: Defines the update resource properties. @@ -4272,6 +4924,7 @@ def __init__( self.tags = tags self.identity = identity self.hardware_profile = hardware_profile + self.os_profile = os_profile self.storage_profile = storage_profile self.network_profile = network_profile @@ -4554,3 +5207,64 @@ def __init__( self.bus_number = bus_number self.scsi_ctlr_unit_number = scsi_ctlr_unit_number self.sharing = sharing + + +class WindowsParameters(msrest.serialization.Model): + """Input for InstallPatches on a Windows VM, as directly received by the API. + + :ivar classifications_to_include: The update classifications to select when installing patches + for Windows. + :vartype classifications_to_include: list[str or + ~azure.mgmt.connectedvmware.models.VMGuestPatchClassificationWindows] + :ivar kb_numbers_to_include: Kbs to include in the patch operation. + :vartype kb_numbers_to_include: list[str] + :ivar kb_numbers_to_exclude: Kbs to exclude in the patch operation. + :vartype kb_numbers_to_exclude: list[str] + :ivar exclude_kbs_requiring_reboot: Filters out Kbs that don't have an + InstallationRebootBehavior of 'NeverReboots' when this is set to true. + :vartype exclude_kbs_requiring_reboot: bool + :ivar max_patch_publish_date: This is used to install patches that were published on or before + this given max published date. + :vartype max_patch_publish_date: ~datetime.datetime + """ + + _attribute_map = { + 'classifications_to_include': {'key': 'classificationsToInclude', 'type': '[str]'}, + 'kb_numbers_to_include': {'key': 'kbNumbersToInclude', 'type': '[str]'}, + 'kb_numbers_to_exclude': {'key': 'kbNumbersToExclude', 'type': '[str]'}, + 'exclude_kbs_requiring_reboot': {'key': 'excludeKbsRequiringReboot', 'type': 'bool'}, + 'max_patch_publish_date': {'key': 'maxPatchPublishDate', 'type': 'iso-8601'}, + } + + def __init__( + self, + *, + classifications_to_include: Optional[List[Union[str, "VMGuestPatchClassificationWindows"]]] = None, + kb_numbers_to_include: Optional[List[str]] = None, + kb_numbers_to_exclude: Optional[List[str]] = None, + exclude_kbs_requiring_reboot: Optional[bool] = None, + max_patch_publish_date: Optional[datetime.datetime] = None, + **kwargs + ): + """ + :keyword classifications_to_include: The update classifications to select when installing + patches for Windows. + :paramtype classifications_to_include: list[str or + ~azure.mgmt.connectedvmware.models.VMGuestPatchClassificationWindows] + :keyword kb_numbers_to_include: Kbs to include in the patch operation. + :paramtype kb_numbers_to_include: list[str] + :keyword kb_numbers_to_exclude: Kbs to exclude in the patch operation. + :paramtype kb_numbers_to_exclude: list[str] + :keyword exclude_kbs_requiring_reboot: Filters out Kbs that don't have an + InstallationRebootBehavior of 'NeverReboots' when this is set to true. + :paramtype exclude_kbs_requiring_reboot: bool + :keyword max_patch_publish_date: This is used to install patches that were published on or + before this given max published date. + :paramtype max_patch_publish_date: ~datetime.datetime + """ + super(WindowsParameters, self).__init__(**kwargs) + self.classifications_to_include = classifications_to_include + self.kb_numbers_to_include = kb_numbers_to_include + self.kb_numbers_to_exclude = kb_numbers_to_exclude + self.exclude_kbs_requiring_reboot = exclude_kbs_requiring_reboot + self.max_patch_publish_date = max_patch_publish_date 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 deleted file mode 100644 index 3c2ad959410..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/azure_arc_vmware_management_service_api_enums.py +++ /dev/null @@ -1,83 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum - - -class CreatedByType(str, Enum): - - user = "User" - application = "Application" - managed_identity = "ManagedIdentity" - key = "Key" - - -class DiskMode(str, Enum): - - persistent = "persistent" - independent_persistent = "independent_persistent" - independent_nonpersistent = "independent_nonpersistent" - - -class OsType(str, Enum): - - windows = "Windows" - linux = "Linux" - other = "Other" - - -class NICType(str, Enum): - - vmxnet3 = "vmxnet3" - vmxnet2 = "vmxnet2" - vmxnet = "vmxnet" - e1000 = "e1000" - e1000e = "e1000e" - pcnet32 = "pcnet32" - - -class PowerOnBootOption(str, Enum): - - enabled = "enabled" - disabled = "disabled" - - -class IPAddressAllocationMethod(str, Enum): - - unset = "unset" - dynamic = "dynamic" - static = "static" - linklayer = "linklayer" - random = "random" - other = "other" - - -class SCSIControllerType(str, Enum): - - lsilogic = "lsilogic" - buslogic = "buslogic" - pvscsi = "pvscsi" - lsilogicsas = "lsilogicsas" - - -class VirtualSCSISharing(str, Enum): - - no_sharing = "noSharing" - physical_sharing = "physicalSharing" - virtual_sharing = "virtualSharing" - - -class InventoryType(str, Enum): - - resource_pool = "ResourcePool" - virtual_machine = "VirtualMachine" - virtual_machine_template = "VirtualMachineTemplate" - virtual_network = "VirtualNetwork" diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/azure_entity_resource.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/azure_entity_resource.py deleted file mode 100644 index 4c573d97a1e..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/azure_entity_resource.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class AzureEntityResource(Resource): - """The resource model definition for an Azure Resource Manager resource with - an etag. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. E.g. - "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - :vartype type: str - :ivar etag: Resource Etag. - :vartype etag: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'etag': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'etag': {'key': 'etag', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureEntityResource, self).__init__(**kwargs) - self.etag = None diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/azure_entity_resource_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/azure_entity_resource_py3.py deleted file mode 100644 index 8c49aaf60d8..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/azure_entity_resource_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class AzureEntityResource(Resource): - """The resource model definition for an Azure Resource Manager resource with - an etag. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. E.g. - "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - :vartype type: str - :ivar etag: Resource Etag. - :vartype etag: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'etag': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'etag': {'key': 'etag', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(AzureEntityResource, self).__init__(**kwargs) - self.etag = None diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/condition.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/condition.py deleted file mode 100644 index 4da8ab5adbf..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/condition.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Condition(Model): - """Condition defines an extension to status. - - 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 diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/condition_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/condition_py3.py deleted file mode 100644 index 59bca746453..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/condition_py3.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Condition(Model): - """Condition defines an extension to status. - - 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) -> None: - super(Condition, self).__init__(**kwargs) - self.status = None - self.reason = None - self.message = None - self.severity = None diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/error_definition.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/error_definition.py deleted file mode 100644 index 65fbed2b097..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/error_definition.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ErrorDefinition(Model): - """Error definition. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar code: Service specific error code which serves as the substatus for - the HTTP error code. - :vartype code: str - :ivar message: Description of the error. - :vartype message: str - :ivar details: Internal error details. - :vartype details: - list[~azure.mgmt.vmware.v2020_10_01_preview.models.ErrorDefinition] - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'details': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[ErrorDefinition]'}, - } - - def __init__(self, **kwargs): - super(ErrorDefinition, self).__init__(**kwargs) - self.code = None - self.message = None - self.details = None diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/error_definition_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/error_definition_py3.py deleted file mode 100644 index 0f54fe27ba1..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/error_definition_py3.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ErrorDefinition(Model): - """Error definition. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar code: Service specific error code which serves as the substatus for - the HTTP error code. - :vartype code: str - :ivar message: Description of the error. - :vartype message: str - :ivar details: Internal error details. - :vartype details: - list[~azure.mgmt.vmware.v2020_10_01_preview.models.ErrorDefinition] - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'details': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[ErrorDefinition]'}, - } - - def __init__(self, **kwargs) -> None: - super(ErrorDefinition, self).__init__(**kwargs) - self.code = None - self.message = None - self.details = None diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/error_response.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/error_response.py deleted file mode 100644 index 5e69d01482d..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/error_response.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class ErrorResponse(Model): - """Error response. - - :param error: The error details. - :type error: ~azure.mgmt.vmware.v2020_10_01_preview.models.ErrorDefinition - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'ErrorDefinition'}, - } - - def __init__(self, **kwargs): - super(ErrorResponse, self).__init__(**kwargs) - self.error = kwargs.get('error', None) - - -class ErrorResponseException(HttpOperationError): - """Server responsed with exception of type: 'ErrorResponse'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/error_response_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/error_response_py3.py deleted file mode 100644 index a4b40875b6e..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/error_response_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class ErrorResponse(Model): - """Error response. - - :param error: The error details. - :type error: ~azure.mgmt.vmware.v2020_10_01_preview.models.ErrorDefinition - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'ErrorDefinition'}, - } - - def __init__(self, *, error=None, **kwargs) -> None: - super(ErrorResponse, self).__init__(**kwargs) - self.error = error - - -class ErrorResponseException(HttpOperationError): - """Server responsed with exception of type: 'ErrorResponse'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/extended_location.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/extended_location.py deleted file mode 100644 index 23481757753..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/extended_location.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ExtendedLocation(Model): - """The extended location. - - :param type: The extended location type. - :type type: str - :param name: The extended location name. - :type name: str - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ExtendedLocation, self).__init__(**kwargs) - self.type = kwargs.get('type', None) - self.name = kwargs.get('name', None) diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/extended_location_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/extended_location_py3.py deleted file mode 100644 index 1a714156b2a..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/extended_location_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ExtendedLocation(Model): - """The extended location. - - :param type: The extended location type. - :type type: str - :param name: The extended location name. - :type name: str - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, *, type: str=None, name: str=None, **kwargs) -> None: - super(ExtendedLocation, self).__init__(**kwargs) - self.type = type - self.name = name diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/hardware_profile.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/hardware_profile.py deleted file mode 100644 index ee37336986a..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/hardware_profile.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class HardwareProfile(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 diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/hardware_profile_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/hardware_profile_py3.py deleted file mode 100644 index c276b221a90..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/hardware_profile_py3.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class HardwareProfile(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: int=None, num_cp_us: int=None, num_cores_per_socket: int=None, **kwargs) -> None: - 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 diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/inventory_item.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/inventory_item.py deleted file mode 100644 index 019a1d72efc..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/inventory_item.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .proxy_resource import ProxyResource - - -class InventoryItem(ProxyResource): - """Defines the inventory item. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. E.g. - "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - :vartype type: str - :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 - :param system_data: The system data. - :type system_data: - ~azure.mgmt.vmware.v2020_10_01_preview.models.SystemData - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'managed_resource_id': {'key': 'properties.managedResourceId', 'type': 'str'}, - 'mo_ref_id': {'key': 'properties.moRefId', 'type': 'str'}, - 'mo_name': {'key': 'properties.moName', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'system_data': {'key': 'systemData', 'type': 'SystemData'}, - } - - def __init__(self, **kwargs): - super(InventoryItem, self).__init__(**kwargs) - 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 - self.system_data = kwargs.get('system_data', None) diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/inventory_item_paged.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/inventory_item_paged.py deleted file mode 100644 index b6a52a2a5f9..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/inventory_item_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class InventoryItemPaged(Paged): - """ - A paging container for iterating over a list of :class:`InventoryItem ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[InventoryItem]'} - } - - def __init__(self, *args, **kwargs): - - super(InventoryItemPaged, self).__init__(*args, **kwargs) diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/inventory_item_properties.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/inventory_item_properties.py deleted file mode 100644 index 2ceb9cd822f..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/inventory_item_properties.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class InventoryItemProperties(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 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 - :param inventory_type: Required. Constant filled by server. - :type inventory_type: str - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'inventory_type': {'required': True}, - } - - _attribute_map = { - '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'}, - 'inventory_type': {'key': 'inventoryType', 'type': 'str'}, - } - - _subtype_map = { - 'inventory_type': {'ResourcePool': 'ResourcePoolInventoryItem', 'VirtualMachine': 'VirtualMachineInventoryItem', 'VirtualMachineTemplate': 'VirtualMachineTemplateInventoryItem', 'VirtualNetwork': 'VirtualNetworkInventoryItem'} - } - - def __init__(self, **kwargs): - super(InventoryItemProperties, self).__init__(**kwargs) - 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 - self.inventory_type = None diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/inventory_item_properties_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/inventory_item_properties_py3.py deleted file mode 100644 index 8d95d5c76ef..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/inventory_item_properties_py3.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class InventoryItemProperties(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 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 - :param inventory_type: Required. Constant filled by server. - :type inventory_type: str - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'inventory_type': {'required': True}, - } - - _attribute_map = { - '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'}, - 'inventory_type': {'key': 'inventoryType', 'type': 'str'}, - } - - _subtype_map = { - 'inventory_type': {'ResourcePool': 'ResourcePoolInventoryItem', 'VirtualMachine': 'VirtualMachineInventoryItem', 'VirtualMachineTemplate': 'VirtualMachineTemplateInventoryItem', 'VirtualNetwork': 'VirtualNetworkInventoryItem'} - } - - def __init__(self, *, managed_resource_id: str=None, mo_ref_id: str=None, mo_name: str=None, **kwargs) -> None: - super(InventoryItemProperties, self).__init__(**kwargs) - self.managed_resource_id = managed_resource_id - self.mo_ref_id = mo_ref_id - self.mo_name = mo_name - self.provisioning_state = None - self.inventory_type = None diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/inventory_item_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/inventory_item_py3.py deleted file mode 100644 index efd4ae0f4cd..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/inventory_item_py3.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .proxy_resource_py3 import ProxyResource - - -class InventoryItem(ProxyResource): - """Defines the inventory item. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. E.g. - "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - :vartype type: str - :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 - :param system_data: The system data. - :type system_data: - ~azure.mgmt.vmware.v2020_10_01_preview.models.SystemData - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'managed_resource_id': {'key': 'properties.managedResourceId', 'type': 'str'}, - 'mo_ref_id': {'key': 'properties.moRefId', 'type': 'str'}, - 'mo_name': {'key': 'properties.moName', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'system_data': {'key': 'systemData', 'type': 'SystemData'}, - } - - def __init__(self, *, managed_resource_id: str=None, mo_ref_id: str=None, mo_name: str=None, system_data=None, **kwargs) -> None: - super(InventoryItem, self).__init__(**kwargs) - self.managed_resource_id = managed_resource_id - self.mo_ref_id = mo_ref_id - self.mo_name = mo_name - self.provisioning_state = None - self.system_data = system_data diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/network_interface.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/network_interface.py deleted file mode 100644 index 1a0af23287b..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/network_interface.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class NetworkInterface(Model): - """Network Interface model. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param name: Gets or sets the name of the network interface. - :type name: str - :ivar label: Gets or sets the label of the virtual network in vCenter that - the nic is connected to. - :vartype label: str - :ivar ip_addresses: Gets or sets the nic ip addresses. - :vartype ip_addresses: list[str] - :ivar mac_address: Gets or sets the NIC MAC address. - :vartype mac_address: str - :param network_id: Gets or sets the ARM Id of the network resource to - connect the virtual machine. - :type network_id: str - :param nic_type: NIC type. Possible values include: 'vmxnet3', 'vmxnet2', - 'vmxnet', 'e1000', 'e1000e', 'pcnet32' - :type nic_type: str or - ~azure.mgmt.vmware.v2020_10_01_preview.models.NICType - :param power_on_boot: Gets or sets the power on boot. Possible values - include: 'enabled', 'disabled' - :type power_on_boot: str or - ~azure.mgmt.vmware.v2020_10_01_preview.models.PowerOnBootOption - :ivar network_mo_ref_id: Gets or sets the vCenter MoRef (Managed Object - Reference) ID of the virtual network - that the nic is connected to. - :vartype network_mo_ref_id: str - :ivar network_mo_name: Gets or sets the name of the virtual network in - vCenter that the nic is connected to. - :vartype network_mo_name: str - :param device_key: Gets or sets the device key value. - :type device_key: int - :param ip_settings: Gets or sets the ipsettings. - :type ip_settings: - ~azure.mgmt.vmware.v2020_10_01_preview.models.NicIPSettings - """ - - _validation = { - 'label': {'readonly': True}, - 'ip_addresses': {'readonly': True}, - 'mac_address': {'readonly': True}, - 'network_mo_ref_id': {'readonly': True}, - 'network_mo_name': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, - 'ip_addresses': {'key': 'ipAddresses', 'type': '[str]'}, - 'mac_address': {'key': 'macAddress', 'type': 'str'}, - 'network_id': {'key': 'networkId', 'type': 'str'}, - 'nic_type': {'key': 'nicType', 'type': 'str'}, - 'power_on_boot': {'key': 'powerOnBoot', 'type': 'str'}, - 'network_mo_ref_id': {'key': 'networkMoRefId', 'type': 'str'}, - 'network_mo_name': {'key': 'networkMoName', 'type': 'str'}, - 'device_key': {'key': 'deviceKey', 'type': 'int'}, - 'ip_settings': {'key': 'ipSettings', 'type': 'NicIPSettings'}, - } - - def __init__(self, **kwargs): - super(NetworkInterface, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.label = None - self.ip_addresses = None - self.mac_address = None - self.network_id = kwargs.get('network_id', None) - self.nic_type = kwargs.get('nic_type', None) - self.power_on_boot = kwargs.get('power_on_boot', None) - self.network_mo_ref_id = None - self.network_mo_name = None - self.device_key = kwargs.get('device_key', None) - self.ip_settings = kwargs.get('ip_settings', None) diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/network_interface_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/network_interface_py3.py deleted file mode 100644 index edd1c972720..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/network_interface_py3.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class NetworkInterface(Model): - """Network Interface model. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param name: Gets or sets the name of the network interface. - :type name: str - :ivar label: Gets or sets the label of the virtual network in vCenter that - the nic is connected to. - :vartype label: str - :ivar ip_addresses: Gets or sets the nic ip addresses. - :vartype ip_addresses: list[str] - :ivar mac_address: Gets or sets the NIC MAC address. - :vartype mac_address: str - :param network_id: Gets or sets the ARM Id of the network resource to - connect the virtual machine. - :type network_id: str - :param nic_type: NIC type. Possible values include: 'vmxnet3', 'vmxnet2', - 'vmxnet', 'e1000', 'e1000e', 'pcnet32' - :type nic_type: str or - ~azure.mgmt.vmware.v2020_10_01_preview.models.NICType - :param power_on_boot: Gets or sets the power on boot. Possible values - include: 'enabled', 'disabled' - :type power_on_boot: str or - ~azure.mgmt.vmware.v2020_10_01_preview.models.PowerOnBootOption - :ivar network_mo_ref_id: Gets or sets the vCenter MoRef (Managed Object - Reference) ID of the virtual network - that the nic is connected to. - :vartype network_mo_ref_id: str - :ivar network_mo_name: Gets or sets the name of the virtual network in - vCenter that the nic is connected to. - :vartype network_mo_name: str - :param device_key: Gets or sets the device key value. - :type device_key: int - :param ip_settings: Gets or sets the ipsettings. - :type ip_settings: - ~azure.mgmt.vmware.v2020_10_01_preview.models.NicIPSettings - """ - - _validation = { - 'label': {'readonly': True}, - 'ip_addresses': {'readonly': True}, - 'mac_address': {'readonly': True}, - 'network_mo_ref_id': {'readonly': True}, - 'network_mo_name': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, - 'ip_addresses': {'key': 'ipAddresses', 'type': '[str]'}, - 'mac_address': {'key': 'macAddress', 'type': 'str'}, - 'network_id': {'key': 'networkId', 'type': 'str'}, - 'nic_type': {'key': 'nicType', 'type': 'str'}, - 'power_on_boot': {'key': 'powerOnBoot', 'type': 'str'}, - 'network_mo_ref_id': {'key': 'networkMoRefId', 'type': 'str'}, - 'network_mo_name': {'key': 'networkMoName', 'type': 'str'}, - 'device_key': {'key': 'deviceKey', 'type': 'int'}, - 'ip_settings': {'key': 'ipSettings', 'type': 'NicIPSettings'}, - } - - def __init__(self, *, name: str=None, network_id: str=None, nic_type=None, power_on_boot=None, device_key: int=None, ip_settings=None, **kwargs) -> None: - super(NetworkInterface, self).__init__(**kwargs) - self.name = name - self.label = None - self.ip_addresses = None - self.mac_address = None - self.network_id = network_id - self.nic_type = nic_type - self.power_on_boot = power_on_boot - self.network_mo_ref_id = None - self.network_mo_name = None - self.device_key = device_key - self.ip_settings = ip_settings diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/network_interface_update.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/network_interface_update.py deleted file mode 100644 index 8fbf75f404c..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/network_interface_update.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class NetworkInterfaceUpdate(Model): - """Defines the network interface update. - - :param name: Gets or sets the name of the network interface. - :type name: str - :param network_id: Gets or sets the ARM Id of the network resource to - connect the virtual machine. - :type network_id: str - :param nic_type: NIC type. Possible values include: 'vmxnet3', 'vmxnet2', - 'vmxnet', 'e1000', 'e1000e', 'pcnet32' - :type nic_type: str or - ~azure.mgmt.vmware.v2020_10_01_preview.models.NICType - :param power_on_boot: Gets or sets the power on boot. Possible values - include: 'enabled', 'disabled' - :type power_on_boot: str or - ~azure.mgmt.vmware.v2020_10_01_preview.models.PowerOnBootOption - :param device_key: Gets or sets the device key value. - :type device_key: int - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'network_id': {'key': 'networkId', 'type': 'str'}, - 'nic_type': {'key': 'nicType', 'type': 'str'}, - 'power_on_boot': {'key': 'powerOnBoot', 'type': 'str'}, - 'device_key': {'key': 'deviceKey', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(NetworkInterfaceUpdate, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.network_id = kwargs.get('network_id', None) - self.nic_type = kwargs.get('nic_type', None) - self.power_on_boot = kwargs.get('power_on_boot', None) - self.device_key = kwargs.get('device_key', None) diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/network_interface_update_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/network_interface_update_py3.py deleted file mode 100644 index 64ffbb8e681..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/network_interface_update_py3.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class NetworkInterfaceUpdate(Model): - """Defines the network interface update. - - :param name: Gets or sets the name of the network interface. - :type name: str - :param network_id: Gets or sets the ARM Id of the network resource to - connect the virtual machine. - :type network_id: str - :param nic_type: NIC type. Possible values include: 'vmxnet3', 'vmxnet2', - 'vmxnet', 'e1000', 'e1000e', 'pcnet32' - :type nic_type: str or - ~azure.mgmt.vmware.v2020_10_01_preview.models.NICType - :param power_on_boot: Gets or sets the power on boot. Possible values - include: 'enabled', 'disabled' - :type power_on_boot: str or - ~azure.mgmt.vmware.v2020_10_01_preview.models.PowerOnBootOption - :param device_key: Gets or sets the device key value. - :type device_key: int - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'network_id': {'key': 'networkId', 'type': 'str'}, - 'nic_type': {'key': 'nicType', 'type': 'str'}, - 'power_on_boot': {'key': 'powerOnBoot', 'type': 'str'}, - 'device_key': {'key': 'deviceKey', 'type': 'int'}, - } - - def __init__(self, *, name: str=None, network_id: str=None, nic_type=None, power_on_boot=None, device_key: int=None, **kwargs) -> None: - super(NetworkInterfaceUpdate, self).__init__(**kwargs) - self.name = name - self.network_id = network_id - self.nic_type = nic_type - self.power_on_boot = power_on_boot - self.device_key = device_key diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/network_profile.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/network_profile.py deleted file mode 100644 index 916d230bbbf..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/network_profile.py +++ /dev/null @@ -1,30 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class NetworkProfile(Model): - """Defines the resource properties. - - :param network_interfaces: Gets or sets the list of network interfaces - associated with the virtual machine. - :type network_interfaces: - list[~azure.mgmt.vmware.v2020_10_01_preview.models.NetworkInterface] - """ - - _attribute_map = { - 'network_interfaces': {'key': 'networkInterfaces', 'type': '[NetworkInterface]'}, - } - - def __init__(self, **kwargs): - super(NetworkProfile, self).__init__(**kwargs) - self.network_interfaces = kwargs.get('network_interfaces', None) diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/network_profile_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/network_profile_py3.py deleted file mode 100644 index 5389d44b732..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/network_profile_py3.py +++ /dev/null @@ -1,30 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class NetworkProfile(Model): - """Defines the resource properties. - - :param network_interfaces: Gets or sets the list of network interfaces - associated with the virtual machine. - :type network_interfaces: - list[~azure.mgmt.vmware.v2020_10_01_preview.models.NetworkInterface] - """ - - _attribute_map = { - 'network_interfaces': {'key': 'networkInterfaces', 'type': '[NetworkInterface]'}, - } - - def __init__(self, *, network_interfaces=None, **kwargs) -> None: - super(NetworkProfile, self).__init__(**kwargs) - self.network_interfaces = network_interfaces diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/network_profile_update.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/network_profile_update.py deleted file mode 100644 index bfcf01c69e7..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/network_profile_update.py +++ /dev/null @@ -1,30 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class NetworkProfileUpdate(Model): - """Defines the update resource properties. - - :param network_interfaces: Gets or sets the list of network interfaces - associated with the virtual machine. - :type network_interfaces: - list[~azure.mgmt.vmware.v2020_10_01_preview.models.NetworkInterfaceUpdate] - """ - - _attribute_map = { - 'network_interfaces': {'key': 'networkInterfaces', 'type': '[NetworkInterfaceUpdate]'}, - } - - def __init__(self, **kwargs): - super(NetworkProfileUpdate, self).__init__(**kwargs) - self.network_interfaces = kwargs.get('network_interfaces', None) diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/network_profile_update_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/network_profile_update_py3.py deleted file mode 100644 index 5c0285c72b1..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/network_profile_update_py3.py +++ /dev/null @@ -1,30 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class NetworkProfileUpdate(Model): - """Defines the update resource properties. - - :param network_interfaces: Gets or sets the list of network interfaces - associated with the virtual machine. - :type network_interfaces: - list[~azure.mgmt.vmware.v2020_10_01_preview.models.NetworkInterfaceUpdate] - """ - - _attribute_map = { - 'network_interfaces': {'key': 'networkInterfaces', 'type': '[NetworkInterfaceUpdate]'}, - } - - def __init__(self, *, network_interfaces=None, **kwargs) -> None: - super(NetworkProfileUpdate, self).__init__(**kwargs) - self.network_interfaces = network_interfaces diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/nic_ip_address_settings.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/nic_ip_address_settings.py deleted file mode 100644 index b4fd9368d4b..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/nic_ip_address_settings.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class NicIPAddressSettings(Model): - """IP address information for a virtual network adapter reported by the - fabric. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar allocation_method: Gets the ip address allocation method. - :vartype allocation_method: str - :ivar ip_address: Gets the ip address for the nic. - :vartype ip_address: str - :ivar subnet_mask: Gets the mask. - :vartype subnet_mask: str - """ - - _validation = { - 'allocation_method': {'readonly': True}, - 'ip_address': {'readonly': True}, - 'subnet_mask': {'readonly': True}, - } - - _attribute_map = { - 'allocation_method': {'key': 'allocationMethod', 'type': 'str'}, - 'ip_address': {'key': 'ipAddress', 'type': 'str'}, - 'subnet_mask': {'key': 'subnetMask', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(NicIPAddressSettings, self).__init__(**kwargs) - self.allocation_method = None - self.ip_address = None - self.subnet_mask = None diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/nic_ip_address_settings_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/nic_ip_address_settings_py3.py deleted file mode 100644 index 4cffa1521e1..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/nic_ip_address_settings_py3.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class NicIPAddressSettings(Model): - """IP address information for a virtual network adapter reported by the - fabric. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar allocation_method: Gets the ip address allocation method. - :vartype allocation_method: str - :ivar ip_address: Gets the ip address for the nic. - :vartype ip_address: str - :ivar subnet_mask: Gets the mask. - :vartype subnet_mask: str - """ - - _validation = { - 'allocation_method': {'readonly': True}, - 'ip_address': {'readonly': True}, - 'subnet_mask': {'readonly': True}, - } - - _attribute_map = { - 'allocation_method': {'key': 'allocationMethod', 'type': 'str'}, - 'ip_address': {'key': 'ipAddress', 'type': 'str'}, - 'subnet_mask': {'key': 'subnetMask', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(NicIPAddressSettings, self).__init__(**kwargs) - self.allocation_method = None - self.ip_address = None - self.subnet_mask = None diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/nic_ip_settings.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/nic_ip_settings.py deleted file mode 100644 index 008a2925670..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/nic_ip_settings.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class NicIPSettings(Model): - """Defines the network interface ip settings. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param allocation_method: Gets or sets the nic allocation method. Possible - values include: 'unset', 'dynamic', 'static', 'linklayer', 'random', - 'other' - :type allocation_method: str or - ~azure.mgmt.vmware.v2020_10_01_preview.models.IPAddressAllocationMethod - :param dns_servers: Gets or sets the dns servers. - :type dns_servers: list[str] - :param gateway: Gets or sets the gateway. - :type gateway: list[str] - :param ip_address: Gets or sets the ip address for the nic. - :type ip_address: str - :param subnet_mask: Gets or sets the mask. - :type subnet_mask: str - :ivar primary_wins_server: Gets or sets the primary server. - :vartype primary_wins_server: str - :ivar secondary_wins_server: Gets or sets the secondary server. - :vartype secondary_wins_server: str - :ivar ip_address_info: Gets or sets the IP address information being - reported for this NIC. This contains the same IPv4 information above plus - IPV6 information. - :vartype ip_address_info: - list[~azure.mgmt.vmware.v2020_10_01_preview.models.NicIPAddressSettings] - """ - - _validation = { - 'primary_wins_server': {'readonly': True}, - 'secondary_wins_server': {'readonly': True}, - 'ip_address_info': {'readonly': True}, - } - - _attribute_map = { - 'allocation_method': {'key': 'allocationMethod', 'type': 'str'}, - 'dns_servers': {'key': 'dnsServers', 'type': '[str]'}, - 'gateway': {'key': 'gateway', 'type': '[str]'}, - 'ip_address': {'key': 'ipAddress', 'type': 'str'}, - 'subnet_mask': {'key': 'subnetMask', 'type': 'str'}, - 'primary_wins_server': {'key': 'primaryWinsServer', 'type': 'str'}, - 'secondary_wins_server': {'key': 'secondaryWinsServer', 'type': 'str'}, - 'ip_address_info': {'key': 'ipAddressInfo', 'type': '[NicIPAddressSettings]'}, - } - - def __init__(self, **kwargs): - super(NicIPSettings, self).__init__(**kwargs) - self.allocation_method = kwargs.get('allocation_method', None) - self.dns_servers = kwargs.get('dns_servers', None) - self.gateway = kwargs.get('gateway', None) - self.ip_address = kwargs.get('ip_address', None) - self.subnet_mask = kwargs.get('subnet_mask', None) - self.primary_wins_server = None - self.secondary_wins_server = None - self.ip_address_info = None diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/nic_ip_settings_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/nic_ip_settings_py3.py deleted file mode 100644 index 8d39aed23da..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/nic_ip_settings_py3.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class NicIPSettings(Model): - """Defines the network interface ip settings. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param allocation_method: Gets or sets the nic allocation method. Possible - values include: 'unset', 'dynamic', 'static', 'linklayer', 'random', - 'other' - :type allocation_method: str or - ~azure.mgmt.vmware.v2020_10_01_preview.models.IPAddressAllocationMethod - :param dns_servers: Gets or sets the dns servers. - :type dns_servers: list[str] - :param gateway: Gets or sets the gateway. - :type gateway: list[str] - :param ip_address: Gets or sets the ip address for the nic. - :type ip_address: str - :param subnet_mask: Gets or sets the mask. - :type subnet_mask: str - :ivar primary_wins_server: Gets or sets the primary server. - :vartype primary_wins_server: str - :ivar secondary_wins_server: Gets or sets the secondary server. - :vartype secondary_wins_server: str - :ivar ip_address_info: Gets or sets the IP address information being - reported for this NIC. This contains the same IPv4 information above plus - IPV6 information. - :vartype ip_address_info: - list[~azure.mgmt.vmware.v2020_10_01_preview.models.NicIPAddressSettings] - """ - - _validation = { - 'primary_wins_server': {'readonly': True}, - 'secondary_wins_server': {'readonly': True}, - 'ip_address_info': {'readonly': True}, - } - - _attribute_map = { - 'allocation_method': {'key': 'allocationMethod', 'type': 'str'}, - 'dns_servers': {'key': 'dnsServers', 'type': '[str]'}, - 'gateway': {'key': 'gateway', 'type': '[str]'}, - 'ip_address': {'key': 'ipAddress', 'type': 'str'}, - 'subnet_mask': {'key': 'subnetMask', 'type': 'str'}, - 'primary_wins_server': {'key': 'primaryWinsServer', 'type': 'str'}, - 'secondary_wins_server': {'key': 'secondaryWinsServer', 'type': 'str'}, - 'ip_address_info': {'key': 'ipAddressInfo', 'type': '[NicIPAddressSettings]'}, - } - - def __init__(self, *, allocation_method=None, dns_servers=None, gateway=None, ip_address: str=None, subnet_mask: str=None, **kwargs) -> None: - super(NicIPSettings, self).__init__(**kwargs) - self.allocation_method = allocation_method - self.dns_servers = dns_servers - self.gateway = gateway - self.ip_address = ip_address - self.subnet_mask = subnet_mask - self.primary_wins_server = None - self.secondary_wins_server = None - self.ip_address_info = None diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/operation.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/operation.py deleted file mode 100644 index f56a174d71c..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/operation.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Operation(Model): - """Operation provided by provider. - - :param name: Name of the operation - :type name: str - :param is_data_action: Indicates whether the operation is data action or - not. - :type is_data_action: bool - :param display: Properties of the operation - :type display: - ~azure.mgmt.vmware.v2020_10_01_preview.models.OperationDisplay - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'is_data_action': {'key': 'isDataAction', 'type': 'bool'}, - 'display': {'key': 'display', 'type': 'OperationDisplay'}, - } - - def __init__(self, **kwargs): - super(Operation, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.is_data_action = kwargs.get('is_data_action', None) - self.display = kwargs.get('display', None) diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/operation_display.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/operation_display.py deleted file mode 100644 index 89c4bdd6ccb..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/operation_display.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationDisplay(Model): - """Properties of the operation. - - :param provider: Provider name - :type provider: str - :param resource: Resource name - :type resource: str - :param operation: Operation name - :type operation: str - :param description: Description of the operation - :type description: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OperationDisplay, self).__init__(**kwargs) - self.provider = kwargs.get('provider', None) - self.resource = kwargs.get('resource', None) - self.operation = kwargs.get('operation', None) - self.description = kwargs.get('description', None) diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/operation_display_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/operation_display_py3.py deleted file mode 100644 index fa3740dfc65..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/operation_display_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationDisplay(Model): - """Properties of the operation. - - :param provider: Provider name - :type provider: str - :param resource: Resource name - :type resource: str - :param operation: Operation name - :type operation: str - :param description: Description of the operation - :type description: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: - super(OperationDisplay, self).__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/operation_paged.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/operation_paged.py deleted file mode 100644 index 25e166c9fa8..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/operation_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class OperationPaged(Paged): - """ - A paging container for iterating over a list of :class:`Operation ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Operation]'} - } - - def __init__(self, *args, **kwargs): - - super(OperationPaged, self).__init__(*args, **kwargs) diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/operation_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/operation_py3.py deleted file mode 100644 index 688496a564f..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/operation_py3.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Operation(Model): - """Operation provided by provider. - - :param name: Name of the operation - :type name: str - :param is_data_action: Indicates whether the operation is data action or - not. - :type is_data_action: bool - :param display: Properties of the operation - :type display: - ~azure.mgmt.vmware.v2020_10_01_preview.models.OperationDisplay - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'is_data_action': {'key': 'isDataAction', 'type': 'bool'}, - 'display': {'key': 'display', 'type': 'OperationDisplay'}, - } - - def __init__(self, *, name: str=None, is_data_action: bool=None, display=None, **kwargs) -> None: - super(Operation, self).__init__(**kwargs) - self.name = name - self.is_data_action = is_data_action - self.display = display diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/os_profile.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/os_profile.py deleted file mode 100644 index 92bfbc928fc..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/os_profile.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OsProfile(Model): - """Defines the resource properties. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param computer_name: Gets or sets computer name. - :type computer_name: str - :param admin_username: Gets or sets administrator username. - :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', 'Other' - :vartype os_type: str or - ~azure.mgmt.vmware.v2020_10_01_preview.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 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 = { - 'os_type': {'readonly': True}, - 'os_name': {'readonly': True}, - 'tools_running_status': {'readonly': True}, - 'tools_version_status': {'readonly': True}, - 'tools_version': {'readonly': True}, - } - - _attribute_map = { - 'computer_name': {'key': 'computerName', 'type': 'str'}, - 'admin_username': {'key': 'adminUsername', 'type': 'str'}, - 'admin_password': {'key': 'adminPassword', 'type': 'str'}, - 'os_type': {'key': 'osType', 'type': 'str'}, - 'os_name': {'key': 'osName', 'type': 'str'}, - 'tools_running_status': {'key': 'toolsRunningStatus', 'type': 'str'}, - 'tools_version_status': {'key': 'toolsVersionStatus', 'type': 'str'}, - 'tools_version': {'key': 'toolsVersion', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OsProfile, self).__init__(**kwargs) - 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_name = None - self.tools_running_status = None - self.tools_version_status = None - self.tools_version = None diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/os_profile_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/os_profile_py3.py deleted file mode 100644 index 24d96f9321b..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/os_profile_py3.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OsProfile(Model): - """Defines the resource properties. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param computer_name: Gets or sets computer name. - :type computer_name: str - :param admin_username: Gets or sets administrator username. - :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', 'Other' - :vartype os_type: str or - ~azure.mgmt.vmware.v2020_10_01_preview.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 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 = { - 'os_type': {'readonly': True}, - 'os_name': {'readonly': True}, - 'tools_running_status': {'readonly': True}, - 'tools_version_status': {'readonly': True}, - 'tools_version': {'readonly': True}, - } - - _attribute_map = { - 'computer_name': {'key': 'computerName', 'type': 'str'}, - 'admin_username': {'key': 'adminUsername', 'type': 'str'}, - 'admin_password': {'key': 'adminPassword', 'type': 'str'}, - 'os_type': {'key': 'osType', 'type': 'str'}, - 'os_name': {'key': 'osName', 'type': 'str'}, - 'tools_running_status': {'key': 'toolsRunningStatus', 'type': 'str'}, - 'tools_version_status': {'key': 'toolsVersionStatus', 'type': 'str'}, - 'tools_version': {'key': 'toolsVersion', 'type': 'str'}, - } - - def __init__(self, *, computer_name: str=None, admin_username: str=None, admin_password: str=None, **kwargs) -> None: - 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_name = None - self.tools_running_status = None - self.tools_version_status = None - self.tools_version = None diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/proxy_resource.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/proxy_resource.py deleted file mode 100644 index f50eecb5b1b..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/proxy_resource.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class ProxyResource(Resource): - """The resource model definition for an Azure Resource Manager proxy resource. - It will have everything other than required location and tags. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. E.g. - "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ProxyResource, self).__init__(**kwargs) diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/proxy_resource_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/proxy_resource_py3.py deleted file mode 100644 index 0175329f195..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/proxy_resource_py3.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class ProxyResource(Resource): - """The resource model definition for an Azure Resource Manager proxy resource. - It will have everything other than required location and tags. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. E.g. - "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(ProxyResource, self).__init__(**kwargs) diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/resource.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/resource.py deleted file mode 100644 index 88ac10c9bcc..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/resource.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Resource(Model): - """Common fields that are returned in the response for all Azure Resource - Manager resources. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. E.g. - "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/resource_patch.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/resource_patch.py deleted file mode 100644 index 85ec50189c5..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/resource_patch.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourcePatch(Model): - """Object containing updates for patch operations. - - :param tags: Resource tags. - :type tags: dict[str, str] - """ - - _attribute_map = { - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(ResourcePatch, self).__init__(**kwargs) - self.tags = kwargs.get('tags', None) diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/resource_patch_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/resource_patch_py3.py deleted file mode 100644 index 0700d72d92b..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/resource_patch_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourcePatch(Model): - """Object containing updates for patch operations. - - :param tags: Resource tags. - :type tags: dict[str, str] - """ - - _attribute_map = { - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, *, tags=None, **kwargs) -> None: - super(ResourcePatch, self).__init__(**kwargs) - self.tags = tags diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/resource_pool.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/resource_pool.py deleted file mode 100644 index cf245383952..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/resource_pool.py +++ /dev/null @@ -1,154 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourcePool(Model): - """Define the resourcePool. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar 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 resource pool resides. - :type v_center_id: str - :param mo_ref_id: Gets or sets the vCenter MoRef (Managed Object - Reference) ID for the resource pool. - :type mo_ref_id: str - :param inventory_item_id: Gets or sets the inventory Item ID for the - resource pool. - :type inventory_item_id: str - :ivar mo_name: Gets or sets the vCenter Managed Object name for the - resource pool. - :vartype mo_name: str - :ivar cpu_shares_level: Gets or sets CPUSharesLevel which specifies the - CPU allocation level for this pool. - This property is used in relative allocation between resource consumers. - :vartype cpu_shares_level: str - :ivar cpu_reservation_mhz: Gets or sets CPUReservationMHz which specifies - the CPU size in MHz that is guaranteed - to be available. - :vartype cpu_reservation_mhz: long - :ivar cpu_limit_mhz: Gets or sets CPULimitMHz which specifies a CPU usage - limit in MHz. - Utilization will not exceed this limit even if there are available - resources. - :vartype cpu_limit_mhz: long - :ivar mem_shares_level: Gets or sets CPUSharesLevel which specifies the - memory allocation level for this pool. - This property is used in relative allocation between resource consumers. - :vartype mem_shares_level: str - :ivar mem_reservation_mb: Gets or sets MemReservationMB which specifies - the guaranteed available memory in - megabytes. - :vartype mem_reservation_mb: long - :ivar mem_limit_mb: Gets or sets MemLimitMB specifies a memory usage limit - in megabytes. - Utilization will not exceed the specified limit even if there are - available resources. - :vartype mem_limit_mb: long - :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 - :param location: Required. Gets or sets the location. - :type location: str - :param extended_location: Gets or sets the extended location. - :type extended_location: - ~azure.mgmt.vmware.v2020_10_01_preview.models.ExtendedLocation - :param system_data: The system data. - :type system_data: - ~azure.mgmt.vmware.v2020_10_01_preview.models.SystemData - :param 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 - """ - - _validation = { - 'uuid': {'readonly': True}, - 'mo_name': {'readonly': True}, - 'cpu_shares_level': {'readonly': True}, - 'cpu_reservation_mhz': {'readonly': True}, - 'cpu_limit_mhz': {'readonly': True}, - 'mem_shares_level': {'readonly': True}, - 'mem_reservation_mb': {'readonly': True}, - 'mem_limit_mb': {'readonly': True}, - 'custom_resource_name': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'location': {'required': True}, - 'name': {'readonly': True}, - 'id': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - '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'}, - 'cpu_shares_level': {'key': 'properties.cpuSharesLevel', 'type': 'str'}, - 'cpu_reservation_mhz': {'key': 'properties.cpuReservationMHz', 'type': 'long'}, - 'cpu_limit_mhz': {'key': 'properties.cpuLimitMHz', 'type': 'long'}, - 'mem_shares_level': {'key': 'properties.memSharesLevel', 'type': 'str'}, - 'mem_reservation_mb': {'key': 'properties.memReservationMB', 'type': 'long'}, - 'mem_limit_mb': {'key': 'properties.memLimitMB', 'type': 'long'}, - 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - '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'}, - } - - def __init__(self, **kwargs): - super(ResourcePool, self).__init__(**kwargs) - 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.cpu_shares_level = None - self.cpu_reservation_mhz = None - self.cpu_limit_mhz = None - self.mem_shares_level = None - self.mem_reservation_mb = None - self.mem_limit_mb = None - self.custom_resource_name = None - self.provisioning_state = None - self.location = kwargs.get('location', None) - self.extended_location = kwargs.get('extended_location', None) - self.system_data = kwargs.get('system_data', None) - self.tags = kwargs.get('tags', None) - self.name = None - self.id = None - self.type = None - self.kind = kwargs.get('kind', None) diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/resource_pool_inventory_item.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/resource_pool_inventory_item.py deleted file mode 100644 index 0e0e9f5e86b..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/resource_pool_inventory_item.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .inventory_item_properties import InventoryItemProperties - - -class ResourcePoolInventoryItem(InventoryItemProperties): - """The resource pool 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 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 - :param inventory_type: Required. Constant filled by server. - :type inventory_type: str - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'inventory_type': {'required': True}, - } - - _attribute_map = { - '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'}, - 'inventory_type': {'key': 'inventoryType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ResourcePoolInventoryItem, self).__init__(**kwargs) - self.inventory_type = 'ResourcePool' diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/resource_pool_inventory_item_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/resource_pool_inventory_item_py3.py deleted file mode 100644 index 8440f0530e3..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/resource_pool_inventory_item_py3.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .inventory_item_properties_py3 import InventoryItemProperties - - -class ResourcePoolInventoryItem(InventoryItemProperties): - """The resource pool 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 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 - :param inventory_type: Required. Constant filled by server. - :type inventory_type: str - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'inventory_type': {'required': True}, - } - - _attribute_map = { - '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'}, - 'inventory_type': {'key': 'inventoryType', 'type': 'str'}, - } - - def __init__(self, *, managed_resource_id: str=None, mo_ref_id: str=None, mo_name: str=None, **kwargs) -> None: - super(ResourcePoolInventoryItem, self).__init__(managed_resource_id=managed_resource_id, mo_ref_id=mo_ref_id, mo_name=mo_name, **kwargs) - self.inventory_type = 'ResourcePool' diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/resource_pool_paged.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/resource_pool_paged.py deleted file mode 100644 index 65ec66597cb..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/resource_pool_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class ResourcePoolPaged(Paged): - """ - A paging container for iterating over a list of :class:`ResourcePool ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ResourcePool]'} - } - - def __init__(self, *args, **kwargs): - - super(ResourcePoolPaged, self).__init__(*args, **kwargs) diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/resource_pool_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/resource_pool_py3.py deleted file mode 100644 index 40552ce09e6..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/resource_pool_py3.py +++ /dev/null @@ -1,154 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourcePool(Model): - """Define the resourcePool. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar 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 resource pool resides. - :type v_center_id: str - :param mo_ref_id: Gets or sets the vCenter MoRef (Managed Object - Reference) ID for the resource pool. - :type mo_ref_id: str - :param inventory_item_id: Gets or sets the inventory Item ID for the - resource pool. - :type inventory_item_id: str - :ivar mo_name: Gets or sets the vCenter Managed Object name for the - resource pool. - :vartype mo_name: str - :ivar cpu_shares_level: Gets or sets CPUSharesLevel which specifies the - CPU allocation level for this pool. - This property is used in relative allocation between resource consumers. - :vartype cpu_shares_level: str - :ivar cpu_reservation_mhz: Gets or sets CPUReservationMHz which specifies - the CPU size in MHz that is guaranteed - to be available. - :vartype cpu_reservation_mhz: long - :ivar cpu_limit_mhz: Gets or sets CPULimitMHz which specifies a CPU usage - limit in MHz. - Utilization will not exceed this limit even if there are available - resources. - :vartype cpu_limit_mhz: long - :ivar mem_shares_level: Gets or sets CPUSharesLevel which specifies the - memory allocation level for this pool. - This property is used in relative allocation between resource consumers. - :vartype mem_shares_level: str - :ivar mem_reservation_mb: Gets or sets MemReservationMB which specifies - the guaranteed available memory in - megabytes. - :vartype mem_reservation_mb: long - :ivar mem_limit_mb: Gets or sets MemLimitMB specifies a memory usage limit - in megabytes. - Utilization will not exceed the specified limit even if there are - available resources. - :vartype mem_limit_mb: long - :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 - :param location: Required. Gets or sets the location. - :type location: str - :param extended_location: Gets or sets the extended location. - :type extended_location: - ~azure.mgmt.vmware.v2020_10_01_preview.models.ExtendedLocation - :param system_data: The system data. - :type system_data: - ~azure.mgmt.vmware.v2020_10_01_preview.models.SystemData - :param 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 - """ - - _validation = { - 'uuid': {'readonly': True}, - 'mo_name': {'readonly': True}, - 'cpu_shares_level': {'readonly': True}, - 'cpu_reservation_mhz': {'readonly': True}, - 'cpu_limit_mhz': {'readonly': True}, - 'mem_shares_level': {'readonly': True}, - 'mem_reservation_mb': {'readonly': True}, - 'mem_limit_mb': {'readonly': True}, - 'custom_resource_name': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'location': {'required': True}, - 'name': {'readonly': True}, - 'id': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - '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'}, - 'cpu_shares_level': {'key': 'properties.cpuSharesLevel', 'type': 'str'}, - 'cpu_reservation_mhz': {'key': 'properties.cpuReservationMHz', 'type': 'long'}, - 'cpu_limit_mhz': {'key': 'properties.cpuLimitMHz', 'type': 'long'}, - 'mem_shares_level': {'key': 'properties.memSharesLevel', 'type': 'str'}, - 'mem_reservation_mb': {'key': 'properties.memReservationMB', 'type': 'long'}, - 'mem_limit_mb': {'key': 'properties.memLimitMB', 'type': 'long'}, - 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - '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'}, - } - - def __init__(self, *, location: str, v_center_id: str=None, mo_ref_id: str=None, inventory_item_id: str=None, extended_location=None, system_data=None, tags=None, kind: str=None, **kwargs) -> None: - super(ResourcePool, self).__init__(**kwargs) - 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.cpu_shares_level = None - self.cpu_reservation_mhz = None - self.cpu_limit_mhz = None - self.mem_shares_level = None - self.mem_reservation_mb = None - self.mem_limit_mb = None - self.custom_resource_name = None - self.provisioning_state = None - self.location = location - self.extended_location = extended_location - self.system_data = system_data - self.tags = tags - self.name = None - self.id = None - self.type = None - self.kind = kind diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/resource_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/resource_py3.py deleted file mode 100644 index b7d3562a596..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/resource_py3.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Resource(Model): - """Common fields that are returned in the response for all Azure Resource - Manager resources. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. E.g. - "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/stop_virtual_machine_options.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/stop_virtual_machine_options.py deleted file mode 100644 index 08183269a57..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/stop_virtual_machine_options.py +++ /dev/null @@ -1,31 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class StopVirtualMachineOptions(Model): - """Defines the stop action properties. - - :param skip_shutdown: Gets or sets a value indicating whether to request - non-graceful VM shutdown. True value for this flag indicates non-graceful - shutdown whereas false indicates otherwise. Defaults to false. Default - value: False . - :type skip_shutdown: bool - """ - - _attribute_map = { - 'skip_shutdown': {'key': 'skipShutdown', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(StopVirtualMachineOptions, self).__init__(**kwargs) - self.skip_shutdown = kwargs.get('skip_shutdown', False) diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/stop_virtual_machine_options_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/stop_virtual_machine_options_py3.py deleted file mode 100644 index 39a60951ca2..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/stop_virtual_machine_options_py3.py +++ /dev/null @@ -1,31 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class StopVirtualMachineOptions(Model): - """Defines the stop action properties. - - :param skip_shutdown: Gets or sets a value indicating whether to request - non-graceful VM shutdown. True value for this flag indicates non-graceful - shutdown whereas false indicates otherwise. Defaults to false. Default - value: False . - :type skip_shutdown: bool - """ - - _attribute_map = { - 'skip_shutdown': {'key': 'skipShutdown', 'type': 'bool'}, - } - - def __init__(self, *, skip_shutdown: bool=False, **kwargs) -> None: - super(StopVirtualMachineOptions, self).__init__(**kwargs) - self.skip_shutdown = skip_shutdown diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/storage_profile.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/storage_profile.py deleted file mode 100644 index 6b463756f49..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/storage_profile.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class StorageProfile(Model): - """Defines the resource properties. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param disks: Gets or sets the list of virtual disks associated with the - virtual machine. - :type disks: - list[~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualDisk] - :ivar scsi_controllers: Gets or sets the list of virtual SCSI controllers - associated with the virtual machine. - :vartype scsi_controllers: - list[~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualSCSIController] - """ - - _validation = { - 'scsi_controllers': {'readonly': True}, - } - - _attribute_map = { - 'disks': {'key': 'disks', 'type': '[VirtualDisk]'}, - 'scsi_controllers': {'key': 'scsiControllers', 'type': '[VirtualSCSIController]'}, - } - - def __init__(self, **kwargs): - super(StorageProfile, self).__init__(**kwargs) - self.disks = kwargs.get('disks', None) - self.scsi_controllers = None diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/storage_profile_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/storage_profile_py3.py deleted file mode 100644 index 64297fe9f92..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/storage_profile_py3.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class StorageProfile(Model): - """Defines the resource properties. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param disks: Gets or sets the list of virtual disks associated with the - virtual machine. - :type disks: - list[~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualDisk] - :ivar scsi_controllers: Gets or sets the list of virtual SCSI controllers - associated with the virtual machine. - :vartype scsi_controllers: - list[~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualSCSIController] - """ - - _validation = { - 'scsi_controllers': {'readonly': True}, - } - - _attribute_map = { - 'disks': {'key': 'disks', 'type': '[VirtualDisk]'}, - 'scsi_controllers': {'key': 'scsiControllers', 'type': '[VirtualSCSIController]'}, - } - - def __init__(self, *, disks=None, **kwargs) -> None: - super(StorageProfile, self).__init__(**kwargs) - self.disks = disks - self.scsi_controllers = None diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/storage_profile_update.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/storage_profile_update.py deleted file mode 100644 index d941637949f..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/storage_profile_update.py +++ /dev/null @@ -1,30 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class StorageProfileUpdate(Model): - """Defines the resource update properties. - - :param disks: Gets or sets the list of virtual disks associated with the - virtual machine. - :type disks: - list[~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualDiskUpdate] - """ - - _attribute_map = { - 'disks': {'key': 'disks', 'type': '[VirtualDiskUpdate]'}, - } - - def __init__(self, **kwargs): - super(StorageProfileUpdate, self).__init__(**kwargs) - self.disks = kwargs.get('disks', None) diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/storage_profile_update_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/storage_profile_update_py3.py deleted file mode 100644 index d398fa42619..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/storage_profile_update_py3.py +++ /dev/null @@ -1,30 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class StorageProfileUpdate(Model): - """Defines the resource update properties. - - :param disks: Gets or sets the list of virtual disks associated with the - virtual machine. - :type disks: - list[~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualDiskUpdate] - """ - - _attribute_map = { - 'disks': {'key': 'disks', 'type': '[VirtualDiskUpdate]'}, - } - - def __init__(self, *, disks=None, **kwargs) -> None: - super(StorageProfileUpdate, self).__init__(**kwargs) - self.disks = disks diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/system_data.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/system_data.py deleted file mode 100644 index 84d0435b3dc..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/system_data.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SystemData(Model): - """Metadata pertaining to creation and last modification of the resource. - - :param created_by: The identity that created the resource. - :type created_by: str - :param created_by_type: The type of identity that created the resource. - Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' - :type created_by_type: str or - ~azure.mgmt.vmware.v2020_10_01_preview.models.CreatedByType - :param created_at: The timestamp of resource creation (UTC). - :type created_at: datetime - :param last_modified_by: The identity that last modified the resource. - :type last_modified_by: str - :param last_modified_by_type: The type of identity that last modified the - resource. Possible values include: 'User', 'Application', - 'ManagedIdentity', 'Key' - :type last_modified_by_type: str or - ~azure.mgmt.vmware.v2020_10_01_preview.models.CreatedByType - :param last_modified_at: The type of identity that last modified the - resource. - :type last_modified_at: datetime - """ - - _attribute_map = { - 'created_by': {'key': 'createdBy', 'type': 'str'}, - 'created_by_type': {'key': 'createdByType', 'type': 'str'}, - 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, - 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'}, - 'last_modified_by_type': {'key': 'lastModifiedByType', 'type': 'str'}, - 'last_modified_at': {'key': 'lastModifiedAt', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs): - super(SystemData, self).__init__(**kwargs) - self.created_by = kwargs.get('created_by', None) - self.created_by_type = kwargs.get('created_by_type', None) - self.created_at = kwargs.get('created_at', None) - self.last_modified_by = kwargs.get('last_modified_by', None) - self.last_modified_by_type = kwargs.get('last_modified_by_type', None) - self.last_modified_at = kwargs.get('last_modified_at', None) diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/system_data_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/system_data_py3.py deleted file mode 100644 index a2cacb2126c..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/system_data_py3.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SystemData(Model): - """Metadata pertaining to creation and last modification of the resource. - - :param created_by: The identity that created the resource. - :type created_by: str - :param created_by_type: The type of identity that created the resource. - Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' - :type created_by_type: str or - ~azure.mgmt.vmware.v2020_10_01_preview.models.CreatedByType - :param created_at: The timestamp of resource creation (UTC). - :type created_at: datetime - :param last_modified_by: The identity that last modified the resource. - :type last_modified_by: str - :param last_modified_by_type: The type of identity that last modified the - resource. Possible values include: 'User', 'Application', - 'ManagedIdentity', 'Key' - :type last_modified_by_type: str or - ~azure.mgmt.vmware.v2020_10_01_preview.models.CreatedByType - :param last_modified_at: The type of identity that last modified the - resource. - :type last_modified_at: datetime - """ - - _attribute_map = { - 'created_by': {'key': 'createdBy', 'type': 'str'}, - 'created_by_type': {'key': 'createdByType', 'type': 'str'}, - 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, - 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'}, - 'last_modified_by_type': {'key': 'lastModifiedByType', 'type': 'str'}, - 'last_modified_at': {'key': 'lastModifiedAt', 'type': 'iso-8601'}, - } - - def __init__(self, *, created_by: str=None, created_by_type=None, created_at=None, last_modified_by: str=None, last_modified_by_type=None, last_modified_at=None, **kwargs) -> None: - super(SystemData, self).__init__(**kwargs) - self.created_by = created_by - self.created_by_type = created_by_type - self.created_at = created_at - self.last_modified_by = last_modified_by - self.last_modified_by_type = last_modified_by_type - self.last_modified_at = last_modified_at diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/tracked_resource.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/tracked_resource.py deleted file mode 100644 index eecd58e988f..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/tracked_resource.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class TrackedResource(Resource): - """The resource model definition for an Azure Resource Manager tracked top - level resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. E.g. - "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - :vartype type: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param location: Required. The geo-location where the resource lives - :type location: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(TrackedResource, self).__init__(**kwargs) - self.tags = kwargs.get('tags', None) - self.location = kwargs.get('location', None) diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/tracked_resource_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/tracked_resource_py3.py deleted file mode 100644 index ff16a507808..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/tracked_resource_py3.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class TrackedResource(Resource): - """The resource model definition for an Azure Resource Manager tracked top - level resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. E.g. - "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - :vartype type: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param location: Required. The geo-location where the resource lives - :type location: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - } - - def __init__(self, *, location: str, tags=None, **kwargs) -> None: - super(TrackedResource, self).__init__(**kwargs) - self.tags = tags - self.location = location diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/vcenter.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/vcenter.py deleted file mode 100644 index 22a400a9930..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/vcenter.py +++ /dev/null @@ -1,120 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class VCenter(Model): - """Defines the vCenter. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar uuid: Gets or sets a unique identifier for this resource. - :vartype uuid: str - :param fqdn: Required. Gets or sets the FQDN/IPAddress of the vCenter. - :type fqdn: str - :param port: Gets or sets the port of the vCenter. - :type port: int - :ivar version: Gets or sets the version of the vCenter. - :vartype version: str - :ivar instance_uuid: Gets or sets the instance UUID of the vCenter. - :vartype instance_uuid: str - :ivar connection_status: Gets or sets the connection status to the - vCenter. - :vartype connection_status: str - :ivar custom_resource_name: Gets the name of the corresponding resource in - Kubernetes. - :vartype custom_resource_name: str - :param credentials: Username / Password Credentials to connect to vcenter. - :type credentials: - ~azure.mgmt.vmware.v2020_10_01_preview.models.VICredential - :ivar provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str - :param location: Required. Gets or sets the location. - :type location: str - :param extended_location: Gets or sets the extended location. - :type extended_location: - ~azure.mgmt.vmware.v2020_10_01_preview.models.ExtendedLocation - :param system_data: The system data. - :type system_data: - ~azure.mgmt.vmware.v2020_10_01_preview.models.SystemData - :param 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 - """ - - _validation = { - 'uuid': {'readonly': True}, - 'fqdn': {'required': True}, - 'port': {'maximum': 65535, 'minimum': 1}, - 'version': {'readonly': True}, - 'instance_uuid': {'readonly': True}, - 'connection_status': {'readonly': True}, - 'custom_resource_name': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'location': {'required': True}, - 'name': {'readonly': True}, - 'id': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'uuid': {'key': 'properties.uuid', 'type': 'str'}, - 'fqdn': {'key': 'properties.fqdn', 'type': 'str'}, - 'port': {'key': 'properties.port', 'type': 'int'}, - 'version': {'key': 'properties.version', 'type': 'str'}, - 'instance_uuid': {'key': 'properties.instanceUuid', 'type': 'str'}, - 'connection_status': {'key': 'properties.connectionStatus', 'type': 'str'}, - 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, - 'credentials': {'key': 'properties.credentials', 'type': 'VICredential'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - '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'}, - } - - def __init__(self, **kwargs): - super(VCenter, self).__init__(**kwargs) - self.uuid = None - self.fqdn = kwargs.get('fqdn', None) - self.port = kwargs.get('port', None) - self.version = None - self.instance_uuid = None - self.connection_status = None - self.custom_resource_name = None - self.credentials = kwargs.get('credentials', None) - self.provisioning_state = None - self.location = kwargs.get('location', None) - self.extended_location = kwargs.get('extended_location', None) - self.system_data = kwargs.get('system_data', None) - self.tags = kwargs.get('tags', None) - self.name = None - self.id = None - self.type = None - self.kind = kwargs.get('kind', None) diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/vcenter_paged.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/vcenter_paged.py deleted file mode 100644 index cef555d741e..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/vcenter_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class VCenterPaged(Paged): - """ - A paging container for iterating over a list of :class:`VCenter ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[VCenter]'} - } - - def __init__(self, *args, **kwargs): - - super(VCenterPaged, self).__init__(*args, **kwargs) diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/vcenter_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/vcenter_py3.py deleted file mode 100644 index ff4d5d4930b..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/vcenter_py3.py +++ /dev/null @@ -1,120 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class VCenter(Model): - """Defines the vCenter. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar uuid: Gets or sets a unique identifier for this resource. - :vartype uuid: str - :param fqdn: Required. Gets or sets the FQDN/IPAddress of the vCenter. - :type fqdn: str - :param port: Gets or sets the port of the vCenter. - :type port: int - :ivar version: Gets or sets the version of the vCenter. - :vartype version: str - :ivar instance_uuid: Gets or sets the instance UUID of the vCenter. - :vartype instance_uuid: str - :ivar connection_status: Gets or sets the connection status to the - vCenter. - :vartype connection_status: str - :ivar custom_resource_name: Gets the name of the corresponding resource in - Kubernetes. - :vartype custom_resource_name: str - :param credentials: Username / Password Credentials to connect to vcenter. - :type credentials: - ~azure.mgmt.vmware.v2020_10_01_preview.models.VICredential - :ivar provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str - :param location: Required. Gets or sets the location. - :type location: str - :param extended_location: Gets or sets the extended location. - :type extended_location: - ~azure.mgmt.vmware.v2020_10_01_preview.models.ExtendedLocation - :param system_data: The system data. - :type system_data: - ~azure.mgmt.vmware.v2020_10_01_preview.models.SystemData - :param 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 - """ - - _validation = { - 'uuid': {'readonly': True}, - 'fqdn': {'required': True}, - 'port': {'maximum': 65535, 'minimum': 1}, - 'version': {'readonly': True}, - 'instance_uuid': {'readonly': True}, - 'connection_status': {'readonly': True}, - 'custom_resource_name': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'location': {'required': True}, - 'name': {'readonly': True}, - 'id': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'uuid': {'key': 'properties.uuid', 'type': 'str'}, - 'fqdn': {'key': 'properties.fqdn', 'type': 'str'}, - 'port': {'key': 'properties.port', 'type': 'int'}, - 'version': {'key': 'properties.version', 'type': 'str'}, - 'instance_uuid': {'key': 'properties.instanceUuid', 'type': 'str'}, - 'connection_status': {'key': 'properties.connectionStatus', 'type': 'str'}, - 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, - 'credentials': {'key': 'properties.credentials', 'type': 'VICredential'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - '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'}, - } - - def __init__(self, *, fqdn: str, location: str, port: int=None, credentials=None, extended_location=None, system_data=None, tags=None, kind: str=None, **kwargs) -> None: - super(VCenter, self).__init__(**kwargs) - self.uuid = None - self.fqdn = fqdn - self.port = port - self.version = None - self.instance_uuid = None - self.connection_status = None - self.custom_resource_name = None - self.credentials = credentials - self.provisioning_state = None - self.location = location - self.extended_location = extended_location - self.system_data = system_data - self.tags = tags - self.name = None - self.id = None - self.type = None - self.kind = kind diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/vi_credential.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/vi_credential.py deleted file mode 100644 index b30e9e3e835..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/vi_credential.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class VICredential(Model): - """Username / Password Credentials to connect to vcenter. - - :param username: Gets or sets username to connect with the vCenter. - :type username: str - :param password: Gets or sets the password to connect with the vCenter. - :type password: str - """ - - _attribute_map = { - 'username': {'key': 'username', 'type': 'str'}, - 'password': {'key': 'password', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(VICredential, self).__init__(**kwargs) - self.username = kwargs.get('username', None) - self.password = kwargs.get('password', None) diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/vi_credential_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/vi_credential_py3.py deleted file mode 100644 index 610c781dc44..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/vi_credential_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class VICredential(Model): - """Username / Password Credentials to connect to vcenter. - - :param username: Gets or sets username to connect with the vCenter. - :type username: str - :param password: Gets or sets the password to connect with the vCenter. - :type password: str - """ - - _attribute_map = { - 'username': {'key': 'username', 'type': 'str'}, - 'password': {'key': 'password', 'type': 'str'}, - } - - def __init__(self, *, username: str=None, password: str=None, **kwargs) -> None: - super(VICredential, self).__init__(**kwargs) - self.username = username - self.password = password diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_disk.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_disk.py deleted file mode 100644 index dae3de3f68c..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_disk.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class VirtualDisk(Model): - """Virtual disk model. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param name: Gets or sets the name of the virtual disk. - :type name: str - :ivar label: Gets or sets the label of the virtual disk in vCenter. - :vartype label: str - :ivar disk_object_id: Gets or sets the disk object id. - :vartype disk_object_id: str - :param disk_size_gb: Gets or sets the disk total size. - :type disk_size_gb: int - :param device_key: Gets or sets the device key value. - :type device_key: int - :param disk_mode: Gets or sets the disk mode. Possible values include: - 'persistent', 'independent_persistent', 'independent_nonpersistent' - :type disk_mode: str or - ~azure.mgmt.vmware.v2020_10_01_preview.models.DiskMode - :param controller_key: Gets or sets the controller id. - :type controller_key: int - :param unit_number: Gets or sets the unit number of the disk on the - controller. - :type unit_number: int - """ - - _validation = { - 'label': {'readonly': True}, - 'disk_object_id': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, - 'disk_object_id': {'key': 'diskObjectId', 'type': 'str'}, - 'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'}, - 'device_key': {'key': 'deviceKey', 'type': 'int'}, - 'disk_mode': {'key': 'diskMode', 'type': 'str'}, - 'controller_key': {'key': 'controllerKey', 'type': 'int'}, - 'unit_number': {'key': 'unitNumber', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(VirtualDisk, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.label = None - self.disk_object_id = None - self.disk_size_gb = kwargs.get('disk_size_gb', None) - self.device_key = kwargs.get('device_key', None) - self.disk_mode = kwargs.get('disk_mode', None) - self.controller_key = kwargs.get('controller_key', None) - self.unit_number = kwargs.get('unit_number', None) diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_disk_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_disk_py3.py deleted file mode 100644 index 2d5220e4714..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_disk_py3.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class VirtualDisk(Model): - """Virtual disk model. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param name: Gets or sets the name of the virtual disk. - :type name: str - :ivar label: Gets or sets the label of the virtual disk in vCenter. - :vartype label: str - :ivar disk_object_id: Gets or sets the disk object id. - :vartype disk_object_id: str - :param disk_size_gb: Gets or sets the disk total size. - :type disk_size_gb: int - :param device_key: Gets or sets the device key value. - :type device_key: int - :param disk_mode: Gets or sets the disk mode. Possible values include: - 'persistent', 'independent_persistent', 'independent_nonpersistent' - :type disk_mode: str or - ~azure.mgmt.vmware.v2020_10_01_preview.models.DiskMode - :param controller_key: Gets or sets the controller id. - :type controller_key: int - :param unit_number: Gets or sets the unit number of the disk on the - controller. - :type unit_number: int - """ - - _validation = { - 'label': {'readonly': True}, - 'disk_object_id': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, - 'disk_object_id': {'key': 'diskObjectId', 'type': 'str'}, - 'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'}, - 'device_key': {'key': 'deviceKey', 'type': 'int'}, - 'disk_mode': {'key': 'diskMode', 'type': 'str'}, - 'controller_key': {'key': 'controllerKey', 'type': 'int'}, - 'unit_number': {'key': 'unitNumber', 'type': 'int'}, - } - - def __init__(self, *, name: str=None, disk_size_gb: int=None, device_key: int=None, disk_mode=None, controller_key: int=None, unit_number: int=None, **kwargs) -> None: - super(VirtualDisk, self).__init__(**kwargs) - self.name = name - self.label = None - self.disk_object_id = None - self.disk_size_gb = disk_size_gb - self.device_key = device_key - self.disk_mode = disk_mode - self.controller_key = controller_key - self.unit_number = unit_number diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_disk_update.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_disk_update.py deleted file mode 100644 index 2d2348d3b90..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_disk_update.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class VirtualDiskUpdate(Model): - """Defines the virtual disk update. - - :param name: Gets or sets the name of the virtual disk. - :type name: str - :param disk_size_gb: Gets or sets the disk total size. - :type disk_size_gb: int - :param device_key: Gets or sets the device key value. - :type device_key: int - :param disk_mode: Gets or sets the disk mode. Possible values include: - 'persistent', 'independent_persistent', 'independent_nonpersistent' - :type disk_mode: str or - ~azure.mgmt.vmware.v2020_10_01_preview.models.DiskMode - :param controller_key: Gets or sets the controller id. - :type controller_key: int - :param unit_number: Gets or sets the unit number of the disk on the - controller. - :type unit_number: int - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'}, - 'device_key': {'key': 'deviceKey', 'type': 'int'}, - 'disk_mode': {'key': 'diskMode', 'type': 'str'}, - 'controller_key': {'key': 'controllerKey', 'type': 'int'}, - 'unit_number': {'key': 'unitNumber', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(VirtualDiskUpdate, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.disk_size_gb = kwargs.get('disk_size_gb', None) - self.device_key = kwargs.get('device_key', None) - self.disk_mode = kwargs.get('disk_mode', None) - self.controller_key = kwargs.get('controller_key', None) - self.unit_number = kwargs.get('unit_number', None) diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_disk_update_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_disk_update_py3.py deleted file mode 100644 index d13230fbcd8..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_disk_update_py3.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class VirtualDiskUpdate(Model): - """Defines the virtual disk update. - - :param name: Gets or sets the name of the virtual disk. - :type name: str - :param disk_size_gb: Gets or sets the disk total size. - :type disk_size_gb: int - :param device_key: Gets or sets the device key value. - :type device_key: int - :param disk_mode: Gets or sets the disk mode. Possible values include: - 'persistent', 'independent_persistent', 'independent_nonpersistent' - :type disk_mode: str or - ~azure.mgmt.vmware.v2020_10_01_preview.models.DiskMode - :param controller_key: Gets or sets the controller id. - :type controller_key: int - :param unit_number: Gets or sets the unit number of the disk on the - controller. - :type unit_number: int - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'}, - 'device_key': {'key': 'deviceKey', 'type': 'int'}, - 'disk_mode': {'key': 'diskMode', 'type': 'str'}, - 'controller_key': {'key': 'controllerKey', 'type': 'int'}, - 'unit_number': {'key': 'unitNumber', 'type': 'int'}, - } - - def __init__(self, *, name: str=None, disk_size_gb: int=None, device_key: int=None, disk_mode=None, controller_key: int=None, unit_number: int=None, **kwargs) -> None: - super(VirtualDiskUpdate, self).__init__(**kwargs) - self.name = name - self.disk_size_gb = disk_size_gb - self.device_key = device_key - self.disk_mode = disk_mode - self.controller_key = controller_key - self.unit_number = unit_number diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine.py deleted file mode 100644 index 8665b0f2129..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine.py +++ /dev/null @@ -1,155 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class VirtualMachine(Model): - """Define the virtualMachine. - - 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 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 template_id: Gets or sets the ARM Id of the template resource to - deploy the virtual machine. - :type template_id: str - :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 os_profile: OS properties. - :type os_profile: ~azure.mgmt.vmware.v2020_10_01_preview.models.OsProfile - :param hardware_profile: Hardware properties. - :type hardware_profile: - ~azure.mgmt.vmware.v2020_10_01_preview.models.HardwareProfile - :param network_profile: Network properties. - :type network_profile: - ~azure.mgmt.vmware.v2020_10_01_preview.models.NetworkProfile - :param storage_profile: Storage properties. - :type storage_profile: - ~azure.mgmt.vmware.v2020_10_01_preview.models.StorageProfile - :param mo_ref_id: Gets or sets the vCenter MoRef (Managed Object - Reference) ID for the virtual machine. - :type mo_ref_id: str - :param inventory_item_id: Gets or sets the inventory Item ID for the - virtual machine. - :type inventory_item_id: str - :ivar mo_name: Gets or sets the vCenter Managed Object name for the - virtual machine. - :vartype mo_name: str - :ivar folder_path: Gets or sets the folder path of the vm. - :vartype folder_path: str - :ivar instance_uuid: Gets or sets the instance uuid of the vm. - :vartype instance_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 provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str - :param location: Required. Gets or sets the location. - :type location: str - :param extended_location: Gets or sets the extended location. - :type extended_location: - ~azure.mgmt.vmware.v2020_10_01_preview.models.ExtendedLocation - :param system_data: The system data. - :type system_data: - ~azure.mgmt.vmware.v2020_10_01_preview.models.SystemData - :param 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 - """ - - _validation = { - 'mo_name': {'readonly': True}, - 'folder_path': {'readonly': True}, - 'instance_uuid': {'readonly': True}, - 'power_state': {'readonly': True}, - 'custom_resource_name': {'readonly': True}, - 'uuid': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'location': {'required': True}, - 'name': {'readonly': True}, - 'id': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'resource_pool_id': {'key': 'properties.resourcePoolId', 'type': 'str'}, - 'template_id': {'key': 'properties.templateId', 'type': 'str'}, - 'v_center_id': {'key': 'properties.vCenterId', 'type': 'str'}, - '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'}, - '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'}, - 'power_state': {'key': 'properties.powerState', 'type': 'str'}, - 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, - 'uuid': {'key': 'properties.uuid', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - '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'}, - } - - def __init__(self, **kwargs): - super(VirtualMachine, self).__init__(**kwargs) - 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.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.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.power_state = None - self.custom_resource_name = None - self.uuid = None - self.provisioning_state = None - self.location = kwargs.get('location', None) - self.extended_location = kwargs.get('extended_location', None) - self.system_data = kwargs.get('system_data', None) - self.tags = kwargs.get('tags', None) - self.name = None - self.id = None - self.type = None - self.kind = kwargs.get('kind', None) diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_inventory_item.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_inventory_item.py deleted file mode 100644 index 1a339e34b16..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_inventory_item.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .inventory_item_properties import InventoryItemProperties - - -class VirtualMachineInventoryItem(InventoryItemProperties): - """The VM 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 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 - :param inventory_type: Required. Constant filled by server. - :type inventory_type: str - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'inventory_type': {'required': True}, - } - - _attribute_map = { - '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'}, - 'inventory_type': {'key': 'inventoryType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(VirtualMachineInventoryItem, self).__init__(**kwargs) - self.inventory_type = 'VirtualMachine' diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_inventory_item_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_inventory_item_py3.py deleted file mode 100644 index 121defd8577..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_inventory_item_py3.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .inventory_item_properties_py3 import InventoryItemProperties - - -class VirtualMachineInventoryItem(InventoryItemProperties): - """The VM 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 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 - :param inventory_type: Required. Constant filled by server. - :type inventory_type: str - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'inventory_type': {'required': True}, - } - - _attribute_map = { - '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'}, - 'inventory_type': {'key': 'inventoryType', 'type': 'str'}, - } - - def __init__(self, *, managed_resource_id: str=None, mo_ref_id: str=None, mo_name: str=None, **kwargs) -> None: - 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' diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_paged.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_paged.py deleted file mode 100644 index 9d3eba3a151..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class VirtualMachinePaged(Paged): - """ - A paging container for iterating over a list of :class:`VirtualMachine ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[VirtualMachine]'} - } - - def __init__(self, *args, **kwargs): - - super(VirtualMachinePaged, self).__init__(*args, **kwargs) diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_py3.py deleted file mode 100644 index 6363cb2d971..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_py3.py +++ /dev/null @@ -1,155 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class VirtualMachine(Model): - """Define the virtualMachine. - - 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 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 template_id: Gets or sets the ARM Id of the template resource to - deploy the virtual machine. - :type template_id: str - :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 os_profile: OS properties. - :type os_profile: ~azure.mgmt.vmware.v2020_10_01_preview.models.OsProfile - :param hardware_profile: Hardware properties. - :type hardware_profile: - ~azure.mgmt.vmware.v2020_10_01_preview.models.HardwareProfile - :param network_profile: Network properties. - :type network_profile: - ~azure.mgmt.vmware.v2020_10_01_preview.models.NetworkProfile - :param storage_profile: Storage properties. - :type storage_profile: - ~azure.mgmt.vmware.v2020_10_01_preview.models.StorageProfile - :param mo_ref_id: Gets or sets the vCenter MoRef (Managed Object - Reference) ID for the virtual machine. - :type mo_ref_id: str - :param inventory_item_id: Gets or sets the inventory Item ID for the - virtual machine. - :type inventory_item_id: str - :ivar mo_name: Gets or sets the vCenter Managed Object name for the - virtual machine. - :vartype mo_name: str - :ivar folder_path: Gets or sets the folder path of the vm. - :vartype folder_path: str - :ivar instance_uuid: Gets or sets the instance uuid of the vm. - :vartype instance_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 provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str - :param location: Required. Gets or sets the location. - :type location: str - :param extended_location: Gets or sets the extended location. - :type extended_location: - ~azure.mgmt.vmware.v2020_10_01_preview.models.ExtendedLocation - :param system_data: The system data. - :type system_data: - ~azure.mgmt.vmware.v2020_10_01_preview.models.SystemData - :param 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 - """ - - _validation = { - 'mo_name': {'readonly': True}, - 'folder_path': {'readonly': True}, - 'instance_uuid': {'readonly': True}, - 'power_state': {'readonly': True}, - 'custom_resource_name': {'readonly': True}, - 'uuid': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'location': {'required': True}, - 'name': {'readonly': True}, - 'id': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'resource_pool_id': {'key': 'properties.resourcePoolId', 'type': 'str'}, - 'template_id': {'key': 'properties.templateId', 'type': 'str'}, - 'v_center_id': {'key': 'properties.vCenterId', 'type': 'str'}, - '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'}, - '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'}, - 'power_state': {'key': 'properties.powerState', 'type': 'str'}, - 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, - 'uuid': {'key': 'properties.uuid', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - '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'}, - } - - def __init__(self, *, location: str, resource_pool_id: str=None, template_id: str=None, v_center_id: str=None, os_profile=None, hardware_profile=None, network_profile=None, storage_profile=None, mo_ref_id: str=None, inventory_item_id: str=None, extended_location=None, system_data=None, tags=None, kind: str=None, **kwargs) -> None: - super(VirtualMachine, self).__init__(**kwargs) - self.resource_pool_id = resource_pool_id - self.template_id = template_id - self.v_center_id = v_center_id - self.os_profile = os_profile - self.hardware_profile = hardware_profile - self.network_profile = network_profile - self.storage_profile = storage_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.power_state = None - self.custom_resource_name = None - self.uuid = None - self.provisioning_state = None - self.location = location - self.extended_location = extended_location - self.system_data = system_data - self.tags = tags - self.name = None - self.id = None - self.type = None - self.kind = kind diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_template.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_template.py deleted file mode 100644 index 1c44ddb5300..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_template.py +++ /dev/null @@ -1,158 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class VirtualMachineTemplate(Model): - """Define the virtualMachineTemplate. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar 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 template resides. - :type v_center_id: str - :param mo_ref_id: Gets or sets the vCenter MoRef (Managed Object - Reference) ID for the virtual machine - template. - :type mo_ref_id: str - :param inventory_item_id: Gets or sets the inventory Item ID for the - virtual machine template. - :type inventory_item_id: str - :ivar mo_name: Gets or sets the vCenter Managed Object name for the - virtual machine template. - :vartype mo_name: str - :ivar memory_size_mb: Gets or sets memory size in MBs for the template. - :vartype memory_size_mb: int - :ivar num_cp_us: Gets or sets the number of vCPUs for the template. - :vartype num_cp_us: int - :ivar num_cores_per_socket: Gets or sets the number of cores per socket - for the template. - Defaults to 1 if unspecified. - :vartype num_cores_per_socket: int - :ivar os_type: Gets or sets the type of the os. Possible values include: - 'Windows', 'Linux', 'Other' - :vartype os_type: str or - ~azure.mgmt.vmware.v2020_10_01_preview.models.OsType - :ivar os_name: Gets or sets os name. - :vartype os_name: str - :ivar folder_path: Gets or sets the folder path of the template. - :vartype folder_path: str - :ivar network_interfaces: Gets or sets the network interfaces of the - template. - :vartype network_interfaces: - list[~azure.mgmt.vmware.v2020_10_01_preview.models.NetworkInterface] - :ivar disks: Gets or sets the disks the template. - :vartype disks: - list[~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualDisk] - :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 - :param location: Required. Gets or sets the location. - :type location: str - :param extended_location: Gets or sets the extended location. - :type extended_location: - ~azure.mgmt.vmware.v2020_10_01_preview.models.ExtendedLocation - :param system_data: The system data. - :type system_data: - ~azure.mgmt.vmware.v2020_10_01_preview.models.SystemData - :param 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 - """ - - _validation = { - 'uuid': {'readonly': True}, - 'mo_name': {'readonly': True}, - 'memory_size_mb': {'readonly': True}, - 'num_cp_us': {'readonly': True}, - 'num_cores_per_socket': {'readonly': True}, - 'os_type': {'readonly': True}, - 'os_name': {'readonly': True}, - 'folder_path': {'readonly': True}, - 'network_interfaces': {'readonly': True}, - 'disks': {'readonly': True}, - 'custom_resource_name': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'location': {'required': True}, - 'name': {'readonly': True}, - 'id': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - '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'}, - 'memory_size_mb': {'key': 'properties.memorySizeMB', 'type': 'int'}, - 'num_cp_us': {'key': 'properties.numCPUs', 'type': 'int'}, - 'num_cores_per_socket': {'key': 'properties.numCoresPerSocket', 'type': 'int'}, - 'os_type': {'key': 'properties.osType', 'type': 'str'}, - 'os_name': {'key': 'properties.osName', 'type': 'str'}, - 'folder_path': {'key': 'properties.folderPath', 'type': 'str'}, - 'network_interfaces': {'key': 'properties.networkInterfaces', 'type': '[NetworkInterface]'}, - 'disks': {'key': 'properties.disks', 'type': '[VirtualDisk]'}, - 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - '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'}, - } - - def __init__(self, **kwargs): - super(VirtualMachineTemplate, self).__init__(**kwargs) - 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.memory_size_mb = None - self.num_cp_us = None - self.num_cores_per_socket = None - self.os_type = None - self.os_name = None - self.folder_path = None - self.network_interfaces = None - self.disks = None - self.custom_resource_name = None - self.provisioning_state = None - self.location = kwargs.get('location', None) - self.extended_location = kwargs.get('extended_location', None) - self.system_data = kwargs.get('system_data', None) - self.tags = kwargs.get('tags', None) - self.name = None - self.id = None - self.type = None - self.kind = kwargs.get('kind', None) diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_template_inventory_item.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_template_inventory_item.py deleted file mode 100644 index 8ea04b80604..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_template_inventory_item.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .inventory_item_properties import InventoryItemProperties - - -class VirtualMachineTemplateInventoryItem(InventoryItemProperties): - """The VM Template 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 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 - :param inventory_type: Required. Constant filled by server. - :type inventory_type: str - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'inventory_type': {'required': True}, - } - - _attribute_map = { - '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'}, - 'inventory_type': {'key': 'inventoryType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(VirtualMachineTemplateInventoryItem, self).__init__(**kwargs) - self.inventory_type = 'VirtualMachineTemplate' diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_template_inventory_item_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_template_inventory_item_py3.py deleted file mode 100644 index 560d071c52d..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_template_inventory_item_py3.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .inventory_item_properties_py3 import InventoryItemProperties - - -class VirtualMachineTemplateInventoryItem(InventoryItemProperties): - """The VM Template 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 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 - :param inventory_type: Required. Constant filled by server. - :type inventory_type: str - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'inventory_type': {'required': True}, - } - - _attribute_map = { - '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'}, - 'inventory_type': {'key': 'inventoryType', 'type': 'str'}, - } - - def __init__(self, *, managed_resource_id: str=None, mo_ref_id: str=None, mo_name: str=None, **kwargs) -> None: - super(VirtualMachineTemplateInventoryItem, self).__init__(managed_resource_id=managed_resource_id, mo_ref_id=mo_ref_id, mo_name=mo_name, **kwargs) - self.inventory_type = 'VirtualMachineTemplate' diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_template_paged.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_template_paged.py deleted file mode 100644 index 08665faf2fd..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_template_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class VirtualMachineTemplatePaged(Paged): - """ - A paging container for iterating over a list of :class:`VirtualMachineTemplate ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[VirtualMachineTemplate]'} - } - - def __init__(self, *args, **kwargs): - - super(VirtualMachineTemplatePaged, self).__init__(*args, **kwargs) diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_template_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_template_py3.py deleted file mode 100644 index d56d529952f..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_template_py3.py +++ /dev/null @@ -1,158 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class VirtualMachineTemplate(Model): - """Define the virtualMachineTemplate. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar 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 template resides. - :type v_center_id: str - :param mo_ref_id: Gets or sets the vCenter MoRef (Managed Object - Reference) ID for the virtual machine - template. - :type mo_ref_id: str - :param inventory_item_id: Gets or sets the inventory Item ID for the - virtual machine template. - :type inventory_item_id: str - :ivar mo_name: Gets or sets the vCenter Managed Object name for the - virtual machine template. - :vartype mo_name: str - :ivar memory_size_mb: Gets or sets memory size in MBs for the template. - :vartype memory_size_mb: int - :ivar num_cp_us: Gets or sets the number of vCPUs for the template. - :vartype num_cp_us: int - :ivar num_cores_per_socket: Gets or sets the number of cores per socket - for the template. - Defaults to 1 if unspecified. - :vartype num_cores_per_socket: int - :ivar os_type: Gets or sets the type of the os. Possible values include: - 'Windows', 'Linux', 'Other' - :vartype os_type: str or - ~azure.mgmt.vmware.v2020_10_01_preview.models.OsType - :ivar os_name: Gets or sets os name. - :vartype os_name: str - :ivar folder_path: Gets or sets the folder path of the template. - :vartype folder_path: str - :ivar network_interfaces: Gets or sets the network interfaces of the - template. - :vartype network_interfaces: - list[~azure.mgmt.vmware.v2020_10_01_preview.models.NetworkInterface] - :ivar disks: Gets or sets the disks the template. - :vartype disks: - list[~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualDisk] - :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 - :param location: Required. Gets or sets the location. - :type location: str - :param extended_location: Gets or sets the extended location. - :type extended_location: - ~azure.mgmt.vmware.v2020_10_01_preview.models.ExtendedLocation - :param system_data: The system data. - :type system_data: - ~azure.mgmt.vmware.v2020_10_01_preview.models.SystemData - :param 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 - """ - - _validation = { - 'uuid': {'readonly': True}, - 'mo_name': {'readonly': True}, - 'memory_size_mb': {'readonly': True}, - 'num_cp_us': {'readonly': True}, - 'num_cores_per_socket': {'readonly': True}, - 'os_type': {'readonly': True}, - 'os_name': {'readonly': True}, - 'folder_path': {'readonly': True}, - 'network_interfaces': {'readonly': True}, - 'disks': {'readonly': True}, - 'custom_resource_name': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'location': {'required': True}, - 'name': {'readonly': True}, - 'id': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - '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'}, - 'memory_size_mb': {'key': 'properties.memorySizeMB', 'type': 'int'}, - 'num_cp_us': {'key': 'properties.numCPUs', 'type': 'int'}, - 'num_cores_per_socket': {'key': 'properties.numCoresPerSocket', 'type': 'int'}, - 'os_type': {'key': 'properties.osType', 'type': 'str'}, - 'os_name': {'key': 'properties.osName', 'type': 'str'}, - 'folder_path': {'key': 'properties.folderPath', 'type': 'str'}, - 'network_interfaces': {'key': 'properties.networkInterfaces', 'type': '[NetworkInterface]'}, - 'disks': {'key': 'properties.disks', 'type': '[VirtualDisk]'}, - 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - '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'}, - } - - def __init__(self, *, location: str, v_center_id: str=None, mo_ref_id: str=None, inventory_item_id: str=None, extended_location=None, system_data=None, tags=None, kind: str=None, **kwargs) -> None: - super(VirtualMachineTemplate, self).__init__(**kwargs) - 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.memory_size_mb = None - self.num_cp_us = None - self.num_cores_per_socket = None - self.os_type = None - self.os_name = None - self.folder_path = None - self.network_interfaces = None - self.disks = None - self.custom_resource_name = None - self.provisioning_state = None - self.location = location - self.extended_location = extended_location - self.system_data = system_data - self.tags = tags - self.name = None - self.id = None - self.type = None - self.kind = kind diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_update.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_update.py deleted file mode 100644 index 557160c0127..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_update.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class VirtualMachineUpdate(Model): - """Defines the virtualMachineUpdate. - - :param hardware_profile: - :type hardware_profile: - ~azure.mgmt.vmware.v2020_10_01_preview.models.HardwareProfile - :param storage_profile: - :type storage_profile: - ~azure.mgmt.vmware.v2020_10_01_preview.models.StorageProfileUpdate - :param network_profile: - :type network_profile: - ~azure.mgmt.vmware.v2020_10_01_preview.models.NetworkProfileUpdate - :param tags: Gets or sets the Resource tags. - :type tags: dict[str, str] - """ - - _attribute_map = { - 'hardware_profile': { - 'key': 'properties.hardwareProfile', - 'type': 'HardwareProfile', - }, - 'storage_profile': { - 'key': 'properties.storageProfile', - 'type': 'StorageProfileUpdate', - }, - 'network_profile': { - 'key': 'properties.networkProfile', - 'type': 'NetworkProfileUpdate', - }, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(VirtualMachineUpdate, self).__init__(**kwargs) - self.hardware_profile = kwargs.get('hardware_profile', None) - self.storage_profile = kwargs.get('storage_profile', None) - self.network_profile = kwargs.get('network_profile', None) - self.tags = kwargs.get('tags', None) diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_update_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_update_py3.py deleted file mode 100644 index 27dd9c3547f..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_update_py3.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class VirtualMachineUpdate(Model): - """Defines the virtualMachineUpdate. - - :param hardware_profile: - :type hardware_profile: - ~azure.mgmt.vmware.v2020_10_01_preview.models.HardwareProfile - :param storage_profile: - :type storage_profile: - ~azure.mgmt.vmware.v2020_10_01_preview.models.StorageProfileUpdate - :param network_profile: - :type network_profile: - ~azure.mgmt.vmware.v2020_10_01_preview.models.NetworkProfileUpdate - :param tags: Gets or sets the Resource tags. - :type tags: dict[str, str] - """ - - _attribute_map = { - 'hardware_profile': {'key': 'properties.hardwareProfile', 'type': 'HardwareProfile'}, - 'storage_profile': {'key': 'properties.storageProfile', 'type': 'StorageProfileUpdate'}, - 'network_profile': {'key': 'properties.networkProfile', 'type': 'NetworkProfileUpdate'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, *, hardware_profile=None, storage_profile=None, network_profile=None, tags=None, **kwargs) -> None: - super(VirtualMachineUpdate, self).__init__(**kwargs) - self.hardware_profile = hardware_profile - self.storage_profile = storage_profile - self.network_profile = network_profile - self.tags = tags diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_network.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_network.py deleted file mode 100644 index 3011728b608..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_network.py +++ /dev/null @@ -1,110 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class VirtualNetwork(Model): - """Define the virtualNetwork. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar 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 template resides. - :type v_center_id: str - :param mo_ref_id: Gets or sets the vCenter MoRef (Managed Object - Reference) ID for the virtual network. - :type mo_ref_id: str - :param inventory_item_id: Gets or sets the inventory Item ID for the - virtual network. - :type inventory_item_id: str - :ivar mo_name: Gets or sets the vCenter Managed Object name for the - virtual network. - :vartype mo_name: 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 - :param location: Required. Gets or sets the location. - :type location: str - :param extended_location: Gets or sets the extended location. - :type extended_location: - ~azure.mgmt.vmware.v2020_10_01_preview.models.ExtendedLocation - :param system_data: The system data. - :type system_data: - ~azure.mgmt.vmware.v2020_10_01_preview.models.SystemData - :param 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 - """ - - _validation = { - 'uuid': {'readonly': True}, - 'mo_name': {'readonly': True}, - 'custom_resource_name': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'location': {'required': True}, - 'name': {'readonly': True}, - 'id': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - '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'}, - 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - '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'}, - } - - def __init__(self, **kwargs): - super(VirtualNetwork, self).__init__(**kwargs) - 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.custom_resource_name = None - self.provisioning_state = None - self.location = kwargs.get('location', None) - self.extended_location = kwargs.get('extended_location', None) - self.system_data = kwargs.get('system_data', None) - self.tags = kwargs.get('tags', None) - self.name = None - self.id = None - self.type = None - self.kind = kwargs.get('kind', None) diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_network_inventory_item.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_network_inventory_item.py deleted file mode 100644 index ff3c1103a9a..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_network_inventory_item.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .inventory_item_properties import InventoryItemProperties - - -class VirtualNetworkInventoryItem(InventoryItemProperties): - """The Virtual network 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 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 - :param inventory_type: Required. Constant filled by server. - :type inventory_type: str - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'inventory_type': {'required': True}, - } - - _attribute_map = { - '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'}, - 'inventory_type': {'key': 'inventoryType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(VirtualNetworkInventoryItem, self).__init__(**kwargs) - self.inventory_type = 'VirtualNetwork' diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_network_inventory_item_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_network_inventory_item_py3.py deleted file mode 100644 index 6a13935f6c6..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_network_inventory_item_py3.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .inventory_item_properties_py3 import InventoryItemProperties - - -class VirtualNetworkInventoryItem(InventoryItemProperties): - """The Virtual network 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 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 - :param inventory_type: Required. Constant filled by server. - :type inventory_type: str - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'inventory_type': {'required': True}, - } - - _attribute_map = { - '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'}, - 'inventory_type': {'key': 'inventoryType', 'type': 'str'}, - } - - def __init__(self, *, managed_resource_id: str=None, mo_ref_id: str=None, mo_name: str=None, **kwargs) -> None: - super(VirtualNetworkInventoryItem, self).__init__(managed_resource_id=managed_resource_id, mo_ref_id=mo_ref_id, mo_name=mo_name, **kwargs) - self.inventory_type = 'VirtualNetwork' diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_network_paged.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_network_paged.py deleted file mode 100644 index f32a65ad6f1..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_network_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class VirtualNetworkPaged(Paged): - """ - A paging container for iterating over a list of :class:`VirtualNetwork ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[VirtualNetwork]'} - } - - def __init__(self, *args, **kwargs): - - super(VirtualNetworkPaged, self).__init__(*args, **kwargs) diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_network_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_network_py3.py deleted file mode 100644 index b6b7066bbc0..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_network_py3.py +++ /dev/null @@ -1,110 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class VirtualNetwork(Model): - """Define the virtualNetwork. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar 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 template resides. - :type v_center_id: str - :param mo_ref_id: Gets or sets the vCenter MoRef (Managed Object - Reference) ID for the virtual network. - :type mo_ref_id: str - :param inventory_item_id: Gets or sets the inventory Item ID for the - virtual network. - :type inventory_item_id: str - :ivar mo_name: Gets or sets the vCenter Managed Object name for the - virtual network. - :vartype mo_name: 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 - :param location: Required. Gets or sets the location. - :type location: str - :param extended_location: Gets or sets the extended location. - :type extended_location: - ~azure.mgmt.vmware.v2020_10_01_preview.models.ExtendedLocation - :param system_data: The system data. - :type system_data: - ~azure.mgmt.vmware.v2020_10_01_preview.models.SystemData - :param 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 - """ - - _validation = { - 'uuid': {'readonly': True}, - 'mo_name': {'readonly': True}, - 'custom_resource_name': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'location': {'required': True}, - 'name': {'readonly': True}, - 'id': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - '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'}, - 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - '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'}, - } - - def __init__(self, *, location: str, v_center_id: str=None, mo_ref_id: str=None, inventory_item_id: str=None, extended_location=None, system_data=None, tags=None, kind: str=None, **kwargs) -> None: - super(VirtualNetwork, self).__init__(**kwargs) - 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.custom_resource_name = None - self.provisioning_state = None - self.location = location - self.extended_location = extended_location - self.system_data = system_data - self.tags = tags - self.name = None - self.id = None - self.type = None - self.kind = kind diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_scsi_controller.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_scsi_controller.py deleted file mode 100644 index 02eb05acda7..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_scsi_controller.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class VirtualSCSIController(Model): - """This data object type contains the properties of a SCSI controller device - attached to a virtual machine that is reported by the controller. - - :param type: Gets or sets the controller type. Possible values include: - 'lsilogic', 'buslogic', 'pvscsi', 'lsilogicsas' - :type type: str or - ~azure.mgmt.vmware.v2020_10_01_preview.models.SCSIControllerType - :param controller_key: Gets or sets the key of the controller. - :type controller_key: int - :param bus_number: Gets or sets the bus number of the controller. - :type bus_number: int - :param scsi_ctlr_unit_number: Gets or sets the SCSI controller unit - number. - :type scsi_ctlr_unit_number: int - :param sharing: Gets or sets the sharing mode. Possible values include: - 'noSharing', 'physicalSharing', 'virtualSharing' - :type sharing: str or - ~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualSCSISharing - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'controller_key': {'key': 'controllerKey', 'type': 'int'}, - 'bus_number': {'key': 'busNumber', 'type': 'int'}, - 'scsi_ctlr_unit_number': {'key': 'scsiCtlrUnitNumber', 'type': 'int'}, - 'sharing': {'key': 'sharing', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(VirtualSCSIController, self).__init__(**kwargs) - self.type = kwargs.get('type', None) - self.controller_key = kwargs.get('controller_key', None) - self.bus_number = kwargs.get('bus_number', None) - self.scsi_ctlr_unit_number = kwargs.get('scsi_ctlr_unit_number', None) - self.sharing = kwargs.get('sharing', None) diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_scsi_controller_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_scsi_controller_py3.py deleted file mode 100644 index 71ca803c7f0..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_scsi_controller_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class VirtualSCSIController(Model): - """This data object type contains the properties of a SCSI controller device - attached to a virtual machine that is reported by the controller. - - :param type: Gets or sets the controller type. Possible values include: - 'lsilogic', 'buslogic', 'pvscsi', 'lsilogicsas' - :type type: str or - ~azure.mgmt.vmware.v2020_10_01_preview.models.SCSIControllerType - :param controller_key: Gets or sets the key of the controller. - :type controller_key: int - :param bus_number: Gets or sets the bus number of the controller. - :type bus_number: int - :param scsi_ctlr_unit_number: Gets or sets the SCSI controller unit - number. - :type scsi_ctlr_unit_number: int - :param sharing: Gets or sets the sharing mode. Possible values include: - 'noSharing', 'physicalSharing', 'virtualSharing' - :type sharing: str or - ~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualSCSISharing - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'controller_key': {'key': 'controllerKey', 'type': 'int'}, - 'bus_number': {'key': 'busNumber', 'type': 'int'}, - 'scsi_ctlr_unit_number': {'key': 'scsiCtlrUnitNumber', 'type': 'int'}, - 'sharing': {'key': 'sharing', 'type': 'str'}, - } - - def __init__(self, *, type=None, controller_key: int=None, bus_number: int=None, scsi_ctlr_unit_number: int=None, sharing=None, **kwargs) -> None: - super(VirtualSCSIController, self).__init__(**kwargs) - self.type = type - self.controller_key = controller_key - self.bus_number = bus_number - self.scsi_ctlr_unit_number = scsi_ctlr_unit_number - self.sharing = sharing diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/__init__.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/__init__.py index de63ef86d5d..81e185f271d 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/__init__.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/__init__.py @@ -7,12 +7,12 @@ # -------------------------------------------------------------------------- from ._operations import Operations +from ._virtual_machines_operations import VirtualMachinesOperations 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 from ._virtual_networks_operations import VirtualNetworksOperations from ._inventory_items_operations import InventoryItemsOperations @@ -22,12 +22,12 @@ __all__ = [ 'Operations', + 'VirtualMachinesOperations', 'ResourcePoolsOperations', 'ClustersOperations', 'HostsOperations', 'DatastoresOperations', 'VCentersOperations', - 'VirtualMachinesOperations', 'VirtualMachineTemplatesOperations', 'VirtualNetworksOperations', 'InventoryItemsOperations', diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_clusters_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_clusters_operations.py index 3a0941b97d0..7c1c54ab60d 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_clusters_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_clusters_operations.py @@ -40,7 +40,7 @@ def build_create_request_initial( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', None) # type: Optional[str] accept = "application/json" @@ -80,7 +80,7 @@ def build_get_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str accept = "application/json" # Construct URL @@ -117,7 +117,7 @@ def build_update_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', None) # type: Optional[str] accept = "application/json" @@ -157,7 +157,7 @@ def build_delete_request_initial( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str force = kwargs.pop('force', None) # type: Optional[bool] accept = "application/json" @@ -195,7 +195,7 @@ def build_list_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str accept = "application/json" # Construct URL @@ -229,7 +229,7 @@ def build_list_by_resource_group_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str accept = "application/json" # Construct URL @@ -294,7 +294,7 @@ def _create_initial( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -370,7 +370,7 @@ def begin_create( :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.connectedvmware.models.Cluster] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.Cluster"] @@ -440,7 +440,7 @@ def get( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_get_request( @@ -505,7 +505,7 @@ def update( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -561,7 +561,7 @@ def _delete_initial( # pylint: disable=inconsistent-return-statements } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_delete_request_initial( @@ -623,7 +623,7 @@ def begin_delete( # pylint: disable=inconsistent-return-statements :rtype: ~azure.core.polling.LROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( @@ -676,7 +676,7 @@ def list( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.ClustersList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.ClustersList"] error_map = { @@ -754,7 +754,7 @@ def list_by_resource_group( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.ClustersList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.ClustersList"] error_map = { diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_datastores_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_datastores_operations.py index 4f81f336d32..4dabcc7d844 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_datastores_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_datastores_operations.py @@ -40,7 +40,7 @@ def build_create_request_initial( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', None) # type: Optional[str] accept = "application/json" @@ -80,7 +80,7 @@ def build_get_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str accept = "application/json" # Construct URL @@ -117,7 +117,7 @@ def build_update_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', None) # type: Optional[str] accept = "application/json" @@ -157,7 +157,7 @@ def build_delete_request_initial( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str force = kwargs.pop('force', None) # type: Optional[bool] accept = "application/json" @@ -195,7 +195,7 @@ def build_list_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str accept = "application/json" # Construct URL @@ -229,7 +229,7 @@ def build_list_by_resource_group_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str accept = "application/json" # Construct URL @@ -294,7 +294,7 @@ def _create_initial( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -370,7 +370,7 @@ def begin_create( :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.connectedvmware.models.Datastore] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.Datastore"] @@ -440,7 +440,7 @@ def get( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_get_request( @@ -505,7 +505,7 @@ def update( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -561,7 +561,7 @@ def _delete_initial( # pylint: disable=inconsistent-return-statements } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_delete_request_initial( @@ -623,7 +623,7 @@ def begin_delete( # pylint: disable=inconsistent-return-statements :rtype: ~azure.core.polling.LROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( @@ -676,7 +676,7 @@ def list( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.DatastoresList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.DatastoresList"] error_map = { @@ -754,7 +754,7 @@ def list_by_resource_group( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.DatastoresList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.DatastoresList"] error_map = { 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 deleted file mode 100644 index 8713262a332..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_guest_agent_operations.py +++ /dev/null @@ -1,455 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from 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 GuestAgentOperations(object): - """GuestAgentOperations 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 - virtual_machine_name, # type: str - name, # type: str - body=None, # type: Optional["_models.GuestAgent"] - **kwargs # type: Any - ): - # type: (...) -> "_models.GuestAgent" - cls = kwargs.pop('cls', None) # type: ClsType["_models.GuestAgent"] - 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'), - 'virtualMachineName': self._serialize.url("virtual_machine_name", virtual_machine_name, 'str'), - 'name': self._serialize.url("name", 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, 'GuestAgent') - 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('GuestAgent', pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize('GuestAgent', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - _create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/guestAgents/{name}'} # type: ignore - - def begin_create( - self, - resource_group_name, # type: str - virtual_machine_name, # type: str - name, # type: str - body=None, # type: Optional["_models.GuestAgent"] - **kwargs # type: Any - ): - # type: (...) -> LROPoller["_models.GuestAgent"] - """Implements GuestAgent PUT method. - - Create Or Update GuestAgent. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param virtual_machine_name: Name of the vm. - :type virtual_machine_name: str - :param name: Name of the guestAgents. - :type name: str - :param body: Request payload. - :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: 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) - :rtype: ~azure.core.polling.LROPoller[~azure_arc_vmware_management_service_api.models.GuestAgent] - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["_models.GuestAgent"] - 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, - virtual_machine_name=virtual_machine_name, - name=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('GuestAgent', 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'), - 'virtualMachineName': self._serialize.url("virtual_machine_name", virtual_machine_name, 'str'), - 'name': self._serialize.url("name", 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/virtualMachines/{virtualMachineName}/guestAgents/{name}'} # type: ignore - - def get( - self, - resource_group_name, # type: str - virtual_machine_name, # type: str - name, # type: str - **kwargs # type: Any - ): - # type: (...) -> "_models.GuestAgent" - """Gets GuestAgent. - - Implements GuestAgent GET method. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param virtual_machine_name: Name of the vm. - :type virtual_machine_name: str - :param name: Name of the GuestAgent. - :type name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: GuestAgent, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.GuestAgent - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.GuestAgent"] - 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'), - 'virtualMachineName': self._serialize.url("virtual_machine_name", virtual_machine_name, 'str'), - 'name': self._serialize.url("name", 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('GuestAgent', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/guestAgents/{name}'} # type: ignore - - def _delete_initial( - self, - resource_group_name, # type: str - virtual_machine_name, # type: str - name, # type: str - **kwargs # type: Any - ): - # type: (...) -> None - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "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'), - 'virtualMachineName': self._serialize.url("virtual_machine_name", virtual_machine_name, 'str'), - 'name': self._serialize.url("name", name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.delete(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - 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/virtualMachines/{virtualMachineName}/guestAgents/{name}'} # type: ignore - - def begin_delete( - self, - resource_group_name, # type: str - virtual_machine_name, # type: str - name, # type: str - **kwargs # type: Any - ): - # type: (...) -> LROPoller[None] - """Deletes an GuestAgent. - - Implements GuestAgent DELETE method. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param virtual_machine_name: Name of the vm. - :type virtual_machine_name: str - :param name: Name of the GuestAgent. - :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: 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, - virtual_machine_name=virtual_machine_name, - name=name, - cls=lambda x,y,z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - if cls: - return cls(pipeline_response, None, {}) - - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'virtualMachineName': self._serialize.url("virtual_machine_name", virtual_machine_name, 'str'), - 'name': self._serialize.url("name", 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/virtualMachines/{virtualMachineName}/guestAgents/{name}'} # type: ignore - - def list_by_vm( - self, - resource_group_name, # type: str - virtual_machine_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> Iterable["_models.GuestAgentList"] - """Implements GET GuestAgent in a vm. - - Returns the list of GuestAgent of the given vm. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param virtual_machine_name: Name of the vm. - :type virtual_machine_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either GuestAgentList or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure_arc_vmware_management_service_api.models.GuestAgentList] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.GuestAgentList"] - 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_vm.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'), - 'virtualMachineName': self._serialize.url("virtual_machine_name", virtual_machine_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('GuestAgentList', 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_vm.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/guestAgents'} # type: ignore diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_guest_agents_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_guest_agents_operations.py index ffd467c188e..2ac4eed5b1b 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_guest_agents_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_guest_agents_operations.py @@ -41,7 +41,7 @@ def build_create_request_initial( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', None) # type: Optional[str] accept = "application/json" @@ -83,7 +83,7 @@ def build_get_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str accept = "application/json" # Construct URL @@ -122,7 +122,7 @@ def build_delete_request_initial( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str accept = "application/json" # Construct URL @@ -160,7 +160,7 @@ def build_list_by_vm_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str accept = "application/json" # Construct URL @@ -227,7 +227,7 @@ def _create_initial( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -307,7 +307,7 @@ def begin_create( :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.connectedvmware.models.GuestAgent] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.GuestAgent"] @@ -381,7 +381,7 @@ def get( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_get_request( @@ -431,7 +431,7 @@ def _delete_initial( # pylint: disable=inconsistent-return-statements } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_delete_request_initial( @@ -493,7 +493,7 @@ def begin_delete( # pylint: disable=inconsistent-return-statements :rtype: ~azure.core.polling.LROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( @@ -552,7 +552,7 @@ def list_by_vm( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.GuestAgentList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.GuestAgentList"] error_map = { diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_hosts_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_hosts_operations.py index 06b1f9408a8..dbfb98387aa 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_hosts_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_hosts_operations.py @@ -40,7 +40,7 @@ def build_create_request_initial( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', None) # type: Optional[str] accept = "application/json" @@ -80,7 +80,7 @@ def build_get_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str accept = "application/json" # Construct URL @@ -117,7 +117,7 @@ def build_update_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', None) # type: Optional[str] accept = "application/json" @@ -157,7 +157,7 @@ def build_delete_request_initial( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str force = kwargs.pop('force', None) # type: Optional[bool] accept = "application/json" @@ -195,7 +195,7 @@ def build_list_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str accept = "application/json" # Construct URL @@ -229,7 +229,7 @@ def build_list_by_resource_group_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str accept = "application/json" # Construct URL @@ -294,7 +294,7 @@ def _create_initial( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -370,7 +370,7 @@ def begin_create( :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.connectedvmware.models.Host] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.Host"] @@ -440,7 +440,7 @@ def get( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_get_request( @@ -505,7 +505,7 @@ def update( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -561,7 +561,7 @@ def _delete_initial( # pylint: disable=inconsistent-return-statements } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_delete_request_initial( @@ -623,7 +623,7 @@ def begin_delete( # pylint: disable=inconsistent-return-statements :rtype: ~azure.core.polling.LROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( @@ -676,7 +676,7 @@ def list( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.HostsList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.HostsList"] error_map = { @@ -754,7 +754,7 @@ def list_by_resource_group( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.HostsList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.HostsList"] error_map = { diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_hybrid_identity_metadata_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_hybrid_identity_metadata_operations.py index 5d5794ea1eb..c17249f69de 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_hybrid_identity_metadata_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_hybrid_identity_metadata_operations.py @@ -39,7 +39,7 @@ def build_create_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', None) # type: Optional[str] accept = "application/json" @@ -81,7 +81,7 @@ def build_get_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str accept = "application/json" # Construct URL @@ -120,7 +120,7 @@ def build_delete_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str accept = "application/json" # Construct URL @@ -158,7 +158,7 @@ def build_list_by_vm_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str accept = "application/json" # Construct URL @@ -243,7 +243,7 @@ def create( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -316,7 +316,7 @@ def get( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_get_request( @@ -382,7 +382,7 @@ def delete( # pylint: disable=inconsistent-return-statements } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_delete_request( @@ -437,7 +437,7 @@ def list_by_vm( ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.HybridIdentityMetadataList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.HybridIdentityMetadataList"] error_map = { diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_inventory_items_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_inventory_items_operations.py index 3ba1872bd55..965f643572e 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_inventory_items_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_inventory_items_operations.py @@ -39,7 +39,7 @@ def build_create_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', None) # type: Optional[str] accept = "application/json" @@ -81,7 +81,7 @@ def build_get_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str accept = "application/json" # Construct URL @@ -120,7 +120,7 @@ def build_delete_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str accept = "application/json" # Construct URL @@ -158,7 +158,7 @@ def build_list_by_v_center_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str accept = "application/json" # Construct URL @@ -243,7 +243,7 @@ def create( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -316,7 +316,7 @@ def get( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_get_request( @@ -382,7 +382,7 @@ def delete( # pylint: disable=inconsistent-return-statements } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_delete_request( @@ -435,7 +435,7 @@ def list_by_v_center( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.InventoryItemsList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.InventoryItemsList"] error_map = { 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 cab4b527e3c..6fe83889b92 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 @@ -41,7 +41,7 @@ def build_create_or_update_request_initial( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', None) # type: Optional[str] accept = "application/json" @@ -83,7 +83,7 @@ def build_update_request_initial( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', None) # type: Optional[str] accept = "application/json" @@ -125,7 +125,7 @@ def build_delete_request_initial( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str accept = "application/json" # Construct URL @@ -164,7 +164,7 @@ def build_get_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str accept = "application/json" # Construct URL @@ -202,7 +202,7 @@ def build_list_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str expand = kwargs.pop('expand', None) # type: Optional[str] accept = "application/json" @@ -272,7 +272,7 @@ def _create_or_update_initial( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] _json = self._serialize.body(extension_parameters, 'MachineExtension') @@ -348,7 +348,7 @@ def begin_create_or_update( :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.connectedvmware.models.MachineExtension] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.MachineExtension"] @@ -407,7 +407,7 @@ def _update_initial( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] _json = self._serialize.body(extension_parameters, 'MachineExtensionUpdate') @@ -483,7 +483,7 @@ def begin_update( :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.connectedvmware.models.MachineExtension] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.MachineExtension"] @@ -541,7 +541,7 @@ def _delete_initial( # pylint: disable=inconsistent-return-statements } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_delete_request_initial( @@ -601,7 +601,7 @@ def begin_delete( # pylint: disable=inconsistent-return-statements :rtype: ~azure.core.polling.LROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( @@ -667,7 +667,7 @@ def get( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_get_request( @@ -727,7 +727,7 @@ def list( ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.MachineExtensionsListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.MachineExtensionsListResult"] error_map = { diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_operations.py index 4658de28228..9a1758541bc 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_operations.py @@ -35,7 +35,7 @@ def build_list_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str accept = "application/json" # Construct URL @@ -93,7 +93,7 @@ def list( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.OperationsList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationsList"] error_map = { 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 3db59b98fd4..e176a00afd8 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 @@ -40,7 +40,7 @@ def build_create_request_initial( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', None) # type: Optional[str] accept = "application/json" @@ -80,7 +80,7 @@ def build_get_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str accept = "application/json" # Construct URL @@ -117,7 +117,7 @@ def build_update_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', None) # type: Optional[str] accept = "application/json" @@ -157,7 +157,7 @@ def build_delete_request_initial( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str force = kwargs.pop('force', None) # type: Optional[bool] accept = "application/json" @@ -195,7 +195,7 @@ def build_list_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str accept = "application/json" # Construct URL @@ -229,7 +229,7 @@ def build_list_by_resource_group_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str accept = "application/json" # Construct URL @@ -294,7 +294,7 @@ def _create_initial( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -371,7 +371,7 @@ def begin_create( :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.connectedvmware.models.ResourcePool] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.ResourcePool"] @@ -441,7 +441,7 @@ def get( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_get_request( @@ -506,7 +506,7 @@ def update( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -562,7 +562,7 @@ def _delete_initial( # pylint: disable=inconsistent-return-statements } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_delete_request_initial( @@ -624,7 +624,7 @@ def begin_delete( # pylint: disable=inconsistent-return-statements :rtype: ~azure.core.polling.LROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( @@ -677,7 +677,7 @@ def list( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.ResourcePoolsList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.ResourcePoolsList"] error_map = { @@ -755,7 +755,7 @@ def list_by_resource_group( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.ResourcePoolsList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.ResourcePoolsList"] error_map = { 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 a5d19e22342..71418b5f965 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_vcenters_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_vcenters_operations.py @@ -40,7 +40,7 @@ def build_create_request_initial( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', None) # type: Optional[str] accept = "application/json" @@ -80,7 +80,7 @@ def build_get_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str accept = "application/json" # Construct URL @@ -117,7 +117,7 @@ def build_update_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', None) # type: Optional[str] accept = "application/json" @@ -157,7 +157,7 @@ def build_delete_request_initial( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str force = kwargs.pop('force', None) # type: Optional[bool] accept = "application/json" @@ -195,7 +195,7 @@ def build_list_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str accept = "application/json" # Construct URL @@ -229,7 +229,7 @@ def build_list_by_resource_group_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str accept = "application/json" # Construct URL @@ -294,7 +294,7 @@ def _create_initial( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -370,7 +370,7 @@ def begin_create( :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.connectedvmware.models.VCenter] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.VCenter"] @@ -440,7 +440,7 @@ def get( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_get_request( @@ -505,7 +505,7 @@ def update( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -561,7 +561,7 @@ def _delete_initial( # pylint: disable=inconsistent-return-statements } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_delete_request_initial( @@ -623,7 +623,7 @@ def begin_delete( # pylint: disable=inconsistent-return-statements :rtype: ~azure.core.polling.LROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( @@ -676,7 +676,7 @@ def list( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.VCentersList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.VCentersList"] error_map = { @@ -754,7 +754,7 @@ def list_by_resource_group( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.VCentersList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.VCentersList"] error_map = { 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 b3bae1f2bc2..41775a9c43a 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 @@ -40,7 +40,7 @@ def build_create_request_initial( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', None) # type: Optional[str] accept = "application/json" @@ -80,7 +80,7 @@ def build_get_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str accept = "application/json" # Construct URL @@ -117,7 +117,7 @@ def build_update_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', None) # type: Optional[str] accept = "application/json" @@ -157,7 +157,7 @@ def build_delete_request_initial( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str force = kwargs.pop('force', None) # type: Optional[bool] accept = "application/json" @@ -195,7 +195,7 @@ def build_list_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str accept = "application/json" # Construct URL @@ -229,7 +229,7 @@ def build_list_by_resource_group_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str accept = "application/json" # Construct URL @@ -294,7 +294,7 @@ def _create_initial( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -372,7 +372,7 @@ def begin_create( ~azure.core.polling.LROPoller[~azure.mgmt.connectedvmware.models.VirtualMachineTemplate] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineTemplate"] @@ -442,7 +442,7 @@ def get( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_get_request( @@ -507,7 +507,7 @@ def update( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -563,7 +563,7 @@ def _delete_initial( # pylint: disable=inconsistent-return-statements } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_delete_request_initial( @@ -625,7 +625,7 @@ def begin_delete( # pylint: disable=inconsistent-return-statements :rtype: ~azure.core.polling.LROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( @@ -680,7 +680,7 @@ def list( ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.VirtualMachineTemplatesList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineTemplatesList"] error_map = { @@ -760,7 +760,7 @@ def list_by_resource_group( ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.VirtualMachineTemplatesList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineTemplatesList"] error_map = { 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 d7c4b30ee32..10b31232a8d 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 @@ -33,6 +33,83 @@ _SERIALIZER.client_side_validation = False # fmt: off +def build_assess_patches_request_initial( + subscription_id, # type: str + resource_group_name, # type: str + name, # type: str + **kwargs # type: Any +): + # type: (...) -> HttpRequest + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{name}/assessPatches") # pylint: disable=line-too-long + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), + "name": _SERIALIZER.url("name", name, 'str'), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=_url, + params=_query_parameters, + headers=_header_parameters, + **kwargs + ) + + +def build_install_patches_request_initial( + subscription_id, # type: str + resource_group_name, # type: str + name, # type: str + **kwargs # type: Any +): + # type: (...) -> HttpRequest + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str + content_type = kwargs.pop('content_type', None) # type: Optional[str] + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{name}/installPatches") # pylint: disable=line-too-long + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str'), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str'), + "name": _SERIALIZER.url("name", name, 'str'), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=_url, + params=_query_parameters, + headers=_header_parameters, + **kwargs + ) + + def build_create_request_initial( subscription_id, # type: str resource_group_name, # type: str @@ -40,7 +117,7 @@ def build_create_request_initial( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', None) # type: Optional[str] accept = "application/json" @@ -80,7 +157,7 @@ def build_get_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str accept = "application/json" # Construct URL @@ -117,7 +194,7 @@ def build_update_request_initial( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', None) # type: Optional[str] accept = "application/json" @@ -157,8 +234,9 @@ def build_delete_request_initial( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str force = kwargs.pop('force', None) # type: Optional[bool] + retain = kwargs.pop('retain', None) # type: Optional[bool] accept = "application/json" # Construct URL @@ -176,6 +254,8 @@ def build_delete_request_initial( _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') if force is not None: _query_parameters['force'] = _SERIALIZER.query("force", force, 'bool') + if retain is not None: + _query_parameters['retain'] = _SERIALIZER.query("retain", retain, 'bool') # Construct headers _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] @@ -197,7 +277,7 @@ def build_stop_request_initial( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', None) # type: Optional[str] accept = "application/json" @@ -237,7 +317,7 @@ def build_start_request_initial( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str accept = "application/json" # Construct URL @@ -274,7 +354,7 @@ def build_restart_request_initial( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str accept = "application/json" # Construct URL @@ -309,7 +389,7 @@ def build_list_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str accept = "application/json" # Construct URL @@ -343,7 +423,7 @@ def build_list_by_resource_group_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str accept = "application/json" # Construct URL @@ -394,6 +474,252 @@ def __init__(self, client, config, serializer, deserializer): self._deserialize = deserializer self._config = config + def _assess_patches_initial( + self, + resource_group_name, # type: str + name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Optional["_models.VirtualMachineAssessPatchesResult"] + cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.VirtualMachineAssessPatchesResult"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str + + + request = build_assess_patches_request_initial( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + name=name, + api_version=api_version, + template_url=self._assess_patches_initial.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('VirtualMachineAssessPatchesResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + _assess_patches_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{name}/assessPatches"} # type: ignore + + + @distributed_trace + def begin_assess_patches( + self, + resource_group_name, # type: str + name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.VirtualMachineAssessPatchesResult"] + """The operation to assess patches on a vSphere VMware machine identity in Azure. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param name: The name of the vSphere VMware machine. + :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: 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 VirtualMachineAssessPatchesResult or the + result of cls(response) + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.connectedvmware.models.VirtualMachineAssessPatchesResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineAssessPatchesResult"] + 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._assess_patches_initial( + resource_group_name=resource_group_name, + name=name, + api_version=api_version, + cls=lambda x,y,z: x, + **kwargs + ) + kwargs.pop('error_map', None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = self._deserialize('VirtualMachineAssessPatchesResult', pipeline_response) + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + + begin_assess_patches.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{name}/assessPatches"} # type: ignore + + def _install_patches_initial( + self, + resource_group_name, # type: str + name, # type: str + install_patches_input, # type: "_models.VirtualMachineInstallPatchesParameters" + **kwargs # type: Any + ): + # type: (...) -> Optional["_models.VirtualMachineInstallPatchesResult"] + cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.VirtualMachineInstallPatchesResult"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + + _json = self._serialize.body(install_patches_input, 'VirtualMachineInstallPatchesParameters') + + request = build_install_patches_request_initial( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + name=name, + api_version=api_version, + content_type=content_type, + json=_json, + template_url=self._install_patches_initial.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('VirtualMachineInstallPatchesResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + _install_patches_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{name}/installPatches"} # type: ignore + + + @distributed_trace + def begin_install_patches( + self, + resource_group_name, # type: str + name, # type: str + install_patches_input, # type: "_models.VirtualMachineInstallPatchesParameters" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.VirtualMachineInstallPatchesResult"] + """The operation to install patches on a vSphere VMware machine identity in Azure. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param name: The name of the vSphere VMware machine. + :type name: str + :param install_patches_input: Input for InstallPatches as directly received by the API. + :type install_patches_input: + ~azure.mgmt.connectedvmware.models.VirtualMachineInstallPatchesParameters + :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 VirtualMachineInstallPatchesResult or the + result of cls(response) + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.connectedvmware.models.VirtualMachineInstallPatchesResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineInstallPatchesResult"] + 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._install_patches_initial( + resource_group_name=resource_group_name, + name=name, + install_patches_input=install_patches_input, + api_version=api_version, + content_type=content_type, + cls=lambda x,y,z: x, + **kwargs + ) + kwargs.pop('error_map', None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = self._deserialize('VirtualMachineInstallPatchesResult', pipeline_response) + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + + begin_install_patches.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{name}/installPatches"} # type: ignore + def _create_initial( self, resource_group_name, # type: str @@ -408,7 +734,7 @@ def _create_initial( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -485,7 +811,7 @@ def begin_create( :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.connectedvmware.models.VirtualMachine] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] @@ -555,7 +881,7 @@ def get( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_get_request( @@ -604,7 +930,7 @@ def _update_initial( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -682,7 +1008,7 @@ def begin_update( :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.connectedvmware.models.VirtualMachine] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] @@ -730,6 +1056,7 @@ def _delete_initial( # pylint: disable=inconsistent-return-statements resource_group_name, # type: str virtual_machine_name, # type: str force=None, # type: Optional[bool] + retain=None, # type: Optional[bool] **kwargs # type: Any ): # type: (...) -> None @@ -739,7 +1066,7 @@ def _delete_initial( # pylint: disable=inconsistent-return-statements } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_delete_request_initial( @@ -748,6 +1075,7 @@ def _delete_initial( # pylint: disable=inconsistent-return-statements virtual_machine_name=virtual_machine_name, api_version=api_version, force=force, + retain=retain, template_url=self._delete_initial.metadata['url'], ) request = _convert_request(request) @@ -776,6 +1104,7 @@ def begin_delete( # pylint: disable=inconsistent-return-statements resource_group_name, # type: str virtual_machine_name, # type: str force=None, # type: Optional[bool] + retain=None, # type: Optional[bool] **kwargs # type: Any ): # type: (...) -> LROPoller[None] @@ -789,6 +1118,8 @@ def begin_delete( # pylint: disable=inconsistent-return-statements :type virtual_machine_name: str :param force: Whether force delete was specified. :type force: bool + :param retain: Whether to just disable the VM from azure and retain the VM in the VMM. + :type retain: 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 @@ -801,7 +1132,7 @@ def begin_delete( # pylint: disable=inconsistent-return-statements :rtype: ~azure.core.polling.LROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( @@ -814,6 +1145,7 @@ def begin_delete( # pylint: disable=inconsistent-return-statements resource_group_name=resource_group_name, virtual_machine_name=virtual_machine_name, force=force, + retain=retain, api_version=api_version, cls=lambda x,y,z: x, **kwargs @@ -853,7 +1185,7 @@ def _stop_initial( # pylint: disable=inconsistent-return-statements } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -921,7 +1253,7 @@ def begin_stop( # pylint: disable=inconsistent-return-statements :rtype: ~azure.core.polling.LROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] @@ -974,7 +1306,7 @@ def _start_initial( # pylint: disable=inconsistent-return-statements } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_start_request_initial( @@ -1032,7 +1364,7 @@ def begin_start( # pylint: disable=inconsistent-return-statements :rtype: ~azure.core.polling.LROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( @@ -1082,7 +1414,7 @@ def _restart_initial( # pylint: disable=inconsistent-return-statements } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_restart_request_initial( @@ -1140,7 +1472,7 @@ def begin_restart( # pylint: disable=inconsistent-return-statements :rtype: ~azure.core.polling.LROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( @@ -1192,7 +1524,7 @@ def list( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.VirtualMachinesList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachinesList"] error_map = { @@ -1270,7 +1602,7 @@ def list_by_resource_group( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.VirtualMachinesList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachinesList"] error_map = { 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 8109887988a..2ec2f35dbb2 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 @@ -40,7 +40,7 @@ def build_create_request_initial( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', None) # type: Optional[str] accept = "application/json" @@ -80,7 +80,7 @@ def build_get_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str accept = "application/json" # Construct URL @@ -117,7 +117,7 @@ def build_update_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', None) # type: Optional[str] accept = "application/json" @@ -157,7 +157,7 @@ def build_delete_request_initial( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str force = kwargs.pop('force', None) # type: Optional[bool] accept = "application/json" @@ -195,7 +195,7 @@ def build_list_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str accept = "application/json" # Construct URL @@ -229,7 +229,7 @@ def build_list_by_resource_group_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str accept = "application/json" # Construct URL @@ -294,7 +294,7 @@ def _create_initial( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -371,7 +371,7 @@ def begin_create( :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.connectedvmware.models.VirtualNetwork] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualNetwork"] @@ -441,7 +441,7 @@ def get( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_get_request( @@ -506,7 +506,7 @@ def update( } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: @@ -562,7 +562,7 @@ def _delete_initial( # pylint: disable=inconsistent-return-statements } error_map.update(kwargs.pop('error_map', {})) - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str request = build_delete_request_initial( @@ -624,7 +624,7 @@ def begin_delete( # pylint: disable=inconsistent-return-statements :rtype: ~azure.core.polling.LROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( @@ -677,7 +677,7 @@ def list( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.VirtualNetworksList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualNetworksList"] error_map = { @@ -755,7 +755,7 @@ def list_by_resource_group( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.VirtualNetworksList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2020-10-01-preview") # type: str + api_version = kwargs.pop('api_version', "2022-01-10-preview") # type: str cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualNetworksList"] error_map = { diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/inventory_items_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/inventory_items_operations.py deleted file mode 100644 index 842d0385784..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/inventory_items_operations.py +++ /dev/null @@ -1,307 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class InventoryItemsOperations(object): - """InventoryItemsOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2020-10-01-preview". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2020-10-01-preview" - - self.config = config - - def create( - self, resource_group_name, vcenter_name, inventory_item_name, body=None, custom_headers=None, raw=False, **operation_config): - """Implements InventoryItem PUT method. - - Create Or Update InventoryItem. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param vcenter_name: Name of the vCenter. - :type vcenter_name: str - :param inventory_item_name: Name of the inventoryItem. - :type inventory_item_name: str - :param body: Request payload. - :type body: - ~azure.mgmt.vmware.v2020_10_01_preview.models.InventoryItem - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: InventoryItem or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.vmware.v2020_10_01_preview.models.InventoryItem or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = self.create.metadata['url'] - 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'), - 'vcenterName': self._serialize.url("vcenter_name", vcenter_name, 'str'), - 'inventoryItemName': self._serialize.url("inventory_item_name", inventory_item_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - if body is not None: - body_content = self._serialize.body(body, 'InventoryItem') - else: - body_content = None - - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('InventoryItem', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/vcenters/{vcenterName}/inventoryItems/{inventoryItemName}'} - - def get( - self, resource_group_name, vcenter_name, inventory_item_name, custom_headers=None, raw=False, **operation_config): - """Gets InventoryItem. - - Implements InventoryItem GET method. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param vcenter_name: Name of the vCenter. - :type vcenter_name: str - :param inventory_item_name: Name of the inventoryItem. - :type inventory_item_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: InventoryItem or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.vmware.v2020_10_01_preview.models.InventoryItem or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = self.get.metadata['url'] - 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'), - 'vcenterName': self._serialize.url("vcenter_name", vcenter_name, 'str'), - 'inventoryItemName': self._serialize.url("inventory_item_name", inventory_item_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('InventoryItem', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/vcenters/{vcenterName}/inventoryItems/{inventoryItemName}'} - - def delete( - self, resource_group_name, vcenter_name, inventory_item_name, custom_headers=None, raw=False, **operation_config): - """Deletes an inventoryItem. - - Implements inventoryItem DELETE method. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param vcenter_name: Name of the vCenter. - :type vcenter_name: str - :param inventory_item_name: Name of the inventoryItem. - :type inventory_item_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = self.delete.metadata['url'] - 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'), - 'vcenterName': self._serialize.url("vcenter_name", vcenter_name, 'str'), - 'inventoryItemName': self._serialize.url("inventory_item_name", inventory_item_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 204]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/vcenters/{vcenterName}/inventoryItems/{inventoryItemName}'} - - def list_by_vcenter( - self, resource_group_name, vcenter_name, custom_headers=None, raw=False, **operation_config): - """Implements GET inventoryItems in a vCenter. - - Returns the list of inventoryItems of the given vCenter. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param vcenter_name: Name of the vCenter. - :type vcenter_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of InventoryItem - :rtype: - ~azure.mgmt.vmware.v2020_10_01_preview.models.InventoryItemPaged[~azure.mgmt.vmware.v2020_10_01_preview.models.InventoryItem] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_by_vcenter.metadata['url'] - 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'), - 'vcenterName': self._serialize.url("vcenter_name", vcenter_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.InventoryItemPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.InventoryItemPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_by_vcenter.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/vcenters/{vcenterName}/inventoryItems'} diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/operations.py deleted file mode 100644 index ed72f2560d7..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/operations.py +++ /dev/null @@ -1,96 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class Operations(object): - """Operations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2020-10-01-preview". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2020-10-01-preview" - - self.config = config - - def list( - self, custom_headers=None, raw=False, **operation_config): - """Returns list of all operations. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of Operation - :rtype: - ~azure.mgmt.vmware.v2020_10_01_preview.models.OperationPaged[~azure.mgmt.vmware.v2020_10_01_preview.models.Operation] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list.metadata['url'] - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.OperationPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.OperationPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list.metadata = {'url': '/providers/Microsoft.ConnectedVMwarevSphere/operations'} 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 deleted file mode 100644 index 6235e24ce1c..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/resource_pools_operations.py +++ /dev/null @@ -1,518 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrest.polling import LROPoller, NoPolling -from msrestazure.polling.arm_polling import ARMPolling - -from .. import models - - -class ResourcePoolsOperations(object): - """ResourcePoolsOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2020-10-01-preview". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2020-10-01-preview" - - self.config = config - - - def _create_initial( - self, resource_group_name, resource_pool_name, body=None, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.create.metadata['url'] - 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'), - 'resourcePoolName': self._serialize.url("resource_pool_name", resource_pool_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - if body is not None: - body_content = self._serialize.body(body, 'ResourcePool') - else: - body_content = None - - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 201]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - header_dict = {} - - if response.status_code == 200: - deserialized = self._deserialize('ResourcePool', response) - header_dict = { - 'Azure-AsyncOperation': 'str', - } - if response.status_code == 201: - deserialized = self._deserialize('ResourcePool', response) - header_dict = { - 'Azure-AsyncOperation': 'str', - } - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - client_raw_response.add_headers(header_dict) - return client_raw_response - - return deserialized - - def create( - self, resource_group_name, resource_pool_name, body=None, custom_headers=None, raw=False, polling=True, **operation_config): - """Implements resourcePool PUT method. - - Create Or Update resourcePool. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param resource_pool_name: Name of the resourcePool. - :type resource_pool_name: str - :param body: Request payload. - :type body: ~azure.mgmt.vmware.v2020_10_01_preview.models.ResourcePool - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns ResourcePool or - ClientRawResponse if raw==True - :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.vmware.v2020_10_01_preview.models.ResourcePool] - or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.vmware.v2020_10_01_preview.models.ResourcePool]] - :raises: - :class:`ErrorResponseException` - """ - raw_result = self._create_initial( - resource_group_name=resource_group_name, - resource_pool_name=resource_pool_name, - body=body, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - header_dict = { - 'Azure-AsyncOperation': 'str', - } - deserialized = self._deserialize('ResourcePool', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - client_raw_response.add_headers(header_dict) - return client_raw_response - - return deserialized - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/{resourcePoolName}'} - - def get( - self, resource_group_name, resource_pool_name, custom_headers=None, raw=False, **operation_config): - """Gets a resourcePool. - - Implements resourcePool GET method. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param resource_pool_name: Name of the resourcePool. - :type resource_pool_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: ResourcePool or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.vmware.v2020_10_01_preview.models.ResourcePool or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = self.get.metadata['url'] - 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'), - 'resourcePoolName': self._serialize.url("resource_pool_name", resource_pool_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ResourcePool', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/{resourcePoolName}'} - - def update( - self, resource_group_name, resource_pool_name, body=None, custom_headers=None, raw=False, **operation_config): - """Updates a resourcePool. - - API to update certain properties of the resourcePool resource. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param resource_pool_name: Name of the resourcePool. - :type resource_pool_name: str - :param body: Resource properties to update. - :type body: - ~azure.mgmt.vmware.v2020_10_01_preview.models.ResourcePatch - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: ResourcePool or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.vmware.v2020_10_01_preview.models.ResourcePool or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = self.update.metadata['url'] - 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'), - 'resourcePoolName': self._serialize.url("resource_pool_name", resource_pool_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - if body is not None: - body_content = self._serialize.body(body, 'ResourcePatch') - else: - body_content = None - - # Construct and send request - request = self._client.patch(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ResourcePool', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/{resourcePoolName}'} - - - def _delete_initial( - self, resource_group_name, resource_pool_name, force=None, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.delete.metadata['url'] - 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'), - 'resourcePoolName': self._serialize.url("resource_pool_name", resource_pool_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - if force is not None: - query_parameters['force'] = self._serialize.query("force", force, 'bool') - - # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 202, 204]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - header_dict = { - 'Azure-AsyncOperation': 'str', - } - client_raw_response.add_headers(header_dict) - return client_raw_response - - def delete( - self, resource_group_name, resource_pool_name, force=None, custom_headers=None, raw=False, polling=True, **operation_config): - """Deletes an resourcePool. - - Implements resourcePool DELETE method. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param resource_pool_name: Name of the resourcePool. - :type resource_pool_name: str - :param force: Whether force delete was specified. - :type force: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns None or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] - :raises: - :class:`ErrorResponseException` - """ - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - resource_pool_name=resource_pool_name, - force=force, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - if raw: - client_raw_response = ClientRawResponse(None, response) - client_raw_response.add_headers({ - 'Azure-AsyncOperation': 'str', - }) - return client_raw_response - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/{resourcePoolName}'} - - def list( - self, custom_headers=None, raw=False, **operation_config): - """Implements GET resourcePools in a subscription. - - List of resourcePools in a subscription. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of ResourcePool - :rtype: - ~azure.mgmt.vmware.v2020_10_01_preview.models.ResourcePoolPaged[~azure.mgmt.vmware.v2020_10_01_preview.models.ResourcePool] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list.metadata['url'] - 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 = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.ResourcePoolPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.ResourcePoolPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedVMwarevSphere/resourcePools'} - - def list_by_resource_group( - self, resource_group_name, custom_headers=None, raw=False, **operation_config): - """Implements GET resourcePools in a resource group. - - List of resourcePools in a resource group. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of ResourcePool - :rtype: - ~azure.mgmt.vmware.v2020_10_01_preview.models.ResourcePoolPaged[~azure.mgmt.vmware.v2020_10_01_preview.models.ResourcePool] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_by_resource_group.metadata['url'] - 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 = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.ResourcePoolPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.ResourcePoolPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/resourcePools'} diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/vcenters_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/vcenters_operations.py deleted file mode 100644 index 13cea61aa9e..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/vcenters_operations.py +++ /dev/null @@ -1,518 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrest.polling import LROPoller, NoPolling -from msrestazure.polling.arm_polling import ARMPolling - -from .. import models - - -class VCentersOperations(object): - """VCentersOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2020-10-01-preview". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2020-10-01-preview" - - self.config = config - - - def _create_initial( - self, resource_group_name, vcenter_name, body=None, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.create.metadata['url'] - 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'), - 'vcenterName': self._serialize.url("vcenter_name", vcenter_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - if body is not None: - body_content = self._serialize.body(body, 'VCenter') - else: - body_content = None - - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 201]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - header_dict = {} - - if response.status_code == 200: - deserialized = self._deserialize('VCenter', response) - header_dict = { - 'Azure-AsyncOperation': 'str', - } - if response.status_code == 201: - deserialized = self._deserialize('VCenter', response) - header_dict = { - 'Azure-AsyncOperation': 'str', - } - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - client_raw_response.add_headers(header_dict) - return client_raw_response - - return deserialized - - def create( - self, resource_group_name, vcenter_name, body=None, custom_headers=None, raw=False, polling=True, **operation_config): - """Implements vCenter PUT method. - - Create Or Update vCenter. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param vcenter_name: Name of the vCenter. - :type vcenter_name: str - :param body: Request payload. - :type body: ~azure.mgmt.vmware.v2020_10_01_preview.models.VCenter - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns VCenter or - ClientRawResponse if raw==True - :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.vmware.v2020_10_01_preview.models.VCenter] - or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.vmware.v2020_10_01_preview.models.VCenter]] - :raises: - :class:`ErrorResponseException` - """ - raw_result = self._create_initial( - resource_group_name=resource_group_name, - vcenter_name=vcenter_name, - body=body, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - header_dict = { - 'Azure-AsyncOperation': 'str', - } - deserialized = self._deserialize('VCenter', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - client_raw_response.add_headers(header_dict) - return client_raw_response - - return deserialized - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/vcenters/{vcenterName}'} - - def get( - self, resource_group_name, vcenter_name, custom_headers=None, raw=False, **operation_config): - """Gets a vCenter. - - Implements vCenter GET method. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param vcenter_name: Name of the vCenter. - :type vcenter_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: VCenter or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.vmware.v2020_10_01_preview.models.VCenter or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = self.get.metadata['url'] - 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'), - 'vcenterName': self._serialize.url("vcenter_name", vcenter_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('VCenter', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/vcenters/{vcenterName}'} - - def update( - self, resource_group_name, vcenter_name, body=None, custom_headers=None, raw=False, **operation_config): - """Updates a vCenter. - - API to update certain properties of the vCenter resource. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param vcenter_name: Name of the vCenter. - :type vcenter_name: str - :param body: Resource properties to update. - :type body: - ~azure.mgmt.vmware.v2020_10_01_preview.models.ResourcePatch - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: VCenter or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.vmware.v2020_10_01_preview.models.VCenter or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = self.update.metadata['url'] - 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'), - 'vcenterName': self._serialize.url("vcenter_name", vcenter_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - if body is not None: - body_content = self._serialize.body(body, 'ResourcePatch') - else: - body_content = None - - # Construct and send request - request = self._client.patch(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('VCenter', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/vcenters/{vcenterName}'} - - - def _delete_initial( - self, resource_group_name, vcenter_name, force=None, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.delete.metadata['url'] - 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'), - 'vcenterName': self._serialize.url("vcenter_name", vcenter_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - if force is not None: - query_parameters['force'] = self._serialize.query("force", force, 'bool') - - # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 202, 204]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - header_dict = { - 'Azure-AsyncOperation': 'str', - } - client_raw_response.add_headers(header_dict) - return client_raw_response - - def delete( - self, resource_group_name, vcenter_name, force=None, custom_headers=None, raw=False, polling=True, **operation_config): - """Deletes an vCenter. - - Implements vCenter DELETE method. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param vcenter_name: Name of the vCenter. - :type vcenter_name: str - :param force: Whether force delete was specified. - :type force: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns None or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] - :raises: - :class:`ErrorResponseException` - """ - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - vcenter_name=vcenter_name, - force=force, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - if raw: - client_raw_response = ClientRawResponse(None, response) - client_raw_response.add_headers({ - 'Azure-AsyncOperation': 'str', - }) - return client_raw_response - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/vcenters/{vcenterName}'} - - def list( - self, custom_headers=None, raw=False, **operation_config): - """Implements GET vCenters in a subscription. - - List of vCenters in a subscription. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of VCenter - :rtype: - ~azure.mgmt.vmware.v2020_10_01_preview.models.VCenterPaged[~azure.mgmt.vmware.v2020_10_01_preview.models.VCenter] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list.metadata['url'] - 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 = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.VCenterPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.VCenterPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedVMwarevSphere/vcenters'} - - def list_by_resource_group( - self, resource_group_name, custom_headers=None, raw=False, **operation_config): - """Implements GET vCenters in a resource group. - - List of vCenters in a resource group. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of VCenter - :rtype: - ~azure.mgmt.vmware.v2020_10_01_preview.models.VCenterPaged[~azure.mgmt.vmware.v2020_10_01_preview.models.VCenter] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_by_resource_group.metadata['url'] - 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 = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.VCenterPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.VCenterPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/vcenters'} 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 deleted file mode 100644 index 7d651a14cd6..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/virtual_machine_templates_operations.py +++ /dev/null @@ -1,526 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrest.polling import LROPoller, NoPolling -from msrestazure.polling.arm_polling import ARMPolling - -from .. import models - - -class VirtualMachineTemplatesOperations(object): - """VirtualMachineTemplatesOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2020-10-01-preview". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2020-10-01-preview" - - self.config = config - - - def _create_initial( - self, resource_group_name, virtual_machine_template_name, body=None, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.create.metadata['url'] - 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'), - 'virtualMachineTemplateName': self._serialize.url("virtual_machine_template_name", virtual_machine_template_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - if body is not None: - body_content = self._serialize.body(body, 'VirtualMachineTemplate') - else: - body_content = None - - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 201]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - header_dict = {} - - if response.status_code == 200: - deserialized = self._deserialize('VirtualMachineTemplate', response) - header_dict = { - 'Azure-AsyncOperation': 'str', - } - if response.status_code == 201: - deserialized = self._deserialize('VirtualMachineTemplate', response) - header_dict = { - 'Azure-AsyncOperation': 'str', - } - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - client_raw_response.add_headers(header_dict) - return client_raw_response - - return deserialized - - def create( - self, resource_group_name, virtual_machine_template_name, body=None, custom_headers=None, raw=False, polling=True, **operation_config): - """Implements virtual machine template PUT method. - - Create Or Update virtual machine template. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param virtual_machine_template_name: Name of the virtual machine - template resource. - :type virtual_machine_template_name: str - :param body: Request payload. - :type body: - ~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualMachineTemplate - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns VirtualMachineTemplate - or ClientRawResponse if raw==True - :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualMachineTemplate] - or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualMachineTemplate]] - :raises: - :class:`ErrorResponseException` - """ - raw_result = self._create_initial( - resource_group_name=resource_group_name, - virtual_machine_template_name=virtual_machine_template_name, - body=body, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - header_dict = { - 'Azure-AsyncOperation': 'str', - } - deserialized = self._deserialize('VirtualMachineTemplate', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - client_raw_response.add_headers(header_dict) - return client_raw_response - - return deserialized - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/{virtualMachineTemplateName}'} - - def get( - self, resource_group_name, virtual_machine_template_name, custom_headers=None, raw=False, **operation_config): - """Gets a virtual machine template. - - Implements virtual machine template GET method. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param virtual_machine_template_name: Name of the virtual machine - template resource. - :type virtual_machine_template_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: VirtualMachineTemplate or ClientRawResponse if raw=true - :rtype: - ~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualMachineTemplate - or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = self.get.metadata['url'] - 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'), - 'virtualMachineTemplateName': self._serialize.url("virtual_machine_template_name", virtual_machine_template_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('VirtualMachineTemplate', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/{virtualMachineTemplateName}'} - - def update( - self, resource_group_name, virtual_machine_template_name, body=None, custom_headers=None, raw=False, **operation_config): - """Updates a virtual machine template. - - API to update certain properties of the virtual machine template - resource. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param virtual_machine_template_name: Name of the virtual machine - template resource. - :type virtual_machine_template_name: str - :param body: Resource properties to update. - :type body: - ~azure.mgmt.vmware.v2020_10_01_preview.models.ResourcePatch - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: VirtualMachineTemplate or ClientRawResponse if raw=true - :rtype: - ~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualMachineTemplate - or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = self.update.metadata['url'] - 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'), - 'virtualMachineTemplateName': self._serialize.url("virtual_machine_template_name", virtual_machine_template_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - if body is not None: - body_content = self._serialize.body(body, 'ResourcePatch') - else: - body_content = None - - # Construct and send request - request = self._client.patch(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('VirtualMachineTemplate', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/{virtualMachineTemplateName}'} - - - def _delete_initial( - self, resource_group_name, virtual_machine_template_name, force=None, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.delete.metadata['url'] - 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'), - 'virtualMachineTemplateName': self._serialize.url("virtual_machine_template_name", virtual_machine_template_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - if force is not None: - query_parameters['force'] = self._serialize.query("force", force, 'bool') - - # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 202, 204]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - header_dict = { - 'Azure-AsyncOperation': 'str', - } - client_raw_response.add_headers(header_dict) - return client_raw_response - - def delete( - self, resource_group_name, virtual_machine_template_name, force=None, custom_headers=None, raw=False, polling=True, **operation_config): - """Deletes an virtual machine template. - - Implements virtual machine template DELETE method. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param virtual_machine_template_name: Name of the virtual machine - template resource. - :type virtual_machine_template_name: str - :param force: Whether force delete was specified. - :type force: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns None or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] - :raises: - :class:`ErrorResponseException` - """ - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - virtual_machine_template_name=virtual_machine_template_name, - force=force, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - if raw: - client_raw_response = ClientRawResponse(None, response) - client_raw_response.add_headers({ - 'Azure-AsyncOperation': 'str', - }) - return client_raw_response - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/{virtualMachineTemplateName}'} - - def list( - self, custom_headers=None, raw=False, **operation_config): - """Implements GET virtualMachineTemplates in a subscription. - - List of virtualMachineTemplates in a subscription. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of VirtualMachineTemplate - :rtype: - ~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualMachineTemplatePaged[~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualMachineTemplate] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list.metadata['url'] - 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 = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.VirtualMachineTemplatePaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.VirtualMachineTemplatePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates'} - - def list_by_resource_group( - self, resource_group_name, custom_headers=None, raw=False, **operation_config): - """Implements GET virtualMachineTemplates in a resource group. - - List of virtualMachineTemplates in a resource group. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of VirtualMachineTemplate - :rtype: - ~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualMachineTemplatePaged[~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualMachineTemplate] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_by_resource_group.metadata['url'] - 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 = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.VirtualMachineTemplatePaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.VirtualMachineTemplatePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates'} 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 deleted file mode 100644 index e6b55a7fc44..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/virtual_machines_operations.py +++ /dev/null @@ -1,837 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrest.polling import LROPoller, NoPolling -from msrestazure.polling.arm_polling import ARMPolling - -from .. import models - - -class VirtualMachinesOperations(object): - """VirtualMachinesOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2020-10-01-preview". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2020-10-01-preview" - - self.config = config - - - def _create_initial( - self, resource_group_name, virtual_machine_name, body=None, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.create.metadata['url'] - 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'), - 'virtualMachineName': self._serialize.url("virtual_machine_name", virtual_machine_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - if body is not None: - body_content = self._serialize.body(body, 'VirtualMachine') - else: - body_content = None - - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 201]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - header_dict = {} - - if response.status_code == 200: - deserialized = self._deserialize('VirtualMachine', response) - header_dict = { - 'Azure-AsyncOperation': 'str', - } - if response.status_code == 201: - deserialized = self._deserialize('VirtualMachine', response) - header_dict = { - 'Azure-AsyncOperation': 'str', - } - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - client_raw_response.add_headers(header_dict) - return client_raw_response - - return deserialized - - def create( - self, resource_group_name, virtual_machine_name, body=None, custom_headers=None, raw=False, polling=True, **operation_config): - """Implements virtual machine PUT method. - - Create Or Update virtual machine. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param virtual_machine_name: Name of the virtual machine resource. - :type virtual_machine_name: str - :param body: Request payload. - :type body: - ~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualMachine - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns VirtualMachine or - ClientRawResponse if raw==True - :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualMachine] - or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualMachine]] - :raises: - :class:`ErrorResponseException` - """ - raw_result = self._create_initial( - resource_group_name=resource_group_name, - virtual_machine_name=virtual_machine_name, - body=body, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - header_dict = { - 'Azure-AsyncOperation': 'str', - } - deserialized = self._deserialize('VirtualMachine', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - client_raw_response.add_headers(header_dict) - return client_raw_response - - return deserialized - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}'} - - def get( - self, resource_group_name, virtual_machine_name, custom_headers=None, raw=False, **operation_config): - """Gets a virtual machine. - - Implements virtual machine GET method. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param virtual_machine_name: Name of the virtual machine resource. - :type virtual_machine_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: VirtualMachine or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualMachine - or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = self.get.metadata['url'] - 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'), - 'virtualMachineName': self._serialize.url("virtual_machine_name", virtual_machine_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('VirtualMachine', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}'} - - - def _update_initial( - self, resource_group_name, virtual_machine_name, body=None, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.update.metadata['url'] - 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'), - 'virtualMachineName': self._serialize.url("virtual_machine_name", virtual_machine_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - if body is not None: - body_content = self._serialize.body(body, 'VirtualMachineUpdate') - else: - body_content = None - - # Construct and send request - request = self._client.patch(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 201]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - header_dict = {} - - if response.status_code == 200: - deserialized = self._deserialize('VirtualMachine', response) - header_dict = { - 'Azure-AsyncOperation': 'str', - } - if response.status_code == 201: - deserialized = self._deserialize('VirtualMachine', response) - header_dict = { - 'Azure-AsyncOperation': 'str', - } - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - client_raw_response.add_headers(header_dict) - return client_raw_response - - return deserialized - - def update( - self, resource_group_name, virtual_machine_name, body=None, custom_headers=None, raw=False, polling=True, **operation_config): - """Updates a virtual machine. - - API to update certain properties of the virtual machine resource. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param virtual_machine_name: Name of the virtual machine resource. - :type virtual_machine_name: str - :param body: Resource properties to update. - :type body: - ~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualMachineUpdate - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns VirtualMachine or - ClientRawResponse if raw==True - :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualMachine] - or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualMachine]] - :raises: - :class:`ErrorResponseException` - """ - raw_result = self._update_initial( - resource_group_name=resource_group_name, - virtual_machine_name=virtual_machine_name, - body=body, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - header_dict = { - 'Azure-AsyncOperation': 'str', - } - deserialized = self._deserialize('VirtualMachine', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - client_raw_response.add_headers(header_dict) - return client_raw_response - - return deserialized - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}'} - - - def _delete_initial( - self, resource_group_name, virtual_machine_name, force=None, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.delete.metadata['url'] - 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'), - 'virtualMachineName': self._serialize.url("virtual_machine_name", virtual_machine_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - if force is not None: - query_parameters['force'] = self._serialize.query("force", force, 'bool') - - # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 202, 204]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - header_dict = { - 'Azure-AsyncOperation': 'str', - } - client_raw_response.add_headers(header_dict) - return client_raw_response - - def delete( - self, resource_group_name, virtual_machine_name, force=None, custom_headers=None, raw=False, polling=True, **operation_config): - """Deletes an virtual machine. - - Implements virtual machine DELETE method. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param virtual_machine_name: Name of the virtual machine resource. - :type virtual_machine_name: str - :param force: Whether force delete was specified. - :type force: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns None or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] - :raises: - :class:`ErrorResponseException` - """ - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - virtual_machine_name=virtual_machine_name, - force=force, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - if raw: - client_raw_response = ClientRawResponse(None, response) - client_raw_response.add_headers({ - 'Azure-AsyncOperation': 'str', - }) - return client_raw_response - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}'} - - - def _stop_initial( - self, resource_group_name, virtual_machine_name, body=None, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.stop.metadata['url'] - 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'), - 'virtualMachineName': self._serialize.url("virtual_machine_name", virtual_machine_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - if body is not None: - body_content = self._serialize.body(body, 'StopVirtualMachineOptions') - else: - body_content = None - - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 202]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - header_dict = { - 'Azure-AsyncOperation': 'str', - } - client_raw_response.add_headers(header_dict) - return client_raw_response - - def stop( - self, resource_group_name, virtual_machine_name, body=None, custom_headers=None, raw=False, polling=True, **operation_config): - """Implements the operation to stop a virtual machine. - - Stop virtual machine. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param virtual_machine_name: Name of the virtual machine resource. - :type virtual_machine_name: str - :param body: Virtualmachine stop action payload. - :type body: - ~azure.mgmt.vmware.v2020_10_01_preview.models.StopVirtualMachineOptions - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns None or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] - :raises: - :class:`ErrorResponseException` - """ - raw_result = self._stop_initial( - resource_group_name=resource_group_name, - virtual_machine_name=virtual_machine_name, - body=body, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - if raw: - client_raw_response = ClientRawResponse(None, response) - client_raw_response.add_headers({ - 'Azure-AsyncOperation': 'str', - }) - return client_raw_response - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - stop.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/stop'} - - - def _start_initial( - self, resource_group_name, virtual_machine_name, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.start.metadata['url'] - 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'), - 'virtualMachineName': self._serialize.url("virtual_machine_name", virtual_machine_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 202]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - header_dict = { - 'Azure-AsyncOperation': 'str', - } - client_raw_response.add_headers(header_dict) - return client_raw_response - - def start( - self, resource_group_name, virtual_machine_name, custom_headers=None, raw=False, polling=True, **operation_config): - """Implements the operation to start a virtual machine. - - Start virtual machine. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param virtual_machine_name: Name of the virtual machine resource. - :type virtual_machine_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns None or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] - :raises: - :class:`ErrorResponseException` - """ - raw_result = self._start_initial( - resource_group_name=resource_group_name, - virtual_machine_name=virtual_machine_name, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - if raw: - client_raw_response = ClientRawResponse(None, response) - client_raw_response.add_headers({ - 'Azure-AsyncOperation': 'str', - }) - return client_raw_response - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - start.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/start'} - - - def _restart_initial( - self, resource_group_name, virtual_machine_name, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.restart.metadata['url'] - 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'), - 'virtualMachineName': self._serialize.url("virtual_machine_name", virtual_machine_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 202]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - header_dict = { - 'Azure-AsyncOperation': 'str', - } - client_raw_response.add_headers(header_dict) - return client_raw_response - - def restart( - self, resource_group_name, virtual_machine_name, custom_headers=None, raw=False, polling=True, **operation_config): - """Implements the operation to restart a virtual machine. - - Restart virtual machine. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param virtual_machine_name: Name of the virtual machine resource. - :type virtual_machine_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns None or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] - :raises: - :class:`ErrorResponseException` - """ - raw_result = self._restart_initial( - resource_group_name=resource_group_name, - virtual_machine_name=virtual_machine_name, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - if raw: - client_raw_response = ClientRawResponse(None, response) - client_raw_response.add_headers({ - 'Azure-AsyncOperation': 'str', - }) - return client_raw_response - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - restart.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/restart'} - - def list( - self, custom_headers=None, raw=False, **operation_config): - """Implements GET virtualMachines in a subscription. - - List of virtualMachines in a subscription. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of VirtualMachine - :rtype: - ~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualMachinePaged[~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualMachine] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list.metadata['url'] - 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 = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.VirtualMachinePaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.VirtualMachinePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines'} - - def list_by_resource_group( - self, resource_group_name, custom_headers=None, raw=False, **operation_config): - """Implements GET virtualMachines in a resource group. - - List of virtualMachines in a resource group. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of VirtualMachine - :rtype: - ~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualMachinePaged[~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualMachine] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_by_resource_group.metadata['url'] - 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 = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.VirtualMachinePaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.VirtualMachinePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines'} 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 deleted file mode 100644 index d4dee904ed7..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/virtual_networks_operations.py +++ /dev/null @@ -1,519 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrest.polling import LROPoller, NoPolling -from msrestazure.polling.arm_polling import ARMPolling - -from .. import models - - -class VirtualNetworksOperations(object): - """VirtualNetworksOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2020-10-01-preview". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2020-10-01-preview" - - self.config = config - - - def _create_initial( - self, resource_group_name, virtual_network_name, body=None, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.create.metadata['url'] - 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'), - 'virtualNetworkName': self._serialize.url("virtual_network_name", virtual_network_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - if body is not None: - body_content = self._serialize.body(body, 'VirtualNetwork') - else: - body_content = None - - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 201]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - header_dict = {} - - if response.status_code == 200: - deserialized = self._deserialize('VirtualNetwork', response) - header_dict = { - 'Azure-AsyncOperation': 'str', - } - if response.status_code == 201: - deserialized = self._deserialize('VirtualNetwork', response) - header_dict = { - 'Azure-AsyncOperation': 'str', - } - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - client_raw_response.add_headers(header_dict) - return client_raw_response - - return deserialized - - def create( - self, resource_group_name, virtual_network_name, body=None, custom_headers=None, raw=False, polling=True, **operation_config): - """Implements virtual network PUT method. - - Create Or Update virtual network. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param virtual_network_name: Name of the virtual network resource. - :type virtual_network_name: str - :param body: Request payload. - :type body: - ~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualNetwork - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns VirtualNetwork or - ClientRawResponse if raw==True - :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualNetwork] - or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualNetwork]] - :raises: - :class:`ErrorResponseException` - """ - raw_result = self._create_initial( - resource_group_name=resource_group_name, - virtual_network_name=virtual_network_name, - body=body, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - header_dict = { - 'Azure-AsyncOperation': 'str', - } - deserialized = self._deserialize('VirtualNetwork', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - client_raw_response.add_headers(header_dict) - return client_raw_response - - return deserialized - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks/{virtualNetworkName}'} - - def get( - self, resource_group_name, virtual_network_name, custom_headers=None, raw=False, **operation_config): - """Gets a virtual network. - - Implements virtual network GET method. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param virtual_network_name: Name of the virtual network resource. - :type virtual_network_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: VirtualNetwork or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualNetwork - or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = self.get.metadata['url'] - 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'), - 'virtualNetworkName': self._serialize.url("virtual_network_name", virtual_network_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('VirtualNetwork', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks/{virtualNetworkName}'} - - def update( - self, resource_group_name, virtual_network_name, body=None, custom_headers=None, raw=False, **operation_config): - """Updates a virtual network. - - API to update certain properties of the virtual network resource. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param virtual_network_name: Name of the virtual network resource. - :type virtual_network_name: str - :param body: Resource properties to update. - :type body: - ~azure.mgmt.vmware.v2020_10_01_preview.models.ResourcePatch - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: VirtualNetwork or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualNetwork - or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = self.update.metadata['url'] - 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'), - 'virtualNetworkName': self._serialize.url("virtual_network_name", virtual_network_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - if body is not None: - body_content = self._serialize.body(body, 'ResourcePatch') - else: - body_content = None - - # Construct and send request - request = self._client.patch(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('VirtualNetwork', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks/{virtualNetworkName}'} - - - def _delete_initial( - self, resource_group_name, virtual_network_name, force=None, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.delete.metadata['url'] - 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'), - 'virtualNetworkName': self._serialize.url("virtual_network_name", virtual_network_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - if force is not None: - query_parameters['force'] = self._serialize.query("force", force, 'bool') - - # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 202, 204]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - header_dict = { - 'Azure-AsyncOperation': 'str', - } - client_raw_response.add_headers(header_dict) - return client_raw_response - - def delete( - self, resource_group_name, virtual_network_name, force=None, custom_headers=None, raw=False, polling=True, **operation_config): - """Deletes an virtual network. - - Implements virtual network DELETE method. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param virtual_network_name: Name of the virtual network resource. - :type virtual_network_name: str - :param force: Whether force delete was specified. - :type force: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns None or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] - :raises: - :class:`ErrorResponseException` - """ - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - virtual_network_name=virtual_network_name, - force=force, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - if raw: - client_raw_response = ClientRawResponse(None, response) - client_raw_response.add_headers({ - 'Azure-AsyncOperation': 'str', - }) - return client_raw_response - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks/{virtualNetworkName}'} - - def list( - self, custom_headers=None, raw=False, **operation_config): - """Implements GET virtualNetworks in a subscription. - - List of virtualNetworks in a subscription. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of VirtualNetwork - :rtype: - ~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualNetworkPaged[~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualNetwork] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list.metadata['url'] - 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 = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.VirtualNetworkPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.VirtualNetworkPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks'} - - def list_by_resource_group( - self, resource_group_name, custom_headers=None, raw=False, **operation_config): - """Implements GET virtualNetworks in a resource group. - - List of virtualNetworks in a resource group. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of VirtualNetwork - :rtype: - ~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualNetworkPaged[~azure.mgmt.vmware.v2020_10_01_preview.models.VirtualNetwork] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_by_resource_group.metadata['url'] - 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 = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.VirtualNetworkPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.VirtualNetworkPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks'} diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/version.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/version.py deleted file mode 100644 index affaef0c987..00000000000 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/version.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "1.0.0b1" - diff --git a/src/connectedvmware/setup.py b/src/connectedvmware/setup.py index 81f06d4c44f..923f4154a7d 100644 --- a/src/connectedvmware/setup.py +++ b/src/connectedvmware/setup.py @@ -19,7 +19,7 @@ # TODO: Confirm this is the right version number you want and it matches your # HISTORY.rst entry. -VERSION = '0.1.8' +VERSION = '0.1.9' # The full list of classifiers is available at # https://pypi.python.org/pypi?%3Aaction=list_classifiers