1package apimanagement 2 3// Copyright (c) Microsoft and contributors. All rights reserved. 4// 5// Licensed under the Apache License, Version 2.0 (the "License"); 6// you may not use this file except in compliance with the License. 7// You may obtain a copy of the License at 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// 14// See the License for the specific language governing permissions and 15// limitations under the License. 16// 17// Code generated by Microsoft (R) AutoRest Code Generator. 18// Changes may cause incorrect behavior and will be lost if the code is regenerated. 19 20// APIProtocolContract enumerates the values for api protocol contract. 21type APIProtocolContract string 22 23const ( 24 // HTTP ... 25 HTTP APIProtocolContract = "Http" 26 // HTTPS ... 27 HTTPS APIProtocolContract = "Https" 28) 29 30// PossibleAPIProtocolContractValues returns an array of possible values for the APIProtocolContract const type. 31func PossibleAPIProtocolContractValues() []APIProtocolContract { 32 return []APIProtocolContract{HTTP, HTTPS} 33} 34 35// APITypeContract enumerates the values for api type contract. 36type APITypeContract string 37 38const ( 39 // APITypeContractHTTP ... 40 APITypeContractHTTP APITypeContract = "Http" 41 // APITypeContractSoap ... 42 APITypeContractSoap APITypeContract = "Soap" 43) 44 45// PossibleAPITypeContractValues returns an array of possible values for the APITypeContract const type. 46func PossibleAPITypeContractValues() []APITypeContract { 47 return []APITypeContract{APITypeContractHTTP, APITypeContractSoap} 48} 49 50// AsyncOperationState enumerates the values for async operation state. 51type AsyncOperationState string 52 53const ( 54 // Failed ... 55 Failed AsyncOperationState = "Failed" 56 // InProgress ... 57 InProgress AsyncOperationState = "InProgress" 58 // Started ... 59 Started AsyncOperationState = "Started" 60 // Succeeded ... 61 Succeeded AsyncOperationState = "Succeeded" 62) 63 64// PossibleAsyncOperationStateValues returns an array of possible values for the AsyncOperationState const type. 65func PossibleAsyncOperationStateValues() []AsyncOperationState { 66 return []AsyncOperationState{Failed, InProgress, Started, Succeeded} 67} 68 69// BackendProtocol enumerates the values for backend protocol. 70type BackendProtocol string 71 72const ( 73 // BackendProtocolHTTP ... 74 BackendProtocolHTTP BackendProtocol = "http" 75 // BackendProtocolSoap ... 76 BackendProtocolSoap BackendProtocol = "soap" 77) 78 79// PossibleBackendProtocolValues returns an array of possible values for the BackendProtocol const type. 80func PossibleBackendProtocolValues() []BackendProtocol { 81 return []BackendProtocol{BackendProtocolHTTP, BackendProtocolSoap} 82} 83 84// BearerTokenSendingMethodsContract enumerates the values for bearer token sending methods contract. 85type BearerTokenSendingMethodsContract string 86 87const ( 88 // AuthorizationHeader ... 89 AuthorizationHeader BearerTokenSendingMethodsContract = "authorizationHeader" 90 // Query ... 91 Query BearerTokenSendingMethodsContract = "query" 92) 93 94// PossibleBearerTokenSendingMethodsContractValues returns an array of possible values for the BearerTokenSendingMethodsContract const type. 95func PossibleBearerTokenSendingMethodsContractValues() []BearerTokenSendingMethodsContract { 96 return []BearerTokenSendingMethodsContract{AuthorizationHeader, Query} 97} 98 99// ClientAuthenticationMethodContract enumerates the values for client authentication method contract. 100type ClientAuthenticationMethodContract string 101 102const ( 103 // Basic ... 104 Basic ClientAuthenticationMethodContract = "Basic" 105 // Body ... 106 Body ClientAuthenticationMethodContract = "Body" 107) 108 109// PossibleClientAuthenticationMethodContractValues returns an array of possible values for the ClientAuthenticationMethodContract const type. 110func PossibleClientAuthenticationMethodContractValues() []ClientAuthenticationMethodContract { 111 return []ClientAuthenticationMethodContract{Basic, Body} 112} 113 114// ConnectivityStatusType enumerates the values for connectivity status type. 115type ConnectivityStatusType string 116 117const ( 118 // Failure ... 119 Failure ConnectivityStatusType = "failure" 120 // Initializing ... 121 Initializing ConnectivityStatusType = "initializing" 122 // Success ... 123 Success ConnectivityStatusType = "success" 124) 125 126// PossibleConnectivityStatusTypeValues returns an array of possible values for the ConnectivityStatusType const type. 127func PossibleConnectivityStatusTypeValues() []ConnectivityStatusType { 128 return []ConnectivityStatusType{Failure, Initializing, Success} 129} 130 131// GrantTypesContract enumerates the values for grant types contract. 132type GrantTypesContract string 133 134const ( 135 // AuthorizationCode ... 136 AuthorizationCode GrantTypesContract = "authorizationCode" 137 // ClientCredentials ... 138 ClientCredentials GrantTypesContract = "clientCredentials" 139 // Implicit ... 140 Implicit GrantTypesContract = "implicit" 141 // ResourceOwnerPassword ... 142 ResourceOwnerPassword GrantTypesContract = "resourceOwnerPassword" 143) 144 145// PossibleGrantTypesContractValues returns an array of possible values for the GrantTypesContract const type. 146func PossibleGrantTypesContractValues() []GrantTypesContract { 147 return []GrantTypesContract{AuthorizationCode, ClientCredentials, Implicit, ResourceOwnerPassword} 148} 149 150// GroupTypeContract enumerates the values for group type contract. 151type GroupTypeContract string 152 153const ( 154 // Custom ... 155 Custom GroupTypeContract = "Custom" 156 // External ... 157 External GroupTypeContract = "External" 158 // System ... 159 System GroupTypeContract = "System" 160) 161 162// PossibleGroupTypeContractValues returns an array of possible values for the GroupTypeContract const type. 163func PossibleGroupTypeContractValues() []GroupTypeContract { 164 return []GroupTypeContract{Custom, External, System} 165} 166 167// HostnameType enumerates the values for hostname type. 168type HostnameType string 169 170const ( 171 // Management ... 172 Management HostnameType = "Management" 173 // Portal ... 174 Portal HostnameType = "Portal" 175 // Proxy ... 176 Proxy HostnameType = "Proxy" 177 // Scm ... 178 Scm HostnameType = "Scm" 179) 180 181// PossibleHostnameTypeValues returns an array of possible values for the HostnameType const type. 182func PossibleHostnameTypeValues() []HostnameType { 183 return []HostnameType{Management, Portal, Proxy, Scm} 184} 185 186// HTTPStatusCode enumerates the values for http status code. 187type HTTPStatusCode string 188 189const ( 190 // Accepted ... 191 Accepted HTTPStatusCode = "Accepted" 192 // Conflict ... 193 Conflict HTTPStatusCode = "Conflict" 194 // Continue ... 195 Continue HTTPStatusCode = "Continue" 196 // Created ... 197 Created HTTPStatusCode = "Created" 198 // NotFound ... 199 NotFound HTTPStatusCode = "NotFound" 200 // OK ... 201 OK HTTPStatusCode = "OK" 202) 203 204// PossibleHTTPStatusCodeValues returns an array of possible values for the HTTPStatusCode const type. 205func PossibleHTTPStatusCodeValues() []HTTPStatusCode { 206 return []HTTPStatusCode{Accepted, Conflict, Continue, Created, NotFound, OK} 207} 208 209// IdentityProviderNameType enumerates the values for identity provider name type. 210type IdentityProviderNameType string 211 212const ( 213 // Aad ... 214 Aad IdentityProviderNameType = "aad" 215 // AadB2C ... 216 AadB2C IdentityProviderNameType = "aadB2C" 217 // Facebook ... 218 Facebook IdentityProviderNameType = "facebook" 219 // Google ... 220 Google IdentityProviderNameType = "google" 221 // Microsoft ... 222 Microsoft IdentityProviderNameType = "microsoft" 223 // Twitter ... 224 Twitter IdentityProviderNameType = "twitter" 225) 226 227// PossibleIdentityProviderNameTypeValues returns an array of possible values for the IdentityProviderNameType const type. 228func PossibleIdentityProviderNameTypeValues() []IdentityProviderNameType { 229 return []IdentityProviderNameType{Aad, AadB2C, Facebook, Google, Microsoft, Twitter} 230} 231 232// KeyTypeContract enumerates the values for key type contract. 233type KeyTypeContract string 234 235const ( 236 // Primary ... 237 Primary KeyTypeContract = "primary" 238 // Secondary ... 239 Secondary KeyTypeContract = "secondary" 240) 241 242// PossibleKeyTypeContractValues returns an array of possible values for the KeyTypeContract const type. 243func PossibleKeyTypeContractValues() []KeyTypeContract { 244 return []KeyTypeContract{Primary, Secondary} 245} 246 247// MethodContract enumerates the values for method contract. 248type MethodContract string 249 250const ( 251 // DELETE ... 252 DELETE MethodContract = "DELETE" 253 // GET ... 254 GET MethodContract = "GET" 255 // HEAD ... 256 HEAD MethodContract = "HEAD" 257 // OPTIONS ... 258 OPTIONS MethodContract = "OPTIONS" 259 // PATCH ... 260 PATCH MethodContract = "PATCH" 261 // POST ... 262 POST MethodContract = "POST" 263 // PUT ... 264 PUT MethodContract = "PUT" 265 // TRACE ... 266 TRACE MethodContract = "TRACE" 267) 268 269// PossibleMethodContractValues returns an array of possible values for the MethodContract const type. 270func PossibleMethodContractValues() []MethodContract { 271 return []MethodContract{DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT, TRACE} 272} 273 274// NameAvailabilityReason enumerates the values for name availability reason. 275type NameAvailabilityReason string 276 277const ( 278 // AlreadyExists ... 279 AlreadyExists NameAvailabilityReason = "AlreadyExists" 280 // Invalid ... 281 Invalid NameAvailabilityReason = "Invalid" 282 // Valid ... 283 Valid NameAvailabilityReason = "Valid" 284) 285 286// PossibleNameAvailabilityReasonValues returns an array of possible values for the NameAvailabilityReason const type. 287func PossibleNameAvailabilityReasonValues() []NameAvailabilityReason { 288 return []NameAvailabilityReason{AlreadyExists, Invalid, Valid} 289} 290 291// PolicyScopeContract enumerates the values for policy scope contract. 292type PolicyScopeContract string 293 294const ( 295 // PolicyScopeContractAll ... 296 PolicyScopeContractAll PolicyScopeContract = "All" 297 // PolicyScopeContractAPI ... 298 PolicyScopeContractAPI PolicyScopeContract = "Api" 299 // PolicyScopeContractOperation ... 300 PolicyScopeContractOperation PolicyScopeContract = "Operation" 301 // PolicyScopeContractProduct ... 302 PolicyScopeContractProduct PolicyScopeContract = "Product" 303 // PolicyScopeContractTenant ... 304 PolicyScopeContractTenant PolicyScopeContract = "Tenant" 305) 306 307// PossiblePolicyScopeContractValues returns an array of possible values for the PolicyScopeContract const type. 308func PossiblePolicyScopeContractValues() []PolicyScopeContract { 309 return []PolicyScopeContract{PolicyScopeContractAll, PolicyScopeContractAPI, PolicyScopeContractOperation, PolicyScopeContractProduct, PolicyScopeContractTenant} 310} 311 312// ProductStateContract enumerates the values for product state contract. 313type ProductStateContract string 314 315const ( 316 // NotPublished ... 317 NotPublished ProductStateContract = "NotPublished" 318 // Published ... 319 Published ProductStateContract = "Published" 320) 321 322// PossibleProductStateContractValues returns an array of possible values for the ProductStateContract const type. 323func PossibleProductStateContractValues() []ProductStateContract { 324 return []ProductStateContract{NotPublished, Published} 325} 326 327// ReportsAggregation enumerates the values for reports aggregation. 328type ReportsAggregation string 329 330const ( 331 // ByAPI ... 332 ByAPI ReportsAggregation = "byApi" 333 // ByGeo ... 334 ByGeo ReportsAggregation = "byGeo" 335 // ByOperation ... 336 ByOperation ReportsAggregation = "byOperation" 337 // ByProduct ... 338 ByProduct ReportsAggregation = "byProduct" 339 // BySubscription ... 340 BySubscription ReportsAggregation = "bySubscription" 341 // ByTime ... 342 ByTime ReportsAggregation = "byTime" 343 // ByUser ... 344 ByUser ReportsAggregation = "byUser" 345) 346 347// PossibleReportsAggregationValues returns an array of possible values for the ReportsAggregation const type. 348func PossibleReportsAggregationValues() []ReportsAggregation { 349 return []ReportsAggregation{ByAPI, ByGeo, ByOperation, ByProduct, BySubscription, ByTime, ByUser} 350} 351 352// SkuType enumerates the values for sku type. 353type SkuType string 354 355const ( 356 // Developer ... 357 Developer SkuType = "Developer" 358 // Premium ... 359 Premium SkuType = "Premium" 360 // Standard ... 361 Standard SkuType = "Standard" 362) 363 364// PossibleSkuTypeValues returns an array of possible values for the SkuType const type. 365func PossibleSkuTypeValues() []SkuType { 366 return []SkuType{Developer, Premium, Standard} 367} 368 369// SubscriptionStateContract enumerates the values for subscription state contract. 370type SubscriptionStateContract string 371 372const ( 373 // Active ... 374 Active SubscriptionStateContract = "Active" 375 // Cancelled ... 376 Cancelled SubscriptionStateContract = "Cancelled" 377 // Expired ... 378 Expired SubscriptionStateContract = "Expired" 379 // Rejected ... 380 Rejected SubscriptionStateContract = "Rejected" 381 // Submitted ... 382 Submitted SubscriptionStateContract = "Submitted" 383 // Suspended ... 384 Suspended SubscriptionStateContract = "Suspended" 385) 386 387// PossibleSubscriptionStateContractValues returns an array of possible values for the SubscriptionStateContract const type. 388func PossibleSubscriptionStateContractValues() []SubscriptionStateContract { 389 return []SubscriptionStateContract{Active, Cancelled, Expired, Rejected, Submitted, Suspended} 390} 391 392// UserStateContract enumerates the values for user state contract. 393type UserStateContract string 394 395const ( 396 // UserStateContractActive ... 397 UserStateContractActive UserStateContract = "Active" 398 // UserStateContractBlocked ... 399 UserStateContractBlocked UserStateContract = "Blocked" 400) 401 402// PossibleUserStateContractValues returns an array of possible values for the UserStateContract const type. 403func PossibleUserStateContractValues() []UserStateContract { 404 return []UserStateContract{UserStateContractActive, UserStateContractBlocked} 405} 406 407// VirtualNetworkType enumerates the values for virtual network type. 408type VirtualNetworkType string 409 410const ( 411 // VirtualNetworkTypeExternal ... 412 VirtualNetworkTypeExternal VirtualNetworkType = "External" 413 // VirtualNetworkTypeInternal ... 414 VirtualNetworkTypeInternal VirtualNetworkType = "Internal" 415 // VirtualNetworkTypeNone ... 416 VirtualNetworkTypeNone VirtualNetworkType = "None" 417) 418 419// PossibleVirtualNetworkTypeValues returns an array of possible values for the VirtualNetworkType const type. 420func PossibleVirtualNetworkTypeValues() []VirtualNetworkType { 421 return []VirtualNetworkType{VirtualNetworkTypeExternal, VirtualNetworkTypeInternal, VirtualNetworkTypeNone} 422} 423