Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Generated from 9bb1d5b7f21a0e03e97ce3817554307244d45422
Correct definition format
  • Loading branch information
AutorestCI committed Jul 20, 2019
commit 5578b5c320e4b4e8ada253401e9c9784600abf5b
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,15 @@
from ._models_py3 import RunCommandInputParameter
from ._models_py3 import RunCommandParameterDefinition
from ._models_py3 import RunCommandResult
from ._models_py3 import ScheduledEventsProfile
from ._models_py3 import Sku
from ._models_py3 import SshConfiguration
from ._models_py3 import SshPublicKey
from ._models_py3 import StorageProfile
from ._models_py3 import SubResource
from ._models_py3 import SubResourceReadOnly
from ._models_py3 import TargetRegion
from ._models_py3 import TerminateNotificationProfile
from ._models_py3 import ThrottledRequestsInput
from ._models_py3 import UpdateResource
from ._models_py3 import UpgradeOperationHistoricalStatusInfo
Expand Down Expand Up @@ -268,13 +270,15 @@
from ._models import RunCommandInputParameter
from ._models import RunCommandParameterDefinition
from ._models import RunCommandResult
from ._models import ScheduledEventsProfile
from ._models import Sku
from ._models import SshConfiguration
from ._models import SshPublicKey
from ._models import StorageProfile
from ._models import SubResource
from ._models import SubResourceReadOnly
from ._models import TargetRegion
from ._models import TerminateNotificationProfile
from ._models import ThrottledRequestsInput
from ._models import UpdateResource
from ._models import UpgradeOperationHistoricalStatusInfo
Expand Down Expand Up @@ -497,13 +501,15 @@
'RunCommandInputParameter',
'RunCommandParameterDefinition',
'RunCommandResult',
'ScheduledEventsProfile',
'Sku',
'SshConfiguration',
'SshPublicKey',
'StorageProfile',
'SubResource',
'SubResourceReadOnly',
'TargetRegion',
'TerminateNotificationProfile',
'ThrottledRequestsInput',
'UpdateResource',
'UpgradeOperationHistoricalStatusInfo',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3633,6 +3633,24 @@ def __init__(self, **kwargs):
self.value = kwargs.get('value', None)


class ScheduledEventsProfile(Model):
"""ScheduledEventsProfile.

:param terminate_notification_profile: Specifies Terminate Scheduled Event
related configurations.
:type terminate_notification_profile:
~azure.mgmt.compute.v2019_03_01.models.TerminateNotificationProfile
"""

_attribute_map = {
'terminate_notification_profile': {'key': 'terminateNotificationProfile', 'type': 'TerminateNotificationProfile'},
}

def __init__(self, **kwargs):
super(ScheduledEventsProfile, self).__init__(**kwargs)
self.terminate_notification_profile = kwargs.get('terminate_notification_profile', None)


class Sku(Model):
"""Describes a virtual machine scale set sku.

Expand Down Expand Up @@ -3796,6 +3814,31 @@ def __init__(self, **kwargs):
self.storage_account_type = kwargs.get('storage_account_type', None)


class TerminateNotificationProfile(Model):
"""TerminateNotificationProfile.

:param not_before_timeout: Configurable length of time a Virtual Machine
being deleted will have to potentially approve the Terminate Scheduled
Event before the event is auto approved (timed out). The configuration
must be specified in ISO 8601 format, the default value is 5 minutes
(PT5M)
:type not_before_timeout: str
:param enable: Specifies whether the Terminate Scheduled event is enabled
or disabled.
:type enable: bool
"""

_attribute_map = {
'not_before_timeout': {'key': 'notBeforeTimeout', 'type': 'str'},
'enable': {'key': 'enable', 'type': 'bool'},
}

def __init__(self, **kwargs):
super(TerminateNotificationProfile, self).__init__(**kwargs)
self.not_before_timeout = kwargs.get('not_before_timeout', None)
self.enable = kwargs.get('enable', None)


class ThrottledRequestsInput(LogAnalyticsInputBase):
"""Api request input for LogAnalytics getThrottledRequests Api.

