Source code for azure.mgmt.compute.v2018_09_30.models._compute_management_client_enums

# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from enum import Enum, EnumMeta
from six import with_metaclass

class _CaseInsensitiveEnumMeta(EnumMeta):
    def __getitem__(self, name):
        return super().__getitem__(name.upper())

    def __getattr__(cls, name):
        """Return the enum member matching `name`
        We use __getattr__ instead of descriptors or inserting into the enum
        class' __dict__ in order to support `name` and `value` being both
        properties for enum members (which live in the class' __dict__) and
        enum members themselves.
        """
        try:
            return cls._member_map_[name.upper()]
        except KeyError:
            raise AttributeError(name)


[docs]class AccessLevel(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): NONE = "None" READ = "Read" WRITE = "Write"
[docs]class DiskCreateOption(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """This enumerates the possible sources of a disk's creation. """ EMPTY = "Empty" ATTACH = "Attach" FROM_IMAGE = "FromImage" IMPORT_ENUM = "Import" COPY = "Copy" RESTORE = "Restore" UPLOAD = "Upload"
[docs]class DiskState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The state of the disk. """ UNATTACHED = "Unattached" ATTACHED = "Attached" RESERVED = "Reserved" ACTIVE_SAS = "ActiveSAS" READY_TO_UPLOAD = "ReadyToUpload" ACTIVE_UPLOAD = "ActiveUpload"
[docs]class DiskStorageAccountTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The sku name. """ STANDARD_LRS = "Standard_LRS" PREMIUM_LRS = "Premium_LRS" STANDARD_SSD_LRS = "StandardSSD_LRS" ULTRA_SSD_LRS = "UltraSSD_LRS"
[docs]class HyperVGeneration(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The hypervisor generation of the Virtual Machine. Applicable to OS disks only. """ V1 = "V1" V2 = "V2"
[docs]class OperatingSystemTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The Operating System type. """ WINDOWS = "Windows" LINUX = "Linux"
[docs]class SnapshotStorageAccountTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The sku name. """ STANDARD_LRS = "Standard_LRS" PREMIUM_LRS = "Premium_LRS" STANDARD_ZRS = "Standard_ZRS"