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// APIType enumerates the values for api type. 10type APIType string 11 12const ( 13 // APITypeCassandra ... 14 APITypeCassandra APIType = "Cassandra" 15 // APITypeGremlin ... 16 APITypeGremlin APIType = "Gremlin" 17 // APITypeGremlinV2 ... 18 APITypeGremlinV2 APIType = "GremlinV2" 19 // APITypeMongoDB ... 20 APITypeMongoDB APIType = "MongoDB" 21 // APITypeSQL ... 22 APITypeSQL APIType = "Sql" 23 // APITypeTable ... 24 APITypeTable APIType = "Table" 25) 26 27// PossibleAPITypeValues returns an array of possible values for the APIType const type. 28func PossibleAPITypeValues() []APIType { 29 return []APIType{APITypeCassandra, APITypeGremlin, APITypeGremlinV2, APITypeMongoDB, APITypeSQL, APITypeTable} 30} 31 32// AuthenticationMethod enumerates the values for authentication method. 33type AuthenticationMethod string 34 35const ( 36 // AuthenticationMethodCassandra ... 37 AuthenticationMethodCassandra AuthenticationMethod = "Cassandra" 38 // AuthenticationMethodNone ... 39 AuthenticationMethodNone AuthenticationMethod = "None" 40) 41 42// PossibleAuthenticationMethodValues returns an array of possible values for the AuthenticationMethod const type. 43func PossibleAuthenticationMethodValues() []AuthenticationMethod { 44 return []AuthenticationMethod{AuthenticationMethodCassandra, AuthenticationMethodNone} 45} 46 47// BackupPolicyType enumerates the values for backup policy type. 48type BackupPolicyType string 49 50const ( 51 // BackupPolicyTypeContinuous ... 52 BackupPolicyTypeContinuous BackupPolicyType = "Continuous" 53 // BackupPolicyTypePeriodic ... 54 BackupPolicyTypePeriodic BackupPolicyType = "Periodic" 55) 56 57// PossibleBackupPolicyTypeValues returns an array of possible values for the BackupPolicyType const type. 58func PossibleBackupPolicyTypeValues() []BackupPolicyType { 59 return []BackupPolicyType{BackupPolicyTypeContinuous, BackupPolicyTypePeriodic} 60} 61 62// BackupStorageRedundancy enumerates the values for backup storage redundancy. 63type BackupStorageRedundancy string 64 65const ( 66 // BackupStorageRedundancyGeo ... 67 BackupStorageRedundancyGeo BackupStorageRedundancy = "Geo" 68 // BackupStorageRedundancyLocal ... 69 BackupStorageRedundancyLocal BackupStorageRedundancy = "Local" 70 // BackupStorageRedundancyZone ... 71 BackupStorageRedundancyZone BackupStorageRedundancy = "Zone" 72) 73 74// PossibleBackupStorageRedundancyValues returns an array of possible values for the BackupStorageRedundancy const type. 75func PossibleBackupStorageRedundancyValues() []BackupStorageRedundancy { 76 return []BackupStorageRedundancy{BackupStorageRedundancyGeo, BackupStorageRedundancyLocal, BackupStorageRedundancyZone} 77} 78 79// CompositePathSortOrder enumerates the values for composite path sort order. 80type CompositePathSortOrder string 81 82const ( 83 // CompositePathSortOrderAscending ... 84 CompositePathSortOrderAscending CompositePathSortOrder = "ascending" 85 // CompositePathSortOrderDescending ... 86 CompositePathSortOrderDescending CompositePathSortOrder = "descending" 87) 88 89// PossibleCompositePathSortOrderValues returns an array of possible values for the CompositePathSortOrder const type. 90func PossibleCompositePathSortOrderValues() []CompositePathSortOrder { 91 return []CompositePathSortOrder{CompositePathSortOrderAscending, CompositePathSortOrderDescending} 92} 93 94// ConflictResolutionMode enumerates the values for conflict resolution mode. 95type ConflictResolutionMode string 96 97const ( 98 // ConflictResolutionModeCustom ... 99 ConflictResolutionModeCustom ConflictResolutionMode = "Custom" 100 // ConflictResolutionModeLastWriterWins ... 101 ConflictResolutionModeLastWriterWins ConflictResolutionMode = "LastWriterWins" 102) 103 104// PossibleConflictResolutionModeValues returns an array of possible values for the ConflictResolutionMode const type. 105func PossibleConflictResolutionModeValues() []ConflictResolutionMode { 106 return []ConflictResolutionMode{ConflictResolutionModeCustom, ConflictResolutionModeLastWriterWins} 107} 108 109// ConnectorOffer enumerates the values for connector offer. 110type ConnectorOffer string 111 112const ( 113 // ConnectorOfferSmall ... 114 ConnectorOfferSmall ConnectorOffer = "Small" 115) 116 117// PossibleConnectorOfferValues returns an array of possible values for the ConnectorOffer const type. 118func PossibleConnectorOfferValues() []ConnectorOffer { 119 return []ConnectorOffer{ConnectorOfferSmall} 120} 121 122// CreatedByType enumerates the values for created by type. 123type CreatedByType string 124 125const ( 126 // CreatedByTypeApplication ... 127 CreatedByTypeApplication CreatedByType = "Application" 128 // CreatedByTypeKey ... 129 CreatedByTypeKey CreatedByType = "Key" 130 // CreatedByTypeManagedIdentity ... 131 CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" 132 // CreatedByTypeUser ... 133 CreatedByTypeUser CreatedByType = "User" 134) 135 136// PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type. 137func PossibleCreatedByTypeValues() []CreatedByType { 138 return []CreatedByType{CreatedByTypeApplication, CreatedByTypeKey, CreatedByTypeManagedIdentity, CreatedByTypeUser} 139} 140 141// CreateMode enumerates the values for create mode. 142type CreateMode string 143 144const ( 145 // CreateModeDefault ... 146 CreateModeDefault CreateMode = "Default" 147 // CreateModeRestore ... 148 CreateModeRestore CreateMode = "Restore" 149) 150 151// PossibleCreateModeValues returns an array of possible values for the CreateMode const type. 152func PossibleCreateModeValues() []CreateMode { 153 return []CreateMode{CreateModeDefault, CreateModeRestore} 154} 155 156// CreateModeBasicDatabaseAccountCreateUpdateProperties enumerates the values for create mode basic database 157// account create update properties. 158type CreateModeBasicDatabaseAccountCreateUpdateProperties string 159 160const ( 161 // CreateModeBasicDatabaseAccountCreateUpdatePropertiesCreateModeDatabaseAccountCreateUpdateProperties ... 162 CreateModeBasicDatabaseAccountCreateUpdatePropertiesCreateModeDatabaseAccountCreateUpdateProperties CreateModeBasicDatabaseAccountCreateUpdateProperties = "DatabaseAccountCreateUpdateProperties" 163 // CreateModeBasicDatabaseAccountCreateUpdatePropertiesCreateModeDefault ... 164 CreateModeBasicDatabaseAccountCreateUpdatePropertiesCreateModeDefault CreateModeBasicDatabaseAccountCreateUpdateProperties = "Default" 165 // CreateModeBasicDatabaseAccountCreateUpdatePropertiesCreateModeRestore ... 166 CreateModeBasicDatabaseAccountCreateUpdatePropertiesCreateModeRestore CreateModeBasicDatabaseAccountCreateUpdateProperties = "Restore" 167) 168 169// PossibleCreateModeBasicDatabaseAccountCreateUpdatePropertiesValues returns an array of possible values for the CreateModeBasicDatabaseAccountCreateUpdateProperties const type. 170func PossibleCreateModeBasicDatabaseAccountCreateUpdatePropertiesValues() []CreateModeBasicDatabaseAccountCreateUpdateProperties { 171 return []CreateModeBasicDatabaseAccountCreateUpdateProperties{CreateModeBasicDatabaseAccountCreateUpdatePropertiesCreateModeDatabaseAccountCreateUpdateProperties, CreateModeBasicDatabaseAccountCreateUpdatePropertiesCreateModeDefault, CreateModeBasicDatabaseAccountCreateUpdatePropertiesCreateModeRestore} 172} 173 174// DatabaseAccountKind enumerates the values for database account kind. 175type DatabaseAccountKind string 176 177const ( 178 // DatabaseAccountKindGlobalDocumentDB ... 179 DatabaseAccountKindGlobalDocumentDB DatabaseAccountKind = "GlobalDocumentDB" 180 // DatabaseAccountKindMongoDB ... 181 DatabaseAccountKindMongoDB DatabaseAccountKind = "MongoDB" 182 // DatabaseAccountKindParse ... 183 DatabaseAccountKindParse DatabaseAccountKind = "Parse" 184) 185 186// PossibleDatabaseAccountKindValues returns an array of possible values for the DatabaseAccountKind const type. 187func PossibleDatabaseAccountKindValues() []DatabaseAccountKind { 188 return []DatabaseAccountKind{DatabaseAccountKindGlobalDocumentDB, DatabaseAccountKindMongoDB, DatabaseAccountKindParse} 189} 190 191// DatabaseAccountOfferType enumerates the values for database account offer type. 192type DatabaseAccountOfferType string 193 194const ( 195 // DatabaseAccountOfferTypeStandard ... 196 DatabaseAccountOfferTypeStandard DatabaseAccountOfferType = "Standard" 197) 198 199// PossibleDatabaseAccountOfferTypeValues returns an array of possible values for the DatabaseAccountOfferType const type. 200func PossibleDatabaseAccountOfferTypeValues() []DatabaseAccountOfferType { 201 return []DatabaseAccountOfferType{DatabaseAccountOfferTypeStandard} 202} 203 204// DataType enumerates the values for data type. 205type DataType string 206 207const ( 208 // DataTypeLineString ... 209 DataTypeLineString DataType = "LineString" 210 // DataTypeMultiPolygon ... 211 DataTypeMultiPolygon DataType = "MultiPolygon" 212 // DataTypeNumber ... 213 DataTypeNumber DataType = "Number" 214 // DataTypePoint ... 215 DataTypePoint DataType = "Point" 216 // DataTypePolygon ... 217 DataTypePolygon DataType = "Polygon" 218 // DataTypeString ... 219 DataTypeString DataType = "String" 220) 221 222// PossibleDataTypeValues returns an array of possible values for the DataType const type. 223func PossibleDataTypeValues() []DataType { 224 return []DataType{DataTypeLineString, DataTypeMultiPolygon, DataTypeNumber, DataTypePoint, DataTypePolygon, DataTypeString} 225} 226 227// DefaultConsistencyLevel enumerates the values for default consistency level. 228type DefaultConsistencyLevel string 229 230const ( 231 // DefaultConsistencyLevelBoundedStaleness ... 232 DefaultConsistencyLevelBoundedStaleness DefaultConsistencyLevel = "BoundedStaleness" 233 // DefaultConsistencyLevelConsistentPrefix ... 234 DefaultConsistencyLevelConsistentPrefix DefaultConsistencyLevel = "ConsistentPrefix" 235 // DefaultConsistencyLevelEventual ... 236 DefaultConsistencyLevelEventual DefaultConsistencyLevel = "Eventual" 237 // DefaultConsistencyLevelSession ... 238 DefaultConsistencyLevelSession DefaultConsistencyLevel = "Session" 239 // DefaultConsistencyLevelStrong ... 240 DefaultConsistencyLevelStrong DefaultConsistencyLevel = "Strong" 241) 242 243// PossibleDefaultConsistencyLevelValues returns an array of possible values for the DefaultConsistencyLevel const type. 244func PossibleDefaultConsistencyLevelValues() []DefaultConsistencyLevel { 245 return []DefaultConsistencyLevel{DefaultConsistencyLevelBoundedStaleness, DefaultConsistencyLevelConsistentPrefix, DefaultConsistencyLevelEventual, DefaultConsistencyLevelSession, DefaultConsistencyLevelStrong} 246} 247 248// IndexingMode enumerates the values for indexing mode. 249type IndexingMode string 250 251const ( 252 // IndexingModeConsistent ... 253 IndexingModeConsistent IndexingMode = "consistent" 254 // IndexingModeLazy ... 255 IndexingModeLazy IndexingMode = "lazy" 256 // IndexingModeNone ... 257 IndexingModeNone IndexingMode = "none" 258) 259 260// PossibleIndexingModeValues returns an array of possible values for the IndexingMode const type. 261func PossibleIndexingModeValues() []IndexingMode { 262 return []IndexingMode{IndexingModeConsistent, IndexingModeLazy, IndexingModeNone} 263} 264 265// IndexKind enumerates the values for index kind. 266type IndexKind string 267 268const ( 269 // IndexKindHash ... 270 IndexKindHash IndexKind = "Hash" 271 // IndexKindRange ... 272 IndexKindRange IndexKind = "Range" 273 // IndexKindSpatial ... 274 IndexKindSpatial IndexKind = "Spatial" 275) 276 277// PossibleIndexKindValues returns an array of possible values for the IndexKind const type. 278func PossibleIndexKindValues() []IndexKind { 279 return []IndexKind{IndexKindHash, IndexKindRange, IndexKindSpatial} 280} 281 282// KeyKind enumerates the values for key kind. 283type KeyKind string 284 285const ( 286 // KeyKindPrimary ... 287 KeyKindPrimary KeyKind = "primary" 288 // KeyKindPrimaryReadonly ... 289 KeyKindPrimaryReadonly KeyKind = "primaryReadonly" 290 // KeyKindSecondary ... 291 KeyKindSecondary KeyKind = "secondary" 292 // KeyKindSecondaryReadonly ... 293 KeyKindSecondaryReadonly KeyKind = "secondaryReadonly" 294) 295 296// PossibleKeyKindValues returns an array of possible values for the KeyKind const type. 297func PossibleKeyKindValues() []KeyKind { 298 return []KeyKind{KeyKindPrimary, KeyKindPrimaryReadonly, KeyKindSecondary, KeyKindSecondaryReadonly} 299} 300 301// ManagedCassandraProvisioningState enumerates the values for managed cassandra provisioning state. 302type ManagedCassandraProvisioningState string 303 304const ( 305 // ManagedCassandraProvisioningStateCanceled ... 306 ManagedCassandraProvisioningStateCanceled ManagedCassandraProvisioningState = "Canceled" 307 // ManagedCassandraProvisioningStateCreating ... 308 ManagedCassandraProvisioningStateCreating ManagedCassandraProvisioningState = "Creating" 309 // ManagedCassandraProvisioningStateDeleting ... 310 ManagedCassandraProvisioningStateDeleting ManagedCassandraProvisioningState = "Deleting" 311 // ManagedCassandraProvisioningStateFailed ... 312 ManagedCassandraProvisioningStateFailed ManagedCassandraProvisioningState = "Failed" 313 // ManagedCassandraProvisioningStateSucceeded ... 314 ManagedCassandraProvisioningStateSucceeded ManagedCassandraProvisioningState = "Succeeded" 315 // ManagedCassandraProvisioningStateUpdating ... 316 ManagedCassandraProvisioningStateUpdating ManagedCassandraProvisioningState = "Updating" 317) 318 319// PossibleManagedCassandraProvisioningStateValues returns an array of possible values for the ManagedCassandraProvisioningState const type. 320func PossibleManagedCassandraProvisioningStateValues() []ManagedCassandraProvisioningState { 321 return []ManagedCassandraProvisioningState{ManagedCassandraProvisioningStateCanceled, ManagedCassandraProvisioningStateCreating, ManagedCassandraProvisioningStateDeleting, ManagedCassandraProvisioningStateFailed, ManagedCassandraProvisioningStateSucceeded, ManagedCassandraProvisioningStateUpdating} 322} 323 324// NetworkACLBypass enumerates the values for network acl bypass. 325type NetworkACLBypass string 326 327const ( 328 // NetworkACLBypassAzureServices ... 329 NetworkACLBypassAzureServices NetworkACLBypass = "AzureServices" 330 // NetworkACLBypassNone ... 331 NetworkACLBypassNone NetworkACLBypass = "None" 332) 333 334// PossibleNetworkACLBypassValues returns an array of possible values for the NetworkACLBypass const type. 335func PossibleNetworkACLBypassValues() []NetworkACLBypass { 336 return []NetworkACLBypass{NetworkACLBypassAzureServices, NetworkACLBypassNone} 337} 338 339// NodeState enumerates the values for node state. 340type NodeState string 341 342const ( 343 // NodeStateJoining ... 344 NodeStateJoining NodeState = "Joining" 345 // NodeStateLeaving ... 346 NodeStateLeaving NodeState = "Leaving" 347 // NodeStateMoving ... 348 NodeStateMoving NodeState = "Moving" 349 // NodeStateNormal ... 350 NodeStateNormal NodeState = "Normal" 351 // NodeStateStopped ... 352 NodeStateStopped NodeState = "Stopped" 353) 354 355// PossibleNodeStateValues returns an array of possible values for the NodeState const type. 356func PossibleNodeStateValues() []NodeState { 357 return []NodeState{NodeStateJoining, NodeStateLeaving, NodeStateMoving, NodeStateNormal, NodeStateStopped} 358} 359 360// NodeStatus enumerates the values for node status. 361type NodeStatus string 362 363const ( 364 // NodeStatusDown ... 365 NodeStatusDown NodeStatus = "Down" 366 // NodeStatusUp ... 367 NodeStatusUp NodeStatus = "Up" 368) 369 370// PossibleNodeStatusValues returns an array of possible values for the NodeStatus const type. 371func PossibleNodeStatusValues() []NodeStatus { 372 return []NodeStatus{NodeStatusDown, NodeStatusUp} 373} 374 375// OperationType enumerates the values for operation type. 376type OperationType string 377 378const ( 379 // OperationTypeCreate ... 380 OperationTypeCreate OperationType = "Create" 381 // OperationTypeDelete ... 382 OperationTypeDelete OperationType = "Delete" 383 // OperationTypeReplace ... 384 OperationTypeReplace OperationType = "Replace" 385 // OperationTypeSystemOperation ... 386 OperationTypeSystemOperation OperationType = "SystemOperation" 387) 388 389// PossibleOperationTypeValues returns an array of possible values for the OperationType const type. 390func PossibleOperationTypeValues() []OperationType { 391 return []OperationType{OperationTypeCreate, OperationTypeDelete, OperationTypeReplace, OperationTypeSystemOperation} 392} 393 394// PartitionKind enumerates the values for partition kind. 395type PartitionKind string 396 397const ( 398 // PartitionKindHash ... 399 PartitionKindHash PartitionKind = "Hash" 400 // PartitionKindMultiHash ... 401 PartitionKindMultiHash PartitionKind = "MultiHash" 402 // PartitionKindRange ... 403 PartitionKindRange PartitionKind = "Range" 404) 405 406// PossiblePartitionKindValues returns an array of possible values for the PartitionKind const type. 407func PossiblePartitionKindValues() []PartitionKind { 408 return []PartitionKind{PartitionKindHash, PartitionKindMultiHash, PartitionKindRange} 409} 410 411// PrimaryAggregationType enumerates the values for primary aggregation type. 412type PrimaryAggregationType string 413 414const ( 415 // PrimaryAggregationTypeAverage ... 416 PrimaryAggregationTypeAverage PrimaryAggregationType = "Average" 417 // PrimaryAggregationTypeLast ... 418 PrimaryAggregationTypeLast PrimaryAggregationType = "Last" 419 // PrimaryAggregationTypeMaximum ... 420 PrimaryAggregationTypeMaximum PrimaryAggregationType = "Maximum" 421 // PrimaryAggregationTypeMinimum ... 422 PrimaryAggregationTypeMinimum PrimaryAggregationType = "Minimum" 423 // PrimaryAggregationTypeNone ... 424 PrimaryAggregationTypeNone PrimaryAggregationType = "None" 425 // PrimaryAggregationTypeTotal ... 426 PrimaryAggregationTypeTotal PrimaryAggregationType = "Total" 427) 428 429// PossiblePrimaryAggregationTypeValues returns an array of possible values for the PrimaryAggregationType const type. 430func PossiblePrimaryAggregationTypeValues() []PrimaryAggregationType { 431 return []PrimaryAggregationType{PrimaryAggregationTypeAverage, PrimaryAggregationTypeLast, PrimaryAggregationTypeMaximum, PrimaryAggregationTypeMinimum, PrimaryAggregationTypeNone, PrimaryAggregationTypeTotal} 432} 433 434// PublicNetworkAccess enumerates the values for public network access. 435type PublicNetworkAccess string 436 437const ( 438 // PublicNetworkAccessDisabled ... 439 PublicNetworkAccessDisabled PublicNetworkAccess = "Disabled" 440 // PublicNetworkAccessEnabled ... 441 PublicNetworkAccessEnabled PublicNetworkAccess = "Enabled" 442) 443 444// PossiblePublicNetworkAccessValues returns an array of possible values for the PublicNetworkAccess const type. 445func PossiblePublicNetworkAccessValues() []PublicNetworkAccess { 446 return []PublicNetworkAccess{PublicNetworkAccessDisabled, PublicNetworkAccessEnabled} 447} 448 449// ResourceIdentityType enumerates the values for resource identity type. 450type ResourceIdentityType string 451 452const ( 453 // ResourceIdentityTypeNone ... 454 ResourceIdentityTypeNone ResourceIdentityType = "None" 455 // ResourceIdentityTypeSystemAssigned ... 456 ResourceIdentityTypeSystemAssigned ResourceIdentityType = "SystemAssigned" 457 // ResourceIdentityTypeSystemAssignedUserAssigned ... 458 ResourceIdentityTypeSystemAssignedUserAssigned ResourceIdentityType = "SystemAssigned,UserAssigned" 459 // ResourceIdentityTypeUserAssigned ... 460 ResourceIdentityTypeUserAssigned ResourceIdentityType = "UserAssigned" 461) 462 463// PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type. 464func PossibleResourceIdentityTypeValues() []ResourceIdentityType { 465 return []ResourceIdentityType{ResourceIdentityTypeNone, ResourceIdentityTypeSystemAssigned, ResourceIdentityTypeSystemAssignedUserAssigned, ResourceIdentityTypeUserAssigned} 466} 467 468// RestoreMode enumerates the values for restore mode. 469type RestoreMode string 470 471const ( 472 // RestoreModePointInTime ... 473 RestoreModePointInTime RestoreMode = "PointInTime" 474) 475 476// PossibleRestoreModeValues returns an array of possible values for the RestoreMode const type. 477func PossibleRestoreModeValues() []RestoreMode { 478 return []RestoreMode{RestoreModePointInTime} 479} 480 481// RoleDefinitionType enumerates the values for role definition type. 482type RoleDefinitionType string 483 484const ( 485 // RoleDefinitionTypeBuiltInRole ... 486 RoleDefinitionTypeBuiltInRole RoleDefinitionType = "BuiltInRole" 487 // RoleDefinitionTypeCustomRole ... 488 RoleDefinitionTypeCustomRole RoleDefinitionType = "CustomRole" 489) 490 491// PossibleRoleDefinitionTypeValues returns an array of possible values for the RoleDefinitionType const type. 492func PossibleRoleDefinitionTypeValues() []RoleDefinitionType { 493 return []RoleDefinitionType{RoleDefinitionTypeBuiltInRole, RoleDefinitionTypeCustomRole} 494} 495 496// ServerVersion enumerates the values for server version. 497type ServerVersion string 498 499const ( 500 // ServerVersionFourFullStopZero ... 501 ServerVersionFourFullStopZero ServerVersion = "4.0" 502 // ServerVersionThreeFullStopSix ... 503 ServerVersionThreeFullStopSix ServerVersion = "3.6" 504 // ServerVersionThreeFullStopTwo ... 505 ServerVersionThreeFullStopTwo ServerVersion = "3.2" 506) 507 508// PossibleServerVersionValues returns an array of possible values for the ServerVersion const type. 509func PossibleServerVersionValues() []ServerVersion { 510 return []ServerVersion{ServerVersionFourFullStopZero, ServerVersionThreeFullStopSix, ServerVersionThreeFullStopTwo} 511} 512 513// SpatialType enumerates the values for spatial type. 514type SpatialType string 515 516const ( 517 // SpatialTypeLineString ... 518 SpatialTypeLineString SpatialType = "LineString" 519 // SpatialTypeMultiPolygon ... 520 SpatialTypeMultiPolygon SpatialType = "MultiPolygon" 521 // SpatialTypePoint ... 522 SpatialTypePoint SpatialType = "Point" 523 // SpatialTypePolygon ... 524 SpatialTypePolygon SpatialType = "Polygon" 525) 526 527// PossibleSpatialTypeValues returns an array of possible values for the SpatialType const type. 528func PossibleSpatialTypeValues() []SpatialType { 529 return []SpatialType{SpatialTypeLineString, SpatialTypeMultiPolygon, SpatialTypePoint, SpatialTypePolygon} 530} 531 532// TriggerOperation enumerates the values for trigger operation. 533type TriggerOperation string 534 535const ( 536 // TriggerOperationAll ... 537 TriggerOperationAll TriggerOperation = "All" 538 // TriggerOperationCreate ... 539 TriggerOperationCreate TriggerOperation = "Create" 540 // TriggerOperationDelete ... 541 TriggerOperationDelete TriggerOperation = "Delete" 542 // TriggerOperationReplace ... 543 TriggerOperationReplace TriggerOperation = "Replace" 544 // TriggerOperationUpdate ... 545 TriggerOperationUpdate TriggerOperation = "Update" 546) 547 548// PossibleTriggerOperationValues returns an array of possible values for the TriggerOperation const type. 549func PossibleTriggerOperationValues() []TriggerOperation { 550 return []TriggerOperation{TriggerOperationAll, TriggerOperationCreate, TriggerOperationDelete, TriggerOperationReplace, TriggerOperationUpdate} 551} 552 553// TriggerType enumerates the values for trigger type. 554type TriggerType string 555 556const ( 557 // TriggerTypePost ... 558 TriggerTypePost TriggerType = "Post" 559 // TriggerTypePre ... 560 TriggerTypePre TriggerType = "Pre" 561) 562 563// PossibleTriggerTypeValues returns an array of possible values for the TriggerType const type. 564func PossibleTriggerTypeValues() []TriggerType { 565 return []TriggerType{TriggerTypePost, TriggerTypePre} 566} 567 568// Type enumerates the values for type. 569type Type string 570 571const ( 572 // TypeBackupPolicy ... 573 TypeBackupPolicy Type = "BackupPolicy" 574 // TypeContinuous ... 575 TypeContinuous Type = "Continuous" 576 // TypePeriodic ... 577 TypePeriodic Type = "Periodic" 578) 579 580// PossibleTypeValues returns an array of possible values for the Type const type. 581func PossibleTypeValues() []Type { 582 return []Type{TypeBackupPolicy, TypeContinuous, TypePeriodic} 583} 584 585// UnitType enumerates the values for unit type. 586type UnitType string 587 588const ( 589 // UnitTypeBytes ... 590 UnitTypeBytes UnitType = "Bytes" 591 // UnitTypeBytesPerSecond ... 592 UnitTypeBytesPerSecond UnitType = "BytesPerSecond" 593 // UnitTypeCount ... 594 UnitTypeCount UnitType = "Count" 595 // UnitTypeCountPerSecond ... 596 UnitTypeCountPerSecond UnitType = "CountPerSecond" 597 // UnitTypeMilliseconds ... 598 UnitTypeMilliseconds UnitType = "Milliseconds" 599 // UnitTypePercent ... 600 UnitTypePercent UnitType = "Percent" 601 // UnitTypeSeconds ... 602 UnitTypeSeconds UnitType = "Seconds" 603) 604 605// PossibleUnitTypeValues returns an array of possible values for the UnitType const type. 606func PossibleUnitTypeValues() []UnitType { 607 return []UnitType{UnitTypeBytes, UnitTypeBytesPerSecond, UnitTypeCount, UnitTypeCountPerSecond, UnitTypeMilliseconds, UnitTypePercent, UnitTypeSeconds} 608} 609