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