Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -556,6 +557,7 @@
'GalleryPaged',
'GalleryImagePaged',
'GalleryImageVersionPaged',
'HyperVGenerationTypes',
'StatusLevelTypes',
'AvailabilitySetSkuTypes',
'ProximityPlacementGroupType',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
from enum import Enum


class HyperVGenerationTypes(str, Enum):

v1 = "V1"
v2 = "V2"


class StatusLevelTypes(str, Enum):

info = "Info"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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, **kwargs):
super(Image, self).__init__(**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)
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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, **kwargs):
super(ImageUpdate, self).__init__(**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)
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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