Skip to content

Commit

Permalink
Generated from 497f37d011e45d90e7a5f190b1326ec89e2719c8
Browse files Browse the repository at this point in the history
Merge pull request #6 from Khushboo-Baheti/master

merge
  • Loading branch information
SDK Automation committed Feb 24, 2020
1 parent a25a803 commit 2c9d083
Show file tree
Hide file tree
Showing 16 changed files with 2,119 additions and 163 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,25 +207,20 @@ class AutomaticRepairsPolicy(Model):
suspended due to a state change on VM. The grace time starts after the
state change has completed. This helps avoid premature or accidental
repairs. The time duration should be specified in ISO 8601 format. The
default value is 5 minutes (PT5M).
minimum allowed grace period is 30 minutes (PT30M), which is also the
default value.
:type grace_period: str
:param max_instance_repairs_percent: The percentage (capacity of scaleset)
of virtual machines that will be simultaneously repaired. The default
value is 20%.
:type max_instance_repairs_percent: int
"""

_attribute_map = {
'enabled': {'key': 'enabled', 'type': 'bool'},
'grace_period': {'key': 'gracePeriod', 'type': 'str'},
'max_instance_repairs_percent': {'key': 'maxInstanceRepairsPercent', 'type': 'int'},
}

def __init__(self, **kwargs):
super(AutomaticRepairsPolicy, self).__init__(**kwargs)
self.enabled = kwargs.get('enabled', None)
self.grace_period = kwargs.get('grace_period', None)
self.max_instance_repairs_percent = kwargs.get('max_instance_repairs_percent', None)


class Resource(Model):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,25 +207,20 @@ class AutomaticRepairsPolicy(Model):
suspended due to a state change on VM. The grace time starts after the
state change has completed. This helps avoid premature or accidental
repairs. The time duration should be specified in ISO 8601 format. The
default value is 5 minutes (PT5M).
minimum allowed grace period is 30 minutes (PT30M), which is also the
default value.
:type grace_period: str
:param max_instance_repairs_percent: The percentage (capacity of scaleset)
of virtual machines that will be simultaneously repaired. The default
value is 20%.
:type max_instance_repairs_percent: int
"""

_attribute_map = {
'enabled': {'key': 'enabled', 'type': 'bool'},
'grace_period': {'key': 'gracePeriod', 'type': 'str'},
'max_instance_repairs_percent': {'key': 'maxInstanceRepairsPercent', 'type': 'int'},
}

def __init__(self, *, enabled: bool=None, grace_period: str=None, max_instance_repairs_percent: int=None, **kwargs) -> None:
def __init__(self, *, enabled: bool=None, grace_period: str=None, **kwargs) -> None:
super(AutomaticRepairsPolicy, self).__init__(**kwargs)
self.enabled = enabled
self.grace_period = grace_period
self.max_instance_repairs_percent = max_instance_repairs_percent


class Resource(Model):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,8 @@ class VirtualMachineScaleSetScaleInRules(str, Enum):

class OperatingSystemStateTypes(str, Enum):

generalized = "Generalized"
specialized = "Specialized"
generalized = "Generalized" #: Generalized image. Needs to be provisioned during deployment time.
specialized = "Specialized" #: Specialized image. Contains already provisioned OS Disk.


