1package postgresql 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// CreateMode enumerates the values for create mode. 10type CreateMode string 11 12const ( 13 // CreateModeDefault ... 14 CreateModeDefault CreateMode = "Default" 15 // CreateModeGeoRestore ... 16 CreateModeGeoRestore CreateMode = "GeoRestore" 17 // CreateModePointInTimeRestore ... 18 CreateModePointInTimeRestore CreateMode = "PointInTimeRestore" 19 // CreateModeReplica ... 20 CreateModeReplica CreateMode = "Replica" 21 // CreateModeServerPropertiesForCreate ... 22 CreateModeServerPropertiesForCreate CreateMode = "ServerPropertiesForCreate" 23) 24 25// PossibleCreateModeValues returns an array of possible values for the CreateMode const type. 26func PossibleCreateModeValues() []CreateMode { 27 return []CreateMode{CreateModeDefault, CreateModeGeoRestore, CreateModePointInTimeRestore, CreateModeReplica, CreateModeServerPropertiesForCreate} 28} 29 30// GeoRedundantBackup enumerates the values for geo redundant backup. 31type GeoRedundantBackup string 32 33const ( 34 // Disabled ... 35 Disabled GeoRedundantBackup = "Disabled" 36 // Enabled ... 37 Enabled GeoRedundantBackup = "Enabled" 38) 39 40// PossibleGeoRedundantBackupValues returns an array of possible values for the GeoRedundantBackup const type. 41func PossibleGeoRedundantBackupValues() []GeoRedundantBackup { 42 return []GeoRedundantBackup{Disabled, Enabled} 43} 44 45// IdentityType enumerates the values for identity type. 46type IdentityType string 47 48const ( 49 // SystemAssigned ... 50 SystemAssigned IdentityType = "SystemAssigned" 51) 52 53// PossibleIdentityTypeValues returns an array of possible values for the IdentityType const type. 54func PossibleIdentityTypeValues() []IdentityType { 55 return []IdentityType{SystemAssigned} 56} 57 58// InfrastructureEncryption enumerates the values for infrastructure encryption. 59type InfrastructureEncryption string 60 61const ( 62 // InfrastructureEncryptionDisabled ... 63 InfrastructureEncryptionDisabled InfrastructureEncryption = "Disabled" 64 // InfrastructureEncryptionEnabled ... 65 InfrastructureEncryptionEnabled InfrastructureEncryption = "Enabled" 66) 67 68// PossibleInfrastructureEncryptionValues returns an array of possible values for the InfrastructureEncryption const type. 69func PossibleInfrastructureEncryptionValues() []InfrastructureEncryption { 70 return []InfrastructureEncryption{InfrastructureEncryptionDisabled, InfrastructureEncryptionEnabled} 71} 72 73// MinimalTLSVersionEnum enumerates the values for minimal tls version enum. 74type MinimalTLSVersionEnum string 75 76const ( 77 // TLS10 ... 78 TLS10 MinimalTLSVersionEnum = "TLS1_0" 79 // TLS11 ... 80 TLS11 MinimalTLSVersionEnum = "TLS1_1" 81 // TLS12 ... 82 TLS12 MinimalTLSVersionEnum = "TLS1_2" 83 // TLSEnforcementDisabled ... 84 TLSEnforcementDisabled MinimalTLSVersionEnum = "TLSEnforcementDisabled" 85) 86 87// PossibleMinimalTLSVersionEnumValues returns an array of possible values for the MinimalTLSVersionEnum const type. 88func PossibleMinimalTLSVersionEnumValues() []MinimalTLSVersionEnum { 89 return []MinimalTLSVersionEnum{TLS10, TLS11, TLS12, TLSEnforcementDisabled} 90} 91 92// OperationOrigin enumerates the values for operation origin. 93type OperationOrigin string 94 95const ( 96 // NotSpecified ... 97 NotSpecified OperationOrigin = "NotSpecified" 98 // System ... 99 System OperationOrigin = "system" 100 // User ... 101 User OperationOrigin = "user" 102) 103 104// PossibleOperationOriginValues returns an array of possible values for the OperationOrigin const type. 105func PossibleOperationOriginValues() []OperationOrigin { 106 return []OperationOrigin{NotSpecified, System, User} 107} 108 109// PrivateEndpointProvisioningState enumerates the values for private endpoint provisioning state. 110type PrivateEndpointProvisioningState string 111 112const ( 113 // Approving ... 114 Approving PrivateEndpointProvisioningState = "Approving" 115 // Dropping ... 116 Dropping PrivateEndpointProvisioningState = "Dropping" 117 // Failed ... 118 Failed PrivateEndpointProvisioningState = "Failed" 119 // Ready ... 120 Ready PrivateEndpointProvisioningState = "Ready" 121 // Rejecting ... 122 Rejecting PrivateEndpointProvisioningState = "Rejecting" 123) 124 125// PossiblePrivateEndpointProvisioningStateValues returns an array of possible values for the PrivateEndpointProvisioningState const type. 126func PossiblePrivateEndpointProvisioningStateValues() []PrivateEndpointProvisioningState { 127 return []PrivateEndpointProvisioningState{Approving, Dropping, Failed, Ready, Rejecting} 128} 129 130// PrivateLinkServiceConnectionStateActionsRequire enumerates the values for private link service connection 131// state actions require. 132type PrivateLinkServiceConnectionStateActionsRequire string 133 134const ( 135 // None ... 136 None PrivateLinkServiceConnectionStateActionsRequire = "None" 137) 138 139// PossiblePrivateLinkServiceConnectionStateActionsRequireValues returns an array of possible values for the PrivateLinkServiceConnectionStateActionsRequire const type. 140func PossiblePrivateLinkServiceConnectionStateActionsRequireValues() []PrivateLinkServiceConnectionStateActionsRequire { 141 return []PrivateLinkServiceConnectionStateActionsRequire{None} 142} 143 144// PrivateLinkServiceConnectionStateStatus enumerates the values for private link service connection state 145// status. 146type PrivateLinkServiceConnectionStateStatus string 147 148const ( 149 // Approved ... 150 Approved PrivateLinkServiceConnectionStateStatus = "Approved" 151 // Disconnected ... 152 Disconnected PrivateLinkServiceConnectionStateStatus = "Disconnected" 153 // Pending ... 154 Pending PrivateLinkServiceConnectionStateStatus = "Pending" 155 // Rejected ... 156 Rejected PrivateLinkServiceConnectionStateStatus = "Rejected" 157) 158 159// PossiblePrivateLinkServiceConnectionStateStatusValues returns an array of possible values for the PrivateLinkServiceConnectionStateStatus const type. 160func PossiblePrivateLinkServiceConnectionStateStatusValues() []PrivateLinkServiceConnectionStateStatus { 161 return []PrivateLinkServiceConnectionStateStatus{Approved, Disconnected, Pending, Rejected} 162} 163 164// PublicNetworkAccessEnum enumerates the values for public network access enum. 165type PublicNetworkAccessEnum string 166 167const ( 168 // PublicNetworkAccessEnumDisabled ... 169 PublicNetworkAccessEnumDisabled PublicNetworkAccessEnum = "Disabled" 170 // PublicNetworkAccessEnumEnabled ... 171 PublicNetworkAccessEnumEnabled PublicNetworkAccessEnum = "Enabled" 172) 173 174// PossiblePublicNetworkAccessEnumValues returns an array of possible values for the PublicNetworkAccessEnum const type. 175func PossiblePublicNetworkAccessEnumValues() []PublicNetworkAccessEnum { 176 return []PublicNetworkAccessEnum{PublicNetworkAccessEnumDisabled, PublicNetworkAccessEnumEnabled} 177} 178 179// ServerSecurityAlertPolicyState enumerates the values for server security alert policy state. 180type ServerSecurityAlertPolicyState string 181 182const ( 183 // ServerSecurityAlertPolicyStateDisabled ... 184 ServerSecurityAlertPolicyStateDisabled ServerSecurityAlertPolicyState = "Disabled" 185 // ServerSecurityAlertPolicyStateEnabled ... 186 ServerSecurityAlertPolicyStateEnabled ServerSecurityAlertPolicyState = "Enabled" 187) 188 189// PossibleServerSecurityAlertPolicyStateValues returns an array of possible values for the ServerSecurityAlertPolicyState const type. 190func PossibleServerSecurityAlertPolicyStateValues() []ServerSecurityAlertPolicyState { 191 return []ServerSecurityAlertPolicyState{ServerSecurityAlertPolicyStateDisabled, ServerSecurityAlertPolicyStateEnabled} 192} 193 194// ServerState enumerates the values for server state. 195type ServerState string 196 197const ( 198 // ServerStateDisabled ... 199 ServerStateDisabled ServerState = "Disabled" 200 // ServerStateDropping ... 201 ServerStateDropping ServerState = "Dropping" 202 // ServerStateInaccessible ... 203 ServerStateInaccessible ServerState = "Inaccessible" 204 // ServerStateReady ... 205 ServerStateReady ServerState = "Ready" 206) 207 208// PossibleServerStateValues returns an array of possible values for the ServerState const type. 209func PossibleServerStateValues() []ServerState { 210 return []ServerState{ServerStateDisabled, ServerStateDropping, ServerStateInaccessible, ServerStateReady} 211} 212 213// ServerVersion enumerates the values for server version. 214type ServerVersion string 215 216const ( 217 // NineFullStopFive ... 218 NineFullStopFive ServerVersion = "9.5" 219 // NineFullStopSix ... 220 NineFullStopSix ServerVersion = "9.6" 221 // OneOne ... 222 OneOne ServerVersion = "11" 223 // OneZero ... 224 OneZero ServerVersion = "10" 225 // OneZeroFullStopTwo ... 226 OneZeroFullStopTwo ServerVersion = "10.2" 227 // OneZeroFullStopZero ... 228 OneZeroFullStopZero ServerVersion = "10.0" 229) 230 231// PossibleServerVersionValues returns an array of possible values for the ServerVersion const type. 232func PossibleServerVersionValues() []ServerVersion { 233 return []ServerVersion{NineFullStopFive, NineFullStopSix, OneOne, OneZero, OneZeroFullStopTwo, OneZeroFullStopZero} 234} 235 236// SkuTier enumerates the values for sku tier. 237type SkuTier string 238 239const ( 240 // Basic ... 241 Basic SkuTier = "Basic" 242 // GeneralPurpose ... 243 GeneralPurpose SkuTier = "GeneralPurpose" 244 // MemoryOptimized ... 245 MemoryOptimized SkuTier = "MemoryOptimized" 246) 247 248// PossibleSkuTierValues returns an array of possible values for the SkuTier const type. 249func PossibleSkuTierValues() []SkuTier { 250 return []SkuTier{Basic, GeneralPurpose, MemoryOptimized} 251} 252 253// SslEnforcementEnum enumerates the values for ssl enforcement enum. 254type SslEnforcementEnum string 255 256const ( 257 // SslEnforcementEnumDisabled ... 258 SslEnforcementEnumDisabled SslEnforcementEnum = "Disabled" 259 // SslEnforcementEnumEnabled ... 260 SslEnforcementEnumEnabled SslEnforcementEnum = "Enabled" 261) 262 263// PossibleSslEnforcementEnumValues returns an array of possible values for the SslEnforcementEnum const type. 264func PossibleSslEnforcementEnumValues() []SslEnforcementEnum { 265 return []SslEnforcementEnum{SslEnforcementEnumDisabled, SslEnforcementEnumEnabled} 266} 267 268// StorageAutogrow enumerates the values for storage autogrow. 269type StorageAutogrow string 270 271const ( 272 // StorageAutogrowDisabled ... 273 StorageAutogrowDisabled StorageAutogrow = "Disabled" 274 // StorageAutogrowEnabled ... 275 StorageAutogrowEnabled StorageAutogrow = "Enabled" 276) 277 278// PossibleStorageAutogrowValues returns an array of possible values for the StorageAutogrow const type. 279func PossibleStorageAutogrowValues() []StorageAutogrow { 280 return []StorageAutogrow{StorageAutogrowDisabled, StorageAutogrowEnabled} 281} 282 283// VirtualNetworkRuleState enumerates the values for virtual network rule state. 284type VirtualNetworkRuleState string 285 286const ( 287 // VirtualNetworkRuleStateDeleting ... 288 VirtualNetworkRuleStateDeleting VirtualNetworkRuleState = "Deleting" 289 // VirtualNetworkRuleStateInitializing ... 290 VirtualNetworkRuleStateInitializing VirtualNetworkRuleState = "Initializing" 291 // VirtualNetworkRuleStateInProgress ... 292 VirtualNetworkRuleStateInProgress VirtualNetworkRuleState = "InProgress" 293 // VirtualNetworkRuleStateReady ... 294 VirtualNetworkRuleStateReady VirtualNetworkRuleState = "Ready" 295 // VirtualNetworkRuleStateUnknown ... 296 VirtualNetworkRuleStateUnknown VirtualNetworkRuleState = "Unknown" 297) 298 299// PossibleVirtualNetworkRuleStateValues returns an array of possible values for the VirtualNetworkRuleState const type. 300func PossibleVirtualNetworkRuleStateValues() []VirtualNetworkRuleState { 301 return []VirtualNetworkRuleState{VirtualNetworkRuleStateDeleting, VirtualNetworkRuleStateInitializing, VirtualNetworkRuleStateInProgress, VirtualNetworkRuleStateReady, VirtualNetworkRuleStateUnknown} 302} 303