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