class IPVersion(str, Enum):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,25 +230,20 @@ class AutomaticRepairsPolicy(Model):
suspended due to a state change on VM. The grace time starts after the
state change has completed. This helps avoid premature or accidental
repairs. The time duration should be specified in ISO 8601 format. The
default value is 5 minutes (PT5M).
minimum allowed grace period is 30 minutes (PT30M), which is also the
default value.
:type grace_period: str
:param max_instance_repairs_percent: The percentage (capacity of scaleset)
of virtual machines that will be simultaneously repaired. The default
value is 20%.
:type max_instance_repairs_percent: int
"""

_attribute_map = {
'enabled': {'key': 'enabled', 'type': 'bool'},
'grace_period': {'key': 'gracePeriod', 'type': 'str'},
'max_instance_repairs_percent': {'key': 'maxInstanceRepairsPercent', 'type': 'int'},
}

def __init__(self, **kwargs):
super(AutomaticRepairsPolicy, self).__init__(**kwargs)
self.enabled = kwargs.get('enabled', None)
self.grace_period = kwargs.get('grace_period', None)
self.max_instance_repairs_percent = kwargs.get('max_instance_repairs_percent', None)


class Resource(Model):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,25 +230,20 @@ class AutomaticRepairsPolicy(Model):
suspended due to a state change on VM. The grace time starts after the
state change has completed. This helps avoid premature or accidental
repairs. The time duration should be specified in ISO 8601 format. The
default value is 5 minutes (PT5M).
minimum allowed grace period is 30 minutes (PT30M), which is also the
default value.
:type grace_period: str
:param max_instance_repairs_percent: The percentage (capacity of scaleset)
of virtual machines that will be simultaneously repaired. The default
value is 20%.
:type max_instance_repairs_percent: int
"""

_attribute_map = {
'enabled': {'key': 'enabled', 'type': 'bool'},
'grace_period': {'key': 'gracePeriod', 'type': 'str'},
'max_instance_repairs_percent': {'key': 'maxInstanceRepairsPercent', 'type': 'int'},
}

def __init__(self, *, enabled: bool=None, grace_period: str=None, max_instance_repairs_percent: int=None, **kwargs) -> None:
def __init__(self, *, enabled: bool=None, grace_period: str=None, **kwargs) -> None:
super(AutomaticRepairsPolicy, self).__init__(**kwargs)
self.enabled = enabled
self.grace_period = grace_period
self.max_instance_repairs_percent = max_instance_repairs_percent


