-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgen.go
More file actions
13198 lines (10796 loc) · 436 KB
/
gen.go
File metadata and controls
13198 lines (10796 loc) · 436 KB
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 main provides primitives to interact with the openapi HTTP API.
//
// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.
package main
import (
"bytes"
"context"
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
"net/url"
"strings"
"time"
"github.com/oapi-codegen/runtime"
openapi_types "github.com/oapi-codegen/runtime/types"
)
const (
BearerAuthScopes = "bearerAuth.Scopes"
)
// Defines values for ActivityType.
const (
Create ActivityType = "create"
Delete ActivityType = "delete"
Update ActivityType = "update"
)
// Defines values for ChangesetStatus.
const (
ChangesetStatusApplied ChangesetStatus = "applied"
ChangesetStatusApplying ChangesetStatus = "applying"
ChangesetStatusCurrent ChangesetStatus = "current"
ChangesetStatusFailed ChangesetStatus = "failed"
ChangesetStatusPending ChangesetStatus = "pending"
ChangesetStatusRejected ChangesetStatus = "rejected"
)
// Defines values for ClusterHealthCheckStatus.
const (
Error ClusterHealthCheckStatus = "error"
Success ClusterHealthCheckStatus = "success"
Warning ClusterHealthCheckStatus = "warning"
)
// Defines values for CodecClientType.
const (
Http1 CodecClientType = "http1"
Http2 CodecClientType = "http2"
)
// Defines values for CreateBillingPortalSessionRequestDeepLink.
const (
Empty CreateBillingPortalSessionRequestDeepLink = ""
PaymentMethod CreateBillingPortalSessionRequestDeepLink = "payment_method"
)
// Defines values for DNSLookupFamily.
const (
ALL DNSLookupFamily = "ALL"
AUTO DNSLookupFamily = "AUTO"
V4ONLY DNSLookupFamily = "V4_ONLY"
V4PREFERRED DNSLookupFamily = "V4_PREFERRED"
V6ONLY DNSLookupFamily = "V6_ONLY"
)
// Defines values for DefaultTemplateRecordType.
const (
DefaultTemplateRecordTypePolicy DefaultTemplateRecordType = "policy"
DefaultTemplateRecordTypeRoute DefaultTemplateRecordType = "route"
DefaultTemplateRecordTypeSettings DefaultTemplateRecordType = "settings"
)
// Defines values for DistributionMetricId.
const (
UpstreamRequestTime DistributionMetricId = "upstream_request_time"
)
// Defines values for EntityType.
const (
EntityTypeChangeset EntityType = "changeset"
EntityTypeCustomDomain EntityType = "custom_domain"
EntityTypeDomain EntityType = "domain"
EntityTypeKeyPair EntityType = "key_pair"
EntityTypeNamespace EntityType = "namespace"
EntityTypeOrganization EntityType = "organization"
EntityTypePolicy EntityType = "policy"
EntityTypeRoute EntityType = "route"
EntityTypeServiceAccount EntityType = "service_account"
EntityTypeSettings EntityType = "settings"
)
// Defines values for IdentityProviderType.
const (
Apple IdentityProviderType = "apple"
Auth0 IdentityProviderType = "auth0"
Azure IdentityProviderType = "azure"
Cognito IdentityProviderType = "cognito"
Github IdentityProviderType = "github"
Gitlab IdentityProviderType = "gitlab"
Google IdentityProviderType = "google"
Oidc IdentityProviderType = "oidc"
Okta IdentityProviderType = "okta"
Onelogin IdentityProviderType = "onelogin"
Ping IdentityProviderType = "ping"
)
// Defines values for JSONPatchOperationOp.
const (
Add JSONPatchOperationOp = "add"
Copy JSONPatchOperationOp = "copy"
Move JSONPatchOperationOp = "move"
Remove JSONPatchOperationOp = "remove"
Replace JSONPatchOperationOp = "replace"
Test JSONPatchOperationOp = "test"
)
// Defines values for JwtIssuerFormat.
const (
HostOnly JwtIssuerFormat = "hostOnly"
Uri JwtIssuerFormat = "uri"
)
// Defines values for KeyPairOrigin.
const (
KeyPairOriginSystem KeyPairOrigin = "system"
KeyPairOriginUser KeyPairOrigin = "user"
)
// Defines values for KeyPairStatus.
const (
KeyPairStatusPending KeyPairStatus = "pending"
KeyPairStatusReady KeyPairStatus = "ready"
)
// Defines values for NamespaceRole.
const (
NamespaceRoleAdmin NamespaceRole = "admin"
NamespaceRoleManager NamespaceRole = "manager"
NamespaceRoleViewer NamespaceRole = "viewer"
)
// Defines values for NamespaceType.
const (
NamespaceTypeCluster NamespaceType = "cluster"
NamespaceTypeRegular NamespaceType = "regular"
NamespaceTypeRoot NamespaceType = "root"
)
// Defines values for OrganizationRole.
const (
OrganizationRoleAdmin OrganizationRole = "admin"
OrganizationRoleAuditor OrganizationRole = "auditor"
OrganizationRoleMember OrganizationRole = "member"
OrganizationRoleOwner OrganizationRole = "owner"
)
// Defines values for OrganizationType.
const (
Personal OrganizationType = "personal"
Professional OrganizationType = "professional"
)
// Defines values for Percentile.
const (
N50 Percentile = 50
N95 Percentile = 95
N99 Percentile = 99
)
// Defines values for PingClusterResponseErrorCode.
const (
ErrClusterPingConnectionError PingClusterResponseErrorCode = "err_cluster_ping_connection_error"
ErrClusterPingDnsError PingClusterResponseErrorCode = "err_cluster_ping_dns_error"
ErrClusterPingInvalidCert PingClusterResponseErrorCode = "err_cluster_ping_invalid_cert"
ErrClusterPingKeyNotFound PingClusterResponseErrorCode = "err_cluster_ping_key_not_found"
ErrClusterPingNoIdentity PingClusterResponseErrorCode = "err_cluster_ping_no_identity"
ErrClusterPingUnexpectedResponse PingClusterResponseErrorCode = "err_cluster_ping_unexpected_response"
)
// Defines values for RouteGrpcHealthCheckType.
const (
Grpc RouteGrpcHealthCheckType = "grpc"
)
// Defines values for RouteHttpHealthCheckType.
const (
Http RouteHttpHealthCheckType = "http"
)
// Defines values for RouteLoadBalancingPolicy.
const (
LeastRequest RouteLoadBalancingPolicy = "least_request"
Maglev RouteLoadBalancingPolicy = "maglev"
Random RouteLoadBalancingPolicy = "random"
RingHash RouteLoadBalancingPolicy = "ring_hash"
RoundRobin RouteLoadBalancingPolicy = "round_robin"
)
// Defines values for RouteTcpHealthCheckType.
const (
Tcp RouteTcpHealthCheckType = "tcp"
)
// Defines values for SubscriptionStatus.
const (
Active SubscriptionStatus = "active"
Canceled SubscriptionStatus = "canceled"
Incomplete SubscriptionStatus = "incomplete"
IncompleteExpired SubscriptionStatus = "incomplete_expired"
NotFound SubscriptionStatus = "not_found"
PastDue SubscriptionStatus = "past_due"
Paused SubscriptionStatus = "paused"
Trialing SubscriptionStatus = "trialing"
Unpaid SubscriptionStatus = "unpaid"
)
// Defines values for TimeSeriesMetricId.
const (
AuthzDenied TimeSeriesMetricId = "authz_denied"
AuthzErr TimeSeriesMetricId = "authz_err"
AuthzOk TimeSeriesMetricId = "authz_ok"
Dau TimeSeriesMetricId = "dau"
Mau TimeSeriesMetricId = "mau"
UpstreamRequests TimeSeriesMetricId = "upstream_requests"
UpstreamRxBytes TimeSeriesMetricId = "upstream_rx_bytes"
UpstreamTxBytes TimeSeriesMetricId = "upstream_tx_bytes"
)
// Defines values for UserType.
const (
UserTypeApiAccess UserType = "user_type_api_access"
UserTypeInteractive UserType = "user_type_interactive"
)
// ActivityLog defines model for ActivityLog.
type ActivityLog struct {
ActivityType ActivityType `json:"activityType"`
Applied struct {
At *time.Time `json:"at,omitempty"`
By UserInfo `json:"by"`
ChangesetId *string `json:"changesetId,omitempty"`
} `json:"applied"`
CreatedAt time.Time `json:"createdAt"`
Entity struct {
Data *map[string]interface{} `json:"data,omitempty"`
Id string `json:"id"`
Type EntityType `json:"type"`
} `json:"entity"`
Id string `json:"id"`
Namespace struct {
Id *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
} `json:"namespace"`
UpdatedAt time.Time `json:"updatedAt"`
User UserInfo `json:"user"`
}
// ActivityLogList defines model for ActivityLogList.
type ActivityLogList = []ActivityLog
// ActivityLogProperties defines model for ActivityLogProperties.
type ActivityLogProperties struct {
ActivityType ActivityType `json:"activityType"`
Applied struct {
At *time.Time `json:"at,omitempty"`
By UserInfo `json:"by"`
ChangesetId *string `json:"changesetId,omitempty"`
} `json:"applied"`
Entity struct {
Data *map[string]interface{} `json:"data,omitempty"`
Id string `json:"id"`
Type EntityType `json:"type"`
} `json:"entity"`
Namespace struct {
Id *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
} `json:"namespace"`
User UserInfo `json:"user"`
}
// ActivityType defines model for ActivityType.
type ActivityType string
// ApplyChangesetResponse defines model for ApplyChangesetResponse.
type ApplyChangesetResponse = Changeset
// BillingUsage defines model for BillingUsage.
type BillingUsage struct {
Admins int `json:"admins"`
Auditors int `json:"auditors"`
Members int `json:"members"`
Owners int `json:"owners"`
Time time.Time `json:"time"`
Users int `json:"users"`
}
// CertificateExtKeyUsage defines model for CertificateExtKeyUsage.
type CertificateExtKeyUsage struct {
Any bool `json:"any"`
ClientAuth bool `json:"clientAuth"`
CodeSigning bool `json:"codeSigning"`
EmailProtection bool `json:"emailProtection"`
IpsecEndSystem bool `json:"ipsecEndSystem"`
IpsecTunnel bool `json:"ipsecTunnel"`
IpsecUser bool `json:"ipsecUser"`
MicrosoftCommercialCodeSigning bool `json:"microsoftCommercialCodeSigning"`
MicrosoftKernelCodeSigning bool `json:"microsoftKernelCodeSigning"`
MicrosoftServerGatedCrypto bool `json:"microsoftServerGatedCrypto"`
NetscapeServerGatedCrypto bool `json:"netscapeServerGatedCrypto"`
OcspSigning bool `json:"ocspSigning"`
ServerAuth bool `json:"serverAuth"`
TimeStamping bool `json:"timeStamping"`
}
// CertificateInfo defines model for CertificateInfo.
type CertificateInfo struct {
DnsNames []string `json:"dnsNames"`
EmailAddresses []string `json:"emailAddresses"`
ExcludedDnsDomains []string `json:"excludedDnsDomains"`
ExcludedEmailAddresses []string `json:"excludedEmailAddresses"`
ExcludedIpRanges []string `json:"excludedIpRanges"`
ExcludedUriDomains []string `json:"excludedUriDomains"`
ExtKeyUsage CertificateExtKeyUsage `json:"extKeyUsage"`
IpAddresses []string `json:"ipAddresses"`
Issuer CertificateName `json:"issuer"`
KeyUsage CertificateKeyUsage `json:"keyUsage"`
NotAfter time.Time `json:"notAfter"`
NotBefore time.Time `json:"notBefore"`
PermittedDnsDomains []string `json:"permittedDnsDomains"`
PermittedDnsDomainsCritical bool `json:"permittedDnsDomainsCritical"`
PermittedEmailAddresses []string `json:"permittedEmailAddresses"`
PermittedIpRanges []string `json:"permittedIpRanges"`
PermittedUriDomains []string `json:"permittedUriDomains"`
Serial string `json:"serial"`
Subject CertificateName `json:"subject"`
Uris []string `json:"uris"`
Version int `json:"version"`
}
// CertificateKeyUsage defines model for CertificateKeyUsage.
type CertificateKeyUsage struct {
CertSign bool `json:"certSign"`
ContentCommitment bool `json:"contentCommitment"`
CrlSign bool `json:"crlSign"`
DataEncipherment bool `json:"dataEncipherment"`
DecipherOnly bool `json:"decipherOnly"`
DigitalSignature bool `json:"digitalSignature"`
EncipherOnly bool `json:"encipherOnly"`
KeyAgreement bool `json:"keyAgreement"`
KeyEncipherment bool `json:"keyEncipherment"`
}
// CertificateName defines model for CertificateName.
type CertificateName struct {
CommonName string `json:"commonName"`
Country []string `json:"country"`
Locality []string `json:"locality"`
Organization []string `json:"organization"`
OrganizationalUnit []string `json:"organizationalUnit"`
PostalCode []string `json:"postalCode"`
Province []string `json:"province"`
SerialNumber string `json:"serialNumber"`
StreetAddress []string `json:"streetAddress"`
}
// Changeset defines model for Changeset.
type Changeset struct {
CreatedAt time.Time `json:"createdAt"`
FailureMessage *string `json:"failureMessage,omitempty"`
Id string `json:"id"`
NamespaceId string `json:"namespaceId"`
Status ChangesetStatus `json:"status"`
UpdatedAt time.Time `json:"updatedAt"`
}
// ChangesetProperties defines model for ChangesetProperties.
type ChangesetProperties struct {
FailureMessage *string `json:"failureMessage,omitempty"`
NamespaceId string `json:"namespaceId"`
Status ChangesetStatus `json:"status"`
}
// ChangesetStatus defines model for ChangesetStatus.
type ChangesetStatus string
// CheckIdentityProviderSettingsRequest defines model for CheckIdentityProviderSettingsRequest.
type CheckIdentityProviderSettingsRequest struct {
ClientId *string `json:"clientId,omitempty"`
ClientSecret *string `json:"clientSecret,omitempty"`
Provider IdentityProviderType `json:"provider"`
RequestParams *StringMap `json:"requestParams,omitempty"`
Scopes *StringList `json:"scopes,omitempty"`
Url *string `json:"url,omitempty"`
}
// CheckIdentityProviderSettingsResponse defines model for CheckIdentityProviderSettingsResponse.
type CheckIdentityProviderSettingsResponse struct {
Errors *CheckIdentityProviderSettingsResponseErrors `json:"errors,omitempty"`
Success bool `json:"success"`
}
// CheckIdentityProviderSettingsResponseErrors defines model for CheckIdentityProviderSettingsResponseErrors.
type CheckIdentityProviderSettingsResponseErrors struct {
ClientId *string `json:"clientId,omitempty"`
ClientSecret *string `json:"clientSecret,omitempty"`
Provider *string `json:"provider,omitempty"`
RequestParams *string `json:"requestParams,omitempty"`
Scopes *string `json:"scopes,omitempty"`
Url *string `json:"url,omitempty"`
}
// Cluster defines model for Cluster.
type Cluster struct {
AutoDetectIpAddress *string `json:"autoDetectIpAddress,omitempty"`
CreatedAt time.Time `json:"createdAt"`
Domain string `json:"domain"`
Fqdn string `json:"fqdn"`
HasFailingHealthChecks bool `json:"hasFailingHealthChecks"`
Id string `json:"id"`
ImportStatus *ImportStatus `json:"importStatus,omitempty"`
ManualOverrideIpAddress *IPAddress `json:"manualOverrideIpAddress,omitempty"`
MinReplicaVersion *string `json:"minReplicaVersion,omitempty"`
Name string `json:"name"`
NamespaceId string `json:"namespaceId"`
OnboardingStatus *string `json:"onboardingStatus,omitempty"`
UpdatedAt time.Time `json:"updatedAt"`
}
// ClusterComputedProperties defines model for ClusterComputedProperties.
type ClusterComputedProperties struct {
AutoDetectIpAddress *string `json:"autoDetectIpAddress,omitempty"`
Domain string `json:"domain"`
Fqdn string `json:"fqdn"`
HasFailingHealthChecks bool `json:"hasFailingHealthChecks"`
ImportStatus *ImportStatus `json:"importStatus,omitempty"`
MinReplicaVersion *string `json:"minReplicaVersion,omitempty"`
NamespaceId string `json:"namespaceId"`
OnboardingStatus *string `json:"onboardingStatus,omitempty"`
}
// ClusterHealthCheck defines model for ClusterHealthCheck.
type ClusterHealthCheck struct {
Description string `json:"description"`
HelpUrl string `json:"helpUrl"`
Hostname *string `json:"hostname,omitempty"`
Status ClusterHealthCheckStatus `json:"status"`
UpdatedAt time.Time `json:"updatedAt"`
}
// ClusterHealthCheckStatus defines model for ClusterHealthCheckStatus.
type ClusterHealthCheckStatus string
// ClusterProperties defines model for ClusterProperties.
type ClusterProperties struct {
ManualOverrideIpAddress *IPAddress `json:"manualOverrideIpAddress,omitempty"`
Name string `json:"name"`
}
// ClusterReplica defines model for ClusterReplica.
type ClusterReplica struct {
CreatedAt time.Time `json:"createdAt"`
Hostname string `json:"hostname"`
Id string `json:"id"`
UpdatedAt time.Time `json:"updatedAt"`
}
// ClusterReplicaProperties defines model for ClusterReplicaProperties.
type ClusterReplicaProperties struct {
Hostname string `json:"hostname"`
}
// CodecClientType defines model for CodecClientType.
type CodecClientType string
// CompareChangesetsResponse defines model for CompareChangesetsResponse.
type CompareChangesetsResponse struct {
EndChangeset Changeset `json:"endChangeset"`
Entities []ActivityLogList `json:"entities"`
StartChangeset *Changeset `json:"startChangeset,omitempty"`
}
// CompleteCheckoutSessionRequest defines model for CompleteCheckoutSessionRequest.
type CompleteCheckoutSessionRequest struct {
CheckoutSessionId string `json:"checkoutSessionId"`
}
// ConfigureOnboardingRequest defines model for ConfigureOnboardingRequest.
type ConfigureOnboardingRequest struct {
IpAddress *IPAddress `json:"ipAddress,omitempty"`
Port *Port `json:"port,omitempty"`
System string `json:"system"`
Timezone string `json:"timezone"`
}
// ConfigureOnboardingResponse defines model for ConfigureOnboardingResponse.
type ConfigureOnboardingResponse = map[string]interface{}
// CreateApiAccessUserRequest defines model for CreateApiAccessUserRequest.
type CreateApiAccessUserRequest struct {
// Name Freetext user name
Name string `json:"name"`
// Role A high level role that describes the level of access a user has to an organization.
// - Owner: Global namespace admin.
// - Admin: Global namespace admin.
// - Auditor: Global namespace viewer.
// - Member: any user who was granted access to the organization
Role *OrganizationRole `json:"role,omitempty"`
}
// CreateApiAccessUserResponse defines model for CreateApiAccessUserResponse.
type CreateApiAccessUserResponse struct {
CreatedAt time.Time `json:"createdAt"`
DisplayName *string `json:"displayName,omitempty"`
Email openapi_types.Email `json:"email"`
Id string `json:"id"`
NeedsOnboarding bool `json:"needsOnboarding"`
PhotoUrl *string `json:"photoUrl,omitempty"`
// RefreshToken API refresh token
RefreshToken string `json:"refreshToken"`
Type UserType `json:"type"`
UpdatedAt time.Time `json:"updatedAt"`
}
// CreateBillingPortalSessionRequest defines model for CreateBillingPortalSessionRequest.
type CreateBillingPortalSessionRequest struct {
DeepLink CreateBillingPortalSessionRequestDeepLink `json:"deepLink"`
ReturnUrl string `json:"returnUrl"`
}
// CreateBillingPortalSessionRequestDeepLink defines model for CreateBillingPortalSessionRequest.DeepLink.
type CreateBillingPortalSessionRequestDeepLink string
// CreateBillingPortalSessionResponse defines model for CreateBillingPortalSessionResponse.
type CreateBillingPortalSessionResponse struct {
Url string `json:"url"`
}
// CreateCheckoutSessionRequest defines model for CreateCheckoutSessionRequest.
type CreateCheckoutSessionRequest struct {
BillingEmail *string `json:"billingEmail,omitempty"`
CancelUrl string `json:"cancelUrl"`
OrganizationName *string `json:"organizationName,omitempty"`
SuccessUrl string `json:"successUrl"`
}
// CreateCheckoutSessionResponse defines model for CreateCheckoutSessionResponse.
type CreateCheckoutSessionResponse struct {
Url string `json:"url"`
}
// CreateClusterRequest defines model for CreateClusterRequest.
type CreateClusterRequest struct {
Domain string `json:"domain"`
ManualOverrideIpAddress *IPAddress `json:"manualOverrideIpAddress,omitempty"`
Name string `json:"name"`
}
// CreateClusterResponse defines model for CreateClusterResponse.
type CreateClusterResponse struct {
AutoDetectIpAddress *string `json:"autoDetectIpAddress,omitempty"`
CreatedAt time.Time `json:"createdAt"`
Domain string `json:"domain"`
Fqdn string `json:"fqdn"`
HasFailingHealthChecks bool `json:"hasFailingHealthChecks"`
Id string `json:"id"`
ImportStatus *ImportStatus `json:"importStatus,omitempty"`
ManualOverrideIpAddress *IPAddress `json:"manualOverrideIpAddress,omitempty"`
MinReplicaVersion *string `json:"minReplicaVersion,omitempty"`
Name string `json:"name"`
NamespaceId string `json:"namespaceId"`
OnboardingStatus *string `json:"onboardingStatus,omitempty"`
// RefreshToken API refresh token
RefreshToken string `json:"refreshToken"`
UpdatedAt time.Time `json:"updatedAt"`
}
// CreateCustomDomainRequest defines model for CreateCustomDomainRequest.
type CreateCustomDomainRequest = CustomDomainProperties
// CreateCustomDomainResponse defines model for CreateCustomDomainResponse.
type CreateCustomDomainResponse = CustomDomain
// CreateKeyPairRequest defines model for CreateKeyPairRequest.
type CreateKeyPairRequest = KeyPairWithKeyProperties
// CreateKeyPairResponse defines model for CreateKeyPairResponse.
type CreateKeyPairResponse = KeyPairWithCertificateInfo
// CreateOrganizationInviteRequest defines model for CreateOrganizationInviteRequest.
type CreateOrganizationInviteRequest struct {
Emails []openapi_types.Email `json:"emails"`
// Role A high level role that describes the level of access a user has to an organization.
// - Owner: Global namespace admin.
// - Admin: Global namespace admin.
// - Auditor: Global namespace viewer.
// - Member: any user who was granted access to the organization
Role OrganizationRole `json:"role"`
}
// CreateOrganizationInviteResponse defines model for CreateOrganizationInviteResponse.
type CreateOrganizationInviteResponse = []OrganizationInvite
// CreateOrganizationRequest defines model for CreateOrganizationRequest.
type CreateOrganizationRequest = OrganizationProperties
// CreateOrganizationResponse defines model for CreateOrganizationResponse.
type CreateOrganizationResponse struct {
Cluster CreateClusterResponse `json:"cluster"`
Namespace Namespace `json:"namespace"`
Organization Organization `json:"organization"`
}
// CreatePolicyRequest defines model for CreatePolicyRequest.
type CreatePolicyRequest = PolicyProperties
// CreatePolicyResponse defines model for CreatePolicyResponse.
type CreatePolicyResponse = Policy
// CreateRouteRequest defines model for CreateRouteRequest.
type CreateRouteRequest = RouteProperties
// CreateRouteResponse defines model for CreateRouteResponse.
type CreateRouteResponse = Route
// CreateServiceAccountRequest defines model for CreateServiceAccountRequest.
type CreateServiceAccountRequest = ServiceAccountProperties
// CreateServiceAccountResponse defines model for CreateServiceAccountResponse.
type CreateServiceAccountResponse struct {
CreatedAt time.Time `json:"createdAt"`
Description string `json:"description"`
ExpiresAt *time.Time `json:"expiresAt,omitempty"`
Id string `json:"id"`
Token string `json:"token"`
UpdatedAt time.Time `json:"updatedAt"`
UserId string `json:"userId"`
}
// CustomDomain defines model for CustomDomain.
type CustomDomain struct {
ClusterId string `json:"clusterId"`
CreatedAt time.Time `json:"createdAt"`
DomainName string `json:"domainName"`
ExpiresAt *time.Time `json:"expiresAt,omitempty"`
Id string `json:"id"`
KeyPairId *string `json:"keyPairId,omitempty"`
LastError *string `json:"lastError,omitempty"`
UpdatedAt time.Time `json:"updatedAt"`
}
// CustomDomainComputedProperties defines model for CustomDomainComputedProperties.
type CustomDomainComputedProperties struct {
ExpiresAt *time.Time `json:"expiresAt,omitempty"`
KeyPairId *string `json:"keyPairId,omitempty"`
LastError *string `json:"lastError,omitempty"`
}
// CustomDomainProperties defines model for CustomDomainProperties.
type CustomDomainProperties struct {
ClusterId string `json:"clusterId"`
DomainName string `json:"domainName"`
}
// DNSLookupFamily defines model for DNSLookupFamily.
type DNSLookupFamily string
// DefaultTemplate defines model for DefaultTemplate.
type DefaultTemplate struct {
CreatedAt time.Time `json:"createdAt"`
DefaultProperties map[string]interface{} `json:"defaultProperties"`
Id string `json:"id"`
Name string `json:"name"`
RecordType DefaultTemplateRecordType `json:"recordType"`
UpdatedAt time.Time `json:"updatedAt"`
}
// DefaultTemplateProperties defines model for DefaultTemplateProperties.
type DefaultTemplateProperties struct {
DefaultProperties map[string]interface{} `json:"defaultProperties"`
Name string `json:"name"`
RecordType DefaultTemplateRecordType `json:"recordType"`
}
// DefaultTemplateRecordType defines model for DefaultTemplateRecordType.
type DefaultTemplateRecordType string
// DistributionMetricId The ID of the distribution metric that is associated with the route.
type DistributionMetricId string
// DistributionSum defines model for DistributionSum.
type DistributionSum struct {
DistributionValue DistributionValue `json:"distributionValue"`
Labels StringMap `json:"labels"`
Unit string `json:"unit"`
}
// DistributionValue defines model for DistributionValue.
type DistributionValue struct {
BucketCounts []int `json:"bucketCounts"`
Count int `json:"count"`
ExplicitBucketBounds []float64 `json:"explicitBucketBounds"`
Mean float64 `json:"mean"`
}
// Duration defines model for Duration.
type Duration = string
// EntityIdAndName defines model for EntityIdAndName.
type EntityIdAndName struct {
Id string `json:"id"`
Name string `json:"name"`
}
// EntityType defines model for EntityType.
type EntityType string
// GenerateSubdomainNameResponse defines model for GenerateSubdomainNameResponse.
type GenerateSubdomainNameResponse struct {
Name string `json:"name"`
}
// GetBillingUsageResponse defines model for GetBillingUsageResponse.
type GetBillingUsageResponse = BillingUsage
// GetClusterHealthResponse defines model for GetClusterHealthResponse.
type GetClusterHealthResponse = []ClusterHealthCheck
// GetClusterResponse defines model for GetClusterResponse.
type GetClusterResponse = Cluster
// GetClusterTokenResponse defines model for GetClusterTokenResponse.
type GetClusterTokenResponse = RefreshTokenProperties
// GetDistributionMetricSumResponse defines model for GetDistributionMetricSumResponse.
type GetDistributionMetricSumResponse = []DistributionSum
// GetDistributionMetricTimeSeriesResponse defines model for GetDistributionMetricTimeSeriesResponse.
type GetDistributionMetricTimeSeriesResponse = []TimeSeries
// GetKeyPairResponse defines model for GetKeyPairResponse.
type GetKeyPairResponse = KeyPairWithCertificateInfo
// GetOrganizationResponse defines model for GetOrganizationResponse.
type GetOrganizationResponse = Organization
// GetPaymentInformationResponse defines model for GetPaymentInformationResponse.
type GetPaymentInformationResponse = PaymentInformation
// GetPolicyResponse defines model for GetPolicyResponse.
type GetPolicyResponse = Policy
// GetRouteResponse defines model for GetRouteResponse.
type GetRouteResponse = Route
// GetServiceAccountResponse defines model for GetServiceAccountResponse.
type GetServiceAccountResponse = ServiceAccount
// GetServiceAccountTokenResponse defines model for GetServiceAccountTokenResponse.
type GetServiceAccountTokenResponse = ServiceAccountToken
// GetSettingsResponse defines model for GetSettingsResponse.
type GetSettingsResponse = Settings
// GetSubscriptionInformationResponse defines model for GetSubscriptionInformationResponse.
type GetSubscriptionInformationResponse = SubscriptionInformation
// GetTimeSeriesResponse defines model for GetTimeSeriesResponse.
type GetTimeSeriesResponse = []TimeSeries
// GetTimeSeriesSumResponse defines model for GetTimeSeriesSumResponse.
type GetTimeSeriesSumResponse = []Sum
// GetTokenRequest defines model for GetTokenRequest.
type GetTokenRequest = RefreshTokenProperties
// GetTokenResponse defines model for GetTokenResponse.
type GetTokenResponse struct {
ExpiresInSeconds string `json:"expiresInSeconds"`
IdToken string `json:"idToken"`
}
// GetVersionResponse defines model for GetVersionResponse.
type GetVersionResponse struct {
Version string `json:"version"`
}
// Hex defines model for Hex.
type Hex = string
// IPAddress defines model for IPAddress.
type IPAddress = string
// IdentityProviderType defines model for IdentityProviderType.
type IdentityProviderType string
// ImportHints defines model for ImportHints.
type ImportHints struct {
Argv0 *string `json:"argv0,omitempty"`
ConfigArg *string `json:"configArg,omitempty"`
Hostname *string `json:"hostname,omitempty"`
KubernetesNamespace *string `json:"kubernetesNamespace,omitempty"`
SystemType *string `json:"systemType,omitempty"`
}
// ImportStatus defines model for ImportStatus.
type ImportStatus struct {
Error *string `json:"error,omitempty"`
Hints *ImportHints `json:"hints,omitempty"`
Messages []string `json:"messages"`
Timestamp time.Time `json:"timestamp"`
Warnings []string `json:"warnings"`
}
// IntegerRange defines model for IntegerRange.
type IntegerRange struct {
End int `json:"end"`
Start int `json:"start"`
}
// Invoice defines model for Invoice.
type Invoice struct {
Currency string `json:"currency"`
Date time.Time `json:"date"`
DownloadUrl string `json:"downloadUrl"`
ProductName string `json:"productName"`
Total int `json:"total"`
}
// JSONPatch defines model for JSONPatch.
type JSONPatch = []JSONPatchOperation
// JSONPatchOperation defines model for JSONPatchOperation.
type JSONPatchOperation struct {
From *string `json:"from,omitempty"`
Op JSONPatchOperationOp `json:"op"`
Path string `json:"path"`
Value *interface{} `json:"value,omitempty"`
}
// JSONPatchOperationOp defines model for JSONPatchOperation.Op.
type JSONPatchOperationOp string
// JwtIssuerFormat defines model for JwtIssuerFormat.
type JwtIssuerFormat string
// KeyPair defines model for KeyPair.
type KeyPair struct {
Certificate *string `json:"certificate,omitempty"`
CreatedAt time.Time `json:"createdAt"`
HasKey bool `json:"hasKey"`
Id string `json:"id"`
Name *string `json:"name,omitempty"`
NamespaceId string `json:"namespaceId"`
Origin KeyPairOrigin `json:"origin"`
Status KeyPairStatus `json:"status"`
UpdatedAt time.Time `json:"updatedAt"`
}
// KeyPairComputedProperties defines model for KeyPairComputedProperties.
type KeyPairComputedProperties struct {
HasKey bool `json:"hasKey"`
Origin KeyPairOrigin `json:"origin"`
Status KeyPairStatus `json:"status"`
}
// KeyPairOrigin defines model for KeyPairOrigin.
type KeyPairOrigin string
// KeyPairProperties defines model for KeyPairProperties.
type KeyPairProperties struct {
Certificate *string `json:"certificate,omitempty"`
Name *string `json:"name,omitempty"`
NamespaceId string `json:"namespaceId"`
}
// KeyPairStatus defines model for KeyPairStatus.
type KeyPairStatus string
// KeyPairWithCertificateInfo defines model for KeyPairWithCertificateInfo.
type KeyPairWithCertificateInfo struct {
Certificate *string `json:"certificate,omitempty"`
CertificateInfo *[]CertificateInfo `json:"certificateInfo,omitempty"`
CreatedAt time.Time `json:"createdAt"`
HasKey bool `json:"hasKey"`
Id string `json:"id"`
Name *string `json:"name,omitempty"`
NamespaceId string `json:"namespaceId"`
Origin KeyPairOrigin `json:"origin"`
Status KeyPairStatus `json:"status"`
UpdatedAt time.Time `json:"updatedAt"`
}
// KeyPairWithKeyProperties defines model for KeyPairWithKeyProperties.
type KeyPairWithKeyProperties struct {
Certificate *string `json:"certificate,omitempty"`
Key *string `json:"key,omitempty"`
Name *string `json:"name,omitempty"`
NamespaceId string `json:"namespaceId"`
}
// ListActivityLogsResponse defines model for ListActivityLogsResponse.
type ListActivityLogsResponse = []ActivityLog
// ListChangesetsResponse defines model for ListChangesetsResponse.
type ListChangesetsResponse = []Changeset
// ListClusterReplicasResponse defines model for ListClusterReplicasResponse.
type ListClusterReplicasResponse = []ClusterReplica
// ListClustersResponse defines model for ListClustersResponse.
type ListClustersResponse = []Cluster
// ListCustomDomainsResponse defines model for ListCustomDomainsResponse.
type ListCustomDomainsResponse = []CustomDomain
// ListDefaultTemplatesResponse defines model for ListDefaultTemplatesResponse.
type ListDefaultTemplatesResponse = []DefaultTemplate
// ListInvoicesResponse defines model for ListInvoicesResponse.
type ListInvoicesResponse = []Invoice
// ListKeyPairsResponse defines model for ListKeyPairsResponse.
type ListKeyPairsResponse = []KeyPairWithCertificateInfo
// ListNamespacesResponse defines model for ListNamespacesResponse.
type ListNamespacesResponse = []NamespaceWithRole
// ListOrganizationInvitesResponse defines model for ListOrganizationInvitesResponse.
type ListOrganizationInvitesResponse = []OrganizationInvite
// ListOrganizationsResponse defines model for ListOrganizationsResponse.
type ListOrganizationsResponse = []Organization
// ListPoliciesResponse defines model for ListPoliciesResponse.
type ListPoliciesResponse = []Policy
// ListRoutesResponse defines model for ListRoutesResponse.
type ListRoutesResponse = []Route
// ListServiceAccountsResponse defines model for ListServiceAccountsResponse.
type ListServiceAccountsResponse = []ServiceAccount
// ListUserInvitationsResponse defines model for ListUserInvitationsResponse.
type ListUserInvitationsResponse = []UserInvitation
// ListUsersInOrganizationResponse defines model for ListUsersInOrganizationResponse.
type ListUsersInOrganizationResponse = []UserWithOrganizationRole
// Namespace defines model for Namespace.
type Namespace struct {
CreatedAt time.Time `json:"createdAt"`
Id string `json:"id"`
Name string `json:"name"`
ParentId *string `json:"parentId,omitempty"`
Type NamespaceType `json:"type"`
UpdatedAt time.Time `json:"updatedAt"`
}
// NamespaceProperties defines model for NamespaceProperties.
type NamespaceProperties struct {
Name string `json:"name"`
ParentId *string `json:"parentId,omitempty"`
}
// NamespaceRole defines model for NamespaceRole.
type NamespaceRole string
// NamespaceType defines model for NamespaceType.
type NamespaceType string
// NamespaceWithRole defines model for NamespaceWithRole.
type NamespaceWithRole struct {
CreatedAt time.Time `json:"createdAt"`
Id string `json:"id"`
Name string `json:"name"`
ParentId *string `json:"parentId,omitempty"`
Role NamespaceRole `json:"role"`
Type NamespaceType `json:"type"`
UpdatedAt time.Time `json:"updatedAt"`
}
// Organization defines model for Organization.
type Organization struct {
CreatedAt time.Time `json:"createdAt"`
Id string `json:"id"`
JoinedAt time.Time `json:"joinedAt"`
// LogoURL URL to an image that will be used as the organization logo.
// User may provide a URL to an image hosted on a third party service,
// or upload an image to the dashboard, which would result in an URL being generated.
LogoURL *string `json:"logoURL,omitempty"`