Skip to content

Commit

Permalink
Generated from f2cd882fad212cdeb99c5df3a596c356b9a3d417 (#1949)
Browse files Browse the repository at this point in the history
Add missing properties for Vmss zone GA
  • Loading branch information
AutorestCI authored and lmazuel committed Feb 9, 2018
1 parent 8bccc9d commit 981ebc7
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ class VirtualMachineScaleSet(Resource):
:param single_placement_group: When true this limits the scale set to a
single placement group, of max size 100 virtual machines.
:type single_placement_group: bool
:param zone_balance: Whether to force stictly even Virtual Machine
distribution cross x-zones in case there is zone outage.
:type zone_balance: bool
:param platform_fault_domain_count: Fault Domain count for each placement
group.
:type platform_fault_domain_count: int
:param identity: The identity of the virtual machine scale set, if
configured.
:type identity:
Expand Down Expand Up @@ -86,11 +92,13 @@ class VirtualMachineScaleSet(Resource):
'overprovision': {'key': 'properties.overprovision', 'type': 'bool'},
'unique_id': {'key': 'properties.uniqueId', 'type': 'str'},
'single_placement_group': {'key': 'properties.singlePlacementGroup', 'type': 'bool'},
'zone_balance': {'key': 'properties.zoneBalance', 'type': 'bool'},
'platform_fault_domain_count': {'key': 'properties.platformFaultDomainCount', 'type': 'int'},
'identity': {'key': 'identity', 'type': 'VirtualMachineScaleSetIdentity'},
'zones': {'key': 'zones', 'type': '[str]'},
}

def __init__(self, location, tags=None, sku=None, plan=None, upgrade_policy=None, virtual_machine_profile=None, overprovision=None, single_placement_group=None, identity=None, zones=None):
def __init__(self, location, tags=None, sku=None, plan=None, upgrade_policy=None, virtual_machine_profile=None, overprovision=None, single_placement_group=None, zone_balance=None, platform_fault_domain_count=None, identity=None, zones=None):
super(VirtualMachineScaleSet, self).__init__(location=location, tags=tags)
self.sku = sku
self.plan = plan
Expand All @@ -100,5 +108,7 @@ def __init__(self, location, tags=None, sku=None, plan=None, upgrade_policy=None
self.overprovision = overprovision
self.unique_id = None
self.single_placement_group = single_placement_group
self.zone_balance = zone_balance
self.platform_fault_domain_count = platform_fault_domain_count
self.identity = identity
self.zones = zones

0 comments on commit 981ebc7

Please sign in to comment.