1package apimanagement 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// APIProtocolContract enumerates the values for api protocol contract. 10type APIProtocolContract string 11 12const ( 13 // HTTP ... 14 HTTP APIProtocolContract = "Http" 15 // HTTPS ... 16 HTTPS APIProtocolContract = "Https" 17) 18 19// PossibleAPIProtocolContractValues returns an array of possible values for the APIProtocolContract const type. 20func PossibleAPIProtocolContractValues() []APIProtocolContract { 21 return []APIProtocolContract{HTTP, HTTPS} 22} 23 24// APITypeContract enumerates the values for api type contract. 25type APITypeContract string 26 27const ( 28 // APITypeContractHTTP ... 29 APITypeContractHTTP APITypeContract = "Http" 30 // APITypeContractSoap ... 31 APITypeContractSoap APITypeContract = "Soap" 32) 33 34// PossibleAPITypeContractValues returns an array of possible values for the APITypeContract const type. 35func PossibleAPITypeContractValues() []APITypeContract { 36 return []APITypeContract{APITypeContractHTTP, APITypeContractSoap} 37} 38 39// AsyncOperationState enumerates the values for async operation state. 40type AsyncOperationState string 41 42const ( 43 // Failed ... 44 Failed AsyncOperationState = "Failed" 45 // InProgress ... 46 InProgress AsyncOperationState = "InProgress" 47 // Started ... 48 Started AsyncOperationState = "Started" 49 // Succeeded ... 50 Succeeded AsyncOperationState = "Succeeded" 51) 52 53// PossibleAsyncOperationStateValues returns an array of possible values for the AsyncOperationState const type. 54func PossibleAsyncOperationStateValues() []AsyncOperationState { 55 return []AsyncOperationState{Failed, InProgress, Started, Succeeded} 56} 57 58// BearerTokenSendingMethodsContract enumerates the values for bearer token sending methods contract. 59type BearerTokenSendingMethodsContract string 60 61const ( 62 // AuthorizationHeader ... 63 AuthorizationHeader BearerTokenSendingMethodsContract = "authorizationHeader" 64 // Query ... 65 Query BearerTokenSendingMethodsContract = "query" 66) 67 68// PossibleBearerTokenSendingMethodsContractValues returns an array of possible values for the BearerTokenSendingMethodsContract const type. 69func PossibleBearerTokenSendingMethodsContractValues() []BearerTokenSendingMethodsContract { 70 return []BearerTokenSendingMethodsContract{AuthorizationHeader, Query} 71} 72 73// ClientAuthenticationMethodContract enumerates the values for client authentication method contract. 74type ClientAuthenticationMethodContract string 75 76const ( 77 // Basic ... 78 Basic ClientAuthenticationMethodContract = "Basic" 79 // Body ... 80 Body ClientAuthenticationMethodContract = "Body" 81) 82 83// PossibleClientAuthenticationMethodContractValues returns an array of possible values for the ClientAuthenticationMethodContract const type. 84func PossibleClientAuthenticationMethodContractValues() []ClientAuthenticationMethodContract { 85 return []ClientAuthenticationMethodContract{Basic, Body} 86} 87 88// GrantTypesContract enumerates the values for grant types contract. 89type GrantTypesContract string 90 91const ( 92 // AuthorizationCode ... 93 AuthorizationCode GrantTypesContract = "authorizationCode" 94 // ClientCredentials ... 95 ClientCredentials GrantTypesContract = "clientCredentials" 96 // Implicit ... 97 Implicit GrantTypesContract = "implicit" 98 // ResourceOwnerPassword ... 99 ResourceOwnerPassword GrantTypesContract = "resourceOwnerPassword" 100) 101 102// PossibleGrantTypesContractValues returns an array of possible values for the GrantTypesContract const type. 103func PossibleGrantTypesContractValues() []GrantTypesContract { 104 return []GrantTypesContract{AuthorizationCode, ClientCredentials, Implicit, ResourceOwnerPassword} 105} 106 107// GroupTypeContract enumerates the values for group type contract. 108type GroupTypeContract string 109 110const ( 111 // Custom ... 112 Custom GroupTypeContract = "Custom" 113 // External ... 114 External GroupTypeContract = "External" 115 // System ... 116 System GroupTypeContract = "System" 117) 118 119// PossibleGroupTypeContractValues returns an array of possible values for the GroupTypeContract const type. 120func PossibleGroupTypeContractValues() []GroupTypeContract { 121 return []GroupTypeContract{Custom, External, System} 122} 123 124// HostnameType enumerates the values for hostname type. 125type HostnameType string 126 127const ( 128 // Management ... 129 Management HostnameType = "Management" 130 // Portal ... 131 Portal HostnameType = "Portal" 132 // Proxy ... 133 Proxy HostnameType = "Proxy" 134 // Scm ... 135 Scm HostnameType = "Scm" 136) 137 138// PossibleHostnameTypeValues returns an array of possible values for the HostnameType const type. 139func PossibleHostnameTypeValues() []HostnameType { 140 return []HostnameType{Management, Portal, Proxy, Scm} 141} 142 143// HTTPStatusCode enumerates the values for http status code. 144type HTTPStatusCode string 145 146const ( 147 // Accepted ... 148 Accepted HTTPStatusCode = "Accepted" 149 // Conflict ... 150 Conflict HTTPStatusCode = "Conflict" 151 // Continue ... 152 Continue HTTPStatusCode = "Continue" 153 // Created ... 154 Created HTTPStatusCode = "Created" 155 // NotFound ... 156 NotFound HTTPStatusCode = "NotFound" 157 // OK ... 158 OK HTTPStatusCode = "OK" 159) 160 161// PossibleHTTPStatusCodeValues returns an array of possible values for the HTTPStatusCode const type. 162func PossibleHTTPStatusCodeValues() []HTTPStatusCode { 163 return []HTTPStatusCode{Accepted, Conflict, Continue, Created, NotFound, OK} 164} 165 166// IdentityProviderNameType enumerates the values for identity provider name type. 167type IdentityProviderNameType string 168 169const ( 170 // Aad ... 171 Aad IdentityProviderNameType = "aad" 172 // Facebook ... 173 Facebook IdentityProviderNameType = "facebook" 174 // Google ... 175 Google IdentityProviderNameType = "google" 176 // Microsoft ... 177 Microsoft IdentityProviderNameType = "microsoft" 178 // Twitter ... 179 Twitter IdentityProviderNameType = "twitter" 180) 181 182// PossibleIdentityProviderNameTypeValues returns an array of possible values for the IdentityProviderNameType const type. 183func PossibleIdentityProviderNameTypeValues() []IdentityProviderNameType { 184 return []IdentityProviderNameType{Aad, Facebook, Google, Microsoft, Twitter} 185} 186 187// MethodContract enumerates the values for method contract. 188type MethodContract string 189 190const ( 191 // DELETE ... 192 DELETE MethodContract = "DELETE" 193 // GET ... 194 GET MethodContract = "GET" 195 // HEAD ... 196 HEAD MethodContract = "HEAD" 197 // OPTIONS ... 198 OPTIONS MethodContract = "OPTIONS" 199 // PATCH ... 200 PATCH MethodContract = "PATCH" 201 // POST ... 202 POST MethodContract = "POST" 203 // PUT ... 204 PUT MethodContract = "PUT" 205 // TRACE ... 206 TRACE MethodContract = "TRACE" 207) 208 209// PossibleMethodContractValues returns an array of possible values for the MethodContract const type. 210func PossibleMethodContractValues() []MethodContract { 211 return []MethodContract{DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT, TRACE} 212} 213 214// NameAvailabilityReason enumerates the values for name availability reason. 215type NameAvailabilityReason string 216 217const ( 218 // AlreadyExists ... 219 AlreadyExists NameAvailabilityReason = "AlreadyExists" 220 // Invalid ... 221 Invalid NameAvailabilityReason = "Invalid" 222 // Valid ... 223 Valid NameAvailabilityReason = "Valid" 224) 225 226// PossibleNameAvailabilityReasonValues returns an array of possible values for the NameAvailabilityReason const type. 227func PossibleNameAvailabilityReasonValues() []NameAvailabilityReason { 228 return []NameAvailabilityReason{AlreadyExists, Invalid, Valid} 229} 230 231// OperationStatus enumerates the values for operation status. 232type OperationStatus string 233 234const ( 235 // OperationStatusFailed ... 236 OperationStatusFailed OperationStatus = "Failed" 237 // OperationStatusInProgress ... 238 OperationStatusInProgress OperationStatus = "InProgress" 239 // OperationStatusSucceeded ... 240 OperationStatusSucceeded OperationStatus = "Succeeded" 241) 242 243// PossibleOperationStatusValues returns an array of possible values for the OperationStatus const type. 244func PossibleOperationStatusValues() []OperationStatus { 245 return []OperationStatus{OperationStatusFailed, OperationStatusInProgress, OperationStatusSucceeded} 246} 247 248// PolicyScopeContract enumerates the values for policy scope contract. 249type PolicyScopeContract string 250 251const ( 252 // All ... 253 All PolicyScopeContract = "All" 254 // API ... 255 API PolicyScopeContract = "Api" 256 // Operation ... 257 Operation PolicyScopeContract = "Operation" 258 // Product ... 259 Product PolicyScopeContract = "Product" 260 // Tenant ... 261 Tenant PolicyScopeContract = "Tenant" 262) 263 264// PossiblePolicyScopeContractValues returns an array of possible values for the PolicyScopeContract const type. 265func PossiblePolicyScopeContractValues() []PolicyScopeContract { 266 return []PolicyScopeContract{All, API, Operation, Product, Tenant} 267} 268 269// ProductStateContract enumerates the values for product state contract. 270type ProductStateContract string 271 272const ( 273 // NotPublished ... 274 NotPublished ProductStateContract = "NotPublished" 275 // Published ... 276 Published ProductStateContract = "Published" 277) 278 279// PossibleProductStateContractValues returns an array of possible values for the ProductStateContract const type. 280func PossibleProductStateContractValues() []ProductStateContract { 281 return []ProductStateContract{NotPublished, Published} 282} 283 284// ReportsAggregation enumerates the values for reports aggregation. 285type ReportsAggregation string 286 287const ( 288 // ByAPI ... 289 ByAPI ReportsAggregation = "byApi" 290 // ByGeo ... 291 ByGeo ReportsAggregation = "byGeo" 292 // ByOperation ... 293 ByOperation ReportsAggregation = "byOperation" 294 // ByProduct ... 295 ByProduct ReportsAggregation = "byProduct" 296 // BySubscription ... 297 BySubscription ReportsAggregation = "bySubscription" 298 // ByTime ... 299 ByTime ReportsAggregation = "byTime" 300 // ByUser ... 301 ByUser ReportsAggregation = "byUser" 302) 303 304// PossibleReportsAggregationValues returns an array of possible values for the ReportsAggregation const type. 305func PossibleReportsAggregationValues() []ReportsAggregation { 306 return []ReportsAggregation{ByAPI, ByGeo, ByOperation, ByProduct, BySubscription, ByTime, ByUser} 307} 308 309// SkuType enumerates the values for sku type. 310type SkuType string 311 312const ( 313 // Developer ... 314 Developer SkuType = "Developer" 315 // Premium ... 316 Premium SkuType = "Premium" 317 // Standard ... 318 Standard SkuType = "Standard" 319) 320 321// PossibleSkuTypeValues returns an array of possible values for the SkuType const type. 322func PossibleSkuTypeValues() []SkuType { 323 return []SkuType{Developer, Premium, Standard} 324} 325 326// SubscriptionStateContract enumerates the values for subscription state contract. 327type SubscriptionStateContract string 328 329const ( 330 // Active ... 331 Active SubscriptionStateContract = "Active" 332 // Cancelled ... 333 Cancelled SubscriptionStateContract = "Cancelled" 334 // Expired ... 335 Expired SubscriptionStateContract = "Expired" 336 // Rejected ... 337 Rejected SubscriptionStateContract = "Rejected" 338 // Submitted ... 339 Submitted SubscriptionStateContract = "Submitted" 340 // Suspended ... 341 Suspended SubscriptionStateContract = "Suspended" 342) 343 344// PossibleSubscriptionStateContractValues returns an array of possible values for the SubscriptionStateContract const type. 345func PossibleSubscriptionStateContractValues() []SubscriptionStateContract { 346 return []SubscriptionStateContract{Active, Cancelled, Expired, Rejected, Submitted, Suspended} 347} 348 349// UserStateContract enumerates the values for user state contract. 350type UserStateContract string 351 352const ( 353 // UserStateContractActive ... 354 UserStateContractActive UserStateContract = "Active" 355 // UserStateContractBlocked ... 356 UserStateContractBlocked UserStateContract = "Blocked" 357) 358 359// PossibleUserStateContractValues returns an array of possible values for the UserStateContract const type. 360func PossibleUserStateContractValues() []UserStateContract { 361 return []UserStateContract{UserStateContractActive, UserStateContractBlocked} 362} 363 364// VirtualNetworkType enumerates the values for virtual network type. 365type VirtualNetworkType string 366 367const ( 368 // VirtualNetworkTypeExternal ... 369 VirtualNetworkTypeExternal VirtualNetworkType = "External" 370 // VirtualNetworkTypeInternal ... 371 VirtualNetworkTypeInternal VirtualNetworkType = "Internal" 372 // VirtualNetworkTypeNone ... 373 VirtualNetworkTypeNone VirtualNetworkType = "None" 374) 375 376// PossibleVirtualNetworkTypeValues returns an array of possible values for the VirtualNetworkType const type. 377func PossibleVirtualNetworkTypeValues() []VirtualNetworkType { 378 return []VirtualNetworkType{VirtualNetworkTypeExternal, VirtualNetworkTypeInternal, VirtualNetworkTypeNone} 379} 380