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 @@ -54,8 +54,6 @@
SnapshotStorageAccountTypes,
AccessLevel,
)
# Manual change to avoid major release until the next major release
StorageAccountTypes = DiskStorageAccountTypes

__all__ = [
'Resource',
Expand All @@ -77,7 +75,6 @@
'DiskPaged',
'SnapshotPaged',
'DiskStorageAccountTypes',
'StorageAccountTypes',
'OperatingSystemTypes',
'HyperVGeneration',
'DiskCreateOption',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class DiskStorageAccountTypes(str, Enum):
standard_ssd_lrs = "StandardSSD_LRS"
ultra_ssd_lrs = "UltraSSD_LRS"


class OperatingSystemTypes(str, Enum):

windows = "Windows"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ class VirtualMachineScaleSet(Resource):
:param overprovision: Specifies whether the Virtual Machine Scale Set
should be overprovisioned.
:type overprovision: bool
:param do_not_run_extensions_on_overprovisioned_vms: In case of
overprovisioning, determines whether extensions should be run immediately,
or if they should be delayed until after overprovisioning has finished and
the set of instances to keep have been selected.
:type do_not_run_extensions_on_overprovisioned_vms: bool
:ivar unique_id: Specifies the ID which uniquely identifies a Virtual
Machine Scale Set.
:vartype unique_id: str
Expand Down Expand Up @@ -92,6 +97,7 @@ class VirtualMachineScaleSet(Resource):
'virtual_machine_profile': {'key': 'properties.virtualMachineProfile', 'type': 'VirtualMachineScaleSetVMProfile'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'overprovision': {'key': 'properties.overprovision', 'type': 'bool'},
'do_not_run_extensions_on_overprovisioned_vms': {'key': 'properties.doNotRunExtensionsOnOverprovisionedVMs', 'type': 'bool'},
'unique_id': {'key': 'properties.uniqueId', 'type': 'str'},
'single_placement_group': {'key': 'properties.singlePlacementGroup', 'type': 'bool'},
'zone_balance': {'key': 'properties.zoneBalance', 'type': 'bool'},
Expand All @@ -108,6 +114,7 @@ def __init__(self, **kwargs):
self.virtual_machine_profile = kwargs.get('virtual_machine_profile', None)
self.provisioning_state = None
self.overprovision = kwargs.get('overprovision', None)
self.do_not_run_extensions_on_overprovisioned_vms = kwargs.get('do_not_run_extensions_on_overprovisioned_vms', None)
self.unique_id = None
self.single_placement_group = kwargs.get('single_placement_group', None)
self.zone_balance = kwargs.get('zone_balance', None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ class VirtualMachineScaleSet(Resource):
:param overprovision: Specifies whether the Virtual Machine Scale Set
should be overprovisioned.
:type overprovision: bool
:param do_not_run_extensions_on_overprovisioned_vms: In case of
overprovisioning, determines whether extensions should be run immediately,
or if they should be delayed until after overprovisioning has finished and
the set of instances to keep have been selected.
:type do_not_run_extensions_on_overprovisioned_vms: bool
:ivar unique_id: Specifies the ID which uniquely identifies a Virtual
Machine Scale Set.
:vartype unique_id: str
Expand Down Expand Up @@ -92,6 +97,7 @@ class VirtualMachineScaleSet(Resource):
'virtual_machine_profile': {'key': 'properties.virtualMachineProfile', 'type': 'VirtualMachineScaleSetVMProfile'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'overprovision': {'key': 'properties.overprovision', 'type': 'bool'},
'do_not_run_extensions_on_overprovisioned_vms': {'key': 'properties.doNotRunExtensionsOnOverprovisionedVMs', 'type': 'bool'},
'unique_id': {'key': 'properties.uniqueId', 'type': 'str'},
'single_placement_group': {'key': 'properties.singlePlacementGroup', 'type': 'bool'},
'zone_balance': {'key': 'properties.zoneBalance', 'type': 'bool'},
Expand All @@ -100,14 +106,15 @@ class VirtualMachineScaleSet(Resource):
'zones': {'key': 'zones', 'type': '[str]'},
}

def __init__(self, *, location: str, tags=None, sku=None, plan=None, upgrade_policy=None, virtual_machine_profile=None, overprovision: bool=None, single_placement_group: bool=None, zone_balance: bool=None, platform_fault_domain_count: int=None, identity=None, zones=None, **kwargs) -> None:
def __init__(self, *, location: str, tags=None, sku=None, plan=None, upgrade_policy=None, virtual_machine_profile=None, overprovision: bool=None, do_not_run_extensions_on_overprovisioned_vms: bool=None, single_placement_group: bool=None, zone_balance: bool=None, platform_fault_domain_count: int=None, identity=None, zones=None, **kwargs) -> None:
super(VirtualMachineScaleSet, self).__init__(location=location, tags=tags, **kwargs)
self.sku = sku
self.plan = plan
self.upgrade_policy = upgrade_policy
self.virtual_machine_profile = virtual_machine_profile
self.provisioning_state = None
self.overprovision = overprovision
self.do_not_run_extensions_on_overprovisioned_vms = do_not_run_extensions_on_overprovisioned_vms
self.unique_id = None
self.single_placement_group = single_placement_group
self.zone_balance = zone_balance
Expand Down