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 machinelearningservices/data-plane/compute/resource-manager] fix: MD010/no-hard-tabs #6824

Closed
wants to merge 1 commit into from
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 @@ -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 @@ -801,7 +801,7 @@ class DedicatedHostGroup(Resource):
host group.
:vartype hosts:
list[~azure.mgmt.compute.v2019_03_01.models.SubResourceReadOnly]
:param zones: Availability Zone to use for this host group � only single
:param zones: Availability Zone to use for this host group. Only single
zone is supported. The zone can be assigned only during creation. If not
provided, the group supports all zones in the region. If provided,
enforces each host in the group to be in the same zone.
Expand Down Expand Up @@ -853,7 +853,7 @@ class DedicatedHostGroupUpdate(UpdateResource):
host group.
:vartype hosts:
list[~azure.mgmt.compute.v2019_03_01.models.SubResourceReadOnly]
:param zones: Availability Zone to use for this host group � only single
:param zones: Availability Zone to use for this host group. Only single
zone is supported. The zone can be assigned only during creation. If not
provided, the group supports all zones in the region. If provided,
enforces each host in the group to be in the same zone.
Expand Down Expand Up @@ -1561,8 +1561,9 @@ class GalleryImage(Resource):
**Linux**. Possible values include: 'Windows', 'Linux'
:type os_type: str or
~azure.mgmt.compute.v2019_03_01.models.OperatingSystemTypes
:param os_state: Required. The allowed values for OS State are
'Generalized'. Possible values include: 'Generalized', 'Specialized'
:param os_state: Required. This property allows the user to specify
whether the virtual machines created under this image are 'Generalized' or
'Specialized'. Possible values include: 'Generalized', 'Specialized'
:type os_state: str or
~azure.mgmt.compute.v2019_03_01.models.OperatingSystemStateTypes
:param end_of_life_date: The end of life date of the gallery Image
Expand Down Expand Up @@ -1791,7 +1792,7 @@ def __init__(self, **kwargs):


class GalleryImageVersionStorageProfile(Model):
"""This is the storage profile of a gallery Image Version.
"""This is the storage profile of a Gallery Image Version.

