1package documentdb 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// 6// Code generated by Microsoft (R) AutoRest Code Generator. 7// Changes may cause incorrect behavior and will be lost if the code is regenerated. 8 9// AnalyticalStorageSchemaType enumerates the values for analytical storage schema type. 10type AnalyticalStorageSchemaType string 11 12const ( 13 // AnalyticalStorageSchemaTypeFullFidelity ... 14 AnalyticalStorageSchemaTypeFullFidelity AnalyticalStorageSchemaType = "FullFidelity" 15 // AnalyticalStorageSchemaTypeWellDefined ... 16 AnalyticalStorageSchemaTypeWellDefined AnalyticalStorageSchemaType = "WellDefined" 17) 18 19// PossibleAnalyticalStorageSchemaTypeValues returns an array of possible values for the AnalyticalStorageSchemaType const type. 20func PossibleAnalyticalStorageSchemaTypeValues() []AnalyticalStorageSchemaType { 21 return []AnalyticalStorageSchemaType{AnalyticalStorageSchemaTypeFullFidelity, AnalyticalStorageSchemaTypeWellDefined} 22} 23 24// BackupPolicyType enumerates the values for backup policy type. 25type BackupPolicyType string 26 27const ( 28 // BackupPolicyTypeContinuous ... 29 BackupPolicyTypeContinuous BackupPolicyType = "Continuous" 30 // BackupPolicyTypePeriodic ... 31 BackupPolicyTypePeriodic BackupPolicyType = "Periodic" 32) 33 34// PossibleBackupPolicyTypeValues returns an array of possible values for the BackupPolicyType const type. 35func PossibleBackupPolicyTypeValues() []BackupPolicyType { 36 return []BackupPolicyType{BackupPolicyTypeContinuous, BackupPolicyTypePeriodic} 37} 38 39// CompositePathSortOrder enumerates the values for composite path sort order. 40type CompositePathSortOrder string 41 42const ( 43 // CompositePathSortOrderAscending ... 44 CompositePathSortOrderAscending CompositePathSortOrder = "ascending" 45 // CompositePathSortOrderDescending ... 46 CompositePathSortOrderDescending CompositePathSortOrder = "descending" 47) 48 49// PossibleCompositePathSortOrderValues returns an array of possible values for the CompositePathSortOrder const type. 50func PossibleCompositePathSortOrderValues() []CompositePathSortOrder { 51 return []CompositePathSortOrder{CompositePathSortOrderAscending, CompositePathSortOrderDescending} 52} 53 54// ConflictResolutionMode enumerates the values for conflict resolution mode. 55type ConflictResolutionMode string 56 57const ( 58 // ConflictResolutionModeCustom ... 59 ConflictResolutionModeCustom ConflictResolutionMode = "Custom" 60 // ConflictResolutionModeLastWriterWins ... 61 ConflictResolutionModeLastWriterWins ConflictResolutionMode = "LastWriterWins" 62) 63 64// PossibleConflictResolutionModeValues returns an array of possible values for the ConflictResolutionMode const type. 65func PossibleConflictResolutionModeValues() []ConflictResolutionMode { 66 return []ConflictResolutionMode{ConflictResolutionModeCustom, ConflictResolutionModeLastWriterWins} 67} 68 69// ConnectorOffer enumerates the values for connector offer. 70type ConnectorOffer string 71 72const ( 73 // ConnectorOfferSmall ... 74 ConnectorOfferSmall ConnectorOffer = "Small" 75) 76 77// PossibleConnectorOfferValues returns an array of possible values for the ConnectorOffer const type. 78func PossibleConnectorOfferValues() []ConnectorOffer { 79 return []ConnectorOffer{ConnectorOfferSmall} 80} 81 82// DatabaseAccountKind enumerates the values for database account kind. 83type DatabaseAccountKind string 84 85const ( 86 // DatabaseAccountKindGlobalDocumentDB ... 87 DatabaseAccountKindGlobalDocumentDB DatabaseAccountKind = "GlobalDocumentDB" 88 // DatabaseAccountKindMongoDB ... 89 DatabaseAccountKindMongoDB DatabaseAccountKind = "MongoDB" 90 // DatabaseAccountKindParse ... 91 DatabaseAccountKindParse DatabaseAccountKind = "Parse" 92) 93 94// PossibleDatabaseAccountKindValues returns an array of possible values for the DatabaseAccountKind const type. 95func PossibleDatabaseAccountKindValues() []DatabaseAccountKind { 96 return []DatabaseAccountKind{DatabaseAccountKindGlobalDocumentDB, DatabaseAccountKindMongoDB, DatabaseAccountKindParse} 97} 98 99// DatabaseAccountOfferType enumerates the values for database account offer type. 100type DatabaseAccountOfferType string 101 102const ( 103 // DatabaseAccountOfferTypeStandard ... 104 DatabaseAccountOfferTypeStandard DatabaseAccountOfferType = "Standard" 105) 106 107// PossibleDatabaseAccountOfferTypeValues returns an array of possible values for the DatabaseAccountOfferType const type. 108func PossibleDatabaseAccountOfferTypeValues() []DatabaseAccountOfferType { 109 return []DatabaseAccountOfferType{DatabaseAccountOfferTypeStandard} 110} 111 112// DataType enumerates the values for data type. 113type DataType string 114 115const ( 116 // DataTypeLineString ... 117 DataTypeLineString DataType = "LineString" 118 // DataTypeMultiPolygon ... 119 DataTypeMultiPolygon DataType = "MultiPolygon" 120 // DataTypeNumber ... 121 DataTypeNumber DataType = "Number" 122 // DataTypePoint ... 123 DataTypePoint DataType = "Point" 124 // DataTypePolygon ... 125 DataTypePolygon DataType = "Polygon" 126 // DataTypeString ... 127 DataTypeString DataType = "String" 128) 129 130// PossibleDataTypeValues returns an array of possible values for the DataType const type. 131func PossibleDataTypeValues() []DataType { 132 return []DataType{DataTypeLineString, DataTypeMultiPolygon, DataTypeNumber, DataTypePoint, DataTypePolygon, DataTypeString} 133} 134 135// DefaultConsistencyLevel enumerates the values for default consistency level. 136type DefaultConsistencyLevel string 137 138const ( 139 // DefaultConsistencyLevelBoundedStaleness ... 140 DefaultConsistencyLevelBoundedStaleness DefaultConsistencyLevel = "BoundedStaleness" 141 // DefaultConsistencyLevelConsistentPrefix ... 142 DefaultConsistencyLevelConsistentPrefix DefaultConsistencyLevel = "ConsistentPrefix" 143 // DefaultConsistencyLevelEventual ... 144 DefaultConsistencyLevelEventual DefaultConsistencyLevel = "Eventual" 145 // DefaultConsistencyLevelSession ... 146 DefaultConsistencyLevelSession DefaultConsistencyLevel = "Session" 147 // DefaultConsistencyLevelStrong ... 148 DefaultConsistencyLevelStrong DefaultConsistencyLevel = "Strong" 149) 150 151// PossibleDefaultConsistencyLevelValues returns an array of possible values for the DefaultConsistencyLevel const type. 152func PossibleDefaultConsistencyLevelValues() []DefaultConsistencyLevel { 153 return []DefaultConsistencyLevel{DefaultConsistencyLevelBoundedStaleness, DefaultConsistencyLevelConsistentPrefix, DefaultConsistencyLevelEventual, DefaultConsistencyLevelSession, DefaultConsistencyLevelStrong} 154} 155 156// IndexingMode enumerates the values for indexing mode. 157type IndexingMode string 158 159const ( 160 // IndexingModeConsistent ... 161 IndexingModeConsistent IndexingMode = "consistent" 162 // IndexingModeLazy ... 163 IndexingModeLazy IndexingMode = "lazy" 164 // IndexingModeNone ... 165 IndexingModeNone IndexingMode = "none" 166) 167 168// PossibleIndexingModeValues returns an array of possible values for the IndexingMode const type. 169func PossibleIndexingModeValues() []IndexingMode { 170 return []IndexingMode{IndexingModeConsistent, IndexingModeLazy, IndexingModeNone} 171} 172 173// IndexKind enumerates the values for index kind. 174type IndexKind string 175 176const ( 177 // IndexKindHash ... 178 IndexKindHash IndexKind = "Hash" 179 // IndexKindRange ... 180 IndexKindRange IndexKind = "Range" 181 // IndexKindSpatial ... 182 IndexKindSpatial IndexKind = "Spatial" 183) 184 185// PossibleIndexKindValues returns an array of possible values for the IndexKind const type. 186func PossibleIndexKindValues() []IndexKind { 187 return []IndexKind{IndexKindHash, IndexKindRange, IndexKindSpatial} 188} 189 190// KeyKind enumerates the values for key kind. 191type KeyKind string 192 193const ( 194 // KeyKindPrimary ... 195 KeyKindPrimary KeyKind = "primary" 196 // KeyKindPrimaryReadonly ... 197 KeyKindPrimaryReadonly KeyKind = "primaryReadonly" 198 // KeyKindSecondary ... 199 KeyKindSecondary KeyKind = "secondary" 200 // KeyKindSecondaryReadonly ... 201 KeyKindSecondaryReadonly KeyKind = "secondaryReadonly" 202) 203 204// PossibleKeyKindValues returns an array of possible values for the KeyKind const type. 205func PossibleKeyKindValues() []KeyKind { 206 return []KeyKind{KeyKindPrimary, KeyKindPrimaryReadonly, KeyKindSecondary, KeyKindSecondaryReadonly} 207} 208 209// NetworkACLBypass enumerates the values for network acl bypass. 210type NetworkACLBypass string 211 212const ( 213 // NetworkACLBypassAzureServices ... 214 NetworkACLBypassAzureServices NetworkACLBypass = "AzureServices" 215 // NetworkACLBypassNone ... 216 NetworkACLBypassNone NetworkACLBypass = "None" 217) 218 219// PossibleNetworkACLBypassValues returns an array of possible values for the NetworkACLBypass const type. 220func PossibleNetworkACLBypassValues() []NetworkACLBypass { 221 return []NetworkACLBypass{NetworkACLBypassAzureServices, NetworkACLBypassNone} 222} 223 224// PartitionKind enumerates the values for partition kind. 225type PartitionKind string 226 227const ( 228 // PartitionKindHash ... 229 PartitionKindHash PartitionKind = "Hash" 230 // PartitionKindMultiHash ... 231 PartitionKindMultiHash PartitionKind = "MultiHash" 232 // PartitionKindRange ... 233 PartitionKindRange PartitionKind = "Range" 234) 235 236// PossiblePartitionKindValues returns an array of possible values for the PartitionKind const type. 237func PossiblePartitionKindValues() []PartitionKind { 238 return []PartitionKind{PartitionKindHash, PartitionKindMultiHash, PartitionKindRange} 239} 240 241// PrimaryAggregationType enumerates the values for primary aggregation type. 242type PrimaryAggregationType string 243 244const ( 245 // PrimaryAggregationTypeAverage ... 246 PrimaryAggregationTypeAverage PrimaryAggregationType = "Average" 247 // PrimaryAggregationTypeLast ... 248 PrimaryAggregationTypeLast PrimaryAggregationType = "Last" 249 // PrimaryAggregationTypeMaximum ... 250 PrimaryAggregationTypeMaximum PrimaryAggregationType = "Maximum" 251 // PrimaryAggregationTypeMinimum ... 252 PrimaryAggregationTypeMinimum PrimaryAggregationType = "Minimum" 253 // PrimaryAggregationTypeNone ... 254 PrimaryAggregationTypeNone PrimaryAggregationType = "None" 255 // PrimaryAggregationTypeTotal ... 256 PrimaryAggregationTypeTotal PrimaryAggregationType = "Total" 257) 258 259// PossiblePrimaryAggregationTypeValues returns an array of possible values for the PrimaryAggregationType const type. 260func PossiblePrimaryAggregationTypeValues() []PrimaryAggregationType { 261 return []PrimaryAggregationType{PrimaryAggregationTypeAverage, PrimaryAggregationTypeLast, PrimaryAggregationTypeMaximum, PrimaryAggregationTypeMinimum, PrimaryAggregationTypeNone, PrimaryAggregationTypeTotal} 262} 263 264// PublicNetworkAccess enumerates the values for public network access. 265type PublicNetworkAccess string 266 267const ( 268 // PublicNetworkAccessDisabled ... 269 PublicNetworkAccessDisabled PublicNetworkAccess = "Disabled" 270 // PublicNetworkAccessEnabled ... 271 PublicNetworkAccessEnabled PublicNetworkAccess = "Enabled" 272) 273 274// PossiblePublicNetworkAccessValues returns an array of possible values for the PublicNetworkAccess const type. 275func PossiblePublicNetworkAccessValues() []PublicNetworkAccess { 276 return []PublicNetworkAccess{PublicNetworkAccessDisabled, PublicNetworkAccessEnabled} 277} 278 279// ResourceIdentityType enumerates the values for resource identity type. 280type ResourceIdentityType string 281 282const ( 283 // ResourceIdentityTypeNone ... 284 ResourceIdentityTypeNone ResourceIdentityType = "None" 285 // ResourceIdentityTypeSystemAssigned ... 286 ResourceIdentityTypeSystemAssigned ResourceIdentityType = "SystemAssigned" 287 // ResourceIdentityTypeSystemAssignedUserAssigned ... 288 ResourceIdentityTypeSystemAssignedUserAssigned ResourceIdentityType = "SystemAssigned,UserAssigned" 289 // ResourceIdentityTypeUserAssigned ... 290 ResourceIdentityTypeUserAssigned ResourceIdentityType = "UserAssigned" 291) 292 293// PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type. 294func PossibleResourceIdentityTypeValues() []ResourceIdentityType { 295 return []ResourceIdentityType{ResourceIdentityTypeNone, ResourceIdentityTypeSystemAssigned, ResourceIdentityTypeSystemAssignedUserAssigned, ResourceIdentityTypeUserAssigned} 296} 297 298// RoleDefinitionType enumerates the values for role definition type. 299type RoleDefinitionType string 300 301const ( 302 // RoleDefinitionTypeBuiltInRole ... 303 RoleDefinitionTypeBuiltInRole RoleDefinitionType = "BuiltInRole" 304 // RoleDefinitionTypeCustomRole ... 305 RoleDefinitionTypeCustomRole RoleDefinitionType = "CustomRole" 306) 307 308// PossibleRoleDefinitionTypeValues returns an array of possible values for the RoleDefinitionType const type. 309func PossibleRoleDefinitionTypeValues() []RoleDefinitionType { 310 return []RoleDefinitionType{RoleDefinitionTypeBuiltInRole, RoleDefinitionTypeCustomRole} 311} 312 313// ServerVersion enumerates the values for server version. 314type ServerVersion string 315 316const ( 317 // ServerVersionFourFullStopZero ... 318 ServerVersionFourFullStopZero ServerVersion = "4.0" 319 // ServerVersionThreeFullStopSix ... 320 ServerVersionThreeFullStopSix ServerVersion = "3.6" 321 // ServerVersionThreeFullStopTwo ... 322 ServerVersionThreeFullStopTwo ServerVersion = "3.2" 323) 324 325// PossibleServerVersionValues returns an array of possible values for the ServerVersion const type. 326func PossibleServerVersionValues() []ServerVersion { 327 return []ServerVersion{ServerVersionFourFullStopZero, ServerVersionThreeFullStopSix, ServerVersionThreeFullStopTwo} 328} 329 330// SpatialType enumerates the values for spatial type. 331type SpatialType string 332 333const ( 334 // SpatialTypeLineString ... 335 SpatialTypeLineString SpatialType = "LineString" 336 // SpatialTypeMultiPolygon ... 337 SpatialTypeMultiPolygon SpatialType = "MultiPolygon" 338 // SpatialTypePoint ... 339 SpatialTypePoint SpatialType = "Point" 340 // SpatialTypePolygon ... 341 SpatialTypePolygon SpatialType = "Polygon" 342) 343 344// PossibleSpatialTypeValues returns an array of possible values for the SpatialType const type. 345func PossibleSpatialTypeValues() []SpatialType { 346 return []SpatialType{SpatialTypeLineString, SpatialTypeMultiPolygon, SpatialTypePoint, SpatialTypePolygon} 347} 348 349// TriggerOperation enumerates the values for trigger operation. 350type TriggerOperation string 351 352const ( 353 // TriggerOperationAll ... 354 TriggerOperationAll TriggerOperation = "All" 355 // TriggerOperationCreate ... 356 TriggerOperationCreate TriggerOperation = "Create" 357 // TriggerOperationDelete ... 358 TriggerOperationDelete TriggerOperation = "Delete" 359 // TriggerOperationReplace ... 360 TriggerOperationReplace TriggerOperation = "Replace" 361 // TriggerOperationUpdate ... 362 TriggerOperationUpdate TriggerOperation = "Update" 363) 364 365// PossibleTriggerOperationValues returns an array of possible values for the TriggerOperation const type. 366func PossibleTriggerOperationValues() []TriggerOperation { 367 return []TriggerOperation{TriggerOperationAll, TriggerOperationCreate, TriggerOperationDelete, TriggerOperationReplace, TriggerOperationUpdate} 368} 369 370// TriggerType enumerates the values for trigger type. 371type TriggerType string 372 373const ( 374 // TriggerTypePost ... 375 TriggerTypePost TriggerType = "Post" 376 // TriggerTypePre ... 377 TriggerTypePre TriggerType = "Pre" 378) 379 380// PossibleTriggerTypeValues returns an array of possible values for the TriggerType const type. 381func PossibleTriggerTypeValues() []TriggerType { 382 return []TriggerType{TriggerTypePost, TriggerTypePre} 383} 384 385// Type enumerates the values for type. 386type Type string 387 388const ( 389 // TypeBackupPolicy ... 390 TypeBackupPolicy Type = "BackupPolicy" 391 // TypeContinuous ... 392 TypeContinuous Type = "Continuous" 393 // TypePeriodic ... 394 TypePeriodic Type = "Periodic" 395) 396 397// PossibleTypeValues returns an array of possible values for the Type const type. 398func PossibleTypeValues() []Type { 399 return []Type{TypeBackupPolicy, TypeContinuous, TypePeriodic} 400} 401 402// UnitType enumerates the values for unit type. 403type UnitType string 404 405const ( 406 // UnitTypeBytes ... 407 UnitTypeBytes UnitType = "Bytes" 408 // UnitTypeBytesPerSecond ... 409 UnitTypeBytesPerSecond UnitType = "BytesPerSecond" 410 // UnitTypeCount ... 411 UnitTypeCount UnitType = "Count" 412 // UnitTypeCountPerSecond ... 413 UnitTypeCountPerSecond UnitType = "CountPerSecond" 414 // UnitTypeMilliseconds ... 415 UnitTypeMilliseconds UnitType = "Milliseconds" 416 // UnitTypePercent ... 417 UnitTypePercent UnitType = "Percent" 418 // UnitTypeSeconds ... 419 UnitTypeSeconds UnitType = "Seconds" 420) 421 422// PossibleUnitTypeValues returns an array of possible values for the UnitType const type. 423func PossibleUnitTypeValues() []UnitType { 424 return []UnitType{UnitTypeBytes, UnitTypeBytesPerSecond, UnitTypeCount, UnitTypeCountPerSecond, UnitTypeMilliseconds, UnitTypePercent, UnitTypeSeconds} 425} 426