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