forked from Azure/azure-sdk-for-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
models.go
1481 lines (1312 loc) · 66 KB
/
models.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
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
package apimanagement
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/date"
"github.com/Azure/go-autorest/autorest/to"
"io"
"net/http"
)
// APIProtocolContract enumerates the values for api protocol contract.
type APIProtocolContract string
const (
// HTTP specifies the http state for api protocol contract.
HTTP APIProtocolContract = "Http"
// HTTPS specifies the https state for api protocol contract.
HTTPS APIProtocolContract = "Https"
)
// APITypeContract enumerates the values for api type contract.
type APITypeContract string
const (
// APITypeContractHTTP specifies the api type contract http state for api type contract.
APITypeContractHTTP APITypeContract = "Http"
// APITypeContractSoap specifies the api type contract soap state for api type contract.
APITypeContractSoap APITypeContract = "Soap"
)
// AsyncOperationState enumerates the values for async operation state.
type AsyncOperationState string
const (
// Failed specifies the failed state for async operation state.
Failed AsyncOperationState = "Failed"
// InProgress specifies the in progress state for async operation state.
InProgress AsyncOperationState = "InProgress"
// Started specifies the started state for async operation state.
Started AsyncOperationState = "Started"
// Succeeded specifies the succeeded state for async operation state.
Succeeded AsyncOperationState = "Succeeded"
)
// BackendProtocol enumerates the values for backend protocol.
type BackendProtocol string
const (
// BackendProtocolHTTP specifies the backend protocol http state for backend protocol.
BackendProtocolHTTP BackendProtocol = "http"
// BackendProtocolSoap specifies the backend protocol soap state for backend protocol.
BackendProtocolSoap BackendProtocol = "soap"
)
// BearerTokenSendingMethodsContract enumerates the values for bearer token sending methods contract.
type BearerTokenSendingMethodsContract string
const (
// AuthorizationHeader specifies the authorization header state for bearer token sending methods contract.
AuthorizationHeader BearerTokenSendingMethodsContract = "authorizationHeader"
// Query specifies the query state for bearer token sending methods contract.
Query BearerTokenSendingMethodsContract = "query"
)
// ClientAuthenticationMethodContract enumerates the values for client authentication method contract.
type ClientAuthenticationMethodContract string
const (
// Basic specifies the basic state for client authentication method contract.
Basic ClientAuthenticationMethodContract = "Basic"
// Body specifies the body state for client authentication method contract.
Body ClientAuthenticationMethodContract = "Body"
)
// ConnectivityStatusType enumerates the values for connectivity status type.
type ConnectivityStatusType string
const (
// Failure specifies the failure state for connectivity status type.
Failure ConnectivityStatusType = "failure"
// Initializing specifies the initializing state for connectivity status type.
Initializing ConnectivityStatusType = "initializing"
// Success specifies the success state for connectivity status type.
Success ConnectivityStatusType = "success"
)
// GrantTypesContract enumerates the values for grant types contract.
type GrantTypesContract string
const (
// AuthorizationCode specifies the authorization code state for grant types contract.
AuthorizationCode GrantTypesContract = "authorizationCode"
// ClientCredentials specifies the client credentials state for grant types contract.
ClientCredentials GrantTypesContract = "clientCredentials"
// Implicit specifies the implicit state for grant types contract.
Implicit GrantTypesContract = "implicit"
// ResourceOwnerPassword specifies the resource owner password state for grant types contract.
ResourceOwnerPassword GrantTypesContract = "resourceOwnerPassword"
)
// GroupTypeContract enumerates the values for group type contract.
type GroupTypeContract string
const (
// Custom specifies the custom state for group type contract.
Custom GroupTypeContract = "Custom"
// External specifies the external state for group type contract.
External GroupTypeContract = "External"
// System specifies the system state for group type contract.
System GroupTypeContract = "System"
)
// HostnameType enumerates the values for hostname type.
type HostnameType string
const (
// Management specifies the management state for hostname type.
Management HostnameType = "Management"
// Portal specifies the portal state for hostname type.
Portal HostnameType = "Portal"
// Proxy specifies the proxy state for hostname type.
Proxy HostnameType = "Proxy"
// Scm specifies the scm state for hostname type.
Scm HostnameType = "Scm"
)
// HTTPStatusCode enumerates the values for http status code.
type HTTPStatusCode string
const (
// Accepted specifies the accepted state for http status code.
Accepted HTTPStatusCode = "Accepted"
// Conflict specifies the conflict state for http status code.
Conflict HTTPStatusCode = "Conflict"
// Continue specifies the continue state for http status code.
Continue HTTPStatusCode = "Continue"
// Created specifies the created state for http status code.
Created HTTPStatusCode = "Created"
// NotFound specifies the not found state for http status code.
NotFound HTTPStatusCode = "NotFound"
// OK specifies the ok state for http status code.
OK HTTPStatusCode = "OK"
)
// IdentityProviderNameType enumerates the values for identity provider name type.
type IdentityProviderNameType string
const (
// Aad specifies the aad state for identity provider name type.
Aad IdentityProviderNameType = "aad"
// AadB2C specifies the aad b2c state for identity provider name type.
AadB2C IdentityProviderNameType = "aadB2C"
// Facebook specifies the facebook state for identity provider name type.
Facebook IdentityProviderNameType = "facebook"
// Google specifies the google state for identity provider name type.
Google IdentityProviderNameType = "google"
// Microsoft specifies the microsoft state for identity provider name type.
Microsoft IdentityProviderNameType = "microsoft"
// Twitter specifies the twitter state for identity provider name type.
Twitter IdentityProviderNameType = "twitter"
)
// KeyTypeContract enumerates the values for key type contract.
type KeyTypeContract string
const (
// Primary specifies the primary state for key type contract.
Primary KeyTypeContract = "primary"
// Secondary specifies the secondary state for key type contract.
Secondary KeyTypeContract = "secondary"
)
// MethodContract enumerates the values for method contract.
type MethodContract string
const (
// DELETE specifies the delete state for method contract.
DELETE MethodContract = "DELETE"
// GET specifies the get state for method contract.
GET MethodContract = "GET"
// HEAD specifies the head state for method contract.
HEAD MethodContract = "HEAD"
// OPTIONS specifies the options state for method contract.
OPTIONS MethodContract = "OPTIONS"
// PATCH specifies the patch state for method contract.
PATCH MethodContract = "PATCH"
// POST specifies the post state for method contract.
POST MethodContract = "POST"
// PUT specifies the put state for method contract.
PUT MethodContract = "PUT"
// TRACE specifies the trace state for method contract.
TRACE MethodContract = "TRACE"
)
// NameAvailabilityReason enumerates the values for name availability reason.
type NameAvailabilityReason string
const (
// AlreadyExists specifies the already exists state for name availability reason.
AlreadyExists NameAvailabilityReason = "AlreadyExists"
// Invalid specifies the invalid state for name availability reason.
Invalid NameAvailabilityReason = "Invalid"
// Valid specifies the valid state for name availability reason.
Valid NameAvailabilityReason = "Valid"
)
// PolicyScopeContract enumerates the values for policy scope contract.
type PolicyScopeContract string
const (
// PolicyScopeContractAll specifies the policy scope contract all state for policy scope contract.
PolicyScopeContractAll PolicyScopeContract = "All"
// PolicyScopeContractAPI specifies the policy scope contract api state for policy scope contract.
PolicyScopeContractAPI PolicyScopeContract = "Api"
// PolicyScopeContractOperation specifies the policy scope contract operation state for policy scope contract.
PolicyScopeContractOperation PolicyScopeContract = "Operation"
// PolicyScopeContractProduct specifies the policy scope contract product state for policy scope contract.
PolicyScopeContractProduct PolicyScopeContract = "Product"
// PolicyScopeContractTenant specifies the policy scope contract tenant state for policy scope contract.
PolicyScopeContractTenant PolicyScopeContract = "Tenant"
)
// ProductStateContract enumerates the values for product state contract.
type ProductStateContract string
const (
// NotPublished specifies the not published state for product state contract.
NotPublished ProductStateContract = "NotPublished"
// Published specifies the published state for product state contract.
Published ProductStateContract = "Published"
)
// ReportsAggregation enumerates the values for reports aggregation.
type ReportsAggregation string
const (
// ByAPI specifies the by api state for reports aggregation.
ByAPI ReportsAggregation = "byApi"
// ByGeo specifies the by geo state for reports aggregation.
ByGeo ReportsAggregation = "byGeo"
// ByOperation specifies the by operation state for reports aggregation.
ByOperation ReportsAggregation = "byOperation"
// ByProduct specifies the by product state for reports aggregation.
ByProduct ReportsAggregation = "byProduct"
// BySubscription specifies the by subscription state for reports aggregation.
BySubscription ReportsAggregation = "bySubscription"
// ByTime specifies the by time state for reports aggregation.
ByTime ReportsAggregation = "byTime"
// ByUser specifies the by user state for reports aggregation.
ByUser ReportsAggregation = "byUser"
)
// SkuType enumerates the values for sku type.
type SkuType string
const (
// Developer specifies the developer state for sku type.
Developer SkuType = "Developer"
// Premium specifies the premium state for sku type.
Premium SkuType = "Premium"
// Standard specifies the standard state for sku type.
Standard SkuType = "Standard"
)
// SubscriptionStateContract enumerates the values for subscription state contract.
type SubscriptionStateContract string
const (
// Active specifies the active state for subscription state contract.
Active SubscriptionStateContract = "Active"
// Cancelled specifies the cancelled state for subscription state contract.
Cancelled SubscriptionStateContract = "Cancelled"
// Expired specifies the expired state for subscription state contract.
Expired SubscriptionStateContract = "Expired"
// Rejected specifies the rejected state for subscription state contract.
Rejected SubscriptionStateContract = "Rejected"
// Submitted specifies the submitted state for subscription state contract.
Submitted SubscriptionStateContract = "Submitted"
// Suspended specifies the suspended state for subscription state contract.
Suspended SubscriptionStateContract = "Suspended"
)
// UserStateContract enumerates the values for user state contract.
type UserStateContract string
const (
// UserStateContractActive specifies the user state contract active state for user state contract.
UserStateContractActive UserStateContract = "Active"
// UserStateContractBlocked specifies the user state contract blocked state for user state contract.
UserStateContractBlocked UserStateContract = "Blocked"
)
// VirtualNetworkType enumerates the values for virtual network type.
type VirtualNetworkType string
const (
// VirtualNetworkTypeExternal specifies the virtual network type external state for virtual network type.
VirtualNetworkTypeExternal VirtualNetworkType = "External"
// VirtualNetworkTypeInternal specifies the virtual network type internal state for virtual network type.
VirtualNetworkTypeInternal VirtualNetworkType = "Internal"
// VirtualNetworkTypeNone specifies the virtual network type none state for virtual network type.
VirtualNetworkTypeNone VirtualNetworkType = "None"
)
// AccessInformationContract is tenant access information contract of the API Management service.
type AccessInformationContract struct {
autorest.Response `json:"-"`
ID *string `json:"id,omitempty"`
PrimaryKey *string `json:"primaryKey,omitempty"`
SecondaryKey *string `json:"secondaryKey,omitempty"`
Enabled *bool `json:"enabled,omitempty"`
}
// AccessInformationUpdateParameters is tenant access information update parameters of the API Management service.
type AccessInformationUpdateParameters struct {
Enabled *bool `json:"enabled,omitempty"`
}
// AdditionalRegion is description of an additional API Management resource location.
type AdditionalRegion struct {
Location *string `json:"location,omitempty"`
SkuType SkuType `json:"skuType,omitempty"`
SkuUnitCount *int32 `json:"skuUnitCount,omitempty"`
StaticIPs *[]string `json:"staticIPs,omitempty"`
Vpnconfiguration *VirtualNetworkConfiguration `json:"vpnconfiguration,omitempty"`
}
// APICollection is paged Api list representation.
type APICollection struct {
autorest.Response `json:"-"`
Value *[]APIContract `json:"value,omitempty"`
Count *int64 `json:"count,omitempty"`
NextLink *string `json:"nextLink,omitempty"`
}
// APICollectionPreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client APICollection) APICollectionPreparer() (*http.Request, error) {
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
return nil, nil
}
return autorest.Prepare(&http.Request{},
autorest.AsJSON(),
autorest.AsGet(),
autorest.WithBaseURL(to.String(client.NextLink)))
}
// APIContract is API details.
type APIContract struct {
autorest.Response `json:"-"`
Description *string `json:"description,omitempty"`
AuthenticationSettings *AuthenticationSettingsContract `json:"authenticationSettings,omitempty"`
SubscriptionKeyParameterNames *SubscriptionKeyParameterNamesContract `json:"subscriptionKeyParameterNames,omitempty"`
Type APITypeContract `json:"type,omitempty"`
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
ServiceURL *string `json:"serviceUrl,omitempty"`
Path *string `json:"path,omitempty"`
Protocols *[]APIProtocolContract `json:"protocols,omitempty"`
}
// APIEntityBaseContract is API base contract details.
type APIEntityBaseContract struct {
Description *string `json:"description,omitempty"`
AuthenticationSettings *AuthenticationSettingsContract `json:"authenticationSettings,omitempty"`
SubscriptionKeyParameterNames *SubscriptionKeyParameterNamesContract `json:"subscriptionKeyParameterNames,omitempty"`
Type APITypeContract `json:"type,omitempty"`
}
// APIExportResult is the response model for the export API output operation.
type APIExportResult struct {
autorest.Response `json:"-"`
Content *[]byte `json:"content,omitempty"`
StatusCode HTTPStatusCode `json:"statusCode,omitempty"`
RequestID *string `json:"requestId,omitempty"`
}
// APIUpdateContract is API Update Contract details.
type APIUpdateContract struct {
Description *string `json:"description,omitempty"`
AuthenticationSettings *AuthenticationSettingsContract `json:"authenticationSettings,omitempty"`
SubscriptionKeyParameterNames *SubscriptionKeyParameterNamesContract `json:"subscriptionKeyParameterNames,omitempty"`
Type APITypeContract `json:"type,omitempty"`
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
ServiceURL *string `json:"serviceUrl,omitempty"`
Path *string `json:"path,omitempty"`
Protocols *[]APIProtocolContract `json:"protocols,omitempty"`
}
// AuthenticationSettingsContract is API Authentication Settings.
type AuthenticationSettingsContract struct {
OAuth2 *OAuth2AuthenticationSettingsContract `json:"oAuth2,omitempty"`
}
// AuthorizationServerCollection is paged OAuth2 Authorization Servers list representation.
type AuthorizationServerCollection struct {
autorest.Response `json:"-"`
Value *[]OAuth2AuthorizationServerContract `json:"value,omitempty"`
Count *int64 `json:"count,omitempty"`
NextLink *string `json:"nextLink,omitempty"`
}
// AuthorizationServerCollectionPreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client AuthorizationServerCollection) AuthorizationServerCollectionPreparer() (*http.Request, error) {
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
return nil, nil
}
return autorest.Prepare(&http.Request{},
autorest.AsJSON(),
autorest.AsGet(),
autorest.WithBaseURL(to.String(client.NextLink)))
}
// BackendAuthorizationHeaderCredentials is authorization header information.
type BackendAuthorizationHeaderCredentials struct {
Scheme *string `json:"scheme,omitempty"`
Parameter *string `json:"parameter,omitempty"`
}
// BackendBaseParameters is backend entity base Parameter set.
type BackendBaseParameters struct {
Certificate *[]string `json:"certificate,omitempty"`
Query *map[string][]string `json:"query,omitempty"`
Header *map[string][]string `json:"header,omitempty"`
URL *string `json:"url,omitempty"`
Username *string `json:"username,omitempty"`
Password *string `json:"password,omitempty"`
Title *string `json:"title,omitempty"`
Description *string `json:"description,omitempty"`
ResourceID *string `json:"resourceId,omitempty"`
*BackendProperties `json:"properties,omitempty"`
}
// BackendCollection is paged Backend list representation.
type BackendCollection struct {
autorest.Response `json:"-"`
Value *[]BackendResponse `json:"value,omitempty"`
Count *int64 `json:"count,omitempty"`
NextLink *string `json:"nextLink,omitempty"`
}
// BackendCollectionPreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client BackendCollection) BackendCollectionPreparer() (*http.Request, error) {
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
return nil, nil
}
return autorest.Prepare(&http.Request{},
autorest.AsJSON(),
autorest.AsGet(),
autorest.WithBaseURL(to.String(client.NextLink)))
}
// BackendContract is parameters supplied to the Create Backend operation.
type BackendContract struct {
Certificate *[]string `json:"certificate,omitempty"`
Query *map[string][]string `json:"query,omitempty"`
Header *map[string][]string `json:"header,omitempty"`
URL *string `json:"url,omitempty"`
Username *string `json:"username,omitempty"`
Password *string `json:"password,omitempty"`
Title *string `json:"title,omitempty"`
Description *string `json:"description,omitempty"`
ResourceID *string `json:"resourceId,omitempty"`
*BackendProperties `json:"properties,omitempty"`
ID *string `json:"id,omitempty"`
Protocol BackendProtocol `json:"protocol,omitempty"`
}
// BackendCredentialsContract is details of the Credentials used to connect to Backend.
type BackendCredentialsContract struct {
Scheme *string `json:"scheme,omitempty"`
Parameter *string `json:"parameter,omitempty"`
Certificate *[]string `json:"certificate,omitempty"`
Query *map[string][]string `json:"query,omitempty"`
Header *map[string][]string `json:"header,omitempty"`
}
// BackendProperties is properties specific to a Backend.
type BackendProperties struct {
SkipCertificateChainValidation *bool `json:"skipCertificateChainValidation,omitempty"`
SkipCertificateNameValidation *bool `json:"skipCertificateNameValidation,omitempty"`
}
// BackendProxyContract is details of the Backend WebProxy Server to use in the Request to Backend.
type BackendProxyContract struct {
URL *string `json:"url,omitempty"`
Username *string `json:"username,omitempty"`
Password *string `json:"password,omitempty"`
}
// BackendResponse is the Backend entity in API Management represents a backend service that is configured to skip
// certification chain validation when using a self-signed certificate to test mutual certificate authentication.
type BackendResponse struct {
autorest.Response `json:"-"`
Certificate *[]string `json:"certificate,omitempty"`
Query *map[string][]string `json:"query,omitempty"`
Header *map[string][]string `json:"header,omitempty"`
URL *string `json:"url,omitempty"`
Username *string `json:"username,omitempty"`
Password *string `json:"password,omitempty"`
Title *string `json:"title,omitempty"`
Description *string `json:"description,omitempty"`
ResourceID *string `json:"resourceId,omitempty"`
*BackendProperties `json:"properties,omitempty"`
ID *string `json:"id,omitempty"`
Protocol BackendProtocol `json:"protocol,omitempty"`
}
// BackendUpdateParameters is parameters supplied to the Update Backend operation.
type BackendUpdateParameters struct {
Certificate *[]string `json:"certificate,omitempty"`
Query *map[string][]string `json:"query,omitempty"`
Header *map[string][]string `json:"header,omitempty"`
URL *string `json:"url,omitempty"`
Username *string `json:"username,omitempty"`
Password *string `json:"password,omitempty"`
Title *string `json:"title,omitempty"`
Description *string `json:"description,omitempty"`
ResourceID *string `json:"resourceId,omitempty"`
*BackendProperties `json:"properties,omitempty"`
Protocol BackendProtocol `json:"protocol,omitempty"`
}
// CertificateCollection is paged Certificates list representation.
type CertificateCollection struct {
autorest.Response `json:"-"`
Value *[]CertificateContract `json:"value,omitempty"`
Count *int64 `json:"count,omitempty"`
NextLink *string `json:"nextLink,omitempty"`
}
// CertificateCollectionPreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client CertificateCollection) CertificateCollectionPreparer() (*http.Request, error) {
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
return nil, nil
}
return autorest.Prepare(&http.Request{},
autorest.AsJSON(),
autorest.AsGet(),
autorest.WithBaseURL(to.String(client.NextLink)))
}
// CertificateContract is certificate details.
type CertificateContract struct {
autorest.Response `json:"-"`
ID *string `json:"id,omitempty"`
Subject *string `json:"subject,omitempty"`
Thumbprint *string `json:"thumbprint,omitempty"`
ExpirationDate *date.Time `json:"expirationDate,omitempty"`
}
// CertificateCreateOrUpdateParameters is parameters supplied to the CreateOrUpdate certificate operation.
type CertificateCreateOrUpdateParameters struct {
Data *string `json:"data,omitempty"`
Password *string `json:"password,omitempty"`
}
// CertificateInformation is SSL certificate information.
type CertificateInformation struct {
autorest.Response `json:"-"`
Expiry *date.Time `json:"expiry,omitempty"`
Thumbprint *string `json:"thumbprint,omitempty"`
Subject *string `json:"subject,omitempty"`
}
// ConnectivityStatusContract is details about connectivity to a resource.
type ConnectivityStatusContract struct {
Name *string `json:"name,omitempty"`
Status ConnectivityStatusType `json:"status,omitempty"`
Error *string `json:"error,omitempty"`
LastUpdated *date.Time `json:"lastUpdated,omitempty"`
LastStatusChange *date.Time `json:"lastStatusChange,omitempty"`
}
// DeployConfigurationParameters is parameters supplied to the Deploy Configuration operation.
type DeployConfigurationParameters struct {
Branch *string `json:"branch,omitempty"`
Force *bool `json:"force,omitempty"`
}
// ErrorBodyContract is error Body contract.
type ErrorBodyContract struct {
autorest.Response `json:"-"`
Code *string `json:"code,omitempty"`
Message *string `json:"message,omitempty"`
Details *[]ErrorFieldContract `json:"details,omitempty"`
}
// ErrorFieldContract is error Field contract.
type ErrorFieldContract struct {
Code *string `json:"code,omitempty"`
Message *string `json:"message,omitempty"`
Target *string `json:"target,omitempty"`
}
// ErrorResponse is error Response.
type ErrorResponse struct {
Code *string `json:"code,omitempty"`
Message *string `json:"message,omitempty"`
}
// GenerateSsoURLResult is generate SSO Url operations response details.
type GenerateSsoURLResult struct {
autorest.Response `json:"-"`
Value *string `json:"value,omitempty"`
}
// GroupCollection is paged Group list representation.
type GroupCollection struct {
autorest.Response `json:"-"`
Value *[]GroupContract `json:"value,omitempty"`
Count *int64 `json:"count,omitempty"`
NextLink *string `json:"nextLink,omitempty"`
}
// GroupCollectionPreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client GroupCollection) GroupCollectionPreparer() (*http.Request, error) {
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
return nil, nil
}
return autorest.Prepare(&http.Request{},
autorest.AsJSON(),
autorest.AsGet(),
autorest.WithBaseURL(to.String(client.NextLink)))
}
// GroupContract is developer group.
type GroupContract struct {
autorest.Response `json:"-"`
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Description *string `json:"description,omitempty"`
BuiltIn *bool `json:"builtIn,omitempty"`
Type GroupTypeContract `json:"type,omitempty"`
ExternalID *string `json:"externalId,omitempty"`
}
// GroupCreateParameters is parameters supplied to the Create Group operation.
type GroupCreateParameters struct {
Name *string `json:"name,omitempty"`
Description *string `json:"description,omitempty"`
Type GroupTypeContract `json:"type,omitempty"`
ExternalID *string `json:"externalId,omitempty"`
}
// GroupUpdateParameters is parameters supplied to the Update Group operation.
type GroupUpdateParameters struct {
Name *string `json:"name,omitempty"`
Description *string `json:"description,omitempty"`
Type GroupTypeContract `json:"type,omitempty"`
ExternalID *string `json:"externalId,omitempty"`
}
// HostnameConfiguration is custom hostname configuration.
type HostnameConfiguration struct {
Type HostnameType `json:"type,omitempty"`
Hostname *string `json:"hostname,omitempty"`
Certificate *CertificateInformation `json:"certificate,omitempty"`
}
// IdentityProviderContract is the external Identity Providers like Facebook, Google, Microsoft, Twitter or Azure
// Active Directory which can be used to enable access to the API Management service developer portal for all users.
type IdentityProviderContract struct {
autorest.Response `json:"-"`
ClientID *string `json:"clientId,omitempty"`
ClientSecret *string `json:"clientSecret,omitempty"`
Type IdentityProviderNameType `json:"type,omitempty"`
AllowedTenants *[]string `json:"allowedTenants,omitempty"`
}
// IdentityProviderList is list of all the Identity Providers configured on the service instance.
type IdentityProviderList struct {
autorest.Response `json:"-"`
Value *[]IdentityProviderContract `json:"value,omitempty"`
}
// IdentityProviderUpdateParameters is parameters supplied to the Update Identity Provider operation.
type IdentityProviderUpdateParameters struct {
ClientID *string `json:"clientId,omitempty"`
ClientSecret *string `json:"clientSecret,omitempty"`
AllowedTenants *[]string `json:"allowedTenants,omitempty"`
}
// LoggerCollection is paged Logger list representation.
type LoggerCollection struct {
autorest.Response `json:"-"`
Value *[]LoggerResponse `json:"value,omitempty"`
Count *int64 `json:"count,omitempty"`
NextLink *string `json:"nextLink,omitempty"`
}
// LoggerCollectionPreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client LoggerCollection) LoggerCollectionPreparer() (*http.Request, error) {
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
return nil, nil
}
return autorest.Prepare(&http.Request{},
autorest.AsJSON(),
autorest.AsGet(),
autorest.WithBaseURL(to.String(client.NextLink)))
}
// LoggerCreateParameters is parameters supplied to the Create Logger operation.
type LoggerCreateParameters struct {
Type *string `json:"type,omitempty"`
Description *string `json:"description,omitempty"`
Credentials *map[string]*string `json:"credentials,omitempty"`
IsBuffered *bool `json:"isBuffered,omitempty"`
}
// LoggerResponse is the Logger entity in API Management represents an event sink that you can use to log API
// Management events. Currently the Logger entity supports logging API Management events to Azure Event Hubs.
type LoggerResponse struct {
autorest.Response `json:"-"`
ID *string `json:"id,omitempty"`
Type *string `json:"type,omitempty"`
Description *string `json:"description,omitempty"`
Credentials *map[string]*string `json:"credentials,omitempty"`
IsBuffered *bool `json:"isBuffered,omitempty"`
}
// LoggerUpdateParameters is parameters supplied to the Update Logger operation.
type LoggerUpdateParameters struct {
Type *string `json:"type,omitempty"`
Description *string `json:"description,omitempty"`
Credentials *map[string]*string `json:"credentials,omitempty"`
IsBuffered *bool `json:"isBuffered,omitempty"`
}
// NetworkStatusContract is network Status details.
type NetworkStatusContract struct {
autorest.Response `json:"-"`
DNSServers *[]string `json:"dnsServers,omitempty"`
ConnectivityStatus *[]ConnectivityStatusContract `json:"connectivityStatus,omitempty"`
}
// OAuth2AuthenticationSettingsContract is API OAuth2 Authentication settings details.
type OAuth2AuthenticationSettingsContract struct {
AuthorizationServerID *string `json:"authorizationServerId,omitempty"`
Scope *string `json:"scope,omitempty"`
}
// OAuth2AuthorizationServerContract is external OAuth authorization server settings.
type OAuth2AuthorizationServerContract struct {
autorest.Response `json:"-"`
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Description *string `json:"description,omitempty"`
ClientRegistrationEndpoint *string `json:"clientRegistrationEndpoint,omitempty"`
AuthorizationEndpoint *string `json:"authorizationEndpoint,omitempty"`
AuthorizationMethods *[]MethodContract `json:"authorizationMethods,omitempty"`
ClientAuthenticationMethod *[]ClientAuthenticationMethodContract `json:"clientAuthenticationMethod,omitempty"`
TokenBodyParameters *[]TokenBodyParameterContract `json:"tokenBodyParameters,omitempty"`
TokenEndpoint *string `json:"tokenEndpoint,omitempty"`
SupportState *bool `json:"supportState,omitempty"`
DefaultScope *string `json:"defaultScope,omitempty"`
GrantTypes *[]GrantTypesContract `json:"grantTypes,omitempty"`
BearerTokenSendingMethods *[]BearerTokenSendingMethodsContract `json:"bearerTokenSendingMethods,omitempty"`
ClientID *string `json:"clientId,omitempty"`
ClientSecret *string `json:"clientSecret,omitempty"`
ResourceOwnerUsername *string `json:"resourceOwnerUsername,omitempty"`
ResourceOwnerPassword *string `json:"resourceOwnerPassword,omitempty"`
}
// OAuth2AuthorizationServerUpdateContract is external OAuth authorization server Update settings contract.
type OAuth2AuthorizationServerUpdateContract struct {
Name *string `json:"name,omitempty"`
Description *string `json:"description,omitempty"`
ClientRegistrationEndpoint *string `json:"clientRegistrationEndpoint,omitempty"`
AuthorizationEndpoint *string `json:"authorizationEndpoint,omitempty"`
AuthorizationMethods *[]MethodContract `json:"authorizationMethods,omitempty"`
ClientAuthenticationMethod *[]ClientAuthenticationMethodContract `json:"clientAuthenticationMethod,omitempty"`
TokenBodyParameters *[]TokenBodyParameterContract `json:"tokenBodyParameters,omitempty"`
TokenEndpoint *string `json:"tokenEndpoint,omitempty"`
SupportState *bool `json:"supportState,omitempty"`
DefaultScope *string `json:"defaultScope,omitempty"`
GrantTypes *[]GrantTypesContract `json:"grantTypes,omitempty"`
BearerTokenSendingMethods *[]BearerTokenSendingMethodsContract `json:"bearerTokenSendingMethods,omitempty"`
ClientID *string `json:"clientId,omitempty"`
ClientSecret *string `json:"clientSecret,omitempty"`
ResourceOwnerUsername *string `json:"resourceOwnerUsername,omitempty"`
ResourceOwnerPassword *string `json:"resourceOwnerPassword,omitempty"`
}
// OpenIDConnectProviderCollection is paged OpenIdProviders list representation.
type OpenIDConnectProviderCollection struct {
autorest.Response `json:"-"`
Value *[]OpenidConnectProviderContract `json:"value,omitempty"`
Count *int64 `json:"count,omitempty"`
NextLink *string `json:"nextLink,omitempty"`
}
// OpenIDConnectProviderCollectionPreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client OpenIDConnectProviderCollection) OpenIDConnectProviderCollectionPreparer() (*http.Request, error) {
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
return nil, nil
}
return autorest.Prepare(&http.Request{},
autorest.AsJSON(),
autorest.AsGet(),
autorest.WithBaseURL(to.String(client.NextLink)))
}
// OpenidConnectProviderContract is openID Connect Providers Contract.
type OpenidConnectProviderContract struct {
autorest.Response `json:"-"`
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Description *string `json:"description,omitempty"`
MetadataEndpoint *string `json:"metadataEndpoint,omitempty"`
ClientID *string `json:"clientId,omitempty"`
ClientSecret *string `json:"clientSecret,omitempty"`
}
// OpenidConnectProviderCreateContract is parameters supplied to the Create OpenID Connect Provider operation.
type OpenidConnectProviderCreateContract struct {
Name *string `json:"name,omitempty"`
Description *string `json:"description,omitempty"`
MetadataEndpoint *string `json:"metadataEndpoint,omitempty"`
ClientID *string `json:"clientId,omitempty"`
ClientSecret *string `json:"clientSecret,omitempty"`
}
// OpenidConnectProviderUpdateContract is parameters supplied to the Update OpenID Connect Provider operation.
type OpenidConnectProviderUpdateContract struct {
Name *string `json:"name,omitempty"`
Description *string `json:"description,omitempty"`
MetadataEndpoint *string `json:"metadataEndpoint,omitempty"`
ClientID *string `json:"clientId,omitempty"`
ClientSecret *string `json:"clientSecret,omitempty"`
}
// Operation is REST API operation
type Operation struct {
Name *string `json:"name,omitempty"`
Display *OperationDisplay `json:"display,omitempty"`
}
// OperationCollection is paged Operation list representation.
type OperationCollection struct {
autorest.Response `json:"-"`
Value *[]OperationContract `json:"value,omitempty"`
Count *int64 `json:"count,omitempty"`
NextLink *string `json:"nextLink,omitempty"`
}
// OperationCollectionPreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client OperationCollection) OperationCollectionPreparer() (*http.Request, error) {
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
return nil, nil
}
return autorest.Prepare(&http.Request{},
autorest.AsJSON(),
autorest.AsGet(),
autorest.WithBaseURL(to.String(client.NextLink)))
}
// OperationContract is api Operation details.
type OperationContract struct {
autorest.Response `json:"-"`
TemplateParameters *[]ParameterContract `json:"templateParameters,omitempty"`
Description *string `json:"description,omitempty"`
Request *RequestContract `json:"request,omitempty"`
Responses *[]ResultContract `json:"responses,omitempty"`
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Method *string `json:"method,omitempty"`
URLTemplate *string `json:"urlTemplate,omitempty"`
}
// OperationDisplay is the object that describes the operation.
type OperationDisplay struct {
Provider *string `json:"provider,omitempty"`
Operation *string `json:"operation,omitempty"`
Resource *string `json:"resource,omitempty"`
Description *string `json:"description,omitempty"`
}
// OperationEntityBaseContract is api Operation Entity Base Contract details.
type OperationEntityBaseContract struct {
TemplateParameters *[]ParameterContract `json:"templateParameters,omitempty"`
Description *string `json:"description,omitempty"`
Request *RequestContract `json:"request,omitempty"`
Responses *[]ResultContract `json:"responses,omitempty"`
}
// OperationListResult is result of the request to list REST API operations. It contains a list of operations and a URL
// nextLink to get the next set of results.
type OperationListResult struct {
autorest.Response `json:"-"`
Value *[]Operation `json:"value,omitempty"`
NextLink *string `json:"nextLink,omitempty"`
}
// OperationListResultPreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client OperationListResult) OperationListResultPreparer() (*http.Request, error) {
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
return nil, nil
}
return autorest.Prepare(&http.Request{},
autorest.AsJSON(),
autorest.AsGet(),
autorest.WithBaseURL(to.String(client.NextLink)))
}
// OperationResultContract is operation Result.
type OperationResultContract struct {
autorest.Response `json:"-"`
ID *string `json:"id,omitempty"`
Status AsyncOperationState `json:"status,omitempty"`
Started *date.Time `json:"started,omitempty"`
Updated *date.Time `json:"updated,omitempty"`
ResultInfo *string `json:"resultInfo,omitempty"`
Error *ErrorBodyContract `json:"error,omitempty"`
}
// OperationUpdateContract is api Operation Update Contract details.
type OperationUpdateContract struct {
TemplateParameters *[]ParameterContract `json:"templateParameters,omitempty"`
Description *string `json:"description,omitempty"`
Request *RequestContract `json:"request,omitempty"`
Responses *[]ResultContract `json:"responses,omitempty"`
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Method *string `json:"method,omitempty"`
URLTemplate *string `json:"urlTemplate,omitempty"`
}
// ParameterContract is operation parameters details.
type ParameterContract struct {
Name *string `json:"name,omitempty"`
Description *string `json:"description,omitempty"`
Type *string `json:"type,omitempty"`
DefaultValue *string `json:"defaultValue,omitempty"`
Required *bool `json:"required,omitempty"`
Values *[]string `json:"values,omitempty"`
}
// PolicySnippetContract is policy snippet.
type PolicySnippetContract struct {
Name *string `json:"name,omitempty"`
Content *string `json:"content,omitempty"`
ToolTip *string `json:"toolTip,omitempty"`
Scope PolicyScopeContract `json:"scope,omitempty"`
}
// PolicySnippetsCollection is the response of the list policy snippets operation.
type PolicySnippetsCollection struct {
autorest.Response `json:"-"`
Value *[]PolicySnippetContract `json:"value,omitempty"`
}
// ProductCollection is paged Products list representation.
type ProductCollection struct {
autorest.Response `json:"-"`
Value *[]ProductContract `json:"value,omitempty"`
Count *int64 `json:"count,omitempty"`
NextLink *string `json:"nextLink,omitempty"`
}
// ProductCollectionPreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client ProductCollection) ProductCollectionPreparer() (*http.Request, error) {
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
return nil, nil
}
return autorest.Prepare(&http.Request{},
autorest.AsJSON(),
autorest.AsGet(),
autorest.WithBaseURL(to.String(client.NextLink)))
}
// ProductContract is product profile.
type ProductContract struct {