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