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// APIType enumerates the values for api type. 10type APIType string 11 12const ( 13 // HTTP ... 14 HTTP APIType = "http" 15 // Soap ... 16 Soap APIType = "soap" 17) 18 19// PossibleAPITypeValues returns an array of possible values for the APIType const type. 20func PossibleAPITypeValues() []APIType { 21 return []APIType{HTTP, Soap} 22} 23 24// AsyncOperationStatus enumerates the values for async operation status. 25type AsyncOperationStatus string 26 27const ( 28 // Failed ... 29 Failed AsyncOperationStatus = "Failed" 30 // InProgress ... 31 InProgress AsyncOperationStatus = "InProgress" 32 // Started ... 33 Started AsyncOperationStatus = "Started" 34 // Succeeded ... 35 Succeeded AsyncOperationStatus = "Succeeded" 36) 37 38// PossibleAsyncOperationStatusValues returns an array of possible values for the AsyncOperationStatus const type. 39func PossibleAsyncOperationStatusValues() []AsyncOperationStatus { 40 return []AsyncOperationStatus{Failed, InProgress, Started, Succeeded} 41} 42 43// AuthorizationMethod enumerates the values for authorization method. 44type AuthorizationMethod string 45 46const ( 47 // DELETE ... 48 DELETE AuthorizationMethod = "DELETE" 49 // GET ... 50 GET AuthorizationMethod = "GET" 51 // HEAD ... 52 HEAD AuthorizationMethod = "HEAD" 53 // OPTIONS ... 54 OPTIONS AuthorizationMethod = "OPTIONS" 55 // PATCH ... 56 PATCH AuthorizationMethod = "PATCH" 57 // POST ... 58 POST AuthorizationMethod = "POST" 59 // PUT ... 60 PUT AuthorizationMethod = "PUT" 61 // TRACE ... 62 TRACE AuthorizationMethod = "TRACE" 63) 64 65// PossibleAuthorizationMethodValues returns an array of possible values for the AuthorizationMethod const type. 66func PossibleAuthorizationMethodValues() []AuthorizationMethod { 67 return []AuthorizationMethod{DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT, TRACE} 68} 69 70// BackendProtocol enumerates the values for backend protocol. 71type BackendProtocol string 72 73const ( 74 // BackendProtocolHTTP The Backend is a RESTful service. 75 BackendProtocolHTTP BackendProtocol = "http" 76 // BackendProtocolSoap The Backend is a SOAP service. 77 BackendProtocolSoap BackendProtocol = "soap" 78) 79 80// PossibleBackendProtocolValues returns an array of possible values for the BackendProtocol const type. 81func PossibleBackendProtocolValues() []BackendProtocol { 82 return []BackendProtocol{BackendProtocolHTTP, BackendProtocolSoap} 83} 84 85// BearerTokenSendingMethod enumerates the values for bearer token sending method. 86type BearerTokenSendingMethod string 87 88const ( 89 // AuthorizationHeader ... 90 AuthorizationHeader BearerTokenSendingMethod = "authorizationHeader" 91 // Query ... 92 Query BearerTokenSendingMethod = "query" 93) 94 95// PossibleBearerTokenSendingMethodValues returns an array of possible values for the BearerTokenSendingMethod const type. 96func PossibleBearerTokenSendingMethodValues() []BearerTokenSendingMethod { 97 return []BearerTokenSendingMethod{AuthorizationHeader, Query} 98} 99 100// ClientAuthenticationMethod enumerates the values for client authentication method. 101type ClientAuthenticationMethod string 102 103const ( 104 // Basic Basic Client Authentication method. 105 Basic ClientAuthenticationMethod = "Basic" 106 // Body Body based Authentication method. 107 Body ClientAuthenticationMethod = "Body" 108) 109 110// PossibleClientAuthenticationMethodValues returns an array of possible values for the ClientAuthenticationMethod const type. 111func PossibleClientAuthenticationMethodValues() []ClientAuthenticationMethod { 112 return []ClientAuthenticationMethod{Basic, Body} 113} 114 115// ContentFormat enumerates the values for content format. 116type ContentFormat string 117 118const ( 119 // SwaggerJSON The contents are inline and Content Type if a OpenApi 2.0 Document. 120 SwaggerJSON ContentFormat = "swagger-json" 121 // SwaggerLinkJSON The Open Api 2.0 document is hosted on a publicly accessible internet address. 122 SwaggerLinkJSON ContentFormat = "swagger-link-json" 123 // WadlLinkJSON The WADL document is hosted on a publicly accessible internet address. 124 WadlLinkJSON ContentFormat = "wadl-link-json" 125 // WadlXML The contents are inline and Content type is a WADL document. 126 WadlXML ContentFormat = "wadl-xml" 127 // Wsdl The contents are inline and the document is a WSDL/Soap document. 128 Wsdl ContentFormat = "wsdl" 129 // WsdlLink The WSDL document is hosted on a publicly accessible internet address. 130 WsdlLink ContentFormat = "wsdl-link" 131) 132 133// PossibleContentFormatValues returns an array of possible values for the ContentFormat const type. 134func PossibleContentFormatValues() []ContentFormat { 135 return []ContentFormat{SwaggerJSON, SwaggerLinkJSON, WadlLinkJSON, WadlXML, Wsdl, WsdlLink} 136} 137 138// GrantType enumerates the values for grant type. 139type GrantType string 140 141const ( 142 // AuthorizationCode Authorization Code Grant flow as described 143 // https://tools.ietf.org/html/rfc6749#section-4.1. 144 AuthorizationCode GrantType = "authorizationCode" 145 // ClientCredentials Client Credentials Grant flow as described 146 // https://tools.ietf.org/html/rfc6749#section-4.4. 147 ClientCredentials GrantType = "clientCredentials" 148 // Implicit Implicit Code Grant flow as described https://tools.ietf.org/html/rfc6749#section-4.2. 149 Implicit GrantType = "implicit" 150 // ResourceOwnerPassword Resource Owner Password Grant flow as described 151 // https://tools.ietf.org/html/rfc6749#section-4.3. 152 ResourceOwnerPassword GrantType = "resourceOwnerPassword" 153) 154 155// PossibleGrantTypeValues returns an array of possible values for the GrantType const type. 156func PossibleGrantTypeValues() []GrantType { 157 return []GrantType{AuthorizationCode, ClientCredentials, Implicit, ResourceOwnerPassword} 158} 159 160// GroupType enumerates the values for group type. 161type GroupType string 162 163const ( 164 // Custom ... 165 Custom GroupType = "custom" 166 // External ... 167 External GroupType = "external" 168 // System ... 169 System GroupType = "system" 170) 171 172// PossibleGroupTypeValues returns an array of possible values for the GroupType const type. 173func PossibleGroupTypeValues() []GroupType { 174 return []GroupType{Custom, External, System} 175} 176 177// IdentityProviderType enumerates the values for identity provider type. 178type IdentityProviderType string 179 180const ( 181 // Aad Azure Active Directory as Identity provider. 182 Aad IdentityProviderType = "aad" 183 // AadB2C Azure Active Directory B2C as Identity provider. 184 AadB2C IdentityProviderType = "aadB2C" 185 // Facebook Facebook as Identity provider. 186 Facebook IdentityProviderType = "facebook" 187 // Google Google as Identity provider. 188 Google IdentityProviderType = "google" 189 // Microsoft Microsoft Live as Identity provider. 190 Microsoft IdentityProviderType = "microsoft" 191 // Twitter Twitter as Identity provider. 192 Twitter IdentityProviderType = "twitter" 193) 194 195// PossibleIdentityProviderTypeValues returns an array of possible values for the IdentityProviderType const type. 196func PossibleIdentityProviderTypeValues() []IdentityProviderType { 197 return []IdentityProviderType{Aad, AadB2C, Facebook, Google, Microsoft, Twitter} 198} 199 200// KeyType enumerates the values for key type. 201type KeyType string 202 203const ( 204 // Primary ... 205 Primary KeyType = "primary" 206 // Secondary ... 207 Secondary KeyType = "secondary" 208) 209 210// PossibleKeyTypeValues returns an array of possible values for the KeyType const type. 211func PossibleKeyTypeValues() []KeyType { 212 return []KeyType{Primary, Secondary} 213} 214 215// LoggerType enumerates the values for logger type. 216type LoggerType string 217 218const ( 219 // AzureEventHub Azure Event Hub as log destination. 220 AzureEventHub LoggerType = "azureEventHub" 221) 222 223// PossibleLoggerTypeValues returns an array of possible values for the LoggerType const type. 224func PossibleLoggerTypeValues() []LoggerType { 225 return []LoggerType{AzureEventHub} 226} 227 228// PolicyScopeContract enumerates the values for policy scope contract. 229type PolicyScopeContract string 230 231const ( 232 // All ... 233 All PolicyScopeContract = "All" 234 // API ... 235 API PolicyScopeContract = "Api" 236 // Operation ... 237 Operation PolicyScopeContract = "Operation" 238 // Product ... 239 Product PolicyScopeContract = "Product" 240 // Tenant ... 241 Tenant PolicyScopeContract = "Tenant" 242) 243 244// PossiblePolicyScopeContractValues returns an array of possible values for the PolicyScopeContract const type. 245func PossiblePolicyScopeContractValues() []PolicyScopeContract { 246 return []PolicyScopeContract{All, API, Operation, Product, Tenant} 247} 248 249// ProductState enumerates the values for product state. 250type ProductState string 251 252const ( 253 // NotPublished ... 254 NotPublished ProductState = "notPublished" 255 // Published ... 256 Published ProductState = "published" 257) 258 259// PossibleProductStateValues returns an array of possible values for the ProductState const type. 260func PossibleProductStateValues() []ProductState { 261 return []ProductState{NotPublished, Published} 262} 263 264// Protocol enumerates the values for protocol. 265type Protocol string 266 267const ( 268 // ProtocolHTTP ... 269 ProtocolHTTP Protocol = "http" 270 // ProtocolHTTPS ... 271 ProtocolHTTPS Protocol = "https" 272) 273 274// PossibleProtocolValues returns an array of possible values for the Protocol const type. 275func PossibleProtocolValues() []Protocol { 276 return []Protocol{ProtocolHTTP, ProtocolHTTPS} 277} 278 279// SubscriptionState enumerates the values for subscription state. 280type SubscriptionState string 281 282const ( 283 // Active ... 284 Active SubscriptionState = "active" 285 // Cancelled ... 286 Cancelled SubscriptionState = "cancelled" 287 // Expired ... 288 Expired SubscriptionState = "expired" 289 // Rejected ... 290 Rejected SubscriptionState = "rejected" 291 // Submitted ... 292 Submitted SubscriptionState = "submitted" 293 // Suspended ... 294 Suspended SubscriptionState = "suspended" 295) 296 297// PossibleSubscriptionStateValues returns an array of possible values for the SubscriptionState const type. 298func PossibleSubscriptionStateValues() []SubscriptionState { 299 return []SubscriptionState{Active, Cancelled, Expired, Rejected, Submitted, Suspended} 300} 301 302// TemplateName enumerates the values for template name. 303type TemplateName string 304 305const ( 306 // AccountClosedDeveloper ... 307 AccountClosedDeveloper TemplateName = "accountClosedDeveloper" 308 // ApplicationApprovedNotificationMessage ... 309 ApplicationApprovedNotificationMessage TemplateName = "applicationApprovedNotificationMessage" 310 // ConfirmSignUpIdentityDefault ... 311 ConfirmSignUpIdentityDefault TemplateName = "confirmSignUpIdentityDefault" 312 // EmailChangeIdentityDefault ... 313 EmailChangeIdentityDefault TemplateName = "emailChangeIdentityDefault" 314 // InviteUserNotificationMessage ... 315 InviteUserNotificationMessage TemplateName = "inviteUserNotificationMessage" 316 // NewCommentNotificationMessage ... 317 NewCommentNotificationMessage TemplateName = "newCommentNotificationMessage" 318 // NewDeveloperNotificationMessage ... 319 NewDeveloperNotificationMessage TemplateName = "newDeveloperNotificationMessage" 320 // NewIssueNotificationMessage ... 321 NewIssueNotificationMessage TemplateName = "newIssueNotificationMessage" 322 // PasswordResetByAdminNotificationMessage ... 323 PasswordResetByAdminNotificationMessage TemplateName = "passwordResetByAdminNotificationMessage" 324 // PasswordResetIdentityDefault ... 325 PasswordResetIdentityDefault TemplateName = "passwordResetIdentityDefault" 326 // PurchaseDeveloperNotificationMessage ... 327 PurchaseDeveloperNotificationMessage TemplateName = "purchaseDeveloperNotificationMessage" 328 // QuotaLimitApproachingDeveloperNotificationMessage ... 329 QuotaLimitApproachingDeveloperNotificationMessage TemplateName = "quotaLimitApproachingDeveloperNotificationMessage" 330 // RejectDeveloperNotificationMessage ... 331 RejectDeveloperNotificationMessage TemplateName = "rejectDeveloperNotificationMessage" 332 // RequestDeveloperNotificationMessage ... 333 RequestDeveloperNotificationMessage TemplateName = "requestDeveloperNotificationMessage" 334) 335 336// PossibleTemplateNameValues returns an array of possible values for the TemplateName const type. 337func PossibleTemplateNameValues() []TemplateName { 338 return []TemplateName{AccountClosedDeveloper, ApplicationApprovedNotificationMessage, ConfirmSignUpIdentityDefault, EmailChangeIdentityDefault, InviteUserNotificationMessage, NewCommentNotificationMessage, NewDeveloperNotificationMessage, NewIssueNotificationMessage, PasswordResetByAdminNotificationMessage, PasswordResetIdentityDefault, PurchaseDeveloperNotificationMessage, QuotaLimitApproachingDeveloperNotificationMessage, RejectDeveloperNotificationMessage, RequestDeveloperNotificationMessage} 339} 340 341// UserState enumerates the values for user state. 342type UserState string 343 344const ( 345 // UserStateActive ... 346 UserStateActive UserState = "active" 347 // UserStateBlocked ... 348 UserStateBlocked UserState = "blocked" 349) 350 351// PossibleUserStateValues returns an array of possible values for the UserState const type. 352func PossibleUserStateValues() []UserState { 353 return []UserState{UserStateActive, UserStateBlocked} 354} 355