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// APIProtocolContract enumerates the values for api protocol contract.
10type APIProtocolContract string
11
12const (
13	// HTTP ...
14	HTTP APIProtocolContract = "Http"
15	// HTTPS ...
16	HTTPS APIProtocolContract = "Https"
17)
18
19// PossibleAPIProtocolContractValues returns an array of possible values for the APIProtocolContract const type.
20func PossibleAPIProtocolContractValues() []APIProtocolContract {
21	return []APIProtocolContract{HTTP, HTTPS}
22}
23
24// APITypeContract enumerates the values for api type contract.
25type APITypeContract string
26
27const (
28	// APITypeContractHTTP ...
29	APITypeContractHTTP APITypeContract = "Http"
30	// APITypeContractSoap ...
31	APITypeContractSoap APITypeContract = "Soap"
32)
33
34// PossibleAPITypeContractValues returns an array of possible values for the APITypeContract const type.
35func PossibleAPITypeContractValues() []APITypeContract {
36	return []APITypeContract{APITypeContractHTTP, APITypeContractSoap}
37}
38
39// AsyncOperationState enumerates the values for async operation state.
40type AsyncOperationState string
41
42const (
43	// Failed ...
44	Failed AsyncOperationState = "Failed"
45	// InProgress ...
46	InProgress AsyncOperationState = "InProgress"
47	// Started ...
48	Started AsyncOperationState = "Started"
49	// Succeeded ...
50	Succeeded AsyncOperationState = "Succeeded"
51)
52
53// PossibleAsyncOperationStateValues returns an array of possible values for the AsyncOperationState const type.
54func PossibleAsyncOperationStateValues() []AsyncOperationState {
55	return []AsyncOperationState{Failed, InProgress, Started, Succeeded}
56}
57
58// BackendProtocol enumerates the values for backend protocol.
59type BackendProtocol string
60
61const (
62	// BackendProtocolHTTP ...
63	BackendProtocolHTTP BackendProtocol = "http"
64	// BackendProtocolSoap ...
65	BackendProtocolSoap BackendProtocol = "soap"
66)
67
68// PossibleBackendProtocolValues returns an array of possible values for the BackendProtocol const type.
69func PossibleBackendProtocolValues() []BackendProtocol {
70	return []BackendProtocol{BackendProtocolHTTP, BackendProtocolSoap}
71}
72
73// BearerTokenSendingMethodsContract enumerates the values for bearer token sending methods contract.
74type BearerTokenSendingMethodsContract string
75
76const (
77	// AuthorizationHeader ...
78	AuthorizationHeader BearerTokenSendingMethodsContract = "authorizationHeader"
79	// Query ...
80	Query BearerTokenSendingMethodsContract = "query"
81)
82
83// PossibleBearerTokenSendingMethodsContractValues returns an array of possible values for the BearerTokenSendingMethodsContract const type.
84func PossibleBearerTokenSendingMethodsContractValues() []BearerTokenSendingMethodsContract {
85	return []BearerTokenSendingMethodsContract{AuthorizationHeader, Query}
86}
87
88// ClientAuthenticationMethodContract enumerates the values for client authentication method contract.
89type ClientAuthenticationMethodContract string
90
91const (
92	// Basic ...
93	Basic ClientAuthenticationMethodContract = "Basic"
94	// Body ...
95	Body ClientAuthenticationMethodContract = "Body"
96)
97
98// PossibleClientAuthenticationMethodContractValues returns an array of possible values for the ClientAuthenticationMethodContract const type.
99func PossibleClientAuthenticationMethodContractValues() []ClientAuthenticationMethodContract {
100	return []ClientAuthenticationMethodContract{Basic, Body}
101}
102
103// ConnectivityStatusType enumerates the values for connectivity status type.
104type ConnectivityStatusType string
105
106const (
107	// Failure ...
108	Failure ConnectivityStatusType = "failure"
109	// Initializing ...
110	Initializing ConnectivityStatusType = "initializing"
111	// Success ...
112	Success ConnectivityStatusType = "success"
113)
114
115// PossibleConnectivityStatusTypeValues returns an array of possible values for the ConnectivityStatusType const type.
116func PossibleConnectivityStatusTypeValues() []ConnectivityStatusType {
117	return []ConnectivityStatusType{Failure, Initializing, Success}
118}
119
120// GrantTypesContract enumerates the values for grant types contract.
121type GrantTypesContract string
122
123const (
124	// AuthorizationCode ...
125	AuthorizationCode GrantTypesContract = "authorizationCode"
126	// ClientCredentials ...
127	ClientCredentials GrantTypesContract = "clientCredentials"
128	// Implicit ...
129	Implicit GrantTypesContract = "implicit"
130	// ResourceOwnerPassword ...
131	ResourceOwnerPassword GrantTypesContract = "resourceOwnerPassword"
132)
133
134// PossibleGrantTypesContractValues returns an array of possible values for the GrantTypesContract const type.
135func PossibleGrantTypesContractValues() []GrantTypesContract {
136	return []GrantTypesContract{AuthorizationCode, ClientCredentials, Implicit, ResourceOwnerPassword}
137}
138
139// GroupTypeContract enumerates the values for group type contract.
140type GroupTypeContract string
141
142const (
143	// Custom ...
144	Custom GroupTypeContract = "Custom"
145	// External ...
146	External GroupTypeContract = "External"
147	// System ...
148	System GroupTypeContract = "System"
149)
150
151// PossibleGroupTypeContractValues returns an array of possible values for the GroupTypeContract const type.
152func PossibleGroupTypeContractValues() []GroupTypeContract {
153	return []GroupTypeContract{Custom, External, System}
154}
155
156// HostnameType enumerates the values for hostname type.
157type HostnameType string
158
159const (
160	// Management ...
161	Management HostnameType = "Management"
162	// Portal ...
163	Portal HostnameType = "Portal"
164	// Proxy ...
165	Proxy HostnameType = "Proxy"
166	// Scm ...
167	Scm HostnameType = "Scm"
168)
169
170// PossibleHostnameTypeValues returns an array of possible values for the HostnameType const type.
171func PossibleHostnameTypeValues() []HostnameType {
172	return []HostnameType{Management, Portal, Proxy, Scm}
173}
174
175// HTTPStatusCode enumerates the values for http status code.
176type HTTPStatusCode string
177
178const (
179	// Accepted ...
180	Accepted HTTPStatusCode = "Accepted"
181	// Conflict ...
182	Conflict HTTPStatusCode = "Conflict"
183	// Continue ...
184	Continue HTTPStatusCode = "Continue"
185	// Created ...
186	Created HTTPStatusCode = "Created"
187	// NotFound ...
188	NotFound HTTPStatusCode = "NotFound"
189	// OK ...
190	OK HTTPStatusCode = "OK"
191)
192
193// PossibleHTTPStatusCodeValues returns an array of possible values for the HTTPStatusCode const type.
194func PossibleHTTPStatusCodeValues() []HTTPStatusCode {
195	return []HTTPStatusCode{Accepted, Conflict, Continue, Created, NotFound, OK}
196}
197
198// IdentityProviderNameType enumerates the values for identity provider name type.
199type IdentityProviderNameType string
200
201const (
202	// Aad ...
203	Aad IdentityProviderNameType = "aad"
204	// AadB2C ...
205	AadB2C IdentityProviderNameType = "aadB2C"
206	// Facebook ...
207	Facebook IdentityProviderNameType = "facebook"
208	// Google ...
209	Google IdentityProviderNameType = "google"
210	// Microsoft ...
211	Microsoft IdentityProviderNameType = "microsoft"
212	// Twitter ...
213	Twitter IdentityProviderNameType = "twitter"
214)
215
216// PossibleIdentityProviderNameTypeValues returns an array of possible values for the IdentityProviderNameType const type.
217func PossibleIdentityProviderNameTypeValues() []IdentityProviderNameType {
218	return []IdentityProviderNameType{Aad, AadB2C, Facebook, Google, Microsoft, Twitter}
219}
220
221// KeyTypeContract enumerates the values for key type contract.
222type KeyTypeContract string
223
224const (
225	// Primary ...
226	Primary KeyTypeContract = "primary"
227	// Secondary ...
228	Secondary KeyTypeContract = "secondary"
229)
230
231// PossibleKeyTypeContractValues returns an array of possible values for the KeyTypeContract const type.
232func PossibleKeyTypeContractValues() []KeyTypeContract {
233	return []KeyTypeContract{Primary, Secondary}
234}
235
236// MethodContract enumerates the values for method contract.
237type MethodContract string
238
239const (
240	// DELETE ...
241	DELETE MethodContract = "DELETE"
242	// GET ...
243	GET MethodContract = "GET"
244	// HEAD ...
245	HEAD MethodContract = "HEAD"
246	// OPTIONS ...
247	OPTIONS MethodContract = "OPTIONS"
248	// PATCH ...
249	PATCH MethodContract = "PATCH"
250	// POST ...
251	POST MethodContract = "POST"
252	// PUT ...
253	PUT MethodContract = "PUT"
254	// TRACE ...
255	TRACE MethodContract = "TRACE"
256)
257
258// PossibleMethodContractValues returns an array of possible values for the MethodContract const type.
259func PossibleMethodContractValues() []MethodContract {
260	return []MethodContract{DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT, TRACE}
261}
262
263// NameAvailabilityReason enumerates the values for name availability reason.
264type NameAvailabilityReason string
265
266const (
267	// AlreadyExists ...
268	AlreadyExists NameAvailabilityReason = "AlreadyExists"
269	// Invalid ...
270	Invalid NameAvailabilityReason = "Invalid"
271	// Valid ...
272	Valid NameAvailabilityReason = "Valid"
273)
274
275// PossibleNameAvailabilityReasonValues returns an array of possible values for the NameAvailabilityReason const type.
276func PossibleNameAvailabilityReasonValues() []NameAvailabilityReason {
277	return []NameAvailabilityReason{AlreadyExists, Invalid, Valid}
278}
279
280// PolicyScopeContract enumerates the values for policy scope contract.
281type PolicyScopeContract string
282
283const (
284	// PolicyScopeContractAll ...
285	PolicyScopeContractAll PolicyScopeContract = "All"
286	// PolicyScopeContractAPI ...
287	PolicyScopeContractAPI PolicyScopeContract = "Api"
288	// PolicyScopeContractOperation ...
289	PolicyScopeContractOperation PolicyScopeContract = "Operation"
290	// PolicyScopeContractProduct ...
291	PolicyScopeContractProduct PolicyScopeContract = "Product"
292	// PolicyScopeContractTenant ...
293	PolicyScopeContractTenant PolicyScopeContract = "Tenant"
294)
295
296// PossiblePolicyScopeContractValues returns an array of possible values for the PolicyScopeContract const type.
297func PossiblePolicyScopeContractValues() []PolicyScopeContract {
298	return []PolicyScopeContract{PolicyScopeContractAll, PolicyScopeContractAPI, PolicyScopeContractOperation, PolicyScopeContractProduct, PolicyScopeContractTenant}
299}
300
301// ProductStateContract enumerates the values for product state contract.
302type ProductStateContract string
303
304const (
305	// NotPublished ...
306	NotPublished ProductStateContract = "NotPublished"
307	// Published ...
308	Published ProductStateContract = "Published"
309)
310
311// PossibleProductStateContractValues returns an array of possible values for the ProductStateContract const type.
312func PossibleProductStateContractValues() []ProductStateContract {
313	return []ProductStateContract{NotPublished, Published}
314}
315
316// ReportsAggregation enumerates the values for reports aggregation.
317type ReportsAggregation string
318
319const (
320	// ByAPI ...
321	ByAPI ReportsAggregation = "byApi"
322	// ByGeo ...
323	ByGeo ReportsAggregation = "byGeo"
324	// ByOperation ...
325	ByOperation ReportsAggregation = "byOperation"
326	// ByProduct ...
327	ByProduct ReportsAggregation = "byProduct"
328	// BySubscription ...
329	BySubscription ReportsAggregation = "bySubscription"
330	// ByTime ...
331	ByTime ReportsAggregation = "byTime"
332	// ByUser ...
333	ByUser ReportsAggregation = "byUser"
334)
335
336// PossibleReportsAggregationValues returns an array of possible values for the ReportsAggregation const type.
337func PossibleReportsAggregationValues() []ReportsAggregation {
338	return []ReportsAggregation{ByAPI, ByGeo, ByOperation, ByProduct, BySubscription, ByTime, ByUser}
339}
340
341// SkuType enumerates the values for sku type.
342type SkuType string
343
344const (
345	// Developer ...
346	Developer SkuType = "Developer"
347	// Premium ...
348	Premium SkuType = "Premium"
349	// Standard ...
350	Standard SkuType = "Standard"
351)
352
353// PossibleSkuTypeValues returns an array of possible values for the SkuType const type.
354func PossibleSkuTypeValues() []SkuType {
355	return []SkuType{Developer, Premium, Standard}
356}
357
358// SubscriptionStateContract enumerates the values for subscription state contract.
359type SubscriptionStateContract string
360
361const (
362	// Active ...
363	Active SubscriptionStateContract = "Active"
364	// Cancelled ...
365	Cancelled SubscriptionStateContract = "Cancelled"
366	// Expired ...
367	Expired SubscriptionStateContract = "Expired"
368	// Rejected ...
369	Rejected SubscriptionStateContract = "Rejected"
370	// Submitted ...
371	Submitted SubscriptionStateContract = "Submitted"
372	// Suspended ...
373	Suspended SubscriptionStateContract = "Suspended"
374)
375
376// PossibleSubscriptionStateContractValues returns an array of possible values for the SubscriptionStateContract const type.
377func PossibleSubscriptionStateContractValues() []SubscriptionStateContract {
378	return []SubscriptionStateContract{Active, Cancelled, Expired, Rejected, Submitted, Suspended}
379}
380
381// UserStateContract enumerates the values for user state contract.
382type UserStateContract string
383
384const (
385	// UserStateContractActive ...
386	UserStateContractActive UserStateContract = "Active"
387	// UserStateContractBlocked ...
388	UserStateContractBlocked UserStateContract = "Blocked"
389)
390
391// PossibleUserStateContractValues returns an array of possible values for the UserStateContract const type.
392func PossibleUserStateContractValues() []UserStateContract {
393	return []UserStateContract{UserStateContractActive, UserStateContractBlocked}
394}
395
396// VirtualNetworkType enumerates the values for virtual network type.
397type VirtualNetworkType string
398
399const (
400	// VirtualNetworkTypeExternal ...
401	VirtualNetworkTypeExternal VirtualNetworkType = "External"
402	// VirtualNetworkTypeInternal ...
403	VirtualNetworkTypeInternal VirtualNetworkType = "Internal"
404	// VirtualNetworkTypeNone ...
405	VirtualNetworkTypeNone VirtualNetworkType = "None"
406)
407
408// PossibleVirtualNetworkTypeValues returns an array of possible values for the VirtualNetworkType const type.
409func PossibleVirtualNetworkTypeValues() []VirtualNetworkType {
410	return []VirtualNetworkType{VirtualNetworkTypeExternal, VirtualNetworkTypeInternal, VirtualNetworkTypeNone}
411}
412