Source code for azure.mgmt.automation.models._automation_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 AgentRegistrationKeyName(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Gets or sets the agent registration key name - primary or secondary. """ PRIMARY = "primary" SECONDARY = "secondary"
[docs]class AutomationAccountState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Gets status of account. """ OK = "Ok" UNAVAILABLE = "Unavailable" SUSPENDED = "Suspended"
[docs]class AutomationKeyName(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Automation key name. """ PRIMARY = "Primary" SECONDARY = "Secondary"
[docs]class AutomationKeyPermissions(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Automation key permissions. """ READ = "Read" FULL = "Full"
[docs]class ContentSourceType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Gets or sets the content source type. """ EMBEDDED_CONTENT = "embeddedContent" URI = "uri"
[docs]class CountType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): STATUS = "status" NODECONFIGURATION = "nodeconfiguration"
[docs]class DscConfigurationState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Gets or sets the state of the configuration. """ NEW = "New" EDIT = "Edit" PUBLISHED = "Published"
[docs]class GroupTypeEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Type of the HybridWorkerGroup. """ USER = "User" SYSTEM = "System"
[docs]class HttpStatusCode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): CONTINUE_ENUM = "Continue" SWITCHING_PROTOCOLS = "SwitchingProtocols" OK = "OK" CREATED = "Created" ACCEPTED = "Accepted" NON_AUTHORITATIVE_INFORMATION = "NonAuthoritativeInformation" NO_CONTENT = "NoContent" RESET_CONTENT = "ResetContent" PARTIAL_CONTENT = "PartialContent" MULTIPLE_CHOICES = "MultipleChoices" AMBIGUOUS = "Ambiguous" MOVED_PERMANENTLY = "MovedPermanently" MOVED = "Moved" FOUND = "Found" REDIRECT = "Redirect" SEE_OTHER = "SeeOther" REDIRECT_METHOD = "RedirectMethod" NOT_MODIFIED = "NotModified" USE_PROXY = "UseProxy" UNUSED = "Unused" TEMPORARY_REDIRECT = "TemporaryRedirect" REDIRECT_KEEP_VERB = "RedirectKeepVerb" BAD_REQUEST = "BadRequest" UNAUTHORIZED = "Unauthorized" PAYMENT_REQUIRED = "PaymentRequired" FORBIDDEN = "Forbidden" NOT_FOUND = "NotFound" METHOD_NOT_ALLOWED = "MethodNotAllowed" NOT_ACCEPTABLE = "NotAcceptable" PROXY_AUTHENTICATION_REQUIRED = "ProxyAuthenticationRequired" REQUEST_TIMEOUT = "RequestTimeout" CONFLICT = "Conflict" GONE = "Gone" LENGTH_REQUIRED = "LengthRequired" PRECONDITION_FAILED = "PreconditionFailed" REQUEST_ENTITY_TOO_LARGE = "RequestEntityTooLarge" REQUEST_URI_TOO_LONG = "RequestUriTooLong" UNSUPPORTED_MEDIA_TYPE = "UnsupportedMediaType" REQUESTED_RANGE_NOT_SATISFIABLE = "RequestedRangeNotSatisfiable" EXPECTATION_FAILED = "ExpectationFailed" UPGRADE_REQUIRED = "UpgradeRequired" INTERNAL_SERVER_ERROR = "InternalServerError" NOT_IMPLEMENTED = "NotImplemented" BAD_GATEWAY = "BadGateway" SERVICE_UNAVAILABLE = "ServiceUnavailable" GATEWAY_TIMEOUT = "GatewayTimeout" HTTP_VERSION_NOT_SUPPORTED = "HttpVersionNotSupported"
[docs]class JobProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The provisioning state of the resource. """ FAILED = "Failed" SUCCEEDED = "Succeeded" SUSPENDED = "Suspended" PROCESSING = "Processing"
[docs]class JobStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Gets or sets the status of the job. """ NEW = "New" ACTIVATING = "Activating" RUNNING = "Running" COMPLETED = "Completed" FAILED = "Failed" STOPPED = "Stopped" BLOCKED = "Blocked" SUSPENDED = "Suspended" DISCONNECTED = "Disconnected" SUSPENDING = "Suspending" STOPPING = "Stopping" RESUMING = "Resuming" REMOVING = "Removing"
[docs]class JobStreamType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Gets or sets the stream type. """ PROGRESS = "Progress" OUTPUT = "Output" WARNING = "Warning" ERROR = "Error" DEBUG = "Debug" VERBOSE = "Verbose" ANY = "Any"
[docs]class LinuxUpdateClasses(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Update classifications included in the software update configuration. """ UNCLASSIFIED = "Unclassified" CRITICAL = "Critical" SECURITY = "Security" OTHER = "Other"
[docs]class ModuleProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Gets or sets the provisioning state of the module. """ CREATED = "Created" CREATING = "Creating" STARTING_IMPORT_MODULE_RUNBOOK = "StartingImportModuleRunbook" RUNNING_IMPORT_MODULE_RUNBOOK = "RunningImportModuleRunbook" CONTENT_RETRIEVED = "ContentRetrieved" CONTENT_DOWNLOADED = "ContentDownloaded" CONTENT_VALIDATED = "ContentValidated" CONNECTION_TYPE_IMPORTED = "ConnectionTypeImported" CONTENT_STORED = "ContentStored" MODULE_DATA_STORED = "ModuleDataStored" ACTIVITIES_STORED = "ActivitiesStored" MODULE_IMPORT_RUNBOOK_COMPLETE = "ModuleImportRunbookComplete" SUCCEEDED = "Succeeded" FAILED = "Failed" CANCELLED = "Cancelled" UPDATING = "Updating"
[docs]class OperatingSystemType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Target operating system for the software update configuration. """ WINDOWS = "Windows" LINUX = "Linux"
[docs]class ProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The provisioning state of the job. """ COMPLETED = "Completed" FAILED = "Failed" RUNNING = "Running"
[docs]class RunbookState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Gets or sets the state of the runbook. """ NEW = "New" EDIT = "Edit" PUBLISHED = "Published"
[docs]class RunbookTypeEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Gets or sets the type of the runbook. """ SCRIPT = "Script" GRAPH = "Graph" POWER_SHELL_WORKFLOW = "PowerShellWorkflow" POWER_SHELL = "PowerShell" GRAPH_POWER_SHELL_WORKFLOW = "GraphPowerShellWorkflow" GRAPH_POWER_SHELL = "GraphPowerShell"
[docs]class ScheduleDay(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Day of the occurrence. Must be one of monday, tuesday, wednesday, thursday, friday, saturday, sunday. """ MONDAY = "Monday" TUESDAY = "Tuesday" WEDNESDAY = "Wednesday" THURSDAY = "Thursday" FRIDAY = "Friday" SATURDAY = "Saturday" SUNDAY = "Sunday"
[docs]class ScheduleFrequency(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Gets or sets the frequency of the schedule. """ ONE_TIME = "OneTime" DAY = "Day" HOUR = "Hour" WEEK = "Week" MONTH = "Month" MINUTE = "Minute" #: The minimum allowed interval for Minute schedules is 15 minutes.
[docs]class SkuNameEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Gets or sets the SKU name of the account. """ FREE = "Free" BASIC = "Basic"
[docs]class SourceType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The source type. Must be one of VsoGit, VsoTfvc, GitHub. """ VSO_GIT = "VsoGit" VSO_TFVC = "VsoTfvc" GIT_HUB = "GitHub"
[docs]class StreamType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The type of the sync job stream. """ ERROR = "Error" OUTPUT = "Output"
[docs]class SyncType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The sync type. """ PARTIAL_SYNC = "PartialSync" FULL_SYNC = "FullSync"
[docs]class TagOperators(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Filter VMs by Any or All specified tags. """ ALL = "All" ANY = "Any"
[docs]class TokenType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The token type. Must be either PersonalAccessToken or Oauth. """ PERSONAL_ACCESS_TOKEN = "PersonalAccessToken" OAUTH = "Oauth"
[docs]class WindowsUpdateClasses(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Update classification included in the software update configuration. A comma separated string with required values """ UNCLASSIFIED = "Unclassified" CRITICAL = "Critical" SECURITY = "Security" UPDATE_ROLLUP = "UpdateRollup" FEATURE_PACK = "FeaturePack" SERVICE_PACK = "ServicePack" DEFINITION = "Definition" TOOLS = "Tools" UPDATES = "Updates"