package documentdb // 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. // BackupPolicyType enumerates the values for backup policy type. type BackupPolicyType string const ( // Continuous ... Continuous BackupPolicyType = "Continuous" // Periodic ... Periodic BackupPolicyType = "Periodic" ) // PossibleBackupPolicyTypeValues returns an array of possible values for the BackupPolicyType const type. func PossibleBackupPolicyTypeValues() []BackupPolicyType { return []BackupPolicyType{Continuous, Periodic} } // CompositePathSortOrder enumerates the values for composite path sort order. type CompositePathSortOrder string const ( // Ascending ... Ascending CompositePathSortOrder = "ascending" // Descending ... Descending CompositePathSortOrder = "descending" ) // PossibleCompositePathSortOrderValues returns an array of possible values for the CompositePathSortOrder const type. func PossibleCompositePathSortOrderValues() []CompositePathSortOrder { return []CompositePathSortOrder{Ascending, Descending} } // ConflictResolutionMode enumerates the values for conflict resolution mode. type ConflictResolutionMode string const ( // Custom ... Custom ConflictResolutionMode = "Custom" // LastWriterWins ... LastWriterWins ConflictResolutionMode = "LastWriterWins" ) // PossibleConflictResolutionModeValues returns an array of possible values for the ConflictResolutionMode const type. func PossibleConflictResolutionModeValues() []ConflictResolutionMode { return []ConflictResolutionMode{Custom, LastWriterWins} } // ConnectorOffer enumerates the values for connector offer. type ConnectorOffer string const ( // Small ... Small ConnectorOffer = "Small" ) // PossibleConnectorOfferValues returns an array of possible values for the ConnectorOffer const type. func PossibleConnectorOfferValues() []ConnectorOffer { return []ConnectorOffer{Small} } // DatabaseAccountKind enumerates the values for database account kind. type DatabaseAccountKind string const ( // GlobalDocumentDB ... GlobalDocumentDB DatabaseAccountKind = "GlobalDocumentDB" // MongoDB ... MongoDB DatabaseAccountKind = "MongoDB" // Parse ... Parse DatabaseAccountKind = "Parse" ) // PossibleDatabaseAccountKindValues returns an array of possible values for the DatabaseAccountKind const type. func PossibleDatabaseAccountKindValues() []DatabaseAccountKind { return []DatabaseAccountKind{GlobalDocumentDB, MongoDB, Parse} } // DatabaseAccountOfferType enumerates the values for database account offer type. type DatabaseAccountOfferType string const ( // Standard ... Standard DatabaseAccountOfferType = "Standard" ) // PossibleDatabaseAccountOfferTypeValues returns an array of possible values for the DatabaseAccountOfferType const type. func PossibleDatabaseAccountOfferTypeValues() []DatabaseAccountOfferType { return []DatabaseAccountOfferType{Standard} } // DataType enumerates the values for data type. type DataType string const ( // LineString ... LineString DataType = "LineString" // MultiPolygon ... MultiPolygon DataType = "MultiPolygon" // Number ... Number DataType = "Number" // Point ... Point DataType = "Point" // Polygon ... Polygon DataType = "Polygon" // String ... String DataType = "String" ) // PossibleDataTypeValues returns an array of possible values for the DataType const type. func PossibleDataTypeValues() []DataType { return []DataType{LineString, MultiPolygon, Number, Point, Polygon, String} } // DefaultConsistencyLevel enumerates the values for default consistency level. type DefaultConsistencyLevel string const ( // BoundedStaleness ... BoundedStaleness DefaultConsistencyLevel = "BoundedStaleness" // ConsistentPrefix ... ConsistentPrefix DefaultConsistencyLevel = "ConsistentPrefix" // Eventual ... Eventual DefaultConsistencyLevel = "Eventual" // Session ... Session DefaultConsistencyLevel = "Session" // Strong ... Strong DefaultConsistencyLevel = "Strong" ) // PossibleDefaultConsistencyLevelValues returns an array of possible values for the DefaultConsistencyLevel const type. func PossibleDefaultConsistencyLevelValues() []DefaultConsistencyLevel { return []DefaultConsistencyLevel{BoundedStaleness, ConsistentPrefix, Eventual, Session, Strong} } // IndexingMode enumerates the values for indexing mode. type IndexingMode string const ( // Consistent ... Consistent IndexingMode = "consistent" // Lazy ... Lazy IndexingMode = "lazy" // None ... None IndexingMode = "none" ) // PossibleIndexingModeValues returns an array of possible values for the IndexingMode const type. func PossibleIndexingModeValues() []IndexingMode { return []IndexingMode{Consistent, Lazy, None} } // IndexKind enumerates the values for index kind. type IndexKind string const ( // Hash ... Hash IndexKind = "Hash" // Range ... Range IndexKind = "Range" // Spatial ... Spatial IndexKind = "Spatial" ) // PossibleIndexKindValues returns an array of possible values for the IndexKind const type. func PossibleIndexKindValues() []IndexKind { return []IndexKind{Hash, Range, Spatial} } // KeyKind enumerates the values for key kind. type KeyKind string const ( // Primary ... Primary KeyKind = "primary" // PrimaryReadonly ... PrimaryReadonly KeyKind = "primaryReadonly" // Secondary ... Secondary KeyKind = "secondary" // SecondaryReadonly ... SecondaryReadonly KeyKind = "secondaryReadonly" ) // PossibleKeyKindValues returns an array of possible values for the KeyKind const type. func PossibleKeyKindValues() []KeyKind { return []KeyKind{Primary, PrimaryReadonly, Secondary, SecondaryReadonly} } // NetworkACLBypass enumerates the values for network acl bypass. type NetworkACLBypass string const ( // NetworkACLBypassAzureServices ... NetworkACLBypassAzureServices NetworkACLBypass = "AzureServices" // NetworkACLBypassNone ... NetworkACLBypassNone NetworkACLBypass = "None" ) // PossibleNetworkACLBypassValues returns an array of possible values for the NetworkACLBypass const type. func PossibleNetworkACLBypassValues() []NetworkACLBypass { return []NetworkACLBypass{NetworkACLBypassAzureServices, NetworkACLBypassNone} } // PartitionKind enumerates the values for partition kind. type PartitionKind string const ( // PartitionKindHash ... PartitionKindHash PartitionKind = "Hash" // PartitionKindMultiHash ... PartitionKindMultiHash PartitionKind = "MultiHash" // PartitionKindRange ... PartitionKindRange PartitionKind = "Range" ) // PossiblePartitionKindValues returns an array of possible values for the PartitionKind const type. func PossiblePartitionKindValues() []PartitionKind { return []PartitionKind{PartitionKindHash, PartitionKindMultiHash, PartitionKindRange} } // PrimaryAggregationType enumerates the values for primary aggregation type. type PrimaryAggregationType string const ( // PrimaryAggregationTypeAverage ... PrimaryAggregationTypeAverage PrimaryAggregationType = "Average" // PrimaryAggregationTypeLast ... PrimaryAggregationTypeLast PrimaryAggregationType = "Last" // PrimaryAggregationTypeMaximum ... PrimaryAggregationTypeMaximum PrimaryAggregationType = "Maximum" // PrimaryAggregationTypeMinimum ... PrimaryAggregationTypeMinimum PrimaryAggregationType = "Minimum" // PrimaryAggregationTypeNone ... PrimaryAggregationTypeNone PrimaryAggregationType = "None" // PrimaryAggregationTypeTotal ... PrimaryAggregationTypeTotal PrimaryAggregationType = "Total" ) // PossiblePrimaryAggregationTypeValues returns an array of possible values for the PrimaryAggregationType const type. func PossiblePrimaryAggregationTypeValues() []PrimaryAggregationType { return []PrimaryAggregationType{PrimaryAggregationTypeAverage, PrimaryAggregationTypeLast, PrimaryAggregationTypeMaximum, PrimaryAggregationTypeMinimum, PrimaryAggregationTypeNone, PrimaryAggregationTypeTotal} } // PublicNetworkAccess enumerates the values for public network access. type PublicNetworkAccess string const ( // Disabled ... Disabled PublicNetworkAccess = "Disabled" // Enabled ... Enabled PublicNetworkAccess = "Enabled" ) // PossiblePublicNetworkAccessValues returns an array of possible values for the PublicNetworkAccess const type. func PossiblePublicNetworkAccessValues() []PublicNetworkAccess { return []PublicNetworkAccess{Disabled, Enabled} } // ResourceIdentityType enumerates the values for resource identity type. type ResourceIdentityType string const ( // ResourceIdentityTypeNone ... ResourceIdentityTypeNone ResourceIdentityType = "None" // ResourceIdentityTypeSystemAssigned ... ResourceIdentityTypeSystemAssigned ResourceIdentityType = "SystemAssigned" // ResourceIdentityTypeSystemAssignedUserAssigned ... ResourceIdentityTypeSystemAssignedUserAssigned ResourceIdentityType = "SystemAssigned,UserAssigned" // ResourceIdentityTypeUserAssigned ... ResourceIdentityTypeUserAssigned ResourceIdentityType = "UserAssigned" ) // PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type. func PossibleResourceIdentityTypeValues() []ResourceIdentityType { return []ResourceIdentityType{ResourceIdentityTypeNone, ResourceIdentityTypeSystemAssigned, ResourceIdentityTypeSystemAssignedUserAssigned, ResourceIdentityTypeUserAssigned} } // ServerVersion enumerates the values for server version. type ServerVersion string const ( // FourFullStopZero ... FourFullStopZero ServerVersion = "4.0" // ThreeFullStopSix ... ThreeFullStopSix ServerVersion = "3.6" // ThreeFullStopTwo ... ThreeFullStopTwo ServerVersion = "3.2" ) // PossibleServerVersionValues returns an array of possible values for the ServerVersion const type. func PossibleServerVersionValues() []ServerVersion { return []ServerVersion{FourFullStopZero, ThreeFullStopSix, ThreeFullStopTwo} } // SpatialType enumerates the values for spatial type. type SpatialType string const ( // SpatialTypeLineString ... SpatialTypeLineString SpatialType = "LineString" // SpatialTypeMultiPolygon ... SpatialTypeMultiPolygon SpatialType = "MultiPolygon" // SpatialTypePoint ... SpatialTypePoint SpatialType = "Point" // SpatialTypePolygon ... SpatialTypePolygon SpatialType = "Polygon" ) // PossibleSpatialTypeValues returns an array of possible values for the SpatialType const type. func PossibleSpatialTypeValues() []SpatialType { return []SpatialType{SpatialTypeLineString, SpatialTypeMultiPolygon, SpatialTypePoint, SpatialTypePolygon} } // TriggerOperation enumerates the values for trigger operation. type TriggerOperation string const ( // All ... All TriggerOperation = "All" // Create ... Create TriggerOperation = "Create" // Delete ... Delete TriggerOperation = "Delete" // Replace ... Replace TriggerOperation = "Replace" // Update ... Update TriggerOperation = "Update" ) // PossibleTriggerOperationValues returns an array of possible values for the TriggerOperation const type. func PossibleTriggerOperationValues() []TriggerOperation { return []TriggerOperation{All, Create, Delete, Replace, Update} } // TriggerType enumerates the values for trigger type. type TriggerType string const ( // Post ... Post TriggerType = "Post" // Pre ... Pre TriggerType = "Pre" ) // PossibleTriggerTypeValues returns an array of possible values for the TriggerType const type. func PossibleTriggerTypeValues() []TriggerType { return []TriggerType{Post, Pre} } // Type enumerates the values for type. type Type string const ( // TypeBackupPolicy ... TypeBackupPolicy Type = "BackupPolicy" // TypeContinuous ... TypeContinuous Type = "Continuous" // TypePeriodic ... TypePeriodic Type = "Periodic" ) // PossibleTypeValues returns an array of possible values for the Type const type. func PossibleTypeValues() []Type { return []Type{TypeBackupPolicy, TypeContinuous, TypePeriodic} } // UnitType enumerates the values for unit type. type UnitType string const ( // Bytes ... Bytes UnitType = "Bytes" // BytesPerSecond ... BytesPerSecond UnitType = "BytesPerSecond" // Count ... Count UnitType = "Count" // CountPerSecond ... CountPerSecond UnitType = "CountPerSecond" // Milliseconds ... Milliseconds UnitType = "Milliseconds" // Percent ... Percent UnitType = "Percent" // Seconds ... Seconds UnitType = "Seconds" ) // PossibleUnitTypeValues returns an array of possible values for the UnitType const type. func PossibleUnitTypeValues() []UnitType { return []UnitType{Bytes, BytesPerSecond, Count, CountPerSecond, Milliseconds, Percent, Seconds} }