Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion src/azure-cli/azure/cli/command_modules/vm/_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

from azure.cli.command_modules.monitor.validators import validate_metric_dimension
from azure.cli.command_modules.monitor.actions import get_period_type
from ._vm_utils import RebootSetting, VMGuestPatchClassificationWindows, VMGuestPatchClassificationLinux


# pylint: disable=too-many-statements, too-many-branches, too-many-locals, too-many-lines
Expand All @@ -40,7 +41,6 @@ def load_arguments(self, _):
HyperVGenerationTypes = self.get_models('HyperVGenerationTypes')
DedicatedHostLicenseTypes = self.get_models('DedicatedHostLicenseTypes')
OrchestrationServiceNames, OrchestrationServiceStateAction = self.get_models('OrchestrationServiceNames', 'OrchestrationServiceStateAction', operation_group='virtual_machine_scale_sets')
RebootSetting, VMGuestPatchClassificationWindows, VMGuestPatchClassificationLinux = self.get_models('VMGuestPatchRebootSetting', 'VMGuestPatchClassificationWindows', 'VMGuestPatchClassificationLinux')
ReplicationMode = self.get_models('ReplicationMode', operation_group='gallery_image_versions')
DiskControllerTypes = self.get_models('DiskControllerTypes', operation_group='virtual_machines')

Expand Down
23 changes: 23 additions & 0 deletions src/azure-cli/azure/cli/command_modules/vm/_vm_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -780,3 +780,26 @@ class IdentityType(Enum):
USER_ASSIGNED = 'UserAssigned'
SYSTEM_ASSIGNED_USER_ASSIGNED = 'SystemAssigned, UserAssigned'
NONE = 'None'


class RebootSetting(Enum):
ALWAYS = 'Always'
IF_REQUIRED = 'IfRequired'
NEVER = 'Never'


class VMGuestPatchClassificationWindows(Enum):
CRITICAL = 'Critical'
DEFINITION = 'Definition'
FEATURE_PACK = 'FeaturePack'
SECURITY = 'Security'
SERVICE_PACK = 'ServicePack'
TOOLS = 'Tools'
UPDATES = 'Updates'
UPDATE_ROLL_UP = 'UpdateRollUp'


class VMGuestPatchClassificationLinux(Enum):
CRITICAL = 'Critical'
OTHER = 'Other'
SECURITY = 'Security'
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from ._deallocate import *
from ._delete import *
from ._generalize import *
from ._install_patches import *
from ._list import *
from ._list_all import *
from ._list_sizes import *
Expand Down
Loading
Loading