diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/__init__.py b/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/__init__.py index ee1c01893eb7..40ff2aa1da50 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/__init__.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/__init__.py @@ -346,6 +346,7 @@ from .gallery_image_paged import GalleryImagePaged from .gallery_image_version_paged import GalleryImageVersionPaged from .compute_management_client_enums import ( + HyperVGenerationTypes, StatusLevelTypes, AvailabilitySetSkuTypes, ProximityPlacementGroupType, @@ -556,6 +557,7 @@ 'GalleryPaged', 'GalleryImagePaged', 'GalleryImageVersionPaged', + 'HyperVGenerationTypes', 'StatusLevelTypes', 'AvailabilitySetSkuTypes', 'ProximityPlacementGroupType', diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/compute_management_client_enums.py b/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/compute_management_client_enums.py index a7b1cae77648..af2f9041fbbd 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/compute_management_client_enums.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/compute_management_client_enums.py @@ -12,6 +12,12 @@ from enum import Enum +class HyperVGenerationTypes(str, Enum): + + v1 = "V1" + v2 = "V2" + + class StatusLevelTypes(str, Enum): info = "Info" diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/image.py b/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/image.py index 989f66c3b5d3..e1caa1be07f3 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/image.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/image.py @@ -42,6 +42,10 @@ class Image(Resource): ~azure.mgmt.compute.v2019_03_01.models.ImageStorageProfile :ivar provisioning_state: The provisioning state. :vartype provisioning_state: str + :param hyper_vgeneration: Gets the HyperVGenerationType of the + VirtualMachine created from the image. Possible values include: 'V1', 'V2' + :type hyper_vgeneration: str or + ~azure.mgmt.compute.v2019_03_01.models.HyperVGenerationTypes """ _validation = { @@ -61,6 +65,7 @@ class Image(Resource): 'source_virtual_machine': {'key': 'properties.sourceVirtualMachine', 'type': 'SubResource'}, 'storage_profile': {'key': 'properties.storageProfile', 'type': 'ImageStorageProfile'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'hyper_vgeneration': {'key': 'properties.hyperVGeneration', 'type': 'str'}, } def __init__(self, **kwargs): @@ -68,3 +73,4 @@ def __init__(self, **kwargs): self.source_virtual_machine = kwargs.get('source_virtual_machine', None) self.storage_profile = kwargs.get('storage_profile', None) self.provisioning_state = None + self.hyper_vgeneration = kwargs.get('hyper_vgeneration', None) diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/image_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/image_py3.py index ecb5e1ee3977..565a3d46de64 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/image_py3.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/image_py3.py @@ -42,6 +42,10 @@ class Image(Resource): ~azure.mgmt.compute.v2019_03_01.models.ImageStorageProfile :ivar provisioning_state: The provisioning state. :vartype provisioning_state: str + :param hyper_vgeneration: Gets the HyperVGenerationType of the + VirtualMachine created from the image. Possible values include: 'V1', 'V2' + :type hyper_vgeneration: str or + ~azure.mgmt.compute.v2019_03_01.models.HyperVGenerationTypes """ _validation = { @@ -61,10 +65,12 @@ class Image(Resource): 'source_virtual_machine': {'key': 'properties.sourceVirtualMachine', 'type': 'SubResource'}, 'storage_profile': {'key': 'properties.storageProfile', 'type': 'ImageStorageProfile'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'hyper_vgeneration': {'key': 'properties.hyperVGeneration', 'type': 'str'}, } - def __init__(self, *, location: str, tags=None, source_virtual_machine=None, storage_profile=None, **kwargs) -> None: + def __init__(self, *, location: str, tags=None, source_virtual_machine=None, storage_profile=None, hyper_vgeneration=None, **kwargs) -> None: super(Image, self).__init__(location=location, tags=tags, **kwargs) self.source_virtual_machine = source_virtual_machine self.storage_profile = storage_profile self.provisioning_state = None + self.hyper_vgeneration = hyper_vgeneration diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/image_update.py b/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/image_update.py index 6825bed1d761..9d2a9047f962 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/image_update.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/image_update.py @@ -30,6 +30,10 @@ class ImageUpdate(UpdateResource): ~azure.mgmt.compute.v2019_03_01.models.ImageStorageProfile :ivar provisioning_state: The provisioning state. :vartype provisioning_state: str + :param hyper_vgeneration: Gets the HyperVGenerationType of the + VirtualMachine created from the image. Possible values include: 'V1', 'V2' + :type hyper_vgeneration: str or + ~azure.mgmt.compute.v2019_03_01.models.HyperVGenerationTypes """ _validation = { @@ -41,6 +45,7 @@ class ImageUpdate(UpdateResource): 'source_virtual_machine': {'key': 'properties.sourceVirtualMachine', 'type': 'SubResource'}, 'storage_profile': {'key': 'properties.storageProfile', 'type': 'ImageStorageProfile'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'hyper_vgeneration': {'key': 'properties.hyperVGeneration', 'type': 'str'}, } def __init__(self, **kwargs): @@ -48,3 +53,4 @@ def __init__(self, **kwargs): self.source_virtual_machine = kwargs.get('source_virtual_machine', None) self.storage_profile = kwargs.get('storage_profile', None) self.provisioning_state = None + self.hyper_vgeneration = kwargs.get('hyper_vgeneration', None) diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/image_update_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/image_update_py3.py index f8b53e63df39..fedac7c13c1e 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/image_update_py3.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/image_update_py3.py @@ -30,6 +30,10 @@ class ImageUpdate(UpdateResource): ~azure.mgmt.compute.v2019_03_01.models.ImageStorageProfile :ivar provisioning_state: The provisioning state. :vartype provisioning_state: str + :param hyper_vgeneration: Gets the HyperVGenerationType of the + VirtualMachine created from the image. Possible values include: 'V1', 'V2' + :type hyper_vgeneration: str or + ~azure.mgmt.compute.v2019_03_01.models.HyperVGenerationTypes """ _validation = { @@ -41,10 +45,12 @@ class ImageUpdate(UpdateResource): 'source_virtual_machine': {'key': 'properties.sourceVirtualMachine', 'type': 'SubResource'}, 'storage_profile': {'key': 'properties.storageProfile', 'type': 'ImageStorageProfile'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'hyper_vgeneration': {'key': 'properties.hyperVGeneration', 'type': 'str'}, } - def __init__(self, *, tags=None, source_virtual_machine=None, storage_profile=None, **kwargs) -> None: + def __init__(self, *, tags=None, source_virtual_machine=None, storage_profile=None, hyper_vgeneration=None, **kwargs) -> None: super(ImageUpdate, self).__init__(tags=tags, **kwargs) self.source_virtual_machine = source_virtual_machine self.storage_profile = storage_profile self.provisioning_state = None + self.hyper_vgeneration = hyper_vgeneration