diff --git a/src/connectedvmware/HISTORY.rst b/src/connectedvmware/HISTORY.rst index 52d36797363..a2f2c4d9df3 100644 --- a/src/connectedvmware/HISTORY.rst +++ b/src/connectedvmware/HISTORY.rst @@ -13,6 +13,7 @@ Release History * Added delete-from-host flag for `vm delete` * Deprecated VM List option as VM Instance is a child resource of Machines. * Updated tests and helps accordingly. +* raising better exception types instead of CLIError 0.1.12 ++++++ diff --git a/src/connectedvmware/azext_connectedvmware/custom.py b/src/connectedvmware/azext_connectedvmware/custom.py index 6a8235127e0..14954331d60 100644 --- a/src/connectedvmware/azext_connectedvmware/custom.py +++ b/src/connectedvmware/azext_connectedvmware/custom.py @@ -7,8 +7,13 @@ from azure.cli.command_modules.acs._client_factory import get_resources_client from azure.cli.core.util import sdk_no_wait +from azure.cli.core.azclierror import ( + UnrecognizedArgumentError, + RequiredArgumentMissingError, + MutuallyExclusiveArgumentError, + InvalidArgumentValueError, +) from azure.core.exceptions import ResourceNotFoundError # type: ignore -from knack.util import CLIError from msrestazure.tools import is_valid_resource_id from .pwinput import pwinput @@ -277,8 +282,8 @@ def create_resource_pool( VMWARE_NAMESPACE, VCENTER_RESOURCE_TYPE, vcenter, - INVENTORY_ITEM_TYPE, - inventory_item, + child_type_1=INVENTORY_ITEM_TYPE, + child_name_1=inventory_item, ) resource_pool = ResourcePool( @@ -356,8 +361,8 @@ def create_cluster( VMWARE_NAMESPACE, VCENTER_RESOURCE_TYPE, vcenter, - INVENTORY_ITEM_TYPE, - inventory_item, + child_type_1=INVENTORY_ITEM_TYPE, + child_name_1=inventory_item, ) cluster = Cluster( @@ -435,8 +440,8 @@ def create_datastore( VMWARE_NAMESPACE, VCENTER_RESOURCE_TYPE, vcenter, - INVENTORY_ITEM_TYPE, - inventory_item, + child_type_1=INVENTORY_ITEM_TYPE, + child_name_1=inventory_item, ) datastore = Datastore( @@ -514,8 +519,8 @@ def create_host( VMWARE_NAMESPACE, VCENTER_RESOURCE_TYPE, vcenter, - INVENTORY_ITEM_TYPE, - inventory_item, + child_type_1=INVENTORY_ITEM_TYPE, + child_name_1=inventory_item, ) host = Host( @@ -593,8 +598,8 @@ def create_virtual_network( VMWARE_NAMESPACE, VCENTER_RESOURCE_TYPE, vcenter, - INVENTORY_ITEM_TYPE, - inventory_item, + child_type_1=INVENTORY_ITEM_TYPE, + child_name_1=inventory_item, ) virtual_network = VirtualNetwork( @@ -678,8 +683,8 @@ def create_vm_template( VMWARE_NAMESPACE, VCENTER_RESOURCE_TYPE, vcenter, - INVENTORY_ITEM_TYPE, - inventory_item, + child_type_1=INVENTORY_ITEM_TYPE, + child_name_1=inventory_item, ) vm_template = VirtualMachineTemplate( @@ -732,13 +737,15 @@ def get_hcrp_machine_id( resource_group_name, resource_name, ): - return get_resource_id( + machine_id = get_resource_id( cmd, resource_group_name, HCRP_NAMESPACE, MACHINES_RESOURCE_TYPE, resource_name, ) + assert machine_id is not None + return machine_id def create_vm( @@ -766,34 +773,34 @@ def create_vm( no_wait=False, ): if not any([vm_template, inventory_item, datastore]): - raise CLIError( + raise RequiredArgumentMissingError( "either vm_template, inventory_item id or datastore must be provided." ) if vm_template is not None or datastore is not None: if not any([resource_pool, cluster, host]): - raise CLIError( + raise RequiredArgumentMissingError( "either resource_pool, cluster or host must be provided while creating a VM." ) if len([i for i in [resource_pool, cluster, host] if i is not None]) > 1: - raise CLIError( + raise MutuallyExclusiveArgumentError( "at max one of resource_pool, cluster or host can be provided." ) if inventory_item is not None: if vm_template is not None: - raise CLIError( + raise MutuallyExclusiveArgumentError( "both vm_template and inventory_item id cannot be provided together." ) if any([resource_pool, cluster, host, datastore]): - raise CLIError( + raise MutuallyExclusiveArgumentError( "Placement input cannot be provided together with inventory_item." ) if not is_valid_resource_id(inventory_item) and not vcenter: - raise CLIError( + raise RequiredArgumentMissingError( "Cannot determine inventory item ID. " + "vCenter name or ID is required when inventory item name is specified." ) @@ -861,9 +868,10 @@ def create_vm( VMWARE_NAMESPACE, VCENTER_RESOURCE_TYPE, vcenter, - INVENTORY_ITEM_TYPE, - inventory_item, + child_type_1=INVENTORY_ITEM_TYPE, + child_name_1=inventory_item, ) + assert inventory_item_id is not None vcenter_id = "/".join(inventory_item_id.rstrip("/").split("/")[:-2]) @@ -872,7 +880,7 @@ def create_vm( ) else: if vcenter is None: - raise CLIError("Missing parameter, provide vcenter name or id.") + raise RequiredArgumentMissingError("Missing parameter, provide vcenter name or id.") vcenter_id = get_resource_id( cmd, resource_group_name, VMWARE_NAMESPACE, VCENTER_RESOURCE_TYPE, vcenter @@ -945,6 +953,8 @@ def create_vm( infrastructure_profile=infrastructure_profile, ) + assert vcenter_id is not None + # The subscription of the vCenter can be different from the machine resource. # There was no straightforward way to change the subscription for vcenter client factory. # Hence using the generic get client. @@ -956,13 +966,13 @@ def create_vm( machine = None try: machine = machine_client.get(resource_group_name, resource_name) - if machine.kind != vcenter.kind: - raise CLIError( + if f"{machine.kind}".lower() != f"{vcenter.kind}".lower(): + raise InvalidArgumentValueError( "The existing Machine resource is not of the same kind as the vCenter. " + - f"Machine kind: {machine.kind}, vCenter kind: {vcenter.kind}" + f"Machine kind: '{machine.kind}', vCenter kind: '{vcenter.kind}'" ) if location is not None and machine.location != location: - raise CLIError( + raise InvalidArgumentValueError( "The location of the existing Machine cannot be updated. " + "Either specify the existing location or keep the location unspecified. " + f"Existing location: {machine.location}, Provided location: {location}" @@ -974,7 +984,7 @@ def create_vm( machine = machine_client.update(resource_group_name, resource_name, m) except ResourceNotFoundError as e: if location is None: - raise CLIError( + raise RequiredArgumentMissingError( "The parent Machine resource does not exist, " + "location is required while creating a new machine." ) from e @@ -1024,7 +1034,7 @@ def update_vm( memory_size is None and tags is None ): - raise CLIError("No inputs were given to update the vm.") + raise RequiredArgumentMissingError("No inputs were given to update the vm.") if ( num_CPUs is not None or @@ -1037,6 +1047,9 @@ def update_vm( num_cores_per_socket=num_cores_per_socket, ) + if hardware_profile is None: + return client.get(machine_id) + vm_update = VirtualMachineInstanceUpdate( hardware_profile=hardware_profile, ) @@ -1062,7 +1075,7 @@ def delete_vm( ): if retain and delete_from_host: - raise CLIError( + raise MutuallyExclusiveArgumentError( "Arguments --retain and --delete-from-host cannot be used together." + "VM is retained in VMWare by default, it is deleted when --delete-from-host is provided." ) @@ -1077,7 +1090,7 @@ def delete_vm( if no_wait and delete_machine: if delete_from_host: - raise CLIError( + raise MutuallyExclusiveArgumentError( "Cannot delete VMWare VM from host when --no-wait and --delete-machine is provided." ) machine_client.delete(resource_group_name, resource_name) @@ -1219,7 +1232,7 @@ def get_network_interfaces( elif key == GATEWAY: ip_settings.gateway = value.split(GATEWAY_SEPERATOR) else: - raise CLIError( + raise UnrecognizedArgumentError( 'Invalid parameter: {name} specified for nic.'.format(name=key) ) @@ -1250,7 +1263,7 @@ def get_disks(input_disks): elif key == UNIT_NUMBER: disk.unit_number = value else: - raise CLIError( + raise UnrecognizedArgumentError( 'Invalid parameter: {name} specified for disk.'.format(name=key) ) disks.append(disk) @@ -1339,7 +1352,7 @@ def update_nic( """ if nic_name is None and device_key is None: - raise CLIError( + raise RequiredArgumentMissingError( "Either nic name or device key must be specified to update the nic." ) @@ -1386,7 +1399,7 @@ def update_nic( nic.name is not None and nic.name != nic_name ) or (device_key is not None and nic.device_key != device_key): - raise CLIError( + raise InvalidArgumentValueError( "Incorrect nic-name and device-key combination, Expected " + "nic-name: " + str(nic.name) + @@ -1406,7 +1419,7 @@ def update_nic( nics_update.append(nic_update) if not nic_found: - raise CLIError("Given nic is not present in the virtual machine.") + raise InvalidArgumentValueError("Given nic is not present in the virtual machine.") network_profile = NetworkProfileUpdate(network_interfaces=nics_update) vm_update = VirtualMachineInstanceUpdate(network_profile=network_profile) @@ -1513,7 +1526,7 @@ def delete_nics( if nics_to_delete[nic_name]: not_found_nics = not_found_nics + nic_name + ", " if not_found_nics != "": - raise CLIError( + raise InvalidArgumentValueError( "Nics with name " + not_found_nics + 'not present in the given virtual machine.' @@ -1603,7 +1616,7 @@ def update_disk( """ if disk_name is None and device_key is None: - raise CLIError( + raise RequiredArgumentMissingError( "Either disk name or device key must be specified to update the disk." ) @@ -1638,7 +1651,7 @@ def update_disk( disk.name is not None and disk.name != disk_name ) or (device_key is not None and disk.device_key != device_key): - raise CLIError( + raise InvalidArgumentValueError( "Incorrect disk-name and device-key combination, Expected " "disk-name: " + str(disk.name) + @@ -1662,7 +1675,7 @@ def update_disk( disks_update.append(disk_update) if not disk_found: - raise CLIError("The provided disk is not present in the virtual machine.") + raise InvalidArgumentValueError("The provided disk is not present in the virtual machine.") storage_profile = StorageProfileUpdate(disks=disks_update) vm_update = VirtualMachineInstanceUpdate(storage_profile=storage_profile) @@ -1764,7 +1777,7 @@ def delete_disks( if disks_to_delete[disk_name]: not_found_disks = not_found_disks + disk_name + ", " if not_found_disks != "": - raise CLIError( + raise InvalidArgumentValueError( "Disks with name " + not_found_disks + "not present in the given virtual machine." @@ -1936,8 +1949,8 @@ def connectedvmware_extension_create( HCRP_NAMESPACE, MACHINES_RESOURCE_TYPE, vm_name, - EXTENSIONS_RESOURCE_TYPE, - name + child_type_1=EXTENSIONS_RESOURCE_TYPE, + child_name_1=name ) machine_extension = MachineExtension( diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/_azure_arc_vmware_management_service_api.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/_azure_arc_vmware_management_service_api.py index eaef48205db..854f6ccf27a 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/_azure_arc_vmware_management_service_api.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/_azure_arc_vmware_management_service_api.py @@ -28,48 +28,43 @@ class AzureArcVMwareManagementServiceAPI(AzureArcVMwareManagementServiceAPIOpera """Self service experience for VMware. :ivar operations: Operations operations - :vartype operations: azure_arc_vmware_management_service_api.operations.Operations + :vartype operations: azure.mgmt.connectedvmware.operations.Operations :ivar virtual_machines: VirtualMachinesOperations operations - :vartype virtual_machines: - azure_arc_vmware_management_service_api.operations.VirtualMachinesOperations + :vartype virtual_machines: azure.mgmt.connectedvmware.operations.VirtualMachinesOperations :ivar resource_pools: ResourcePoolsOperations operations - :vartype resource_pools: - azure_arc_vmware_management_service_api.operations.ResourcePoolsOperations + :vartype resource_pools: azure.mgmt.connectedvmware.operations.ResourcePoolsOperations :ivar clusters: ClustersOperations operations - :vartype clusters: azure_arc_vmware_management_service_api.operations.ClustersOperations + :vartype clusters: azure.mgmt.connectedvmware.operations.ClustersOperations :ivar hosts: HostsOperations operations - :vartype hosts: azure_arc_vmware_management_service_api.operations.HostsOperations + :vartype hosts: azure.mgmt.connectedvmware.operations.HostsOperations :ivar datastores: DatastoresOperations operations - :vartype datastores: azure_arc_vmware_management_service_api.operations.DatastoresOperations + :vartype datastores: azure.mgmt.connectedvmware.operations.DatastoresOperations :ivar vcenters: VCentersOperations operations - :vartype vcenters: azure_arc_vmware_management_service_api.operations.VCentersOperations + :vartype vcenters: azure.mgmt.connectedvmware.operations.VCentersOperations :ivar virtual_machine_templates: VirtualMachineTemplatesOperations operations :vartype virtual_machine_templates: - azure_arc_vmware_management_service_api.operations.VirtualMachineTemplatesOperations + azure.mgmt.connectedvmware.operations.VirtualMachineTemplatesOperations :ivar virtual_networks: VirtualNetworksOperations operations - :vartype virtual_networks: - azure_arc_vmware_management_service_api.operations.VirtualNetworksOperations + :vartype virtual_networks: azure.mgmt.connectedvmware.operations.VirtualNetworksOperations :ivar inventory_items: InventoryItemsOperations operations - :vartype inventory_items: - azure_arc_vmware_management_service_api.operations.InventoryItemsOperations + :vartype inventory_items: azure.mgmt.connectedvmware.operations.InventoryItemsOperations :ivar hybrid_identity_metadata: HybridIdentityMetadataOperations operations :vartype hybrid_identity_metadata: - azure_arc_vmware_management_service_api.operations.HybridIdentityMetadataOperations + azure.mgmt.connectedvmware.operations.HybridIdentityMetadataOperations :ivar machine_extensions: MachineExtensionsOperations operations - :vartype machine_extensions: - azure_arc_vmware_management_service_api.operations.MachineExtensionsOperations + :vartype machine_extensions: azure.mgmt.connectedvmware.operations.MachineExtensionsOperations :ivar guest_agents: GuestAgentsOperations operations - :vartype guest_agents: azure_arc_vmware_management_service_api.operations.GuestAgentsOperations + :vartype guest_agents: azure.mgmt.connectedvmware.operations.GuestAgentsOperations :ivar virtual_machine_instances: VirtualMachineInstancesOperations operations :vartype virtual_machine_instances: - azure_arc_vmware_management_service_api.operations.VirtualMachineInstancesOperations + azure.mgmt.connectedvmware.operations.VirtualMachineInstancesOperations :ivar vm_instance_hybrid_identity_metadata: VmInstanceHybridIdentityMetadataOperations operations :vartype vm_instance_hybrid_identity_metadata: - azure_arc_vmware_management_service_api.operations.VmInstanceHybridIdentityMetadataOperations + azure.mgmt.connectedvmware.operations.VmInstanceHybridIdentityMetadataOperations :ivar vm_instance_guest_agents: VMInstanceGuestAgentsOperations operations :vartype vm_instance_guest_agents: - azure_arc_vmware_management_service_api.operations.VMInstanceGuestAgentsOperations + azure.mgmt.connectedvmware.operations.VMInstanceGuestAgentsOperations :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: The Subscription ID. diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/_patch.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/_patch.py index 74e48ecd07c..f99e77fef98 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/_patch.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/_patch.py @@ -28,4 +28,4 @@ # This file is used for handwritten extensions to the generated code. Example: # https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md def patch_sdk(): - pass \ No newline at end of file + pass diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/_azure_arc_vmware_management_service_api.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/_azure_arc_vmware_management_service_api.py index 1831c85c7c9..9e573f899fc 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/_azure_arc_vmware_management_service_api.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/_azure_arc_vmware_management_service_api.py @@ -26,50 +26,44 @@ class AzureArcVMwareManagementServiceAPI(AzureArcVMwareManagementServiceAPIOpera """Self service experience for VMware. :ivar operations: Operations operations - :vartype operations: azure_arc_vmware_management_service_api.aio.operations.Operations + :vartype operations: azure.mgmt.connectedvmware.aio.operations.Operations :ivar virtual_machines: VirtualMachinesOperations operations - :vartype virtual_machines: - azure_arc_vmware_management_service_api.aio.operations.VirtualMachinesOperations + :vartype virtual_machines: azure.mgmt.connectedvmware.aio.operations.VirtualMachinesOperations :ivar resource_pools: ResourcePoolsOperations operations - :vartype resource_pools: - azure_arc_vmware_management_service_api.aio.operations.ResourcePoolsOperations + :vartype resource_pools: azure.mgmt.connectedvmware.aio.operations.ResourcePoolsOperations :ivar clusters: ClustersOperations operations - :vartype clusters: azure_arc_vmware_management_service_api.aio.operations.ClustersOperations + :vartype clusters: azure.mgmt.connectedvmware.aio.operations.ClustersOperations :ivar hosts: HostsOperations operations - :vartype hosts: azure_arc_vmware_management_service_api.aio.operations.HostsOperations + :vartype hosts: azure.mgmt.connectedvmware.aio.operations.HostsOperations :ivar datastores: DatastoresOperations operations - :vartype datastores: - azure_arc_vmware_management_service_api.aio.operations.DatastoresOperations + :vartype datastores: azure.mgmt.connectedvmware.aio.operations.DatastoresOperations :ivar vcenters: VCentersOperations operations - :vartype vcenters: azure_arc_vmware_management_service_api.aio.operations.VCentersOperations + :vartype vcenters: azure.mgmt.connectedvmware.aio.operations.VCentersOperations :ivar virtual_machine_templates: VirtualMachineTemplatesOperations operations :vartype virtual_machine_templates: - azure_arc_vmware_management_service_api.aio.operations.VirtualMachineTemplatesOperations + azure.mgmt.connectedvmware.aio.operations.VirtualMachineTemplatesOperations :ivar virtual_networks: VirtualNetworksOperations operations - :vartype virtual_networks: - azure_arc_vmware_management_service_api.aio.operations.VirtualNetworksOperations + :vartype virtual_networks: azure.mgmt.connectedvmware.aio.operations.VirtualNetworksOperations :ivar inventory_items: InventoryItemsOperations operations - :vartype inventory_items: - azure_arc_vmware_management_service_api.aio.operations.InventoryItemsOperations + :vartype inventory_items: azure.mgmt.connectedvmware.aio.operations.InventoryItemsOperations :ivar hybrid_identity_metadata: HybridIdentityMetadataOperations operations :vartype hybrid_identity_metadata: - azure_arc_vmware_management_service_api.aio.operations.HybridIdentityMetadataOperations + azure.mgmt.connectedvmware.aio.operations.HybridIdentityMetadataOperations :ivar machine_extensions: MachineExtensionsOperations operations :vartype machine_extensions: - azure_arc_vmware_management_service_api.aio.operations.MachineExtensionsOperations + azure.mgmt.connectedvmware.aio.operations.MachineExtensionsOperations :ivar guest_agents: GuestAgentsOperations operations - :vartype guest_agents: - azure_arc_vmware_management_service_api.aio.operations.GuestAgentsOperations + :vartype guest_agents: azure.mgmt.connectedvmware.aio.operations.GuestAgentsOperations :ivar virtual_machine_instances: VirtualMachineInstancesOperations operations :vartype virtual_machine_instances: - azure_arc_vmware_management_service_api.aio.operations.VirtualMachineInstancesOperations + azure.mgmt.connectedvmware.aio.operations.VirtualMachineInstancesOperations :ivar vm_instance_hybrid_identity_metadata: VmInstanceHybridIdentityMetadataOperations operations :vartype vm_instance_hybrid_identity_metadata: - azure_arc_vmware_management_service_api.aio.operations.VmInstanceHybridIdentityMetadataOperations + azure.mgmt.connectedvmware.aio.operations.VmInstanceHybridIdentityMetadataOperations :ivar vm_instance_guest_agents: VMInstanceGuestAgentsOperations operations :vartype vm_instance_guest_agents: - azure_arc_vmware_management_service_api.aio.operations.VMInstanceGuestAgentsOperations + azure.mgmt.connectedvmware.aio.operations.VMInstanceGuestAgentsOperations :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: The Subscription ID. diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/_patch.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/_patch.py index 74e48ecd07c..f99e77fef98 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/_patch.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/_patch.py @@ -28,4 +28,4 @@ # This file is used for handwritten extensions to the generated code. Example: # https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md def patch_sdk(): - pass \ No newline at end of file + pass diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_azure_arc_vmware_management_service_api_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_azure_arc_vmware_management_service_api_operations.py index 928cc75ae0a..27235540fc1 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_azure_arc_vmware_management_service_api_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_azure_arc_vmware_management_service_api_operations.py @@ -66,8 +66,13 @@ async def _upgrade_extensions_initial( # pylint: disable=inconsistent-return-st map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _upgrade_extensions_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/upgradeExtensions"} # type: ignore @@ -87,8 +92,7 @@ async def begin_upgrade_extensions( # pylint: disable=inconsistent-return-state :param virtual_machine_name: The name of the machine containing the extension. :type virtual_machine_name: str :param extension_upgrade_parameters: Parameters supplied to the Upgrade Extensions operation. - :type extension_upgrade_parameters: - ~azure_arc_vmware_management_service_api.models.MachineExtensionUpgrade + :type extension_upgrade_parameters: ~azure.mgmt.connectedvmware.models.MachineExtensionUpgrade :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 diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_clusters_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_clusters_operations.py index 224abddae5e..d0ebae1f48e 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_clusters_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_clusters_operations.py @@ -32,7 +32,7 @@ class ClustersOperations: 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 + :type models: ~azure.mgmt.connectedvmware.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -122,7 +122,7 @@ async def begin_create( :param cluster_name: Name of the cluster. :type cluster_name: str :param body: Request payload. - :type body: ~azure_arc_vmware_management_service_api.models.Cluster + :type body: ~azure.mgmt.connectedvmware.models.Cluster :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for @@ -133,8 +133,7 @@ async def begin_create( Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Cluster or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure_arc_vmware_management_service_api.models.Cluster] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.connectedvmware.models.Cluster] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -197,7 +196,7 @@ async def get( :type cluster_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: Cluster, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.Cluster + :rtype: ~azure.mgmt.connectedvmware.models.Cluster :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.Cluster"] @@ -258,10 +257,10 @@ async def update( :param cluster_name: Name of the cluster. :type cluster_name: str :param body: Resource properties to update. - :type body: ~azure_arc_vmware_management_service_api.models.ResourcePatch + :type body: ~azure.mgmt.connectedvmware.models.ResourcePatch :keyword callable cls: A custom type or function that will be passed the direct response :return: Cluster, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.Cluster + :rtype: ~azure.mgmt.connectedvmware.models.Cluster :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.Cluster"] @@ -350,8 +349,13 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/clusters/{clusterName}"} # type: ignore @@ -436,7 +440,7 @@ def list( :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ClustersList or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.ClustersList] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.ClustersList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -514,7 +518,7 @@ def list_by_resource_group( :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ClustersList or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.ClustersList] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.ClustersList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_datastores_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_datastores_operations.py index f3e33249964..543d05ddc2b 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_datastores_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_datastores_operations.py @@ -32,7 +32,7 @@ class DatastoresOperations: 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 + :type models: ~azure.mgmt.connectedvmware.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -122,7 +122,7 @@ async def begin_create( :param datastore_name: Name of the datastore. :type datastore_name: str :param body: Request payload. - :type body: ~azure_arc_vmware_management_service_api.models.Datastore + :type body: ~azure.mgmt.connectedvmware.models.Datastore :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for @@ -133,8 +133,7 @@ async def begin_create( Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Datastore or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure_arc_vmware_management_service_api.models.Datastore] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.connectedvmware.models.Datastore] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -197,7 +196,7 @@ async def get( :type datastore_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: Datastore, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.Datastore + :rtype: ~azure.mgmt.connectedvmware.models.Datastore :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.Datastore"] @@ -258,10 +257,10 @@ async def update( :param datastore_name: Name of the datastore. :type datastore_name: str :param body: Resource properties to update. - :type body: ~azure_arc_vmware_management_service_api.models.ResourcePatch + :type body: ~azure.mgmt.connectedvmware.models.ResourcePatch :keyword callable cls: A custom type or function that will be passed the direct response :return: Datastore, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.Datastore + :rtype: ~azure.mgmt.connectedvmware.models.Datastore :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.Datastore"] @@ -350,8 +349,13 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/datastores/{datastoreName}"} # type: ignore @@ -436,7 +440,7 @@ def list( :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either DatastoresList or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.DatastoresList] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.DatastoresList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -514,7 +518,7 @@ def list_by_resource_group( :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either DatastoresList or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.DatastoresList] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.DatastoresList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_guest_agents_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_guest_agents_operations.py index e08525b9e82..e3a059bc459 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_guest_agents_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_guest_agents_operations.py @@ -32,7 +32,7 @@ class GuestAgentsOperations: 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 + :type models: ~azure.mgmt.connectedvmware.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -127,7 +127,7 @@ async def begin_create( :param name: Name of the guestAgents. :type name: str :param body: Request payload. - :type body: ~azure_arc_vmware_management_service_api.models.GuestAgent + :type body: ~azure.mgmt.connectedvmware.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 @@ -138,8 +138,7 @@ async def begin_create( 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] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.connectedvmware.models.GuestAgent] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -206,7 +205,7 @@ async def get( :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 + :rtype: ~azure.mgmt.connectedvmware.models.GuestAgent :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.GuestAgent"] @@ -289,8 +288,13 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/guestAgents/{name}"} # type: ignore @@ -381,7 +385,7 @@ def list( :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] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.GuestAgentList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_hosts_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_hosts_operations.py index a2fd8764362..3fb0ffbe338 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_hosts_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_hosts_operations.py @@ -32,7 +32,7 @@ class HostsOperations: 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 + :type models: ~azure.mgmt.connectedvmware.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -122,7 +122,7 @@ async def begin_create( :param host_name: Name of the host. :type host_name: str :param body: Request payload. - :type body: ~azure_arc_vmware_management_service_api.models.Host + :type body: ~azure.mgmt.connectedvmware.models.Host :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for @@ -132,8 +132,7 @@ async def begin_create( :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Host or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure_arc_vmware_management_service_api.models.Host] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.connectedvmware.models.Host] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -196,7 +195,7 @@ async def get( :type host_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: Host, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.Host + :rtype: ~azure.mgmt.connectedvmware.models.Host :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.Host"] @@ -257,10 +256,10 @@ async def update( :param host_name: Name of the host. :type host_name: str :param body: Resource properties to update. - :type body: ~azure_arc_vmware_management_service_api.models.ResourcePatch + :type body: ~azure.mgmt.connectedvmware.models.ResourcePatch :keyword callable cls: A custom type or function that will be passed the direct response :return: Host, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.Host + :rtype: ~azure.mgmt.connectedvmware.models.Host :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.Host"] @@ -349,8 +348,13 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/hosts/{hostName}"} # type: ignore @@ -434,8 +438,7 @@ def list( :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either HostsList or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.HostsList] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.HostsList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -512,8 +515,7 @@ def list_by_resource_group( :type resource_group_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either HostsList or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.HostsList] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.HostsList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_hybrid_identity_metadata_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_hybrid_identity_metadata_operations.py index 426dabb79ee..d6cf3c7ea5d 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_hybrid_identity_metadata_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_hybrid_identity_metadata_operations.py @@ -30,7 +30,7 @@ class HybridIdentityMetadataOperations: 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 + :type models: ~azure.mgmt.connectedvmware.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -65,10 +65,10 @@ async def create( :param metadata_name: Name of the hybridIdentityMetadata. :type metadata_name: str :param body: Request payload. - :type body: ~azure_arc_vmware_management_service_api.models.HybridIdentityMetadata + :type body: ~azure.mgmt.connectedvmware.models.HybridIdentityMetadata :keyword callable cls: A custom type or function that will be passed the direct response :return: HybridIdentityMetadata, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.HybridIdentityMetadata + :rtype: ~azure.mgmt.connectedvmware.models.HybridIdentityMetadata :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.HybridIdentityMetadata"] @@ -140,7 +140,7 @@ async def get( :type metadata_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: HybridIdentityMetadata, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.HybridIdentityMetadata + :rtype: ~azure.mgmt.connectedvmware.models.HybridIdentityMetadata :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.HybridIdentityMetadata"] @@ -265,7 +265,7 @@ def list( :return: An iterator like instance of either HybridIdentityMetadataList or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.HybridIdentityMetadataList] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.HybridIdentityMetadataList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_inventory_items_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_inventory_items_operations.py index a2ce595a5b7..cf7e895b53a 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_inventory_items_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_inventory_items_operations.py @@ -30,7 +30,7 @@ class InventoryItemsOperations: 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 + :type models: ~azure.mgmt.connectedvmware.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -65,10 +65,10 @@ async def create( :param inventory_item_name: Name of the inventoryItem. :type inventory_item_name: str :param body: Request payload. - :type body: ~azure_arc_vmware_management_service_api.models.InventoryItem + :type body: ~azure.mgmt.connectedvmware.models.InventoryItem :keyword callable cls: A custom type or function that will be passed the direct response :return: InventoryItem, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.InventoryItem + :rtype: ~azure.mgmt.connectedvmware.models.InventoryItem :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.InventoryItem"] @@ -140,7 +140,7 @@ async def get( :type inventory_item_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: InventoryItem, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.InventoryItem + :rtype: ~azure.mgmt.connectedvmware.models.InventoryItem :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.InventoryItem"] @@ -264,7 +264,7 @@ def list_by_v_center( :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either InventoryItemsList or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.InventoryItemsList] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.InventoryItemsList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_machine_extensions_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_machine_extensions_operations.py index 26c218d3d18..1e8a7b56544 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_machine_extensions_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_machine_extensions_operations.py @@ -32,7 +32,7 @@ class MachineExtensionsOperations: 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 + :type models: ~azure.mgmt.connectedvmware.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -123,7 +123,7 @@ async def begin_create_or_update( :param extension_name: The name of the machine extension. :type extension_name: str :param extension_parameters: Parameters supplied to the Create Machine Extension operation. - :type extension_parameters: ~azure_arc_vmware_management_service_api.models.MachineExtension + :type extension_parameters: ~azure.mgmt.connectedvmware.models.MachineExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for @@ -134,8 +134,7 @@ async def begin_create_or_update( Retry-After header is present. :return: An instance of AsyncLROPoller that returns either MachineExtension or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure_arc_vmware_management_service_api.models.MachineExtension] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.connectedvmware.models.MachineExtension] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -258,8 +257,7 @@ async def begin_update( :param extension_name: The name of the machine extension. :type extension_name: str :param extension_parameters: Parameters supplied to the Create Machine Extension operation. - :type extension_parameters: - ~azure_arc_vmware_management_service_api.models.MachineExtensionUpdate + :type extension_parameters: ~azure.mgmt.connectedvmware.models.MachineExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for @@ -270,8 +268,7 @@ async def begin_update( Retry-After header is present. :return: An instance of AsyncLROPoller that returns either MachineExtension or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure_arc_vmware_management_service_api.models.MachineExtension] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.connectedvmware.models.MachineExtension] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -356,8 +353,13 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/extensions/{extensionName}"} # type: ignore @@ -446,7 +448,7 @@ async def get( :type extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: MachineExtension, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.MachineExtension + :rtype: ~azure.mgmt.connectedvmware.models.MachineExtension :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.MachineExtension"] @@ -511,7 +513,7 @@ def list( :return: An iterator like instance of either MachineExtensionsListResult or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.MachineExtensionsListResult] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.MachineExtensionsListResult] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_operations.py index be4219643e2..94f21dfead1 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_operations.py @@ -29,7 +29,7 @@ class Operations: 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 + :type models: ~azure.mgmt.connectedvmware.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -54,7 +54,7 @@ def list( :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either OperationsList or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.OperationsList] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.OperationsList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_resource_pools_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_resource_pools_operations.py index a706bb209b2..34727a84c75 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_resource_pools_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_resource_pools_operations.py @@ -32,7 +32,7 @@ class ResourcePoolsOperations: 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 + :type models: ~azure.mgmt.connectedvmware.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -122,7 +122,7 @@ async def begin_create( :param resource_pool_name: Name of the resourcePool. :type resource_pool_name: str :param body: Request payload. - :type body: ~azure_arc_vmware_management_service_api.models.ResourcePool + :type body: ~azure.mgmt.connectedvmware.models.ResourcePool :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for @@ -133,8 +133,7 @@ async def begin_create( Retry-After header is present. :return: An instance of AsyncLROPoller that returns either ResourcePool or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure_arc_vmware_management_service_api.models.ResourcePool] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.connectedvmware.models.ResourcePool] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -197,7 +196,7 @@ async def get( :type resource_pool_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: ResourcePool, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.ResourcePool + :rtype: ~azure.mgmt.connectedvmware.models.ResourcePool :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.ResourcePool"] @@ -258,10 +257,10 @@ async def update( :param resource_pool_name: Name of the resourcePool. :type resource_pool_name: str :param body: Resource properties to update. - :type body: ~azure_arc_vmware_management_service_api.models.ResourcePatch + :type body: ~azure.mgmt.connectedvmware.models.ResourcePatch :keyword callable cls: A custom type or function that will be passed the direct response :return: ResourcePool, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.ResourcePool + :rtype: ~azure.mgmt.connectedvmware.models.ResourcePool :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.ResourcePool"] @@ -350,8 +349,13 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/{resourcePoolName}"} # type: ignore @@ -436,7 +440,7 @@ def list( :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ResourcePoolsList or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.ResourcePoolsList] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.ResourcePoolsList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -514,7 +518,7 @@ def list_by_resource_group( :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ResourcePoolsList or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.ResourcePoolsList] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.ResourcePoolsList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_vcenters_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_vcenters_operations.py index 1dc0d9a1fb2..cc24e19be41 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_vcenters_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_vcenters_operations.py @@ -32,7 +32,7 @@ class VCentersOperations: 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 + :type models: ~azure.mgmt.connectedvmware.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -122,7 +122,7 @@ async def begin_create( :param vcenter_name: Name of the vCenter. :type vcenter_name: str :param body: Request payload. - :type body: ~azure_arc_vmware_management_service_api.models.VCenter + :type body: ~azure.mgmt.connectedvmware.models.VCenter :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for @@ -133,8 +133,7 @@ async def begin_create( Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VCenter or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure_arc_vmware_management_service_api.models.VCenter] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.connectedvmware.models.VCenter] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -197,7 +196,7 @@ async def get( :type vcenter_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: VCenter, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.VCenter + :rtype: ~azure.mgmt.connectedvmware.models.VCenter :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.VCenter"] @@ -258,10 +257,10 @@ async def update( :param vcenter_name: Name of the vCenter. :type vcenter_name: str :param body: Resource properties to update. - :type body: ~azure_arc_vmware_management_service_api.models.ResourcePatch + :type body: ~azure.mgmt.connectedvmware.models.ResourcePatch :keyword callable cls: A custom type or function that will be passed the direct response :return: VCenter, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.VCenter + :rtype: ~azure.mgmt.connectedvmware.models.VCenter :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.VCenter"] @@ -350,8 +349,13 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/vcenters/{vcenterName}"} # type: ignore @@ -436,7 +440,7 @@ def list( :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either VCentersList or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.VCentersList] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.VCentersList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -514,7 +518,7 @@ def list_by_resource_group( :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either VCentersList or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.VCentersList] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.VCentersList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_virtual_machine_instances_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_virtual_machine_instances_operations.py index ea60b5dec22..89f68d42c22 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_virtual_machine_instances_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_virtual_machine_instances_operations.py @@ -6,13 +6,15 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Optional, TypeVar, Union +from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union +from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import AsyncHttpResponse from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod from azure.core.rest import HttpRequest +from azure.core.tracing.decorator import distributed_trace from azure.core.tracing.decorator_async import distributed_trace_async from azure.mgmt.core.exceptions import ARMErrorFormat from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling @@ -30,7 +32,7 @@ class VirtualMachineInstancesOperations: 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 + :type models: ~azure.mgmt.connectedvmware.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -116,7 +118,7 @@ async def begin_create_or_update( Compute machine resource to be extended. :type resource_uri: str :param body: Request payload. - :type body: ~azure_arc_vmware_management_service_api.models.VirtualMachineInstance + :type body: ~azure.mgmt.connectedvmware.models.VirtualMachineInstance :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 @@ -128,7 +130,7 @@ async def begin_create_or_update( :return: An instance of AsyncLROPoller that returns either VirtualMachineInstance or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure_arc_vmware_management_service_api.models.VirtualMachineInstance] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.connectedvmware.models.VirtualMachineInstance] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -188,7 +190,7 @@ async def get( :type resource_uri: str :keyword callable cls: A custom type or function that will be passed the direct response :return: VirtualMachineInstance, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.VirtualMachineInstance + :rtype: ~azure.mgmt.connectedvmware.models.VirtualMachineInstance :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineInstance"] @@ -272,11 +274,16 @@ async def _update_initial( raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = None + response_headers = {} if response.status_code == 200: deserialized = self._deserialize('VirtualMachineInstance', pipeline_response) + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, response_headers) return deserialized @@ -298,7 +305,7 @@ async def begin_update( Compute machine resource to be extended. :type resource_uri: str :param body: Resource properties to update. - :type body: ~azure_arc_vmware_management_service_api.models.VirtualMachineInstanceUpdate + :type body: ~azure.mgmt.connectedvmware.models.VirtualMachineInstanceUpdate :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 @@ -310,7 +317,7 @@ async def begin_update( :return: An instance of AsyncLROPoller that returns either VirtualMachineInstance or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure_arc_vmware_management_service_api.models.VirtualMachineInstance] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.connectedvmware.models.VirtualMachineInstance] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -388,12 +395,17 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements ) response = pipeline_response.http_response - if response.status_code not in [200, 202, 204]: + if response.status_code not in [202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _delete_initial.metadata = {'url': "/{resourceUri}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default"} # type: ignore @@ -467,12 +479,12 @@ def get_long_running_output(pipeline_response): begin_delete.metadata = {'url': "/{resourceUri}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default"} # type: ignore - @distributed_trace_async - async def list( + @distributed_trace + def list( self, resource_uri: str, **kwargs: Any - ) -> "_models.VirtualMachineInstancesList": + ) -> AsyncIterable["_models.VirtualMachineInstancesList"]: """Implements List virtual machine instances. Lists all of the virtual machine instances within the specified parent resource. @@ -481,49 +493,72 @@ async def list( Compute machine resource to be extended. :type resource_uri: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: VirtualMachineInstancesList, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.VirtualMachineInstancesList + :return: An iterator like instance of either VirtualMachineInstancesList or the result of + cls(response) + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.VirtualMachineInstancesList] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineInstancesList"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) + def prepare_request(next_link=None): + if not next_link: + + request = build_list_request( + resource_uri=resource_uri, + api_version=api_version, + template_url=self.list.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + else: + + request = build_list_request( + resource_uri=resource_uri, + api_version=api_version, + template_url=next_link, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + request.method = "GET" + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize("VirtualMachineInstancesList", 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) - api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str - - - request = build_list_request( - resource_uri=resource_uri, - api_version=api_version, - template_url=self.list.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 + async def get_next(next_link=None): + request = prepare_request(next_link) - 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, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) + response = pipeline_response.http_response - deserialized = self._deserialize('VirtualMachineInstancesList', pipeline_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, pipeline_response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - if cls: - return cls(pipeline_response, deserialized, {}) + return pipeline_response - return deserialized + return AsyncItemPaged( + get_next, extract_data + ) list.metadata = {'url': "/{resourceUri}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances"} # type: ignore - async def _stop_initial( # pylint: disable=inconsistent-return-statements self, resource_uri: str, @@ -561,12 +596,16 @@ async def _stop_initial( # pylint: disable=inconsistent-return-statements ) response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [202]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _stop_initial.metadata = {'url': "/{resourceUri}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default/stop"} # type: ignore @@ -586,7 +625,7 @@ async def begin_stop( # pylint: disable=inconsistent-return-statements Compute machine resource to be extended. :type resource_uri: str :param body: Virtualmachine stop action payload. - :type body: ~azure_arc_vmware_management_service_api.models.StopVirtualMachineOptions + :type body: ~azure.mgmt.connectedvmware.models.StopVirtualMachineOptions :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for @@ -667,12 +706,16 @@ async def _start_initial( # pylint: disable=inconsistent-return-statements ) response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [202]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _start_initial.metadata = {'url': "/{resourceUri}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default/start"} # type: ignore @@ -767,12 +810,16 @@ async def _restart_initial( # pylint: disable=inconsistent-return-statements ) response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [202]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _restart_initial.metadata = {'url': "/{resourceUri}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default/restart"} # type: ignore diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_virtual_machine_templates_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_virtual_machine_templates_operations.py index b1009c6274a..4f7ea2375e6 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_virtual_machine_templates_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_virtual_machine_templates_operations.py @@ -32,7 +32,7 @@ class VirtualMachineTemplatesOperations: 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 + :type models: ~azure.mgmt.connectedvmware.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -122,7 +122,7 @@ async def begin_create( :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_arc_vmware_management_service_api.models.VirtualMachineTemplate + :type body: ~azure.mgmt.connectedvmware.models.VirtualMachineTemplate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for @@ -134,7 +134,7 @@ async def begin_create( :return: An instance of AsyncLROPoller that returns either VirtualMachineTemplate or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure_arc_vmware_management_service_api.models.VirtualMachineTemplate] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.connectedvmware.models.VirtualMachineTemplate] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -197,7 +197,7 @@ async def get( :type virtual_machine_template_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: VirtualMachineTemplate, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.VirtualMachineTemplate + :rtype: ~azure.mgmt.connectedvmware.models.VirtualMachineTemplate :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineTemplate"] @@ -258,10 +258,10 @@ async def update( :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_arc_vmware_management_service_api.models.ResourcePatch + :type body: ~azure.mgmt.connectedvmware.models.ResourcePatch :keyword callable cls: A custom type or function that will be passed the direct response :return: VirtualMachineTemplate, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.VirtualMachineTemplate + :rtype: ~azure.mgmt.connectedvmware.models.VirtualMachineTemplate :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineTemplate"] @@ -350,8 +350,13 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/{virtualMachineTemplateName}"} # type: ignore @@ -437,7 +442,7 @@ def list( :return: An iterator like instance of either VirtualMachineTemplatesList or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.VirtualMachineTemplatesList] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.VirtualMachineTemplatesList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -516,7 +521,7 @@ def list_by_resource_group( :return: An iterator like instance of either VirtualMachineTemplatesList or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.VirtualMachineTemplatesList] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.VirtualMachineTemplatesList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_virtual_machines_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_virtual_machines_operations.py index 1476a8a2d6b..aeb68ee2be6 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_virtual_machines_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_virtual_machines_operations.py @@ -32,7 +32,7 @@ class VirtualMachinesOperations: 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 + :type models: ~azure.mgmt.connectedvmware.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -84,11 +84,16 @@ async def _assess_patches_initial( raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = None + response_headers = {} if response.status_code == 200: deserialized = self._deserialize('VirtualMachineAssessPatchesResult', pipeline_response) + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, response_headers) return deserialized @@ -119,7 +124,7 @@ async def begin_assess_patches( :return: An instance of AsyncLROPoller that returns either VirtualMachineAssessPatchesResult or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure_arc_vmware_management_service_api.models.VirtualMachineAssessPatchesResult] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.connectedvmware.models.VirtualMachineAssessPatchesResult] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -204,11 +209,16 @@ async def _install_patches_initial( raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = None + response_headers = {} if response.status_code == 200: deserialized = self._deserialize('VirtualMachineInstallPatchesResult', pipeline_response) + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, response_headers) return deserialized @@ -231,7 +241,7 @@ async def begin_install_patches( :type virtual_machine_name: str :param install_patches_input: Input for InstallPatches as directly received by the API. :type install_patches_input: - ~azure_arc_vmware_management_service_api.models.VirtualMachineInstallPatchesParameters + ~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 @@ -243,7 +253,7 @@ async def begin_install_patches( :return: An instance of AsyncLROPoller that returns either VirtualMachineInstallPatchesResult or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure_arc_vmware_management_service_api.models.VirtualMachineInstallPatchesResult] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.connectedvmware.models.VirtualMachineInstallPatchesResult] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -364,7 +374,7 @@ async def begin_create_or_update( :param virtual_machine_name: Name of the virtual machine resource. :type virtual_machine_name: str :param body: Request payload. - :type body: ~azure_arc_vmware_management_service_api.models.VirtualMachine + :type body: ~azure.mgmt.connectedvmware.models.VirtualMachine :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for @@ -375,8 +385,7 @@ async def begin_create_or_update( Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachine or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure_arc_vmware_management_service_api.models.VirtualMachine] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.connectedvmware.models.VirtualMachine] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -439,7 +448,7 @@ async def get( :type virtual_machine_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: VirtualMachine, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.VirtualMachine + :rtype: ~azure.mgmt.connectedvmware.models.VirtualMachine :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] @@ -528,14 +537,19 @@ async def _update_initial( raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = None + response_headers = {} if response.status_code == 200: deserialized = self._deserialize('VirtualMachine', pipeline_response) if response.status_code == 201: deserialized = self._deserialize('VirtualMachine', pipeline_response) + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, response_headers) return deserialized @@ -559,7 +573,7 @@ async def begin_update( :param virtual_machine_name: Name of the virtual machine resource. :type virtual_machine_name: str :param body: Resource properties to update. - :type body: ~azure_arc_vmware_management_service_api.models.VirtualMachineUpdate + :type body: ~azure.mgmt.connectedvmware.models.VirtualMachineUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for @@ -570,8 +584,7 @@ async def begin_update( Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachine or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure_arc_vmware_management_service_api.models.VirtualMachine] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.connectedvmware.models.VirtualMachine] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -657,8 +670,13 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}"} # type: ignore @@ -779,8 +797,13 @@ async def _stop_initial( # pylint: disable=inconsistent-return-statements map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _stop_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/stop"} # type: ignore @@ -802,7 +825,7 @@ async def begin_stop( # pylint: disable=inconsistent-return-statements :param virtual_machine_name: Name of the virtual machine resource. :type virtual_machine_name: str :param body: Virtualmachine stop action payload. - :type body: ~azure_arc_vmware_management_service_api.models.StopVirtualMachineOptions + :type body: ~azure.mgmt.connectedvmware.models.StopVirtualMachineOptions :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for @@ -891,8 +914,13 @@ async def _start_initial( # pylint: disable=inconsistent-return-statements map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _start_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/start"} # type: ignore @@ -997,8 +1025,13 @@ async def _restart_initial( # pylint: disable=inconsistent-return-statements map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _restart_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/restart"} # type: ignore @@ -1079,7 +1112,7 @@ def list_all( :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either VirtualMachinesList or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.VirtualMachinesList] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.VirtualMachinesList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -1157,7 +1190,7 @@ def list( :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either VirtualMachinesList or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.VirtualMachinesList] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.VirtualMachinesList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_virtual_networks_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_virtual_networks_operations.py index f1ffe479237..81bd4097532 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_virtual_networks_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_virtual_networks_operations.py @@ -32,7 +32,7 @@ class VirtualNetworksOperations: 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 + :type models: ~azure.mgmt.connectedvmware.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -122,7 +122,7 @@ async def begin_create( :param virtual_network_name: Name of the virtual network resource. :type virtual_network_name: str :param body: Request payload. - :type body: ~azure_arc_vmware_management_service_api.models.VirtualNetwork + :type body: ~azure.mgmt.connectedvmware.models.VirtualNetwork :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for @@ -133,8 +133,7 @@ async def begin_create( Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualNetwork or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure_arc_vmware_management_service_api.models.VirtualNetwork] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.connectedvmware.models.VirtualNetwork] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -197,7 +196,7 @@ async def get( :type virtual_network_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: VirtualNetwork, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.VirtualNetwork + :rtype: ~azure.mgmt.connectedvmware.models.VirtualNetwork :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualNetwork"] @@ -258,10 +257,10 @@ async def update( :param virtual_network_name: Name of the virtual network resource. :type virtual_network_name: str :param body: Resource properties to update. - :type body: ~azure_arc_vmware_management_service_api.models.ResourcePatch + :type body: ~azure.mgmt.connectedvmware.models.ResourcePatch :keyword callable cls: A custom type or function that will be passed the direct response :return: VirtualNetwork, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.VirtualNetwork + :rtype: ~azure.mgmt.connectedvmware.models.VirtualNetwork :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualNetwork"] @@ -350,8 +349,13 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks/{virtualNetworkName}"} # type: ignore @@ -436,7 +440,7 @@ def list( :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either VirtualNetworksList or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.VirtualNetworksList] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.VirtualNetworksList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -514,7 +518,7 @@ def list_by_resource_group( :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either VirtualNetworksList or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.VirtualNetworksList] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.VirtualNetworksList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_vm_instance_guest_agents_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_vm_instance_guest_agents_operations.py index c212d17b401..16cd4890553 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_vm_instance_guest_agents_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_vm_instance_guest_agents_operations.py @@ -32,7 +32,7 @@ class VMInstanceGuestAgentsOperations: 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 + :type models: ~azure.mgmt.connectedvmware.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -117,7 +117,7 @@ async def begin_create( Compute machine resource to be extended. :type resource_uri: str :param body: Request payload. - :type body: ~azure_arc_vmware_management_service_api.models.GuestAgent + :type body: ~azure.mgmt.connectedvmware.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 @@ -128,8 +128,7 @@ async def begin_create( 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] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.connectedvmware.models.GuestAgent] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -189,7 +188,7 @@ async def get( :type resource_uri: 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 + :rtype: ~azure.mgmt.connectedvmware.models.GuestAgent :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.GuestAgent"] @@ -260,12 +259,17 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements ) response = pipeline_response.http_response - if response.status_code not in [200, 202, 204]: + if response.status_code not in [202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _delete_initial.metadata = {'url': "/{resourceUri}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default/guestAgents/default"} # type: ignore @@ -347,7 +351,7 @@ def list( :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] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.GuestAgentList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_vm_instance_hybrid_identity_metadata_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_vm_instance_hybrid_identity_metadata_operations.py index 5cda010769a..0e1a75fc8ce 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_vm_instance_hybrid_identity_metadata_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/aio/operations/_vm_instance_hybrid_identity_metadata_operations.py @@ -30,7 +30,7 @@ class VmInstanceHybridIdentityMetadataOperations: 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 + :type models: ~azure.mgmt.connectedvmware.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -60,7 +60,7 @@ async def get( :type resource_uri: str :keyword callable cls: A custom type or function that will be passed the direct response :return: VmInstanceHybridIdentityMetadata, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.VmInstanceHybridIdentityMetadata + :rtype: ~azure.mgmt.connectedvmware.models.VmInstanceHybridIdentityMetadata :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.VmInstanceHybridIdentityMetadata"] @@ -119,7 +119,7 @@ def list( :return: An iterator like instance of either VmInstanceHybridIdentityMetadataList or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.VmInstanceHybridIdentityMetadataList] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.VmInstanceHybridIdentityMetadataList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/models/_models.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/models/_models.py index 4c5eda47eb5..1ead3bb6491 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/models/_models.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/models/_models.py @@ -87,9 +87,9 @@ class Cluster(msrest.serialization.Model): :ivar location: Required. Gets or sets the location. :vartype location: str :ivar extended_location: Gets or sets the extended location. - :vartype extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :vartype extended_location: ~azure.mgmt.connectedvmware.models.ExtendedLocation :ivar system_data: The system data. - :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :vartype system_data: ~azure.mgmt.connectedvmware.models.SystemData :ivar tags: A set of tags. Gets or sets the Resource tags. :vartype tags: dict[str, str] :ivar name: Gets or sets the name. @@ -114,23 +114,24 @@ class Cluster(msrest.serialization.Model): :ivar mo_name: Gets or sets the vCenter Managed Object name for the cluster. :vartype mo_name: str :ivar statuses: The resource status information. - :vartype statuses: list[~azure_arc_vmware_management_service_api.models.ResourceStatus] + :vartype statuses: list[~azure.mgmt.connectedvmware.models.ResourceStatus] :ivar custom_resource_name: Gets the name of the corresponding resource in Kubernetes. :vartype custom_resource_name: str :ivar used_memory_gb: Gets the used physical memory on the cluster in GB. - :vartype used_memory_gb: str + :vartype used_memory_gb: long :ivar total_memory_gb: Gets the total amount of physical memory on the cluster in GB. - :vartype total_memory_gb: str - :ivar used_cpum_hz: Gets the used CPU usage across all cores on the cluster in MHz. - :vartype used_cpum_hz: str - :ivar total_cpum_hz: Gets the max CPU usage across all cores on the cluster in MHz. - :vartype total_cpum_hz: str + :vartype total_memory_gb: long + :ivar used_cpu_m_hz: Gets the used CPU usage across all cores on the cluster in MHz. + :vartype used_cpu_m_hz: long + :ivar total_cpu_m_hz: Gets the max CPU usage across all cores on the cluster in MHz. + :vartype total_cpu_m_hz: long :ivar datastore_ids: Gets the datastore ARM ids. :vartype datastore_ids: list[str] :ivar network_ids: Gets the network ARM ids. :vartype network_ids: list[str] - :ivar provisioning_state: Gets the provisioning state. - :vartype provisioning_state: str + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState """ _validation = { @@ -145,8 +146,8 @@ class Cluster(msrest.serialization.Model): 'custom_resource_name': {'readonly': True}, 'used_memory_gb': {'readonly': True}, 'total_memory_gb': {'readonly': True}, - 'used_cpum_hz': {'readonly': True}, - 'total_cpum_hz': {'readonly': True}, + 'used_cpu_m_hz': {'readonly': True}, + 'total_cpu_m_hz': {'readonly': True}, 'datastore_ids': {'readonly': True}, 'network_ids': {'readonly': True}, 'provisioning_state': {'readonly': True}, @@ -168,10 +169,10 @@ class Cluster(msrest.serialization.Model): 'mo_name': {'key': 'properties.moName', 'type': 'str'}, 'statuses': {'key': 'properties.statuses', 'type': '[ResourceStatus]'}, 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, - 'used_memory_gb': {'key': 'properties.usedMemoryGB', 'type': 'str'}, - 'total_memory_gb': {'key': 'properties.totalMemoryGB', 'type': 'str'}, - 'used_cpum_hz': {'key': 'properties.usedCPUMHz', 'type': 'str'}, - 'total_cpum_hz': {'key': 'properties.totalCPUMHz', 'type': 'str'}, + 'used_memory_gb': {'key': 'properties.usedMemoryGB', 'type': 'long'}, + 'total_memory_gb': {'key': 'properties.totalMemoryGB', 'type': 'long'}, + 'used_cpu_m_hz': {'key': 'properties.usedCpuMHz', 'type': 'long'}, + 'total_cpu_m_hz': {'key': 'properties.totalCpuMHz', 'type': 'long'}, 'datastore_ids': {'key': 'properties.datastoreIds', 'type': '[str]'}, 'network_ids': {'key': 'properties.networkIds', 'type': '[str]'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, @@ -185,7 +186,7 @@ def __init__( :keyword location: Required. Gets or sets the location. :paramtype location: str :keyword extended_location: Gets or sets the extended location. - :paramtype extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :paramtype extended_location: ~azure.mgmt.connectedvmware.models.ExtendedLocation :keyword tags: A set of tags. Gets or sets the Resource tags. :paramtype tags: dict[str, str] :keyword kind: Metadata used by portal/tooling/etc to render different UX experiences for @@ -219,8 +220,8 @@ def __init__( self.custom_resource_name = None self.used_memory_gb = None self.total_memory_gb = None - self.used_cpum_hz = None - self.total_cpum_hz = None + self.used_cpu_m_hz = None + self.total_cpu_m_hz = None self.datastore_ids = None self.network_ids = None self.provisioning_state = None @@ -239,7 +240,7 @@ class InventoryItemProperties(msrest.serialization.Model): :ivar inventory_type: Required. They inventory type.Constant filled by server. Possible values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", "Cluster", "Datastore", "Host". - :vartype inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + :vartype inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType :ivar managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. :vartype managed_resource_id: str @@ -247,8 +248,9 @@ class InventoryItemProperties(msrest.serialization.Model): :vartype mo_ref_id: str :ivar mo_name: Gets or sets the vCenter Managed Object name for the inventory item. :vartype mo_name: str - :ivar provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState """ _validation = { @@ -300,7 +302,7 @@ class ClusterInventoryItem(InventoryItemProperties): :ivar inventory_type: Required. They inventory type.Constant filled by server. Possible values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", "Cluster", "Datastore", "Host". - :vartype inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + :vartype inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType :ivar managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. :vartype managed_resource_id: str @@ -308,8 +310,9 @@ class ClusterInventoryItem(InventoryItemProperties): :vartype mo_ref_id: str :ivar mo_name: Gets or sets the vCenter Managed Object name for the inventory item. :vartype mo_name: str - :ivar provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState """ _validation = { @@ -351,7 +354,7 @@ class ClustersList(msrest.serialization.Model): :ivar next_link: Url to follow for getting next page of Clusters. :vartype next_link: str :ivar value: Required. Array of Clusters. - :vartype value: list[~azure_arc_vmware_management_service_api.models.Cluster] + :vartype value: list[~azure.mgmt.connectedvmware.models.Cluster] """ _validation = { @@ -371,7 +374,7 @@ def __init__( :keyword next_link: Url to follow for getting next page of Clusters. :paramtype next_link: str :keyword value: Required. Array of Clusters. - :paramtype value: list[~azure_arc_vmware_management_service_api.models.Cluster] + :paramtype value: list[~azure.mgmt.connectedvmware.models.Cluster] """ super(ClustersList, self).__init__(**kwargs) self.next_link = kwargs.get('next_link', None) @@ -430,9 +433,9 @@ class Datastore(msrest.serialization.Model): :ivar location: Required. Gets or sets the location. :vartype location: str :ivar extended_location: Gets or sets the extended location. - :vartype extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :vartype extended_location: ~azure.mgmt.connectedvmware.models.ExtendedLocation :ivar system_data: The system data. - :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :vartype system_data: ~azure.mgmt.connectedvmware.models.SystemData :ivar tags: A set of tags. Gets or sets the Resource tags. :vartype tags: dict[str, str] :ivar name: Gets or sets the name. @@ -458,7 +461,7 @@ class Datastore(msrest.serialization.Model): :ivar mo_name: Gets or sets the vCenter Managed Object name for the datastore. :vartype mo_name: str :ivar statuses: The resource status information. - :vartype statuses: list[~azure_arc_vmware_management_service_api.models.ResourceStatus] + :vartype statuses: list[~azure.mgmt.connectedvmware.models.ResourceStatus] :ivar custom_resource_name: Gets the name of the corresponding resource in Kubernetes. :vartype custom_resource_name: str :ivar capacity_gb: Gets or sets Maximum capacity of this datastore in GBs. @@ -468,8 +471,7 @@ class Datastore(msrest.serialization.Model): :ivar provisioning_state: Provisioning state of the resource. Possible values include: "Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". - :vartype provisioning_state: str or - ~azure_arc_vmware_management_service_api.models.ProvisioningState + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState """ _validation = { @@ -516,7 +518,7 @@ def __init__( :keyword location: Required. Gets or sets the location. :paramtype location: str :keyword extended_location: Gets or sets the extended location. - :paramtype extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :paramtype extended_location: ~azure.mgmt.connectedvmware.models.ExtendedLocation :keyword tags: A set of tags. Gets or sets the Resource tags. :paramtype tags: dict[str, str] :keyword kind: Metadata used by portal/tooling/etc to render different UX experiences for @@ -563,7 +565,7 @@ class DatastoreInventoryItem(InventoryItemProperties): :ivar inventory_type: Required. They inventory type.Constant filled by server. Possible values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", "Cluster", "Datastore", "Host". - :vartype inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + :vartype inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType :ivar managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. :vartype managed_resource_id: str @@ -571,8 +573,9 @@ class DatastoreInventoryItem(InventoryItemProperties): :vartype mo_ref_id: str :ivar mo_name: Gets or sets the vCenter Managed Object name for the inventory item. :vartype mo_name: str - :ivar provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState :ivar capacity_gb: Gets or sets Maximum capacity of this datastore, in GBs. :vartype capacity_gb: long :ivar free_space_gb: Gets or sets Available space of this datastore, in GBs. @@ -626,7 +629,7 @@ class DatastoresList(msrest.serialization.Model): :ivar next_link: Url to follow for getting next page of Datastores. :vartype next_link: str :ivar value: Required. Array of Datastores. - :vartype value: list[~azure_arc_vmware_management_service_api.models.Datastore] + :vartype value: list[~azure.mgmt.connectedvmware.models.Datastore] """ _validation = { @@ -646,7 +649,7 @@ def __init__( :keyword next_link: Url to follow for getting next page of Datastores. :paramtype next_link: str :keyword value: Required. Array of Datastores. - :paramtype value: list[~azure_arc_vmware_management_service_api.models.Datastore] + :paramtype value: list[~azure.mgmt.connectedvmware.models.Datastore] """ super(DatastoresList, self).__init__(**kwargs) self.next_link = kwargs.get('next_link', None) @@ -697,10 +700,9 @@ class ErrorDetail(msrest.serialization.Model): :ivar target: The error target. :vartype target: str :ivar details: The error details. - :vartype details: list[~azure_arc_vmware_management_service_api.models.ErrorDetail] + :vartype details: list[~azure.mgmt.connectedvmware.models.ErrorDetail] :ivar additional_info: The error additional info. - :vartype additional_info: - list[~azure_arc_vmware_management_service_api.models.ErrorAdditionalInfo] + :vartype additional_info: list[~azure.mgmt.connectedvmware.models.ErrorAdditionalInfo] """ _validation = { @@ -737,7 +739,7 @@ class ErrorResponse(msrest.serialization.Model): """Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). :ivar error: The error object. - :vartype error: ~azure_arc_vmware_management_service_api.models.ErrorDetail + :vartype error: ~azure.mgmt.connectedvmware.models.ErrorDetail """ _attribute_map = { @@ -750,7 +752,7 @@ def __init__( ): """ :keyword error: The error object. - :paramtype error: ~azure_arc_vmware_management_service_api.models.ErrorDetail + :paramtype error: ~azure.mgmt.connectedvmware.models.ErrorDetail """ super(ErrorResponse, self).__init__(**kwargs) self.error = kwargs.get('error', None) @@ -823,7 +825,7 @@ class Resource(msrest.serialization.Model): :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :vartype system_data: ~azure.mgmt.connectedvmware.models.SystemData """ _validation = { @@ -868,7 +870,7 @@ class ProxyResource(Resource): :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :vartype system_data: ~azure.mgmt.connectedvmware.models.SystemData """ _validation = { @@ -909,29 +911,28 @@ class GuestAgent(ProxyResource): :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :vartype system_data: ~azure.mgmt.connectedvmware.models.SystemData :ivar uuid: Gets or sets a unique identifier for this resource. :vartype uuid: str :ivar credentials: Username / Password Credentials to provision guest agent. - :vartype credentials: ~azure_arc_vmware_management_service_api.models.GuestCredential + :vartype credentials: ~azure.mgmt.connectedvmware.models.GuestCredential :ivar private_link_scope_resource_id: The resource id of the private link scope this machine is assigned to, if any. :vartype private_link_scope_resource_id: str :ivar http_proxy_config: HTTP Proxy configuration for the VM. - :vartype http_proxy_config: - ~azure_arc_vmware_management_service_api.models.HttpProxyConfiguration + :vartype http_proxy_config: ~azure.mgmt.connectedvmware.models.HttpProxyConfiguration :ivar provisioning_action: Gets or sets the guest agent provisioning action. Possible values include: "install", "uninstall", "repair". - :vartype provisioning_action: str or - ~azure_arc_vmware_management_service_api.models.ProvisioningAction + :vartype provisioning_action: str or ~azure.mgmt.connectedvmware.models.ProvisioningAction :ivar status: Gets or sets the guest agent status. :vartype status: str :ivar custom_resource_name: Gets the name of the corresponding resource in Kubernetes. :vartype custom_resource_name: str :ivar statuses: The resource status information. - :vartype statuses: list[~azure_arc_vmware_management_service_api.models.ResourceStatus] - :ivar provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str + :vartype statuses: list[~azure.mgmt.connectedvmware.models.ResourceStatus] + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState """ _validation = { @@ -968,17 +969,15 @@ def __init__( ): """ :keyword credentials: Username / Password Credentials to provision guest agent. - :paramtype credentials: ~azure_arc_vmware_management_service_api.models.GuestCredential + :paramtype credentials: ~azure.mgmt.connectedvmware.models.GuestCredential :keyword private_link_scope_resource_id: The resource id of the private link scope this machine is assigned to, if any. :paramtype private_link_scope_resource_id: str :keyword http_proxy_config: HTTP Proxy configuration for the VM. - :paramtype http_proxy_config: - ~azure_arc_vmware_management_service_api.models.HttpProxyConfiguration + :paramtype http_proxy_config: ~azure.mgmt.connectedvmware.models.HttpProxyConfiguration :keyword provisioning_action: Gets or sets the guest agent provisioning action. Possible values include: "install", "uninstall", "repair". - :paramtype provisioning_action: str or - ~azure_arc_vmware_management_service_api.models.ProvisioningAction + :paramtype provisioning_action: str or ~azure.mgmt.connectedvmware.models.ProvisioningAction """ super(GuestAgent, self).__init__(**kwargs) self.uuid = None @@ -1000,7 +999,7 @@ class GuestAgentList(msrest.serialization.Model): :ivar next_link: Url to follow for getting next page of GuestAgent. :vartype next_link: str :ivar value: Required. Array of GuestAgent. - :vartype value: list[~azure_arc_vmware_management_service_api.models.GuestAgent] + :vartype value: list[~azure.mgmt.connectedvmware.models.GuestAgent] """ _validation = { @@ -1020,7 +1019,7 @@ def __init__( :keyword next_link: Url to follow for getting next page of GuestAgent. :paramtype next_link: str :keyword value: Required. Array of GuestAgent. - :paramtype value: list[~azure_arc_vmware_management_service_api.models.GuestAgent] + :paramtype value: list[~azure.mgmt.connectedvmware.models.GuestAgent] """ super(GuestAgentList, self).__init__(**kwargs) self.next_link = kwargs.get('next_link', None) @@ -1036,7 +1035,7 @@ class GuestAgentProfile(msrest.serialization.Model): :vartype vm_uuid: str :ivar status: The status of the hybrid machine agent. Possible values include: "Connected", "Disconnected", "Error". - :vartype status: str or ~azure_arc_vmware_management_service_api.models.StatusTypes + :vartype status: str or ~azure.mgmt.connectedvmware.models.StatusTypes :ivar last_status_change: The time of the last status change. :vartype last_status_change: ~datetime.datetime :ivar client_public_key: Gets or sets the Public Key provided by the client for enabling guest @@ -1047,7 +1046,7 @@ class GuestAgentProfile(msrest.serialization.Model): :ivar agent_version: The hybrid machine agent full version. :vartype agent_version: str :ivar error_details: Details about the error state. - :vartype error_details: list[~azure_arc_vmware_management_service_api.models.ErrorDetail] + :vartype error_details: list[~azure.mgmt.connectedvmware.models.ErrorDetail] """ _validation = { @@ -1212,9 +1211,9 @@ class Host(msrest.serialization.Model): :ivar location: Required. Gets or sets the location. :vartype location: str :ivar extended_location: Gets or sets the extended location. - :vartype extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :vartype extended_location: ~azure.mgmt.connectedvmware.models.ExtendedLocation :ivar system_data: The system data. - :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :vartype system_data: ~azure.mgmt.connectedvmware.models.SystemData :ivar tags: A set of tags. Gets or sets the Resource tags. :vartype tags: dict[str, str] :ivar name: Gets or sets the name. @@ -1238,23 +1237,24 @@ class Host(msrest.serialization.Model): :ivar mo_name: Gets or sets the vCenter Managed Object name for the host. :vartype mo_name: str :ivar statuses: The resource status information. - :vartype statuses: list[~azure_arc_vmware_management_service_api.models.ResourceStatus] + :vartype statuses: list[~azure.mgmt.connectedvmware.models.ResourceStatus] :ivar custom_resource_name: Gets the name of the corresponding resource in Kubernetes. :vartype custom_resource_name: str :ivar overall_memory_usage_gb: Gets the used physical memory on the host in GB. - :vartype overall_memory_usage_gb: str + :vartype overall_memory_usage_gb: long :ivar memory_size_gb: Gets the total amount of physical memory on the host in GB. - :vartype memory_size_gb: str + :vartype memory_size_gb: long :ivar overall_cpu_usage_m_hz: Gets the used CPU usage across all cores in MHz. - :vartype overall_cpu_usage_m_hz: str + :vartype overall_cpu_usage_m_hz: long :ivar cpu_mhz: Gets the max CPU usage across all cores in MHz. - :vartype cpu_mhz: str + :vartype cpu_mhz: long :ivar datastore_ids: Gets the datastore ARM ids. :vartype datastore_ids: list[str] :ivar network_ids: Gets the network ARM ids. :vartype network_ids: list[str] - :ivar provisioning_state: Gets the provisioning state. - :vartype provisioning_state: str + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState """ _validation = { @@ -1292,10 +1292,10 @@ class Host(msrest.serialization.Model): 'mo_name': {'key': 'properties.moName', 'type': 'str'}, 'statuses': {'key': 'properties.statuses', 'type': '[ResourceStatus]'}, 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, - 'overall_memory_usage_gb': {'key': 'properties.overallMemoryUsageGB', 'type': 'str'}, - 'memory_size_gb': {'key': 'properties.memorySizeGB', 'type': 'str'}, - 'overall_cpu_usage_m_hz': {'key': 'properties.overallCPUUsageMHz', 'type': 'str'}, - 'cpu_mhz': {'key': 'properties.CPUMhz', 'type': 'str'}, + 'overall_memory_usage_gb': {'key': 'properties.overallMemoryUsageGB', 'type': 'long'}, + 'memory_size_gb': {'key': 'properties.memorySizeGB', 'type': 'long'}, + 'overall_cpu_usage_m_hz': {'key': 'properties.overallCpuUsageMHz', 'type': 'long'}, + 'cpu_mhz': {'key': 'properties.cpuMhz', 'type': 'long'}, 'datastore_ids': {'key': 'properties.datastoreIds', 'type': '[str]'}, 'network_ids': {'key': 'properties.networkIds', 'type': '[str]'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, @@ -1309,7 +1309,7 @@ def __init__( :keyword location: Required. Gets or sets the location. :paramtype location: str :keyword extended_location: Gets or sets the extended location. - :paramtype extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :paramtype extended_location: ~azure.mgmt.connectedvmware.models.ExtendedLocation :keyword tags: A set of tags. Gets or sets the Resource tags. :paramtype tags: dict[str, str] :keyword kind: Metadata used by portal/tooling/etc to render different UX experiences for @@ -1359,7 +1359,7 @@ class HostInventoryItem(InventoryItemProperties): :ivar inventory_type: Required. They inventory type.Constant filled by server. Possible values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", "Cluster", "Datastore", "Host". - :vartype inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + :vartype inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType :ivar managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. :vartype managed_resource_id: str @@ -1367,10 +1367,11 @@ class HostInventoryItem(InventoryItemProperties): :vartype mo_ref_id: str :ivar mo_name: Gets or sets the vCenter Managed Object name for the inventory item. :vartype mo_name: str - :ivar provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState :ivar parent: Parent host inventory resource details. - :vartype parent: ~azure_arc_vmware_management_service_api.models.InventoryItemDetails + :vartype parent: ~azure.mgmt.connectedvmware.models.InventoryItemDetails """ _validation = { @@ -1401,7 +1402,7 @@ def __init__( :keyword mo_name: Gets or sets the vCenter Managed Object name for the inventory item. :paramtype mo_name: str :keyword parent: Parent host inventory resource details. - :paramtype parent: ~azure_arc_vmware_management_service_api.models.InventoryItemDetails + :paramtype parent: ~azure.mgmt.connectedvmware.models.InventoryItemDetails """ super(HostInventoryItem, self).__init__(**kwargs) self.inventory_type = 'Host' # type: str @@ -1416,7 +1417,7 @@ class HostsList(msrest.serialization.Model): :ivar next_link: Url to follow for getting next page of Hosts. :vartype next_link: str :ivar value: Required. Array of Hosts. - :vartype value: list[~azure_arc_vmware_management_service_api.models.Host] + :vartype value: list[~azure.mgmt.connectedvmware.models.Host] """ _validation = { @@ -1436,7 +1437,7 @@ def __init__( :keyword next_link: Url to follow for getting next page of Hosts. :paramtype next_link: str :keyword value: Required. Array of Hosts. - :paramtype value: list[~azure_arc_vmware_management_service_api.models.Host] + :paramtype value: list[~azure.mgmt.connectedvmware.models.Host] """ super(HostsList, self).__init__(**kwargs) self.next_link = kwargs.get('next_link', None) @@ -1481,15 +1482,16 @@ class HybridIdentityMetadata(ProxyResource): :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :vartype system_data: ~azure.mgmt.connectedvmware.models.SystemData :ivar vm_id: Gets or sets the Vm Id. :vartype vm_id: str :ivar public_key: Gets or sets the Public Key. :vartype public_key: str :ivar identity: The identity of the resource. - :vartype identity: ~azure_arc_vmware_management_service_api.models.Identity - :ivar provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str + :vartype identity: ~azure.mgmt.connectedvmware.models.Identity + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState """ _validation = { @@ -1537,7 +1539,7 @@ class HybridIdentityMetadataList(msrest.serialization.Model): :ivar next_link: Url to follow for getting next page of HybridIdentityMetadata. :vartype next_link: str :ivar value: Required. Array of HybridIdentityMetadata. - :vartype value: list[~azure_arc_vmware_management_service_api.models.HybridIdentityMetadata] + :vartype value: list[~azure.mgmt.connectedvmware.models.HybridIdentityMetadata] """ _validation = { @@ -1557,7 +1559,7 @@ def __init__( :keyword next_link: Url to follow for getting next page of HybridIdentityMetadata. :paramtype next_link: str :keyword value: Required. Array of HybridIdentityMetadata. - :paramtype value: list[~azure_arc_vmware_management_service_api.models.HybridIdentityMetadata] + :paramtype value: list[~azure.mgmt.connectedvmware.models.HybridIdentityMetadata] """ super(HybridIdentityMetadataList, self).__init__(**kwargs) self.next_link = kwargs.get('next_link', None) @@ -1577,7 +1579,7 @@ class Identity(msrest.serialization.Model): :vartype tenant_id: str :ivar type: Required. The type of managed service identity. Possible values include: "None", "SystemAssigned". - :vartype type: str or ~azure_arc_vmware_management_service_api.models.IdentityType + :vartype type: str or ~azure.mgmt.connectedvmware.models.IdentityType """ _validation = { @@ -1599,7 +1601,7 @@ def __init__( """ :keyword type: Required. The type of managed service identity. Possible values include: "None", "SystemAssigned". - :paramtype type: str or ~azure_arc_vmware_management_service_api.models.IdentityType + :paramtype type: str or ~azure.mgmt.connectedvmware.models.IdentityType """ super(Identity, self).__init__(**kwargs) self.principal_id = None @@ -1632,7 +1634,7 @@ class InfrastructureProfile(msrest.serialization.Model): :ivar smbios_uuid: Gets or sets the SMBIOS UUID of the vm. :vartype smbios_uuid: str :ivar firmware_type: Firmware type. Possible values include: "bios", "efi". - :vartype firmware_type: str or ~azure_arc_vmware_management_service_api.models.FirmwareType + :vartype firmware_type: str or ~azure.mgmt.connectedvmware.models.FirmwareType :ivar custom_resource_name: Gets the name of the corresponding resource in Kubernetes. :vartype custom_resource_name: str """ @@ -1674,7 +1676,7 @@ def __init__( :keyword smbios_uuid: Gets or sets the SMBIOS UUID of the vm. :paramtype smbios_uuid: str :keyword firmware_type: Firmware type. Possible values include: "bios", "efi". - :paramtype firmware_type: str or ~azure_arc_vmware_management_service_api.models.FirmwareType + :paramtype firmware_type: str or ~azure.mgmt.connectedvmware.models.FirmwareType """ super(InfrastructureProfile, self).__init__(**kwargs) self.template_id = kwargs.get('template_id', None) @@ -1706,7 +1708,7 @@ class InventoryItem(ProxyResource): :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :vartype system_data: ~azure.mgmt.connectedvmware.models.SystemData :ivar 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. @@ -1714,7 +1716,7 @@ class InventoryItem(ProxyResource): :ivar inventory_type: Required. They inventory type.Constant filled by server. Possible values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", "Cluster", "Datastore", "Host". - :vartype inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + :vartype inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType :ivar managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. :vartype managed_resource_id: str @@ -1722,8 +1724,9 @@ class InventoryItem(ProxyResource): :vartype mo_ref_id: str :ivar mo_name: Gets or sets the vCenter Managed Object name for the inventory item. :vartype mo_name: str - :ivar provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState """ _validation = { @@ -1784,7 +1787,7 @@ class InventoryItemDetails(msrest.serialization.Model): :vartype mo_name: str :ivar inventory_type: The inventory type. Possible values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", "Cluster", "Datastore", "Host". - :vartype inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + :vartype inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType """ _attribute_map = { @@ -1804,7 +1807,7 @@ def __init__( :paramtype mo_name: str :keyword inventory_type: The inventory type. Possible values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", "Cluster", "Datastore", "Host". - :paramtype inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + :paramtype inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType """ super(InventoryItemDetails, self).__init__(**kwargs) self.inventory_item_id = kwargs.get('inventory_item_id', None) @@ -1820,7 +1823,7 @@ class InventoryItemsList(msrest.serialization.Model): :ivar next_link: Url to follow for getting next page of InventoryItems. :vartype next_link: str :ivar value: Required. Array of InventoryItems. - :vartype value: list[~azure_arc_vmware_management_service_api.models.InventoryItem] + :vartype value: list[~azure.mgmt.connectedvmware.models.InventoryItem] """ _validation = { @@ -1840,7 +1843,7 @@ def __init__( :keyword next_link: Url to follow for getting next page of InventoryItems. :paramtype next_link: str :keyword value: Required. Array of InventoryItems. - :paramtype value: list[~azure_arc_vmware_management_service_api.models.InventoryItem] + :paramtype value: list[~azure.mgmt.connectedvmware.models.InventoryItem] """ super(InventoryItemsList, self).__init__(**kwargs) self.next_link = kwargs.get('next_link', None) @@ -1853,7 +1856,7 @@ class LinuxParameters(msrest.serialization.Model): :ivar classifications_to_include: The update classifications to select when installing patches for Linux. :vartype classifications_to_include: list[str or - ~azure_arc_vmware_management_service_api.models.VMGuestPatchClassificationLinux] + ~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] @@ -1876,7 +1879,7 @@ def __init__( :keyword classifications_to_include: The update classifications to select when installing patches for Linux. :paramtype classifications_to_include: list[str or - ~azure_arc_vmware_management_service_api.models.VMGuestPatchClassificationLinux] + ~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] @@ -1898,7 +1901,7 @@ class MachineExtension(msrest.serialization.Model): :ivar location: Gets or sets the location. :vartype location: str :ivar system_data: The system data. - :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :vartype system_data: ~azure.mgmt.connectedvmware.models.SystemData :ivar tags: A set of tags. Gets or sets the Resource tags. :vartype tags: dict[str, str] :ivar name: Gets or sets the name. @@ -1933,7 +1936,7 @@ class MachineExtension(msrest.serialization.Model): :vartype provisioning_state: str :ivar instance_view: The machine extension instance view. :vartype instance_view: - ~azure_arc_vmware_management_service_api.models.MachineExtensionPropertiesInstanceView + ~azure.mgmt.connectedvmware.models.MachineExtensionPropertiesInstanceView """ _validation = { @@ -1996,7 +1999,7 @@ def __init__( :paramtype protected_settings: any :keyword instance_view: The machine extension instance view. :paramtype instance_view: - ~azure_arc_vmware_management_service_api.models.MachineExtensionPropertiesInstanceView + ~azure.mgmt.connectedvmware.models.MachineExtensionPropertiesInstanceView """ super(MachineExtension, self).__init__(**kwargs) self.location = kwargs.get('location', None) @@ -2029,8 +2032,7 @@ class MachineExtensionInstanceView(msrest.serialization.Model): :ivar type_handler_version: Specifies the version of the script handler. :vartype type_handler_version: str :ivar status: Instance view status. - :vartype status: - ~azure_arc_vmware_management_service_api.models.MachineExtensionInstanceViewStatus + :vartype status: ~azure.mgmt.connectedvmware.models.MachineExtensionInstanceViewStatus """ _validation = { @@ -2052,8 +2054,7 @@ def __init__( ): """ :keyword status: Instance view status. - :paramtype status: - ~azure_arc_vmware_management_service_api.models.MachineExtensionInstanceViewStatus + :paramtype status: ~azure.mgmt.connectedvmware.models.MachineExtensionInstanceViewStatus """ super(MachineExtensionInstanceView, self).__init__(**kwargs) self.name = None @@ -2070,7 +2071,7 @@ class MachineExtensionInstanceViewStatus(msrest.serialization.Model): :ivar code: The status code. :vartype code: str :ivar level: The level code. Possible values include: "Info", "Warning", "Error". - :vartype level: str or ~azure_arc_vmware_management_service_api.models.StatusLevelTypes + :vartype level: str or ~azure.mgmt.connectedvmware.models.StatusLevelTypes :ivar display_status: The short localizable label for the status. :vartype display_status: str :ivar message: The detailed status message, including for alerts and error messages. @@ -2121,8 +2122,7 @@ class MachineExtensionPropertiesInstanceView(MachineExtensionInstanceView): :ivar type_handler_version: Specifies the version of the script handler. :vartype type_handler_version: str :ivar status: Instance view status. - :vartype status: - ~azure_arc_vmware_management_service_api.models.MachineExtensionInstanceViewStatus + :vartype status: ~azure.mgmt.connectedvmware.models.MachineExtensionInstanceViewStatus """ _validation = { @@ -2144,8 +2144,7 @@ def __init__( ): """ :keyword status: Instance view status. - :paramtype status: - ~azure_arc_vmware_management_service_api.models.MachineExtensionInstanceViewStatus + :paramtype status: ~azure.mgmt.connectedvmware.models.MachineExtensionInstanceViewStatus """ super(MachineExtensionPropertiesInstanceView, self).__init__(**kwargs) @@ -2154,7 +2153,7 @@ class MachineExtensionsListResult(msrest.serialization.Model): """Describes the Machine Extensions List Result. :ivar value: The list of extensions. - :vartype value: list[~azure_arc_vmware_management_service_api.models.MachineExtension] + :vartype value: list[~azure.mgmt.connectedvmware.models.MachineExtension] :ivar next_link: The uri to fetch the next page of machine extensions. Call ListNext() with this to fetch the next page of extensions. :vartype next_link: str @@ -2171,7 +2170,7 @@ def __init__( ): """ :keyword value: The list of extensions. - :paramtype value: list[~azure_arc_vmware_management_service_api.models.MachineExtension] + :paramtype value: list[~azure.mgmt.connectedvmware.models.MachineExtension] :keyword next_link: The uri to fetch the next page of machine extensions. Call ListNext() with this to fetch the next page of extensions. :paramtype next_link: str @@ -2289,7 +2288,7 @@ class MachineExtensionUpgrade(msrest.serialization.Model): :ivar extension_targets: Describes the Extension Target Properties. :vartype extension_targets: dict[str, - ~azure_arc_vmware_management_service_api.models.ExtensionTargetProperties] + ~azure.mgmt.connectedvmware.models.ExtensionTargetProperties] """ _attribute_map = { @@ -2303,7 +2302,7 @@ def __init__( """ :keyword extension_targets: Describes the Extension Target Properties. :paramtype extension_targets: dict[str, - ~azure_arc_vmware_management_service_api.models.ExtensionTargetProperties] + ~azure.mgmt.connectedvmware.models.ExtensionTargetProperties] """ super(MachineExtensionUpgrade, self).__init__(**kwargs) self.extension_targets = kwargs.get('extension_targets', None) @@ -2328,11 +2327,10 @@ class NetworkInterface(msrest.serialization.Model): :vartype network_id: str :ivar nic_type: NIC type. Possible values include: "vmxnet3", "vmxnet2", "vmxnet", "e1000", "e1000e", "pcnet32". - :vartype nic_type: str or ~azure_arc_vmware_management_service_api.models.NICType + :vartype nic_type: str or ~azure.mgmt.connectedvmware.models.NICType :ivar power_on_boot: Gets or sets the power on boot. Possible values include: "enabled", "disabled". - :vartype power_on_boot: str or - ~azure_arc_vmware_management_service_api.models.PowerOnBootOption + :vartype power_on_boot: str or ~azure.mgmt.connectedvmware.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. @@ -2343,7 +2341,7 @@ class NetworkInterface(msrest.serialization.Model): :ivar device_key: Gets or sets the device key value. :vartype device_key: int :ivar ip_settings: Gets or sets the ipsettings. - :vartype ip_settings: ~azure_arc_vmware_management_service_api.models.NicIPSettings + :vartype ip_settings: ~azure.mgmt.connectedvmware.models.NicIPSettings """ _validation = { @@ -2380,15 +2378,14 @@ def __init__( :paramtype network_id: str :keyword nic_type: NIC type. Possible values include: "vmxnet3", "vmxnet2", "vmxnet", "e1000", "e1000e", "pcnet32". - :paramtype nic_type: str or ~azure_arc_vmware_management_service_api.models.NICType + :paramtype nic_type: str or ~azure.mgmt.connectedvmware.models.NICType :keyword power_on_boot: Gets or sets the power on boot. Possible values include: "enabled", "disabled". - :paramtype power_on_boot: str or - ~azure_arc_vmware_management_service_api.models.PowerOnBootOption + :paramtype power_on_boot: str or ~azure.mgmt.connectedvmware.models.PowerOnBootOption :keyword device_key: Gets or sets the device key value. :paramtype device_key: int :keyword ip_settings: Gets or sets the ipsettings. - :paramtype ip_settings: ~azure_arc_vmware_management_service_api.models.NicIPSettings + :paramtype ip_settings: ~azure.mgmt.connectedvmware.models.NicIPSettings """ super(NetworkInterface, self).__init__(**kwargs) self.name = kwargs.get('name', None) @@ -2414,11 +2411,10 @@ class NetworkInterfaceUpdate(msrest.serialization.Model): :vartype network_id: str :ivar nic_type: NIC type. Possible values include: "vmxnet3", "vmxnet2", "vmxnet", "e1000", "e1000e", "pcnet32". - :vartype nic_type: str or ~azure_arc_vmware_management_service_api.models.NICType + :vartype nic_type: str or ~azure.mgmt.connectedvmware.models.NICType :ivar power_on_boot: Gets or sets the power on boot. Possible values include: "enabled", "disabled". - :vartype power_on_boot: str or - ~azure_arc_vmware_management_service_api.models.PowerOnBootOption + :vartype power_on_boot: str or ~azure.mgmt.connectedvmware.models.PowerOnBootOption :ivar device_key: Gets or sets the device key value. :vartype device_key: int """ @@ -2443,11 +2439,10 @@ def __init__( :paramtype network_id: str :keyword nic_type: NIC type. Possible values include: "vmxnet3", "vmxnet2", "vmxnet", "e1000", "e1000e", "pcnet32". - :paramtype nic_type: str or ~azure_arc_vmware_management_service_api.models.NICType + :paramtype nic_type: str or ~azure.mgmt.connectedvmware.models.NICType :keyword power_on_boot: Gets or sets the power on boot. Possible values include: "enabled", "disabled". - :paramtype power_on_boot: str or - ~azure_arc_vmware_management_service_api.models.PowerOnBootOption + :paramtype power_on_boot: str or ~azure.mgmt.connectedvmware.models.PowerOnBootOption :keyword device_key: Gets or sets the device key value. :paramtype device_key: int """ @@ -2464,8 +2459,7 @@ class NetworkProfile(msrest.serialization.Model): :ivar network_interfaces: Gets or sets the list of network interfaces associated with the virtual machine. - :vartype network_interfaces: - list[~azure_arc_vmware_management_service_api.models.NetworkInterface] + :vartype network_interfaces: list[~azure.mgmt.connectedvmware.models.NetworkInterface] """ _attribute_map = { @@ -2479,8 +2473,7 @@ def __init__( """ :keyword network_interfaces: Gets or sets the list of network interfaces associated with the virtual machine. - :paramtype network_interfaces: - list[~azure_arc_vmware_management_service_api.models.NetworkInterface] + :paramtype network_interfaces: list[~azure.mgmt.connectedvmware.models.NetworkInterface] """ super(NetworkProfile, self).__init__(**kwargs) self.network_interfaces = kwargs.get('network_interfaces', None) @@ -2491,8 +2484,7 @@ class NetworkProfileUpdate(msrest.serialization.Model): :ivar network_interfaces: Gets or sets the list of network interfaces associated with the virtual machine. - :vartype network_interfaces: - list[~azure_arc_vmware_management_service_api.models.NetworkInterfaceUpdate] + :vartype network_interfaces: list[~azure.mgmt.connectedvmware.models.NetworkInterfaceUpdate] """ _attribute_map = { @@ -2506,8 +2498,7 @@ def __init__( """ :keyword network_interfaces: Gets or sets the list of network interfaces associated with the virtual machine. - :paramtype network_interfaces: - list[~azure_arc_vmware_management_service_api.models.NetworkInterfaceUpdate] + :paramtype network_interfaces: list[~azure.mgmt.connectedvmware.models.NetworkInterfaceUpdate] """ super(NetworkProfileUpdate, self).__init__(**kwargs) self.network_interfaces = kwargs.get('network_interfaces', None) @@ -2557,8 +2548,7 @@ class NicIPSettings(msrest.serialization.Model): :ivar allocation_method: Gets or sets the nic allocation method. Possible values include: "unset", "dynamic", "static", "linklayer", "random", "other". - :vartype allocation_method: str or - ~azure_arc_vmware_management_service_api.models.IPAddressAllocationMethod + :vartype allocation_method: str or ~azure.mgmt.connectedvmware.models.IPAddressAllocationMethod :ivar dns_servers: Gets or sets the dns servers. :vartype dns_servers: list[str] :ivar gateway: Gets or sets the gateway. @@ -2573,8 +2563,7 @@ class NicIPSettings(msrest.serialization.Model): :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_arc_vmware_management_service_api.models.NicIPAddressSettings] + :vartype ip_address_info: list[~azure.mgmt.connectedvmware.models.NicIPAddressSettings] """ _validation = { @@ -2602,7 +2591,7 @@ def __init__( :keyword allocation_method: Gets or sets the nic allocation method. Possible values include: "unset", "dynamic", "static", "linklayer", "random", "other". :paramtype allocation_method: str or - ~azure_arc_vmware_management_service_api.models.IPAddressAllocationMethod + ~azure.mgmt.connectedvmware.models.IPAddressAllocationMethod :keyword dns_servers: Gets or sets the dns servers. :paramtype dns_servers: list[str] :keyword gateway: Gets or sets the gateway. @@ -2631,7 +2620,7 @@ class Operation(msrest.serialization.Model): :ivar is_data_action: Indicates whether the operation is data action or not. :vartype is_data_action: bool :ivar display: Properties of the operation. - :vartype display: ~azure_arc_vmware_management_service_api.models.OperationDisplay + :vartype display: ~azure.mgmt.connectedvmware.models.OperationDisplay """ _attribute_map = { @@ -2650,7 +2639,7 @@ def __init__( :keyword is_data_action: Indicates whether the operation is data action or not. :paramtype is_data_action: bool :keyword display: Properties of the operation. - :paramtype display: ~azure_arc_vmware_management_service_api.models.OperationDisplay + :paramtype display: ~azure.mgmt.connectedvmware.models.OperationDisplay """ super(Operation, self).__init__(**kwargs) self.name = kwargs.get('name', None) @@ -2707,7 +2696,7 @@ class OperationsList(msrest.serialization.Model): :ivar next_link: Url to follow for getting next page of operations. :vartype next_link: str :ivar value: Required. Array of operations. - :vartype value: list[~azure_arc_vmware_management_service_api.models.Operation] + :vartype value: list[~azure.mgmt.connectedvmware.models.Operation] """ _validation = { @@ -2727,7 +2716,7 @@ def __init__( :keyword next_link: Url to follow for getting next page of operations. :paramtype next_link: str :keyword value: Required. Array of operations. - :paramtype value: list[~azure_arc_vmware_management_service_api.models.Operation] + :paramtype value: list[~azure.mgmt.connectedvmware.models.Operation] """ super(OperationsList, self).__init__(**kwargs) self.next_link = kwargs.get('next_link', None) @@ -2752,7 +2741,7 @@ class OsProfile(msrest.serialization.Model): :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_arc_vmware_management_service_api.models.OsType + :vartype os_type: str or ~azure.mgmt.connectedvmware.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 @@ -2765,10 +2754,9 @@ class OsProfile(msrest.serialization.Model): :vartype tools_version: str :ivar windows_configuration: Specifies the windows configuration for update management. :vartype windows_configuration: - ~azure_arc_vmware_management_service_api.models.OsProfileWindowsConfiguration + ~azure.mgmt.connectedvmware.models.OsProfileWindowsConfiguration :ivar linux_configuration: Specifies the linux configuration for update management. - :vartype linux_configuration: - ~azure_arc_vmware_management_service_api.models.OsProfileLinuxConfiguration + :vartype linux_configuration: ~azure.mgmt.connectedvmware.models.OsProfileLinuxConfiguration """ _validation = { @@ -2809,13 +2797,12 @@ def __init__( :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_arc_vmware_management_service_api.models.OsType + :paramtype os_type: str or ~azure.mgmt.connectedvmware.models.OsType :keyword windows_configuration: Specifies the windows configuration for update management. :paramtype windows_configuration: - ~azure_arc_vmware_management_service_api.models.OsProfileWindowsConfiguration + ~azure.mgmt.connectedvmware.models.OsProfileWindowsConfiguration :keyword linux_configuration: Specifies the linux configuration for update management. - :paramtype linux_configuration: - ~azure_arc_vmware_management_service_api.models.OsProfileLinuxConfiguration + :paramtype linux_configuration: ~azure.mgmt.connectedvmware.models.OsProfileLinuxConfiguration """ super(OsProfile, self).__init__(**kwargs) self.computer_name = kwargs.get('computer_name', None) @@ -2847,7 +2834,7 @@ class OsProfileForVMInstance(msrest.serialization.Model): :vartype guest_id: str :ivar os_type: Gets or sets the type of the os. Possible values include: "Windows", "Linux", "Other". - :vartype os_type: str or ~azure_arc_vmware_management_service_api.models.OsType + :vartype os_type: str or ~azure.mgmt.connectedvmware.models.OsType :ivar os_sku: Gets or sets os sku. :vartype os_sku: str :ivar tools_running_status: Gets or sets the current running status of VMware Tools running in @@ -2894,7 +2881,7 @@ def __init__( :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_arc_vmware_management_service_api.models.OsType + :paramtype os_type: str or ~azure.mgmt.connectedvmware.models.OsType """ super(OsProfileForVMInstance, self).__init__(**kwargs) self.computer_name = kwargs.get('computer_name', None) @@ -2942,10 +2929,10 @@ class OsProfileUpdate(msrest.serialization.Model): :ivar windows_configuration: Specifies the windows configuration for update management. :vartype windows_configuration: - ~azure_arc_vmware_management_service_api.models.OsProfileUpdateWindowsConfiguration + ~azure.mgmt.connectedvmware.models.OsProfileUpdateWindowsConfiguration :ivar linux_configuration: Specifies the linux configuration for update management. :vartype linux_configuration: - ~azure_arc_vmware_management_service_api.models.OsProfileUpdateLinuxConfiguration + ~azure.mgmt.connectedvmware.models.OsProfileUpdateLinuxConfiguration """ _attribute_map = { @@ -2960,10 +2947,10 @@ def __init__( """ :keyword windows_configuration: Specifies the windows configuration for update management. :paramtype windows_configuration: - ~azure_arc_vmware_management_service_api.models.OsProfileUpdateWindowsConfiguration + ~azure.mgmt.connectedvmware.models.OsProfileUpdateWindowsConfiguration :keyword linux_configuration: Specifies the linux configuration for update management. :paramtype linux_configuration: - ~azure_arc_vmware_management_service_api.models.OsProfileUpdateLinuxConfiguration + ~azure.mgmt.connectedvmware.models.OsProfileUpdateLinuxConfiguration """ super(OsProfileUpdate, self).__init__(**kwargs) self.windows_configuration = kwargs.get('windows_configuration', None) @@ -3116,9 +3103,9 @@ class ResourcePool(msrest.serialization.Model): :ivar location: Required. Gets or sets the location. :vartype location: str :ivar extended_location: Gets or sets the extended location. - :vartype extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :vartype extended_location: ~azure.mgmt.connectedvmware.models.ExtendedLocation :ivar system_data: The system data. - :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :vartype system_data: ~azure.mgmt.connectedvmware.models.SystemData :ivar tags: A set of tags. Gets or sets the Resource tags. :vartype tags: dict[str, str] :ivar name: Gets or sets the name. @@ -3180,9 +3167,10 @@ class ResourcePool(msrest.serialization.Model): :ivar network_ids: Gets the network ARM ids. :vartype network_ids: list[str] :ivar statuses: The resource status information. - :vartype statuses: list[~azure_arc_vmware_management_service_api.models.ResourceStatus] - :ivar provisioning_state: Gets the provisioning state. - :vartype provisioning_state: str + :vartype statuses: list[~azure.mgmt.connectedvmware.models.ResourceStatus] + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState """ _validation = { @@ -3232,8 +3220,8 @@ class ResourcePool(msrest.serialization.Model): 'mem_limit_mb': {'key': 'properties.memLimitMB', 'type': 'long'}, 'mem_overall_usage_gb': {'key': 'properties.memOverallUsageGB', 'type': 'long'}, 'mem_capacity_gb': {'key': 'properties.memCapacityGB', 'type': 'long'}, - 'cpu_overall_usage_m_hz': {'key': 'properties.CPUOverallUsageMHz', 'type': 'long'}, - 'cpu_capacity_m_hz': {'key': 'properties.CPUCapacityMHz', 'type': 'long'}, + 'cpu_overall_usage_m_hz': {'key': 'properties.cpuOverallUsageMHz', 'type': 'long'}, + 'cpu_capacity_m_hz': {'key': 'properties.cpuCapacityMHz', 'type': 'long'}, 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, 'datastore_ids': {'key': 'properties.datastoreIds', 'type': '[str]'}, 'network_ids': {'key': 'properties.networkIds', 'type': '[str]'}, @@ -3249,7 +3237,7 @@ def __init__( :keyword location: Required. Gets or sets the location. :paramtype location: str :keyword extended_location: Gets or sets the extended location. - :paramtype extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :paramtype extended_location: ~azure.mgmt.connectedvmware.models.ExtendedLocation :keyword tags: A set of tags. Gets or sets the Resource tags. :paramtype tags: dict[str, str] :keyword kind: Metadata used by portal/tooling/etc to render different UX experiences for @@ -3306,7 +3294,7 @@ class ResourcePoolInventoryItem(InventoryItemProperties): :ivar inventory_type: Required. They inventory type.Constant filled by server. Possible values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", "Cluster", "Datastore", "Host". - :vartype inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + :vartype inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType :ivar managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. :vartype managed_resource_id: str @@ -3314,10 +3302,11 @@ class ResourcePoolInventoryItem(InventoryItemProperties): :vartype mo_ref_id: str :ivar mo_name: Gets or sets the vCenter Managed Object name for the inventory item. :vartype mo_name: str - :ivar provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState :ivar parent: Parent resourcePool inventory resource details. - :vartype parent: ~azure_arc_vmware_management_service_api.models.InventoryItemDetails + :vartype parent: ~azure.mgmt.connectedvmware.models.InventoryItemDetails """ _validation = { @@ -3348,7 +3337,7 @@ def __init__( :keyword mo_name: Gets or sets the vCenter Managed Object name for the inventory item. :paramtype mo_name: str :keyword parent: Parent resourcePool inventory resource details. - :paramtype parent: ~azure_arc_vmware_management_service_api.models.InventoryItemDetails + :paramtype parent: ~azure.mgmt.connectedvmware.models.InventoryItemDetails """ super(ResourcePoolInventoryItem, self).__init__(**kwargs) self.inventory_type = 'ResourcePool' # type: str @@ -3363,7 +3352,7 @@ class ResourcePoolsList(msrest.serialization.Model): :ivar next_link: Url to follow for getting next page of ResourcePools. :vartype next_link: str :ivar value: Required. Array of ResourcePools. - :vartype value: list[~azure_arc_vmware_management_service_api.models.ResourcePool] + :vartype value: list[~azure.mgmt.connectedvmware.models.ResourcePool] """ _validation = { @@ -3383,7 +3372,7 @@ def __init__( :keyword next_link: Url to follow for getting next page of ResourcePools. :paramtype next_link: str :keyword value: Required. Array of ResourcePools. - :paramtype value: list[~azure_arc_vmware_management_service_api.models.ResourcePool] + :paramtype value: list[~azure.mgmt.connectedvmware.models.ResourcePool] """ super(ResourcePoolsList, self).__init__(**kwargs) self.next_link = kwargs.get('next_link', None) @@ -3447,7 +3436,7 @@ class SecurityProfile(msrest.serialization.Model): :ivar uefi_settings: Specifies the security settings like secure boot used while creating the virtual machine. - :vartype uefi_settings: ~azure_arc_vmware_management_service_api.models.UefiSettings + :vartype uefi_settings: ~azure.mgmt.connectedvmware.models.UefiSettings """ _attribute_map = { @@ -3461,7 +3450,7 @@ def __init__( """ :keyword uefi_settings: Specifies the security settings like secure boot used while creating the virtual machine. - :paramtype uefi_settings: ~azure_arc_vmware_management_service_api.models.UefiSettings + :paramtype uefi_settings: ~azure.mgmt.connectedvmware.models.UefiSettings """ super(SecurityProfile, self).__init__(**kwargs) self.uefi_settings = kwargs.get('uefi_settings', None) @@ -3500,11 +3489,10 @@ class StorageProfile(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar disks: Gets or sets the list of virtual disks associated with the virtual machine. - :vartype disks: list[~azure_arc_vmware_management_service_api.models.VirtualDisk] + :vartype disks: list[~azure.mgmt.connectedvmware.models.VirtualDisk] :ivar scsi_controllers: Gets or sets the list of virtual SCSI controllers associated with the virtual machine. - :vartype scsi_controllers: - list[~azure_arc_vmware_management_service_api.models.VirtualSCSIController] + :vartype scsi_controllers: list[~azure.mgmt.connectedvmware.models.VirtualSCSIController] """ _validation = { @@ -3522,7 +3510,7 @@ def __init__( ): """ :keyword disks: Gets or sets the list of virtual disks associated with the virtual machine. - :paramtype disks: list[~azure_arc_vmware_management_service_api.models.VirtualDisk] + :paramtype disks: list[~azure.mgmt.connectedvmware.models.VirtualDisk] """ super(StorageProfile, self).__init__(**kwargs) self.disks = kwargs.get('disks', None) @@ -3533,7 +3521,7 @@ class StorageProfileUpdate(msrest.serialization.Model): """Specifies the storage settings for the virtual machine disks. :ivar disks: Gets or sets the list of virtual disks associated with the virtual machine. - :vartype disks: list[~azure_arc_vmware_management_service_api.models.VirtualDiskUpdate] + :vartype disks: list[~azure.mgmt.connectedvmware.models.VirtualDiskUpdate] """ _attribute_map = { @@ -3546,7 +3534,7 @@ def __init__( ): """ :keyword disks: Gets or sets the list of virtual disks associated with the virtual machine. - :paramtype disks: list[~azure_arc_vmware_management_service_api.models.VirtualDiskUpdate] + :paramtype disks: list[~azure.mgmt.connectedvmware.models.VirtualDiskUpdate] """ super(StorageProfileUpdate, self).__init__(**kwargs) self.disks = kwargs.get('disks', None) @@ -3559,15 +3547,14 @@ class SystemData(msrest.serialization.Model): :vartype created_by: str :ivar created_by_type: The type of identity that created the resource. Possible values include: "User", "Application", "ManagedIdentity", "Key". - :vartype created_by_type: str or ~azure_arc_vmware_management_service_api.models.CreatedByType + :vartype created_by_type: str or ~azure.mgmt.connectedvmware.models.CreatedByType :ivar created_at: The timestamp of resource creation (UTC). :vartype created_at: ~datetime.datetime :ivar last_modified_by: The identity that last modified the resource. :vartype last_modified_by: str :ivar last_modified_by_type: The type of identity that last modified the resource. Possible values include: "User", "Application", "ManagedIdentity", "Key". - :vartype last_modified_by_type: str or - ~azure_arc_vmware_management_service_api.models.CreatedByType + :vartype last_modified_by_type: str or ~azure.mgmt.connectedvmware.models.CreatedByType :ivar last_modified_at: The timestamp of resource last modification (UTC). :vartype last_modified_at: ~datetime.datetime """ @@ -3590,16 +3577,14 @@ def __init__( :paramtype created_by: str :keyword created_by_type: The type of identity that created the resource. Possible values include: "User", "Application", "ManagedIdentity", "Key". - :paramtype created_by_type: str or - ~azure_arc_vmware_management_service_api.models.CreatedByType + :paramtype created_by_type: str or ~azure.mgmt.connectedvmware.models.CreatedByType :keyword created_at: The timestamp of resource creation (UTC). :paramtype created_at: ~datetime.datetime :keyword last_modified_by: The identity that last modified the resource. :paramtype last_modified_by: str :keyword last_modified_by_type: The type of identity that last modified the resource. Possible values include: "User", "Application", "ManagedIdentity", "Key". - :paramtype last_modified_by_type: str or - ~azure_arc_vmware_management_service_api.models.CreatedByType + :paramtype last_modified_by_type: str or ~azure.mgmt.connectedvmware.models.CreatedByType :keyword last_modified_at: The timestamp of resource last modification (UTC). :paramtype last_modified_at: ~datetime.datetime """ @@ -3647,9 +3632,9 @@ class VCenter(msrest.serialization.Model): :ivar location: Required. Gets or sets the location. :vartype location: str :ivar extended_location: Gets or sets the extended location. - :vartype extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :vartype extended_location: ~azure.mgmt.connectedvmware.models.ExtendedLocation :ivar system_data: The system data. - :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :vartype system_data: ~azure.mgmt.connectedvmware.models.SystemData :ivar tags: A set of tags. Gets or sets the Resource tags. :vartype tags: dict[str, str] :ivar name: Gets or sets the name. @@ -3677,11 +3662,12 @@ class VCenter(msrest.serialization.Model): :ivar custom_resource_name: Gets the name of the corresponding resource in Kubernetes. :vartype custom_resource_name: str :ivar credentials: Username / Password Credentials to connect to vcenter. - :vartype credentials: ~azure_arc_vmware_management_service_api.models.VICredential + :vartype credentials: ~azure.mgmt.connectedvmware.models.VICredential :ivar statuses: The resource status information. - :vartype statuses: list[~azure_arc_vmware_management_service_api.models.ResourceStatus] - :ivar provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str + :vartype statuses: list[~azure.mgmt.connectedvmware.models.ResourceStatus] + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState """ _validation = { @@ -3730,7 +3716,7 @@ def __init__( :keyword location: Required. Gets or sets the location. :paramtype location: str :keyword extended_location: Gets or sets the extended location. - :paramtype extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :paramtype extended_location: ~azure.mgmt.connectedvmware.models.ExtendedLocation :keyword tags: A set of tags. Gets or sets the Resource tags. :paramtype tags: dict[str, str] :keyword kind: Metadata used by portal/tooling/etc to render different UX experiences for @@ -3742,7 +3728,7 @@ def __init__( :keyword port: Gets or sets the port of the vCenter. :paramtype port: int :keyword credentials: Username / Password Credentials to connect to vcenter. - :paramtype credentials: ~azure_arc_vmware_management_service_api.models.VICredential + :paramtype credentials: ~azure.mgmt.connectedvmware.models.VICredential """ super(VCenter, self).__init__(**kwargs) self.location = kwargs['location'] @@ -3773,7 +3759,7 @@ class VCentersList(msrest.serialization.Model): :ivar next_link: Url to follow for getting next page of VCenters. :vartype next_link: str :ivar value: Required. Array of VCenters. - :vartype value: list[~azure_arc_vmware_management_service_api.models.VCenter] + :vartype value: list[~azure.mgmt.connectedvmware.models.VCenter] """ _validation = { @@ -3793,7 +3779,7 @@ def __init__( :keyword next_link: Url to follow for getting next page of VCenters. :paramtype next_link: str :keyword value: Required. Array of VCenters. - :paramtype value: list[~azure_arc_vmware_management_service_api.models.VCenter] + :paramtype value: list[~azure.mgmt.connectedvmware.models.VCenter] """ super(VCentersList, self).__init__(**kwargs) self.next_link = kwargs.get('next_link', None) @@ -3846,7 +3832,7 @@ class VirtualDisk(msrest.serialization.Model): :vartype device_key: int :ivar disk_mode: Gets or sets the disk mode. Possible values include: "persistent", "independent_persistent", "independent_nonpersistent". - :vartype disk_mode: str or ~azure_arc_vmware_management_service_api.models.DiskMode + :vartype disk_mode: str or ~azure.mgmt.connectedvmware.models.DiskMode :ivar controller_key: Gets or sets the controller id. :vartype controller_key: int :ivar unit_number: Gets or sets the unit number of the disk on the controller. @@ -3855,7 +3841,7 @@ class VirtualDisk(msrest.serialization.Model): :vartype device_name: str :ivar disk_type: Gets or sets the disk backing type. Possible values include: "flat", "pmem", "rawphysical", "rawvirtual", "sparse", "sesparse", "unknown". - :vartype disk_type: str or ~azure_arc_vmware_management_service_api.models.DiskType + :vartype disk_type: str or ~azure.mgmt.connectedvmware.models.DiskType """ _validation = { @@ -3889,7 +3875,7 @@ def __init__( :paramtype device_key: int :keyword disk_mode: Gets or sets the disk mode. Possible values include: "persistent", "independent_persistent", "independent_nonpersistent". - :paramtype disk_mode: str or ~azure_arc_vmware_management_service_api.models.DiskMode + :paramtype disk_mode: str or ~azure.mgmt.connectedvmware.models.DiskMode :keyword controller_key: Gets or sets the controller id. :paramtype controller_key: int :keyword unit_number: Gets or sets the unit number of the disk on the controller. @@ -3898,7 +3884,7 @@ def __init__( :paramtype device_name: str :keyword disk_type: Gets or sets the disk backing type. Possible values include: "flat", "pmem", "rawphysical", "rawvirtual", "sparse", "sesparse", "unknown". - :paramtype disk_type: str or ~azure_arc_vmware_management_service_api.models.DiskType + :paramtype disk_type: str or ~azure.mgmt.connectedvmware.models.DiskType """ super(VirtualDisk, self).__init__(**kwargs) self.name = kwargs.get('name', None) @@ -3924,7 +3910,7 @@ class VirtualDiskUpdate(msrest.serialization.Model): :vartype device_key: int :ivar disk_mode: Gets or sets the disk mode. Possible values include: "persistent", "independent_persistent", "independent_nonpersistent". - :vartype disk_mode: str or ~azure_arc_vmware_management_service_api.models.DiskMode + :vartype disk_mode: str or ~azure.mgmt.connectedvmware.models.DiskMode :ivar controller_key: Gets or sets the controller id. :vartype controller_key: int :ivar unit_number: Gets or sets the unit number of the disk on the controller. @@ -3933,7 +3919,7 @@ class VirtualDiskUpdate(msrest.serialization.Model): :vartype device_name: str :ivar disk_type: Gets or sets the disk backing type. Possible values include: "flat", "pmem", "rawphysical", "rawvirtual", "sparse", "sesparse", "unknown". - :vartype disk_type: str or ~azure_arc_vmware_management_service_api.models.DiskType + :vartype disk_type: str or ~azure.mgmt.connectedvmware.models.DiskType """ _attribute_map = { @@ -3960,7 +3946,7 @@ def __init__( :paramtype device_key: int :keyword disk_mode: Gets or sets the disk mode. Possible values include: "persistent", "independent_persistent", "independent_nonpersistent". - :paramtype disk_mode: str or ~azure_arc_vmware_management_service_api.models.DiskMode + :paramtype disk_mode: str or ~azure.mgmt.connectedvmware.models.DiskMode :keyword controller_key: Gets or sets the controller id. :paramtype controller_key: int :keyword unit_number: Gets or sets the unit number of the disk on the controller. @@ -3969,7 +3955,7 @@ def __init__( :paramtype device_name: str :keyword disk_type: Gets or sets the disk backing type. Possible values include: "flat", "pmem", "rawphysical", "rawvirtual", "sparse", "sesparse", "unknown". - :paramtype disk_type: str or ~azure_arc_vmware_management_service_api.models.DiskType + :paramtype disk_type: str or ~azure.mgmt.connectedvmware.models.DiskType """ super(VirtualDiskUpdate, self).__init__(**kwargs) self.name = kwargs.get('name', None) @@ -3992,9 +3978,9 @@ class VirtualMachine(msrest.serialization.Model): :ivar location: Required. Gets or sets the location. :vartype location: str :ivar extended_location: Gets or sets the extended location. - :vartype extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :vartype extended_location: ~azure.mgmt.connectedvmware.models.ExtendedLocation :ivar system_data: The system data. - :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :vartype system_data: ~azure.mgmt.connectedvmware.models.SystemData :ivar tags: A set of tags. Gets or sets the Resource tags. :vartype tags: dict[str, str] :ivar name: Gets or sets the name. @@ -4008,7 +3994,7 @@ class VirtualMachine(msrest.serialization.Model): the resource provider must validate and persist this value. :vartype kind: str :ivar identity: The identity of the resource. - :vartype identity: ~azure_arc_vmware_management_service_api.models.Identity + :vartype identity: ~azure.mgmt.connectedvmware.models.Identity :ivar resource_pool_id: Gets or sets the ARM Id of the resourcePool resource on which this virtual machine will deploy. @@ -4020,19 +4006,19 @@ class VirtualMachine(msrest.serialization.Model): resides. :vartype v_center_id: str :ivar placement_profile: Placement properties. - :vartype placement_profile: ~azure_arc_vmware_management_service_api.models.PlacementProfile + :vartype placement_profile: ~azure.mgmt.connectedvmware.models.PlacementProfile :ivar os_profile: OS properties. - :vartype os_profile: ~azure_arc_vmware_management_service_api.models.OsProfile + :vartype os_profile: ~azure.mgmt.connectedvmware.models.OsProfile :ivar hardware_profile: Hardware properties. - :vartype hardware_profile: ~azure_arc_vmware_management_service_api.models.HardwareProfile + :vartype hardware_profile: ~azure.mgmt.connectedvmware.models.HardwareProfile :ivar network_profile: Network properties. - :vartype network_profile: ~azure_arc_vmware_management_service_api.models.NetworkProfile + :vartype network_profile: ~azure.mgmt.connectedvmware.models.NetworkProfile :ivar storage_profile: Storage properties. - :vartype storage_profile: ~azure_arc_vmware_management_service_api.models.StorageProfile + :vartype storage_profile: ~azure.mgmt.connectedvmware.models.StorageProfile :ivar guest_agent_profile: Guest agent status properties. - :vartype guest_agent_profile: ~azure_arc_vmware_management_service_api.models.GuestAgentProfile + :vartype guest_agent_profile: ~azure.mgmt.connectedvmware.models.GuestAgentProfile :ivar security_profile: Gets the security profile. - :vartype security_profile: ~azure_arc_vmware_management_service_api.models.SecurityProfile + :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 @@ -4047,7 +4033,7 @@ class VirtualMachine(msrest.serialization.Model): :ivar smbios_uuid: Gets or sets the SMBIOS UUID of the vm. :vartype smbios_uuid: str :ivar firmware_type: Firmware type. Possible values include: "bios", "efi". - :vartype firmware_type: str or ~azure_arc_vmware_management_service_api.models.FirmwareType + :vartype firmware_type: str or ~azure.mgmt.connectedvmware.models.FirmwareType :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. @@ -4055,9 +4041,10 @@ class VirtualMachine(msrest.serialization.Model): :ivar uuid: Gets or sets a unique identifier for this resource. :vartype uuid: str :ivar statuses: The resource status information. - :vartype statuses: list[~azure_arc_vmware_management_service_api.models.ResourceStatus] - :ivar provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str + :vartype statuses: list[~azure.mgmt.connectedvmware.models.ResourceStatus] + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState :ivar vm_id: Gets or sets a unique identifier for the vm resource. :vartype vm_id: str """ @@ -4122,7 +4109,7 @@ def __init__( :keyword location: Required. Gets or sets the location. :paramtype location: str :keyword extended_location: Gets or sets the extended location. - :paramtype extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :paramtype extended_location: ~azure.mgmt.connectedvmware.models.ExtendedLocation :keyword tags: A set of tags. Gets or sets the Resource tags. :paramtype tags: dict[str, str] :keyword kind: Metadata used by portal/tooling/etc to render different UX experiences for @@ -4130,7 +4117,7 @@ def __init__( the resource provider must validate and persist this value. :paramtype kind: str :keyword identity: The identity of the resource. - :paramtype identity: ~azure_arc_vmware_management_service_api.models.Identity + :paramtype identity: ~azure.mgmt.connectedvmware.models.Identity :keyword resource_pool_id: Gets or sets the ARM Id of the resourcePool resource on which this virtual machine will deploy. @@ -4142,20 +4129,19 @@ def __init__( pool resides. :paramtype v_center_id: str :keyword placement_profile: Placement properties. - :paramtype placement_profile: ~azure_arc_vmware_management_service_api.models.PlacementProfile + :paramtype placement_profile: ~azure.mgmt.connectedvmware.models.PlacementProfile :keyword os_profile: OS properties. - :paramtype os_profile: ~azure_arc_vmware_management_service_api.models.OsProfile + :paramtype os_profile: ~azure.mgmt.connectedvmware.models.OsProfile :keyword hardware_profile: Hardware properties. - :paramtype hardware_profile: ~azure_arc_vmware_management_service_api.models.HardwareProfile + :paramtype hardware_profile: ~azure.mgmt.connectedvmware.models.HardwareProfile :keyword network_profile: Network properties. - :paramtype network_profile: ~azure_arc_vmware_management_service_api.models.NetworkProfile + :paramtype network_profile: ~azure.mgmt.connectedvmware.models.NetworkProfile :keyword storage_profile: Storage properties. - :paramtype storage_profile: ~azure_arc_vmware_management_service_api.models.StorageProfile + :paramtype storage_profile: ~azure.mgmt.connectedvmware.models.StorageProfile :keyword guest_agent_profile: Guest agent status properties. - :paramtype guest_agent_profile: - ~azure_arc_vmware_management_service_api.models.GuestAgentProfile + :paramtype guest_agent_profile: ~azure.mgmt.connectedvmware.models.GuestAgentProfile :keyword security_profile: Gets the security profile. - :paramtype security_profile: ~azure_arc_vmware_management_service_api.models.SecurityProfile + :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 @@ -4164,7 +4150,7 @@ def __init__( :keyword smbios_uuid: Gets or sets the SMBIOS UUID of the vm. :paramtype smbios_uuid: str :keyword firmware_type: Firmware type. Possible values include: "bios", "efi". - :paramtype firmware_type: str or ~azure_arc_vmware_management_service_api.models.FirmwareType + :paramtype firmware_type: str or ~azure.mgmt.connectedvmware.models.FirmwareType """ super(VirtualMachine, self).__init__(**kwargs) self.location = kwargs['location'] @@ -4210,7 +4196,7 @@ class VirtualMachineAssessPatchesResult(msrest.serialization.Model): 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_arc_vmware_management_service_api.models.PatchOperationStatus + :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 @@ -4220,25 +4206,23 @@ class VirtualMachineAssessPatchesResult(msrest.serialization.Model): :ivar available_patch_count_by_classification: Summarization of patches available for installation on the machine by classification. :vartype available_patch_count_by_classification: - ~azure_arc_vmware_management_service_api.models.AvailablePatchCountByClassification + ~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_arc_vmware_management_service_api.models.PatchOperationStartedBy + :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_arc_vmware_management_service_api.models.PatchServiceUsed + :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_arc_vmware_management_service_api.models.OsTypeUM + :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_arc_vmware_management_service_api.models.ErrorDetail + :vartype error_details: ~azure.mgmt.connectedvmware.models.ErrorDetail """ _validation = { @@ -4274,7 +4258,7 @@ def __init__( :keyword available_patch_count_by_classification: Summarization of patches available for installation on the machine by classification. :paramtype available_patch_count_by_classification: - ~azure_arc_vmware_management_service_api.models.AvailablePatchCountByClassification + ~azure.mgmt.connectedvmware.models.AvailablePatchCountByClassification """ super(VirtualMachineAssessPatchesResult, self).__init__(**kwargs) self.status = None @@ -4299,14 +4283,13 @@ class VirtualMachineInstallPatchesParameters(msrest.serialization.Model): :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_arc_vmware_management_service_api.models.VMGuestPatchRebootSetting + :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_arc_vmware_management_service_api.models.WindowsParameters + :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_arc_vmware_management_service_api.models.LinuxParameters + :vartype linux_parameters: ~azure.mgmt.connectedvmware.models.LinuxParameters """ _validation = { @@ -4331,15 +4314,13 @@ def __init__( :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_arc_vmware_management_service_api.models.VMGuestPatchRebootSetting + :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_arc_vmware_management_service_api.models.WindowsParameters + :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_arc_vmware_management_service_api.models.LinuxParameters + :paramtype linux_parameters: ~azure.mgmt.connectedvmware.models.LinuxParameters """ super(VirtualMachineInstallPatchesParameters, self).__init__(**kwargs) self.maximum_duration = kwargs['maximum_duration'] @@ -4357,13 +4338,12 @@ class VirtualMachineInstallPatchesResult(msrest.serialization.Model): 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_arc_vmware_management_service_api.models.PatchOperationStatus + :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_arc_vmware_management_service_api.models.VMGuestPatchRebootStatus + :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 @@ -4388,18 +4368,16 @@ class VirtualMachineInstallPatchesResult(msrest.serialization.Model): :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_arc_vmware_management_service_api.models.PatchOperationStartedBy + :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_arc_vmware_management_service_api.models.PatchServiceUsed + :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_arc_vmware_management_service_api.models.OsTypeUM + :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_arc_vmware_management_service_api.models.ErrorDetail + :vartype error_details: ~azure.mgmt.connectedvmware.models.ErrorDetail """ _validation = { @@ -4477,30 +4455,30 @@ class VirtualMachineInstance(ProxyResource): :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :vartype system_data: ~azure.mgmt.connectedvmware.models.SystemData :ivar extended_location: Gets or sets the extended location. - :vartype extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :vartype extended_location: ~azure.mgmt.connectedvmware.models.ExtendedLocation :ivar placement_profile: Placement properties. - :vartype placement_profile: ~azure_arc_vmware_management_service_api.models.PlacementProfile + :vartype placement_profile: ~azure.mgmt.connectedvmware.models.PlacementProfile :ivar os_profile: OS properties. - :vartype os_profile: ~azure_arc_vmware_management_service_api.models.OsProfileForVMInstance + :vartype os_profile: ~azure.mgmt.connectedvmware.models.OsProfileForVMInstance :ivar hardware_profile: Hardware properties. - :vartype hardware_profile: ~azure_arc_vmware_management_service_api.models.HardwareProfile + :vartype hardware_profile: ~azure.mgmt.connectedvmware.models.HardwareProfile :ivar network_profile: Network properties. - :vartype network_profile: ~azure_arc_vmware_management_service_api.models.NetworkProfile + :vartype network_profile: ~azure.mgmt.connectedvmware.models.NetworkProfile :ivar storage_profile: Storage properties. - :vartype storage_profile: ~azure_arc_vmware_management_service_api.models.StorageProfile + :vartype storage_profile: ~azure.mgmt.connectedvmware.models.StorageProfile :ivar security_profile: Gets the security profile. - :vartype security_profile: ~azure_arc_vmware_management_service_api.models.SecurityProfile + :vartype security_profile: ~azure.mgmt.connectedvmware.models.SecurityProfile :ivar infrastructure_profile: Gets the infrastructure profile. - :vartype infrastructure_profile: - ~azure_arc_vmware_management_service_api.models.InfrastructureProfile + :vartype infrastructure_profile: ~azure.mgmt.connectedvmware.models.InfrastructureProfile :ivar power_state: Gets the power state of the virtual machine. :vartype power_state: str :ivar statuses: The resource status information. - :vartype statuses: list[~azure_arc_vmware_management_service_api.models.ResourceStatus] - :ivar provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str + :vartype statuses: list[~azure.mgmt.connectedvmware.models.ResourceStatus] + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState :ivar resource_uid: Gets or sets a unique identifier for the vm resource. :vartype resource_uid: str """ @@ -4541,22 +4519,21 @@ def __init__( ): """ :keyword extended_location: Gets or sets the extended location. - :paramtype extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :paramtype extended_location: ~azure.mgmt.connectedvmware.models.ExtendedLocation :keyword placement_profile: Placement properties. - :paramtype placement_profile: ~azure_arc_vmware_management_service_api.models.PlacementProfile + :paramtype placement_profile: ~azure.mgmt.connectedvmware.models.PlacementProfile :keyword os_profile: OS properties. - :paramtype os_profile: ~azure_arc_vmware_management_service_api.models.OsProfileForVMInstance + :paramtype os_profile: ~azure.mgmt.connectedvmware.models.OsProfileForVMInstance :keyword hardware_profile: Hardware properties. - :paramtype hardware_profile: ~azure_arc_vmware_management_service_api.models.HardwareProfile + :paramtype hardware_profile: ~azure.mgmt.connectedvmware.models.HardwareProfile :keyword network_profile: Network properties. - :paramtype network_profile: ~azure_arc_vmware_management_service_api.models.NetworkProfile + :paramtype network_profile: ~azure.mgmt.connectedvmware.models.NetworkProfile :keyword storage_profile: Storage properties. - :paramtype storage_profile: ~azure_arc_vmware_management_service_api.models.StorageProfile + :paramtype storage_profile: ~azure.mgmt.connectedvmware.models.StorageProfile :keyword security_profile: Gets the security profile. - :paramtype security_profile: ~azure_arc_vmware_management_service_api.models.SecurityProfile + :paramtype security_profile: ~azure.mgmt.connectedvmware.models.SecurityProfile :keyword infrastructure_profile: Gets the infrastructure profile. - :paramtype infrastructure_profile: - ~azure_arc_vmware_management_service_api.models.InfrastructureProfile + :paramtype infrastructure_profile: ~azure.mgmt.connectedvmware.models.InfrastructureProfile """ super(VirtualMachineInstance, self).__init__(**kwargs) self.extended_location = kwargs.get('extended_location', None) @@ -4578,8 +4555,10 @@ class VirtualMachineInstancesList(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. + :ivar next_link: Url to follow for getting next page of VirtualMachines. + :vartype next_link: str :ivar value: Required. Array of VirtualMachines. - :vartype value: list[~azure_arc_vmware_management_service_api.models.VirtualMachineInstance] + :vartype value: list[~azure.mgmt.connectedvmware.models.VirtualMachineInstance] """ _validation = { @@ -4587,6 +4566,7 @@ class VirtualMachineInstancesList(msrest.serialization.Model): } _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, 'value': {'key': 'value', 'type': '[VirtualMachineInstance]'}, } @@ -4595,10 +4575,13 @@ def __init__( **kwargs ): """ + :keyword next_link: Url to follow for getting next page of VirtualMachines. + :paramtype next_link: str :keyword value: Required. Array of VirtualMachines. - :paramtype value: list[~azure_arc_vmware_management_service_api.models.VirtualMachineInstance] + :paramtype value: list[~azure.mgmt.connectedvmware.models.VirtualMachineInstance] """ super(VirtualMachineInstancesList, self).__init__(**kwargs) + self.next_link = kwargs.get('next_link', None) self.value = kwargs['value'] @@ -4606,11 +4589,11 @@ class VirtualMachineInstanceUpdate(msrest.serialization.Model): """Defines the virtualMachineInstanceUpdate. :ivar hardware_profile: Specifies the hardware settings for the virtual machine. - :vartype hardware_profile: ~azure_arc_vmware_management_service_api.models.HardwareProfile + :vartype hardware_profile: ~azure.mgmt.connectedvmware.models.HardwareProfile :ivar storage_profile: Specifies the storage settings for the virtual machine disks. - :vartype storage_profile: ~azure_arc_vmware_management_service_api.models.StorageProfileUpdate + :vartype storage_profile: ~azure.mgmt.connectedvmware.models.StorageProfileUpdate :ivar network_profile: Specifies the network interfaces of the virtual machine. - :vartype network_profile: ~azure_arc_vmware_management_service_api.models.NetworkProfileUpdate + :vartype network_profile: ~azure.mgmt.connectedvmware.models.NetworkProfileUpdate """ _attribute_map = { @@ -4625,13 +4608,11 @@ def __init__( ): """ :keyword hardware_profile: Specifies the hardware settings for the virtual machine. - :paramtype hardware_profile: ~azure_arc_vmware_management_service_api.models.HardwareProfile + :paramtype hardware_profile: ~azure.mgmt.connectedvmware.models.HardwareProfile :keyword storage_profile: Specifies the storage settings for the virtual machine disks. - :paramtype storage_profile: - ~azure_arc_vmware_management_service_api.models.StorageProfileUpdate + :paramtype storage_profile: ~azure.mgmt.connectedvmware.models.StorageProfileUpdate :keyword network_profile: Specifies the network interfaces of the virtual machine. - :paramtype network_profile: - ~azure_arc_vmware_management_service_api.models.NetworkProfileUpdate + :paramtype network_profile: ~azure.mgmt.connectedvmware.models.NetworkProfileUpdate """ super(VirtualMachineInstanceUpdate, self).__init__(**kwargs) self.hardware_profile = kwargs.get('hardware_profile', None) @@ -4649,7 +4630,7 @@ class VirtualMachineInventoryItem(InventoryItemProperties): :ivar inventory_type: Required. They inventory type.Constant filled by server. Possible values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", "Cluster", "Datastore", "Host". - :vartype inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + :vartype inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType :ivar managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. :vartype managed_resource_id: str @@ -4657,11 +4638,12 @@ class VirtualMachineInventoryItem(InventoryItemProperties): :vartype mo_ref_id: str :ivar mo_name: Gets or sets the vCenter Managed Object name for the inventory item. :vartype mo_name: str - :ivar provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState :ivar os_type: Gets or sets the type of the os. Possible values include: "Windows", "Linux", "Other". - :vartype os_type: str or ~azure_arc_vmware_management_service_api.models.OsType + :vartype os_type: str or ~azure.mgmt.connectedvmware.models.OsType :ivar os_name: Gets or sets os name. :vartype os_name: str :ivar ip_addresses: Gets or sets the nic ip addresses. @@ -4669,11 +4651,11 @@ class VirtualMachineInventoryItem(InventoryItemProperties): :ivar folder_path: Gets or sets the folder path of the vm. :vartype folder_path: str :ivar host: Host inventory resource details. - :vartype host: ~azure_arc_vmware_management_service_api.models.InventoryItemDetails + :vartype host: ~azure.mgmt.connectedvmware.models.InventoryItemDetails :ivar resource_pool: ResourcePool inventory resource details. - :vartype resource_pool: ~azure_arc_vmware_management_service_api.models.InventoryItemDetails + :vartype resource_pool: ~azure.mgmt.connectedvmware.models.InventoryItemDetails :ivar cluster: Cluster inventory resource details. - :vartype cluster: ~azure_arc_vmware_management_service_api.models.InventoryItemDetails + :vartype cluster: ~azure.mgmt.connectedvmware.models.InventoryItemDetails :ivar instance_uuid: Gets or sets the instance uuid of the vm. :vartype instance_uuid: str :ivar smbios_uuid: Gets or sets the SMBIOS UUID of the vm. @@ -4735,7 +4717,7 @@ def __init__( :paramtype mo_name: str :keyword os_type: Gets or sets the type of the os. Possible values include: "Windows", "Linux", "Other". - :paramtype os_type: str or ~azure_arc_vmware_management_service_api.models.OsType + :paramtype os_type: str or ~azure.mgmt.connectedvmware.models.OsType :keyword os_name: Gets or sets os name. :paramtype os_name: str :keyword ip_addresses: Gets or sets the nic ip addresses. @@ -4743,11 +4725,11 @@ def __init__( :keyword folder_path: Gets or sets the folder path of the vm. :paramtype folder_path: str :keyword host: Host inventory resource details. - :paramtype host: ~azure_arc_vmware_management_service_api.models.InventoryItemDetails + :paramtype host: ~azure.mgmt.connectedvmware.models.InventoryItemDetails :keyword resource_pool: ResourcePool inventory resource details. - :paramtype resource_pool: ~azure_arc_vmware_management_service_api.models.InventoryItemDetails + :paramtype resource_pool: ~azure.mgmt.connectedvmware.models.InventoryItemDetails :keyword cluster: Cluster inventory resource details. - :paramtype cluster: ~azure_arc_vmware_management_service_api.models.InventoryItemDetails + :paramtype cluster: ~azure.mgmt.connectedvmware.models.InventoryItemDetails :keyword instance_uuid: Gets or sets the instance uuid of the vm. :paramtype instance_uuid: str :keyword smbios_uuid: Gets or sets the SMBIOS UUID of the vm. @@ -4778,7 +4760,7 @@ class VirtualMachinesList(msrest.serialization.Model): :ivar next_link: Url to follow for getting next page of VirtualMachines. :vartype next_link: str :ivar value: Required. Array of VirtualMachines. - :vartype value: list[~azure_arc_vmware_management_service_api.models.VirtualMachine] + :vartype value: list[~azure.mgmt.connectedvmware.models.VirtualMachine] """ _validation = { @@ -4798,7 +4780,7 @@ def __init__( :keyword next_link: Url to follow for getting next page of VirtualMachines. :paramtype next_link: str :keyword value: Required. Array of VirtualMachines. - :paramtype value: list[~azure_arc_vmware_management_service_api.models.VirtualMachine] + :paramtype value: list[~azure.mgmt.connectedvmware.models.VirtualMachine] """ super(VirtualMachinesList, self).__init__(**kwargs) self.next_link = kwargs.get('next_link', None) @@ -4815,9 +4797,9 @@ class VirtualMachineTemplate(msrest.serialization.Model): :ivar location: Required. Gets or sets the location. :vartype location: str :ivar extended_location: Gets or sets the extended location. - :vartype extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :vartype extended_location: ~azure.mgmt.connectedvmware.models.ExtendedLocation :ivar system_data: The system data. - :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :vartype system_data: ~azure.mgmt.connectedvmware.models.SystemData :ivar tags: A set of tags. Gets or sets the Resource tags. :vartype tags: dict[str, str] :ivar name: Gets or sets the name. @@ -4852,16 +4834,15 @@ class VirtualMachineTemplate(msrest.serialization.Model): :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_arc_vmware_management_service_api.models.OsType + :vartype os_type: str or ~azure.mgmt.connectedvmware.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_arc_vmware_management_service_api.models.NetworkInterface] + :vartype network_interfaces: list[~azure.mgmt.connectedvmware.models.NetworkInterface] :ivar disks: Gets or sets the disks the template. - :vartype disks: list[~azure_arc_vmware_management_service_api.models.VirtualDisk] + :vartype disks: list[~azure.mgmt.connectedvmware.models.VirtualDisk] :ivar custom_resource_name: Gets the name of the corresponding resource in Kubernetes. :vartype custom_resource_name: str :ivar tools_version_status: Gets or sets the current version status of VMware Tools installed @@ -4870,11 +4851,12 @@ class VirtualMachineTemplate(msrest.serialization.Model): :ivar tools_version: Gets or sets the current version of VMware Tools. :vartype tools_version: str :ivar firmware_type: Firmware type. Possible values include: "bios", "efi". - :vartype firmware_type: str or ~azure_arc_vmware_management_service_api.models.FirmwareType + :vartype firmware_type: str or ~azure.mgmt.connectedvmware.models.FirmwareType :ivar statuses: The resource status information. - :vartype statuses: list[~azure_arc_vmware_management_service_api.models.ResourceStatus] - :ivar provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str + :vartype statuses: list[~azure.mgmt.connectedvmware.models.ResourceStatus] + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState """ _validation = { @@ -4939,7 +4921,7 @@ def __init__( :keyword location: Required. Gets or sets the location. :paramtype location: str :keyword extended_location: Gets or sets the extended location. - :paramtype extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :paramtype extended_location: ~azure.mgmt.connectedvmware.models.ExtendedLocation :keyword tags: A set of tags. Gets or sets the Resource tags. :paramtype tags: dict[str, str] :keyword kind: Metadata used by portal/tooling/etc to render different UX experiences for @@ -4997,7 +4979,7 @@ class VirtualMachineTemplateInventoryItem(InventoryItemProperties): :ivar inventory_type: Required. They inventory type.Constant filled by server. Possible values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", "Cluster", "Datastore", "Host". - :vartype inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + :vartype inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType :ivar managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. :vartype managed_resource_id: str @@ -5005,8 +4987,9 @@ class VirtualMachineTemplateInventoryItem(InventoryItemProperties): :vartype mo_ref_id: str :ivar mo_name: Gets or sets the vCenter Managed Object name for the inventory item. :vartype mo_name: str - :ivar provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState :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. @@ -5016,7 +4999,7 @@ class VirtualMachineTemplateInventoryItem(InventoryItemProperties): :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_arc_vmware_management_service_api.models.OsType + :vartype os_type: str or ~azure.mgmt.connectedvmware.models.OsType :ivar os_name: Gets or sets os name. :vartype os_name: str :ivar tools_version_status: Gets or sets the current version status of VMware Tools installed @@ -5073,7 +5056,7 @@ def __init__( :paramtype num_cores_per_socket: int :keyword os_type: Gets or sets the type of the os. Possible values include: "Windows", "Linux", "Other". - :paramtype os_type: str or ~azure_arc_vmware_management_service_api.models.OsType + :paramtype os_type: str or ~azure.mgmt.connectedvmware.models.OsType :keyword os_name: Gets or sets os name. :paramtype os_name: str :keyword folder_path: Gets or sets the folder path of the template. @@ -5099,7 +5082,7 @@ class VirtualMachineTemplatesList(msrest.serialization.Model): :ivar next_link: Url to follow for getting next page of VirtualMachineTemplates. :vartype next_link: str :ivar value: Required. Array of VirtualMachineTemplates. - :vartype value: list[~azure_arc_vmware_management_service_api.models.VirtualMachineTemplate] + :vartype value: list[~azure.mgmt.connectedvmware.models.VirtualMachineTemplate] """ _validation = { @@ -5119,7 +5102,7 @@ def __init__( :keyword next_link: Url to follow for getting next page of VirtualMachineTemplates. :paramtype next_link: str :keyword value: Required. Array of VirtualMachineTemplates. - :paramtype value: list[~azure_arc_vmware_management_service_api.models.VirtualMachineTemplate] + :paramtype value: list[~azure.mgmt.connectedvmware.models.VirtualMachineTemplate] """ super(VirtualMachineTemplatesList, self).__init__(**kwargs) self.next_link = kwargs.get('next_link', None) @@ -5132,18 +5115,17 @@ class VirtualMachineUpdate(msrest.serialization.Model): :ivar tags: A set of tags. Gets or sets the Resource tags. :vartype tags: dict[str, str] :ivar identity: The identity of the resource. - :vartype identity: ~azure_arc_vmware_management_service_api.models.Identity + :vartype identity: ~azure.mgmt.connectedvmware.models.Identity :ivar hardware_profile: Specifies the hardware settings for the virtual machine. - :vartype hardware_profile: ~azure_arc_vmware_management_service_api.models.HardwareProfile + :vartype hardware_profile: ~azure.mgmt.connectedvmware.models.HardwareProfile :ivar os_profile: OS properties. - :vartype os_profile: ~azure_arc_vmware_management_service_api.models.OsProfileUpdate + :vartype os_profile: ~azure.mgmt.connectedvmware.models.OsProfileUpdate :ivar storage_profile: Specifies the storage settings for the virtual machine disks. - :vartype storage_profile: ~azure_arc_vmware_management_service_api.models.StorageProfileUpdate + :vartype storage_profile: ~azure.mgmt.connectedvmware.models.StorageProfileUpdate :ivar network_profile: Specifies the network interfaces of the virtual machine. - :vartype network_profile: ~azure_arc_vmware_management_service_api.models.NetworkProfileUpdate + :vartype network_profile: ~azure.mgmt.connectedvmware.models.NetworkProfileUpdate :ivar guest_agent_profile: Specifies the guest agent settings for the virtual machine. - :vartype guest_agent_profile: - ~azure_arc_vmware_management_service_api.models.GuestAgentProfileUpdate + :vartype guest_agent_profile: ~azure.mgmt.connectedvmware.models.GuestAgentProfileUpdate """ _attribute_map = { @@ -5164,20 +5146,17 @@ def __init__( :keyword tags: A set of tags. Gets or sets the Resource tags. :paramtype tags: dict[str, str] :keyword identity: The identity of the resource. - :paramtype identity: ~azure_arc_vmware_management_service_api.models.Identity + :paramtype identity: ~azure.mgmt.connectedvmware.models.Identity :keyword hardware_profile: Specifies the hardware settings for the virtual machine. - :paramtype hardware_profile: ~azure_arc_vmware_management_service_api.models.HardwareProfile + :paramtype hardware_profile: ~azure.mgmt.connectedvmware.models.HardwareProfile :keyword os_profile: OS properties. - :paramtype os_profile: ~azure_arc_vmware_management_service_api.models.OsProfileUpdate + :paramtype os_profile: ~azure.mgmt.connectedvmware.models.OsProfileUpdate :keyword storage_profile: Specifies the storage settings for the virtual machine disks. - :paramtype storage_profile: - ~azure_arc_vmware_management_service_api.models.StorageProfileUpdate + :paramtype storage_profile: ~azure.mgmt.connectedvmware.models.StorageProfileUpdate :keyword network_profile: Specifies the network interfaces of the virtual machine. - :paramtype network_profile: - ~azure_arc_vmware_management_service_api.models.NetworkProfileUpdate + :paramtype network_profile: ~azure.mgmt.connectedvmware.models.NetworkProfileUpdate :keyword guest_agent_profile: Specifies the guest agent settings for the virtual machine. - :paramtype guest_agent_profile: - ~azure_arc_vmware_management_service_api.models.GuestAgentProfileUpdate + :paramtype guest_agent_profile: ~azure.mgmt.connectedvmware.models.GuestAgentProfileUpdate """ super(VirtualMachineUpdate, self).__init__(**kwargs) self.tags = kwargs.get('tags', None) @@ -5199,9 +5178,9 @@ class VirtualNetwork(msrest.serialization.Model): :ivar location: Required. Gets or sets the location. :vartype location: str :ivar extended_location: Gets or sets the extended location. - :vartype extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :vartype extended_location: ~azure.mgmt.connectedvmware.models.ExtendedLocation :ivar system_data: The system data. - :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :vartype system_data: ~azure.mgmt.connectedvmware.models.SystemData :ivar tags: A set of tags. Gets or sets the Resource tags. :vartype tags: dict[str, str] :ivar name: Gets or sets the name. @@ -5229,9 +5208,10 @@ class VirtualNetwork(msrest.serialization.Model): :ivar custom_resource_name: Gets the name of the corresponding resource in Kubernetes. :vartype custom_resource_name: str :ivar statuses: The resource status information. - :vartype statuses: list[~azure_arc_vmware_management_service_api.models.ResourceStatus] - :ivar provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str + :vartype statuses: list[~azure.mgmt.connectedvmware.models.ResourceStatus] + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState """ _validation = { @@ -5274,7 +5254,7 @@ def __init__( :keyword location: Required. Gets or sets the location. :paramtype location: str :keyword extended_location: Gets or sets the extended location. - :paramtype extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :paramtype extended_location: ~azure.mgmt.connectedvmware.models.ExtendedLocation :keyword tags: A set of tags. Gets or sets the Resource tags. :paramtype tags: dict[str, str] :keyword kind: Metadata used by portal/tooling/etc to render different UX experiences for @@ -5319,7 +5299,7 @@ class VirtualNetworkInventoryItem(InventoryItemProperties): :ivar inventory_type: Required. They inventory type.Constant filled by server. Possible values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", "Cluster", "Datastore", "Host". - :vartype inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + :vartype inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType :ivar managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. :vartype managed_resource_id: str @@ -5327,8 +5307,9 @@ class VirtualNetworkInventoryItem(InventoryItemProperties): :vartype mo_ref_id: str :ivar mo_name: Gets or sets the vCenter Managed Object name for the inventory item. :vartype mo_name: str - :ivar provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState """ _validation = { @@ -5370,7 +5351,7 @@ class VirtualNetworksList(msrest.serialization.Model): :ivar next_link: Url to follow for getting next page of VirtualNetworks. :vartype next_link: str :ivar value: Required. Array of VirtualNetworks. - :vartype value: list[~azure_arc_vmware_management_service_api.models.VirtualNetwork] + :vartype value: list[~azure.mgmt.connectedvmware.models.VirtualNetwork] """ _validation = { @@ -5390,7 +5371,7 @@ def __init__( :keyword next_link: Url to follow for getting next page of VirtualNetworks. :paramtype next_link: str :keyword value: Required. Array of VirtualNetworks. - :paramtype value: list[~azure_arc_vmware_management_service_api.models.VirtualNetwork] + :paramtype value: list[~azure.mgmt.connectedvmware.models.VirtualNetwork] """ super(VirtualNetworksList, self).__init__(**kwargs) self.next_link = kwargs.get('next_link', None) @@ -5402,7 +5383,7 @@ class VirtualSCSIController(msrest.serialization.Model): :ivar type: Gets or sets the controller type. Possible values include: "lsilogic", "buslogic", "pvscsi", "lsilogicsas". - :vartype type: str or ~azure_arc_vmware_management_service_api.models.SCSIControllerType + :vartype type: str or ~azure.mgmt.connectedvmware.models.SCSIControllerType :ivar controller_key: Gets or sets the key of the controller. :vartype controller_key: int :ivar bus_number: Gets or sets the bus number of the controller. @@ -5411,7 +5392,7 @@ class VirtualSCSIController(msrest.serialization.Model): :vartype scsi_ctlr_unit_number: int :ivar sharing: Gets or sets the sharing mode. Possible values include: "noSharing", "physicalSharing", "virtualSharing". - :vartype sharing: str or ~azure_arc_vmware_management_service_api.models.VirtualSCSISharing + :vartype sharing: str or ~azure.mgmt.connectedvmware.models.VirtualSCSISharing """ _attribute_map = { @@ -5429,7 +5410,7 @@ def __init__( """ :keyword type: Gets or sets the controller type. Possible values include: "lsilogic", "buslogic", "pvscsi", "lsilogicsas". - :paramtype type: str or ~azure_arc_vmware_management_service_api.models.SCSIControllerType + :paramtype type: str or ~azure.mgmt.connectedvmware.models.SCSIControllerType :keyword controller_key: Gets or sets the key of the controller. :paramtype controller_key: int :keyword bus_number: Gets or sets the bus number of the controller. @@ -5438,7 +5419,7 @@ def __init__( :paramtype scsi_ctlr_unit_number: int :keyword sharing: Gets or sets the sharing mode. Possible values include: "noSharing", "physicalSharing", "virtualSharing". - :paramtype sharing: str or ~azure_arc_vmware_management_service_api.models.VirtualSCSISharing + :paramtype sharing: str or ~azure.mgmt.connectedvmware.models.VirtualSCSISharing """ super(VirtualSCSIController, self).__init__(**kwargs) self.type = kwargs.get('type', None) @@ -5463,13 +5444,14 @@ class VmInstanceHybridIdentityMetadata(ProxyResource): :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :vartype system_data: ~azure.mgmt.connectedvmware.models.SystemData :ivar resource_uid: The unique identifier for the resource. :vartype resource_uid: str :ivar public_key: Gets or sets the Public Key. :vartype public_key: str - :ivar provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState """ _validation = { @@ -5514,8 +5496,7 @@ class VmInstanceHybridIdentityMetadataList(msrest.serialization.Model): :ivar next_link: Url to follow for getting next page of HybridIdentityMetadata. :vartype next_link: str :ivar value: Required. Array of HybridIdentityMetadata. - :vartype value: - list[~azure_arc_vmware_management_service_api.models.VmInstanceHybridIdentityMetadata] + :vartype value: list[~azure.mgmt.connectedvmware.models.VmInstanceHybridIdentityMetadata] """ _validation = { @@ -5535,8 +5516,7 @@ def __init__( :keyword next_link: Url to follow for getting next page of HybridIdentityMetadata. :paramtype next_link: str :keyword value: Required. Array of HybridIdentityMetadata. - :paramtype value: - list[~azure_arc_vmware_management_service_api.models.VmInstanceHybridIdentityMetadata] + :paramtype value: list[~azure.mgmt.connectedvmware.models.VmInstanceHybridIdentityMetadata] """ super(VmInstanceHybridIdentityMetadataList, self).__init__(**kwargs) self.next_link = kwargs.get('next_link', None) @@ -5549,7 +5529,7 @@ class WindowsParameters(msrest.serialization.Model): :ivar classifications_to_include: The update classifications to select when installing patches for Windows. :vartype classifications_to_include: list[str or - ~azure_arc_vmware_management_service_api.models.VMGuestPatchClassificationWindows] + ~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. @@ -5578,7 +5558,7 @@ def __init__( :keyword classifications_to_include: The update classifications to select when installing patches for Windows. :paramtype classifications_to_include: list[str or - ~azure_arc_vmware_management_service_api.models.VMGuestPatchClassificationWindows] + ~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. diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/models/_models_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/models/_models_py3.py index 2dee072b7ca..9f260bd1f84 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/models/_models_py3.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/models/_models_py3.py @@ -92,9 +92,9 @@ class Cluster(msrest.serialization.Model): :ivar location: Required. Gets or sets the location. :vartype location: str :ivar extended_location: Gets or sets the extended location. - :vartype extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :vartype extended_location: ~azure.mgmt.connectedvmware.models.ExtendedLocation :ivar system_data: The system data. - :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :vartype system_data: ~azure.mgmt.connectedvmware.models.SystemData :ivar tags: A set of tags. Gets or sets the Resource tags. :vartype tags: dict[str, str] :ivar name: Gets or sets the name. @@ -119,23 +119,24 @@ class Cluster(msrest.serialization.Model): :ivar mo_name: Gets or sets the vCenter Managed Object name for the cluster. :vartype mo_name: str :ivar statuses: The resource status information. - :vartype statuses: list[~azure_arc_vmware_management_service_api.models.ResourceStatus] + :vartype statuses: list[~azure.mgmt.connectedvmware.models.ResourceStatus] :ivar custom_resource_name: Gets the name of the corresponding resource in Kubernetes. :vartype custom_resource_name: str :ivar used_memory_gb: Gets the used physical memory on the cluster in GB. - :vartype used_memory_gb: str + :vartype used_memory_gb: long :ivar total_memory_gb: Gets the total amount of physical memory on the cluster in GB. - :vartype total_memory_gb: str - :ivar used_cpum_hz: Gets the used CPU usage across all cores on the cluster in MHz. - :vartype used_cpum_hz: str - :ivar total_cpum_hz: Gets the max CPU usage across all cores on the cluster in MHz. - :vartype total_cpum_hz: str + :vartype total_memory_gb: long + :ivar used_cpu_m_hz: Gets the used CPU usage across all cores on the cluster in MHz. + :vartype used_cpu_m_hz: long + :ivar total_cpu_m_hz: Gets the max CPU usage across all cores on the cluster in MHz. + :vartype total_cpu_m_hz: long :ivar datastore_ids: Gets the datastore ARM ids. :vartype datastore_ids: list[str] :ivar network_ids: Gets the network ARM ids. :vartype network_ids: list[str] - :ivar provisioning_state: Gets the provisioning state. - :vartype provisioning_state: str + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState """ _validation = { @@ -150,8 +151,8 @@ class Cluster(msrest.serialization.Model): 'custom_resource_name': {'readonly': True}, 'used_memory_gb': {'readonly': True}, 'total_memory_gb': {'readonly': True}, - 'used_cpum_hz': {'readonly': True}, - 'total_cpum_hz': {'readonly': True}, + 'used_cpu_m_hz': {'readonly': True}, + 'total_cpu_m_hz': {'readonly': True}, 'datastore_ids': {'readonly': True}, 'network_ids': {'readonly': True}, 'provisioning_state': {'readonly': True}, @@ -173,10 +174,10 @@ class Cluster(msrest.serialization.Model): 'mo_name': {'key': 'properties.moName', 'type': 'str'}, 'statuses': {'key': 'properties.statuses', 'type': '[ResourceStatus]'}, 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, - 'used_memory_gb': {'key': 'properties.usedMemoryGB', 'type': 'str'}, - 'total_memory_gb': {'key': 'properties.totalMemoryGB', 'type': 'str'}, - 'used_cpum_hz': {'key': 'properties.usedCPUMHz', 'type': 'str'}, - 'total_cpum_hz': {'key': 'properties.totalCPUMHz', 'type': 'str'}, + 'used_memory_gb': {'key': 'properties.usedMemoryGB', 'type': 'long'}, + 'total_memory_gb': {'key': 'properties.totalMemoryGB', 'type': 'long'}, + 'used_cpu_m_hz': {'key': 'properties.usedCpuMHz', 'type': 'long'}, + 'total_cpu_m_hz': {'key': 'properties.totalCpuMHz', 'type': 'long'}, 'datastore_ids': {'key': 'properties.datastoreIds', 'type': '[str]'}, 'network_ids': {'key': 'properties.networkIds', 'type': '[str]'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, @@ -198,7 +199,7 @@ def __init__( :keyword location: Required. Gets or sets the location. :paramtype location: str :keyword extended_location: Gets or sets the extended location. - :paramtype extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :paramtype extended_location: ~azure.mgmt.connectedvmware.models.ExtendedLocation :keyword tags: A set of tags. Gets or sets the Resource tags. :paramtype tags: dict[str, str] :keyword kind: Metadata used by portal/tooling/etc to render different UX experiences for @@ -232,8 +233,8 @@ def __init__( self.custom_resource_name = None self.used_memory_gb = None self.total_memory_gb = None - self.used_cpum_hz = None - self.total_cpum_hz = None + self.used_cpu_m_hz = None + self.total_cpu_m_hz = None self.datastore_ids = None self.network_ids = None self.provisioning_state = None @@ -252,7 +253,7 @@ class InventoryItemProperties(msrest.serialization.Model): :ivar inventory_type: Required. They inventory type.Constant filled by server. Possible values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", "Cluster", "Datastore", "Host". - :vartype inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + :vartype inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType :ivar managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. :vartype managed_resource_id: str @@ -260,8 +261,9 @@ class InventoryItemProperties(msrest.serialization.Model): :vartype mo_ref_id: str :ivar mo_name: Gets or sets the vCenter Managed Object name for the inventory item. :vartype mo_name: str - :ivar provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState """ _validation = { @@ -317,7 +319,7 @@ class ClusterInventoryItem(InventoryItemProperties): :ivar inventory_type: Required. They inventory type.Constant filled by server. Possible values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", "Cluster", "Datastore", "Host". - :vartype inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + :vartype inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType :ivar managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. :vartype managed_resource_id: str @@ -325,8 +327,9 @@ class ClusterInventoryItem(InventoryItemProperties): :vartype mo_ref_id: str :ivar mo_name: Gets or sets the vCenter Managed Object name for the inventory item. :vartype mo_name: str - :ivar provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState """ _validation = { @@ -372,7 +375,7 @@ class ClustersList(msrest.serialization.Model): :ivar next_link: Url to follow for getting next page of Clusters. :vartype next_link: str :ivar value: Required. Array of Clusters. - :vartype value: list[~azure_arc_vmware_management_service_api.models.Cluster] + :vartype value: list[~azure.mgmt.connectedvmware.models.Cluster] """ _validation = { @@ -395,7 +398,7 @@ def __init__( :keyword next_link: Url to follow for getting next page of Clusters. :paramtype next_link: str :keyword value: Required. Array of Clusters. - :paramtype value: list[~azure_arc_vmware_management_service_api.models.Cluster] + :paramtype value: list[~azure.mgmt.connectedvmware.models.Cluster] """ super(ClustersList, self).__init__(**kwargs) self.next_link = next_link @@ -454,9 +457,9 @@ class Datastore(msrest.serialization.Model): :ivar location: Required. Gets or sets the location. :vartype location: str :ivar extended_location: Gets or sets the extended location. - :vartype extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :vartype extended_location: ~azure.mgmt.connectedvmware.models.ExtendedLocation :ivar system_data: The system data. - :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :vartype system_data: ~azure.mgmt.connectedvmware.models.SystemData :ivar tags: A set of tags. Gets or sets the Resource tags. :vartype tags: dict[str, str] :ivar name: Gets or sets the name. @@ -482,7 +485,7 @@ class Datastore(msrest.serialization.Model): :ivar mo_name: Gets or sets the vCenter Managed Object name for the datastore. :vartype mo_name: str :ivar statuses: The resource status information. - :vartype statuses: list[~azure_arc_vmware_management_service_api.models.ResourceStatus] + :vartype statuses: list[~azure.mgmt.connectedvmware.models.ResourceStatus] :ivar custom_resource_name: Gets the name of the corresponding resource in Kubernetes. :vartype custom_resource_name: str :ivar capacity_gb: Gets or sets Maximum capacity of this datastore in GBs. @@ -492,8 +495,7 @@ class Datastore(msrest.serialization.Model): :ivar provisioning_state: Provisioning state of the resource. Possible values include: "Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". - :vartype provisioning_state: str or - ~azure_arc_vmware_management_service_api.models.ProvisioningState + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState """ _validation = { @@ -548,7 +550,7 @@ def __init__( :keyword location: Required. Gets or sets the location. :paramtype location: str :keyword extended_location: Gets or sets the extended location. - :paramtype extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :paramtype extended_location: ~azure.mgmt.connectedvmware.models.ExtendedLocation :keyword tags: A set of tags. Gets or sets the Resource tags. :paramtype tags: dict[str, str] :keyword kind: Metadata used by portal/tooling/etc to render different UX experiences for @@ -595,7 +597,7 @@ class DatastoreInventoryItem(InventoryItemProperties): :ivar inventory_type: Required. They inventory type.Constant filled by server. Possible values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", "Cluster", "Datastore", "Host". - :vartype inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + :vartype inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType :ivar managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. :vartype managed_resource_id: str @@ -603,8 +605,9 @@ class DatastoreInventoryItem(InventoryItemProperties): :vartype mo_ref_id: str :ivar mo_name: Gets or sets the vCenter Managed Object name for the inventory item. :vartype mo_name: str - :ivar provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState :ivar capacity_gb: Gets or sets Maximum capacity of this datastore, in GBs. :vartype capacity_gb: long :ivar free_space_gb: Gets or sets Available space of this datastore, in GBs. @@ -664,7 +667,7 @@ class DatastoresList(msrest.serialization.Model): :ivar next_link: Url to follow for getting next page of Datastores. :vartype next_link: str :ivar value: Required. Array of Datastores. - :vartype value: list[~azure_arc_vmware_management_service_api.models.Datastore] + :vartype value: list[~azure.mgmt.connectedvmware.models.Datastore] """ _validation = { @@ -687,7 +690,7 @@ def __init__( :keyword next_link: Url to follow for getting next page of Datastores. :paramtype next_link: str :keyword value: Required. Array of Datastores. - :paramtype value: list[~azure_arc_vmware_management_service_api.models.Datastore] + :paramtype value: list[~azure.mgmt.connectedvmware.models.Datastore] """ super(DatastoresList, self).__init__(**kwargs) self.next_link = next_link @@ -738,10 +741,9 @@ class ErrorDetail(msrest.serialization.Model): :ivar target: The error target. :vartype target: str :ivar details: The error details. - :vartype details: list[~azure_arc_vmware_management_service_api.models.ErrorDetail] + :vartype details: list[~azure.mgmt.connectedvmware.models.ErrorDetail] :ivar additional_info: The error additional info. - :vartype additional_info: - list[~azure_arc_vmware_management_service_api.models.ErrorAdditionalInfo] + :vartype additional_info: list[~azure.mgmt.connectedvmware.models.ErrorAdditionalInfo] """ _validation = { @@ -778,7 +780,7 @@ class ErrorResponse(msrest.serialization.Model): """Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). :ivar error: The error object. - :vartype error: ~azure_arc_vmware_management_service_api.models.ErrorDetail + :vartype error: ~azure.mgmt.connectedvmware.models.ErrorDetail """ _attribute_map = { @@ -793,7 +795,7 @@ def __init__( ): """ :keyword error: The error object. - :paramtype error: ~azure_arc_vmware_management_service_api.models.ErrorDetail + :paramtype error: ~azure.mgmt.connectedvmware.models.ErrorDetail """ super(ErrorResponse, self).__init__(**kwargs) self.error = error @@ -871,7 +873,7 @@ class Resource(msrest.serialization.Model): :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :vartype system_data: ~azure.mgmt.connectedvmware.models.SystemData """ _validation = { @@ -916,7 +918,7 @@ class ProxyResource(Resource): :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :vartype system_data: ~azure.mgmt.connectedvmware.models.SystemData """ _validation = { @@ -957,29 +959,28 @@ class GuestAgent(ProxyResource): :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :vartype system_data: ~azure.mgmt.connectedvmware.models.SystemData :ivar uuid: Gets or sets a unique identifier for this resource. :vartype uuid: str :ivar credentials: Username / Password Credentials to provision guest agent. - :vartype credentials: ~azure_arc_vmware_management_service_api.models.GuestCredential + :vartype credentials: ~azure.mgmt.connectedvmware.models.GuestCredential :ivar private_link_scope_resource_id: The resource id of the private link scope this machine is assigned to, if any. :vartype private_link_scope_resource_id: str :ivar http_proxy_config: HTTP Proxy configuration for the VM. - :vartype http_proxy_config: - ~azure_arc_vmware_management_service_api.models.HttpProxyConfiguration + :vartype http_proxy_config: ~azure.mgmt.connectedvmware.models.HttpProxyConfiguration :ivar provisioning_action: Gets or sets the guest agent provisioning action. Possible values include: "install", "uninstall", "repair". - :vartype provisioning_action: str or - ~azure_arc_vmware_management_service_api.models.ProvisioningAction + :vartype provisioning_action: str or ~azure.mgmt.connectedvmware.models.ProvisioningAction :ivar status: Gets or sets the guest agent status. :vartype status: str :ivar custom_resource_name: Gets the name of the corresponding resource in Kubernetes. :vartype custom_resource_name: str :ivar statuses: The resource status information. - :vartype statuses: list[~azure_arc_vmware_management_service_api.models.ResourceStatus] - :ivar provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str + :vartype statuses: list[~azure.mgmt.connectedvmware.models.ResourceStatus] + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState """ _validation = { @@ -1021,17 +1022,15 @@ def __init__( ): """ :keyword credentials: Username / Password Credentials to provision guest agent. - :paramtype credentials: ~azure_arc_vmware_management_service_api.models.GuestCredential + :paramtype credentials: ~azure.mgmt.connectedvmware.models.GuestCredential :keyword private_link_scope_resource_id: The resource id of the private link scope this machine is assigned to, if any. :paramtype private_link_scope_resource_id: str :keyword http_proxy_config: HTTP Proxy configuration for the VM. - :paramtype http_proxy_config: - ~azure_arc_vmware_management_service_api.models.HttpProxyConfiguration + :paramtype http_proxy_config: ~azure.mgmt.connectedvmware.models.HttpProxyConfiguration :keyword provisioning_action: Gets or sets the guest agent provisioning action. Possible values include: "install", "uninstall", "repair". - :paramtype provisioning_action: str or - ~azure_arc_vmware_management_service_api.models.ProvisioningAction + :paramtype provisioning_action: str or ~azure.mgmt.connectedvmware.models.ProvisioningAction """ super(GuestAgent, self).__init__(**kwargs) self.uuid = None @@ -1053,7 +1052,7 @@ class GuestAgentList(msrest.serialization.Model): :ivar next_link: Url to follow for getting next page of GuestAgent. :vartype next_link: str :ivar value: Required. Array of GuestAgent. - :vartype value: list[~azure_arc_vmware_management_service_api.models.GuestAgent] + :vartype value: list[~azure.mgmt.connectedvmware.models.GuestAgent] """ _validation = { @@ -1076,7 +1075,7 @@ def __init__( :keyword next_link: Url to follow for getting next page of GuestAgent. :paramtype next_link: str :keyword value: Required. Array of GuestAgent. - :paramtype value: list[~azure_arc_vmware_management_service_api.models.GuestAgent] + :paramtype value: list[~azure.mgmt.connectedvmware.models.GuestAgent] """ super(GuestAgentList, self).__init__(**kwargs) self.next_link = next_link @@ -1092,7 +1091,7 @@ class GuestAgentProfile(msrest.serialization.Model): :vartype vm_uuid: str :ivar status: The status of the hybrid machine agent. Possible values include: "Connected", "Disconnected", "Error". - :vartype status: str or ~azure_arc_vmware_management_service_api.models.StatusTypes + :vartype status: str or ~azure.mgmt.connectedvmware.models.StatusTypes :ivar last_status_change: The time of the last status change. :vartype last_status_change: ~datetime.datetime :ivar client_public_key: Gets or sets the Public Key provided by the client for enabling guest @@ -1103,7 +1102,7 @@ class GuestAgentProfile(msrest.serialization.Model): :ivar agent_version: The hybrid machine agent full version. :vartype agent_version: str :ivar error_details: Details about the error state. - :vartype error_details: list[~azure_arc_vmware_management_service_api.models.ErrorDetail] + :vartype error_details: list[~azure.mgmt.connectedvmware.models.ErrorDetail] """ _validation = { @@ -1279,9 +1278,9 @@ class Host(msrest.serialization.Model): :ivar location: Required. Gets or sets the location. :vartype location: str :ivar extended_location: Gets or sets the extended location. - :vartype extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :vartype extended_location: ~azure.mgmt.connectedvmware.models.ExtendedLocation :ivar system_data: The system data. - :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :vartype system_data: ~azure.mgmt.connectedvmware.models.SystemData :ivar tags: A set of tags. Gets or sets the Resource tags. :vartype tags: dict[str, str] :ivar name: Gets or sets the name. @@ -1305,23 +1304,24 @@ class Host(msrest.serialization.Model): :ivar mo_name: Gets or sets the vCenter Managed Object name for the host. :vartype mo_name: str :ivar statuses: The resource status information. - :vartype statuses: list[~azure_arc_vmware_management_service_api.models.ResourceStatus] + :vartype statuses: list[~azure.mgmt.connectedvmware.models.ResourceStatus] :ivar custom_resource_name: Gets the name of the corresponding resource in Kubernetes. :vartype custom_resource_name: str :ivar overall_memory_usage_gb: Gets the used physical memory on the host in GB. - :vartype overall_memory_usage_gb: str + :vartype overall_memory_usage_gb: long :ivar memory_size_gb: Gets the total amount of physical memory on the host in GB. - :vartype memory_size_gb: str + :vartype memory_size_gb: long :ivar overall_cpu_usage_m_hz: Gets the used CPU usage across all cores in MHz. - :vartype overall_cpu_usage_m_hz: str + :vartype overall_cpu_usage_m_hz: long :ivar cpu_mhz: Gets the max CPU usage across all cores in MHz. - :vartype cpu_mhz: str + :vartype cpu_mhz: long :ivar datastore_ids: Gets the datastore ARM ids. :vartype datastore_ids: list[str] :ivar network_ids: Gets the network ARM ids. :vartype network_ids: list[str] - :ivar provisioning_state: Gets the provisioning state. - :vartype provisioning_state: str + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState """ _validation = { @@ -1359,10 +1359,10 @@ class Host(msrest.serialization.Model): 'mo_name': {'key': 'properties.moName', 'type': 'str'}, 'statuses': {'key': 'properties.statuses', 'type': '[ResourceStatus]'}, 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, - 'overall_memory_usage_gb': {'key': 'properties.overallMemoryUsageGB', 'type': 'str'}, - 'memory_size_gb': {'key': 'properties.memorySizeGB', 'type': 'str'}, - 'overall_cpu_usage_m_hz': {'key': 'properties.overallCPUUsageMHz', 'type': 'str'}, - 'cpu_mhz': {'key': 'properties.CPUMhz', 'type': 'str'}, + 'overall_memory_usage_gb': {'key': 'properties.overallMemoryUsageGB', 'type': 'long'}, + 'memory_size_gb': {'key': 'properties.memorySizeGB', 'type': 'long'}, + 'overall_cpu_usage_m_hz': {'key': 'properties.overallCpuUsageMHz', 'type': 'long'}, + 'cpu_mhz': {'key': 'properties.cpuMhz', 'type': 'long'}, 'datastore_ids': {'key': 'properties.datastoreIds', 'type': '[str]'}, 'network_ids': {'key': 'properties.networkIds', 'type': '[str]'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, @@ -1384,7 +1384,7 @@ def __init__( :keyword location: Required. Gets or sets the location. :paramtype location: str :keyword extended_location: Gets or sets the extended location. - :paramtype extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :paramtype extended_location: ~azure.mgmt.connectedvmware.models.ExtendedLocation :keyword tags: A set of tags. Gets or sets the Resource tags. :paramtype tags: dict[str, str] :keyword kind: Metadata used by portal/tooling/etc to render different UX experiences for @@ -1434,7 +1434,7 @@ class HostInventoryItem(InventoryItemProperties): :ivar inventory_type: Required. They inventory type.Constant filled by server. Possible values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", "Cluster", "Datastore", "Host". - :vartype inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + :vartype inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType :ivar managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. :vartype managed_resource_id: str @@ -1442,10 +1442,11 @@ class HostInventoryItem(InventoryItemProperties): :vartype mo_ref_id: str :ivar mo_name: Gets or sets the vCenter Managed Object name for the inventory item. :vartype mo_name: str - :ivar provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState :ivar parent: Parent host inventory resource details. - :vartype parent: ~azure_arc_vmware_management_service_api.models.InventoryItemDetails + :vartype parent: ~azure.mgmt.connectedvmware.models.InventoryItemDetails """ _validation = { @@ -1481,7 +1482,7 @@ def __init__( :keyword mo_name: Gets or sets the vCenter Managed Object name for the inventory item. :paramtype mo_name: str :keyword parent: Parent host inventory resource details. - :paramtype parent: ~azure_arc_vmware_management_service_api.models.InventoryItemDetails + :paramtype parent: ~azure.mgmt.connectedvmware.models.InventoryItemDetails """ super(HostInventoryItem, self).__init__(managed_resource_id=managed_resource_id, mo_ref_id=mo_ref_id, mo_name=mo_name, **kwargs) self.inventory_type = 'Host' # type: str @@ -1496,7 +1497,7 @@ class HostsList(msrest.serialization.Model): :ivar next_link: Url to follow for getting next page of Hosts. :vartype next_link: str :ivar value: Required. Array of Hosts. - :vartype value: list[~azure_arc_vmware_management_service_api.models.Host] + :vartype value: list[~azure.mgmt.connectedvmware.models.Host] """ _validation = { @@ -1519,7 +1520,7 @@ def __init__( :keyword next_link: Url to follow for getting next page of Hosts. :paramtype next_link: str :keyword value: Required. Array of Hosts. - :paramtype value: list[~azure_arc_vmware_management_service_api.models.Host] + :paramtype value: list[~azure.mgmt.connectedvmware.models.Host] """ super(HostsList, self).__init__(**kwargs) self.next_link = next_link @@ -1566,15 +1567,16 @@ class HybridIdentityMetadata(ProxyResource): :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :vartype system_data: ~azure.mgmt.connectedvmware.models.SystemData :ivar vm_id: Gets or sets the Vm Id. :vartype vm_id: str :ivar public_key: Gets or sets the Public Key. :vartype public_key: str :ivar identity: The identity of the resource. - :vartype identity: ~azure_arc_vmware_management_service_api.models.Identity - :ivar provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str + :vartype identity: ~azure.mgmt.connectedvmware.models.Identity + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState """ _validation = { @@ -1625,7 +1627,7 @@ class HybridIdentityMetadataList(msrest.serialization.Model): :ivar next_link: Url to follow for getting next page of HybridIdentityMetadata. :vartype next_link: str :ivar value: Required. Array of HybridIdentityMetadata. - :vartype value: list[~azure_arc_vmware_management_service_api.models.HybridIdentityMetadata] + :vartype value: list[~azure.mgmt.connectedvmware.models.HybridIdentityMetadata] """ _validation = { @@ -1648,7 +1650,7 @@ def __init__( :keyword next_link: Url to follow for getting next page of HybridIdentityMetadata. :paramtype next_link: str :keyword value: Required. Array of HybridIdentityMetadata. - :paramtype value: list[~azure_arc_vmware_management_service_api.models.HybridIdentityMetadata] + :paramtype value: list[~azure.mgmt.connectedvmware.models.HybridIdentityMetadata] """ super(HybridIdentityMetadataList, self).__init__(**kwargs) self.next_link = next_link @@ -1668,7 +1670,7 @@ class Identity(msrest.serialization.Model): :vartype tenant_id: str :ivar type: Required. The type of managed service identity. Possible values include: "None", "SystemAssigned". - :vartype type: str or ~azure_arc_vmware_management_service_api.models.IdentityType + :vartype type: str or ~azure.mgmt.connectedvmware.models.IdentityType """ _validation = { @@ -1692,7 +1694,7 @@ def __init__( """ :keyword type: Required. The type of managed service identity. Possible values include: "None", "SystemAssigned". - :paramtype type: str or ~azure_arc_vmware_management_service_api.models.IdentityType + :paramtype type: str or ~azure.mgmt.connectedvmware.models.IdentityType """ super(Identity, self).__init__(**kwargs) self.principal_id = None @@ -1725,7 +1727,7 @@ class InfrastructureProfile(msrest.serialization.Model): :ivar smbios_uuid: Gets or sets the SMBIOS UUID of the vm. :vartype smbios_uuid: str :ivar firmware_type: Firmware type. Possible values include: "bios", "efi". - :vartype firmware_type: str or ~azure_arc_vmware_management_service_api.models.FirmwareType + :vartype firmware_type: str or ~azure.mgmt.connectedvmware.models.FirmwareType :ivar custom_resource_name: Gets the name of the corresponding resource in Kubernetes. :vartype custom_resource_name: str """ @@ -1773,7 +1775,7 @@ def __init__( :keyword smbios_uuid: Gets or sets the SMBIOS UUID of the vm. :paramtype smbios_uuid: str :keyword firmware_type: Firmware type. Possible values include: "bios", "efi". - :paramtype firmware_type: str or ~azure_arc_vmware_management_service_api.models.FirmwareType + :paramtype firmware_type: str or ~azure.mgmt.connectedvmware.models.FirmwareType """ super(InfrastructureProfile, self).__init__(**kwargs) self.template_id = template_id @@ -1805,7 +1807,7 @@ class InventoryItem(ProxyResource): :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :vartype system_data: ~azure.mgmt.connectedvmware.models.SystemData :ivar 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. @@ -1813,7 +1815,7 @@ class InventoryItem(ProxyResource): :ivar inventory_type: Required. They inventory type.Constant filled by server. Possible values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", "Cluster", "Datastore", "Host". - :vartype inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + :vartype inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType :ivar managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. :vartype managed_resource_id: str @@ -1821,8 +1823,9 @@ class InventoryItem(ProxyResource): :vartype mo_ref_id: str :ivar mo_name: Gets or sets the vCenter Managed Object name for the inventory item. :vartype mo_name: str - :ivar provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState """ _validation = { @@ -1888,7 +1891,7 @@ class InventoryItemDetails(msrest.serialization.Model): :vartype mo_name: str :ivar inventory_type: The inventory type. Possible values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", "Cluster", "Datastore", "Host". - :vartype inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + :vartype inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType """ _attribute_map = { @@ -1912,7 +1915,7 @@ def __init__( :paramtype mo_name: str :keyword inventory_type: The inventory type. Possible values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", "Cluster", "Datastore", "Host". - :paramtype inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + :paramtype inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType """ super(InventoryItemDetails, self).__init__(**kwargs) self.inventory_item_id = inventory_item_id @@ -1928,7 +1931,7 @@ class InventoryItemsList(msrest.serialization.Model): :ivar next_link: Url to follow for getting next page of InventoryItems. :vartype next_link: str :ivar value: Required. Array of InventoryItems. - :vartype value: list[~azure_arc_vmware_management_service_api.models.InventoryItem] + :vartype value: list[~azure.mgmt.connectedvmware.models.InventoryItem] """ _validation = { @@ -1951,7 +1954,7 @@ def __init__( :keyword next_link: Url to follow for getting next page of InventoryItems. :paramtype next_link: str :keyword value: Required. Array of InventoryItems. - :paramtype value: list[~azure_arc_vmware_management_service_api.models.InventoryItem] + :paramtype value: list[~azure.mgmt.connectedvmware.models.InventoryItem] """ super(InventoryItemsList, self).__init__(**kwargs) self.next_link = next_link @@ -1964,7 +1967,7 @@ class LinuxParameters(msrest.serialization.Model): :ivar classifications_to_include: The update classifications to select when installing patches for Linux. :vartype classifications_to_include: list[str or - ~azure_arc_vmware_management_service_api.models.VMGuestPatchClassificationLinux] + ~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] @@ -1991,7 +1994,7 @@ def __init__( :keyword classifications_to_include: The update classifications to select when installing patches for Linux. :paramtype classifications_to_include: list[str or - ~azure_arc_vmware_management_service_api.models.VMGuestPatchClassificationLinux] + ~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] @@ -2013,7 +2016,7 @@ class MachineExtension(msrest.serialization.Model): :ivar location: Gets or sets the location. :vartype location: str :ivar system_data: The system data. - :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :vartype system_data: ~azure.mgmt.connectedvmware.models.SystemData :ivar tags: A set of tags. Gets or sets the Resource tags. :vartype tags: dict[str, str] :ivar name: Gets or sets the name. @@ -2048,7 +2051,7 @@ class MachineExtension(msrest.serialization.Model): :vartype provisioning_state: str :ivar instance_view: The machine extension instance view. :vartype instance_view: - ~azure_arc_vmware_management_service_api.models.MachineExtensionPropertiesInstanceView + ~azure.mgmt.connectedvmware.models.MachineExtensionPropertiesInstanceView """ _validation = { @@ -2123,7 +2126,7 @@ def __init__( :paramtype protected_settings: any :keyword instance_view: The machine extension instance view. :paramtype instance_view: - ~azure_arc_vmware_management_service_api.models.MachineExtensionPropertiesInstanceView + ~azure.mgmt.connectedvmware.models.MachineExtensionPropertiesInstanceView """ super(MachineExtension, self).__init__(**kwargs) self.location = location @@ -2156,8 +2159,7 @@ class MachineExtensionInstanceView(msrest.serialization.Model): :ivar type_handler_version: Specifies the version of the script handler. :vartype type_handler_version: str :ivar status: Instance view status. - :vartype status: - ~azure_arc_vmware_management_service_api.models.MachineExtensionInstanceViewStatus + :vartype status: ~azure.mgmt.connectedvmware.models.MachineExtensionInstanceViewStatus """ _validation = { @@ -2181,8 +2183,7 @@ def __init__( ): """ :keyword status: Instance view status. - :paramtype status: - ~azure_arc_vmware_management_service_api.models.MachineExtensionInstanceViewStatus + :paramtype status: ~azure.mgmt.connectedvmware.models.MachineExtensionInstanceViewStatus """ super(MachineExtensionInstanceView, self).__init__(**kwargs) self.name = None @@ -2199,7 +2200,7 @@ class MachineExtensionInstanceViewStatus(msrest.serialization.Model): :ivar code: The status code. :vartype code: str :ivar level: The level code. Possible values include: "Info", "Warning", "Error". - :vartype level: str or ~azure_arc_vmware_management_service_api.models.StatusLevelTypes + :vartype level: str or ~azure.mgmt.connectedvmware.models.StatusLevelTypes :ivar display_status: The short localizable label for the status. :vartype display_status: str :ivar message: The detailed status message, including for alerts and error messages. @@ -2250,8 +2251,7 @@ class MachineExtensionPropertiesInstanceView(MachineExtensionInstanceView): :ivar type_handler_version: Specifies the version of the script handler. :vartype type_handler_version: str :ivar status: Instance view status. - :vartype status: - ~azure_arc_vmware_management_service_api.models.MachineExtensionInstanceViewStatus + :vartype status: ~azure.mgmt.connectedvmware.models.MachineExtensionInstanceViewStatus """ _validation = { @@ -2275,8 +2275,7 @@ def __init__( ): """ :keyword status: Instance view status. - :paramtype status: - ~azure_arc_vmware_management_service_api.models.MachineExtensionInstanceViewStatus + :paramtype status: ~azure.mgmt.connectedvmware.models.MachineExtensionInstanceViewStatus """ super(MachineExtensionPropertiesInstanceView, self).__init__(status=status, **kwargs) @@ -2285,7 +2284,7 @@ class MachineExtensionsListResult(msrest.serialization.Model): """Describes the Machine Extensions List Result. :ivar value: The list of extensions. - :vartype value: list[~azure_arc_vmware_management_service_api.models.MachineExtension] + :vartype value: list[~azure.mgmt.connectedvmware.models.MachineExtension] :ivar next_link: The uri to fetch the next page of machine extensions. Call ListNext() with this to fetch the next page of extensions. :vartype next_link: str @@ -2305,7 +2304,7 @@ def __init__( ): """ :keyword value: The list of extensions. - :paramtype value: list[~azure_arc_vmware_management_service_api.models.MachineExtension] + :paramtype value: list[~azure.mgmt.connectedvmware.models.MachineExtension] :keyword next_link: The uri to fetch the next page of machine extensions. Call ListNext() with this to fetch the next page of extensions. :paramtype next_link: str @@ -2435,7 +2434,7 @@ class MachineExtensionUpgrade(msrest.serialization.Model): :ivar extension_targets: Describes the Extension Target Properties. :vartype extension_targets: dict[str, - ~azure_arc_vmware_management_service_api.models.ExtensionTargetProperties] + ~azure.mgmt.connectedvmware.models.ExtensionTargetProperties] """ _attribute_map = { @@ -2451,7 +2450,7 @@ def __init__( """ :keyword extension_targets: Describes the Extension Target Properties. :paramtype extension_targets: dict[str, - ~azure_arc_vmware_management_service_api.models.ExtensionTargetProperties] + ~azure.mgmt.connectedvmware.models.ExtensionTargetProperties] """ super(MachineExtensionUpgrade, self).__init__(**kwargs) self.extension_targets = extension_targets @@ -2476,11 +2475,10 @@ class NetworkInterface(msrest.serialization.Model): :vartype network_id: str :ivar nic_type: NIC type. Possible values include: "vmxnet3", "vmxnet2", "vmxnet", "e1000", "e1000e", "pcnet32". - :vartype nic_type: str or ~azure_arc_vmware_management_service_api.models.NICType + :vartype nic_type: str or ~azure.mgmt.connectedvmware.models.NICType :ivar power_on_boot: Gets or sets the power on boot. Possible values include: "enabled", "disabled". - :vartype power_on_boot: str or - ~azure_arc_vmware_management_service_api.models.PowerOnBootOption + :vartype power_on_boot: str or ~azure.mgmt.connectedvmware.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. @@ -2491,7 +2489,7 @@ class NetworkInterface(msrest.serialization.Model): :ivar device_key: Gets or sets the device key value. :vartype device_key: int :ivar ip_settings: Gets or sets the ipsettings. - :vartype ip_settings: ~azure_arc_vmware_management_service_api.models.NicIPSettings + :vartype ip_settings: ~azure.mgmt.connectedvmware.models.NicIPSettings """ _validation = { @@ -2535,15 +2533,14 @@ def __init__( :paramtype network_id: str :keyword nic_type: NIC type. Possible values include: "vmxnet3", "vmxnet2", "vmxnet", "e1000", "e1000e", "pcnet32". - :paramtype nic_type: str or ~azure_arc_vmware_management_service_api.models.NICType + :paramtype nic_type: str or ~azure.mgmt.connectedvmware.models.NICType :keyword power_on_boot: Gets or sets the power on boot. Possible values include: "enabled", "disabled". - :paramtype power_on_boot: str or - ~azure_arc_vmware_management_service_api.models.PowerOnBootOption + :paramtype power_on_boot: str or ~azure.mgmt.connectedvmware.models.PowerOnBootOption :keyword device_key: Gets or sets the device key value. :paramtype device_key: int :keyword ip_settings: Gets or sets the ipsettings. - :paramtype ip_settings: ~azure_arc_vmware_management_service_api.models.NicIPSettings + :paramtype ip_settings: ~azure.mgmt.connectedvmware.models.NicIPSettings """ super(NetworkInterface, self).__init__(**kwargs) self.name = name @@ -2569,11 +2566,10 @@ class NetworkInterfaceUpdate(msrest.serialization.Model): :vartype network_id: str :ivar nic_type: NIC type. Possible values include: "vmxnet3", "vmxnet2", "vmxnet", "e1000", "e1000e", "pcnet32". - :vartype nic_type: str or ~azure_arc_vmware_management_service_api.models.NICType + :vartype nic_type: str or ~azure.mgmt.connectedvmware.models.NICType :ivar power_on_boot: Gets or sets the power on boot. Possible values include: "enabled", "disabled". - :vartype power_on_boot: str or - ~azure_arc_vmware_management_service_api.models.PowerOnBootOption + :vartype power_on_boot: str or ~azure.mgmt.connectedvmware.models.PowerOnBootOption :ivar device_key: Gets or sets the device key value. :vartype device_key: int """ @@ -2604,11 +2600,10 @@ def __init__( :paramtype network_id: str :keyword nic_type: NIC type. Possible values include: "vmxnet3", "vmxnet2", "vmxnet", "e1000", "e1000e", "pcnet32". - :paramtype nic_type: str or ~azure_arc_vmware_management_service_api.models.NICType + :paramtype nic_type: str or ~azure.mgmt.connectedvmware.models.NICType :keyword power_on_boot: Gets or sets the power on boot. Possible values include: "enabled", "disabled". - :paramtype power_on_boot: str or - ~azure_arc_vmware_management_service_api.models.PowerOnBootOption + :paramtype power_on_boot: str or ~azure.mgmt.connectedvmware.models.PowerOnBootOption :keyword device_key: Gets or sets the device key value. :paramtype device_key: int """ @@ -2625,8 +2620,7 @@ class NetworkProfile(msrest.serialization.Model): :ivar network_interfaces: Gets or sets the list of network interfaces associated with the virtual machine. - :vartype network_interfaces: - list[~azure_arc_vmware_management_service_api.models.NetworkInterface] + :vartype network_interfaces: list[~azure.mgmt.connectedvmware.models.NetworkInterface] """ _attribute_map = { @@ -2642,8 +2636,7 @@ def __init__( """ :keyword network_interfaces: Gets or sets the list of network interfaces associated with the virtual machine. - :paramtype network_interfaces: - list[~azure_arc_vmware_management_service_api.models.NetworkInterface] + :paramtype network_interfaces: list[~azure.mgmt.connectedvmware.models.NetworkInterface] """ super(NetworkProfile, self).__init__(**kwargs) self.network_interfaces = network_interfaces @@ -2654,8 +2647,7 @@ class NetworkProfileUpdate(msrest.serialization.Model): :ivar network_interfaces: Gets or sets the list of network interfaces associated with the virtual machine. - :vartype network_interfaces: - list[~azure_arc_vmware_management_service_api.models.NetworkInterfaceUpdate] + :vartype network_interfaces: list[~azure.mgmt.connectedvmware.models.NetworkInterfaceUpdate] """ _attribute_map = { @@ -2671,8 +2663,7 @@ def __init__( """ :keyword network_interfaces: Gets or sets the list of network interfaces associated with the virtual machine. - :paramtype network_interfaces: - list[~azure_arc_vmware_management_service_api.models.NetworkInterfaceUpdate] + :paramtype network_interfaces: list[~azure.mgmt.connectedvmware.models.NetworkInterfaceUpdate] """ super(NetworkProfileUpdate, self).__init__(**kwargs) self.network_interfaces = network_interfaces @@ -2722,8 +2713,7 @@ class NicIPSettings(msrest.serialization.Model): :ivar allocation_method: Gets or sets the nic allocation method. Possible values include: "unset", "dynamic", "static", "linklayer", "random", "other". - :vartype allocation_method: str or - ~azure_arc_vmware_management_service_api.models.IPAddressAllocationMethod + :vartype allocation_method: str or ~azure.mgmt.connectedvmware.models.IPAddressAllocationMethod :ivar dns_servers: Gets or sets the dns servers. :vartype dns_servers: list[str] :ivar gateway: Gets or sets the gateway. @@ -2738,8 +2728,7 @@ class NicIPSettings(msrest.serialization.Model): :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_arc_vmware_management_service_api.models.NicIPAddressSettings] + :vartype ip_address_info: list[~azure.mgmt.connectedvmware.models.NicIPAddressSettings] """ _validation = { @@ -2773,7 +2762,7 @@ def __init__( :keyword allocation_method: Gets or sets the nic allocation method. Possible values include: "unset", "dynamic", "static", "linklayer", "random", "other". :paramtype allocation_method: str or - ~azure_arc_vmware_management_service_api.models.IPAddressAllocationMethod + ~azure.mgmt.connectedvmware.models.IPAddressAllocationMethod :keyword dns_servers: Gets or sets the dns servers. :paramtype dns_servers: list[str] :keyword gateway: Gets or sets the gateway. @@ -2802,7 +2791,7 @@ class Operation(msrest.serialization.Model): :ivar is_data_action: Indicates whether the operation is data action or not. :vartype is_data_action: bool :ivar display: Properties of the operation. - :vartype display: ~azure_arc_vmware_management_service_api.models.OperationDisplay + :vartype display: ~azure.mgmt.connectedvmware.models.OperationDisplay """ _attribute_map = { @@ -2825,7 +2814,7 @@ def __init__( :keyword is_data_action: Indicates whether the operation is data action or not. :paramtype is_data_action: bool :keyword display: Properties of the operation. - :paramtype display: ~azure_arc_vmware_management_service_api.models.OperationDisplay + :paramtype display: ~azure.mgmt.connectedvmware.models.OperationDisplay """ super(Operation, self).__init__(**kwargs) self.name = name @@ -2887,7 +2876,7 @@ class OperationsList(msrest.serialization.Model): :ivar next_link: Url to follow for getting next page of operations. :vartype next_link: str :ivar value: Required. Array of operations. - :vartype value: list[~azure_arc_vmware_management_service_api.models.Operation] + :vartype value: list[~azure.mgmt.connectedvmware.models.Operation] """ _validation = { @@ -2910,7 +2899,7 @@ def __init__( :keyword next_link: Url to follow for getting next page of operations. :paramtype next_link: str :keyword value: Required. Array of operations. - :paramtype value: list[~azure_arc_vmware_management_service_api.models.Operation] + :paramtype value: list[~azure.mgmt.connectedvmware.models.Operation] """ super(OperationsList, self).__init__(**kwargs) self.next_link = next_link @@ -2935,7 +2924,7 @@ class OsProfile(msrest.serialization.Model): :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_arc_vmware_management_service_api.models.OsType + :vartype os_type: str or ~azure.mgmt.connectedvmware.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 @@ -2948,10 +2937,9 @@ class OsProfile(msrest.serialization.Model): :vartype tools_version: str :ivar windows_configuration: Specifies the windows configuration for update management. :vartype windows_configuration: - ~azure_arc_vmware_management_service_api.models.OsProfileWindowsConfiguration + ~azure.mgmt.connectedvmware.models.OsProfileWindowsConfiguration :ivar linux_configuration: Specifies the linux configuration for update management. - :vartype linux_configuration: - ~azure_arc_vmware_management_service_api.models.OsProfileLinuxConfiguration + :vartype linux_configuration: ~azure.mgmt.connectedvmware.models.OsProfileLinuxConfiguration """ _validation = { @@ -3000,13 +2988,12 @@ def __init__( :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_arc_vmware_management_service_api.models.OsType + :paramtype os_type: str or ~azure.mgmt.connectedvmware.models.OsType :keyword windows_configuration: Specifies the windows configuration for update management. :paramtype windows_configuration: - ~azure_arc_vmware_management_service_api.models.OsProfileWindowsConfiguration + ~azure.mgmt.connectedvmware.models.OsProfileWindowsConfiguration :keyword linux_configuration: Specifies the linux configuration for update management. - :paramtype linux_configuration: - ~azure_arc_vmware_management_service_api.models.OsProfileLinuxConfiguration + :paramtype linux_configuration: ~azure.mgmt.connectedvmware.models.OsProfileLinuxConfiguration """ super(OsProfile, self).__init__(**kwargs) self.computer_name = computer_name @@ -3038,7 +3025,7 @@ class OsProfileForVMInstance(msrest.serialization.Model): :vartype guest_id: str :ivar os_type: Gets or sets the type of the os. Possible values include: "Windows", "Linux", "Other". - :vartype os_type: str or ~azure_arc_vmware_management_service_api.models.OsType + :vartype os_type: str or ~azure.mgmt.connectedvmware.models.OsType :ivar os_sku: Gets or sets os sku. :vartype os_sku: str :ivar tools_running_status: Gets or sets the current running status of VMware Tools running in @@ -3091,7 +3078,7 @@ def __init__( :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_arc_vmware_management_service_api.models.OsType + :paramtype os_type: str or ~azure.mgmt.connectedvmware.models.OsType """ super(OsProfileForVMInstance, self).__init__(**kwargs) self.computer_name = computer_name @@ -3142,10 +3129,10 @@ class OsProfileUpdate(msrest.serialization.Model): :ivar windows_configuration: Specifies the windows configuration for update management. :vartype windows_configuration: - ~azure_arc_vmware_management_service_api.models.OsProfileUpdateWindowsConfiguration + ~azure.mgmt.connectedvmware.models.OsProfileUpdateWindowsConfiguration :ivar linux_configuration: Specifies the linux configuration for update management. :vartype linux_configuration: - ~azure_arc_vmware_management_service_api.models.OsProfileUpdateLinuxConfiguration + ~azure.mgmt.connectedvmware.models.OsProfileUpdateLinuxConfiguration """ _attribute_map = { @@ -3163,10 +3150,10 @@ def __init__( """ :keyword windows_configuration: Specifies the windows configuration for update management. :paramtype windows_configuration: - ~azure_arc_vmware_management_service_api.models.OsProfileUpdateWindowsConfiguration + ~azure.mgmt.connectedvmware.models.OsProfileUpdateWindowsConfiguration :keyword linux_configuration: Specifies the linux configuration for update management. :paramtype linux_configuration: - ~azure_arc_vmware_management_service_api.models.OsProfileUpdateLinuxConfiguration + ~azure.mgmt.connectedvmware.models.OsProfileUpdateLinuxConfiguration """ super(OsProfileUpdate, self).__init__(**kwargs) self.windows_configuration = windows_configuration @@ -3333,9 +3320,9 @@ class ResourcePool(msrest.serialization.Model): :ivar location: Required. Gets or sets the location. :vartype location: str :ivar extended_location: Gets or sets the extended location. - :vartype extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :vartype extended_location: ~azure.mgmt.connectedvmware.models.ExtendedLocation :ivar system_data: The system data. - :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :vartype system_data: ~azure.mgmt.connectedvmware.models.SystemData :ivar tags: A set of tags. Gets or sets the Resource tags. :vartype tags: dict[str, str] :ivar name: Gets or sets the name. @@ -3397,9 +3384,10 @@ class ResourcePool(msrest.serialization.Model): :ivar network_ids: Gets the network ARM ids. :vartype network_ids: list[str] :ivar statuses: The resource status information. - :vartype statuses: list[~azure_arc_vmware_management_service_api.models.ResourceStatus] - :ivar provisioning_state: Gets the provisioning state. - :vartype provisioning_state: str + :vartype statuses: list[~azure.mgmt.connectedvmware.models.ResourceStatus] + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState """ _validation = { @@ -3449,8 +3437,8 @@ class ResourcePool(msrest.serialization.Model): 'mem_limit_mb': {'key': 'properties.memLimitMB', 'type': 'long'}, 'mem_overall_usage_gb': {'key': 'properties.memOverallUsageGB', 'type': 'long'}, 'mem_capacity_gb': {'key': 'properties.memCapacityGB', 'type': 'long'}, - 'cpu_overall_usage_m_hz': {'key': 'properties.CPUOverallUsageMHz', 'type': 'long'}, - 'cpu_capacity_m_hz': {'key': 'properties.CPUCapacityMHz', 'type': 'long'}, + 'cpu_overall_usage_m_hz': {'key': 'properties.cpuOverallUsageMHz', 'type': 'long'}, + 'cpu_capacity_m_hz': {'key': 'properties.cpuCapacityMHz', 'type': 'long'}, 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, 'datastore_ids': {'key': 'properties.datastoreIds', 'type': '[str]'}, 'network_ids': {'key': 'properties.networkIds', 'type': '[str]'}, @@ -3474,7 +3462,7 @@ def __init__( :keyword location: Required. Gets or sets the location. :paramtype location: str :keyword extended_location: Gets or sets the extended location. - :paramtype extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :paramtype extended_location: ~azure.mgmt.connectedvmware.models.ExtendedLocation :keyword tags: A set of tags. Gets or sets the Resource tags. :paramtype tags: dict[str, str] :keyword kind: Metadata used by portal/tooling/etc to render different UX experiences for @@ -3531,7 +3519,7 @@ class ResourcePoolInventoryItem(InventoryItemProperties): :ivar inventory_type: Required. They inventory type.Constant filled by server. Possible values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", "Cluster", "Datastore", "Host". - :vartype inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + :vartype inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType :ivar managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. :vartype managed_resource_id: str @@ -3539,10 +3527,11 @@ class ResourcePoolInventoryItem(InventoryItemProperties): :vartype mo_ref_id: str :ivar mo_name: Gets or sets the vCenter Managed Object name for the inventory item. :vartype mo_name: str - :ivar provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState :ivar parent: Parent resourcePool inventory resource details. - :vartype parent: ~azure_arc_vmware_management_service_api.models.InventoryItemDetails + :vartype parent: ~azure.mgmt.connectedvmware.models.InventoryItemDetails """ _validation = { @@ -3578,7 +3567,7 @@ def __init__( :keyword mo_name: Gets or sets the vCenter Managed Object name for the inventory item. :paramtype mo_name: str :keyword parent: Parent resourcePool inventory resource details. - :paramtype parent: ~azure_arc_vmware_management_service_api.models.InventoryItemDetails + :paramtype parent: ~azure.mgmt.connectedvmware.models.InventoryItemDetails """ 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' # type: str @@ -3593,7 +3582,7 @@ class ResourcePoolsList(msrest.serialization.Model): :ivar next_link: Url to follow for getting next page of ResourcePools. :vartype next_link: str :ivar value: Required. Array of ResourcePools. - :vartype value: list[~azure_arc_vmware_management_service_api.models.ResourcePool] + :vartype value: list[~azure.mgmt.connectedvmware.models.ResourcePool] """ _validation = { @@ -3616,7 +3605,7 @@ def __init__( :keyword next_link: Url to follow for getting next page of ResourcePools. :paramtype next_link: str :keyword value: Required. Array of ResourcePools. - :paramtype value: list[~azure_arc_vmware_management_service_api.models.ResourcePool] + :paramtype value: list[~azure.mgmt.connectedvmware.models.ResourcePool] """ super(ResourcePoolsList, self).__init__(**kwargs) self.next_link = next_link @@ -3680,7 +3669,7 @@ class SecurityProfile(msrest.serialization.Model): :ivar uefi_settings: Specifies the security settings like secure boot used while creating the virtual machine. - :vartype uefi_settings: ~azure_arc_vmware_management_service_api.models.UefiSettings + :vartype uefi_settings: ~azure.mgmt.connectedvmware.models.UefiSettings """ _attribute_map = { @@ -3696,7 +3685,7 @@ def __init__( """ :keyword uefi_settings: Specifies the security settings like secure boot used while creating the virtual machine. - :paramtype uefi_settings: ~azure_arc_vmware_management_service_api.models.UefiSettings + :paramtype uefi_settings: ~azure.mgmt.connectedvmware.models.UefiSettings """ super(SecurityProfile, self).__init__(**kwargs) self.uefi_settings = uefi_settings @@ -3737,11 +3726,10 @@ class StorageProfile(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar disks: Gets or sets the list of virtual disks associated with the virtual machine. - :vartype disks: list[~azure_arc_vmware_management_service_api.models.VirtualDisk] + :vartype disks: list[~azure.mgmt.connectedvmware.models.VirtualDisk] :ivar scsi_controllers: Gets or sets the list of virtual SCSI controllers associated with the virtual machine. - :vartype scsi_controllers: - list[~azure_arc_vmware_management_service_api.models.VirtualSCSIController] + :vartype scsi_controllers: list[~azure.mgmt.connectedvmware.models.VirtualSCSIController] """ _validation = { @@ -3761,7 +3749,7 @@ def __init__( ): """ :keyword disks: Gets or sets the list of virtual disks associated with the virtual machine. - :paramtype disks: list[~azure_arc_vmware_management_service_api.models.VirtualDisk] + :paramtype disks: list[~azure.mgmt.connectedvmware.models.VirtualDisk] """ super(StorageProfile, self).__init__(**kwargs) self.disks = disks @@ -3772,7 +3760,7 @@ class StorageProfileUpdate(msrest.serialization.Model): """Specifies the storage settings for the virtual machine disks. :ivar disks: Gets or sets the list of virtual disks associated with the virtual machine. - :vartype disks: list[~azure_arc_vmware_management_service_api.models.VirtualDiskUpdate] + :vartype disks: list[~azure.mgmt.connectedvmware.models.VirtualDiskUpdate] """ _attribute_map = { @@ -3787,7 +3775,7 @@ def __init__( ): """ :keyword disks: Gets or sets the list of virtual disks associated with the virtual machine. - :paramtype disks: list[~azure_arc_vmware_management_service_api.models.VirtualDiskUpdate] + :paramtype disks: list[~azure.mgmt.connectedvmware.models.VirtualDiskUpdate] """ super(StorageProfileUpdate, self).__init__(**kwargs) self.disks = disks @@ -3800,15 +3788,14 @@ class SystemData(msrest.serialization.Model): :vartype created_by: str :ivar created_by_type: The type of identity that created the resource. Possible values include: "User", "Application", "ManagedIdentity", "Key". - :vartype created_by_type: str or ~azure_arc_vmware_management_service_api.models.CreatedByType + :vartype created_by_type: str or ~azure.mgmt.connectedvmware.models.CreatedByType :ivar created_at: The timestamp of resource creation (UTC). :vartype created_at: ~datetime.datetime :ivar last_modified_by: The identity that last modified the resource. :vartype last_modified_by: str :ivar last_modified_by_type: The type of identity that last modified the resource. Possible values include: "User", "Application", "ManagedIdentity", "Key". - :vartype last_modified_by_type: str or - ~azure_arc_vmware_management_service_api.models.CreatedByType + :vartype last_modified_by_type: str or ~azure.mgmt.connectedvmware.models.CreatedByType :ivar last_modified_at: The timestamp of resource last modification (UTC). :vartype last_modified_at: ~datetime.datetime """ @@ -3838,16 +3825,14 @@ def __init__( :paramtype created_by: str :keyword created_by_type: The type of identity that created the resource. Possible values include: "User", "Application", "ManagedIdentity", "Key". - :paramtype created_by_type: str or - ~azure_arc_vmware_management_service_api.models.CreatedByType + :paramtype created_by_type: str or ~azure.mgmt.connectedvmware.models.CreatedByType :keyword created_at: The timestamp of resource creation (UTC). :paramtype created_at: ~datetime.datetime :keyword last_modified_by: The identity that last modified the resource. :paramtype last_modified_by: str :keyword last_modified_by_type: The type of identity that last modified the resource. Possible values include: "User", "Application", "ManagedIdentity", "Key". - :paramtype last_modified_by_type: str or - ~azure_arc_vmware_management_service_api.models.CreatedByType + :paramtype last_modified_by_type: str or ~azure.mgmt.connectedvmware.models.CreatedByType :keyword last_modified_at: The timestamp of resource last modification (UTC). :paramtype last_modified_at: ~datetime.datetime """ @@ -3897,9 +3882,9 @@ class VCenter(msrest.serialization.Model): :ivar location: Required. Gets or sets the location. :vartype location: str :ivar extended_location: Gets or sets the extended location. - :vartype extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :vartype extended_location: ~azure.mgmt.connectedvmware.models.ExtendedLocation :ivar system_data: The system data. - :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :vartype system_data: ~azure.mgmt.connectedvmware.models.SystemData :ivar tags: A set of tags. Gets or sets the Resource tags. :vartype tags: dict[str, str] :ivar name: Gets or sets the name. @@ -3927,11 +3912,12 @@ class VCenter(msrest.serialization.Model): :ivar custom_resource_name: Gets the name of the corresponding resource in Kubernetes. :vartype custom_resource_name: str :ivar credentials: Username / Password Credentials to connect to vcenter. - :vartype credentials: ~azure_arc_vmware_management_service_api.models.VICredential + :vartype credentials: ~azure.mgmt.connectedvmware.models.VICredential :ivar statuses: The resource status information. - :vartype statuses: list[~azure_arc_vmware_management_service_api.models.ResourceStatus] - :ivar provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str + :vartype statuses: list[~azure.mgmt.connectedvmware.models.ResourceStatus] + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState """ _validation = { @@ -3988,7 +3974,7 @@ def __init__( :keyword location: Required. Gets or sets the location. :paramtype location: str :keyword extended_location: Gets or sets the extended location. - :paramtype extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :paramtype extended_location: ~azure.mgmt.connectedvmware.models.ExtendedLocation :keyword tags: A set of tags. Gets or sets the Resource tags. :paramtype tags: dict[str, str] :keyword kind: Metadata used by portal/tooling/etc to render different UX experiences for @@ -4000,7 +3986,7 @@ def __init__( :keyword port: Gets or sets the port of the vCenter. :paramtype port: int :keyword credentials: Username / Password Credentials to connect to vcenter. - :paramtype credentials: ~azure_arc_vmware_management_service_api.models.VICredential + :paramtype credentials: ~azure.mgmt.connectedvmware.models.VICredential """ super(VCenter, self).__init__(**kwargs) self.location = location @@ -4031,7 +4017,7 @@ class VCentersList(msrest.serialization.Model): :ivar next_link: Url to follow for getting next page of VCenters. :vartype next_link: str :ivar value: Required. Array of VCenters. - :vartype value: list[~azure_arc_vmware_management_service_api.models.VCenter] + :vartype value: list[~azure.mgmt.connectedvmware.models.VCenter] """ _validation = { @@ -4054,7 +4040,7 @@ def __init__( :keyword next_link: Url to follow for getting next page of VCenters. :paramtype next_link: str :keyword value: Required. Array of VCenters. - :paramtype value: list[~azure_arc_vmware_management_service_api.models.VCenter] + :paramtype value: list[~azure.mgmt.connectedvmware.models.VCenter] """ super(VCentersList, self).__init__(**kwargs) self.next_link = next_link @@ -4110,7 +4096,7 @@ class VirtualDisk(msrest.serialization.Model): :vartype device_key: int :ivar disk_mode: Gets or sets the disk mode. Possible values include: "persistent", "independent_persistent", "independent_nonpersistent". - :vartype disk_mode: str or ~azure_arc_vmware_management_service_api.models.DiskMode + :vartype disk_mode: str or ~azure.mgmt.connectedvmware.models.DiskMode :ivar controller_key: Gets or sets the controller id. :vartype controller_key: int :ivar unit_number: Gets or sets the unit number of the disk on the controller. @@ -4119,7 +4105,7 @@ class VirtualDisk(msrest.serialization.Model): :vartype device_name: str :ivar disk_type: Gets or sets the disk backing type. Possible values include: "flat", "pmem", "rawphysical", "rawvirtual", "sparse", "sesparse", "unknown". - :vartype disk_type: str or ~azure_arc_vmware_management_service_api.models.DiskType + :vartype disk_type: str or ~azure.mgmt.connectedvmware.models.DiskType """ _validation = { @@ -4162,7 +4148,7 @@ def __init__( :paramtype device_key: int :keyword disk_mode: Gets or sets the disk mode. Possible values include: "persistent", "independent_persistent", "independent_nonpersistent". - :paramtype disk_mode: str or ~azure_arc_vmware_management_service_api.models.DiskMode + :paramtype disk_mode: str or ~azure.mgmt.connectedvmware.models.DiskMode :keyword controller_key: Gets or sets the controller id. :paramtype controller_key: int :keyword unit_number: Gets or sets the unit number of the disk on the controller. @@ -4171,7 +4157,7 @@ def __init__( :paramtype device_name: str :keyword disk_type: Gets or sets the disk backing type. Possible values include: "flat", "pmem", "rawphysical", "rawvirtual", "sparse", "sesparse", "unknown". - :paramtype disk_type: str or ~azure_arc_vmware_management_service_api.models.DiskType + :paramtype disk_type: str or ~azure.mgmt.connectedvmware.models.DiskType """ super(VirtualDisk, self).__init__(**kwargs) self.name = name @@ -4197,7 +4183,7 @@ class VirtualDiskUpdate(msrest.serialization.Model): :vartype device_key: int :ivar disk_mode: Gets or sets the disk mode. Possible values include: "persistent", "independent_persistent", "independent_nonpersistent". - :vartype disk_mode: str or ~azure_arc_vmware_management_service_api.models.DiskMode + :vartype disk_mode: str or ~azure.mgmt.connectedvmware.models.DiskMode :ivar controller_key: Gets or sets the controller id. :vartype controller_key: int :ivar unit_number: Gets or sets the unit number of the disk on the controller. @@ -4206,7 +4192,7 @@ class VirtualDiskUpdate(msrest.serialization.Model): :vartype device_name: str :ivar disk_type: Gets or sets the disk backing type. Possible values include: "flat", "pmem", "rawphysical", "rawvirtual", "sparse", "sesparse", "unknown". - :vartype disk_type: str or ~azure_arc_vmware_management_service_api.models.DiskType + :vartype disk_type: str or ~azure.mgmt.connectedvmware.models.DiskType """ _attribute_map = { @@ -4242,7 +4228,7 @@ def __init__( :paramtype device_key: int :keyword disk_mode: Gets or sets the disk mode. Possible values include: "persistent", "independent_persistent", "independent_nonpersistent". - :paramtype disk_mode: str or ~azure_arc_vmware_management_service_api.models.DiskMode + :paramtype disk_mode: str or ~azure.mgmt.connectedvmware.models.DiskMode :keyword controller_key: Gets or sets the controller id. :paramtype controller_key: int :keyword unit_number: Gets or sets the unit number of the disk on the controller. @@ -4251,7 +4237,7 @@ def __init__( :paramtype device_name: str :keyword disk_type: Gets or sets the disk backing type. Possible values include: "flat", "pmem", "rawphysical", "rawvirtual", "sparse", "sesparse", "unknown". - :paramtype disk_type: str or ~azure_arc_vmware_management_service_api.models.DiskType + :paramtype disk_type: str or ~azure.mgmt.connectedvmware.models.DiskType """ super(VirtualDiskUpdate, self).__init__(**kwargs) self.name = name @@ -4274,9 +4260,9 @@ class VirtualMachine(msrest.serialization.Model): :ivar location: Required. Gets or sets the location. :vartype location: str :ivar extended_location: Gets or sets the extended location. - :vartype extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :vartype extended_location: ~azure.mgmt.connectedvmware.models.ExtendedLocation :ivar system_data: The system data. - :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :vartype system_data: ~azure.mgmt.connectedvmware.models.SystemData :ivar tags: A set of tags. Gets or sets the Resource tags. :vartype tags: dict[str, str] :ivar name: Gets or sets the name. @@ -4290,7 +4276,7 @@ class VirtualMachine(msrest.serialization.Model): the resource provider must validate and persist this value. :vartype kind: str :ivar identity: The identity of the resource. - :vartype identity: ~azure_arc_vmware_management_service_api.models.Identity + :vartype identity: ~azure.mgmt.connectedvmware.models.Identity :ivar resource_pool_id: Gets or sets the ARM Id of the resourcePool resource on which this virtual machine will deploy. @@ -4302,19 +4288,19 @@ class VirtualMachine(msrest.serialization.Model): resides. :vartype v_center_id: str :ivar placement_profile: Placement properties. - :vartype placement_profile: ~azure_arc_vmware_management_service_api.models.PlacementProfile + :vartype placement_profile: ~azure.mgmt.connectedvmware.models.PlacementProfile :ivar os_profile: OS properties. - :vartype os_profile: ~azure_arc_vmware_management_service_api.models.OsProfile + :vartype os_profile: ~azure.mgmt.connectedvmware.models.OsProfile :ivar hardware_profile: Hardware properties. - :vartype hardware_profile: ~azure_arc_vmware_management_service_api.models.HardwareProfile + :vartype hardware_profile: ~azure.mgmt.connectedvmware.models.HardwareProfile :ivar network_profile: Network properties. - :vartype network_profile: ~azure_arc_vmware_management_service_api.models.NetworkProfile + :vartype network_profile: ~azure.mgmt.connectedvmware.models.NetworkProfile :ivar storage_profile: Storage properties. - :vartype storage_profile: ~azure_arc_vmware_management_service_api.models.StorageProfile + :vartype storage_profile: ~azure.mgmt.connectedvmware.models.StorageProfile :ivar guest_agent_profile: Guest agent status properties. - :vartype guest_agent_profile: ~azure_arc_vmware_management_service_api.models.GuestAgentProfile + :vartype guest_agent_profile: ~azure.mgmt.connectedvmware.models.GuestAgentProfile :ivar security_profile: Gets the security profile. - :vartype security_profile: ~azure_arc_vmware_management_service_api.models.SecurityProfile + :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 @@ -4329,7 +4315,7 @@ class VirtualMachine(msrest.serialization.Model): :ivar smbios_uuid: Gets or sets the SMBIOS UUID of the vm. :vartype smbios_uuid: str :ivar firmware_type: Firmware type. Possible values include: "bios", "efi". - :vartype firmware_type: str or ~azure_arc_vmware_management_service_api.models.FirmwareType + :vartype firmware_type: str or ~azure.mgmt.connectedvmware.models.FirmwareType :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. @@ -4337,9 +4323,10 @@ class VirtualMachine(msrest.serialization.Model): :ivar uuid: Gets or sets a unique identifier for this resource. :vartype uuid: str :ivar statuses: The resource status information. - :vartype statuses: list[~azure_arc_vmware_management_service_api.models.ResourceStatus] - :ivar provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str + :vartype statuses: list[~azure.mgmt.connectedvmware.models.ResourceStatus] + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState :ivar vm_id: Gets or sets a unique identifier for the vm resource. :vartype vm_id: str """ @@ -4424,7 +4411,7 @@ def __init__( :keyword location: Required. Gets or sets the location. :paramtype location: str :keyword extended_location: Gets or sets the extended location. - :paramtype extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :paramtype extended_location: ~azure.mgmt.connectedvmware.models.ExtendedLocation :keyword tags: A set of tags. Gets or sets the Resource tags. :paramtype tags: dict[str, str] :keyword kind: Metadata used by portal/tooling/etc to render different UX experiences for @@ -4432,7 +4419,7 @@ def __init__( the resource provider must validate and persist this value. :paramtype kind: str :keyword identity: The identity of the resource. - :paramtype identity: ~azure_arc_vmware_management_service_api.models.Identity + :paramtype identity: ~azure.mgmt.connectedvmware.models.Identity :keyword resource_pool_id: Gets or sets the ARM Id of the resourcePool resource on which this virtual machine will deploy. @@ -4444,20 +4431,19 @@ def __init__( pool resides. :paramtype v_center_id: str :keyword placement_profile: Placement properties. - :paramtype placement_profile: ~azure_arc_vmware_management_service_api.models.PlacementProfile + :paramtype placement_profile: ~azure.mgmt.connectedvmware.models.PlacementProfile :keyword os_profile: OS properties. - :paramtype os_profile: ~azure_arc_vmware_management_service_api.models.OsProfile + :paramtype os_profile: ~azure.mgmt.connectedvmware.models.OsProfile :keyword hardware_profile: Hardware properties. - :paramtype hardware_profile: ~azure_arc_vmware_management_service_api.models.HardwareProfile + :paramtype hardware_profile: ~azure.mgmt.connectedvmware.models.HardwareProfile :keyword network_profile: Network properties. - :paramtype network_profile: ~azure_arc_vmware_management_service_api.models.NetworkProfile + :paramtype network_profile: ~azure.mgmt.connectedvmware.models.NetworkProfile :keyword storage_profile: Storage properties. - :paramtype storage_profile: ~azure_arc_vmware_management_service_api.models.StorageProfile + :paramtype storage_profile: ~azure.mgmt.connectedvmware.models.StorageProfile :keyword guest_agent_profile: Guest agent status properties. - :paramtype guest_agent_profile: - ~azure_arc_vmware_management_service_api.models.GuestAgentProfile + :paramtype guest_agent_profile: ~azure.mgmt.connectedvmware.models.GuestAgentProfile :keyword security_profile: Gets the security profile. - :paramtype security_profile: ~azure_arc_vmware_management_service_api.models.SecurityProfile + :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 @@ -4466,7 +4452,7 @@ def __init__( :keyword smbios_uuid: Gets or sets the SMBIOS UUID of the vm. :paramtype smbios_uuid: str :keyword firmware_type: Firmware type. Possible values include: "bios", "efi". - :paramtype firmware_type: str or ~azure_arc_vmware_management_service_api.models.FirmwareType + :paramtype firmware_type: str or ~azure.mgmt.connectedvmware.models.FirmwareType """ super(VirtualMachine, self).__init__(**kwargs) self.location = location @@ -4512,7 +4498,7 @@ class VirtualMachineAssessPatchesResult(msrest.serialization.Model): 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_arc_vmware_management_service_api.models.PatchOperationStatus + :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 @@ -4522,25 +4508,23 @@ class VirtualMachineAssessPatchesResult(msrest.serialization.Model): :ivar available_patch_count_by_classification: Summarization of patches available for installation on the machine by classification. :vartype available_patch_count_by_classification: - ~azure_arc_vmware_management_service_api.models.AvailablePatchCountByClassification + ~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_arc_vmware_management_service_api.models.PatchOperationStartedBy + :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_arc_vmware_management_service_api.models.PatchServiceUsed + :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_arc_vmware_management_service_api.models.OsTypeUM + :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_arc_vmware_management_service_api.models.ErrorDetail + :vartype error_details: ~azure.mgmt.connectedvmware.models.ErrorDetail """ _validation = { @@ -4578,7 +4562,7 @@ def __init__( :keyword available_patch_count_by_classification: Summarization of patches available for installation on the machine by classification. :paramtype available_patch_count_by_classification: - ~azure_arc_vmware_management_service_api.models.AvailablePatchCountByClassification + ~azure.mgmt.connectedvmware.models.AvailablePatchCountByClassification """ super(VirtualMachineAssessPatchesResult, self).__init__(**kwargs) self.status = None @@ -4603,14 +4587,13 @@ class VirtualMachineInstallPatchesParameters(msrest.serialization.Model): :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_arc_vmware_management_service_api.models.VMGuestPatchRebootSetting + :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_arc_vmware_management_service_api.models.WindowsParameters + :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_arc_vmware_management_service_api.models.LinuxParameters + :vartype linux_parameters: ~azure.mgmt.connectedvmware.models.LinuxParameters """ _validation = { @@ -4640,15 +4623,13 @@ def __init__( :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_arc_vmware_management_service_api.models.VMGuestPatchRebootSetting + :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_arc_vmware_management_service_api.models.WindowsParameters + :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_arc_vmware_management_service_api.models.LinuxParameters + :paramtype linux_parameters: ~azure.mgmt.connectedvmware.models.LinuxParameters """ super(VirtualMachineInstallPatchesParameters, self).__init__(**kwargs) self.maximum_duration = maximum_duration @@ -4666,13 +4647,12 @@ class VirtualMachineInstallPatchesResult(msrest.serialization.Model): 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_arc_vmware_management_service_api.models.PatchOperationStatus + :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_arc_vmware_management_service_api.models.VMGuestPatchRebootStatus + :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 @@ -4697,18 +4677,16 @@ class VirtualMachineInstallPatchesResult(msrest.serialization.Model): :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_arc_vmware_management_service_api.models.PatchOperationStartedBy + :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_arc_vmware_management_service_api.models.PatchServiceUsed + :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_arc_vmware_management_service_api.models.OsTypeUM + :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_arc_vmware_management_service_api.models.ErrorDetail + :vartype error_details: ~azure.mgmt.connectedvmware.models.ErrorDetail """ _validation = { @@ -4786,30 +4764,30 @@ class VirtualMachineInstance(ProxyResource): :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :vartype system_data: ~azure.mgmt.connectedvmware.models.SystemData :ivar extended_location: Gets or sets the extended location. - :vartype extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :vartype extended_location: ~azure.mgmt.connectedvmware.models.ExtendedLocation :ivar placement_profile: Placement properties. - :vartype placement_profile: ~azure_arc_vmware_management_service_api.models.PlacementProfile + :vartype placement_profile: ~azure.mgmt.connectedvmware.models.PlacementProfile :ivar os_profile: OS properties. - :vartype os_profile: ~azure_arc_vmware_management_service_api.models.OsProfileForVMInstance + :vartype os_profile: ~azure.mgmt.connectedvmware.models.OsProfileForVMInstance :ivar hardware_profile: Hardware properties. - :vartype hardware_profile: ~azure_arc_vmware_management_service_api.models.HardwareProfile + :vartype hardware_profile: ~azure.mgmt.connectedvmware.models.HardwareProfile :ivar network_profile: Network properties. - :vartype network_profile: ~azure_arc_vmware_management_service_api.models.NetworkProfile + :vartype network_profile: ~azure.mgmt.connectedvmware.models.NetworkProfile :ivar storage_profile: Storage properties. - :vartype storage_profile: ~azure_arc_vmware_management_service_api.models.StorageProfile + :vartype storage_profile: ~azure.mgmt.connectedvmware.models.StorageProfile :ivar security_profile: Gets the security profile. - :vartype security_profile: ~azure_arc_vmware_management_service_api.models.SecurityProfile + :vartype security_profile: ~azure.mgmt.connectedvmware.models.SecurityProfile :ivar infrastructure_profile: Gets the infrastructure profile. - :vartype infrastructure_profile: - ~azure_arc_vmware_management_service_api.models.InfrastructureProfile + :vartype infrastructure_profile: ~azure.mgmt.connectedvmware.models.InfrastructureProfile :ivar power_state: Gets the power state of the virtual machine. :vartype power_state: str :ivar statuses: The resource status information. - :vartype statuses: list[~azure_arc_vmware_management_service_api.models.ResourceStatus] - :ivar provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str + :vartype statuses: list[~azure.mgmt.connectedvmware.models.ResourceStatus] + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState :ivar resource_uid: Gets or sets a unique identifier for the vm resource. :vartype resource_uid: str """ @@ -4859,22 +4837,21 @@ def __init__( ): """ :keyword extended_location: Gets or sets the extended location. - :paramtype extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :paramtype extended_location: ~azure.mgmt.connectedvmware.models.ExtendedLocation :keyword placement_profile: Placement properties. - :paramtype placement_profile: ~azure_arc_vmware_management_service_api.models.PlacementProfile + :paramtype placement_profile: ~azure.mgmt.connectedvmware.models.PlacementProfile :keyword os_profile: OS properties. - :paramtype os_profile: ~azure_arc_vmware_management_service_api.models.OsProfileForVMInstance + :paramtype os_profile: ~azure.mgmt.connectedvmware.models.OsProfileForVMInstance :keyword hardware_profile: Hardware properties. - :paramtype hardware_profile: ~azure_arc_vmware_management_service_api.models.HardwareProfile + :paramtype hardware_profile: ~azure.mgmt.connectedvmware.models.HardwareProfile :keyword network_profile: Network properties. - :paramtype network_profile: ~azure_arc_vmware_management_service_api.models.NetworkProfile + :paramtype network_profile: ~azure.mgmt.connectedvmware.models.NetworkProfile :keyword storage_profile: Storage properties. - :paramtype storage_profile: ~azure_arc_vmware_management_service_api.models.StorageProfile + :paramtype storage_profile: ~azure.mgmt.connectedvmware.models.StorageProfile :keyword security_profile: Gets the security profile. - :paramtype security_profile: ~azure_arc_vmware_management_service_api.models.SecurityProfile + :paramtype security_profile: ~azure.mgmt.connectedvmware.models.SecurityProfile :keyword infrastructure_profile: Gets the infrastructure profile. - :paramtype infrastructure_profile: - ~azure_arc_vmware_management_service_api.models.InfrastructureProfile + :paramtype infrastructure_profile: ~azure.mgmt.connectedvmware.models.InfrastructureProfile """ super(VirtualMachineInstance, self).__init__(**kwargs) self.extended_location = extended_location @@ -4896,8 +4873,10 @@ class VirtualMachineInstancesList(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. + :ivar next_link: Url to follow for getting next page of VirtualMachines. + :vartype next_link: str :ivar value: Required. Array of VirtualMachines. - :vartype value: list[~azure_arc_vmware_management_service_api.models.VirtualMachineInstance] + :vartype value: list[~azure.mgmt.connectedvmware.models.VirtualMachineInstance] """ _validation = { @@ -4905,6 +4884,7 @@ class VirtualMachineInstancesList(msrest.serialization.Model): } _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, 'value': {'key': 'value', 'type': '[VirtualMachineInstance]'}, } @@ -4912,13 +4892,17 @@ def __init__( self, *, value: List["VirtualMachineInstance"], + next_link: Optional[str] = None, **kwargs ): """ + :keyword next_link: Url to follow for getting next page of VirtualMachines. + :paramtype next_link: str :keyword value: Required. Array of VirtualMachines. - :paramtype value: list[~azure_arc_vmware_management_service_api.models.VirtualMachineInstance] + :paramtype value: list[~azure.mgmt.connectedvmware.models.VirtualMachineInstance] """ super(VirtualMachineInstancesList, self).__init__(**kwargs) + self.next_link = next_link self.value = value @@ -4926,11 +4910,11 @@ class VirtualMachineInstanceUpdate(msrest.serialization.Model): """Defines the virtualMachineInstanceUpdate. :ivar hardware_profile: Specifies the hardware settings for the virtual machine. - :vartype hardware_profile: ~azure_arc_vmware_management_service_api.models.HardwareProfile + :vartype hardware_profile: ~azure.mgmt.connectedvmware.models.HardwareProfile :ivar storage_profile: Specifies the storage settings for the virtual machine disks. - :vartype storage_profile: ~azure_arc_vmware_management_service_api.models.StorageProfileUpdate + :vartype storage_profile: ~azure.mgmt.connectedvmware.models.StorageProfileUpdate :ivar network_profile: Specifies the network interfaces of the virtual machine. - :vartype network_profile: ~azure_arc_vmware_management_service_api.models.NetworkProfileUpdate + :vartype network_profile: ~azure.mgmt.connectedvmware.models.NetworkProfileUpdate """ _attribute_map = { @@ -4949,13 +4933,11 @@ def __init__( ): """ :keyword hardware_profile: Specifies the hardware settings for the virtual machine. - :paramtype hardware_profile: ~azure_arc_vmware_management_service_api.models.HardwareProfile + :paramtype hardware_profile: ~azure.mgmt.connectedvmware.models.HardwareProfile :keyword storage_profile: Specifies the storage settings for the virtual machine disks. - :paramtype storage_profile: - ~azure_arc_vmware_management_service_api.models.StorageProfileUpdate + :paramtype storage_profile: ~azure.mgmt.connectedvmware.models.StorageProfileUpdate :keyword network_profile: Specifies the network interfaces of the virtual machine. - :paramtype network_profile: - ~azure_arc_vmware_management_service_api.models.NetworkProfileUpdate + :paramtype network_profile: ~azure.mgmt.connectedvmware.models.NetworkProfileUpdate """ super(VirtualMachineInstanceUpdate, self).__init__(**kwargs) self.hardware_profile = hardware_profile @@ -4973,7 +4955,7 @@ class VirtualMachineInventoryItem(InventoryItemProperties): :ivar inventory_type: Required. They inventory type.Constant filled by server. Possible values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", "Cluster", "Datastore", "Host". - :vartype inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + :vartype inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType :ivar managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. :vartype managed_resource_id: str @@ -4981,11 +4963,12 @@ class VirtualMachineInventoryItem(InventoryItemProperties): :vartype mo_ref_id: str :ivar mo_name: Gets or sets the vCenter Managed Object name for the inventory item. :vartype mo_name: str - :ivar provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState :ivar os_type: Gets or sets the type of the os. Possible values include: "Windows", "Linux", "Other". - :vartype os_type: str or ~azure_arc_vmware_management_service_api.models.OsType + :vartype os_type: str or ~azure.mgmt.connectedvmware.models.OsType :ivar os_name: Gets or sets os name. :vartype os_name: str :ivar ip_addresses: Gets or sets the nic ip addresses. @@ -4993,11 +4976,11 @@ class VirtualMachineInventoryItem(InventoryItemProperties): :ivar folder_path: Gets or sets the folder path of the vm. :vartype folder_path: str :ivar host: Host inventory resource details. - :vartype host: ~azure_arc_vmware_management_service_api.models.InventoryItemDetails + :vartype host: ~azure.mgmt.connectedvmware.models.InventoryItemDetails :ivar resource_pool: ResourcePool inventory resource details. - :vartype resource_pool: ~azure_arc_vmware_management_service_api.models.InventoryItemDetails + :vartype resource_pool: ~azure.mgmt.connectedvmware.models.InventoryItemDetails :ivar cluster: Cluster inventory resource details. - :vartype cluster: ~azure_arc_vmware_management_service_api.models.InventoryItemDetails + :vartype cluster: ~azure.mgmt.connectedvmware.models.InventoryItemDetails :ivar instance_uuid: Gets or sets the instance uuid of the vm. :vartype instance_uuid: str :ivar smbios_uuid: Gets or sets the SMBIOS UUID of the vm. @@ -5072,7 +5055,7 @@ def __init__( :paramtype mo_name: str :keyword os_type: Gets or sets the type of the os. Possible values include: "Windows", "Linux", "Other". - :paramtype os_type: str or ~azure_arc_vmware_management_service_api.models.OsType + :paramtype os_type: str or ~azure.mgmt.connectedvmware.models.OsType :keyword os_name: Gets or sets os name. :paramtype os_name: str :keyword ip_addresses: Gets or sets the nic ip addresses. @@ -5080,11 +5063,11 @@ def __init__( :keyword folder_path: Gets or sets the folder path of the vm. :paramtype folder_path: str :keyword host: Host inventory resource details. - :paramtype host: ~azure_arc_vmware_management_service_api.models.InventoryItemDetails + :paramtype host: ~azure.mgmt.connectedvmware.models.InventoryItemDetails :keyword resource_pool: ResourcePool inventory resource details. - :paramtype resource_pool: ~azure_arc_vmware_management_service_api.models.InventoryItemDetails + :paramtype resource_pool: ~azure.mgmt.connectedvmware.models.InventoryItemDetails :keyword cluster: Cluster inventory resource details. - :paramtype cluster: ~azure_arc_vmware_management_service_api.models.InventoryItemDetails + :paramtype cluster: ~azure.mgmt.connectedvmware.models.InventoryItemDetails :keyword instance_uuid: Gets or sets the instance uuid of the vm. :paramtype instance_uuid: str :keyword smbios_uuid: Gets or sets the SMBIOS UUID of the vm. @@ -5115,7 +5098,7 @@ class VirtualMachinesList(msrest.serialization.Model): :ivar next_link: Url to follow for getting next page of VirtualMachines. :vartype next_link: str :ivar value: Required. Array of VirtualMachines. - :vartype value: list[~azure_arc_vmware_management_service_api.models.VirtualMachine] + :vartype value: list[~azure.mgmt.connectedvmware.models.VirtualMachine] """ _validation = { @@ -5138,7 +5121,7 @@ def __init__( :keyword next_link: Url to follow for getting next page of VirtualMachines. :paramtype next_link: str :keyword value: Required. Array of VirtualMachines. - :paramtype value: list[~azure_arc_vmware_management_service_api.models.VirtualMachine] + :paramtype value: list[~azure.mgmt.connectedvmware.models.VirtualMachine] """ super(VirtualMachinesList, self).__init__(**kwargs) self.next_link = next_link @@ -5155,9 +5138,9 @@ class VirtualMachineTemplate(msrest.serialization.Model): :ivar location: Required. Gets or sets the location. :vartype location: str :ivar extended_location: Gets or sets the extended location. - :vartype extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :vartype extended_location: ~azure.mgmt.connectedvmware.models.ExtendedLocation :ivar system_data: The system data. - :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :vartype system_data: ~azure.mgmt.connectedvmware.models.SystemData :ivar tags: A set of tags. Gets or sets the Resource tags. :vartype tags: dict[str, str] :ivar name: Gets or sets the name. @@ -5192,16 +5175,15 @@ class VirtualMachineTemplate(msrest.serialization.Model): :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_arc_vmware_management_service_api.models.OsType + :vartype os_type: str or ~azure.mgmt.connectedvmware.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_arc_vmware_management_service_api.models.NetworkInterface] + :vartype network_interfaces: list[~azure.mgmt.connectedvmware.models.NetworkInterface] :ivar disks: Gets or sets the disks the template. - :vartype disks: list[~azure_arc_vmware_management_service_api.models.VirtualDisk] + :vartype disks: list[~azure.mgmt.connectedvmware.models.VirtualDisk] :ivar custom_resource_name: Gets the name of the corresponding resource in Kubernetes. :vartype custom_resource_name: str :ivar tools_version_status: Gets or sets the current version status of VMware Tools installed @@ -5210,11 +5192,12 @@ class VirtualMachineTemplate(msrest.serialization.Model): :ivar tools_version: Gets or sets the current version of VMware Tools. :vartype tools_version: str :ivar firmware_type: Firmware type. Possible values include: "bios", "efi". - :vartype firmware_type: str or ~azure_arc_vmware_management_service_api.models.FirmwareType + :vartype firmware_type: str or ~azure.mgmt.connectedvmware.models.FirmwareType :ivar statuses: The resource status information. - :vartype statuses: list[~azure_arc_vmware_management_service_api.models.ResourceStatus] - :ivar provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str + :vartype statuses: list[~azure.mgmt.connectedvmware.models.ResourceStatus] + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState """ _validation = { @@ -5287,7 +5270,7 @@ def __init__( :keyword location: Required. Gets or sets the location. :paramtype location: str :keyword extended_location: Gets or sets the extended location. - :paramtype extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :paramtype extended_location: ~azure.mgmt.connectedvmware.models.ExtendedLocation :keyword tags: A set of tags. Gets or sets the Resource tags. :paramtype tags: dict[str, str] :keyword kind: Metadata used by portal/tooling/etc to render different UX experiences for @@ -5345,7 +5328,7 @@ class VirtualMachineTemplateInventoryItem(InventoryItemProperties): :ivar inventory_type: Required. They inventory type.Constant filled by server. Possible values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", "Cluster", "Datastore", "Host". - :vartype inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + :vartype inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType :ivar managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. :vartype managed_resource_id: str @@ -5353,8 +5336,9 @@ class VirtualMachineTemplateInventoryItem(InventoryItemProperties): :vartype mo_ref_id: str :ivar mo_name: Gets or sets the vCenter Managed Object name for the inventory item. :vartype mo_name: str - :ivar provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState :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. @@ -5364,7 +5348,7 @@ class VirtualMachineTemplateInventoryItem(InventoryItemProperties): :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_arc_vmware_management_service_api.models.OsType + :vartype os_type: str or ~azure.mgmt.connectedvmware.models.OsType :ivar os_name: Gets or sets os name. :vartype os_name: str :ivar tools_version_status: Gets or sets the current version status of VMware Tools installed @@ -5431,7 +5415,7 @@ def __init__( :paramtype num_cores_per_socket: int :keyword os_type: Gets or sets the type of the os. Possible values include: "Windows", "Linux", "Other". - :paramtype os_type: str or ~azure_arc_vmware_management_service_api.models.OsType + :paramtype os_type: str or ~azure.mgmt.connectedvmware.models.OsType :keyword os_name: Gets or sets os name. :paramtype os_name: str :keyword folder_path: Gets or sets the folder path of the template. @@ -5457,7 +5441,7 @@ class VirtualMachineTemplatesList(msrest.serialization.Model): :ivar next_link: Url to follow for getting next page of VirtualMachineTemplates. :vartype next_link: str :ivar value: Required. Array of VirtualMachineTemplates. - :vartype value: list[~azure_arc_vmware_management_service_api.models.VirtualMachineTemplate] + :vartype value: list[~azure.mgmt.connectedvmware.models.VirtualMachineTemplate] """ _validation = { @@ -5480,7 +5464,7 @@ def __init__( :keyword next_link: Url to follow for getting next page of VirtualMachineTemplates. :paramtype next_link: str :keyword value: Required. Array of VirtualMachineTemplates. - :paramtype value: list[~azure_arc_vmware_management_service_api.models.VirtualMachineTemplate] + :paramtype value: list[~azure.mgmt.connectedvmware.models.VirtualMachineTemplate] """ super(VirtualMachineTemplatesList, self).__init__(**kwargs) self.next_link = next_link @@ -5493,18 +5477,17 @@ class VirtualMachineUpdate(msrest.serialization.Model): :ivar tags: A set of tags. Gets or sets the Resource tags. :vartype tags: dict[str, str] :ivar identity: The identity of the resource. - :vartype identity: ~azure_arc_vmware_management_service_api.models.Identity + :vartype identity: ~azure.mgmt.connectedvmware.models.Identity :ivar hardware_profile: Specifies the hardware settings for the virtual machine. - :vartype hardware_profile: ~azure_arc_vmware_management_service_api.models.HardwareProfile + :vartype hardware_profile: ~azure.mgmt.connectedvmware.models.HardwareProfile :ivar os_profile: OS properties. - :vartype os_profile: ~azure_arc_vmware_management_service_api.models.OsProfileUpdate + :vartype os_profile: ~azure.mgmt.connectedvmware.models.OsProfileUpdate :ivar storage_profile: Specifies the storage settings for the virtual machine disks. - :vartype storage_profile: ~azure_arc_vmware_management_service_api.models.StorageProfileUpdate + :vartype storage_profile: ~azure.mgmt.connectedvmware.models.StorageProfileUpdate :ivar network_profile: Specifies the network interfaces of the virtual machine. - :vartype network_profile: ~azure_arc_vmware_management_service_api.models.NetworkProfileUpdate + :vartype network_profile: ~azure.mgmt.connectedvmware.models.NetworkProfileUpdate :ivar guest_agent_profile: Specifies the guest agent settings for the virtual machine. - :vartype guest_agent_profile: - ~azure_arc_vmware_management_service_api.models.GuestAgentProfileUpdate + :vartype guest_agent_profile: ~azure.mgmt.connectedvmware.models.GuestAgentProfileUpdate """ _attribute_map = { @@ -5533,20 +5516,17 @@ def __init__( :keyword tags: A set of tags. Gets or sets the Resource tags. :paramtype tags: dict[str, str] :keyword identity: The identity of the resource. - :paramtype identity: ~azure_arc_vmware_management_service_api.models.Identity + :paramtype identity: ~azure.mgmt.connectedvmware.models.Identity :keyword hardware_profile: Specifies the hardware settings for the virtual machine. - :paramtype hardware_profile: ~azure_arc_vmware_management_service_api.models.HardwareProfile + :paramtype hardware_profile: ~azure.mgmt.connectedvmware.models.HardwareProfile :keyword os_profile: OS properties. - :paramtype os_profile: ~azure_arc_vmware_management_service_api.models.OsProfileUpdate + :paramtype os_profile: ~azure.mgmt.connectedvmware.models.OsProfileUpdate :keyword storage_profile: Specifies the storage settings for the virtual machine disks. - :paramtype storage_profile: - ~azure_arc_vmware_management_service_api.models.StorageProfileUpdate + :paramtype storage_profile: ~azure.mgmt.connectedvmware.models.StorageProfileUpdate :keyword network_profile: Specifies the network interfaces of the virtual machine. - :paramtype network_profile: - ~azure_arc_vmware_management_service_api.models.NetworkProfileUpdate + :paramtype network_profile: ~azure.mgmt.connectedvmware.models.NetworkProfileUpdate :keyword guest_agent_profile: Specifies the guest agent settings for the virtual machine. - :paramtype guest_agent_profile: - ~azure_arc_vmware_management_service_api.models.GuestAgentProfileUpdate + :paramtype guest_agent_profile: ~azure.mgmt.connectedvmware.models.GuestAgentProfileUpdate """ super(VirtualMachineUpdate, self).__init__(**kwargs) self.tags = tags @@ -5568,9 +5548,9 @@ class VirtualNetwork(msrest.serialization.Model): :ivar location: Required. Gets or sets the location. :vartype location: str :ivar extended_location: Gets or sets the extended location. - :vartype extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :vartype extended_location: ~azure.mgmt.connectedvmware.models.ExtendedLocation :ivar system_data: The system data. - :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :vartype system_data: ~azure.mgmt.connectedvmware.models.SystemData :ivar tags: A set of tags. Gets or sets the Resource tags. :vartype tags: dict[str, str] :ivar name: Gets or sets the name. @@ -5598,9 +5578,10 @@ class VirtualNetwork(msrest.serialization.Model): :ivar custom_resource_name: Gets the name of the corresponding resource in Kubernetes. :vartype custom_resource_name: str :ivar statuses: The resource status information. - :vartype statuses: list[~azure_arc_vmware_management_service_api.models.ResourceStatus] - :ivar provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str + :vartype statuses: list[~azure.mgmt.connectedvmware.models.ResourceStatus] + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState """ _validation = { @@ -5651,7 +5632,7 @@ def __init__( :keyword location: Required. Gets or sets the location. :paramtype location: str :keyword extended_location: Gets or sets the extended location. - :paramtype extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :paramtype extended_location: ~azure.mgmt.connectedvmware.models.ExtendedLocation :keyword tags: A set of tags. Gets or sets the Resource tags. :paramtype tags: dict[str, str] :keyword kind: Metadata used by portal/tooling/etc to render different UX experiences for @@ -5696,7 +5677,7 @@ class VirtualNetworkInventoryItem(InventoryItemProperties): :ivar inventory_type: Required. They inventory type.Constant filled by server. Possible values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", "Cluster", "Datastore", "Host". - :vartype inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + :vartype inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType :ivar managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. :vartype managed_resource_id: str @@ -5704,8 +5685,9 @@ class VirtualNetworkInventoryItem(InventoryItemProperties): :vartype mo_ref_id: str :ivar mo_name: Gets or sets the vCenter Managed Object name for the inventory item. :vartype mo_name: str - :ivar provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState """ _validation = { @@ -5751,7 +5733,7 @@ class VirtualNetworksList(msrest.serialization.Model): :ivar next_link: Url to follow for getting next page of VirtualNetworks. :vartype next_link: str :ivar value: Required. Array of VirtualNetworks. - :vartype value: list[~azure_arc_vmware_management_service_api.models.VirtualNetwork] + :vartype value: list[~azure.mgmt.connectedvmware.models.VirtualNetwork] """ _validation = { @@ -5774,7 +5756,7 @@ def __init__( :keyword next_link: Url to follow for getting next page of VirtualNetworks. :paramtype next_link: str :keyword value: Required. Array of VirtualNetworks. - :paramtype value: list[~azure_arc_vmware_management_service_api.models.VirtualNetwork] + :paramtype value: list[~azure.mgmt.connectedvmware.models.VirtualNetwork] """ super(VirtualNetworksList, self).__init__(**kwargs) self.next_link = next_link @@ -5786,7 +5768,7 @@ class VirtualSCSIController(msrest.serialization.Model): :ivar type: Gets or sets the controller type. Possible values include: "lsilogic", "buslogic", "pvscsi", "lsilogicsas". - :vartype type: str or ~azure_arc_vmware_management_service_api.models.SCSIControllerType + :vartype type: str or ~azure.mgmt.connectedvmware.models.SCSIControllerType :ivar controller_key: Gets or sets the key of the controller. :vartype controller_key: int :ivar bus_number: Gets or sets the bus number of the controller. @@ -5795,7 +5777,7 @@ class VirtualSCSIController(msrest.serialization.Model): :vartype scsi_ctlr_unit_number: int :ivar sharing: Gets or sets the sharing mode. Possible values include: "noSharing", "physicalSharing", "virtualSharing". - :vartype sharing: str or ~azure_arc_vmware_management_service_api.models.VirtualSCSISharing + :vartype sharing: str or ~azure.mgmt.connectedvmware.models.VirtualSCSISharing """ _attribute_map = { @@ -5819,7 +5801,7 @@ def __init__( """ :keyword type: Gets or sets the controller type. Possible values include: "lsilogic", "buslogic", "pvscsi", "lsilogicsas". - :paramtype type: str or ~azure_arc_vmware_management_service_api.models.SCSIControllerType + :paramtype type: str or ~azure.mgmt.connectedvmware.models.SCSIControllerType :keyword controller_key: Gets or sets the key of the controller. :paramtype controller_key: int :keyword bus_number: Gets or sets the bus number of the controller. @@ -5828,7 +5810,7 @@ def __init__( :paramtype scsi_ctlr_unit_number: int :keyword sharing: Gets or sets the sharing mode. Possible values include: "noSharing", "physicalSharing", "virtualSharing". - :paramtype sharing: str or ~azure_arc_vmware_management_service_api.models.VirtualSCSISharing + :paramtype sharing: str or ~azure.mgmt.connectedvmware.models.VirtualSCSISharing """ super(VirtualSCSIController, self).__init__(**kwargs) self.type = type @@ -5853,13 +5835,14 @@ class VmInstanceHybridIdentityMetadata(ProxyResource): :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: ~azure_arc_vmware_management_service_api.models.SystemData + :vartype system_data: ~azure.mgmt.connectedvmware.models.SystemData :ivar resource_uid: The unique identifier for the resource. :vartype resource_uid: str :ivar public_key: Gets or sets the Public Key. :vartype public_key: str - :ivar provisioning_state: Gets or sets the provisioning state. - :vartype provisioning_state: str + :ivar provisioning_state: Gets the provisioning state. Possible values include: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", "Created". + :vartype provisioning_state: str or ~azure.mgmt.connectedvmware.models.ProvisioningState """ _validation = { @@ -5907,8 +5890,7 @@ class VmInstanceHybridIdentityMetadataList(msrest.serialization.Model): :ivar next_link: Url to follow for getting next page of HybridIdentityMetadata. :vartype next_link: str :ivar value: Required. Array of HybridIdentityMetadata. - :vartype value: - list[~azure_arc_vmware_management_service_api.models.VmInstanceHybridIdentityMetadata] + :vartype value: list[~azure.mgmt.connectedvmware.models.VmInstanceHybridIdentityMetadata] """ _validation = { @@ -5931,8 +5913,7 @@ def __init__( :keyword next_link: Url to follow for getting next page of HybridIdentityMetadata. :paramtype next_link: str :keyword value: Required. Array of HybridIdentityMetadata. - :paramtype value: - list[~azure_arc_vmware_management_service_api.models.VmInstanceHybridIdentityMetadata] + :paramtype value: list[~azure.mgmt.connectedvmware.models.VmInstanceHybridIdentityMetadata] """ super(VmInstanceHybridIdentityMetadataList, self).__init__(**kwargs) self.next_link = next_link @@ -5945,7 +5926,7 @@ class WindowsParameters(msrest.serialization.Model): :ivar classifications_to_include: The update classifications to select when installing patches for Windows. :vartype classifications_to_include: list[str or - ~azure_arc_vmware_management_service_api.models.VMGuestPatchClassificationWindows] + ~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. @@ -5980,7 +5961,7 @@ def __init__( :keyword classifications_to_include: The update classifications to select when installing patches for Windows. :paramtype classifications_to_include: list[str or - ~azure_arc_vmware_management_service_api.models.VMGuestPatchClassificationWindows] + ~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. diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_azure_arc_vmware_management_service_api_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_azure_arc_vmware_management_service_api_operations.py index 010c76ca5a6..1e3afaa8855 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_azure_arc_vmware_management_service_api_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_azure_arc_vmware_management_service_api_operations.py @@ -116,8 +116,13 @@ def _upgrade_extensions_initial( # pylint: disable=inconsistent-return-statemen map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _upgrade_extensions_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/upgradeExtensions"} # type: ignore @@ -138,8 +143,7 @@ def begin_upgrade_extensions( # pylint: disable=inconsistent-return-statements :param virtual_machine_name: The name of the machine containing the extension. :type virtual_machine_name: str :param extension_upgrade_parameters: Parameters supplied to the Upgrade Extensions operation. - :type extension_upgrade_parameters: - ~azure_arc_vmware_management_service_api.models.MachineExtensionUpgrade + :type extension_upgrade_parameters: ~azure.mgmt.connectedvmware.models.MachineExtensionUpgrade :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 diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_clusters_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_clusters_operations.py index 816f294b7b4..8b934061734 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_clusters_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_clusters_operations.py @@ -265,7 +265,7 @@ class ClustersOperations(object): 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 + :type models: ~azure.mgmt.connectedvmware.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -357,7 +357,7 @@ def begin_create( :param cluster_name: Name of the cluster. :type cluster_name: str :param body: Request payload. - :type body: ~azure_arc_vmware_management_service_api.models.Cluster + :type body: ~azure.mgmt.connectedvmware.models.Cluster :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this @@ -367,7 +367,7 @@ def begin_create( :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Cluster or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure_arc_vmware_management_service_api.models.Cluster] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.connectedvmware.models.Cluster] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -431,7 +431,7 @@ def get( :type cluster_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: Cluster, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.Cluster + :rtype: ~azure.mgmt.connectedvmware.models.Cluster :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.Cluster"] @@ -493,10 +493,10 @@ def update( :param cluster_name: Name of the cluster. :type cluster_name: str :param body: Resource properties to update. - :type body: ~azure_arc_vmware_management_service_api.models.ResourcePatch + :type body: ~azure.mgmt.connectedvmware.models.ResourcePatch :keyword callable cls: A custom type or function that will be passed the direct response :return: Cluster, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.Cluster + :rtype: ~azure.mgmt.connectedvmware.models.Cluster :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.Cluster"] @@ -586,8 +586,13 @@ def _delete_initial( # pylint: disable=inconsistent-return-statements map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/clusters/{clusterName}"} # type: ignore @@ -673,8 +678,7 @@ def list( :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ClustersList or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure_arc_vmware_management_service_api.models.ClustersList] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.ClustersList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -752,8 +756,7 @@ def list_by_resource_group( :type resource_group_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ClustersList or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure_arc_vmware_management_service_api.models.ClustersList] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.ClustersList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_datastores_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_datastores_operations.py index 8f1f726048c..2a944cd89dc 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_datastores_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_datastores_operations.py @@ -265,7 +265,7 @@ class DatastoresOperations(object): 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 + :type models: ~azure.mgmt.connectedvmware.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -357,7 +357,7 @@ def begin_create( :param datastore_name: Name of the datastore. :type datastore_name: str :param body: Request payload. - :type body: ~azure_arc_vmware_management_service_api.models.Datastore + :type body: ~azure.mgmt.connectedvmware.models.Datastore :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this @@ -367,8 +367,7 @@ def begin_create( :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Datastore or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure_arc_vmware_management_service_api.models.Datastore] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.connectedvmware.models.Datastore] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -432,7 +431,7 @@ def get( :type datastore_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: Datastore, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.Datastore + :rtype: ~azure.mgmt.connectedvmware.models.Datastore :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.Datastore"] @@ -494,10 +493,10 @@ def update( :param datastore_name: Name of the datastore. :type datastore_name: str :param body: Resource properties to update. - :type body: ~azure_arc_vmware_management_service_api.models.ResourcePatch + :type body: ~azure.mgmt.connectedvmware.models.ResourcePatch :keyword callable cls: A custom type or function that will be passed the direct response :return: Datastore, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.Datastore + :rtype: ~azure.mgmt.connectedvmware.models.Datastore :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.Datastore"] @@ -587,8 +586,13 @@ def _delete_initial( # pylint: disable=inconsistent-return-statements map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/datastores/{datastoreName}"} # type: ignore @@ -674,8 +678,7 @@ def list( :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either DatastoresList or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure_arc_vmware_management_service_api.models.DatastoresList] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.DatastoresList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -753,8 +756,7 @@ def list_by_resource_group( :type resource_group_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either DatastoresList or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure_arc_vmware_management_service_api.models.DatastoresList] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.DatastoresList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_guest_agents_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_guest_agents_operations.py index d4e83d6670a..a295cab58ab 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_guest_agents_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_guest_agents_operations.py @@ -197,7 +197,7 @@ class GuestAgentsOperations(object): 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 + :type models: ~azure.mgmt.connectedvmware.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -294,7 +294,7 @@ def begin_create( :param name: Name of the guestAgents. :type name: str :param body: Request payload. - :type body: ~azure_arc_vmware_management_service_api.models.GuestAgent + :type body: ~azure.mgmt.connectedvmware.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 @@ -304,8 +304,7 @@ def begin_create( :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] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.connectedvmware.models.GuestAgent] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -373,7 +372,7 @@ def get( :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 + :rtype: ~azure.mgmt.connectedvmware.models.GuestAgent :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.GuestAgent"] @@ -457,8 +456,13 @@ def _delete_initial( # pylint: disable=inconsistent-return-statements map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/guestAgents/{name}"} # type: ignore @@ -550,8 +554,7 @@ def list( :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] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.GuestAgentList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_hosts_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_hosts_operations.py index 080dfb5bafd..38fbf5c061c 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_hosts_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_hosts_operations.py @@ -265,7 +265,7 @@ class HostsOperations(object): 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 + :type models: ~azure.mgmt.connectedvmware.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -357,7 +357,7 @@ def begin_create( :param host_name: Name of the host. :type host_name: str :param body: Request payload. - :type body: ~azure_arc_vmware_management_service_api.models.Host + :type body: ~azure.mgmt.connectedvmware.models.Host :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this @@ -367,7 +367,7 @@ def begin_create( :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Host or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure_arc_vmware_management_service_api.models.Host] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.connectedvmware.models.Host] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -431,7 +431,7 @@ def get( :type host_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: Host, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.Host + :rtype: ~azure.mgmt.connectedvmware.models.Host :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.Host"] @@ -493,10 +493,10 @@ def update( :param host_name: Name of the host. :type host_name: str :param body: Resource properties to update. - :type body: ~azure_arc_vmware_management_service_api.models.ResourcePatch + :type body: ~azure.mgmt.connectedvmware.models.ResourcePatch :keyword callable cls: A custom type or function that will be passed the direct response :return: Host, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.Host + :rtype: ~azure.mgmt.connectedvmware.models.Host :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.Host"] @@ -586,8 +586,13 @@ def _delete_initial( # pylint: disable=inconsistent-return-statements map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/hosts/{hostName}"} # type: ignore @@ -673,7 +678,7 @@ def list( :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either HostsList or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure_arc_vmware_management_service_api.models.HostsList] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.HostsList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -751,7 +756,7 @@ def list_by_resource_group( :type resource_group_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either HostsList or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure_arc_vmware_management_service_api.models.HostsList] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.HostsList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_hybrid_identity_metadata_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_hybrid_identity_metadata_operations.py index 0fc47ceb669..a047bda948a 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_hybrid_identity_metadata_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_hybrid_identity_metadata_operations.py @@ -195,7 +195,7 @@ class HybridIdentityMetadataOperations(object): 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 + :type models: ~azure.mgmt.connectedvmware.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -231,10 +231,10 @@ def create( :param metadata_name: Name of the hybridIdentityMetadata. :type metadata_name: str :param body: Request payload. - :type body: ~azure_arc_vmware_management_service_api.models.HybridIdentityMetadata + :type body: ~azure.mgmt.connectedvmware.models.HybridIdentityMetadata :keyword callable cls: A custom type or function that will be passed the direct response :return: HybridIdentityMetadata, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.HybridIdentityMetadata + :rtype: ~azure.mgmt.connectedvmware.models.HybridIdentityMetadata :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.HybridIdentityMetadata"] @@ -307,7 +307,7 @@ def get( :type metadata_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: HybridIdentityMetadata, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.HybridIdentityMetadata + :rtype: ~azure.mgmt.connectedvmware.models.HybridIdentityMetadata :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.HybridIdentityMetadata"] @@ -434,7 +434,7 @@ def list( :return: An iterator like instance of either HybridIdentityMetadataList or the result of cls(response) :rtype: - ~azure.core.paging.ItemPaged[~azure_arc_vmware_management_service_api.models.HybridIdentityMetadataList] + ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.HybridIdentityMetadataList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_inventory_items_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_inventory_items_operations.py index bb24a66e312..ff36a0bab5a 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_inventory_items_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_inventory_items_operations.py @@ -195,7 +195,7 @@ class InventoryItemsOperations(object): 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 + :type models: ~azure.mgmt.connectedvmware.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -231,10 +231,10 @@ def create( :param inventory_item_name: Name of the inventoryItem. :type inventory_item_name: str :param body: Request payload. - :type body: ~azure_arc_vmware_management_service_api.models.InventoryItem + :type body: ~azure.mgmt.connectedvmware.models.InventoryItem :keyword callable cls: A custom type or function that will be passed the direct response :return: InventoryItem, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.InventoryItem + :rtype: ~azure.mgmt.connectedvmware.models.InventoryItem :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.InventoryItem"] @@ -307,7 +307,7 @@ def get( :type inventory_item_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: InventoryItem, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.InventoryItem + :rtype: ~azure.mgmt.connectedvmware.models.InventoryItem :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.InventoryItem"] @@ -432,8 +432,7 @@ def list_by_v_center( :type vcenter_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either InventoryItemsList or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure_arc_vmware_management_service_api.models.InventoryItemsList] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.InventoryItemsList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_machine_extensions_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_machine_extensions_operations.py index eba244ce128..f364d8f1b27 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_machine_extensions_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_machine_extensions_operations.py @@ -242,7 +242,7 @@ class MachineExtensionsOperations(object): 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 + :type models: ~azure.mgmt.connectedvmware.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -335,7 +335,7 @@ def begin_create_or_update( :param extension_name: The name of the machine extension. :type extension_name: str :param extension_parameters: Parameters supplied to the Create Machine Extension operation. - :type extension_parameters: ~azure_arc_vmware_management_service_api.models.MachineExtension + :type extension_parameters: ~azure.mgmt.connectedvmware.models.MachineExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this @@ -346,8 +346,7 @@ def begin_create_or_update( Retry-After header is present. :return: An instance of LROPoller that returns either MachineExtension or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure_arc_vmware_management_service_api.models.MachineExtension] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.connectedvmware.models.MachineExtension] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -472,8 +471,7 @@ def begin_update( :param extension_name: The name of the machine extension. :type extension_name: str :param extension_parameters: Parameters supplied to the Create Machine Extension operation. - :type extension_parameters: - ~azure_arc_vmware_management_service_api.models.MachineExtensionUpdate + :type extension_parameters: ~azure.mgmt.connectedvmware.models.MachineExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this @@ -484,8 +482,7 @@ def begin_update( Retry-After header is present. :return: An instance of LROPoller that returns either MachineExtension or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure_arc_vmware_management_service_api.models.MachineExtension] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.connectedvmware.models.MachineExtension] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -571,8 +568,13 @@ def _delete_initial( # pylint: disable=inconsistent-return-statements map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/extensions/{extensionName}"} # type: ignore @@ -663,7 +665,7 @@ def get( :type extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: MachineExtension, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.MachineExtension + :rtype: ~azure.mgmt.connectedvmware.models.MachineExtension :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.MachineExtension"] @@ -729,7 +731,7 @@ def list( :return: An iterator like instance of either MachineExtensionsListResult or the result of cls(response) :rtype: - ~azure.core.paging.ItemPaged[~azure_arc_vmware_management_service_api.models.MachineExtensionsListResult] + ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.MachineExtensionsListResult] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_operations.py index 3d6bea9ebf4..43d90e1da5c 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_operations.py @@ -65,7 +65,7 @@ class Operations(object): 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 + :type models: ~azure.mgmt.connectedvmware.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -90,8 +90,7 @@ def list( :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either OperationsList or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure_arc_vmware_management_service_api.models.OperationsList] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.OperationsList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_resource_pools_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_resource_pools_operations.py index 695faa92c56..12fc3e9a471 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_resource_pools_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_resource_pools_operations.py @@ -265,7 +265,7 @@ class ResourcePoolsOperations(object): 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 + :type models: ~azure.mgmt.connectedvmware.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -357,7 +357,7 @@ def begin_create( :param resource_pool_name: Name of the resourcePool. :type resource_pool_name: str :param body: Request payload. - :type body: ~azure_arc_vmware_management_service_api.models.ResourcePool + :type body: ~azure.mgmt.connectedvmware.models.ResourcePool :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this @@ -368,8 +368,7 @@ def begin_create( Retry-After header is present. :return: An instance of LROPoller that returns either ResourcePool or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure_arc_vmware_management_service_api.models.ResourcePool] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.connectedvmware.models.ResourcePool] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -433,7 +432,7 @@ def get( :type resource_pool_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: ResourcePool, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.ResourcePool + :rtype: ~azure.mgmt.connectedvmware.models.ResourcePool :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.ResourcePool"] @@ -495,10 +494,10 @@ def update( :param resource_pool_name: Name of the resourcePool. :type resource_pool_name: str :param body: Resource properties to update. - :type body: ~azure_arc_vmware_management_service_api.models.ResourcePatch + :type body: ~azure.mgmt.connectedvmware.models.ResourcePatch :keyword callable cls: A custom type or function that will be passed the direct response :return: ResourcePool, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.ResourcePool + :rtype: ~azure.mgmt.connectedvmware.models.ResourcePool :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.ResourcePool"] @@ -588,8 +587,13 @@ def _delete_initial( # pylint: disable=inconsistent-return-statements map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/{resourcePoolName}"} # type: ignore @@ -675,8 +679,7 @@ def list( :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ResourcePoolsList or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure_arc_vmware_management_service_api.models.ResourcePoolsList] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.ResourcePoolsList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -754,8 +757,7 @@ def list_by_resource_group( :type resource_group_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ResourcePoolsList or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure_arc_vmware_management_service_api.models.ResourcePoolsList] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.ResourcePoolsList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_vcenters_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_vcenters_operations.py index d2f3d1d4b08..440fbc8d3eb 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_vcenters_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_vcenters_operations.py @@ -265,7 +265,7 @@ class VCentersOperations(object): 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 + :type models: ~azure.mgmt.connectedvmware.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -357,7 +357,7 @@ def begin_create( :param vcenter_name: Name of the vCenter. :type vcenter_name: str :param body: Request payload. - :type body: ~azure_arc_vmware_management_service_api.models.VCenter + :type body: ~azure.mgmt.connectedvmware.models.VCenter :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this @@ -367,7 +367,7 @@ def begin_create( :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VCenter or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure_arc_vmware_management_service_api.models.VCenter] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.connectedvmware.models.VCenter] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -431,7 +431,7 @@ def get( :type vcenter_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: VCenter, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.VCenter + :rtype: ~azure.mgmt.connectedvmware.models.VCenter :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.VCenter"] @@ -493,10 +493,10 @@ def update( :param vcenter_name: Name of the vCenter. :type vcenter_name: str :param body: Resource properties to update. - :type body: ~azure_arc_vmware_management_service_api.models.ResourcePatch + :type body: ~azure.mgmt.connectedvmware.models.ResourcePatch :keyword callable cls: A custom type or function that will be passed the direct response :return: VCenter, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.VCenter + :rtype: ~azure.mgmt.connectedvmware.models.VCenter :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.VCenter"] @@ -586,8 +586,13 @@ def _delete_initial( # pylint: disable=inconsistent-return-statements map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/vcenters/{vcenterName}"} # type: ignore @@ -673,8 +678,7 @@ def list( :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either VCentersList or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure_arc_vmware_management_service_api.models.VCentersList] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.VCentersList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -752,8 +756,7 @@ def list_by_resource_group( :type resource_group_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either VCentersList or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure_arc_vmware_management_service_api.models.VCentersList] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.VCentersList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_virtual_machine_instances_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_virtual_machine_instances_operations.py index 144348a2e8c..b441d8cd9eb 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_virtual_machine_instances_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_virtual_machine_instances_operations.py @@ -11,6 +11,7 @@ from msrest import Serializer 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 HttpResponse from azure.core.polling import LROPoller, NoPolling, PollingMethod @@ -24,7 +25,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Optional, TypeVar, Union + from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -318,7 +319,7 @@ class VirtualMachineInstancesOperations(object): 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 + :type models: ~azure.mgmt.connectedvmware.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -406,7 +407,7 @@ def begin_create_or_update( Compute machine resource to be extended. :type resource_uri: str :param body: Request payload. - :type body: ~azure_arc_vmware_management_service_api.models.VirtualMachineInstance + :type body: ~azure.mgmt.connectedvmware.models.VirtualMachineInstance :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 @@ -418,7 +419,7 @@ def begin_create_or_update( :return: An instance of LROPoller that returns either VirtualMachineInstance or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure_arc_vmware_management_service_api.models.VirtualMachineInstance] + ~azure.core.polling.LROPoller[~azure.mgmt.connectedvmware.models.VirtualMachineInstance] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -479,7 +480,7 @@ def get( :type resource_uri: str :keyword callable cls: A custom type or function that will be passed the direct response :return: VirtualMachineInstance, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.VirtualMachineInstance + :rtype: ~azure.mgmt.connectedvmware.models.VirtualMachineInstance :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineInstance"] @@ -564,11 +565,16 @@ def _update_initial( raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = None + response_headers = {} if response.status_code == 200: deserialized = self._deserialize('VirtualMachineInstance', pipeline_response) + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, response_headers) return deserialized @@ -591,7 +597,7 @@ def begin_update( Compute machine resource to be extended. :type resource_uri: str :param body: Resource properties to update. - :type body: ~azure_arc_vmware_management_service_api.models.VirtualMachineInstanceUpdate + :type body: ~azure.mgmt.connectedvmware.models.VirtualMachineInstanceUpdate :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 @@ -603,7 +609,7 @@ def begin_update( :return: An instance of LROPoller that returns either VirtualMachineInstance or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure_arc_vmware_management_service_api.models.VirtualMachineInstance] + ~azure.core.polling.LROPoller[~azure.mgmt.connectedvmware.models.VirtualMachineInstance] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -682,12 +688,17 @@ def _delete_initial( # pylint: disable=inconsistent-return-statements ) response = pipeline_response.http_response - if response.status_code not in [200, 202, 204]: + if response.status_code not in [202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _delete_initial.metadata = {'url': "/{resourceUri}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default"} # type: ignore @@ -768,7 +779,7 @@ def list( resource_uri, # type: str **kwargs # type: Any ): - # type: (...) -> "_models.VirtualMachineInstancesList" + # type: (...) -> Iterable["_models.VirtualMachineInstancesList"] """Implements List virtual machine instances. Lists all of the virtual machine instances within the specified parent resource. @@ -777,49 +788,72 @@ def list( Compute machine resource to be extended. :type resource_uri: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: VirtualMachineInstancesList, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.VirtualMachineInstancesList + :return: An iterator like instance of either VirtualMachineInstancesList or the result of + cls(response) + :rtype: + ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.VirtualMachineInstancesList] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineInstancesList"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) + def prepare_request(next_link=None): + if not next_link: + + request = build_list_request( + resource_uri=resource_uri, + api_version=api_version, + template_url=self.list.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + else: + + request = build_list_request( + resource_uri=resource_uri, + api_version=api_version, + template_url=next_link, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + request.method = "GET" + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize("VirtualMachineInstancesList", 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) - api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str - - - request = build_list_request( - resource_uri=resource_uri, - api_version=api_version, - template_url=self.list.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 + def get_next(next_link=None): + request = prepare_request(next_link) - 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, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) + response = pipeline_response.http_response - deserialized = self._deserialize('VirtualMachineInstancesList', pipeline_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, pipeline_response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - if cls: - return cls(pipeline_response, deserialized, {}) + return pipeline_response - return deserialized + return ItemPaged( + get_next, extract_data + ) list.metadata = {'url': "/{resourceUri}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances"} # type: ignore - def _stop_initial( # pylint: disable=inconsistent-return-statements self, resource_uri, # type: str @@ -858,12 +892,16 @@ def _stop_initial( # pylint: disable=inconsistent-return-statements ) response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [202]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _stop_initial.metadata = {'url': "/{resourceUri}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default/stop"} # type: ignore @@ -884,7 +922,7 @@ def begin_stop( # pylint: disable=inconsistent-return-statements Compute machine resource to be extended. :type resource_uri: str :param body: Virtualmachine stop action payload. - :type body: ~azure_arc_vmware_management_service_api.models.StopVirtualMachineOptions + :type body: ~azure.mgmt.connectedvmware.models.StopVirtualMachineOptions :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this @@ -966,12 +1004,16 @@ def _start_initial( # pylint: disable=inconsistent-return-statements ) response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [202]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _start_initial.metadata = {'url': "/{resourceUri}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default/start"} # type: ignore @@ -1068,12 +1110,16 @@ def _restart_initial( # pylint: disable=inconsistent-return-statements ) response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [202]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _restart_initial.metadata = {'url': "/{resourceUri}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default/restart"} # type: ignore diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_virtual_machine_templates_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_virtual_machine_templates_operations.py index e8fd018e21f..ff47a8d478f 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_virtual_machine_templates_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_virtual_machine_templates_operations.py @@ -265,7 +265,7 @@ class VirtualMachineTemplatesOperations(object): 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 + :type models: ~azure.mgmt.connectedvmware.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -357,7 +357,7 @@ def begin_create( :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_arc_vmware_management_service_api.models.VirtualMachineTemplate + :type body: ~azure.mgmt.connectedvmware.models.VirtualMachineTemplate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this @@ -369,7 +369,7 @@ def begin_create( :return: An instance of LROPoller that returns either VirtualMachineTemplate or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure_arc_vmware_management_service_api.models.VirtualMachineTemplate] + ~azure.core.polling.LROPoller[~azure.mgmt.connectedvmware.models.VirtualMachineTemplate] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -433,7 +433,7 @@ def get( :type virtual_machine_template_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: VirtualMachineTemplate, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.VirtualMachineTemplate + :rtype: ~azure.mgmt.connectedvmware.models.VirtualMachineTemplate :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineTemplate"] @@ -495,10 +495,10 @@ def update( :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_arc_vmware_management_service_api.models.ResourcePatch + :type body: ~azure.mgmt.connectedvmware.models.ResourcePatch :keyword callable cls: A custom type or function that will be passed the direct response :return: VirtualMachineTemplate, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.VirtualMachineTemplate + :rtype: ~azure.mgmt.connectedvmware.models.VirtualMachineTemplate :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineTemplate"] @@ -588,8 +588,13 @@ def _delete_initial( # pylint: disable=inconsistent-return-statements map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/{virtualMachineTemplateName}"} # type: ignore @@ -677,7 +682,7 @@ def list( :return: An iterator like instance of either VirtualMachineTemplatesList or the result of cls(response) :rtype: - ~azure.core.paging.ItemPaged[~azure_arc_vmware_management_service_api.models.VirtualMachineTemplatesList] + ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.VirtualMachineTemplatesList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -757,7 +762,7 @@ def list_by_resource_group( :return: An iterator like instance of either VirtualMachineTemplatesList or the result of cls(response) :rtype: - ~azure.core.paging.ItemPaged[~azure_arc_vmware_management_service_api.models.VirtualMachineTemplatesList] + ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.VirtualMachineTemplatesList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_virtual_machines_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_virtual_machines_operations.py index 9d834c2e311..5ba25c102a5 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_virtual_machines_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_virtual_machines_operations.py @@ -459,7 +459,7 @@ class VirtualMachinesOperations(object): 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 + :type models: ~azure.mgmt.connectedvmware.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -512,11 +512,16 @@ def _assess_patches_initial( raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = None + response_headers = {} if response.status_code == 200: deserialized = self._deserialize('VirtualMachineAssessPatchesResult', pipeline_response) + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, response_headers) return deserialized @@ -548,7 +553,7 @@ def begin_assess_patches( :return: An instance of LROPoller that returns either VirtualMachineAssessPatchesResult or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure_arc_vmware_management_service_api.models.VirtualMachineAssessPatchesResult] + ~azure.core.polling.LROPoller[~azure.mgmt.connectedvmware.models.VirtualMachineAssessPatchesResult] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -634,11 +639,16 @@ def _install_patches_initial( raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = None + response_headers = {} if response.status_code == 200: deserialized = self._deserialize('VirtualMachineInstallPatchesResult', pipeline_response) + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, response_headers) return deserialized @@ -662,7 +672,7 @@ def begin_install_patches( :type virtual_machine_name: str :param install_patches_input: Input for InstallPatches as directly received by the API. :type install_patches_input: - ~azure_arc_vmware_management_service_api.models.VirtualMachineInstallPatchesParameters + ~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 @@ -674,7 +684,7 @@ def begin_install_patches( :return: An instance of LROPoller that returns either VirtualMachineInstallPatchesResult or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure_arc_vmware_management_service_api.models.VirtualMachineInstallPatchesResult] + ~azure.core.polling.LROPoller[~azure.mgmt.connectedvmware.models.VirtualMachineInstallPatchesResult] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -797,7 +807,7 @@ def begin_create_or_update( :param virtual_machine_name: Name of the virtual machine resource. :type virtual_machine_name: str :param body: Request payload. - :type body: ~azure_arc_vmware_management_service_api.models.VirtualMachine + :type body: ~azure.mgmt.connectedvmware.models.VirtualMachine :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this @@ -808,8 +818,7 @@ def begin_create_or_update( Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachine or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure_arc_vmware_management_service_api.models.VirtualMachine] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.connectedvmware.models.VirtualMachine] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -873,7 +882,7 @@ def get( :type virtual_machine_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: VirtualMachine, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.VirtualMachine + :rtype: ~azure.mgmt.connectedvmware.models.VirtualMachine :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] @@ -963,14 +972,19 @@ def _update_initial( raise HttpResponseError(response=response, error_format=ARMErrorFormat) deserialized = None + response_headers = {} if response.status_code == 200: deserialized = self._deserialize('VirtualMachine', pipeline_response) if response.status_code == 201: deserialized = self._deserialize('VirtualMachine', pipeline_response) + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, response_headers) return deserialized @@ -995,7 +1009,7 @@ def begin_update( :param virtual_machine_name: Name of the virtual machine resource. :type virtual_machine_name: str :param body: Resource properties to update. - :type body: ~azure_arc_vmware_management_service_api.models.VirtualMachineUpdate + :type body: ~azure.mgmt.connectedvmware.models.VirtualMachineUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this @@ -1006,8 +1020,7 @@ def begin_update( Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachine or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure_arc_vmware_management_service_api.models.VirtualMachine] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.connectedvmware.models.VirtualMachine] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -1094,8 +1107,13 @@ def _delete_initial( # pylint: disable=inconsistent-return-statements map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}"} # type: ignore @@ -1218,8 +1236,13 @@ def _stop_initial( # pylint: disable=inconsistent-return-statements map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _stop_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/stop"} # type: ignore @@ -1242,7 +1265,7 @@ def begin_stop( # pylint: disable=inconsistent-return-statements :param virtual_machine_name: Name of the virtual machine resource. :type virtual_machine_name: str :param body: Virtualmachine stop action payload. - :type body: ~azure_arc_vmware_management_service_api.models.StopVirtualMachineOptions + :type body: ~azure.mgmt.connectedvmware.models.StopVirtualMachineOptions :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this @@ -1332,8 +1355,13 @@ def _start_initial( # pylint: disable=inconsistent-return-statements map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _start_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/start"} # type: ignore @@ -1440,8 +1468,13 @@ def _restart_initial( # pylint: disable=inconsistent-return-statements map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _restart_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/restart"} # type: ignore @@ -1523,8 +1556,7 @@ def list_all( :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either VirtualMachinesList or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure_arc_vmware_management_service_api.models.VirtualMachinesList] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.VirtualMachinesList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -1602,8 +1634,7 @@ def list( :type resource_group_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either VirtualMachinesList or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure_arc_vmware_management_service_api.models.VirtualMachinesList] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.VirtualMachinesList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_virtual_networks_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_virtual_networks_operations.py index cda42657951..19000b3be2d 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_virtual_networks_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_virtual_networks_operations.py @@ -265,7 +265,7 @@ class VirtualNetworksOperations(object): 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 + :type models: ~azure.mgmt.connectedvmware.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -357,7 +357,7 @@ def begin_create( :param virtual_network_name: Name of the virtual network resource. :type virtual_network_name: str :param body: Request payload. - :type body: ~azure_arc_vmware_management_service_api.models.VirtualNetwork + :type body: ~azure.mgmt.connectedvmware.models.VirtualNetwork :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this @@ -368,8 +368,7 @@ def begin_create( Retry-After header is present. :return: An instance of LROPoller that returns either VirtualNetwork or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure_arc_vmware_management_service_api.models.VirtualNetwork] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.connectedvmware.models.VirtualNetwork] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -433,7 +432,7 @@ def get( :type virtual_network_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: VirtualNetwork, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.VirtualNetwork + :rtype: ~azure.mgmt.connectedvmware.models.VirtualNetwork :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualNetwork"] @@ -495,10 +494,10 @@ def update( :param virtual_network_name: Name of the virtual network resource. :type virtual_network_name: str :param body: Resource properties to update. - :type body: ~azure_arc_vmware_management_service_api.models.ResourcePatch + :type body: ~azure.mgmt.connectedvmware.models.ResourcePatch :keyword callable cls: A custom type or function that will be passed the direct response :return: VirtualNetwork, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.VirtualNetwork + :rtype: ~azure.mgmt.connectedvmware.models.VirtualNetwork :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualNetwork"] @@ -588,8 +587,13 @@ def _delete_initial( # pylint: disable=inconsistent-return-statements map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks/{virtualNetworkName}"} # type: ignore @@ -675,8 +679,7 @@ def list( :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either VirtualNetworksList or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure_arc_vmware_management_service_api.models.VirtualNetworksList] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.VirtualNetworksList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -754,8 +757,7 @@ def list_by_resource_group( :type resource_group_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either VirtualNetworksList or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure_arc_vmware_management_service_api.models.VirtualNetworksList] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.VirtualNetworksList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_vm_instance_guest_agents_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_vm_instance_guest_agents_operations.py index 84d63458ec0..0a29bb82eee 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_vm_instance_guest_agents_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_vm_instance_guest_agents_operations.py @@ -175,7 +175,7 @@ class VMInstanceGuestAgentsOperations(object): 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 + :type models: ~azure.mgmt.connectedvmware.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -262,7 +262,7 @@ def begin_create( Compute machine resource to be extended. :type resource_uri: str :param body: Request payload. - :type body: ~azure_arc_vmware_management_service_api.models.GuestAgent + :type body: ~azure.mgmt.connectedvmware.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 @@ -272,8 +272,7 @@ def begin_create( :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] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.connectedvmware.models.GuestAgent] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str @@ -334,7 +333,7 @@ def get( :type resource_uri: 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 + :rtype: ~azure.mgmt.connectedvmware.models.GuestAgent :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.GuestAgent"] @@ -406,12 +405,17 @@ def _delete_initial( # pylint: disable=inconsistent-return-statements ) response = pipeline_response.http_response - if response.status_code not in [200, 202, 204]: + if response.status_code not in [202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + if response.status_code == 202: + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _delete_initial.metadata = {'url': "/{resourceUri}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default/guestAgents/default"} # type: ignore @@ -494,8 +498,7 @@ def list( :type resource_uri: 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] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.GuestAgentList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_vm_instance_hybrid_identity_metadata_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_vm_instance_hybrid_identity_metadata_operations.py index 83a5c124ae7..1bc2b7400fb 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_vm_instance_hybrid_identity_metadata_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/connectedvmware/operations/_vm_instance_hybrid_identity_metadata_operations.py @@ -104,7 +104,7 @@ class VmInstanceHybridIdentityMetadataOperations(object): 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 + :type models: ~azure.mgmt.connectedvmware.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -135,7 +135,7 @@ def get( :type resource_uri: str :keyword callable cls: A custom type or function that will be passed the direct response :return: VmInstanceHybridIdentityMetadata, or the result of cls(response) - :rtype: ~azure_arc_vmware_management_service_api.models.VmInstanceHybridIdentityMetadata + :rtype: ~azure.mgmt.connectedvmware.models.VmInstanceHybridIdentityMetadata :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.VmInstanceHybridIdentityMetadata"] @@ -195,7 +195,7 @@ def list( :return: An iterator like instance of either VmInstanceHybridIdentityMetadataList or the result of cls(response) :rtype: - ~azure.core.paging.ItemPaged[~azure_arc_vmware_management_service_api.models.VmInstanceHybridIdentityMetadataList] + ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.VmInstanceHybridIdentityMetadataList] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = kwargs.pop('api_version', "2023-03-01-preview") # type: str diff --git a/src/connectedvmware/azext_connectedvmware/vmware_utils.py b/src/connectedvmware/azext_connectedvmware/vmware_utils.py index dfb642baa39..dfbfbdd871e 100644 --- a/src/connectedvmware/azext_connectedvmware/vmware_utils.py +++ b/src/connectedvmware/azext_connectedvmware/vmware_utils.py @@ -3,69 +3,174 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -from knack.util import CLIError +from typing import Optional, Dict, Set +from azure.cli.core.azclierror import InvalidArgumentValueError, CLIInternalError from azure.cli.core.commands.client_factory import get_subscription_id -from msrestazure.tools import is_valid_resource_id, resource_id +from msrestazure.tools import is_valid_resource_id, parse_resource_id, resource_id +# pylint: disable=too-many-statements def get_resource_id( cmd, - resource_group_name, - provider_name_space, - resource_type, - resource, - child_type_1=None, - child_name_1=None, - child_type_2=None, - child_name_2=None, + resource_group: str, + namespace: str, + _type: str, + name: Optional[str], + **kwargs: Optional[str], ): """ - Gets the resource id for the resource if name is given. + Constructs the resource id for the arguments parts provided. + + name can be resource name, resource id or None. + If name is None, it can be inferred from + child_name_X where X > 0 and child_name_X is a resource id. + If name is None, and there is no child, None is returned. + If the name of the final child is None, None is returned. + + kwargs can contain multiple child_type_N, child_name_N, child_namespace_N, where N > 0. + child_type_N, child_name_N are mandatory fields for each N > 0. + + child_name_N can be None. + child_name_N can be either a resource name or a resource id. + If child_name_N is None, it can be inferred from + child_name_X where X > N and child_name_X is a resource id. + + child_namespace_N cannot be None. + + child_namespace_N is optional. If provided, it must not be None. + If not provided, it can be inferred from + child_name_X where X > N and child_name_X is a resource id. + + If the resource id provided as child_name_N is not a valid resource id, + or if it not a valid resource id in the context of the parent resource, + an InvalidArgumentValueError is raised. + + For any unexpected error, a CLIInternalError is raised, which should be + treated as a bug. """ - _resource_id = None - if child_type_1 and child_name_1 and child_type_2 and child_name_2: - if not is_valid_resource_id(child_name_2): - resource = resource.split('/')[-1] - _resource_id = resource_id( - subscription=get_subscription_id(cmd.cli_ctx), - resource_group=resource_group_name, - namespace=provider_name_space, - type=resource_type, - name=resource, - child_type_1=child_type_1, - child_name_1=child_name_1, - child_type_2=child_type_2, - child_name_2=child_name_2, + if name is None and not kwargs: + return None + + selected_keys = { + "subscription", "resource_group", "namespace", "type", "name" + } + selected_key_prefixes = { + "child_type_", + "child_name_", + "child_namespace_", + } + + def process_resource_name( + rid_parts: Dict[str, str], + resource_name_key: str, + resource_name: Optional[str], + ): + if resource_name is None: + raise CLIInternalError( + f"resource_name could not be processed since it is None; " + f"resource_name_key = {resource_name_key}, " + f"current_rid_parts = {rid_parts}" ) - else: - _resource_id = child_name_2 - elif child_type_1 and child_name_1: - if not is_valid_resource_id(child_name_1): - resource = resource.split('/')[-1] - _resource_id = resource_id( - subscription=get_subscription_id(cmd.cli_ctx), - resource_group=resource_group_name, - namespace=provider_name_space, - type=resource_type, - name=resource, - child_type_1=child_type_1, - child_name_1=child_name_1, + if not is_valid_resource_id(resource_name): + if "/" in resource_name: + raise InvalidArgumentValueError( + f"'{resource_name}' is not a valid resource name or id" + ) + rid_parts[resource_name_key] = resource_name + return + child_rid_parts = parse_resource_id(resource_name) + child_rid_parts_keys = list(child_rid_parts.keys()) + for key in child_rid_parts_keys: + if key in selected_keys: + continue + if any(key.startswith(prefix) for prefix in selected_key_prefixes): + continue + child_rid_parts.pop(key) + child_set = { + k.lower(): v.lower() for k, v in child_rid_parts.items() if v is not None + } + parent_set = { + k.lower(): v.lower() for k, v in rid_parts.items() if v is not None + } + if not parent_set.items() <= child_set.items(): + raise InvalidArgumentValueError( + f'"{resource_name}" is not a valid child resource id in the parent context: {parent_set}' ) - else: - _resource_id = child_name_1 + rid_parts.update(child_rid_parts) + + rid_parts: dict[str, str] = {} + rid_parts.update( + resource_group=resource_group, + namespace=namespace, + type=_type, + ) + null_keys: Set[str] = set() + if name is not None: + process_resource_name(rid_parts, "name", name) else: - if not is_valid_resource_id(resource): - _resource_id = resource_id( - subscription=get_subscription_id(cmd.cli_ctx), - resource_group=resource_group_name, - namespace=provider_name_space, - type=resource_type, - name=resource, + null_keys.add("name") + + max_child_level = 0 + while True: + next_level = max_child_level + 1 + child_type_key = f"child_type_{next_level}" + child_name_key = f"child_name_{next_level}" + child_namespace_key = f"child_namespace_{next_level}" + has_child_type = child_type_key in kwargs + has_child_name = child_name_key in kwargs + has_child_namespace = child_namespace_key in kwargs + if not any([has_child_name, has_child_type]): + if has_child_namespace: + raise CLIInternalError( + f'unexpected error: "{child_namespace_key}" must be ' + f'specified with "{child_type_key}": kwargs = {kwargs}' + ) + break + if not all([has_child_name, has_child_type]): + raise CLIInternalError( + f"unexpected error: '{child_type_key}' must be " + f"specified with '{child_name_key}'; " + f"type cannot be None, value can be None: kwargs = {kwargs}" + ) + max_child_level = next_level + child_type = kwargs.get(child_type_key) + child_name = kwargs.get(child_name_key) + child_namespace = kwargs.get(child_namespace_key, None) + if has_child_namespace: + if child_namespace is None: + raise CLIInternalError( + f'unexpected error: "{child_namespace_key}", if provided,' + f" should not be None: kwargs = {kwargs}" + ) + rid_parts[child_namespace_key] = child_namespace + if child_type is None: + raise CLIInternalError( + f"unexpected error: '{child_type_key}' must be provided " + f"and should not be None: kwargs = {kwargs}" + ) + rid_parts[child_type_key] = child_type + if child_name is None: + # name was not specified, so it must be inferred + # from a successor of this resource + null_keys.add(child_name_key) + continue + process_resource_name(rid_parts, child_name_key, child_name) + + if f"child_name_{max_child_level}" in null_keys: + return None + + for null_key in null_keys: + if null_key not in rid_parts: + raise CLIInternalError( + f"unexpected error: '{null_key}' could not be populated " + f"in rid_parts: rid_parts = {rid_parts}" ) - else: - _resource_id = resource - return _resource_id + + if "subscription" not in rid_parts: + rid_parts["subscription"] = get_subscription_id(cmd.cli_ctx) + + return resource_id(**rid_parts) def create_dictionary_from_arg_string(values, option_string=None): @@ -78,7 +183,7 @@ def create_dictionary_from_arg_string(values, option_string=None): key, value = item.split('=', 1) params_dict[key.lower()] = value except ValueError as item_no_exist: - raise CLIError( + raise InvalidArgumentValueError( f'usage error: {option_string} KEY=VALUE [KEY=VALUE ...]' ) from item_no_exist return params_dict diff --git a/src/connectedvmware/azext_connectedvmware/vmware_utils_test.py b/src/connectedvmware/azext_connectedvmware/vmware_utils_test.py new file mode 100644 index 00000000000..fc3856178c1 --- /dev/null +++ b/src/connectedvmware/azext_connectedvmware/vmware_utils_test.py @@ -0,0 +1,272 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +import unittest +from azure.cli.core.azclierror import InvalidArgumentValueError, CLIInternalError +from azure.cli.core import AzCommandsLoader +from azure.cli.core.commands import AzCliCommand +from azure.cli.core.mock import DummyCli + +from azext_connectedvmware.vmware_utils import get_resource_id + + +class TestGetResourceId(unittest.TestCase): + @staticmethod + def _get_test_cmd(): + cli_ctx = DummyCli() + cli_ctx.data["subscription_id"] = "00000000-0000-0000-0000-000000000000" # type: ignore + loader = AzCommandsLoader(cli_ctx) + cmd = AzCliCommand(loader, "test", None) + cmd.cli_ctx = cli_ctx + return cmd + + def test_get_resource_id_no_name_no_children(self): + cmd = self._get_test_cmd() + + result = get_resource_id( + cmd, "contoso-rg", "Microsoft.HybridCompute", "Machines", None + ) + + self.assertIsNone(result) + + def test_get_resource_id_invalid_resource_name(self): + cmd = self._get_test_cmd() + + with self.assertRaises(InvalidArgumentValueError): + get_resource_id( + cmd, + "contoso-rg", + "Microsoft.HybridCompute", + "Machines", + "invalid/resource", + ) + + def test_get_resource_id_with_child1_id(self): + cmd = self._get_test_cmd() + + res_id = ( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-rg" + "/providers/Microsoft.HybridCompute/Machines/contoso-machine" + "/providers/Microsoft.ConnectedVMwarevSphere/VirtualMachineInstances/default" + ) + result = get_resource_id( + cmd, + "contoso-rg", + "Microsoft.HybridCompute", + "Machines", + None, + child_type_1="VirtualMachineInstances", + child_name_1=res_id, + ) + + expected_result = res_id + assert result is not None + self.assertEqual(result, expected_result) + + def test_get_resource_id_with_child2_id_and_diff_sub_id(self): + cmd = self._get_test_cmd() + + res_id = ( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-rg" + "/providers/Microsoft.HybridCompute/Machines/contoso-machine" + "/providers/Microsoft.ConnectedVMwarevSphere/VirtualMachineInstances/default/guestagents/default" + ) + + result = get_resource_id( + cmd, + "contoso-rg", + "Microsoft.HybridCompute", + "Machines", + "contoso-machine", + child_namespace_1="Microsoft.ConnectedVMwarevSphere", + child_type_1="VirtualMachineInstances", + child_name_1="default", + child_type_2="guestagents", + child_name_2="default", + ) + + expected_result = res_id + assert result is not None + self.assertEqual(result.lower(), expected_result.lower()) + + def test_get_resource_id_with_intermediate_id_and_diff_sub_id(self): + cmd = self._get_test_cmd() + + inter_res_id = ( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-rg" + "/providers/Microsoft.HybridCompute/Machines/contoso-machine" + "/providers/Microsoft.ConnectedVMwarevSphere/VirtualMachineInstances/default" + ) + + result = get_resource_id( + cmd, + "contoso-rg", + "Microsoft.HybridCompute", + "Machines", + None, + child_type_1="VirtualMachineInstances", + child_name_1=inter_res_id, + child_type_2="guestagents", + child_name_2="default", + ) + + expected_result = f"{inter_res_id}/guestagents/default" + assert result is not None + self.assertEqual(result.lower(), expected_result.lower()) + + def test_get_resource_id_with_multiple_id(self): + cmd = self._get_test_cmd() + + inter_res_id = ( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-rg" + "/providers/Microsoft.HybridCompute/Machines/contoso-machine" + "/providers/Microsoft.ConnectedVMwarevSphere/VirtualMachineInstances/default" + ) + + res_id = f"{inter_res_id}/guestagents/default" + + result = get_resource_id( + cmd, + "contoso-rg", + "Microsoft.HybridCompute", + "Machines", + None, + child_type_1="VirtualMachineInstances", + child_name_1=inter_res_id, + child_type_2="guestagents", + child_name_2=res_id, + ) + + expected_result = res_id + assert result is not None + self.assertEqual(result.lower(), expected_result.lower()) + + def test_get_resource_id_with_final_child_none(self): + cmd = self._get_test_cmd() + + res_id = ( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-rg" + "/providers/Microsoft.HybridCompute/Machines/contoso-machine" + "/providers/Microsoft.SCVMM/VirtualMachineInstances/default" + ) + + result = get_resource_id( + cmd, + "contoso-rg", + "Microsoft.HybridCompute", + "Machines", + "contoso-machine", + child_namespace_1="Microsoft.SCVMM", + child_type_1="VirtualMachineInstances", + child_name_1=res_id, + child_type_2="guestagents", + child_name_2=None, + ) + + self.assertIsNone(result) + + def test_get_resource_id_with_invalid_child_type(self): + cmd = self._get_test_cmd() + + inter_res_id = ( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-rg" + "/providers/Microsoft.HybridCompute/Machines/contoso-machine" + "/providers/Microsoft.ConnectedVMwarevSphere/VirtualMachines/default" + ) + + with self.assertRaises(InvalidArgumentValueError): + get_resource_id( + cmd, + "contoso-rg", + "Microsoft.HybridCompute", + "Machines", + None, + child_type_1="VirtualMachineInstances", + child_name_1=inter_res_id, + child_type_2="guestagents", + child_name_2="default", + ) + + def test_get_resource_id_with_invalid_resource_id(self): + cmd = self._get_test_cmd() + + # Contains extra slash + inter_res_id = ( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-rg" + "/providers/Microsoft.HybridCompute/Machines/contoso-machine" + "/providers/Microsoft.ConnectedVMwarevSphere//VirtualMachineInstances/default" + ) + + with self.assertRaises(InvalidArgumentValueError): + get_resource_id( + cmd, + "contoso-rg", + "Microsoft.HybridCompute", + "Machines", + None, + child_type_1="VirtualMachineInstances", + child_name_1=inter_res_id, + child_type_2="guestagents", + child_name_2="default", + ) + + def test_get_resource_id_with_type_none(self): + cmd = self._get_test_cmd() + + with self.assertRaises(CLIInternalError): + get_resource_id( + cmd, + "contoso-rg", + "Microsoft.HybridCompute", + "Machines", + "contoso-machine", + child_type_1=None, + child_name_1="VirtualMachineInstances/default", + ) + + def test_get_resource_id_with_namespace_dangling(self): + cmd = self._get_test_cmd() + + with self.assertRaises(CLIInternalError): + get_resource_id( + cmd, + "contoso-rg", + "Microsoft.HybridCompute", + "Machines", + "contoso-machine", + child_namespace_1="Microsoft.ConnectedVMwarevSphere", + ) + + def test_get_resource_id_with_namespace_none(self): + cmd = self._get_test_cmd() + + with self.assertRaises(CLIInternalError): + get_resource_id( + cmd, + "contoso-rg", + "Microsoft.HybridCompute", + "Machines", + "contoso-machine", + child_type_1="VirtualMachineInstances", + child_name_1="default", + child_namespace_1=None, + ) + + def test_get_resource_id_with_name_missing(self): + cmd = self._get_test_cmd() + + with self.assertRaises(CLIInternalError): + get_resource_id( + cmd, + "contoso-rg", + "Microsoft.HybridCompute", + "Machines", + "contoso-machine", + child_type_1="VirtualMachineInstances", + ) + + +if __name__ == "__main__": + unittest.main() diff --git a/src/connectedvmware/setup.py b/src/connectedvmware/setup.py index c89aa899d94..c1467907380 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.12' +VERSION = '0.2.0' # The full list of classifiers is available at # https://pypi.python.org/pypi?%3Aaction=list_classifiers