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// BearerTokenSendingMethods enumerates the values for bearer token sending methods. 101type BearerTokenSendingMethods string 102 103const ( 104 // BearerTokenSendingMethodsAuthorizationHeader Access token will be transmitted in the Authorization 105 // header using Bearer schema 106 BearerTokenSendingMethodsAuthorizationHeader BearerTokenSendingMethods = "authorizationHeader" 107 // BearerTokenSendingMethodsQuery Access token will be transmitted as query parameters. 108 BearerTokenSendingMethodsQuery BearerTokenSendingMethods = "query" 109) 110 111// PossibleBearerTokenSendingMethodsValues returns an array of possible values for the BearerTokenSendingMethods const type. 112func PossibleBearerTokenSendingMethodsValues() []BearerTokenSendingMethods { 113 return []BearerTokenSendingMethods{BearerTokenSendingMethodsAuthorizationHeader, BearerTokenSendingMethodsQuery} 114} 115 116// ClientAuthenticationMethod enumerates the values for client authentication method. 117type ClientAuthenticationMethod string 118 119const ( 120 // Basic Basic Client Authentication method. 121 Basic ClientAuthenticationMethod = "Basic" 122 // Body Body based Authentication method. 123 Body ClientAuthenticationMethod = "Body" 124) 125 126// PossibleClientAuthenticationMethodValues returns an array of possible values for the ClientAuthenticationMethod const type. 127func PossibleClientAuthenticationMethodValues() []ClientAuthenticationMethod { 128 return []ClientAuthenticationMethod{Basic, Body} 129} 130 131// Confirmation enumerates the values for confirmation. 132type Confirmation string 133 134const ( 135 // Invite Send an e-mail inviting the user to sign-up and complete registration. 136 Invite Confirmation = "invite" 137 // Signup Send an e-mail to the user confirming they have successfully signed up. 138 Signup Confirmation = "signup" 139) 140 141// PossibleConfirmationValues returns an array of possible values for the Confirmation const type. 142func PossibleConfirmationValues() []Confirmation { 143 return []Confirmation{Invite, Signup} 144} 145 146// ConnectivityStatusType enumerates the values for connectivity status type. 147type ConnectivityStatusType string 148 149const ( 150 // Failure ... 151 Failure ConnectivityStatusType = "failure" 152 // Initializing ... 153 Initializing ConnectivityStatusType = "initializing" 154 // Success ... 155 Success ConnectivityStatusType = "success" 156) 157 158// PossibleConnectivityStatusTypeValues returns an array of possible values for the ConnectivityStatusType const type. 159func PossibleConnectivityStatusTypeValues() []ConnectivityStatusType { 160 return []ConnectivityStatusType{Failure, Initializing, Success} 161} 162 163// ContentFormat enumerates the values for content format. 164type ContentFormat string 165 166const ( 167 // SwaggerJSON The contents are inline and Content Type is a OpenApi 2.0 Document. 168 SwaggerJSON ContentFormat = "swagger-json" 169 // SwaggerLinkJSON The Open Api 2.0 document is hosted on a publicly accessible internet address. 170 SwaggerLinkJSON ContentFormat = "swagger-link-json" 171 // WadlLinkJSON The WADL document is hosted on a publicly accessible internet address. 172 WadlLinkJSON ContentFormat = "wadl-link-json" 173 // WadlXML The contents are inline and Content type is a WADL document. 174 WadlXML ContentFormat = "wadl-xml" 175 // Wsdl The contents are inline and the document is a WSDL/Soap document. 176 Wsdl ContentFormat = "wsdl" 177 // WsdlLink The WSDL document is hosted on a publicly accessible internet address. 178 WsdlLink ContentFormat = "wsdl-link" 179) 180 181// PossibleContentFormatValues returns an array of possible values for the ContentFormat const type. 182func PossibleContentFormatValues() []ContentFormat { 183 return []ContentFormat{SwaggerJSON, SwaggerLinkJSON, WadlLinkJSON, WadlXML, Wsdl, WsdlLink} 184} 185 186// ExportFormat enumerates the values for export format. 187type ExportFormat string 188 189const ( 190 // ExportFormatSwagger Export the Api Definition in OpenApi Specification 2.0 format to the Storage Blob. 191 ExportFormatSwagger ExportFormat = "swagger-link" 192 // ExportFormatWadl Export the Api Definition in WADL Schema to Storage Blob. 193 ExportFormatWadl ExportFormat = "wadl-link" 194 // ExportFormatWsdl Export the Api Definition in WSDL Schema to Storage Blob. This is only supported for 195 // APIs of Type `soap` 196 ExportFormatWsdl ExportFormat = "wsdl-link" 197) 198 199// PossibleExportFormatValues returns an array of possible values for the ExportFormat const type. 200func PossibleExportFormatValues() []ExportFormat { 201 return []ExportFormat{ExportFormatSwagger, ExportFormatWadl, ExportFormatWsdl} 202} 203 204// GrantType enumerates the values for grant type. 205type GrantType string 206 207const ( 208 // AuthorizationCode Authorization Code Grant flow as described 209 // https://tools.ietf.org/html/rfc6749#section-4.1. 210 AuthorizationCode GrantType = "authorizationCode" 211 // ClientCredentials Client Credentials Grant flow as described 212 // https://tools.ietf.org/html/rfc6749#section-4.4. 213 ClientCredentials GrantType = "clientCredentials" 214 // Implicit Implicit Code Grant flow as described https://tools.ietf.org/html/rfc6749#section-4.2. 215 Implicit GrantType = "implicit" 216 // ResourceOwnerPassword Resource Owner Password Grant flow as described 217 // https://tools.ietf.org/html/rfc6749#section-4.3. 218 ResourceOwnerPassword GrantType = "resourceOwnerPassword" 219) 220 221// PossibleGrantTypeValues returns an array of possible values for the GrantType const type. 222func PossibleGrantTypeValues() []GrantType { 223 return []GrantType{AuthorizationCode, ClientCredentials, Implicit, ResourceOwnerPassword} 224} 225 226// GroupType enumerates the values for group type. 227type GroupType string 228 229const ( 230 // Custom ... 231 Custom GroupType = "custom" 232 // External ... 233 External GroupType = "external" 234 // System ... 235 System GroupType = "system" 236) 237 238// PossibleGroupTypeValues returns an array of possible values for the GroupType const type. 239func PossibleGroupTypeValues() []GroupType { 240 return []GroupType{Custom, External, System} 241} 242 243// HostnameType enumerates the values for hostname type. 244type HostnameType string 245 246const ( 247 // Management ... 248 Management HostnameType = "Management" 249 // Portal ... 250 Portal HostnameType = "Portal" 251 // Proxy ... 252 Proxy HostnameType = "Proxy" 253 // Scm ... 254 Scm HostnameType = "Scm" 255) 256 257// PossibleHostnameTypeValues returns an array of possible values for the HostnameType const type. 258func PossibleHostnameTypeValues() []HostnameType { 259 return []HostnameType{Management, Portal, Proxy, Scm} 260} 261 262// IdentityProviderType enumerates the values for identity provider type. 263type IdentityProviderType string 264 265const ( 266 // Aad Azure Active Directory as Identity provider. 267 Aad IdentityProviderType = "aad" 268 // AadB2C Azure Active Directory B2C as Identity provider. 269 AadB2C IdentityProviderType = "aadB2C" 270 // Facebook Facebook as Identity provider. 271 Facebook IdentityProviderType = "facebook" 272 // Google Google as Identity provider. 273 Google IdentityProviderType = "google" 274 // Microsoft Microsoft Live as Identity provider. 275 Microsoft IdentityProviderType = "microsoft" 276 // Twitter Twitter as Identity provider. 277 Twitter IdentityProviderType = "twitter" 278) 279 280// PossibleIdentityProviderTypeValues returns an array of possible values for the IdentityProviderType const type. 281func PossibleIdentityProviderTypeValues() []IdentityProviderType { 282 return []IdentityProviderType{Aad, AadB2C, Facebook, Google, Microsoft, Twitter} 283} 284 285// KeyType enumerates the values for key type. 286type KeyType string 287 288const ( 289 // Primary ... 290 Primary KeyType = "primary" 291 // Secondary ... 292 Secondary KeyType = "secondary" 293) 294 295// PossibleKeyTypeValues returns an array of possible values for the KeyType const type. 296func PossibleKeyTypeValues() []KeyType { 297 return []KeyType{Primary, Secondary} 298} 299 300// LoggerType enumerates the values for logger type. 301type LoggerType string 302 303const ( 304 // ApplicationInsights Azure Application Insights as log destination. 305 ApplicationInsights LoggerType = "applicationInsights" 306 // AzureEventHub Azure Event Hub as log destination. 307 AzureEventHub LoggerType = "azureEventHub" 308) 309 310// PossibleLoggerTypeValues returns an array of possible values for the LoggerType const type. 311func PossibleLoggerTypeValues() []LoggerType { 312 return []LoggerType{ApplicationInsights, AzureEventHub} 313} 314 315// NameAvailabilityReason enumerates the values for name availability reason. 316type NameAvailabilityReason string 317 318const ( 319 // AlreadyExists ... 320 AlreadyExists NameAvailabilityReason = "AlreadyExists" 321 // Invalid ... 322 Invalid NameAvailabilityReason = "Invalid" 323 // Valid ... 324 Valid NameAvailabilityReason = "Valid" 325) 326 327// PossibleNameAvailabilityReasonValues returns an array of possible values for the NameAvailabilityReason const type. 328func PossibleNameAvailabilityReasonValues() []NameAvailabilityReason { 329 return []NameAvailabilityReason{AlreadyExists, Invalid, Valid} 330} 331 332// NotificationName enumerates the values for notification name. 333type NotificationName string 334 335const ( 336 // AccountClosedPublisher The following email recipients and users will receive email notifications when 337 // developer closes his account. 338 AccountClosedPublisher NotificationName = "AccountClosedPublisher" 339 // BCC The following recipients will receive blind carbon copies of all emails sent to developers. 340 BCC NotificationName = "BCC" 341 // NewApplicationNotificationMessage The following email recipients and users will receive email 342 // notifications when new applications are submitted to the application gallery. 343 NewApplicationNotificationMessage NotificationName = "NewApplicationNotificationMessage" 344 // NewIssuePublisherNotificationMessage The following email recipients and users will receive email 345 // notifications when a new issue or comment is submitted on the developer portal. 346 NewIssuePublisherNotificationMessage NotificationName = "NewIssuePublisherNotificationMessage" 347 // PurchasePublisherNotificationMessage The following email recipients and users will receive email 348 // notifications about new API product subscriptions. 349 PurchasePublisherNotificationMessage NotificationName = "PurchasePublisherNotificationMessage" 350 // QuotaLimitApproachingPublisherNotificationMessage The following email recipients and users will receive 351 // email notifications when subscription usage gets close to usage quota. 352 QuotaLimitApproachingPublisherNotificationMessage NotificationName = "QuotaLimitApproachingPublisherNotificationMessage" 353 // RequestPublisherNotificationMessage The following email recipients and users will receive email 354 // notifications about subscription requests for API products requiring approval. 355 RequestPublisherNotificationMessage NotificationName = "RequestPublisherNotificationMessage" 356) 357 358// PossibleNotificationNameValues returns an array of possible values for the NotificationName const type. 359func PossibleNotificationNameValues() []NotificationName { 360 return []NotificationName{AccountClosedPublisher, BCC, NewApplicationNotificationMessage, NewIssuePublisherNotificationMessage, PurchasePublisherNotificationMessage, QuotaLimitApproachingPublisherNotificationMessage, RequestPublisherNotificationMessage} 361} 362 363// PolicyContentFormat enumerates the values for policy content format. 364type PolicyContentFormat string 365 366const ( 367 // Rawxml The contents are inline and Content type is a non XML encoded policy document. 368 Rawxml PolicyContentFormat = "rawxml" 369 // RawxmlLink The policy document is not Xml encoded and is hosted on a http endpoint accessible from the 370 // API Management service. 371 RawxmlLink PolicyContentFormat = "rawxml-link" 372 // XML The contents are inline and Content type is an XML document. 373 XML PolicyContentFormat = "xml" 374 // XMLLink The policy XML document is hosted on a http endpoint accessible from the API Management service. 375 XMLLink PolicyContentFormat = "xml-link" 376) 377 378// PossiblePolicyContentFormatValues returns an array of possible values for the PolicyContentFormat const type. 379func PossiblePolicyContentFormatValues() []PolicyContentFormat { 380 return []PolicyContentFormat{Rawxml, RawxmlLink, XML, XMLLink} 381} 382 383// PolicyScopeContract enumerates the values for policy scope contract. 384type PolicyScopeContract string 385 386const ( 387 // PolicyScopeContractAll ... 388 PolicyScopeContractAll PolicyScopeContract = "All" 389 // PolicyScopeContractAPI ... 390 PolicyScopeContractAPI PolicyScopeContract = "Api" 391 // PolicyScopeContractOperation ... 392 PolicyScopeContractOperation PolicyScopeContract = "Operation" 393 // PolicyScopeContractProduct ... 394 PolicyScopeContractProduct PolicyScopeContract = "Product" 395 // PolicyScopeContractTenant ... 396 PolicyScopeContractTenant PolicyScopeContract = "Tenant" 397) 398 399// PossiblePolicyScopeContractValues returns an array of possible values for the PolicyScopeContract const type. 400func PossiblePolicyScopeContractValues() []PolicyScopeContract { 401 return []PolicyScopeContract{PolicyScopeContractAll, PolicyScopeContractAPI, PolicyScopeContractOperation, PolicyScopeContractProduct, PolicyScopeContractTenant} 402} 403 404// ProductState enumerates the values for product state. 405type ProductState string 406 407const ( 408 // NotPublished ... 409 NotPublished ProductState = "notPublished" 410 // Published ... 411 Published ProductState = "published" 412) 413 414// PossibleProductStateValues returns an array of possible values for the ProductState const type. 415func PossibleProductStateValues() []ProductState { 416 return []ProductState{NotPublished, Published} 417} 418 419// Protocol enumerates the values for protocol. 420type Protocol string 421 422const ( 423 // ProtocolHTTP ... 424 ProtocolHTTP Protocol = "http" 425 // ProtocolHTTPS ... 426 ProtocolHTTPS Protocol = "https" 427) 428 429// PossibleProtocolValues returns an array of possible values for the Protocol const type. 430func PossibleProtocolValues() []Protocol { 431 return []Protocol{ProtocolHTTP, ProtocolHTTPS} 432} 433 434// ResourceSkuCapacityScaleType enumerates the values for resource sku capacity scale type. 435type ResourceSkuCapacityScaleType string 436 437const ( 438 // Automatic ... 439 Automatic ResourceSkuCapacityScaleType = "automatic" 440 // Manual ... 441 Manual ResourceSkuCapacityScaleType = "manual" 442 // None ... 443 None ResourceSkuCapacityScaleType = "none" 444) 445 446// PossibleResourceSkuCapacityScaleTypeValues returns an array of possible values for the ResourceSkuCapacityScaleType const type. 447func PossibleResourceSkuCapacityScaleTypeValues() []ResourceSkuCapacityScaleType { 448 return []ResourceSkuCapacityScaleType{Automatic, Manual, None} 449} 450 451// SkuType enumerates the values for sku type. 452type SkuType string 453 454const ( 455 // SkuTypeBasic Basic SKU of Api Management. 456 SkuTypeBasic SkuType = "Basic" 457 // SkuTypeDeveloper Developer SKU of Api Management. 458 SkuTypeDeveloper SkuType = "Developer" 459 // SkuTypePremium Premium SKU of Api Management. 460 SkuTypePremium SkuType = "Premium" 461 // SkuTypeStandard Standard SKU of Api Management. 462 SkuTypeStandard SkuType = "Standard" 463) 464 465// PossibleSkuTypeValues returns an array of possible values for the SkuType const type. 466func PossibleSkuTypeValues() []SkuType { 467 return []SkuType{SkuTypeBasic, SkuTypeDeveloper, SkuTypePremium, SkuTypeStandard} 468} 469 470// SoapAPIType enumerates the values for soap api type. 471type SoapAPIType string 472 473const ( 474 // SoapPassThrough Imports the Soap API having a SOAP front end. 475 SoapPassThrough SoapAPIType = "soap" 476 // SoapToRest Imports a SOAP API having a RESTful front end. 477 SoapToRest SoapAPIType = "http" 478) 479 480// PossibleSoapAPITypeValues returns an array of possible values for the SoapAPIType const type. 481func PossibleSoapAPITypeValues() []SoapAPIType { 482 return []SoapAPIType{SoapPassThrough, SoapToRest} 483} 484 485// State enumerates the values for state. 486type State string 487 488const ( 489 // Closed The issue was closed. 490 Closed State = "closed" 491 // Open The issue is opened. 492 Open State = "open" 493 // Proposed The issue is proposed. 494 Proposed State = "proposed" 495 // Removed The issue was removed. 496 Removed State = "removed" 497 // Resolved The issue is now resolved. 498 Resolved State = "resolved" 499) 500 501// PossibleStateValues returns an array of possible values for the State const type. 502func PossibleStateValues() []State { 503 return []State{Closed, Open, Proposed, Removed, Resolved} 504} 505 506// StoreName enumerates the values for store name. 507type StoreName string 508 509const ( 510 // CertificateAuthority ... 511 CertificateAuthority StoreName = "CertificateAuthority" 512 // Root ... 513 Root StoreName = "Root" 514) 515 516// PossibleStoreNameValues returns an array of possible values for the StoreName const type. 517func PossibleStoreNameValues() []StoreName { 518 return []StoreName{CertificateAuthority, Root} 519} 520 521// SubscriptionState enumerates the values for subscription state. 522type SubscriptionState string 523 524const ( 525 // Active ... 526 Active SubscriptionState = "active" 527 // Cancelled ... 528 Cancelled SubscriptionState = "cancelled" 529 // Expired ... 530 Expired SubscriptionState = "expired" 531 // Rejected ... 532 Rejected SubscriptionState = "rejected" 533 // Submitted ... 534 Submitted SubscriptionState = "submitted" 535 // Suspended ... 536 Suspended SubscriptionState = "suspended" 537) 538 539// PossibleSubscriptionStateValues returns an array of possible values for the SubscriptionState const type. 540func PossibleSubscriptionStateValues() []SubscriptionState { 541 return []SubscriptionState{Active, Cancelled, Expired, Rejected, Submitted, Suspended} 542} 543 544// TemplateName enumerates the values for template name. 545type TemplateName string 546 547const ( 548 // AccountClosedDeveloper ... 549 AccountClosedDeveloper TemplateName = "accountClosedDeveloper" 550 // ApplicationApprovedNotificationMessage ... 551 ApplicationApprovedNotificationMessage TemplateName = "applicationApprovedNotificationMessage" 552 // ConfirmSignUpIdentityDefault ... 553 ConfirmSignUpIdentityDefault TemplateName = "confirmSignUpIdentityDefault" 554 // EmailChangeIdentityDefault ... 555 EmailChangeIdentityDefault TemplateName = "emailChangeIdentityDefault" 556 // InviteUserNotificationMessage ... 557 InviteUserNotificationMessage TemplateName = "inviteUserNotificationMessage" 558 // NewCommentNotificationMessage ... 559 NewCommentNotificationMessage TemplateName = "newCommentNotificationMessage" 560 // NewDeveloperNotificationMessage ... 561 NewDeveloperNotificationMessage TemplateName = "newDeveloperNotificationMessage" 562 // NewIssueNotificationMessage ... 563 NewIssueNotificationMessage TemplateName = "newIssueNotificationMessage" 564 // PasswordResetByAdminNotificationMessage ... 565 PasswordResetByAdminNotificationMessage TemplateName = "passwordResetByAdminNotificationMessage" 566 // PasswordResetIdentityDefault ... 567 PasswordResetIdentityDefault TemplateName = "passwordResetIdentityDefault" 568 // PurchaseDeveloperNotificationMessage ... 569 PurchaseDeveloperNotificationMessage TemplateName = "purchaseDeveloperNotificationMessage" 570 // QuotaLimitApproachingDeveloperNotificationMessage ... 571 QuotaLimitApproachingDeveloperNotificationMessage TemplateName = "quotaLimitApproachingDeveloperNotificationMessage" 572 // RejectDeveloperNotificationMessage ... 573 RejectDeveloperNotificationMessage TemplateName = "rejectDeveloperNotificationMessage" 574 // RequestDeveloperNotificationMessage ... 575 RequestDeveloperNotificationMessage TemplateName = "requestDeveloperNotificationMessage" 576) 577 578// PossibleTemplateNameValues returns an array of possible values for the TemplateName const type. 579func PossibleTemplateNameValues() []TemplateName { 580 return []TemplateName{AccountClosedDeveloper, ApplicationApprovedNotificationMessage, ConfirmSignUpIdentityDefault, EmailChangeIdentityDefault, InviteUserNotificationMessage, NewCommentNotificationMessage, NewDeveloperNotificationMessage, NewIssueNotificationMessage, PasswordResetByAdminNotificationMessage, PasswordResetIdentityDefault, PurchaseDeveloperNotificationMessage, QuotaLimitApproachingDeveloperNotificationMessage, RejectDeveloperNotificationMessage, RequestDeveloperNotificationMessage} 581} 582 583// UserState enumerates the values for user state. 584type UserState string 585 586const ( 587 // UserStateActive User state is active. 588 UserStateActive UserState = "active" 589 // UserStateBlocked User is blocked. Blocked users cannot authenticate at developer portal or call API. 590 UserStateBlocked UserState = "blocked" 591 // UserStateDeleted User account is closed. All identities and related entities are removed. 592 UserStateDeleted UserState = "deleted" 593 // UserStatePending User account is pending. Requires identity confirmation before it can be made active. 594 UserStatePending UserState = "pending" 595) 596 597// PossibleUserStateValues returns an array of possible values for the UserState const type. 598func PossibleUserStateValues() []UserState { 599 return []UserState{UserStateActive, UserStateBlocked, UserStateDeleted, UserStatePending} 600} 601 602// VersioningScheme enumerates the values for versioning scheme. 603type VersioningScheme string 604 605const ( 606 // VersioningSchemeHeader The API Version is passed in a HTTP header. 607 VersioningSchemeHeader VersioningScheme = "Header" 608 // VersioningSchemeQuery The API Version is passed in a query parameter. 609 VersioningSchemeQuery VersioningScheme = "Query" 610 // VersioningSchemeSegment The API Version is passed in a path segment. 611 VersioningSchemeSegment VersioningScheme = "Segment" 612) 613 614// PossibleVersioningSchemeValues returns an array of possible values for the VersioningScheme const type. 615func PossibleVersioningSchemeValues() []VersioningScheme { 616 return []VersioningScheme{VersioningSchemeHeader, VersioningSchemeQuery, VersioningSchemeSegment} 617} 618 619// VersioningScheme1 enumerates the values for versioning scheme 1. 620type VersioningScheme1 string 621 622const ( 623 // VersioningScheme1Header ... 624 VersioningScheme1Header VersioningScheme1 = "Header" 625 // VersioningScheme1Query ... 626 VersioningScheme1Query VersioningScheme1 = "Query" 627 // VersioningScheme1Segment ... 628 VersioningScheme1Segment VersioningScheme1 = "Segment" 629) 630 631// PossibleVersioningScheme1Values returns an array of possible values for the VersioningScheme1 const type. 632func PossibleVersioningScheme1Values() []VersioningScheme1 { 633 return []VersioningScheme1{VersioningScheme1Header, VersioningScheme1Query, VersioningScheme1Segment} 634} 635 636// VirtualNetworkType enumerates the values for virtual network type. 637type VirtualNetworkType string 638 639const ( 640 // VirtualNetworkTypeExternal The service is part of Virtual Network and it is accessible from Internet. 641 VirtualNetworkTypeExternal VirtualNetworkType = "External" 642 // VirtualNetworkTypeInternal The service is part of Virtual Network and it is only accessible from within 643 // the virtual network. 644 VirtualNetworkTypeInternal VirtualNetworkType = "Internal" 645 // VirtualNetworkTypeNone The service is not part of any Virtual Network. 646 VirtualNetworkTypeNone VirtualNetworkType = "None" 647) 648 649// PossibleVirtualNetworkTypeValues returns an array of possible values for the VirtualNetworkType const type. 650func PossibleVirtualNetworkTypeValues() []VirtualNetworkType { 651 return []VirtualNetworkType{VirtualNetworkTypeExternal, VirtualNetworkTypeInternal, VirtualNetworkTypeNone} 652} 653