diff --git a/src/connectedvmware/HISTORY.rst b/src/connectedvmware/HISTORY.rst index 08e47022c6e..5699886af50 100644 --- a/src/connectedvmware/HISTORY.rst +++ b/src/connectedvmware/HISTORY.rst @@ -3,6 +3,10 @@ Release History =============== +0.1.4 +++++++ +* Add vm extension support. + 0.1.3 ++++++ * Fixed inventory item issue. diff --git a/src/connectedvmware/azext_connectedvmware/_actions.py b/src/connectedvmware/azext_connectedvmware/_actions.py index 349c57ce96f..433736850b8 100644 --- a/src/connectedvmware/azext_connectedvmware/_actions.py +++ b/src/connectedvmware/azext_connectedvmware/_actions.py @@ -2,14 +2,16 @@ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -# pylint: disable= protected-access, too-few-public-methods +# pylint: disable= protected-access, too-few-public-methods, raise-missing-from, no-self-use """ This file contains actions for parsing complex arguments. """ import argparse +from collections import defaultdict from azext_connectedvmware.vmware_utils import create_dictionary_from_arg_string +from azure.cli.core.azclierror import InvalidArgumentValueError class VmNicAddAction(argparse._AppendAction): @@ -36,3 +38,45 @@ def __call__(self, parser, namespace, values, option_string=None): namespace.disks.append(disk_params_dict) else: namespace.disks = [disk_params_dict] + + +class AddStatus(argparse.Action): + def __call__(self, parser, namespace, values, option_string=None): + action = self.get_action(values, option_string) + namespace.status = action + + def get_action(self, values, option_string): + try: + properties = defaultdict(list) + for (k, v) in (x.split('=', 1) for x in values): + properties[k].append(v) + properties = dict(properties) + except ValueError: + raise InvalidArgumentValueError('usage error: {} [KEY=VALUE ...]'.format(option_string)) + d = {} + for k in properties: + kl = k.lower() + v = properties[k] + + if kl == 'code': + d['code'] = v[0] + + elif kl == 'level': + d['level'] = v[0] + + elif kl == 'display-status': + d['display_status'] = v[0] + + elif kl == 'message': + d['message'] = v[0] + + elif kl == 'time': + d['time'] = v[0] + + else: + raise InvalidArgumentValueError( + 'Unsupported Key {} is provided for parameter status. All possible keys are: code, level,' + ' display-status, message, time'.format(k) + ) + + return d diff --git a/src/connectedvmware/azext_connectedvmware/_client_factory.py b/src/connectedvmware/azext_connectedvmware/_client_factory.py index c71f7974029..e7205c64c66 100644 --- a/src/connectedvmware/azext_connectedvmware/_client_factory.py +++ b/src/connectedvmware/azext_connectedvmware/_client_factory.py @@ -79,4 +79,8 @@ def cf_guest_agent(cli_ctx, *_): """ Client factory for guest agent. """ - return cf_connectedvmware(cli_ctx).guest_agent + return cf_connectedvmware(cli_ctx).guest_agents + + +def cf_machine_extension(cli_ctx, *_): + return cf_connectedvmware(cli_ctx).machine_extensions diff --git a/src/connectedvmware/azext_connectedvmware/_help.py b/src/connectedvmware/azext_connectedvmware/_help.py index 3f139c7f278..23e2ea8a3ad 100644 --- a/src/connectedvmware/azext_connectedvmware/_help.py +++ b/src/connectedvmware/azext_connectedvmware/_help.py @@ -625,7 +625,6 @@ --vm-name "vm name" """ - helps[ 'connectedvmware vm guest-agent show' ] = """ @@ -638,6 +637,63 @@ --vm-name "name of the vm" """ +helps['connectedvmware vm extension'] = """ + type: group + short-summary: Manage vm extension with connectedvmware +""" + +helps['connectedvmware vm extension list'] = """ + type: command + short-summary: "The operation to get all extensions of a non-Azure vm." + examples: + - name: Get all VM Extensions + text: |- + az connectedvmware vm extension list --vm-name "vm name" --resource-group "myResourceGroup" +""" + +helps['connectedvmware vm extension show'] = """ + type: command + short-summary: "The operation to get the extension." + examples: + - name: Get VM Extension + text: |- + az connectedvmware vm extension show --name "CustomScriptExtension" --vm-name "vm name" \ +--resource-group "myResourceGroup" +""" + +helps['connectedvmware vm extension create'] = """ + type: command + short-summary: "The operation to create the extension." + examples: + - name: Create a VM Extension + text: |- + az connectedvmware vm extension create --name "CustomScriptExtension" --location "eastus2euap" --type \ +"CustomScriptExtension" --publisher "Microsoft.Compute" --settings "{\\"commandToExecute\\":\\"powershell.exe -c \ +\\\\\\"Get-Process | Where-Object { $_.CPU -gt 10000 }\\\\\\"\\"}" --type-handler-version "1.10" --vm-name \ +"vm name" --resource-group "myResourceGroup" +""" + +helps['connectedvmware vm extension update'] = """ + type: command + short-summary: "The operation to update the extension." + examples: + - name: Update a VM Extension + text: |- + az connectedvmware vm extension update --name "CustomScriptExtension" --type "CustomScriptExtension" \ +--publisher "Microsoft.Compute" --settings "{\\"commandToExecute\\":\\"powershell.exe -c \\\\\\"Get-Process | \ +Where-Object { $_.CPU -lt 100 }\\\\\\"\\"}" --type-handler-version "1.10" --vm-name "vm name" --resource-group \ +"myResourceGroup" +""" + +helps['connectedvmware vm extension delete'] = """ + type: command + short-summary: "The operation to delete the extension." + examples: + - name: Delete a VM Extension + text: |- + az connectedvmware vm extension delete --name "vm extension name" --vm-name "vm name" --resource-group \ +"myResourceGroup" +""" helps[ 'connectedvmware vm-template' diff --git a/src/connectedvmware/azext_connectedvmware/_params.py b/src/connectedvmware/azext_connectedvmware/_params.py index 97c1a1d957c..a536fcd04d9 100644 --- a/src/connectedvmware/azext_connectedvmware/_params.py +++ b/src/connectedvmware/azext_connectedvmware/_params.py @@ -5,8 +5,14 @@ # pylint: disable= too-many-statements from knack.arguments import CLIArgumentType -from azure.cli.core.commands.parameters import tags_type -from azure.cli.core.commands.validators import get_default_location_from_resource_group +from azure.cli.core.commands.parameters import ( + tags_type, + get_three_state_flag, +) +from azure.cli.core.commands.validators import ( + get_default_location_from_resource_group, + validate_file_or_dict +) from ._actions import VmNicAddAction, VmDiskAddAction @@ -111,14 +117,10 @@ def load_arguments(self, _): with self.argument_context('connectedvmware vm create') as c: c.argument( - 'vm_template', - options_list=['--vm-template'], - help="Name or ID of the vm template for deploying the vm.", + 'vm_template', help="Name or ID of the vm template for deploying the vm.", ) c.argument( - 'resource_pool', - options_list=['--resource-pool'], - help="Name or ID of the resource pool for deploying the vm.", + 'resource_pool', help="Name or ID of the resource pool for deploying the vm.", ) c.argument( 'cluster', @@ -283,7 +285,7 @@ def load_arguments(self, _): with self.argument_context('connectedvmware vm disk delete') as c: c.argument( - 'vm_name', options_list=['--vm-name'], help="Name of the virtual machine." + 'vm_name', help="Name of the virtual machine." ) c.argument( 'disk_names', @@ -294,7 +296,7 @@ def load_arguments(self, _): with self.argument_context('connectedvmware vm disk list') as c: c.argument( - 'vm_name', options_list=['--vm-name'], help="Name of the virtual machine." + 'vm_name', help="Name of the virtual machine." ) with self.argument_context('connectedvmware vm disk show') as c: @@ -306,7 +308,7 @@ def load_arguments(self, _): with self.argument_context('connectedvmware vm disk update') as c: c.argument('disk_name', options_list=['--name', '-n'], help="Name of the Disk.") c.argument( - 'vm_name', options_list=['--vm-name'], help="Name of the virtual machine." + 'vm_name', help="Name of the virtual machine." ) c.argument( 'disk_size', @@ -338,7 +340,7 @@ def load_arguments(self, _): with self.argument_context('connectedvmware vm guest-agent enable') as c: c.argument( - 'vm_name', options_list=['--vm-name'], help="Name of the VM." + 'vm_name', help="Name of the VM." ) c.argument( 'username', @@ -346,12 +348,68 @@ def load_arguments(self, _): help="Username to use for connecting to the vm.", ) c.argument( - 'password', - options_list=['--password'], + 'password', options_list=['--password'], help="Username password credentials to use for connecting to the VM.", ) with self.argument_context('connectedvmware vm guest-agent show') as c: c.argument( - 'vm_name', options_list=['--vm-name'], help="Name of the VM.", + 'password', options_list=['--password'], + help="Username password credentials to use for connecting to the VM.", ) + + with self.argument_context('connectedvmware vm guest-agent show') as c: + c.argument( + 'vm_name', help="Name of the VM.", + ) + + with self.argument_context('connectedvmware vm extension list') as c: + c.argument('vm_name', type=str, help='The name of the vm containing the extension.') + c.argument( + 'expand', help='The expand expression to apply on the operation.') + + with self.argument_context('connectedvmware vm extension show') as c: + c.argument( + 'vm_name', type=str, help='The name of the vm containing the extension.', + id_part='name') + c.argument('name', type=str, help='The name of the vm extension.', id_part='child_name_1') + + for scope in ['connectedvmware vm extension update', 'connectedvmware vm extension create']: + with self.argument_context(scope) as c: + c.argument( + 'vm_name', type=str, help='The name of the vm where the extension ' + 'should be created or updated.') + c.argument('name', type=str, help='The name of the vm extension.') + c.argument('tags', tags_type) + c.argument( + 'force_update_tag', type=str, help='How the extension handler should be forced to update even if ' + 'the extension configuration has not changed.') + c.argument('publisher', type=str, help='The name of the extension handler publisher.') + c.argument( + 'type_', options_list=['--type'], type=str, help='Specify the type of the extension; an example ' + 'is "CustomScriptExtension".') + c.argument('type_handler_version', type=str, help='Specifies the version of the script handler.') + c.argument( + 'auto_upgrade_minor', arg_type=get_three_state_flag(), help='Indicate whether the extension should ' + 'use a newer minor version if one is available at deployment time. Once deployed, however, the ' + 'extension will not upgrade minor versions unless redeployed, even with this property set to true.') + c.argument( + 'settings', type=validate_file_or_dict, help='Json formatted public settings for the extension. ' + 'Expected value: json-string/json-file/@json-file.') + c.argument( + 'protected_settings', type=validate_file_or_dict, help='The extension can contain either ' + 'protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. Expected ' + 'value: json-string/json-file/@json-file.') + + with self.argument_context('connectedvmware vm extension create') as c: + c.argument( + 'instance_view_type', type=str, help='Specify the type of the extension; an example is ' + '"CustomScriptExtension".', arg_group='Instance View') + c.argument( + 'inst_handler_version', type=str, help='Specify the version of the script handler.', + arg_group='Instance View') + + with self.argument_context('connectedvmware vm extension delete') as c: + c.argument('vm_name', type=str, help='The name of the vm where the extension ' + 'should be deleted.', id_part='name') + c.argument('name', type=str, help='The name of the vm extension.', id_part='child_name_1') diff --git a/src/connectedvmware/azext_connectedvmware/commands.py b/src/connectedvmware/azext_connectedvmware/commands.py index 415351eea39..f6a067f14e4 100644 --- a/src/connectedvmware/azext_connectedvmware/commands.py +++ b/src/connectedvmware/azext_connectedvmware/commands.py @@ -15,6 +15,7 @@ cf_cluster, cf_datastore, cf_host, + cf_machine_extension, ) @@ -116,5 +117,14 @@ def load_command_table(self, _): g.custom_command('enable', 'enable_guest_agent', supports_no_wait=True) g.custom_show_command('show', 'show_guest_agent') + with self.command_group( + 'connectedvmware vm extension', client_factory=cf_machine_extension + ) as g: + g.custom_command('list', 'connectedvmware_extension_list') + g.custom_show_command('show', 'connectedvmware_extension_show') + g.custom_command('create', 'connectedvmware_extension_create', supports_no_wait=True) + g.custom_command('update', 'connectedvmware_extension_update', supports_no_wait=True) + g.custom_command('delete', 'connectedvmware_extension_delete', supports_no_wait=True, confirmation=True) + with self.command_group('connectedvmware', is_preview=False): pass diff --git a/src/connectedvmware/azext_connectedvmware/custom.py b/src/connectedvmware/azext_connectedvmware/custom.py index 354f0364f7d..4e99aba1b83 100644 --- a/src/connectedvmware/azext_connectedvmware/custom.py +++ b/src/connectedvmware/azext_connectedvmware/custom.py @@ -87,7 +87,8 @@ VirtualMachineTemplatesOperations, VirtualMachinesOperations, InventoryItemsOperations, - GuestAgentOperations, + GuestAgentsOperations, + MachineExtensionsOperations, ) from ._client_factory import ( @@ -1755,7 +1756,7 @@ def enable_system_identity( def enable_guest_agent( cmd, - client: GuestAgentOperations, + client: GuestAgentsOperations, resource_group_name, vm_name, username, @@ -1786,7 +1787,7 @@ def enable_guest_agent( def show_guest_agent( - client: GuestAgentOperations, + client: GuestAgentsOperations, resource_group_name, vm_name, ): @@ -1798,3 +1799,138 @@ def show_guest_agent( # endregion + +# region Extenstion + + +def connectedvmware_extension_list( + client: MachineExtensionsOperations, + resource_group_name, + vm_name, + expand=None +): + """ + List all the vm extension of a given vm. + """ + + return client.list(resource_group_name=resource_group_name, + name=vm_name, + expand=expand) + + +def connectedvmware_extension_show( + client: MachineExtensionsOperations, + resource_group_name, + vm_name, + name +): + """ + Get the details of the vm extension of a given vm. + """ + + return client.get(resource_group_name=resource_group_name, + name=vm_name, + extension_name=name) + + +def connectedvmware_extension_create( + client: MachineExtensionsOperations, + resource_group_name, + vm_name, + name, + location, + tags=None, + force_update_tag=None, + publisher=None, + type_=None, + type_handler_version=None, + auto_upgrade_minor=None, + settings=None, + protected_settings=None, + instance_view_type=None, + inst_handler_version=None, + no_wait=False +): + """ + Create the vm extension of a given vm. + """ + + extension_parameters = {} + extension_parameters['tags'] = tags + extension_parameters['location'] = location + extension_parameters['properties'] = {} + extension_parameters['properties']['force_update_tag'] = force_update_tag + extension_parameters['properties']['publisher'] = publisher + extension_parameters['properties']['type'] = type_ + extension_parameters['properties']['type_handler_version'] = type_handler_version + extension_parameters['properties']['auto_upgrade_minor_version'] = auto_upgrade_minor + extension_parameters['properties']['settings'] = settings + extension_parameters['properties']['protected_settings'] = protected_settings + extension_parameters['properties']['instance_view'] = {} + extension_parameters['properties']['instance_view']['name'] = name + extension_parameters['properties']['instance_view']['type'] = instance_view_type + extension_parameters['properties']['instance_view']['type_handler_version'] = inst_handler_version + return sdk_no_wait(no_wait, + client.begin_create_or_update, + resource_group_name=resource_group_name, + name=vm_name, + extension_name=name, + extension_parameters=extension_parameters) + + +def connectedvmware_extension_update( + client: MachineExtensionsOperations, + resource_group_name, + vm_name, + name, + tags=None, + force_update_tag=None, + publisher=None, + type_=None, + type_handler_version=None, + auto_upgrade_minor=None, + settings=None, + protected_settings=None, + no_wait=False +): + """ + Update the vm extension of a given vm. + """ + + extension_parameters = {} + extension_parameters['tags'] = tags + extension_parameters['properties'] = {} + extension_parameters['properties']['force_update_tag'] = force_update_tag + extension_parameters['properties']['publisher'] = publisher + extension_parameters['properties']['type'] = type_ + extension_parameters['properties']['type_handler_version'] = type_handler_version + extension_parameters['properties']['auto_upgrade_minor_version'] = auto_upgrade_minor + extension_parameters['properties']['settings'] = settings + extension_parameters['properties']['protected_settings'] = protected_settings + return sdk_no_wait(no_wait, + client.begin_update, + resource_group_name=resource_group_name, + machine_name=vm_name, + extension_name=name, + extension_parameters=extension_parameters) + + +def connectedvmware_extension_delete( + client: MachineExtensionsOperations, + resource_group_name, + vm_name, + name, + no_wait=False +): + """ + Delete the vm extension of a given vm. + """ + + return sdk_no_wait(no_wait, + client.begin_delete, + resource_group_name=resource_group_name, + name=vm_name, + extension_name=name) + + +# endregion diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/_azure_arc_vmware_management_service_api.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/_azure_arc_vmware_management_service_api.py index 4d4f0f49e50..20aef933dee 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/_azure_arc_vmware_management_service_api.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/_azure_arc_vmware_management_service_api.py @@ -31,7 +31,7 @@ from .operations import InventoryItemsOperations from .operations import HybridIdentityMetadataOperations from .operations import MachineExtensionsOperations -from .operations import GuestAgentOperations +from .operations import GuestAgentsOperations from . import models @@ -39,31 +39,31 @@ class AzureArcVMwareManagementServiceAPI(object): """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 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_machines: VirtualMachinesOperations operations - :vartype virtual_machines: azure_arc_vmware_management_service_api.operations.VirtualMachinesOperations + :vartype virtual_machines: azure.mgmt.connectedvmware.operations.VirtualMachinesOperations :ivar virtual_machine_templates: VirtualMachineTemplatesOperations operations - :vartype virtual_machine_templates: azure_arc_vmware_management_service_api.operations.VirtualMachineTemplatesOperations + :vartype virtual_machine_templates: 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 + :vartype hybrid_identity_metadata: azure.mgmt.connectedvmware.operations.HybridIdentityMetadataOperations :ivar machine_extensions: MachineExtensionsOperations operations - :vartype machine_extensions: azure_arc_vmware_management_service_api.operations.MachineExtensionsOperations - :ivar guest_agent: GuestAgentOperations operations - :vartype guest_agent: azure_arc_vmware_management_service_api.operations.GuestAgentOperations + :vartype machine_extensions: azure.mgmt.connectedvmware.operations.MachineExtensionsOperations + :ivar guest_agents: GuestAgentsOperations operations + :vartype guest_agents: azure.mgmt.connectedvmware.operations.GuestAgentsOperations :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: The Subscription ID. @@ -114,7 +114,7 @@ def __init__( self._client, self._config, self._serialize, self._deserialize) self.machine_extensions = MachineExtensionsOperations( self._client, self._config, self._serialize, self._deserialize) - self.guest_agent = GuestAgentOperations( + self.guest_agents = GuestAgentsOperations( self._client, self._config, self._serialize, self._deserialize) def _send_request(self, http_request, **kwargs): diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/_version.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/_version.py index e5754a47ce6..8761a6c8ec5 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/_version.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "1.0.0b1" +VERSION = "0.1.1" diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/_azure_arc_vmware_management_service_api.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/_azure_arc_vmware_management_service_api.py index 1dea4672c0b..af1a589c110 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/_azure_arc_vmware_management_service_api.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/_azure_arc_vmware_management_service_api.py @@ -29,7 +29,7 @@ from .operations import InventoryItemsOperations from .operations import HybridIdentityMetadataOperations from .operations import MachineExtensionsOperations -from .operations import GuestAgentOperations +from .operations import GuestAgentsOperations from .. import models @@ -37,31 +37,31 @@ class AzureArcVMwareManagementServiceAPI(object): """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 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_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 virtual_machine_templates: VirtualMachineTemplatesOperations operations - :vartype virtual_machine_templates: azure_arc_vmware_management_service_api.aio.operations.VirtualMachineTemplatesOperations + :vartype virtual_machine_templates: 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 + :vartype hybrid_identity_metadata: azure.mgmt.connectedvmware.aio.operations.HybridIdentityMetadataOperations :ivar machine_extensions: MachineExtensionsOperations operations - :vartype machine_extensions: azure_arc_vmware_management_service_api.aio.operations.MachineExtensionsOperations - :ivar guest_agent: GuestAgentOperations operations - :vartype guest_agent: azure_arc_vmware_management_service_api.aio.operations.GuestAgentOperations + :vartype machine_extensions: azure.mgmt.connectedvmware.aio.operations.MachineExtensionsOperations + :ivar guest_agents: GuestAgentsOperations operations + :vartype guest_agents: azure.mgmt.connectedvmware.aio.operations.GuestAgentsOperations :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: The Subscription ID. @@ -111,7 +111,7 @@ def __init__( self._client, self._config, self._serialize, self._deserialize) self.machine_extensions = MachineExtensionsOperations( self._client, self._config, self._serialize, self._deserialize) - self.guest_agent = GuestAgentOperations( + self.guest_agents = GuestAgentsOperations( self._client, self._config, self._serialize, self._deserialize) async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/__init__.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/__init__.py index b41a867163f..de63ef86d5d 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/__init__.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/__init__.py @@ -18,7 +18,7 @@ from ._inventory_items_operations import InventoryItemsOperations from ._hybrid_identity_metadata_operations import HybridIdentityMetadataOperations from ._machine_extensions_operations import MachineExtensionsOperations -from ._guest_agent_operations import GuestAgentOperations +from ._guest_agents_operations import GuestAgentsOperations __all__ = [ 'Operations', @@ -33,5 +33,5 @@ 'InventoryItemsOperations', 'HybridIdentityMetadataOperations', 'MachineExtensionsOperations', - 'GuestAgentOperations', + 'GuestAgentsOperations', ] diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_clusters_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_clusters_operations.py index 65a0981ed1c..2759532e00e 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_clusters_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_clusters_operations.py @@ -28,7 +28,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. @@ -120,7 +120,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. @@ -128,7 +128,7 @@ async def begin_create( :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Cluster or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure_arc_vmware_management_service_api.models.Cluster] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.connectedvmware.models.Cluster] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] @@ -193,7 +193,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"] @@ -254,10 +254,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"] @@ -438,7 +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 ClustersList or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.ClustersList] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.ClustersList] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.ClustersList"] @@ -510,7 +510,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.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.ClustersList] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.ClustersList] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.ClustersList"] diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_datastores_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_datastores_operations.py index 698422156d4..2bc7a9fe757 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_datastores_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_datastores_operations.py @@ -28,7 +28,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. @@ -120,7 +120,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. @@ -128,7 +128,7 @@ async def begin_create( :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Datastore or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure_arc_vmware_management_service_api.models.Datastore] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.connectedvmware.models.Datastore] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] @@ -193,7 +193,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"] @@ -254,10 +254,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"] @@ -438,7 +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 DatastoresList or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.DatastoresList] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.DatastoresList] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.DatastoresList"] @@ -510,7 +510,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.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.DatastoresList] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.DatastoresList] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.DatastoresList"] diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_guest_agents_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_guest_agents_operations.py new file mode 100644 index 00000000000..3f25196fc2f --- /dev/null +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_guest_agents_operations.py @@ -0,0 +1,445 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class GuestAgentsOperations: + """GuestAgentsOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.connectedvmware.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def _create_initial( + self, + resource_group_name: str, + virtual_machine_name: str, + name: str, + body: Optional["_models.GuestAgent"] = None, + **kwargs: Any + ) -> "_models.GuestAgent": + cls = kwargs.pop('cls', None) # type: ClsType["_models.GuestAgent"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualMachineName': self._serialize.url("virtual_machine_name", virtual_machine_name, 'str'), + 'name': self._serialize.url("name", name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + if body is not None: + body_content = self._serialize.body(body, 'GuestAgent') + else: + body_content = None + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('GuestAgent', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('GuestAgent', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/guestAgents/{name}'} # type: ignore + + async def begin_create( + self, + resource_group_name: str, + virtual_machine_name: str, + name: str, + body: Optional["_models.GuestAgent"] = None, + **kwargs: Any + ) -> AsyncLROPoller["_models.GuestAgent"]: + """Implements GuestAgent PUT method. + + Create Or Update GuestAgent. + + :param resource_group_name: The Resource Group Name. + :type resource_group_name: str + :param virtual_machine_name: Name of the vm. + :type virtual_machine_name: str + :param name: Name of the guestAgents. + :type name: str + :param body: Request payload. + :type body: ~azure.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 this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either GuestAgent or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.connectedvmware.models.GuestAgent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.GuestAgent"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._create_initial( + resource_group_name=resource_group_name, + virtual_machine_name=virtual_machine_name, + name=name, + body=body, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('GuestAgent', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualMachineName': self._serialize.url("virtual_machine_name", virtual_machine_name, 'str'), + 'name': self._serialize.url("name", name, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/guestAgents/{name}'} # type: ignore + + async def get( + self, + resource_group_name: str, + virtual_machine_name: str, + name: str, + **kwargs: Any + ) -> "_models.GuestAgent": + """Gets GuestAgent. + + Implements GuestAgent GET method. + + :param resource_group_name: The Resource Group Name. + :type resource_group_name: str + :param virtual_machine_name: Name of the vm. + :type virtual_machine_name: str + :param name: Name of the GuestAgent. + :type name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: GuestAgent, or the result of cls(response) + :rtype: ~azure.mgmt.connectedvmware.models.GuestAgent + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.GuestAgent"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualMachineName': self._serialize.url("virtual_machine_name", virtual_machine_name, 'str'), + 'name': self._serialize.url("name", name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('GuestAgent', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/guestAgents/{name}'} # type: ignore + + async def _delete_initial( + self, + resource_group_name: str, + virtual_machine_name: str, + name: str, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + accept = "application/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualMachineName': self._serialize.url("virtual_machine_name", virtual_machine_name, 'str'), + 'name': self._serialize.url("name", name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/guestAgents/{name}'} # type: ignore + + async def begin_delete( + self, + resource_group_name: str, + virtual_machine_name: str, + name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes an GuestAgent. + + Implements GuestAgent DELETE method. + + :param resource_group_name: The Resource Group Name. + :type resource_group_name: str + :param virtual_machine_name: Name of the vm. + :type virtual_machine_name: str + :param name: Name of the GuestAgent. + :type name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + virtual_machine_name=virtual_machine_name, + name=name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualMachineName': self._serialize.url("virtual_machine_name", virtual_machine_name, 'str'), + 'name': self._serialize.url("name", name, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/guestAgents/{name}'} # type: ignore + + def list_by_vm( + self, + resource_group_name: str, + virtual_machine_name: str, + **kwargs: Any + ) -> AsyncIterable["_models.GuestAgentList"]: + """Implements GET GuestAgent in a vm. + + Returns the list of GuestAgent of the given vm. + + :param resource_group_name: The Resource Group Name. + :type resource_group_name: str + :param virtual_machine_name: Name of the vm. + :type virtual_machine_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either GuestAgentList or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.GuestAgentList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.GuestAgentList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_vm.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualMachineName': self._serialize.url("virtual_machine_name", virtual_machine_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('GuestAgentList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_vm.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/guestAgents'} # type: ignore diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_hosts_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_hosts_operations.py index d0b9b27f302..342b008d0b4 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_hosts_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_hosts_operations.py @@ -28,7 +28,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. @@ -120,7 +120,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. @@ -128,7 +128,7 @@ async def begin_create( :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Host or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure_arc_vmware_management_service_api.models.Host] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.connectedvmware.models.Host] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] @@ -193,7 +193,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"] @@ -254,10 +254,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"] @@ -438,7 +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 """ cls = kwargs.pop('cls', None) # type: ClsType["_models.HostsList"] @@ -510,7 +510,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 """ cls = kwargs.pop('cls', None) # type: ClsType["_models.HostsList"] diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_hybrid_identity_metadata_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_hybrid_identity_metadata_operations.py index c77c3577a26..d8a86e3a989 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_hybrid_identity_metadata_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_hybrid_identity_metadata_operations.py @@ -26,7 +26,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. @@ -60,10 +60,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"] @@ -136,7 +136,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"] @@ -260,7 +260,7 @@ def list_by_vm( :type virtual_machine_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either HybridIdentityMetadataList or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.HybridIdentityMetadataList] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.HybridIdentityMetadataList] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.HybridIdentityMetadataList"] diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_inventory_items_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_inventory_items_operations.py index 3964fa934e3..056f35faa07 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_inventory_items_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_inventory_items_operations.py @@ -26,7 +26,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. @@ -60,10 +60,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"] @@ -136,7 +136,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"] @@ -260,7 +260,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.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.InventoryItemsList] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.InventoryItemsList] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.InventoryItemsList"] diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_machine_extensions_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_machine_extensions_operations.py index adcb8d8e3b8..d07f35c6c0e 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_machine_extensions_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_machine_extensions_operations.py @@ -28,7 +28,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. @@ -120,7 +120,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. @@ -128,7 +128,7 @@ async def begin_create_or_update( :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either MachineExtension or the result of cls(response) - :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: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] @@ -256,7 +256,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. @@ -264,7 +264,7 @@ async def begin_update( :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either MachineExtension or the result of cls(response) - :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: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] @@ -448,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 +511,7 @@ def list( :type expand: str :keyword callable cls: A custom type or function that will be passed the direct response :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] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.MachineExtensionsListResult] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.MachineExtensionsListResult"] diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_operations.py index 462475b6c0b..8c28a2ae19d 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_operations.py @@ -26,7 +26,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. @@ -49,7 +49,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] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.OperationsList] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationsList"] diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_resource_pools_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_resource_pools_operations.py index 19c7a7a9a8b..05d871c51c7 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_resource_pools_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_resource_pools_operations.py @@ -28,7 +28,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. @@ -120,7 +120,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. @@ -128,7 +128,7 @@ async def begin_create( :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either ResourcePool or the result of cls(response) - :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: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] @@ -193,7 +193,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"] @@ -254,10 +254,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"] @@ -438,7 +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 ResourcePoolsList or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.ResourcePoolsList] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.ResourcePoolsList] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.ResourcePoolsList"] @@ -510,7 +510,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.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.ResourcePoolsList] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.ResourcePoolsList] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.ResourcePoolsList"] diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_vcenters_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_vcenters_operations.py index 1505b91c10a..94d34c43821 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_vcenters_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_vcenters_operations.py @@ -28,7 +28,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. @@ -120,7 +120,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. @@ -128,7 +128,7 @@ async def begin_create( :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VCenter or the result of cls(response) - :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: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] @@ -193,7 +193,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"] @@ -254,10 +254,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"] @@ -438,7 +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 VCentersList or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.VCentersList] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.VCentersList] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.VCentersList"] @@ -510,7 +510,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.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.VCentersList] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.VCentersList] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.VCentersList"] diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_virtual_machine_templates_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_virtual_machine_templates_operations.py index c93bd051cdc..6b829b6d708 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_virtual_machine_templates_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_virtual_machine_templates_operations.py @@ -28,7 +28,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. @@ -120,7 +120,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. @@ -128,7 +128,7 @@ async def begin_create( :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineTemplate or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure_arc_vmware_management_service_api.models.VirtualMachineTemplate] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.connectedvmware.models.VirtualMachineTemplate] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] @@ -193,7 +193,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"] @@ -254,10 +254,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"] @@ -438,7 +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 VirtualMachineTemplatesList or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.VirtualMachineTemplatesList] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.VirtualMachineTemplatesList] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineTemplatesList"] @@ -510,7 +510,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 VirtualMachineTemplatesList or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.VirtualMachineTemplatesList] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.VirtualMachineTemplatesList] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineTemplatesList"] diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_virtual_machines_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_virtual_machines_operations.py index 8bf87cbea7e..87786f136f6 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_virtual_machines_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_virtual_machines_operations.py @@ -28,7 +28,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. @@ -120,7 +120,7 @@ async def begin_create( :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. @@ -128,7 +128,7 @@ async def begin_create( :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachine or the result of cls(response) - :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: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] @@ -193,7 +193,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"] @@ -315,7 +315,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. @@ -323,7 +323,7 @@ async def begin_update( :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachine or the result of cls(response) - :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: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] @@ -560,7 +560,7 @@ async def begin_stop( :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. @@ -846,7 +846,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] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.VirtualMachinesList] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachinesList"] @@ -918,7 +918,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 VirtualMachinesList or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.VirtualMachinesList] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.VirtualMachinesList] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachinesList"] diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_virtual_networks_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_virtual_networks_operations.py index de4184e064e..36bd2c41584 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_virtual_networks_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/aio/operations/_virtual_networks_operations.py @@ -28,7 +28,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. @@ -120,7 +120,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. @@ -128,7 +128,7 @@ async def begin_create( :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualNetwork or the result of cls(response) - :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: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] @@ -193,7 +193,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"] @@ -254,10 +254,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"] @@ -438,7 +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 VirtualNetworksList or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.VirtualNetworksList] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.VirtualNetworksList] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualNetworksList"] @@ -510,7 +510,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.async_paging.AsyncItemPaged[~azure_arc_vmware_management_service_api.models.VirtualNetworksList] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.connectedvmware.models.VirtualNetworksList] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualNetworksList"] diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/__init__.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/__init__.py index 8565dca41b6..137a2f8f856 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/__init__.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/__init__.py @@ -24,6 +24,7 @@ from ._models_py3 import GuestCredential from ._models_py3 import HardwareProfile from ._models_py3 import Host + from ._models_py3 import HostInventoryItem from ._models_py3 import HostsList from ._models_py3 import HttpProxyConfiguration from ._models_py3 import HybridIdentityMetadata @@ -95,6 +96,7 @@ from ._models import GuestCredential # type: ignore from ._models import HardwareProfile # type: ignore from ._models import Host # type: ignore + from ._models import HostInventoryItem # type: ignore from ._models import HostsList # type: ignore from ._models import HttpProxyConfiguration # type: ignore from ._models import HybridIdentityMetadata # type: ignore @@ -153,6 +155,7 @@ CreatedByType, DiskMode, DiskType, + FirmwareType, IPAddressAllocationMethod, IdentityType, InventoryType, @@ -185,6 +188,7 @@ 'GuestCredential', 'HardwareProfile', 'Host', + 'HostInventoryItem', 'HostsList', 'HttpProxyConfiguration', 'HybridIdentityMetadata', @@ -241,6 +245,7 @@ 'CreatedByType', 'DiskMode', 'DiskType', + 'FirmwareType', 'IPAddressAllocationMethod', 'IdentityType', 'InventoryType', diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/_azure_arc_vmware_management_service_api_enums.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/_azure_arc_vmware_management_service_api_enums.py index 40baa56f776..9a15a80b6c8 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/_azure_arc_vmware_management_service_api_enums.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/_azure_arc_vmware_management_service_api_enums.py @@ -55,6 +55,13 @@ class DiskType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): SESPARSE = "sesparse" UNKNOWN = "unknown" +class FirmwareType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Firmware type + """ + + BIOS = "bios" + EFI = "efi" + class IdentityType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The type of managed service identity. """ @@ -72,6 +79,7 @@ class InventoryType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): VIRTUAL_NETWORK = "VirtualNetwork" CLUSTER = "Cluster" DATASTORE = "Datastore" + HOST = "Host" class IPAddressAllocationMethod(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """IP address allocation method. diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/_models.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/_models.py index 3ddb908d08c..b932b37bd4d 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/_models.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/_models.py @@ -20,9 +20,9 @@ class Cluster(msrest.serialization.Model): :param location: Required. Gets or sets the location. :type location: str :param extended_location: Gets or sets the extended location. - :type extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :type 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 :param tags: A set of tags. Gets or sets the Resource tags. :type tags: dict[str, str] :ivar name: Gets or sets the name. @@ -47,9 +47,13 @@ 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 datastore_ids: Gets or sets the datastore ARM ids. + :vartype datastore_ids: list[str] + :ivar network_ids: Gets or sets the network ARM ids. + :vartype network_ids: list[str] :ivar provisioning_state: Gets or sets the provisioning state. :vartype provisioning_state: str """ @@ -64,6 +68,8 @@ class Cluster(msrest.serialization.Model): 'mo_name': {'readonly': True}, 'statuses': {'readonly': True}, 'custom_resource_name': {'readonly': True}, + 'datastore_ids': {'readonly': True}, + 'network_ids': {'readonly': True}, 'provisioning_state': {'readonly': True}, } @@ -83,6 +89,8 @@ 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'}, + 'datastore_ids': {'key': 'properties.datastoreIds', 'type': '[str]'}, + 'network_ids': {'key': 'properties.networkIds', 'type': '[str]'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, } @@ -106,6 +114,8 @@ def __init__( self.mo_name = None self.statuses = None self.custom_resource_name = None + self.datastore_ids = None + self.network_ids = None self.provisioning_state = None @@ -113,7 +123,7 @@ class InventoryItemProperties(msrest.serialization.Model): """Defines the resource properties. You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ClusterInventoryItem, DatastoreInventoryItem, ResourcePoolInventoryItem, VirtualMachineInventoryItem, VirtualMachineTemplateInventoryItem, VirtualNetworkInventoryItem. + sub-classes are: ClusterInventoryItem, DatastoreInventoryItem, HostInventoryItem, ResourcePoolInventoryItem, VirtualMachineInventoryItem, VirtualMachineTemplateInventoryItem, VirtualNetworkInventoryItem. Variables are only populated by the server, and will be ignored when sending a request. @@ -121,8 +131,8 @@ class InventoryItemProperties(msrest.serialization.Model): :param inventory_type: Required. They inventory type.Constant filled by server. Possible values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", - "Cluster", "Datastore". - :type inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + "Cluster", "Datastore", "Host". + :type inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType :param managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. :type managed_resource_id: str @@ -148,7 +158,7 @@ class InventoryItemProperties(msrest.serialization.Model): } _subtype_map = { - 'inventory_type': {'Cluster': 'ClusterInventoryItem', 'Datastore': 'DatastoreInventoryItem', 'ResourcePool': 'ResourcePoolInventoryItem', 'VirtualMachine': 'VirtualMachineInventoryItem', 'VirtualMachineTemplate': 'VirtualMachineTemplateInventoryItem', 'VirtualNetwork': 'VirtualNetworkInventoryItem'} + 'inventory_type': {'Cluster': 'ClusterInventoryItem', 'Datastore': 'DatastoreInventoryItem', 'Host': 'HostInventoryItem', 'ResourcePool': 'ResourcePoolInventoryItem', 'VirtualMachine': 'VirtualMachineInventoryItem', 'VirtualMachineTemplate': 'VirtualMachineTemplateInventoryItem', 'VirtualNetwork': 'VirtualNetworkInventoryItem'} } def __init__( @@ -172,8 +182,8 @@ class ClusterInventoryItem(InventoryItemProperties): :param inventory_type: Required. They inventory type.Constant filled by server. Possible values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", - "Cluster", "Datastore". - :type inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + "Cluster", "Datastore", "Host". + :type inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType :param managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. :type managed_resource_id: str @@ -214,7 +224,7 @@ class ClustersList(msrest.serialization.Model): :param next_link: Url to follow for getting next page of Clusters. :type next_link: str :param value: Required. Array of Clusters. - :type value: list[~azure_arc_vmware_management_service_api.models.Cluster] + :type value: list[~azure.mgmt.connectedvmware.models.Cluster] """ _validation = { @@ -285,9 +295,9 @@ class Datastore(msrest.serialization.Model): :param location: Required. Gets or sets the location. :type location: str :param extended_location: Gets or sets the extended location. - :type extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :type 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 :param tags: A set of tags. Gets or sets the Resource tags. :type tags: dict[str, str] :ivar name: Gets or sets the name. @@ -313,14 +323,13 @@ 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 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 = { @@ -387,8 +396,8 @@ class DatastoreInventoryItem(InventoryItemProperties): :param inventory_type: Required. They inventory type.Constant filled by server. Possible values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", - "Cluster", "Datastore". - :type inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + "Cluster", "Datastore", "Host". + :type inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType :param managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. :type managed_resource_id: str @@ -398,6 +407,10 @@ class DatastoreInventoryItem(InventoryItemProperties): :type mo_name: str :ivar provisioning_state: Gets or sets the provisioning state. :vartype provisioning_state: str + :param capacity_gb: Gets or sets Maximum capacity of this datastore, in GBs. + :type capacity_gb: long + :param free_space_gb: Gets or sets Available space of this datastore, in GBs. + :type free_space_gb: long """ _validation = { @@ -411,6 +424,8 @@ class DatastoreInventoryItem(InventoryItemProperties): 'mo_ref_id': {'key': 'moRefId', 'type': 'str'}, 'mo_name': {'key': 'moName', 'type': 'str'}, 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'capacity_gb': {'key': 'capacityGB', 'type': 'long'}, + 'free_space_gb': {'key': 'freeSpaceGB', 'type': 'long'}, } def __init__( @@ -419,6 +434,8 @@ def __init__( ): super(DatastoreInventoryItem, self).__init__(**kwargs) self.inventory_type = 'Datastore' # type: str + self.capacity_gb = kwargs.get('capacity_gb', None) + self.free_space_gb = kwargs.get('free_space_gb', None) class DatastoresList(msrest.serialization.Model): @@ -429,7 +446,7 @@ class DatastoresList(msrest.serialization.Model): :param next_link: Url to follow for getting next page of Datastores. :type next_link: str :param value: Required. Array of Datastores. - :type value: list[~azure_arc_vmware_management_service_api.models.Datastore] + :type value: list[~azure.mgmt.connectedvmware.models.Datastore] """ _validation = { @@ -460,7 +477,7 @@ class ErrorDefinition(msrest.serialization.Model): :ivar message: Description of the error. :vartype message: str :ivar details: Internal error details. - :vartype details: list[~azure_arc_vmware_management_service_api.models.ErrorDefinition] + :vartype details: list[~azure.mgmt.connectedvmware.models.ErrorDefinition] """ _validation = { @@ -497,7 +514,7 @@ class ErrorDetail(msrest.serialization.Model): :param target: Indicates which property in the request is responsible for the error. :type target: str :param details: Additional error details. - :type details: list[~azure_arc_vmware_management_service_api.models.ErrorDetail] + :type details: list[~azure.mgmt.connectedvmware.models.ErrorDetail] """ _validation = { @@ -527,7 +544,7 @@ class ErrorResponse(msrest.serialization.Model): """Error response. :param error: The error details. - :type error: ~azure_arc_vmware_management_service_api.models.ErrorDefinition + :type error: ~azure.mgmt.connectedvmware.models.ErrorDefinition """ _attribute_map = { @@ -650,21 +667,22 @@ class GuestAgent(ProxyResource): "Microsoft.Storage/storageAccounts". :vartype type: 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 uuid: Gets or sets a unique identifier for this resource. :vartype uuid: str :param credentials: Username / Password Credentials to provision guest agent. - :type credentials: ~azure_arc_vmware_management_service_api.models.GuestCredential + :type credentials: ~azure.mgmt.connectedvmware.models.GuestCredential :param http_proxy_config: HTTP Proxy configuration for the VM. - :type http_proxy_config: ~azure_arc_vmware_management_service_api.models.HttpProxyConfiguration + :type http_proxy_config: ~azure.mgmt.connectedvmware.models.HttpProxyConfiguration :param provisioning_action: Gets or sets the guest agent provisioning action. Possible values include: "install", "uninstall", "repair". - :type provisioning_action: str or - ~azure_arc_vmware_management_service_api.models.ProvisioningAction + :type 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.mgmt.connectedvmware.models.ResourceStatus] :ivar provisioning_state: Gets or sets the provisioning state. :vartype provisioning_state: str """ @@ -677,6 +695,7 @@ class GuestAgent(ProxyResource): 'uuid': {'readonly': True}, 'status': {'readonly': True}, 'custom_resource_name': {'readonly': True}, + 'statuses': {'readonly': True}, 'provisioning_state': {'readonly': True}, } @@ -691,6 +710,7 @@ class GuestAgent(ProxyResource): 'provisioning_action': {'key': 'properties.provisioningAction', 'type': 'str'}, 'status': {'key': 'properties.status', 'type': 'str'}, 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, + 'statuses': {'key': 'properties.statuses', 'type': '[ResourceStatus]'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, } @@ -706,6 +726,7 @@ def __init__( self.provisioning_action = kwargs.get('provisioning_action', None) self.status = None self.custom_resource_name = None + self.statuses = None self.provisioning_state = None @@ -717,7 +738,7 @@ class GuestAgentList(msrest.serialization.Model): :param next_link: Url to follow for getting next page of GuestAgent. :type next_link: str :param value: Required. Array of GuestAgent. - :type value: list[~azure_arc_vmware_management_service_api.models.GuestAgent] + :type value: list[~azure.mgmt.connectedvmware.models.GuestAgent] """ _validation = { @@ -747,13 +768,13 @@ 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 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 = { @@ -868,9 +889,9 @@ class Host(msrest.serialization.Model): :param location: Required. Gets or sets the location. :type location: str :param extended_location: Gets or sets the extended location. - :type extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :type 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 :param tags: A set of tags. Gets or sets the Resource tags. :type tags: dict[str, str] :ivar name: Gets or sets the name. @@ -894,7 +915,7 @@ 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 provisioning_state: Gets or sets the provisioning state. @@ -956,6 +977,53 @@ def __init__( self.provisioning_state = None +class HostInventoryItem(InventoryItemProperties): + """The host inventory item. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :param inventory_type: Required. They inventory type.Constant filled by server. Possible + values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", + "Cluster", "Datastore", "Host". + :type inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType + :param managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory + resource. + :type managed_resource_id: str + :param mo_ref_id: Gets or sets the MoRef (Managed Object Reference) ID for the inventory item. + :type mo_ref_id: str + :param mo_name: Gets or sets the vCenter Managed Object name for the inventory item. + :type mo_name: str + :ivar provisioning_state: Gets or sets the provisioning state. + :vartype provisioning_state: str + :param parent: Parent host inventory resource details. + :type parent: ~azure.mgmt.connectedvmware.models.InventoryItemDetails + """ + + _validation = { + 'inventory_type': {'required': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'inventory_type': {'key': 'inventoryType', 'type': 'str'}, + 'managed_resource_id': {'key': 'managedResourceId', 'type': 'str'}, + 'mo_ref_id': {'key': 'moRefId', 'type': 'str'}, + 'mo_name': {'key': 'moName', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'parent': {'key': 'parent', 'type': 'InventoryItemDetails'}, + } + + def __init__( + self, + **kwargs + ): + super(HostInventoryItem, self).__init__(**kwargs) + self.inventory_type = 'Host' # type: str + self.parent = kwargs.get('parent', None) + + class HostsList(msrest.serialization.Model): """List of Hosts. @@ -964,7 +1032,7 @@ class HostsList(msrest.serialization.Model): :param next_link: Url to follow for getting next page of Hosts. :type next_link: str :param value: Required. Array of Hosts. - :type value: list[~azure_arc_vmware_management_service_api.models.Host] + :type value: list[~azure.mgmt.connectedvmware.models.Host] """ _validation = { @@ -1018,13 +1086,13 @@ class HybridIdentityMetadata(ProxyResource): "Microsoft.Storage/storageAccounts". :vartype type: 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 :param vm_id: Gets or sets the Vm Id. :type vm_id: str :param public_key: Gets or sets the Public Key. :type public_key: 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 provisioning_state: Gets or sets the provisioning state. :vartype provisioning_state: str """ @@ -1069,7 +1137,7 @@ class HybridIdentityMetadataList(msrest.serialization.Model): :param next_link: Url to follow for getting next page of HybridIdentityMetadata. :type next_link: str :param value: Required. Array of HybridIdentityMetadata. - :type value: list[~azure_arc_vmware_management_service_api.models.HybridIdentityMetadata] + :type value: list[~azure.mgmt.connectedvmware.models.HybridIdentityMetadata] """ _validation = { @@ -1103,7 +1171,7 @@ class Identity(msrest.serialization.Model): :vartype tenant_id: str :param type: Required. The type of managed service identity. Possible values include: "None", "SystemAssigned". - :type type: str or ~azure_arc_vmware_management_service_api.models.IdentityType + :type type: str or ~azure.mgmt.connectedvmware.models.IdentityType """ _validation = { @@ -1144,15 +1212,15 @@ class InventoryItem(ProxyResource): "Microsoft.Storage/storageAccounts". :vartype type: 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 :param kind: Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. :type kind: str :param inventory_type: Required. They inventory type.Constant filled by server. Possible values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", - "Cluster", "Datastore". - :type inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + "Cluster", "Datastore", "Host". + :type inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType :param managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. :type managed_resource_id: str @@ -1231,7 +1299,7 @@ class InventoryItemsList(msrest.serialization.Model): :param next_link: Url to follow for getting next page of InventoryItems. :type next_link: str :param value: Required. Array of InventoryItems. - :type value: list[~azure_arc_vmware_management_service_api.models.InventoryItem] + :type value: list[~azure.mgmt.connectedvmware.models.InventoryItem] """ _validation = { @@ -1260,7 +1328,7 @@ class MachineExtension(msrest.serialization.Model): :param location: Gets or sets the location. :type 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 :param tags: A set of tags. Gets or sets the Resource tags. :type tags: dict[str, str] :ivar name: Gets or sets the name. @@ -1291,8 +1359,7 @@ class MachineExtension(msrest.serialization.Model): :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param instance_view: The machine extension instance view. - :type instance_view: - ~azure_arc_vmware_management_service_api.models.MachineExtensionPropertiesInstanceView + :type instance_view: ~azure.mgmt.connectedvmware.models.MachineExtensionPropertiesInstanceView """ _validation = { @@ -1355,8 +1422,7 @@ class MachineExtensionInstanceView(msrest.serialization.Model): :ivar type_handler_version: Specifies the version of the script handler. :vartype type_handler_version: str :param status: Instance view status. - :type status: - ~azure_arc_vmware_management_service_api.models.MachineExtensionInstanceViewStatus + :type status: ~azure.mgmt.connectedvmware.models.MachineExtensionInstanceViewStatus """ _validation = { @@ -1391,7 +1457,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. @@ -1440,8 +1506,7 @@ class MachineExtensionPropertiesInstanceView(MachineExtensionInstanceView): :ivar type_handler_version: Specifies the version of the script handler. :vartype type_handler_version: str :param status: Instance view status. - :type status: - ~azure_arc_vmware_management_service_api.models.MachineExtensionInstanceViewStatus + :type status: ~azure.mgmt.connectedvmware.models.MachineExtensionInstanceViewStatus """ _validation = { @@ -1468,7 +1533,7 @@ class MachineExtensionsListResult(msrest.serialization.Model): """Describes the Machine Extensions List Result. :param value: The list of extensions. - :type value: list[~azure_arc_vmware_management_service_api.models.MachineExtension] + :type value: list[~azure.mgmt.connectedvmware.models.MachineExtension] :param next_link: The uri to fetch the next page of machine extensions. Call ListNext() with this to fetch the next page of extensions. :type next_link: str @@ -1576,10 +1641,10 @@ class NetworkInterface(msrest.serialization.Model): :type network_id: str :param nic_type: NIC type. Possible values include: "vmxnet3", "vmxnet2", "vmxnet", "e1000", "e1000e", "pcnet32". - :type nic_type: str or ~azure_arc_vmware_management_service_api.models.NICType + :type nic_type: str or ~azure.mgmt.connectedvmware.models.NICType :param power_on_boot: Gets or sets the power on boot. Possible values include: "enabled", "disabled". - :type power_on_boot: str or ~azure_arc_vmware_management_service_api.models.PowerOnBootOption + :type 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. @@ -1590,7 +1655,7 @@ class NetworkInterface(msrest.serialization.Model): :param device_key: Gets or sets the device key value. :type device_key: int :param ip_settings: Gets or sets the ipsettings. - :type ip_settings: ~azure_arc_vmware_management_service_api.models.NicIPSettings + :type ip_settings: ~azure.mgmt.connectedvmware.models.NicIPSettings """ _validation = { @@ -1643,10 +1708,10 @@ class NetworkInterfaceUpdate(msrest.serialization.Model): :type network_id: str :param nic_type: NIC type. Possible values include: "vmxnet3", "vmxnet2", "vmxnet", "e1000", "e1000e", "pcnet32". - :type nic_type: str or ~azure_arc_vmware_management_service_api.models.NICType + :type nic_type: str or ~azure.mgmt.connectedvmware.models.NICType :param power_on_boot: Gets or sets the power on boot. Possible values include: "enabled", "disabled". - :type power_on_boot: str or ~azure_arc_vmware_management_service_api.models.PowerOnBootOption + :type power_on_boot: str or ~azure.mgmt.connectedvmware.models.PowerOnBootOption :param device_key: Gets or sets the device key value. :type device_key: int """ @@ -1676,8 +1741,7 @@ class NetworkProfile(msrest.serialization.Model): :param network_interfaces: Gets or sets the list of network interfaces associated with the virtual machine. - :type network_interfaces: - list[~azure_arc_vmware_management_service_api.models.NetworkInterface] + :type network_interfaces: list[~azure.mgmt.connectedvmware.models.NetworkInterface] """ _attribute_map = { @@ -1697,8 +1761,7 @@ class NetworkProfileUpdate(msrest.serialization.Model): :param network_interfaces: Gets or sets the list of network interfaces associated with the virtual machine. - :type network_interfaces: - list[~azure_arc_vmware_management_service_api.models.NetworkInterfaceUpdate] + :type network_interfaces: list[~azure.mgmt.connectedvmware.models.NetworkInterfaceUpdate] """ _attribute_map = { @@ -1755,8 +1818,7 @@ class NicIPSettings(msrest.serialization.Model): :param allocation_method: Gets or sets the nic allocation method. Possible values include: "unset", "dynamic", "static", "linklayer", "random", "other". - :type allocation_method: str or - ~azure_arc_vmware_management_service_api.models.IPAddressAllocationMethod + :type allocation_method: str or ~azure.mgmt.connectedvmware.models.IPAddressAllocationMethod :param dns_servers: Gets or sets the dns servers. :type dns_servers: list[str] :param gateway: Gets or sets the gateway. @@ -1771,8 +1833,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 = { @@ -1815,7 +1876,7 @@ class Operation(msrest.serialization.Model): :param is_data_action: Indicates whether the operation is data action or not. :type is_data_action: bool :param display: Properties of the operation. - :type display: ~azure_arc_vmware_management_service_api.models.OperationDisplay + :type display: ~azure.mgmt.connectedvmware.models.OperationDisplay """ _attribute_map = { @@ -1873,7 +1934,7 @@ class OperationsList(msrest.serialization.Model): :param next_link: Url to follow for getting next page of operations. :type next_link: str :param value: Required. Array of operations. - :type value: list[~azure_arc_vmware_management_service_api.models.Operation] + :type value: list[~azure.mgmt.connectedvmware.models.Operation] """ _validation = { @@ -1907,7 +1968,7 @@ class OsProfile(msrest.serialization.Model): :type admin_password: str :param os_type: Gets or sets the type of the os. Possible values include: "Windows", "Linux", "Other". - :type os_type: str or ~azure_arc_vmware_management_service_api.models.OsType + :type 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 @@ -1998,9 +2059,9 @@ class ResourcePool(msrest.serialization.Model): :param location: Required. Gets or sets the location. :type location: str :param extended_location: Gets or sets the extended location. - :type extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :type 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 :param tags: A set of tags. Gets or sets the Resource tags. :type tags: dict[str, str] :ivar name: Gets or sets the name. @@ -2050,7 +2111,7 @@ class ResourcePool(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] + :vartype statuses: list[~azure.mgmt.connectedvmware.models.ResourceStatus] :ivar provisioning_state: Gets or sets the provisioning state. :vartype provisioning_state: str """ @@ -2137,8 +2198,8 @@ class ResourcePoolInventoryItem(InventoryItemProperties): :param inventory_type: Required. They inventory type.Constant filled by server. Possible values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", - "Cluster", "Datastore". - :type inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + "Cluster", "Datastore", "Host". + :type inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType :param managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. :type managed_resource_id: str @@ -2149,7 +2210,7 @@ class ResourcePoolInventoryItem(InventoryItemProperties): :ivar provisioning_state: Gets or sets the provisioning state. :vartype provisioning_state: str :param parent: Parent resourcePool inventory resource details. - :type parent: ~azure_arc_vmware_management_service_api.models.InventoryItemDetails + :type parent: ~azure.mgmt.connectedvmware.models.InventoryItemDetails """ _validation = { @@ -2183,7 +2244,7 @@ class ResourcePoolsList(msrest.serialization.Model): :param next_link: Url to follow for getting next page of ResourcePools. :type next_link: str :param value: Required. Array of ResourcePools. - :type value: list[~azure_arc_vmware_management_service_api.models.ResourcePool] + :type value: list[~azure.mgmt.connectedvmware.models.ResourcePool] """ _validation = { @@ -2281,11 +2342,10 @@ class StorageProfile(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :param disks: Gets or sets the list of virtual disks associated with the virtual machine. - :type disks: list[~azure_arc_vmware_management_service_api.models.VirtualDisk] + :type 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 = { @@ -2310,7 +2370,7 @@ class StorageProfileUpdate(msrest.serialization.Model): """Defines the resource update properties. :param disks: Gets or sets the list of virtual disks associated with the virtual machine. - :type disks: list[~azure_arc_vmware_management_service_api.models.VirtualDiskUpdate] + :type disks: list[~azure.mgmt.connectedvmware.models.VirtualDiskUpdate] """ _attribute_map = { @@ -2332,15 +2392,14 @@ class SystemData(msrest.serialization.Model): :type created_by: str :param created_by_type: The type of identity that created the resource. Possible values include: "User", "Application", "ManagedIdentity", "Key". - :type created_by_type: str or ~azure_arc_vmware_management_service_api.models.CreatedByType + :type created_by_type: str or ~azure.mgmt.connectedvmware.models.CreatedByType :param created_at: The timestamp of resource creation (UTC). :type created_at: ~datetime.datetime :param last_modified_by: The identity that last modified the resource. :type last_modified_by: str :param last_modified_by_type: The type of identity that last modified the resource. Possible values include: "User", "Application", "ManagedIdentity", "Key". - :type last_modified_by_type: str or - ~azure_arc_vmware_management_service_api.models.CreatedByType + :type last_modified_by_type: str or ~azure.mgmt.connectedvmware.models.CreatedByType :param last_modified_at: The timestamp of resource last modification (UTC). :type last_modified_at: ~datetime.datetime """ @@ -2377,9 +2436,9 @@ class VCenter(msrest.serialization.Model): :param location: Required. Gets or sets the location. :type location: str :param extended_location: Gets or sets the extended location. - :type extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :type 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 :param tags: A set of tags. Gets or sets the Resource tags. :type tags: dict[str, str] :ivar name: Gets or sets the name. @@ -2407,9 +2466,9 @@ class VCenter(msrest.serialization.Model): :ivar custom_resource_name: Gets the name of the corresponding resource in Kubernetes. :vartype custom_resource_name: str :param credentials: Username / Password Credentials to connect to vcenter. - :type credentials: ~azure_arc_vmware_management_service_api.models.VICredential + :type credentials: ~azure.mgmt.connectedvmware.models.VICredential :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 provisioning_state: Gets or sets the provisioning state. :vartype provisioning_state: str """ @@ -2485,7 +2544,7 @@ class VCentersList(msrest.serialization.Model): :param next_link: Url to follow for getting next page of VCenters. :type next_link: str :param value: Required. Array of VCenters. - :type value: list[~azure_arc_vmware_management_service_api.models.VCenter] + :type value: list[~azure.mgmt.connectedvmware.models.VCenter] """ _validation = { @@ -2546,7 +2605,7 @@ class VirtualDisk(msrest.serialization.Model): :type device_key: int :param disk_mode: Gets or sets the disk mode. Possible values include: "persistent", "independent_persistent", "independent_nonpersistent". - :type disk_mode: str or ~azure_arc_vmware_management_service_api.models.DiskMode + :type disk_mode: str or ~azure.mgmt.connectedvmware.models.DiskMode :param controller_key: Gets or sets the controller id. :type controller_key: int :param unit_number: Gets or sets the unit number of the disk on the controller. @@ -2555,7 +2614,7 @@ class VirtualDisk(msrest.serialization.Model): :type device_name: str :param disk_type: Gets or sets the disk backing type. Possible values include: "flat", "pmem", "rawphysical", "rawvirtual", "sparse", "sesparse", "unknown". - :type disk_type: str or ~azure_arc_vmware_management_service_api.models.DiskType + :type disk_type: str or ~azure.mgmt.connectedvmware.models.DiskType """ _validation = { @@ -2604,7 +2663,7 @@ class VirtualDiskUpdate(msrest.serialization.Model): :type device_key: int :param disk_mode: Gets or sets the disk mode. Possible values include: "persistent", "independent_persistent", "independent_nonpersistent". - :type disk_mode: str or ~azure_arc_vmware_management_service_api.models.DiskMode + :type disk_mode: str or ~azure.mgmt.connectedvmware.models.DiskMode :param controller_key: Gets or sets the controller id. :type controller_key: int :param unit_number: Gets or sets the unit number of the disk on the controller. @@ -2613,7 +2672,7 @@ class VirtualDiskUpdate(msrest.serialization.Model): :type device_name: str :param disk_type: Gets or sets the disk backing type. Possible values include: "flat", "pmem", "rawphysical", "rawvirtual", "sparse", "sesparse", "unknown". - :type disk_type: str or ~azure_arc_vmware_management_service_api.models.DiskType + :type disk_type: str or ~azure.mgmt.connectedvmware.models.DiskType """ _attribute_map = { @@ -2652,9 +2711,9 @@ class VirtualMachine(msrest.serialization.Model): :param location: Required. Gets or sets the location. :type location: str :param extended_location: Gets or sets the extended location. - :type extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :type 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 :param tags: A set of tags. Gets or sets the Resource tags. :type tags: dict[str, str] :ivar name: Gets or sets the name. @@ -2668,7 +2727,7 @@ class VirtualMachine(msrest.serialization.Model): the resource provider must validate and persist this value. :type kind: str :param identity: The identity of the resource. - :type identity: ~azure_arc_vmware_management_service_api.models.Identity + :type identity: ~azure.mgmt.connectedvmware.models.Identity :param resource_pool_id: Gets or sets the ARM Id of the resourcePool resource on which this virtual machine will deploy. @@ -2680,17 +2739,17 @@ class VirtualMachine(msrest.serialization.Model): resides. :type v_center_id: str :param placement_profile: Placement properties. - :type placement_profile: ~azure_arc_vmware_management_service_api.models.PlacementProfile + :type placement_profile: ~azure.mgmt.connectedvmware.models.PlacementProfile :param os_profile: OS properties. - :type os_profile: ~azure_arc_vmware_management_service_api.models.OsProfile + :type os_profile: ~azure.mgmt.connectedvmware.models.OsProfile :param hardware_profile: Hardware properties. - :type hardware_profile: ~azure_arc_vmware_management_service_api.models.HardwareProfile + :type hardware_profile: ~azure.mgmt.connectedvmware.models.HardwareProfile :param network_profile: Network properties. - :type network_profile: ~azure_arc_vmware_management_service_api.models.NetworkProfile + :type network_profile: ~azure.mgmt.connectedvmware.models.NetworkProfile :param storage_profile: Storage properties. - :type storage_profile: ~azure_arc_vmware_management_service_api.models.StorageProfile + :type storage_profile: ~azure.mgmt.connectedvmware.models.StorageProfile :param guest_agent_profile: Guest agent status properties. - :type guest_agent_profile: ~azure_arc_vmware_management_service_api.models.GuestAgentProfile + :type guest_agent_profile: ~azure.mgmt.connectedvmware.models.GuestAgentProfile :param mo_ref_id: Gets or sets the vCenter MoRef (Managed Object Reference) ID for the virtual machine. :type mo_ref_id: str @@ -2704,6 +2763,8 @@ class VirtualMachine(msrest.serialization.Model): :vartype instance_uuid: str :param smbios_uuid: Gets or sets the SMBIOS UUID of the vm. :type smbios_uuid: str + :param firmware_type: Firmware type. Possible values include: "bios", "efi". + :type 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. @@ -2711,7 +2772,7 @@ 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] + :vartype statuses: list[~azure.mgmt.connectedvmware.models.ResourceStatus] :ivar provisioning_state: Gets or sets the provisioning state. :vartype provisioning_state: str :ivar vm_id: Gets or sets a unique identifier for the vm resource. @@ -2760,6 +2821,7 @@ class VirtualMachine(msrest.serialization.Model): 'folder_path': {'key': 'properties.folderPath', 'type': 'str'}, 'instance_uuid': {'key': 'properties.instanceUuid', 'type': 'str'}, 'smbios_uuid': {'key': 'properties.smbiosUuid', 'type': 'str'}, + 'firmware_type': {'key': 'properties.firmwareType', 'type': 'str'}, 'power_state': {'key': 'properties.powerState', 'type': 'str'}, 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, 'uuid': {'key': 'properties.uuid', 'type': 'str'}, @@ -2797,6 +2859,7 @@ def __init__( self.folder_path = None self.instance_uuid = None self.smbios_uuid = kwargs.get('smbios_uuid', None) + self.firmware_type = kwargs.get('firmware_type', None) self.power_state = None self.custom_resource_name = None self.uuid = None @@ -2814,8 +2877,8 @@ class VirtualMachineInventoryItem(InventoryItemProperties): :param inventory_type: Required. They inventory type.Constant filled by server. Possible values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", - "Cluster", "Datastore". - :type inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + "Cluster", "Datastore", "Host". + :type inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType :param managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. :type managed_resource_id: str @@ -2827,7 +2890,7 @@ class VirtualMachineInventoryItem(InventoryItemProperties): :vartype provisioning_state: str :param os_type: Gets or sets the type of the os. Possible values include: "Windows", "Linux", "Other". - :type os_type: str or ~azure_arc_vmware_management_service_api.models.OsType + :type os_type: str or ~azure.mgmt.connectedvmware.models.OsType :param os_name: Gets or sets os name. :type os_name: str :param ip_addresses: Gets or sets the nic ip addresses. @@ -2835,9 +2898,9 @@ class VirtualMachineInventoryItem(InventoryItemProperties): :param folder_path: Gets or sets the folder path of the vm. :type folder_path: str :param host: Host inventory resource details. - :type host: ~azure_arc_vmware_management_service_api.models.InventoryItemDetails + :type host: ~azure.mgmt.connectedvmware.models.InventoryItemDetails :param resource_pool: ResourcePool inventory resource details. - :type resource_pool: ~azure_arc_vmware_management_service_api.models.InventoryItemDetails + :type resource_pool: ~azure.mgmt.connectedvmware.models.InventoryItemDetails :param instance_uuid: Gets or sets the instance uuid of the vm. :type instance_uuid: str :param smbios_uuid: Gets or sets the SMBIOS UUID of the vm. @@ -2911,7 +2974,7 @@ class VirtualMachinesList(msrest.serialization.Model): :param next_link: Url to follow for getting next page of VirtualMachines. :type next_link: str :param value: Required. Array of VirtualMachines. - :type value: list[~azure_arc_vmware_management_service_api.models.VirtualMachine] + :type value: list[~azure.mgmt.connectedvmware.models.VirtualMachine] """ _validation = { @@ -2942,9 +3005,9 @@ class VirtualMachineTemplate(msrest.serialization.Model): :param location: Required. Gets or sets the location. :type location: str :param extended_location: Gets or sets the extended location. - :type extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :type 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 :param tags: A set of tags. Gets or sets the Resource tags. :type tags: dict[str, str] :ivar name: Gets or sets the name. @@ -2979,16 +3042,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 @@ -2996,8 +3058,10 @@ class VirtualMachineTemplate(msrest.serialization.Model): :vartype tools_version_status: str :ivar tools_version: Gets or sets the current version of VMware Tools. :vartype tools_version: str + :ivar firmware_type: Firmware type. Possible values include: "bios", "efi". + :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] + :vartype statuses: list[~azure.mgmt.connectedvmware.models.ResourceStatus] :ivar provisioning_state: Gets or sets the provisioning state. :vartype provisioning_state: str """ @@ -3021,6 +3085,7 @@ class VirtualMachineTemplate(msrest.serialization.Model): 'custom_resource_name': {'readonly': True}, 'tools_version_status': {'readonly': True}, 'tools_version': {'readonly': True}, + 'firmware_type': {'readonly': True}, 'statuses': {'readonly': True}, 'provisioning_state': {'readonly': True}, } @@ -3050,6 +3115,7 @@ class VirtualMachineTemplate(msrest.serialization.Model): 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, 'tools_version_status': {'key': 'properties.toolsVersionStatus', 'type': 'str'}, 'tools_version': {'key': 'properties.toolsVersion', 'type': 'str'}, + 'firmware_type': {'key': 'properties.firmwareType', 'type': 'str'}, 'statuses': {'key': 'properties.statuses', 'type': '[ResourceStatus]'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, } @@ -3083,6 +3149,7 @@ def __init__( self.custom_resource_name = None self.tools_version_status = None self.tools_version = None + self.firmware_type = None self.statuses = None self.provisioning_state = None @@ -3096,8 +3163,8 @@ class VirtualMachineTemplateInventoryItem(InventoryItemProperties): :param inventory_type: Required. They inventory type.Constant filled by server. Possible values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", - "Cluster", "Datastore". - :type inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + "Cluster", "Datastore", "Host". + :type inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType :param managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. :type managed_resource_id: str @@ -3116,7 +3183,7 @@ class VirtualMachineTemplateInventoryItem(InventoryItemProperties): :type num_cores_per_socket: int :param os_type: Gets or sets the type of the os. Possible values include: "Windows", "Linux", "Other". - :type os_type: str or ~azure_arc_vmware_management_service_api.models.OsType + :type os_type: str or ~azure.mgmt.connectedvmware.models.OsType :param os_name: Gets or sets os name. :type os_name: str :param folder_path: Gets or sets the folder path of the template. @@ -3164,7 +3231,7 @@ class VirtualMachineTemplatesList(msrest.serialization.Model): :param next_link: Url to follow for getting next page of VirtualMachineTemplates. :type next_link: str :param value: Required. Array of VirtualMachineTemplates. - :type value: list[~azure_arc_vmware_management_service_api.models.VirtualMachineTemplate] + :type value: list[~azure.mgmt.connectedvmware.models.VirtualMachineTemplate] """ _validation = { @@ -3191,13 +3258,13 @@ class VirtualMachineUpdate(msrest.serialization.Model): :param tags: A set of tags. Gets or sets the Resource tags. :type tags: dict[str, str] :param identity: The identity of the resource. - :type identity: ~azure_arc_vmware_management_service_api.models.Identity + :type identity: ~azure.mgmt.connectedvmware.models.Identity :param hardware_profile: Defines the resource properties. - :type hardware_profile: ~azure_arc_vmware_management_service_api.models.HardwareProfile + :type hardware_profile: ~azure.mgmt.connectedvmware.models.HardwareProfile :param storage_profile: Defines the resource update properties. - :type storage_profile: ~azure_arc_vmware_management_service_api.models.StorageProfileUpdate + :type storage_profile: ~azure.mgmt.connectedvmware.models.StorageProfileUpdate :param network_profile: Defines the update resource properties. - :type network_profile: ~azure_arc_vmware_management_service_api.models.NetworkProfileUpdate + :type network_profile: ~azure.mgmt.connectedvmware.models.NetworkProfileUpdate """ _attribute_map = { @@ -3230,9 +3297,9 @@ class VirtualNetwork(msrest.serialization.Model): :param location: Required. Gets or sets the location. :type location: str :param extended_location: Gets or sets the extended location. - :type extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :type 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 :param tags: A set of tags. Gets or sets the Resource tags. :type tags: dict[str, str] :ivar name: Gets or sets the name. @@ -3260,7 +3327,7 @@ 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] + :vartype statuses: list[~azure.mgmt.connectedvmware.models.ResourceStatus] :ivar provisioning_state: Gets or sets the provisioning state. :vartype provisioning_state: str """ @@ -3329,8 +3396,8 @@ class VirtualNetworkInventoryItem(InventoryItemProperties): :param inventory_type: Required. They inventory type.Constant filled by server. Possible values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", - "Cluster", "Datastore". - :type inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + "Cluster", "Datastore", "Host". + :type inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType :param managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. :type managed_resource_id: str @@ -3371,7 +3438,7 @@ class VirtualNetworksList(msrest.serialization.Model): :param next_link: Url to follow for getting next page of VirtualNetworks. :type next_link: str :param value: Required. Array of VirtualNetworks. - :type value: list[~azure_arc_vmware_management_service_api.models.VirtualNetwork] + :type value: list[~azure.mgmt.connectedvmware.models.VirtualNetwork] """ _validation = { @@ -3397,7 +3464,7 @@ class VirtualSCSIController(msrest.serialization.Model): :param type: Gets or sets the controller type. Possible values include: "lsilogic", "buslogic", "pvscsi", "lsilogicsas". - :type type: str or ~azure_arc_vmware_management_service_api.models.SCSIControllerType + :type type: str or ~azure.mgmt.connectedvmware.models.SCSIControllerType :param controller_key: Gets or sets the key of the controller. :type controller_key: int :param bus_number: Gets or sets the bus number of the controller. @@ -3406,7 +3473,7 @@ class VirtualSCSIController(msrest.serialization.Model): :type scsi_ctlr_unit_number: int :param sharing: Gets or sets the sharing mode. Possible values include: "noSharing", "physicalSharing", "virtualSharing". - :type sharing: str or ~azure_arc_vmware_management_service_api.models.VirtualSCSISharing + :type sharing: str or ~azure.mgmt.connectedvmware.models.VirtualSCSISharing """ _attribute_map = { diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/_models_py3.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/_models_py3.py index 6113e7a5eb7..b89102973d6 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/_models_py3.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/models/_models_py3.py @@ -25,9 +25,9 @@ class Cluster(msrest.serialization.Model): :param location: Required. Gets or sets the location. :type location: str :param extended_location: Gets or sets the extended location. - :type extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :type 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 :param tags: A set of tags. Gets or sets the Resource tags. :type tags: dict[str, str] :ivar name: Gets or sets the name. @@ -52,9 +52,13 @@ 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 datastore_ids: Gets or sets the datastore ARM ids. + :vartype datastore_ids: list[str] + :ivar network_ids: Gets or sets the network ARM ids. + :vartype network_ids: list[str] :ivar provisioning_state: Gets or sets the provisioning state. :vartype provisioning_state: str """ @@ -69,6 +73,8 @@ class Cluster(msrest.serialization.Model): 'mo_name': {'readonly': True}, 'statuses': {'readonly': True}, 'custom_resource_name': {'readonly': True}, + 'datastore_ids': {'readonly': True}, + 'network_ids': {'readonly': True}, 'provisioning_state': {'readonly': True}, } @@ -88,6 +94,8 @@ 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'}, + 'datastore_ids': {'key': 'properties.datastoreIds', 'type': '[str]'}, + 'network_ids': {'key': 'properties.networkIds', 'type': '[str]'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, } @@ -119,6 +127,8 @@ def __init__( self.mo_name = None self.statuses = None self.custom_resource_name = None + self.datastore_ids = None + self.network_ids = None self.provisioning_state = None @@ -126,7 +136,7 @@ class InventoryItemProperties(msrest.serialization.Model): """Defines the resource properties. You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ClusterInventoryItem, DatastoreInventoryItem, ResourcePoolInventoryItem, VirtualMachineInventoryItem, VirtualMachineTemplateInventoryItem, VirtualNetworkInventoryItem. + sub-classes are: ClusterInventoryItem, DatastoreInventoryItem, HostInventoryItem, ResourcePoolInventoryItem, VirtualMachineInventoryItem, VirtualMachineTemplateInventoryItem, VirtualNetworkInventoryItem. Variables are only populated by the server, and will be ignored when sending a request. @@ -134,8 +144,8 @@ class InventoryItemProperties(msrest.serialization.Model): :param inventory_type: Required. They inventory type.Constant filled by server. Possible values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", - "Cluster", "Datastore". - :type inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + "Cluster", "Datastore", "Host". + :type inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType :param managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. :type managed_resource_id: str @@ -161,7 +171,7 @@ class InventoryItemProperties(msrest.serialization.Model): } _subtype_map = { - 'inventory_type': {'Cluster': 'ClusterInventoryItem', 'Datastore': 'DatastoreInventoryItem', 'ResourcePool': 'ResourcePoolInventoryItem', 'VirtualMachine': 'VirtualMachineInventoryItem', 'VirtualMachineTemplate': 'VirtualMachineTemplateInventoryItem', 'VirtualNetwork': 'VirtualNetworkInventoryItem'} + 'inventory_type': {'Cluster': 'ClusterInventoryItem', 'Datastore': 'DatastoreInventoryItem', 'Host': 'HostInventoryItem', 'ResourcePool': 'ResourcePoolInventoryItem', 'VirtualMachine': 'VirtualMachineInventoryItem', 'VirtualMachineTemplate': 'VirtualMachineTemplateInventoryItem', 'VirtualNetwork': 'VirtualNetworkInventoryItem'} } def __init__( @@ -189,8 +199,8 @@ class ClusterInventoryItem(InventoryItemProperties): :param inventory_type: Required. They inventory type.Constant filled by server. Possible values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", - "Cluster", "Datastore". - :type inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + "Cluster", "Datastore", "Host". + :type inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType :param managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. :type managed_resource_id: str @@ -235,7 +245,7 @@ class ClustersList(msrest.serialization.Model): :param next_link: Url to follow for getting next page of Clusters. :type next_link: str :param value: Required. Array of Clusters. - :type value: list[~azure_arc_vmware_management_service_api.models.Cluster] + :type value: list[~azure.mgmt.connectedvmware.models.Cluster] """ _validation = { @@ -309,9 +319,9 @@ class Datastore(msrest.serialization.Model): :param location: Required. Gets or sets the location. :type location: str :param extended_location: Gets or sets the extended location. - :type extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :type 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 :param tags: A set of tags. Gets or sets the Resource tags. :type tags: dict[str, str] :ivar name: Gets or sets the name. @@ -337,14 +347,13 @@ 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 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 = { @@ -419,8 +428,8 @@ class DatastoreInventoryItem(InventoryItemProperties): :param inventory_type: Required. They inventory type.Constant filled by server. Possible values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", - "Cluster", "Datastore". - :type inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + "Cluster", "Datastore", "Host". + :type inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType :param managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. :type managed_resource_id: str @@ -430,6 +439,10 @@ class DatastoreInventoryItem(InventoryItemProperties): :type mo_name: str :ivar provisioning_state: Gets or sets the provisioning state. :vartype provisioning_state: str + :param capacity_gb: Gets or sets Maximum capacity of this datastore, in GBs. + :type capacity_gb: long + :param free_space_gb: Gets or sets Available space of this datastore, in GBs. + :type free_space_gb: long """ _validation = { @@ -443,6 +456,8 @@ class DatastoreInventoryItem(InventoryItemProperties): 'mo_ref_id': {'key': 'moRefId', 'type': 'str'}, 'mo_name': {'key': 'moName', 'type': 'str'}, 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'capacity_gb': {'key': 'capacityGB', 'type': 'long'}, + 'free_space_gb': {'key': 'freeSpaceGB', 'type': 'long'}, } def __init__( @@ -451,10 +466,14 @@ def __init__( managed_resource_id: Optional[str] = None, mo_ref_id: Optional[str] = None, mo_name: Optional[str] = None, + capacity_gb: Optional[int] = None, + free_space_gb: Optional[int] = None, **kwargs ): super(DatastoreInventoryItem, self).__init__(managed_resource_id=managed_resource_id, mo_ref_id=mo_ref_id, mo_name=mo_name, **kwargs) self.inventory_type = 'Datastore' # type: str + self.capacity_gb = capacity_gb + self.free_space_gb = free_space_gb class DatastoresList(msrest.serialization.Model): @@ -465,7 +484,7 @@ class DatastoresList(msrest.serialization.Model): :param next_link: Url to follow for getting next page of Datastores. :type next_link: str :param value: Required. Array of Datastores. - :type value: list[~azure_arc_vmware_management_service_api.models.Datastore] + :type value: list[~azure.mgmt.connectedvmware.models.Datastore] """ _validation = { @@ -499,7 +518,7 @@ class ErrorDefinition(msrest.serialization.Model): :ivar message: Description of the error. :vartype message: str :ivar details: Internal error details. - :vartype details: list[~azure_arc_vmware_management_service_api.models.ErrorDefinition] + :vartype details: list[~azure.mgmt.connectedvmware.models.ErrorDefinition] """ _validation = { @@ -536,7 +555,7 @@ class ErrorDetail(msrest.serialization.Model): :param target: Indicates which property in the request is responsible for the error. :type target: str :param details: Additional error details. - :type details: list[~azure_arc_vmware_management_service_api.models.ErrorDetail] + :type details: list[~azure.mgmt.connectedvmware.models.ErrorDetail] """ _validation = { @@ -571,7 +590,7 @@ class ErrorResponse(msrest.serialization.Model): """Error response. :param error: The error details. - :type error: ~azure_arc_vmware_management_service_api.models.ErrorDefinition + :type error: ~azure.mgmt.connectedvmware.models.ErrorDefinition """ _attribute_map = { @@ -699,21 +718,22 @@ class GuestAgent(ProxyResource): "Microsoft.Storage/storageAccounts". :vartype type: 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 uuid: Gets or sets a unique identifier for this resource. :vartype uuid: str :param credentials: Username / Password Credentials to provision guest agent. - :type credentials: ~azure_arc_vmware_management_service_api.models.GuestCredential + :type credentials: ~azure.mgmt.connectedvmware.models.GuestCredential :param http_proxy_config: HTTP Proxy configuration for the VM. - :type http_proxy_config: ~azure_arc_vmware_management_service_api.models.HttpProxyConfiguration + :type http_proxy_config: ~azure.mgmt.connectedvmware.models.HttpProxyConfiguration :param provisioning_action: Gets or sets the guest agent provisioning action. Possible values include: "install", "uninstall", "repair". - :type provisioning_action: str or - ~azure_arc_vmware_management_service_api.models.ProvisioningAction + :type 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.mgmt.connectedvmware.models.ResourceStatus] :ivar provisioning_state: Gets or sets the provisioning state. :vartype provisioning_state: str """ @@ -726,6 +746,7 @@ class GuestAgent(ProxyResource): 'uuid': {'readonly': True}, 'status': {'readonly': True}, 'custom_resource_name': {'readonly': True}, + 'statuses': {'readonly': True}, 'provisioning_state': {'readonly': True}, } @@ -740,6 +761,7 @@ class GuestAgent(ProxyResource): 'provisioning_action': {'key': 'properties.provisioningAction', 'type': 'str'}, 'status': {'key': 'properties.status', 'type': 'str'}, 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, + 'statuses': {'key': 'properties.statuses', 'type': '[ResourceStatus]'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, } @@ -759,6 +781,7 @@ def __init__( self.provisioning_action = provisioning_action self.status = None self.custom_resource_name = None + self.statuses = None self.provisioning_state = None @@ -770,7 +793,7 @@ class GuestAgentList(msrest.serialization.Model): :param next_link: Url to follow for getting next page of GuestAgent. :type next_link: str :param value: Required. Array of GuestAgent. - :type value: list[~azure_arc_vmware_management_service_api.models.GuestAgent] + :type value: list[~azure.mgmt.connectedvmware.models.GuestAgent] """ _validation = { @@ -803,13 +826,13 @@ 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 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 = { @@ -931,9 +954,9 @@ class Host(msrest.serialization.Model): :param location: Required. Gets or sets the location. :type location: str :param extended_location: Gets or sets the extended location. - :type extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :type 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 :param tags: A set of tags. Gets or sets the Resource tags. :type tags: dict[str, str] :ivar name: Gets or sets the name. @@ -957,7 +980,7 @@ 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 provisioning_state: Gets or sets the provisioning state. @@ -1027,6 +1050,58 @@ def __init__( self.provisioning_state = None +class HostInventoryItem(InventoryItemProperties): + """The host inventory item. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :param inventory_type: Required. They inventory type.Constant filled by server. Possible + values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", + "Cluster", "Datastore", "Host". + :type inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType + :param managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory + resource. + :type managed_resource_id: str + :param mo_ref_id: Gets or sets the MoRef (Managed Object Reference) ID for the inventory item. + :type mo_ref_id: str + :param mo_name: Gets or sets the vCenter Managed Object name for the inventory item. + :type mo_name: str + :ivar provisioning_state: Gets or sets the provisioning state. + :vartype provisioning_state: str + :param parent: Parent host inventory resource details. + :type parent: ~azure.mgmt.connectedvmware.models.InventoryItemDetails + """ + + _validation = { + 'inventory_type': {'required': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'inventory_type': {'key': 'inventoryType', 'type': 'str'}, + 'managed_resource_id': {'key': 'managedResourceId', 'type': 'str'}, + 'mo_ref_id': {'key': 'moRefId', 'type': 'str'}, + 'mo_name': {'key': 'moName', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'parent': {'key': 'parent', 'type': 'InventoryItemDetails'}, + } + + def __init__( + self, + *, + managed_resource_id: Optional[str] = None, + mo_ref_id: Optional[str] = None, + mo_name: Optional[str] = None, + parent: Optional["InventoryItemDetails"] = None, + **kwargs + ): + 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 + self.parent = parent + + class HostsList(msrest.serialization.Model): """List of Hosts. @@ -1035,7 +1110,7 @@ class HostsList(msrest.serialization.Model): :param next_link: Url to follow for getting next page of Hosts. :type next_link: str :param value: Required. Array of Hosts. - :type value: list[~azure_arc_vmware_management_service_api.models.Host] + :type value: list[~azure.mgmt.connectedvmware.models.Host] """ _validation = { @@ -1094,13 +1169,13 @@ class HybridIdentityMetadata(ProxyResource): "Microsoft.Storage/storageAccounts". :vartype type: 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 :param vm_id: Gets or sets the Vm Id. :type vm_id: str :param public_key: Gets or sets the Public Key. :type public_key: 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 provisioning_state: Gets or sets the provisioning state. :vartype provisioning_state: str """ @@ -1148,7 +1223,7 @@ class HybridIdentityMetadataList(msrest.serialization.Model): :param next_link: Url to follow for getting next page of HybridIdentityMetadata. :type next_link: str :param value: Required. Array of HybridIdentityMetadata. - :type value: list[~azure_arc_vmware_management_service_api.models.HybridIdentityMetadata] + :type value: list[~azure.mgmt.connectedvmware.models.HybridIdentityMetadata] """ _validation = { @@ -1185,7 +1260,7 @@ class Identity(msrest.serialization.Model): :vartype tenant_id: str :param type: Required. The type of managed service identity. Possible values include: "None", "SystemAssigned". - :type type: str or ~azure_arc_vmware_management_service_api.models.IdentityType + :type type: str or ~azure.mgmt.connectedvmware.models.IdentityType """ _validation = { @@ -1228,15 +1303,15 @@ class InventoryItem(ProxyResource): "Microsoft.Storage/storageAccounts". :vartype type: 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 :param kind: Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. :type kind: str :param inventory_type: Required. They inventory type.Constant filled by server. Possible values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", - "Cluster", "Datastore". - :type inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + "Cluster", "Datastore", "Host". + :type inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType :param managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. :type managed_resource_id: str @@ -1323,7 +1398,7 @@ class InventoryItemsList(msrest.serialization.Model): :param next_link: Url to follow for getting next page of InventoryItems. :type next_link: str :param value: Required. Array of InventoryItems. - :type value: list[~azure_arc_vmware_management_service_api.models.InventoryItem] + :type value: list[~azure.mgmt.connectedvmware.models.InventoryItem] """ _validation = { @@ -1355,7 +1430,7 @@ class MachineExtension(msrest.serialization.Model): :param location: Gets or sets the location. :type 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 :param tags: A set of tags. Gets or sets the Resource tags. :type tags: dict[str, str] :ivar name: Gets or sets the name. @@ -1386,8 +1461,7 @@ class MachineExtension(msrest.serialization.Model): :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param instance_view: The machine extension instance view. - :type instance_view: - ~azure_arc_vmware_management_service_api.models.MachineExtensionPropertiesInstanceView + :type instance_view: ~azure.mgmt.connectedvmware.models.MachineExtensionPropertiesInstanceView """ _validation = { @@ -1461,8 +1535,7 @@ class MachineExtensionInstanceView(msrest.serialization.Model): :ivar type_handler_version: Specifies the version of the script handler. :vartype type_handler_version: str :param status: Instance view status. - :type status: - ~azure_arc_vmware_management_service_api.models.MachineExtensionInstanceViewStatus + :type status: ~azure.mgmt.connectedvmware.models.MachineExtensionInstanceViewStatus """ _validation = { @@ -1499,7 +1572,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. @@ -1548,8 +1621,7 @@ class MachineExtensionPropertiesInstanceView(MachineExtensionInstanceView): :ivar type_handler_version: Specifies the version of the script handler. :vartype type_handler_version: str :param status: Instance view status. - :type status: - ~azure_arc_vmware_management_service_api.models.MachineExtensionInstanceViewStatus + :type status: ~azure.mgmt.connectedvmware.models.MachineExtensionInstanceViewStatus """ _validation = { @@ -1578,7 +1650,7 @@ class MachineExtensionsListResult(msrest.serialization.Model): """Describes the Machine Extensions List Result. :param value: The list of extensions. - :type value: list[~azure_arc_vmware_management_service_api.models.MachineExtension] + :type value: list[~azure.mgmt.connectedvmware.models.MachineExtension] :param next_link: The uri to fetch the next page of machine extensions. Call ListNext() with this to fetch the next page of extensions. :type next_link: str @@ -1700,10 +1772,10 @@ class NetworkInterface(msrest.serialization.Model): :type network_id: str :param nic_type: NIC type. Possible values include: "vmxnet3", "vmxnet2", "vmxnet", "e1000", "e1000e", "pcnet32". - :type nic_type: str or ~azure_arc_vmware_management_service_api.models.NICType + :type nic_type: str or ~azure.mgmt.connectedvmware.models.NICType :param power_on_boot: Gets or sets the power on boot. Possible values include: "enabled", "disabled". - :type power_on_boot: str or ~azure_arc_vmware_management_service_api.models.PowerOnBootOption + :type 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. @@ -1714,7 +1786,7 @@ class NetworkInterface(msrest.serialization.Model): :param device_key: Gets or sets the device key value. :type device_key: int :param ip_settings: Gets or sets the ipsettings. - :type ip_settings: ~azure_arc_vmware_management_service_api.models.NicIPSettings + :type ip_settings: ~azure.mgmt.connectedvmware.models.NicIPSettings """ _validation = { @@ -1774,10 +1846,10 @@ class NetworkInterfaceUpdate(msrest.serialization.Model): :type network_id: str :param nic_type: NIC type. Possible values include: "vmxnet3", "vmxnet2", "vmxnet", "e1000", "e1000e", "pcnet32". - :type nic_type: str or ~azure_arc_vmware_management_service_api.models.NICType + :type nic_type: str or ~azure.mgmt.connectedvmware.models.NICType :param power_on_boot: Gets or sets the power on boot. Possible values include: "enabled", "disabled". - :type power_on_boot: str or ~azure_arc_vmware_management_service_api.models.PowerOnBootOption + :type power_on_boot: str or ~azure.mgmt.connectedvmware.models.PowerOnBootOption :param device_key: Gets or sets the device key value. :type device_key: int """ @@ -1813,8 +1885,7 @@ class NetworkProfile(msrest.serialization.Model): :param network_interfaces: Gets or sets the list of network interfaces associated with the virtual machine. - :type network_interfaces: - list[~azure_arc_vmware_management_service_api.models.NetworkInterface] + :type network_interfaces: list[~azure.mgmt.connectedvmware.models.NetworkInterface] """ _attribute_map = { @@ -1836,8 +1907,7 @@ class NetworkProfileUpdate(msrest.serialization.Model): :param network_interfaces: Gets or sets the list of network interfaces associated with the virtual machine. - :type network_interfaces: - list[~azure_arc_vmware_management_service_api.models.NetworkInterfaceUpdate] + :type network_interfaces: list[~azure.mgmt.connectedvmware.models.NetworkInterfaceUpdate] """ _attribute_map = { @@ -1896,8 +1966,7 @@ class NicIPSettings(msrest.serialization.Model): :param allocation_method: Gets or sets the nic allocation method. Possible values include: "unset", "dynamic", "static", "linklayer", "random", "other". - :type allocation_method: str or - ~azure_arc_vmware_management_service_api.models.IPAddressAllocationMethod + :type allocation_method: str or ~azure.mgmt.connectedvmware.models.IPAddressAllocationMethod :param dns_servers: Gets or sets the dns servers. :type dns_servers: list[str] :param gateway: Gets or sets the gateway. @@ -1912,8 +1981,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 = { @@ -1962,7 +2030,7 @@ class Operation(msrest.serialization.Model): :param is_data_action: Indicates whether the operation is data action or not. :type is_data_action: bool :param display: Properties of the operation. - :type display: ~azure_arc_vmware_management_service_api.models.OperationDisplay + :type display: ~azure.mgmt.connectedvmware.models.OperationDisplay """ _attribute_map = { @@ -2029,7 +2097,7 @@ class OperationsList(msrest.serialization.Model): :param next_link: Url to follow for getting next page of operations. :type next_link: str :param value: Required. Array of operations. - :type value: list[~azure_arc_vmware_management_service_api.models.Operation] + :type value: list[~azure.mgmt.connectedvmware.models.Operation] """ _validation = { @@ -2066,7 +2134,7 @@ class OsProfile(msrest.serialization.Model): :type admin_password: str :param os_type: Gets or sets the type of the os. Possible values include: "Windows", "Linux", "Other". - :type os_type: str or ~azure_arc_vmware_management_service_api.models.OsType + :type 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 @@ -2167,9 +2235,9 @@ class ResourcePool(msrest.serialization.Model): :param location: Required. Gets or sets the location. :type location: str :param extended_location: Gets or sets the extended location. - :type extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :type 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 :param tags: A set of tags. Gets or sets the Resource tags. :type tags: dict[str, str] :ivar name: Gets or sets the name. @@ -2219,7 +2287,7 @@ class ResourcePool(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] + :vartype statuses: list[~azure.mgmt.connectedvmware.models.ResourceStatus] :ivar provisioning_state: Gets or sets the provisioning state. :vartype provisioning_state: str """ @@ -2314,8 +2382,8 @@ class ResourcePoolInventoryItem(InventoryItemProperties): :param inventory_type: Required. They inventory type.Constant filled by server. Possible values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", - "Cluster", "Datastore". - :type inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + "Cluster", "Datastore", "Host". + :type inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType :param managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. :type managed_resource_id: str @@ -2326,7 +2394,7 @@ class ResourcePoolInventoryItem(InventoryItemProperties): :ivar provisioning_state: Gets or sets the provisioning state. :vartype provisioning_state: str :param parent: Parent resourcePool inventory resource details. - :type parent: ~azure_arc_vmware_management_service_api.models.InventoryItemDetails + :type parent: ~azure.mgmt.connectedvmware.models.InventoryItemDetails """ _validation = { @@ -2365,7 +2433,7 @@ class ResourcePoolsList(msrest.serialization.Model): :param next_link: Url to follow for getting next page of ResourcePools. :type next_link: str :param value: Required. Array of ResourcePools. - :type value: list[~azure_arc_vmware_management_service_api.models.ResourcePool] + :type value: list[~azure.mgmt.connectedvmware.models.ResourcePool] """ _validation = { @@ -2468,11 +2536,10 @@ class StorageProfile(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :param disks: Gets or sets the list of virtual disks associated with the virtual machine. - :type disks: list[~azure_arc_vmware_management_service_api.models.VirtualDisk] + :type 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 = { @@ -2499,7 +2566,7 @@ class StorageProfileUpdate(msrest.serialization.Model): """Defines the resource update properties. :param disks: Gets or sets the list of virtual disks associated with the virtual machine. - :type disks: list[~azure_arc_vmware_management_service_api.models.VirtualDiskUpdate] + :type disks: list[~azure.mgmt.connectedvmware.models.VirtualDiskUpdate] """ _attribute_map = { @@ -2523,15 +2590,14 @@ class SystemData(msrest.serialization.Model): :type created_by: str :param created_by_type: The type of identity that created the resource. Possible values include: "User", "Application", "ManagedIdentity", "Key". - :type created_by_type: str or ~azure_arc_vmware_management_service_api.models.CreatedByType + :type created_by_type: str or ~azure.mgmt.connectedvmware.models.CreatedByType :param created_at: The timestamp of resource creation (UTC). :type created_at: ~datetime.datetime :param last_modified_by: The identity that last modified the resource. :type last_modified_by: str :param last_modified_by_type: The type of identity that last modified the resource. Possible values include: "User", "Application", "ManagedIdentity", "Key". - :type last_modified_by_type: str or - ~azure_arc_vmware_management_service_api.models.CreatedByType + :type last_modified_by_type: str or ~azure.mgmt.connectedvmware.models.CreatedByType :param last_modified_at: The timestamp of resource last modification (UTC). :type last_modified_at: ~datetime.datetime """ @@ -2575,9 +2641,9 @@ class VCenter(msrest.serialization.Model): :param location: Required. Gets or sets the location. :type location: str :param extended_location: Gets or sets the extended location. - :type extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :type 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 :param tags: A set of tags. Gets or sets the Resource tags. :type tags: dict[str, str] :ivar name: Gets or sets the name. @@ -2605,9 +2671,9 @@ class VCenter(msrest.serialization.Model): :ivar custom_resource_name: Gets the name of the corresponding resource in Kubernetes. :vartype custom_resource_name: str :param credentials: Username / Password Credentials to connect to vcenter. - :type credentials: ~azure_arc_vmware_management_service_api.models.VICredential + :type credentials: ~azure.mgmt.connectedvmware.models.VICredential :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 provisioning_state: Gets or sets the provisioning state. :vartype provisioning_state: str """ @@ -2691,7 +2757,7 @@ class VCentersList(msrest.serialization.Model): :param next_link: Url to follow for getting next page of VCenters. :type next_link: str :param value: Required. Array of VCenters. - :type value: list[~azure_arc_vmware_management_service_api.models.VCenter] + :type value: list[~azure.mgmt.connectedvmware.models.VCenter] """ _validation = { @@ -2758,7 +2824,7 @@ class VirtualDisk(msrest.serialization.Model): :type device_key: int :param disk_mode: Gets or sets the disk mode. Possible values include: "persistent", "independent_persistent", "independent_nonpersistent". - :type disk_mode: str or ~azure_arc_vmware_management_service_api.models.DiskMode + :type disk_mode: str or ~azure.mgmt.connectedvmware.models.DiskMode :param controller_key: Gets or sets the controller id. :type controller_key: int :param unit_number: Gets or sets the unit number of the disk on the controller. @@ -2767,7 +2833,7 @@ class VirtualDisk(msrest.serialization.Model): :type device_name: str :param disk_type: Gets or sets the disk backing type. Possible values include: "flat", "pmem", "rawphysical", "rawvirtual", "sparse", "sesparse", "unknown". - :type disk_type: str or ~azure_arc_vmware_management_service_api.models.DiskType + :type disk_type: str or ~azure.mgmt.connectedvmware.models.DiskType """ _validation = { @@ -2825,7 +2891,7 @@ class VirtualDiskUpdate(msrest.serialization.Model): :type device_key: int :param disk_mode: Gets or sets the disk mode. Possible values include: "persistent", "independent_persistent", "independent_nonpersistent". - :type disk_mode: str or ~azure_arc_vmware_management_service_api.models.DiskMode + :type disk_mode: str or ~azure.mgmt.connectedvmware.models.DiskMode :param controller_key: Gets or sets the controller id. :type controller_key: int :param unit_number: Gets or sets the unit number of the disk on the controller. @@ -2834,7 +2900,7 @@ class VirtualDiskUpdate(msrest.serialization.Model): :type device_name: str :param disk_type: Gets or sets the disk backing type. Possible values include: "flat", "pmem", "rawphysical", "rawvirtual", "sparse", "sesparse", "unknown". - :type disk_type: str or ~azure_arc_vmware_management_service_api.models.DiskType + :type disk_type: str or ~azure.mgmt.connectedvmware.models.DiskType """ _attribute_map = { @@ -2882,9 +2948,9 @@ class VirtualMachine(msrest.serialization.Model): :param location: Required. Gets or sets the location. :type location: str :param extended_location: Gets or sets the extended location. - :type extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :type 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 :param tags: A set of tags. Gets or sets the Resource tags. :type tags: dict[str, str] :ivar name: Gets or sets the name. @@ -2898,7 +2964,7 @@ class VirtualMachine(msrest.serialization.Model): the resource provider must validate and persist this value. :type kind: str :param identity: The identity of the resource. - :type identity: ~azure_arc_vmware_management_service_api.models.Identity + :type identity: ~azure.mgmt.connectedvmware.models.Identity :param resource_pool_id: Gets or sets the ARM Id of the resourcePool resource on which this virtual machine will deploy. @@ -2910,17 +2976,17 @@ class VirtualMachine(msrest.serialization.Model): resides. :type v_center_id: str :param placement_profile: Placement properties. - :type placement_profile: ~azure_arc_vmware_management_service_api.models.PlacementProfile + :type placement_profile: ~azure.mgmt.connectedvmware.models.PlacementProfile :param os_profile: OS properties. - :type os_profile: ~azure_arc_vmware_management_service_api.models.OsProfile + :type os_profile: ~azure.mgmt.connectedvmware.models.OsProfile :param hardware_profile: Hardware properties. - :type hardware_profile: ~azure_arc_vmware_management_service_api.models.HardwareProfile + :type hardware_profile: ~azure.mgmt.connectedvmware.models.HardwareProfile :param network_profile: Network properties. - :type network_profile: ~azure_arc_vmware_management_service_api.models.NetworkProfile + :type network_profile: ~azure.mgmt.connectedvmware.models.NetworkProfile :param storage_profile: Storage properties. - :type storage_profile: ~azure_arc_vmware_management_service_api.models.StorageProfile + :type storage_profile: ~azure.mgmt.connectedvmware.models.StorageProfile :param guest_agent_profile: Guest agent status properties. - :type guest_agent_profile: ~azure_arc_vmware_management_service_api.models.GuestAgentProfile + :type guest_agent_profile: ~azure.mgmt.connectedvmware.models.GuestAgentProfile :param mo_ref_id: Gets or sets the vCenter MoRef (Managed Object Reference) ID for the virtual machine. :type mo_ref_id: str @@ -2934,6 +3000,8 @@ class VirtualMachine(msrest.serialization.Model): :vartype instance_uuid: str :param smbios_uuid: Gets or sets the SMBIOS UUID of the vm. :type smbios_uuid: str + :param firmware_type: Firmware type. Possible values include: "bios", "efi". + :type 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. @@ -2941,7 +3009,7 @@ 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] + :vartype statuses: list[~azure.mgmt.connectedvmware.models.ResourceStatus] :ivar provisioning_state: Gets or sets the provisioning state. :vartype provisioning_state: str :ivar vm_id: Gets or sets a unique identifier for the vm resource. @@ -2990,6 +3058,7 @@ class VirtualMachine(msrest.serialization.Model): 'folder_path': {'key': 'properties.folderPath', 'type': 'str'}, 'instance_uuid': {'key': 'properties.instanceUuid', 'type': 'str'}, 'smbios_uuid': {'key': 'properties.smbiosUuid', 'type': 'str'}, + 'firmware_type': {'key': 'properties.firmwareType', 'type': 'str'}, 'power_state': {'key': 'properties.powerState', 'type': 'str'}, 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, 'uuid': {'key': 'properties.uuid', 'type': 'str'}, @@ -3018,6 +3087,7 @@ def __init__( mo_ref_id: Optional[str] = None, inventory_item_id: Optional[str] = None, smbios_uuid: Optional[str] = None, + firmware_type: Optional[Union[str, "FirmwareType"]] = None, **kwargs ): super(VirtualMachine, self).__init__(**kwargs) @@ -3045,6 +3115,7 @@ def __init__( self.folder_path = None self.instance_uuid = None self.smbios_uuid = smbios_uuid + self.firmware_type = firmware_type self.power_state = None self.custom_resource_name = None self.uuid = None @@ -3062,8 +3133,8 @@ class VirtualMachineInventoryItem(InventoryItemProperties): :param inventory_type: Required. They inventory type.Constant filled by server. Possible values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", - "Cluster", "Datastore". - :type inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + "Cluster", "Datastore", "Host". + :type inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType :param managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. :type managed_resource_id: str @@ -3075,7 +3146,7 @@ class VirtualMachineInventoryItem(InventoryItemProperties): :vartype provisioning_state: str :param os_type: Gets or sets the type of the os. Possible values include: "Windows", "Linux", "Other". - :type os_type: str or ~azure_arc_vmware_management_service_api.models.OsType + :type os_type: str or ~azure.mgmt.connectedvmware.models.OsType :param os_name: Gets or sets os name. :type os_name: str :param ip_addresses: Gets or sets the nic ip addresses. @@ -3083,9 +3154,9 @@ class VirtualMachineInventoryItem(InventoryItemProperties): :param folder_path: Gets or sets the folder path of the vm. :type folder_path: str :param host: Host inventory resource details. - :type host: ~azure_arc_vmware_management_service_api.models.InventoryItemDetails + :type host: ~azure.mgmt.connectedvmware.models.InventoryItemDetails :param resource_pool: ResourcePool inventory resource details. - :type resource_pool: ~azure_arc_vmware_management_service_api.models.InventoryItemDetails + :type resource_pool: ~azure.mgmt.connectedvmware.models.InventoryItemDetails :param instance_uuid: Gets or sets the instance uuid of the vm. :type instance_uuid: str :param smbios_uuid: Gets or sets the SMBIOS UUID of the vm. @@ -3171,7 +3242,7 @@ class VirtualMachinesList(msrest.serialization.Model): :param next_link: Url to follow for getting next page of VirtualMachines. :type next_link: str :param value: Required. Array of VirtualMachines. - :type value: list[~azure_arc_vmware_management_service_api.models.VirtualMachine] + :type value: list[~azure.mgmt.connectedvmware.models.VirtualMachine] """ _validation = { @@ -3205,9 +3276,9 @@ class VirtualMachineTemplate(msrest.serialization.Model): :param location: Required. Gets or sets the location. :type location: str :param extended_location: Gets or sets the extended location. - :type extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :type 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 :param tags: A set of tags. Gets or sets the Resource tags. :type tags: dict[str, str] :ivar name: Gets or sets the name. @@ -3242,16 +3313,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 @@ -3259,8 +3329,10 @@ class VirtualMachineTemplate(msrest.serialization.Model): :vartype tools_version_status: str :ivar tools_version: Gets or sets the current version of VMware Tools. :vartype tools_version: str + :ivar firmware_type: Firmware type. Possible values include: "bios", "efi". + :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] + :vartype statuses: list[~azure.mgmt.connectedvmware.models.ResourceStatus] :ivar provisioning_state: Gets or sets the provisioning state. :vartype provisioning_state: str """ @@ -3284,6 +3356,7 @@ class VirtualMachineTemplate(msrest.serialization.Model): 'custom_resource_name': {'readonly': True}, 'tools_version_status': {'readonly': True}, 'tools_version': {'readonly': True}, + 'firmware_type': {'readonly': True}, 'statuses': {'readonly': True}, 'provisioning_state': {'readonly': True}, } @@ -3313,6 +3386,7 @@ class VirtualMachineTemplate(msrest.serialization.Model): 'custom_resource_name': {'key': 'properties.customResourceName', 'type': 'str'}, 'tools_version_status': {'key': 'properties.toolsVersionStatus', 'type': 'str'}, 'tools_version': {'key': 'properties.toolsVersion', 'type': 'str'}, + 'firmware_type': {'key': 'properties.firmwareType', 'type': 'str'}, 'statuses': {'key': 'properties.statuses', 'type': '[ResourceStatus]'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, } @@ -3354,6 +3428,7 @@ def __init__( self.custom_resource_name = None self.tools_version_status = None self.tools_version = None + self.firmware_type = None self.statuses = None self.provisioning_state = None @@ -3367,8 +3442,8 @@ class VirtualMachineTemplateInventoryItem(InventoryItemProperties): :param inventory_type: Required. They inventory type.Constant filled by server. Possible values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", - "Cluster", "Datastore". - :type inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + "Cluster", "Datastore", "Host". + :type inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType :param managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. :type managed_resource_id: str @@ -3387,7 +3462,7 @@ class VirtualMachineTemplateInventoryItem(InventoryItemProperties): :type num_cores_per_socket: int :param os_type: Gets or sets the type of the os. Possible values include: "Windows", "Linux", "Other". - :type os_type: str or ~azure_arc_vmware_management_service_api.models.OsType + :type os_type: str or ~azure.mgmt.connectedvmware.models.OsType :param os_name: Gets or sets os name. :type os_name: str :param folder_path: Gets or sets the folder path of the template. @@ -3445,7 +3520,7 @@ class VirtualMachineTemplatesList(msrest.serialization.Model): :param next_link: Url to follow for getting next page of VirtualMachineTemplates. :type next_link: str :param value: Required. Array of VirtualMachineTemplates. - :type value: list[~azure_arc_vmware_management_service_api.models.VirtualMachineTemplate] + :type value: list[~azure.mgmt.connectedvmware.models.VirtualMachineTemplate] """ _validation = { @@ -3475,13 +3550,13 @@ class VirtualMachineUpdate(msrest.serialization.Model): :param tags: A set of tags. Gets or sets the Resource tags. :type tags: dict[str, str] :param identity: The identity of the resource. - :type identity: ~azure_arc_vmware_management_service_api.models.Identity + :type identity: ~azure.mgmt.connectedvmware.models.Identity :param hardware_profile: Defines the resource properties. - :type hardware_profile: ~azure_arc_vmware_management_service_api.models.HardwareProfile + :type hardware_profile: ~azure.mgmt.connectedvmware.models.HardwareProfile :param storage_profile: Defines the resource update properties. - :type storage_profile: ~azure_arc_vmware_management_service_api.models.StorageProfileUpdate + :type storage_profile: ~azure.mgmt.connectedvmware.models.StorageProfileUpdate :param network_profile: Defines the update resource properties. - :type network_profile: ~azure_arc_vmware_management_service_api.models.NetworkProfileUpdate + :type network_profile: ~azure.mgmt.connectedvmware.models.NetworkProfileUpdate """ _attribute_map = { @@ -3520,9 +3595,9 @@ class VirtualNetwork(msrest.serialization.Model): :param location: Required. Gets or sets the location. :type location: str :param extended_location: Gets or sets the extended location. - :type extended_location: ~azure_arc_vmware_management_service_api.models.ExtendedLocation + :type 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 :param tags: A set of tags. Gets or sets the Resource tags. :type tags: dict[str, str] :ivar name: Gets or sets the name. @@ -3550,7 +3625,7 @@ 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] + :vartype statuses: list[~azure.mgmt.connectedvmware.models.ResourceStatus] :ivar provisioning_state: Gets or sets the provisioning state. :vartype provisioning_state: str """ @@ -3627,8 +3702,8 @@ class VirtualNetworkInventoryItem(InventoryItemProperties): :param inventory_type: Required. They inventory type.Constant filled by server. Possible values include: "ResourcePool", "VirtualMachine", "VirtualMachineTemplate", "VirtualNetwork", - "Cluster", "Datastore". - :type inventory_type: str or ~azure_arc_vmware_management_service_api.models.InventoryType + "Cluster", "Datastore", "Host". + :type inventory_type: str or ~azure.mgmt.connectedvmware.models.InventoryType :param managed_resource_id: Gets or sets the tracked resource id corresponding to the inventory resource. :type managed_resource_id: str @@ -3673,7 +3748,7 @@ class VirtualNetworksList(msrest.serialization.Model): :param next_link: Url to follow for getting next page of VirtualNetworks. :type next_link: str :param value: Required. Array of VirtualNetworks. - :type value: list[~azure_arc_vmware_management_service_api.models.VirtualNetwork] + :type value: list[~azure.mgmt.connectedvmware.models.VirtualNetwork] """ _validation = { @@ -3702,7 +3777,7 @@ class VirtualSCSIController(msrest.serialization.Model): :param type: Gets or sets the controller type. Possible values include: "lsilogic", "buslogic", "pvscsi", "lsilogicsas". - :type type: str or ~azure_arc_vmware_management_service_api.models.SCSIControllerType + :type type: str or ~azure.mgmt.connectedvmware.models.SCSIControllerType :param controller_key: Gets or sets the key of the controller. :type controller_key: int :param bus_number: Gets or sets the bus number of the controller. @@ -3711,7 +3786,7 @@ class VirtualSCSIController(msrest.serialization.Model): :type scsi_ctlr_unit_number: int :param sharing: Gets or sets the sharing mode. Possible values include: "noSharing", "physicalSharing", "virtualSharing". - :type sharing: str or ~azure_arc_vmware_management_service_api.models.VirtualSCSISharing + :type sharing: str or ~azure.mgmt.connectedvmware.models.VirtualSCSISharing """ _attribute_map = { diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/__init__.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/__init__.py index b41a867163f..de63ef86d5d 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/__init__.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/__init__.py @@ -18,7 +18,7 @@ from ._inventory_items_operations import InventoryItemsOperations from ._hybrid_identity_metadata_operations import HybridIdentityMetadataOperations from ._machine_extensions_operations import MachineExtensionsOperations -from ._guest_agent_operations import GuestAgentOperations +from ._guest_agents_operations import GuestAgentsOperations __all__ = [ 'Operations', @@ -33,5 +33,5 @@ 'InventoryItemsOperations', 'HybridIdentityMetadataOperations', 'MachineExtensionsOperations', - 'GuestAgentOperations', + 'GuestAgentsOperations', ] diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_clusters_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_clusters_operations.py index 37b2d6ea3a4..5fa8af04a2c 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_clusters_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_clusters_operations.py @@ -32,7 +32,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. @@ -126,7 +126,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. @@ -134,7 +134,7 @@ def begin_create( :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Cluster or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure_arc_vmware_management_service_api.models.Cluster] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.connectedvmware.models.Cluster] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] @@ -200,7 +200,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"] @@ -262,10 +262,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"] @@ -449,7 +449,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 """ cls = kwargs.pop('cls', None) # type: ClsType["_models.ClustersList"] @@ -522,7 +522,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 """ cls = kwargs.pop('cls', None) # type: ClsType["_models.ClustersList"] diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_datastores_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_datastores_operations.py index f2c6a7e61bb..d5f88939bed 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_datastores_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_datastores_operations.py @@ -32,7 +32,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. @@ -126,7 +126,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. @@ -134,7 +134,7 @@ def begin_create( :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Datastore or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure_arc_vmware_management_service_api.models.Datastore] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.connectedvmware.models.Datastore] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] @@ -200,7 +200,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"] @@ -262,10 +262,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"] @@ -449,7 +449,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 """ cls = kwargs.pop('cls', None) # type: ClsType["_models.DatastoresList"] @@ -522,7 +522,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 """ cls = kwargs.pop('cls', None) # type: ClsType["_models.DatastoresList"] diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_guest_agents_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_guest_agents_operations.py new file mode 100644 index 00000000000..07d175b6d9c --- /dev/null +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_guest_agents_operations.py @@ -0,0 +1,455 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class GuestAgentsOperations(object): + """GuestAgentsOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.connectedvmware.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def _create_initial( + self, + resource_group_name, # type: str + virtual_machine_name, # type: str + name, # type: str + body=None, # type: Optional["_models.GuestAgent"] + **kwargs # type: Any + ): + # type: (...) -> "_models.GuestAgent" + cls = kwargs.pop('cls', None) # type: ClsType["_models.GuestAgent"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualMachineName': self._serialize.url("virtual_machine_name", virtual_machine_name, 'str'), + 'name': self._serialize.url("name", name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + if body is not None: + body_content = self._serialize.body(body, 'GuestAgent') + else: + body_content = None + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('GuestAgent', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('GuestAgent', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/guestAgents/{name}'} # type: ignore + + def begin_create( + self, + resource_group_name, # type: str + virtual_machine_name, # type: str + name, # type: str + body=None, # type: Optional["_models.GuestAgent"] + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.GuestAgent"] + """Implements GuestAgent PUT method. + + Create Or Update GuestAgent. + + :param resource_group_name: The Resource Group Name. + :type resource_group_name: str + :param virtual_machine_name: Name of the vm. + :type virtual_machine_name: str + :param name: Name of the guestAgents. + :type name: str + :param body: Request payload. + :type body: ~azure.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 operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either GuestAgent or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.connectedvmware.models.GuestAgent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.GuestAgent"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._create_initial( + resource_group_name=resource_group_name, + virtual_machine_name=virtual_machine_name, + name=name, + body=body, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('GuestAgent', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualMachineName': self._serialize.url("virtual_machine_name", virtual_machine_name, 'str'), + 'name': self._serialize.url("name", name, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/guestAgents/{name}'} # type: ignore + + def get( + self, + resource_group_name, # type: str + virtual_machine_name, # type: str + name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.GuestAgent" + """Gets GuestAgent. + + Implements GuestAgent GET method. + + :param resource_group_name: The Resource Group Name. + :type resource_group_name: str + :param virtual_machine_name: Name of the vm. + :type virtual_machine_name: str + :param name: Name of the GuestAgent. + :type name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: GuestAgent, or the result of cls(response) + :rtype: ~azure.mgmt.connectedvmware.models.GuestAgent + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.GuestAgent"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualMachineName': self._serialize.url("virtual_machine_name", virtual_machine_name, 'str'), + 'name': self._serialize.url("name", name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('GuestAgent', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/guestAgents/{name}'} # type: ignore + + def _delete_initial( + self, + resource_group_name, # type: str + virtual_machine_name, # type: str + name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + accept = "application/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualMachineName': self._serialize.url("virtual_machine_name", virtual_machine_name, 'str'), + 'name': self._serialize.url("name", name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/guestAgents/{name}'} # type: ignore + + def begin_delete( + self, + resource_group_name, # type: str + virtual_machine_name, # type: str + name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Deletes an GuestAgent. + + Implements GuestAgent DELETE method. + + :param resource_group_name: The Resource Group Name. + :type resource_group_name: str + :param virtual_machine_name: Name of the vm. + :type virtual_machine_name: str + :param name: Name of the GuestAgent. + :type name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + virtual_machine_name=virtual_machine_name, + name=name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualMachineName': self._serialize.url("virtual_machine_name", virtual_machine_name, 'str'), + 'name': self._serialize.url("name", name, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/guestAgents/{name}'} # type: ignore + + def list_by_vm( + self, + resource_group_name, # type: str + virtual_machine_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.GuestAgentList"] + """Implements GET GuestAgent in a vm. + + Returns the list of GuestAgent of the given vm. + + :param resource_group_name: The Resource Group Name. + :type resource_group_name: str + :param virtual_machine_name: Name of the vm. + :type virtual_machine_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either GuestAgentList or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.GuestAgentList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.GuestAgentList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-10-01-preview" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_vm.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualMachineName': self._serialize.url("virtual_machine_name", virtual_machine_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('GuestAgentList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_vm.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/guestAgents'} # type: ignore diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_hosts_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_hosts_operations.py index 5478f162d7f..94d7caa8278 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_hosts_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_hosts_operations.py @@ -32,7 +32,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. @@ -126,7 +126,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. @@ -134,7 +134,7 @@ def begin_create( :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Host or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure_arc_vmware_management_service_api.models.Host] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.connectedvmware.models.Host] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] @@ -200,7 +200,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"] @@ -262,10 +262,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"] @@ -449,7 +449,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 """ cls = kwargs.pop('cls', None) # type: ClsType["_models.HostsList"] @@ -522,7 +522,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 """ cls = kwargs.pop('cls', None) # type: ClsType["_models.HostsList"] diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_hybrid_identity_metadata_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_hybrid_identity_metadata_operations.py index 11f23b92088..3c9de2f0868 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_hybrid_identity_metadata_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_hybrid_identity_metadata_operations.py @@ -30,7 +30,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. @@ -65,10 +65,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"] @@ -142,7 +142,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"] @@ -268,7 +268,7 @@ def list_by_vm( :type virtual_machine_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either HybridIdentityMetadataList or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure_arc_vmware_management_service_api.models.HybridIdentityMetadataList] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.HybridIdentityMetadataList] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.HybridIdentityMetadataList"] diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_inventory_items_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_inventory_items_operations.py index 47a559503ba..1cdcbb485fc 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_inventory_items_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_inventory_items_operations.py @@ -30,7 +30,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. @@ -65,10 +65,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"] @@ -142,7 +142,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"] @@ -268,7 +268,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 """ cls = kwargs.pop('cls', None) # type: ClsType["_models.InventoryItemsList"] diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_machine_extensions_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_machine_extensions_operations.py index bb735351323..cb85d62c88c 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_machine_extensions_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_machine_extensions_operations.py @@ -32,7 +32,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. @@ -126,7 +126,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. @@ -134,7 +134,7 @@ def begin_create_or_update( :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either MachineExtension or the result of cls(response) - :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: """ polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] @@ -264,7 +264,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. @@ -272,7 +272,7 @@ def begin_update( :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either MachineExtension or the result of cls(response) - :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: """ polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] @@ -459,7 +459,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"] @@ -523,7 +523,7 @@ def list( :type expand: str :keyword callable cls: A custom type or function that will be passed the direct response :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] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.MachineExtensionsListResult] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.MachineExtensionsListResult"] diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_operations.py index 05c41412ca7..d9ee0445a02 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_operations.py @@ -30,7 +30,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. @@ -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.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 """ cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationsList"] diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_resource_pools_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_resource_pools_operations.py index 0578f17286d..5a7f67c6035 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_resource_pools_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_resource_pools_operations.py @@ -32,7 +32,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. @@ -126,7 +126,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. @@ -134,7 +134,7 @@ def begin_create( :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either ResourcePool or the result of cls(response) - :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: """ polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] @@ -200,7 +200,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"] @@ -262,10 +262,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"] @@ -449,7 +449,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 """ cls = kwargs.pop('cls', None) # type: ClsType["_models.ResourcePoolsList"] @@ -522,7 +522,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 """ cls = kwargs.pop('cls', None) # type: ClsType["_models.ResourcePoolsList"] diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_vcenters_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_vcenters_operations.py index 33b7db50a91..d959200f8ae 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_vcenters_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_vcenters_operations.py @@ -32,7 +32,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. @@ -126,7 +126,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. @@ -134,7 +134,7 @@ def begin_create( :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VCenter or the result of cls(response) - :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: """ polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] @@ -200,7 +200,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"] @@ -262,10 +262,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"] @@ -449,7 +449,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 """ cls = kwargs.pop('cls', None) # type: ClsType["_models.VCentersList"] @@ -522,7 +522,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 """ cls = kwargs.pop('cls', None) # type: ClsType["_models.VCentersList"] diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_virtual_machine_templates_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_virtual_machine_templates_operations.py index e5ba84d0fe7..27f8bdcf311 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_virtual_machine_templates_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_virtual_machine_templates_operations.py @@ -32,7 +32,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. @@ -126,7 +126,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. @@ -134,7 +134,7 @@ def begin_create( :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineTemplate or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure_arc_vmware_management_service_api.models.VirtualMachineTemplate] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.connectedvmware.models.VirtualMachineTemplate] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] @@ -200,7 +200,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"] @@ -262,10 +262,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"] @@ -449,7 +449,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 VirtualMachineTemplatesList or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure_arc_vmware_management_service_api.models.VirtualMachineTemplatesList] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.VirtualMachineTemplatesList] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineTemplatesList"] @@ -522,7 +522,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 VirtualMachineTemplatesList or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure_arc_vmware_management_service_api.models.VirtualMachineTemplatesList] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.connectedvmware.models.VirtualMachineTemplatesList] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineTemplatesList"] diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_virtual_machines_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_virtual_machines_operations.py index e55ae66f644..15163c2eac4 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_virtual_machines_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_virtual_machines_operations.py @@ -32,7 +32,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. @@ -126,7 +126,7 @@ def begin_create( :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. @@ -134,7 +134,7 @@ def begin_create( :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachine or the result of cls(response) - :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: """ polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] @@ -200,7 +200,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"] @@ -324,7 +324,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. @@ -332,7 +332,7 @@ def begin_update( :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachine or the result of cls(response) - :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: """ polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] @@ -573,7 +573,7 @@ def begin_stop( :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. @@ -864,7 +864,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.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 """ cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachinesList"] @@ -937,7 +937,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 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 """ cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachinesList"] diff --git a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_virtual_networks_operations.py b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_virtual_networks_operations.py index cfff5dc5169..c0d69a60878 100644 --- a/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_virtual_networks_operations.py +++ b/src/connectedvmware/azext_connectedvmware/vendored_sdks/operations/_virtual_networks_operations.py @@ -32,7 +32,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. @@ -126,7 +126,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. @@ -134,7 +134,7 @@ def begin_create( :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualNetwork or the result of cls(response) - :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: """ polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] @@ -200,7 +200,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"] @@ -262,10 +262,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"] @@ -449,7 +449,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 """ cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualNetworksList"] @@ -522,7 +522,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 """ cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualNetworksList"] diff --git a/src/connectedvmware/setup.py b/src/connectedvmware/setup.py index 7c3743c4af0..167b2e2d18d 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.3' +VERSION = '0.1.4' # The full list of classifiers is available at # https://pypi.python.org/pypi?%3Aaction=list_classifiers