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