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