Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[AutoPR compute/resource-manager] [Do Not Merge] Update compute.json …
…to include hyperVGeneration property for Virtua… (#5901)

* Generated from 5e589ea1eac49504c9d6f856b22a3d799c85a6d6

Update compute.json to include hyperVGeneration property  for  VirtualMachineInstanceView

Adds hyperVGeneration  which displays what HyperVisor Generation the VM Boots in, via the VirtualMachineInstanceView.

* Generated from 5e589ea1eac49504c9d6f856b22a3d799c85a6d6

Update compute.json to include hyperVGeneration property  for  VirtualMachineInstanceView

Adds hyperVGeneration  which displays what HyperVisor Generation the VM Boots in, via the VirtualMachineInstanceView.
  • Loading branch information
AutorestCI authored and Zim Kalinowski committed Jul 20, 2019
commit f8eb1da149251f1b1c4c1173ad0ef95cf1f4d23a
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@
ProtocolTypes,
ResourceIdentityType,
MaintenanceOperationResultCodeTypes,
HyperVGenerationType,
UpgradeMode,
OperatingSystemStateTypes,
IPVersion,
Expand Down Expand Up @@ -573,6 +574,7 @@
'ProtocolTypes',
'ResourceIdentityType',
'MaintenanceOperationResultCodeTypes',
'HyperVGenerationType',
'UpgradeMode',
'OperatingSystemStateTypes',
'IPVersion',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,12 @@ class MaintenanceOperationResultCodeTypes(str, Enum):
maintenance_completed = "MaintenanceCompleted"


class HyperVGenerationType(str, Enum):

v1 = "V1"
v2 = "V2"


class UpgradeMode(str, Enum):

automatic = "Automatic"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4291,6 +4291,10 @@ class VirtualMachineInstanceView(Model):
:param os_version: The version of Operating System running on the virtual
machine.
:type os_version: str
:param hyper_vgeneration: Specifies the HyperVGeneration Type associated
with a resource. Possible values include: 'V1', 'V2'
:type hyper_vgeneration: str or
~azure.mgmt.compute.v2019_03_01.models.HyperVGenerationType
:param rdp_thumb_print: The Remote desktop certificate thumbprint.
:type rdp_thumb_print: str
:param vm_agent: The VM Agent running on the virtual machine.
Expand Down Expand Up @@ -4322,6 +4326,7 @@ class VirtualMachineInstanceView(Model):
'computer_name': {'key': 'computerName', 'type': 'str'},
'os_name': {'key': 'osName', 'type': 'str'},
'os_version': {'key': 'osVersion', 'type': 'str'},
'hyper_vgeneration': {'key': 'hyperVGeneration', 'type': 'str'},
'rdp_thumb_print': {'key': 'rdpThumbPrint', 'type': 'str'},
'vm_agent': {'key': 'vmAgent', 'type': 'VirtualMachineAgentInstanceView'},
'maintenance_redeploy_status': {'key': 'maintenanceRedeployStatus', 'type': 'MaintenanceRedeployStatus'},
Expand All @@ -4338,6 +4343,7 @@ def __init__(self, **kwargs):
self.computer_name = kwargs.get('computer_name', None)
self.os_name = kwargs.get('os_name', None)
self.os_version = kwargs.get('os_version', None)
self.hyper_vgeneration = kwargs.get('hyper_vgeneration', None)
self.rdp_thumb_print = kwargs.get('rdp_thumb_print', None)
self.vm_agent = kwargs.get('vm_agent', None)
self.maintenance_redeploy_status = kwargs.get('maintenance_redeploy_status', None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4291,6 +4291,10 @@ class VirtualMachineInstanceView(Model):
:param os_version: The version of Operating System running on the virtual
machine.
:type os_version: str
:param hyper_vgeneration: Specifies the HyperVGeneration Type associated
with a resource. Possible values include: 'V1', 'V2'
:type hyper_vgeneration: str or
~azure.mgmt.compute.v2019_03_01.models.HyperVGenerationType
:param rdp_thumb_print: The Remote desktop certificate thumbprint.
:type rdp_thumb_print: str
:param vm_agent: The VM Agent running on the virtual machine.
Expand Down Expand Up @@ -4322,6 +4326,7 @@ class VirtualMachineInstanceView(Model):
'computer_name': {'key': 'computerName', 'type': 'str'},
'os_name': {'key': 'osName', 'type': 'str'},
'os_version': {'key': 'osVersion', 'type': 'str'},
'hyper_vgeneration': {'key': 'hyperVGeneration', 'type': 'str'},
'rdp_thumb_print': {'key': 'rdpThumbPrint', 'type': 'str'},
'vm_agent': {'key': 'vmAgent', 'type': 'VirtualMachineAgentInstanceView'},
'maintenance_redeploy_status': {'key': 'maintenanceRedeployStatus', 'type': 'MaintenanceRedeployStatus'},
Expand All @@ -4331,13 +4336,14 @@ class VirtualMachineInstanceView(Model):
'statuses': {'key': 'statuses', 'type': '[InstanceViewStatus]'},
}

def __init__(self, *, platform_update_domain: int=None, platform_fault_domain: int=None, computer_name: str=None, os_name: str=None, os_version: str=None, rdp_thumb_print: str=None, vm_agent=None, maintenance_redeploy_status=None, disks=None, extensions=None, boot_diagnostics=None, statuses=None, **kwargs) -> None:
def __init__(self, *, platform_update_domain: int=None, platform_fault_domain: int=None, computer_name: str=None, os_name: str=None, os_version: str=None, hyper_vgeneration=None, rdp_thumb_print: str=None, vm_agent=None, maintenance_redeploy_status=None, disks=None, extensions=None, boot_diagnostics=None, statuses=None, **kwargs) -> None:
super(VirtualMachineInstanceView, self).__init__(**kwargs)
self.platform_update_domain = platform_update_domain
self.platform_fault_domain = platform_fault_domain
self.computer_name = computer_name
self.os_name = os_name
self.os_version = os_version
self.hyper_vgeneration = hyper_vgeneration
self.rdp_thumb_print = rdp_thumb_print
self.vm_agent = vm_agent
self.maintenance_redeploy_status = maintenance_redeploy_status
Expand Down