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