Expand Down Expand Up @@ -6736,6 +6779,10 @@ class VirtualMachineScaleSetVMProfile(Model):
2017-10-30-preview. Possible values include: 'Deallocate', 'Delete'
:type eviction_policy: str or
~azure.mgmt.compute.v2019_03_01.models.VirtualMachineEvictionPolicyTypes
:param scheduled_events_profile: Specifies Scheduled Event related
configurations.
:type scheduled_events_profile:
~azure.mgmt.compute.v2019_03_01.models.ScheduledEventsProfile
"""

_attribute_map = {
Expand All @@ -6747,6 +6794,7 @@ class VirtualMachineScaleSetVMProfile(Model):
'license_type': {'key': 'licenseType', 'type': 'str'},
'priority': {'key': 'priority', 'type': 'str'},
'eviction_policy': {'key': 'evictionPolicy', 'type': 'str'},
'scheduled_events_profile': {'key': 'scheduledEventsProfile', 'type': 'ScheduledEventsProfile'},
}

def __init__(self, **kwargs):
Expand All @@ -6759,6 +6807,7 @@ def __init__(self, **kwargs):
self.license_type = kwargs.get('license_type', None)
self.priority = kwargs.get('priority', None)
self.eviction_policy = kwargs.get('eviction_policy', None)
self.scheduled_events_profile = kwargs.get('scheduled_events_profile', None)


class VirtualMachineScaleSetVMProtectionPolicy(Model):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3633,6 +3633,24 @@ def __init__(self, *, value=None, **kwargs) -> None:
self.value = value


class ScheduledEventsProfile(Model):
"""ScheduledEventsProfile.

:param terminate_notification_profile: Specifies Terminate Scheduled Event
related configurations.
:type terminate_notification_profile:
~azure.mgmt.compute.v2019_03_01.models.TerminateNotificationProfile
"""

_attribute_map = {
'terminate_notification_profile': {'key': 'terminateNotificationProfile', 'type': 'TerminateNotificationProfile'},
}

def __init__(self, *, terminate_notification_profile=None, **kwargs) -> None:
super(ScheduledEventsProfile, self).__init__(**kwargs)
self.terminate_notification_profile = terminate_notification_profile


class Sku(Model):
"""Describes a virtual machine scale set sku.

Expand Down Expand Up @@ -3796,6 +3814,31 @@ def __init__(self, *, name: str, regional_replica_count: int=None, storage_accou
self.storage_account_type = storage_account_type


class TerminateNotificationProfile(Model):
"""TerminateNotificationProfile.

:param not_before_timeout: Configurable length of time a Virtual Machine
being deleted will have to potentially approve the Terminate Scheduled
Event before the event is auto approved (timed out). The configuration
must be specified in ISO 8601 format, the default value is 5 minutes
(PT5M)
:type not_before_timeout: str
:param enable: Specifies whether the Terminate Scheduled event is enabled
or disabled.
:type enable: bool
"""

_attribute_map = {
'not_before_timeout': {'key': 'notBeforeTimeout', 'type': 'str'},
'enable': {'key': 'enable', 'type': 'bool'},
}

def __init__(self, *, not_before_timeout: str=None, enable: bool=None, **kwargs) -> None:
super(TerminateNotificationProfile, self).__init__(**kwargs)
self.not_before_timeout = not_before_timeout
self.enable = enable


class ThrottledRequestsInput(LogAnalyticsInputBase):
"""Api request input for LogAnalytics getThrottledRequests Api.

Expand Down Expand Up @@ -6736,6 +6779,10 @@ class VirtualMachineScaleSetVMProfile(Model):
2017-10-30-preview. Possible values include: 'Deallocate', 'Delete'
:type eviction_policy: str or
~azure.mgmt.compute.v2019_03_01.models.VirtualMachineEvictionPolicyTypes
:param scheduled_events_profile: Specifies Scheduled Event related
configurations.
:type scheduled_events_profile:
~azure.mgmt.compute.v2019_03_01.models.ScheduledEventsProfile
"""

_attribute_map = {
Expand All @@ -6747,9 +6794,10 @@ class VirtualMachineScaleSetVMProfile(Model):
'license_type': {'key': 'licenseType', 'type': 'str'},
'priority': {'key': 'priority', 'type': 'str'},
'eviction_policy': {'key': 'evictionPolicy', 'type': 'str'},
'scheduled_events_profile': {'key': 'scheduledEventsProfile', 'type': 'ScheduledEventsProfile'},
}

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:
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, scheduled_events_profile=None, **kwargs) -> None:
super(VirtualMachineScaleSetVMProfile, self).__init__(**kwargs)
self.os_profile = os_profile
self.storage_profile = storage_profile
Expand All @@ -6759,6 +6807,7 @@ def __init__(self, *, os_profile=None, storage_profile=None, network_profile=Non
self.license_type = license_type
self.priority = priority
self.eviction_policy = eviction_policy
self.scheduled_events_profile = scheduled_events_profile


class VirtualMachineScaleSetVMProtectionPolicy(Model):
Expand Down