Variables are only populated by the server, and will be ignored when
sending a request.
Expand Down Expand Up @@ -3633,6 +3634,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 +3815,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 @@ -4216,8 +4260,20 @@ class VirtualMachine(Resource):
maintenance for virtual machines in
Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)
<br><br> Currently, a VM can only be added to availability set at creation
time. An existing VM cannot be added to an availability set.
time. An existing VM cannot be added to an availability set. <br><br>This
property cannot exist along with a non-null
properties.virtualMachineScaleSet reference.
:type availability_set: ~azure.mgmt.compute.v2019_03_01.models.SubResource
:param virtual_machine_scale_set: Specifies information about the virtual
machine scale set that the virtual machine should be assigned to. Virtual
machines specified in the same virtual machine scale set are allocated to
different nodes to maximize availability. Currently, a VM can only be
added to virtual machine scale set at creation time. An existing VM cannot
be added to a virtual machine scale set. <br><br>This property cannot
exist along with a non-null properties.availabilitySet reference.
<br><br>Minimum api‐version: 2019‐03‐01
:type virtual_machine_scale_set:
~azure.mgmt.compute.v2019_03_01.models.SubResource
:param proximity_placement_group: Specifies information about the
proximity placement group that the virtual machine should be assigned to.
<br><br>Minimum api-version: 2018-04-01.
Expand Down Expand Up @@ -4281,6 +4337,7 @@ class VirtualMachine(Resource):
'network_profile': {'key': 'properties.networkProfile', 'type': 'NetworkProfile'},
'diagnostics_profile': {'key': 'properties.diagnosticsProfile', 'type': 'DiagnosticsProfile'},
'availability_set': {'key': 'properties.availabilitySet', 'type': 'SubResource'},
'virtual_machine_scale_set': {'key': 'properties.virtualMachineScaleSet', 'type': 'SubResource'},
'proximity_placement_group': {'key': 'properties.proximityPlacementGroup', 'type': 'SubResource'},
'host': {'key': 'properties.host', 'type': 'SubResource'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
Expand All @@ -4302,6 +4359,7 @@ def __init__(self, **kwargs):
self.network_profile = kwargs.get('network_profile', None)
self.diagnostics_profile = kwargs.get('diagnostics_profile', None)
self.availability_set = kwargs.get('availability_set', None)
self.virtual_machine_scale_set = kwargs.get('virtual_machine_scale_set', None)
self.proximity_placement_group = kwargs.get('proximity_placement_group', None)
self.host = kwargs.get('host', None)
self.provisioning_state = None
Expand Down Expand Up @@ -4857,6 +4915,9 @@ class VirtualMachineImage(VirtualMachineImageResource):
:param automatic_os_upgrade_properties:
:type automatic_os_upgrade_properties:
~azure.mgmt.compute.v2019_03_01.models.AutomaticOSUpgradeProperties
:param hyper_vgeneration: Possible values include: 'V1', 'V2'
:type hyper_vgeneration: str or
~azure.mgmt.compute.v2019_03_01.models.HyperVGenerationTypes
"""

_validation = {
Expand All @@ -4873,6 +4934,7 @@ class VirtualMachineImage(VirtualMachineImageResource):
'os_disk_image': {'key': 'properties.osDiskImage', 'type': 'OSDiskImage'},
'data_disk_images': {'key': 'properties.dataDiskImages', 'type': '[DataDiskImage]'},
'automatic_os_upgrade_properties': {'key': 'properties.automaticOSUpgradeProperties', 'type': 'AutomaticOSUpgradeProperties'},
'hyper_vgeneration': {'key': 'properties.hyperVGeneration', 'type': 'str'},
}

def __init__(self, **kwargs):
Expand All @@ -4881,6 +4943,7 @@ def __init__(self, **kwargs):
self.os_disk_image = kwargs.get('os_disk_image', None)
self.data_disk_images = kwargs.get('data_disk_images', None)
self.automatic_os_upgrade_properties = kwargs.get('automatic_os_upgrade_properties', None)
self.hyper_vgeneration = kwargs.get('hyper_vgeneration', None)


class VirtualMachineInstanceView(Model):
Expand Down Expand Up @@ -6336,6 +6399,10 @@ class VirtualMachineScaleSetUpdateVMProfile(Model):
:param license_type: The license type, which is for bring your own license
scenario.
:type license_type: str
: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 @@ -6345,6 +6412,7 @@ class VirtualMachineScaleSetUpdateVMProfile(Model):
'diagnostics_profile': {'key': 'diagnosticsProfile', 'type': 'DiagnosticsProfile'},
'extension_profile': {'key': 'extensionProfile', 'type': 'VirtualMachineScaleSetExtensionProfile'},
'license_type': {'key': 'licenseType', 'type': 'str'},
'scheduled_events_profile': {'key': 'scheduledEventsProfile', 'type': 'ScheduledEventsProfile'},
}

def __init__(self, **kwargs):
Expand All @@ -6355,6 +6423,7 @@ def __init__(self, **kwargs):
self.diagnostics_profile = kwargs.get('diagnostics_profile', None)
self.extension_profile = kwargs.get('extension_profile', None)
self.license_type = kwargs.get('license_type', None)
self.scheduled_events_profile = kwargs.get('scheduled_events_profile', None)


class VirtualMachineScaleSetVM(Resource):
Expand Down Expand Up @@ -6736,6 +6805,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 +6820,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 +6833,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 Expand Up @@ -6903,8 +6978,20 @@ class VirtualMachineUpdate(UpdateResource):
maintenance for virtual machines in
Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)
<br><br> Currently, a VM can only be added to availability set at creation
time. An existing VM cannot be added to an availability set.
time. An existing VM cannot be added to an availability set. <br><br>This
property cannot exist along with a non-null
properties.virtualMachineScaleSet reference.
:type availability_set: ~azure.mgmt.compute.v2019_03_01.models.SubResource
:param virtual_machine_scale_set: Specifies information about the virtual
machine scale set that the virtual machine should be assigned to. Virtual
machines specified in the same virtual machine scale set are allocated to
different nodes to maximize availability. Currently, a VM can only be
added to virtual machine scale set at creation time. An existing VM cannot
be added to a virtual machine scale set. <br><br>This property cannot
exist along with a non-null properties.availabilitySet reference.
<br><br>Minimum api‐version: 2019‐03‐01
:type virtual_machine_scale_set:
~azure.mgmt.compute.v2019_03_01.models.SubResource
:param proximity_placement_group: Specifies information about the
proximity placement group that the virtual machine should be assigned to.
<br><br>Minimum api-version: 2018-04-01.
Expand Down Expand Up @@ -6956,6 +7043,7 @@ class VirtualMachineUpdate(UpdateResource):
'network_profile': {'key': 'properties.networkProfile', 'type': 'NetworkProfile'},
'diagnostics_profile': {'key': 'properties.diagnosticsProfile', 'type': 'DiagnosticsProfile'},
'availability_set': {'key': 'properties.availabilitySet', 'type': 'SubResource'},
'virtual_machine_scale_set': {'key': 'properties.virtualMachineScaleSet', 'type': 'SubResource'},
'proximity_placement_group': {'key': 'properties.proximityPlacementGroup', 'type': 'SubResource'},
'host': {'key': 'properties.host', 'type': 'SubResource'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
Expand All @@ -6976,6 +7064,7 @@ def __init__(self, **kwargs):
self.network_profile = kwargs.get('network_profile', None)
self.diagnostics_profile = kwargs.get('diagnostics_profile', None)
self.availability_set = kwargs.get('availability_set', None)
self.virtual_machine_scale_set = kwargs.get('virtual_machine_scale_set', None)
self.proximity_placement_group = kwargs.get('proximity_placement_group', None)
self.host = kwargs.get('host', None)
self.provisioning_state = None
Expand Down
Loading