1# coding=utf-8
2# --------------------------------------------------------------------------
3# Copyright (c) Microsoft Corporation. All rights reserved.
4# Licensed under the MIT License. See License.txt in the project root for license information.
5# Code generated by Microsoft (R) AutoRest Code Generator.
6# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7# --------------------------------------------------------------------------
8
9from enum import Enum, EnumMeta
10from six import with_metaclass
11
12class _CaseInsensitiveEnumMeta(EnumMeta):
13    def __getitem__(self, name):
14        return super().__getitem__(name.upper())
15
16    def __getattr__(cls, name):
17        """Return the enum member matching `name`
18        We use __getattr__ instead of descriptors or inserting into the enum
19        class' __dict__ in order to support `name` and `value` being both
20        properties for enum members (which live in the class' __dict__) and
21        enum members themselves.
22        """
23        try:
24            return cls._member_map_[name.upper()]
25        except KeyError:
26            raise AttributeError(name)
27
28
29class AnalyticalStorageSchemaType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
30    """Describes the types of schema for analytical storage.
31    """
32
33    WELL_DEFINED = "WellDefined"
34    FULL_FIDELITY = "FullFidelity"
35
36class ApiType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
37    """Enum to indicate the API type of the restorable database account.
38    """
39
40    MONGO_DB = "MongoDB"
41    GREMLIN = "Gremlin"
42    CASSANDRA = "Cassandra"
43    TABLE = "Table"
44    SQL = "Sql"
45    GREMLIN_V2 = "GremlinV2"
46
47class BackupPolicyMigrationStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
48    """Describes the status of migration between backup policy types.
49    """
50
51    INVALID = "Invalid"
52    IN_PROGRESS = "InProgress"
53    COMPLETED = "Completed"
54    FAILED = "Failed"
55
56class BackupPolicyType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
57    """Describes the mode of backups.
58    """
59
60    PERIODIC = "Periodic"
61    CONTINUOUS = "Continuous"
62
63class CompositePathSortOrder(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
64    """Sort order for composite paths.
65    """
66
67    ASCENDING = "ascending"
68    DESCENDING = "descending"
69
70class ConflictResolutionMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
71    """Indicates the conflict resolution mode.
72    """
73
74    LAST_WRITER_WINS = "LastWriterWins"
75    CUSTOM = "Custom"
76
77class ConnectorOffer(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
78    """The cassandra connector offer type for the Cosmos DB C* database account.
79    """
80
81    SMALL = "Small"
82
83class CreatedByType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
84    """The type of identity that created the resource.
85    """
86
87    USER = "User"
88    APPLICATION = "Application"
89    MANAGED_IDENTITY = "ManagedIdentity"
90    KEY = "Key"
91
92class CreateMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
93    """Enum to indicate the mode of account creation.
94    """
95
96    DEFAULT = "Default"
97    RESTORE = "Restore"
98
99class DatabaseAccountKind(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
100    """Indicates the type of database account. This can only be set at database account creation.
101    """
102
103    GLOBAL_DOCUMENT_DB = "GlobalDocumentDB"
104    MONGO_DB = "MongoDB"
105    PARSE = "Parse"
106
107class DataType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
108    """The datatype for which the indexing behavior is applied to.
109    """
110
111    STRING = "String"
112    NUMBER = "Number"
113    POINT = "Point"
114    POLYGON = "Polygon"
115    LINE_STRING = "LineString"
116    MULTI_POLYGON = "MultiPolygon"
117
118class DefaultConsistencyLevel(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
119    """The default consistency level and configuration settings of the Cosmos DB account.
120    """
121
122    EVENTUAL = "Eventual"
123    SESSION = "Session"
124    BOUNDED_STALENESS = "BoundedStaleness"
125    STRONG = "Strong"
126    CONSISTENT_PREFIX = "ConsistentPrefix"
127
128class IndexingMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
129    """Indicates the indexing mode.
130    """
131
132    CONSISTENT = "consistent"
133    LAZY = "lazy"
134    NONE = "none"
135
136class IndexKind(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
137    """Indicates the type of index.
138    """
139
140    HASH = "Hash"
141    RANGE = "Range"
142    SPATIAL = "Spatial"
143
144class KeyKind(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
145    """The access key to regenerate.
146    """
147
148    PRIMARY = "primary"
149    SECONDARY = "secondary"
150    PRIMARY_READONLY = "primaryReadonly"
151    SECONDARY_READONLY = "secondaryReadonly"
152
153class NetworkAclBypass(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
154    """Indicates what services are allowed to bypass firewall checks.
155    """
156
157    NONE = "None"
158    AZURE_SERVICES = "AzureServices"
159
160class NotebookWorkspaceName(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
161
162    DEFAULT = "default"
163
164class OperationType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
165    """Enum to indicate the operation type of the event.
166    """
167
168    CREATE = "Create"
169    REPLACE = "Replace"
170    DELETE = "Delete"
171    SYSTEM_OPERATION = "SystemOperation"
172
173class PartitionKind(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
174    """Indicates the kind of algorithm used for partitioning. For MultiHash, multiple partition keys
175    (upto three maximum) are supported for container create
176    """
177
178    HASH = "Hash"
179    RANGE = "Range"
180    MULTI_HASH = "MultiHash"
181
182class PrimaryAggregationType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
183    """The primary aggregation type of the metric.
184    """
185
186    NONE = "None"
187    AVERAGE = "Average"
188    TOTAL = "Total"
189    MINIMUM = "Minimum"
190    MAXIMUM = "Maximum"
191    LAST = "Last"
192
193class PublicNetworkAccess(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
194    """Whether requests from Public Network are allowed
195    """
196
197    ENABLED = "Enabled"
198    DISABLED = "Disabled"
199
200class ResourceIdentityType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
201    """The type of identity used for the resource. The type 'SystemAssigned,UserAssigned' includes
202    both an implicitly created identity and a set of user assigned identities. The type 'None' will
203    remove any identities from the service.
204    """
205
206    SYSTEM_ASSIGNED = "SystemAssigned"
207    USER_ASSIGNED = "UserAssigned"
208    SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned,UserAssigned"
209    NONE = "None"
210
211class RestoreMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
212    """Describes the mode of the restore.
213    """
214
215    POINT_IN_TIME = "PointInTime"
216
217class RoleDefinitionType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
218    """Indicates whether the Role Definition was built-in or user created.
219    """
220
221    BUILT_IN_ROLE = "BuiltInRole"
222    CUSTOM_ROLE = "CustomRole"
223
224class ServerVersion(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
225    """Describes the ServerVersion of an a MongoDB account.
226    """
227
228    THREE2 = "3.2"
229    THREE6 = "3.6"
230    FOUR0 = "4.0"
231
232class SpatialType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
233    """Indicates the spatial type of index.
234    """
235
236    POINT = "Point"
237    LINE_STRING = "LineString"
238    POLYGON = "Polygon"
239    MULTI_POLYGON = "MultiPolygon"
240
241class TriggerOperation(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
242    """The operation the trigger is associated with
243    """
244
245    ALL = "All"
246    CREATE = "Create"
247    UPDATE = "Update"
248    DELETE = "Delete"
249    REPLACE = "Replace"
250
251class TriggerType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
252    """Type of the Trigger
253    """
254
255    PRE = "Pre"
256    POST = "Post"
257
258class UnitType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
259    """The unit of the metric.
260    """
261
262    COUNT = "Count"
263    BYTES = "Bytes"
264    SECONDS = "Seconds"
265    PERCENT = "Percent"
266    COUNT_PER_SECOND = "CountPerSecond"
267    BYTES_PER_SECOND = "BytesPerSecond"
268    MILLISECONDS = "Milliseconds"
269