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 @@ -283,6 +283,7 @@
OperatingSystemStateTypes,
IPVersion,
VirtualMachinePriorityTypes,
VirtualMachineEvictionPolicyTypes,
VirtualMachineScaleSetSkuScaleType,
RollingUpgradeStatusCode,
RollingUpgradeActionType,
Expand Down Expand Up @@ -440,6 +441,7 @@
'OperatingSystemStateTypes',
'IPVersion',
'VirtualMachinePriorityTypes',
'VirtualMachineEvictionPolicyTypes',
'VirtualMachineScaleSetSkuScaleType',
'RollingUpgradeStatusCode',
'RollingUpgradeActionType',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,12 @@ class VirtualMachinePriorityTypes(str, Enum):
low = "Low"


class VirtualMachineEvictionPolicyTypes(str, Enum):

deallocate = "Deallocate"
delete = "Delete"


class VirtualMachineScaleSetSkuScaleType(str, Enum):

automatic = "Automatic"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ class VirtualMachineScaleSetVMProfile(Model):
values include: 'Regular', 'Low'
:type priority: str or
~azure.mgmt.compute.v2017_12_01.models.VirtualMachinePriorityTypes
:param eviction_policy: Specifies the eviction policy for virtual machines
in the low priority scale set. <br><br>Minimum api-version:
2017-10-30-preview. Possible values include: 'Deallocate', 'Delete'
:type eviction_policy: str or
~azure.mgmt.compute.v2017_12_01.models.VirtualMachineEvictionPolicyTypes
"""

_attribute_map = {
Expand All @@ -60,6 +65,7 @@ class VirtualMachineScaleSetVMProfile(Model):
'extension_profile': {'key': 'extensionProfile', 'type': 'VirtualMachineScaleSetExtensionProfile'},
'license_type': {'key': 'licenseType', 'type': 'str'},
'priority': {'key': 'priority', 'type': 'str'},
'eviction_policy': {'key': 'evictionPolicy', 'type': 'str'},
}

def __init__(self, **kwargs):
Expand All @@ -71,3 +77,4 @@ def __init__(self, **kwargs):
self.extension_profile = kwargs.get('extension_profile', None)
self.license_type = kwargs.get('license_type', None)
self.priority = kwargs.get('priority', None)
self.eviction_policy = kwargs.get('eviction_policy', None)
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ class VirtualMachineScaleSetVMProfile(Model):
values include: 'Regular', 'Low'
:type priority: str or
~azure.mgmt.compute.v2017_12_01.models.VirtualMachinePriorityTypes
:param eviction_policy: Specifies the eviction policy for virtual machines
in the low priority scale set. <br><br>Minimum api-version:
2017-10-30-preview. Possible values include: 'Deallocate', 'Delete'
:type eviction_policy: str or
~azure.mgmt.compute.v2017_12_01.models.VirtualMachineEvictionPolicyTypes
"""

_attribute_map = {
Expand All @@ -60,9 +65,10 @@ class VirtualMachineScaleSetVMProfile(Model):
'extension_profile': {'key': 'extensionProfile', 'type': 'VirtualMachineScaleSetExtensionProfile'},
'license_type': {'key': 'licenseType', 'type': 'str'},
'priority': {'key': 'priority', 'type': 'str'},
'eviction_policy': {'key': 'evictionPolicy', 'type': 'str'},
}

def __init__(self, *, os_profile=None, storage_profile=None, network_profile=None, diagnostics_profile=None, extension_profile=None, license_type: str=None, priority=None, **kwargs) -> None:
def __init__(self, *, os_profile=None, storage_profile=None, network_profile=None, diagnostics_profile=None, extension_profile=None, license_type: str=None, priority=None, eviction_policy=None, **kwargs) -> None:
super(VirtualMachineScaleSetVMProfile, self).__init__(**kwargs)
self.os_profile = os_profile
self.storage_profile = storage_profile
Expand All @@ -71,3 +77,4 @@ def __init__(self, *, os_profile=None, storage_profile=None, network_profile=Non
self.extension_profile = extension_profile
self.license_type = license_type
self.priority = priority
self.eviction_policy = eviction_policy