1package storage 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// AccessTier enumerates the values for access tier. 10type AccessTier string 11 12const ( 13 // Cool ... 14 Cool AccessTier = "Cool" 15 // Hot ... 16 Hot AccessTier = "Hot" 17) 18 19// PossibleAccessTierValues returns an array of possible values for the AccessTier const type. 20func PossibleAccessTierValues() []AccessTier { 21 return []AccessTier{Cool, Hot} 22} 23 24// AccountStatus enumerates the values for account status. 25type AccountStatus string 26 27const ( 28 // Available ... 29 Available AccountStatus = "available" 30 // Unavailable ... 31 Unavailable AccountStatus = "unavailable" 32) 33 34// PossibleAccountStatusValues returns an array of possible values for the AccountStatus const type. 35func PossibleAccountStatusValues() []AccountStatus { 36 return []AccountStatus{Available, Unavailable} 37} 38 39// Action enumerates the values for action. 40type Action string 41 42const ( 43 // Allow ... 44 Allow Action = "Allow" 45) 46 47// PossibleActionValues returns an array of possible values for the Action const type. 48func PossibleActionValues() []Action { 49 return []Action{Allow} 50} 51 52// Bypass enumerates the values for bypass. 53type Bypass string 54 55const ( 56 // AzureServices ... 57 AzureServices Bypass = "AzureServices" 58 // Logging ... 59 Logging Bypass = "Logging" 60 // Metrics ... 61 Metrics Bypass = "Metrics" 62 // None ... 63 None Bypass = "None" 64) 65 66// PossibleBypassValues returns an array of possible values for the Bypass const type. 67func PossibleBypassValues() []Bypass { 68 return []Bypass{AzureServices, Logging, Metrics, None} 69} 70 71// DefaultAction enumerates the values for default action. 72type DefaultAction string 73 74const ( 75 // DefaultActionAllow ... 76 DefaultActionAllow DefaultAction = "Allow" 77 // DefaultActionDeny ... 78 DefaultActionDeny DefaultAction = "Deny" 79) 80 81// PossibleDefaultActionValues returns an array of possible values for the DefaultAction const type. 82func PossibleDefaultActionValues() []DefaultAction { 83 return []DefaultAction{DefaultActionAllow, DefaultActionDeny} 84} 85 86// HTTPProtocol enumerates the values for http protocol. 87type HTTPProtocol string 88 89const ( 90 // HTTPS ... 91 HTTPS HTTPProtocol = "https" 92 // Httpshttp ... 93 Httpshttp HTTPProtocol = "https,http" 94) 95 96// PossibleHTTPProtocolValues returns an array of possible values for the HTTPProtocol const type. 97func PossibleHTTPProtocolValues() []HTTPProtocol { 98 return []HTTPProtocol{HTTPS, Httpshttp} 99} 100 101// KeyPermission enumerates the values for key permission. 102type KeyPermission string 103 104const ( 105 // Full ... 106 Full KeyPermission = "Full" 107 // Read ... 108 Read KeyPermission = "Read" 109) 110 111// PossibleKeyPermissionValues returns an array of possible values for the KeyPermission const type. 112func PossibleKeyPermissionValues() []KeyPermission { 113 return []KeyPermission{Full, Read} 114} 115 116// KeySource enumerates the values for key source. 117type KeySource string 118 119const ( 120 // MicrosoftKeyvault ... 121 MicrosoftKeyvault KeySource = "Microsoft.Keyvault" 122 // MicrosoftStorage ... 123 MicrosoftStorage KeySource = "Microsoft.Storage" 124) 125 126// PossibleKeySourceValues returns an array of possible values for the KeySource const type. 127func PossibleKeySourceValues() []KeySource { 128 return []KeySource{MicrosoftKeyvault, MicrosoftStorage} 129} 130 131// Kind enumerates the values for kind. 132type Kind string 133 134const ( 135 // BlobStorage ... 136 BlobStorage Kind = "BlobStorage" 137 // Storage ... 138 Storage Kind = "Storage" 139 // StorageV2 ... 140 StorageV2 Kind = "StorageV2" 141) 142 143// PossibleKindValues returns an array of possible values for the Kind const type. 144func PossibleKindValues() []Kind { 145 return []Kind{BlobStorage, Storage, StorageV2} 146} 147 148// Permissions enumerates the values for permissions. 149type Permissions string 150 151const ( 152 // A ... 153 A Permissions = "a" 154 // C ... 155 C Permissions = "c" 156 // D ... 157 D Permissions = "d" 158 // L ... 159 L Permissions = "l" 160 // P ... 161 P Permissions = "p" 162 // R ... 163 R Permissions = "r" 164 // U ... 165 U Permissions = "u" 166 // W ... 167 W Permissions = "w" 168) 169 170// PossiblePermissionsValues returns an array of possible values for the Permissions const type. 171func PossiblePermissionsValues() []Permissions { 172 return []Permissions{A, C, D, L, P, R, U, W} 173} 174 175// ProvisioningState enumerates the values for provisioning state. 176type ProvisioningState string 177 178const ( 179 // Creating ... 180 Creating ProvisioningState = "Creating" 181 // ResolvingDNS ... 182 ResolvingDNS ProvisioningState = "ResolvingDNS" 183 // Succeeded ... 184 Succeeded ProvisioningState = "Succeeded" 185) 186 187// PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type. 188func PossibleProvisioningStateValues() []ProvisioningState { 189 return []ProvisioningState{Creating, ResolvingDNS, Succeeded} 190} 191 192// Reason enumerates the values for reason. 193type Reason string 194 195const ( 196 // AccountNameInvalid ... 197 AccountNameInvalid Reason = "AccountNameInvalid" 198 // AlreadyExists ... 199 AlreadyExists Reason = "AlreadyExists" 200) 201 202// PossibleReasonValues returns an array of possible values for the Reason const type. 203func PossibleReasonValues() []Reason { 204 return []Reason{AccountNameInvalid, AlreadyExists} 205} 206 207// ReasonCode enumerates the values for reason code. 208type ReasonCode string 209 210const ( 211 // NotAvailableForSubscription ... 212 NotAvailableForSubscription ReasonCode = "NotAvailableForSubscription" 213 // QuotaID ... 214 QuotaID ReasonCode = "QuotaId" 215) 216 217// PossibleReasonCodeValues returns an array of possible values for the ReasonCode const type. 218func PossibleReasonCodeValues() []ReasonCode { 219 return []ReasonCode{NotAvailableForSubscription, QuotaID} 220} 221 222// Services enumerates the values for services. 223type Services string 224 225const ( 226 // B ... 227 B Services = "b" 228 // F ... 229 F Services = "f" 230 // Q ... 231 Q Services = "q" 232 // T ... 233 T Services = "t" 234) 235 236// PossibleServicesValues returns an array of possible values for the Services const type. 237func PossibleServicesValues() []Services { 238 return []Services{B, F, Q, T} 239} 240 241// SignedResource enumerates the values for signed resource. 242type SignedResource string 243 244const ( 245 // SignedResourceB ... 246 SignedResourceB SignedResource = "b" 247 // SignedResourceC ... 248 SignedResourceC SignedResource = "c" 249 // SignedResourceF ... 250 SignedResourceF SignedResource = "f" 251 // SignedResourceS ... 252 SignedResourceS SignedResource = "s" 253) 254 255// PossibleSignedResourceValues returns an array of possible values for the SignedResource const type. 256func PossibleSignedResourceValues() []SignedResource { 257 return []SignedResource{SignedResourceB, SignedResourceC, SignedResourceF, SignedResourceS} 258} 259 260// SignedResourceTypes enumerates the values for signed resource types. 261type SignedResourceTypes string 262 263const ( 264 // SignedResourceTypesC ... 265 SignedResourceTypesC SignedResourceTypes = "c" 266 // SignedResourceTypesO ... 267 SignedResourceTypesO SignedResourceTypes = "o" 268 // SignedResourceTypesS ... 269 SignedResourceTypesS SignedResourceTypes = "s" 270) 271 272// PossibleSignedResourceTypesValues returns an array of possible values for the SignedResourceTypes const type. 273func PossibleSignedResourceTypesValues() []SignedResourceTypes { 274 return []SignedResourceTypes{SignedResourceTypesC, SignedResourceTypesO, SignedResourceTypesS} 275} 276 277// SkuName enumerates the values for sku name. 278type SkuName string 279 280const ( 281 // PremiumLRS ... 282 PremiumLRS SkuName = "Premium_LRS" 283 // StandardGRS ... 284 StandardGRS SkuName = "Standard_GRS" 285 // StandardLRS ... 286 StandardLRS SkuName = "Standard_LRS" 287 // StandardRAGRS ... 288 StandardRAGRS SkuName = "Standard_RAGRS" 289 // StandardZRS ... 290 StandardZRS SkuName = "Standard_ZRS" 291) 292 293// PossibleSkuNameValues returns an array of possible values for the SkuName const type. 294func PossibleSkuNameValues() []SkuName { 295 return []SkuName{PremiumLRS, StandardGRS, StandardLRS, StandardRAGRS, StandardZRS} 296} 297 298// SkuTier enumerates the values for sku tier. 299type SkuTier string 300 301const ( 302 // Premium ... 303 Premium SkuTier = "Premium" 304 // Standard ... 305 Standard SkuTier = "Standard" 306) 307 308// PossibleSkuTierValues returns an array of possible values for the SkuTier const type. 309func PossibleSkuTierValues() []SkuTier { 310 return []SkuTier{Premium, Standard} 311} 312 313// State enumerates the values for state. 314type State string 315 316const ( 317 // StateDeprovisioning ... 318 StateDeprovisioning State = "deprovisioning" 319 // StateFailed ... 320 StateFailed State = "failed" 321 // StateNetworkSourceDeleted ... 322 StateNetworkSourceDeleted State = "networkSourceDeleted" 323 // StateProvisioning ... 324 StateProvisioning State = "provisioning" 325 // StateSucceeded ... 326 StateSucceeded State = "succeeded" 327) 328 329// PossibleStateValues returns an array of possible values for the State const type. 330func PossibleStateValues() []State { 331 return []State{StateDeprovisioning, StateFailed, StateNetworkSourceDeleted, StateProvisioning, StateSucceeded} 332} 333 334// UsageUnit enumerates the values for usage unit. 335type UsageUnit string 336 337const ( 338 // Bytes ... 339 Bytes UsageUnit = "Bytes" 340 // BytesPerSecond ... 341 BytesPerSecond UsageUnit = "BytesPerSecond" 342 // Count ... 343 Count UsageUnit = "Count" 344 // CountsPerSecond ... 345 CountsPerSecond UsageUnit = "CountsPerSecond" 346 // Percent ... 347 Percent UsageUnit = "Percent" 348 // Seconds ... 349 Seconds UsageUnit = "Seconds" 350) 351 352// PossibleUsageUnitValues returns an array of possible values for the UsageUnit const type. 353func PossibleUsageUnitValues() []UsageUnit { 354 return []UsageUnit{Bytes, BytesPerSecond, Count, CountsPerSecond, Percent, Seconds} 355} 356