Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR azure-mgmt-compute] Updating description text for Create/Update virtual machines APIs documentation. No changes to specs. #83

Closed
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 @@ -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 @@ -164,6 +169,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 +256,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 +268,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 @@ -362,6 +373,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 +530,10 @@
'EncryptionSettingsElement',
'Gallery',
'GalleryApplication',
'GalleryApplicationUpdate',
'GalleryApplicationVersion',
'GalleryApplicationVersionPublishingProfile',
'GalleryApplicationVersionUpdate',
'GalleryArtifactPublishingProfileBase',
'GalleryArtifactSource',
'GalleryArtifactVersionSource',
Expand All @@ -528,10 +542,13 @@
'GalleryIdentifier',
'GalleryImage',
'GalleryImageIdentifier',
'GalleryImageUpdate',
'GalleryImageVersion',
'GalleryImageVersionPublishingProfile',
'GalleryImageVersionStorageProfile',
'GalleryImageVersionUpdate',
'GalleryOSDiskImage',
'GalleryUpdate',
'GrantAccessData',
'HardwareProfile',
'Image',
Expand Down Expand Up @@ -630,6 +647,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