class Resource(Model):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@
from ._models_py3 import EncryptionSettingsElement
from ._models_py3 import Gallery
from ._models_py3 import GalleryApplication
from ._models_py3 import GalleryApplicationUpdate
from ._models_py3 import GalleryApplicationVersion
from ._models_py3 import GalleryApplicationVersionPublishingProfile
from ._models_py3 import GalleryApplicationVersionUpdate
from ._models_py3 import GalleryArtifactPublishingProfileBase
from ._models_py3 import GalleryArtifactSource
from ._models_py3 import GalleryArtifactVersionSource
Expand All @@ -62,10 +64,13 @@
from ._models_py3 import GalleryIdentifier
from ._models_py3 import GalleryImage
from ._models_py3 import GalleryImageIdentifier
from ._models_py3 import GalleryImageUpdate
from ._models_py3 import GalleryImageVersion
from ._models_py3 import GalleryImageVersionPublishingProfile
from ._models_py3 import GalleryImageVersionStorageProfile
from ._models_py3 import GalleryImageVersionUpdate
from ._models_py3 import GalleryOSDiskImage
from ._models_py3 import GalleryUpdate
from ._models_py3 import GrantAccessData
from ._models_py3 import HardwareProfile
from ._models_py3 import Image
Expand Down Expand Up @@ -129,6 +134,7 @@
from ._models_py3 import StorageProfile
from ._models_py3 import SubResource
from ._models_py3 import SubResourceReadOnly
from ._models_py3 import SubResourceWithColocationStatus
from ._models_py3 import TargetRegion
from ._models_py3 import TerminateNotificationProfile
from ._models_py3 import ThrottledRequestsInput
Expand Down Expand Up @@ -164,6 +170,7 @@
from ._models_py3 import VirtualMachineScaleSetDataDisk
from ._models_py3 import VirtualMachineScaleSetExtension
from ._models_py3 import VirtualMachineScaleSetExtensionProfile
from ._models_py3 import VirtualMachineScaleSetExtensionUpdate
from ._models_py3 import VirtualMachineScaleSetIdentity
from ._models_py3 import VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue
from ._models_py3 import VirtualMachineScaleSetInstanceView
Expand Down Expand Up @@ -250,8 +257,10 @@
from ._models import EncryptionSettingsElement
from ._models import Gallery
from ._models import GalleryApplication
from ._models import GalleryApplicationUpdate
from ._models import GalleryApplicationVersion
from ._models import GalleryApplicationVersionPublishingProfile
from ._models import GalleryApplicationVersionUpdate
from ._models import GalleryArtifactPublishingProfileBase
from ._models import GalleryArtifactSource
from ._models import GalleryArtifactVersionSource
Expand All @@ -260,10 +269,13 @@
from ._models import GalleryIdentifier
from ._models import GalleryImage
from ._models import GalleryImageIdentifier
from ._models import GalleryImageUpdate
from ._models import GalleryImageVersion
from ._models import GalleryImageVersionPublishingProfile
from ._models import GalleryImageVersionStorageProfile
from ._models import GalleryImageVersionUpdate
from ._models import GalleryOSDiskImage
from ._models import GalleryUpdate
from ._models import GrantAccessData
from ._models import HardwareProfile
from ._models import Image
Expand Down Expand Up @@ -327,6 +339,7 @@
from ._models import StorageProfile
from ._models import SubResource
from ._models import SubResourceReadOnly
from ._models import SubResourceWithColocationStatus
from ._models import TargetRegion
from ._models import TerminateNotificationProfile
from ._models import ThrottledRequestsInput
Expand Down Expand Up @@ -362,6 +375,7 @@
from ._models import VirtualMachineScaleSetDataDisk
from ._models import VirtualMachineScaleSetExtension
from ._models import VirtualMachineScaleSetExtensionProfile
from ._models import VirtualMachineScaleSetExtensionUpdate
from ._models import VirtualMachineScaleSetIdentity
from ._models import VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue
from ._models import VirtualMachineScaleSetInstanceView
Expand Down Expand Up @@ -518,8 +532,10 @@
'EncryptionSettingsElement',
'Gallery',
'GalleryApplication',
'GalleryApplicationUpdate',
'GalleryApplicationVersion',
'GalleryApplicationVersionPublishingProfile',
'GalleryApplicationVersionUpdate',
'GalleryArtifactPublishingProfileBase',
'GalleryArtifactSource',
'GalleryArtifactVersionSource',
Expand All @@ -528,10 +544,13 @@
'GalleryIdentifier',
'GalleryImage',
'GalleryImageIdentifier',
'GalleryImageUpdate',
'GalleryImageVersion',
'GalleryImageVersionPublishingProfile',
'GalleryImageVersionStorageProfile',
'GalleryImageVersionUpdate',
'GalleryOSDiskImage',
'GalleryUpdate',
'GrantAccessData',
'HardwareProfile',
'Image',
Expand Down Expand Up @@ -595,6 +614,7 @@
'StorageProfile',
'SubResource',
'SubResourceReadOnly',
'SubResourceWithColocationStatus',
'TargetRegion',
'TerminateNotificationProfile',
'ThrottledRequestsInput',
Expand Down Expand Up @@ -630,6 +650,7 @@
'VirtualMachineScaleSetDataDisk',
'VirtualMachineScaleSetExtension',
'VirtualMachineScaleSetExtensionProfile',
'VirtualMachineScaleSetExtensionUpdate',
'VirtualMachineScaleSetIdentity',
'VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue',
'VirtualMachineScaleSetInstanceView',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,8 @@ class VirtualMachineScaleSetScaleInRules(str, Enum):

class OperatingSystemStateTypes(str, Enum):

generalized = "Generalized"
specialized = "Specialized"
generalized = "Generalized" #: Generalized image. Needs to be provisioned during deployment time.
specialized = "Specialized" #: Specialized image. Contains already provisioned OS Disk.


class IPVersion(str, Enum):
Expand Down
Loading

0 comments on commit 2c9d083

Please sign in to comment.