Skip to content

Commit a4e9999

Browse files
authored
[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.
1 parent 9b0c5d1 commit a4e9999

File tree

4 files changed

+21
-1
lines changed

4 files changed

+21
-1
lines changed

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@
362362
ProtocolTypes,
363363
ResourceIdentityType,
364364
MaintenanceOperationResultCodeTypes,
365+
HyperVGenerationType,
365366
UpgradeMode,
366367
OperatingSystemStateTypes,
367368
IPVersion,
@@ -573,6 +574,7 @@
573574
'ProtocolTypes',
574575
'ResourceIdentityType',
575576
'MaintenanceOperationResultCodeTypes',
577+
'HyperVGenerationType',
576578
'UpgradeMode',
577579
'OperatingSystemStateTypes',
578580
'IPVersion',

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/_compute_management_client_enums.py

+6
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,12 @@ class MaintenanceOperationResultCodeTypes(str, Enum):
278278
maintenance_completed = "MaintenanceCompleted"
279279

280280

281+
class HyperVGenerationType(str, Enum):
282+
283+
v1 = "V1"
284+
v2 = "V2"
285+
286+
281287
class UpgradeMode(str, Enum):
282288

283289
automatic = "Automatic"

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/_models.py

+6
Original file line numberDiff line numberDiff line change
@@ -4291,6 +4291,10 @@ class VirtualMachineInstanceView(Model):
42914291
:param os_version: The version of Operating System running on the virtual
42924292
machine.
42934293
:type os_version: str
4294+
:param hyper_vgeneration: Specifies the HyperVGeneration Type associated
4295+
with a resource. Possible values include: 'V1', 'V2'
4296+
:type hyper_vgeneration: str or
4297+
~azure.mgmt.compute.v2019_03_01.models.HyperVGenerationType
42944298
:param rdp_thumb_print: The Remote desktop certificate thumbprint.
42954299
:type rdp_thumb_print: str
42964300
:param vm_agent: The VM Agent running on the virtual machine.
@@ -4322,6 +4326,7 @@ class VirtualMachineInstanceView(Model):
43224326
'computer_name': {'key': 'computerName', 'type': 'str'},
43234327
'os_name': {'key': 'osName', 'type': 'str'},
43244328
'os_version': {'key': 'osVersion', 'type': 'str'},
4329+
'hyper_vgeneration': {'key': 'hyperVGeneration', 'type': 'str'},
43254330
'rdp_thumb_print': {'key': 'rdpThumbPrint', 'type': 'str'},
43264331
'vm_agent': {'key': 'vmAgent', 'type': 'VirtualMachineAgentInstanceView'},
43274332
'maintenance_redeploy_status': {'key': 'maintenanceRedeployStatus', 'type': 'MaintenanceRedeployStatus'},
@@ -4338,6 +4343,7 @@ def __init__(self, **kwargs):
43384343
self.computer_name = kwargs.get('computer_name', None)
43394344
self.os_name = kwargs.get('os_name', None)
43404345
self.os_version = kwargs.get('os_version', None)
4346+
self.hyper_vgeneration = kwargs.get('hyper_vgeneration', None)
43414347
self.rdp_thumb_print = kwargs.get('rdp_thumb_print', None)
43424348
self.vm_agent = kwargs.get('vm_agent', None)
43434349
self.maintenance_redeploy_status = kwargs.get('maintenance_redeploy_status', None)

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/_models_py3.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -4291,6 +4291,10 @@ class VirtualMachineInstanceView(Model):
42914291
:param os_version: The version of Operating System running on the virtual
42924292
machine.
42934293
:type os_version: str
4294+
:param hyper_vgeneration: Specifies the HyperVGeneration Type associated
4295+
with a resource. Possible values include: 'V1', 'V2'
4296+
:type hyper_vgeneration: str or
4297+
~azure.mgmt.compute.v2019_03_01.models.HyperVGenerationType
42944298
:param rdp_thumb_print: The Remote desktop certificate thumbprint.
42954299
:type rdp_thumb_print: str
42964300
:param vm_agent: The VM Agent running on the virtual machine.
@@ -4322,6 +4326,7 @@ class VirtualMachineInstanceView(Model):
43224326
'computer_name': {'key': 'computerName', 'type': 'str'},
43234327
'os_name': {'key': 'osName', 'type': 'str'},
43244328
'os_version': {'key': 'osVersion', 'type': 'str'},
4329+
'hyper_vgeneration': {'key': 'hyperVGeneration', 'type': 'str'},
43254330
'rdp_thumb_print': {'key': 'rdpThumbPrint', 'type': 'str'},
43264331
'vm_agent': {'key': 'vmAgent', 'type': 'VirtualMachineAgentInstanceView'},
43274332
'maintenance_redeploy_status': {'key': 'maintenanceRedeployStatus', 'type': 'MaintenanceRedeployStatus'},
@@ -4331,13 +4336,14 @@ class VirtualMachineInstanceView(Model):
43314336
'statuses': {'key': 'statuses', 'type': '[InstanceViewStatus]'},
43324337
}
43334338

4334-
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:
4339+
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:
43354340
super(VirtualMachineInstanceView, self).__init__(**kwargs)
43364341
self.platform_update_domain = platform_update_domain
43374342
self.platform_fault_domain = platform_fault_domain
43384343
self.computer_name = computer_name
43394344
self.os_name = os_name
43404345
self.os_version = os_version
4346+
self.hyper_vgeneration = hyper_vgeneration
43414347
self.rdp_thumb_print = rdp_thumb_print
43424348
self.vm_agent = vm_agent
43434349
self.maintenance_redeploy_status = maintenance_redeploy_status

0 commit comments

Comments
 (0)