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