-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.gen.go
1869 lines (1538 loc) · 76.8 KB
/
types.gen.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 cratedb provides primitives to interact with the openapi HTTP API.
//
// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.0 DO NOT EDIT.
package cratedb
import (
"encoding/json"
"fmt"
"time"
openapi_types "github.com/oapi-codegen/runtime/types"
)
// Defines values for ClusterHealthRunningOperation.
const (
ALLOWEDCIDRUPDATE ClusterHealthRunningOperation = "ALLOWED_CIDR_UPDATE"
BACKUPSCHEDULEUPDATE ClusterHealthRunningOperation = "BACKUP_SCHEDULE_UPDATE"
CHANGECOMPUTE ClusterHealthRunningOperation = "CHANGE_COMPUTE"
CREATE ClusterHealthRunningOperation = "CREATE"
EXPANDSTORAGE ClusterHealthRunningOperation = "EXPAND_STORAGE"
PASSWORDUPDATE ClusterHealthRunningOperation = "PASSWORD_UPDATE"
RESTORESNAPSHOT ClusterHealthRunningOperation = "RESTORE_SNAPSHOT"
SCALE ClusterHealthRunningOperation = "SCALE"
SUSPEND ClusterHealthRunningOperation = "SUSPEND"
UPGRADE ClusterHealthRunningOperation = "UPGRADE"
)
// Defines values for ClusterHealthStatus.
const (
ClusterHealthStatusGREEN ClusterHealthStatus = "GREEN"
ClusterHealthStatusRED ClusterHealthStatus = "RED"
ClusterHealthStatusSUSPENDED ClusterHealthStatus = "SUSPENDED"
ClusterHealthStatusUNKNOWN ClusterHealthStatus = "UNKNOWN"
ClusterHealthStatusUNREACHABLE ClusterHealthStatus = "UNREACHABLE"
ClusterHealthStatusYELLOW ClusterHealthStatus = "YELLOW"
)
// Defines values for ClusterExportJobStatus.
const (
ClusterExportJobStatusFAILED ClusterExportJobStatus = "FAILED"
ClusterExportJobStatusINPROGRESS ClusterExportJobStatus = "IN_PROGRESS"
ClusterExportJobStatusREGISTERED ClusterExportJobStatus = "REGISTERED"
ClusterExportJobStatusSENT ClusterExportJobStatus = "SENT"
ClusterExportJobStatusSUCCEEDED ClusterExportJobStatus = "SUCCEEDED"
)
// Defines values for ClusterImportJobStatus.
const (
ClusterImportJobStatusFAILED ClusterImportJobStatus = "FAILED"
ClusterImportJobStatusINPROGRESS ClusterImportJobStatus = "IN_PROGRESS"
ClusterImportJobStatusREGISTERED ClusterImportJobStatus = "REGISTERED"
ClusterImportJobStatusSENT ClusterImportJobStatus = "SENT"
ClusterImportJobStatusSUCCEEDED ClusterImportJobStatus = "SUCCEEDED"
)
// Defines values for CreditStatus.
const (
ACTIVE CreditStatus = "ACTIVE"
EXPIRED CreditStatus = "EXPIRED"
)
// Defines values for FileStatus.
const (
PENDING FileStatus = "PENDING"
UPLOADED FileStatus = "UPLOADED"
)
// Defines values for OrganizationPlanType.
const (
OrganizationPlanTypeN1 OrganizationPlanType = 1
OrganizationPlanTypeN2 OrganizationPlanType = 2
OrganizationPlanTypeN3 OrganizationPlanType = 3
OrganizationPlanTypeN4 OrganizationPlanType = 4
OrganizationPlanTypeN5 OrganizationPlanType = 5
OrganizationPlanTypeN6 OrganizationPlanType = 6
)
// Defines values for OrganizationRoleFqn.
const (
OrganizationRoleFqnOrgAdmin OrganizationRoleFqn = "org_admin"
OrganizationRoleFqnOrgMember OrganizationRoleFqn = "org_member"
OrganizationRoleFqnProjectAdmin OrganizationRoleFqn = "project_admin"
OrganizationRoleFqnProjectMember OrganizationRoleFqn = "project_member"
)
// Defines values for OrganizationEditPlanType.
const (
OrganizationEditPlanTypeN1 OrganizationEditPlanType = 1
OrganizationEditPlanTypeN2 OrganizationEditPlanType = 2
OrganizationEditPlanTypeN3 OrganizationEditPlanType = 3
OrganizationEditPlanTypeN4 OrganizationEditPlanType = 4
OrganizationEditPlanTypeN5 OrganizationEditPlanType = 5
OrganizationEditPlanTypeN6 OrganizationEditPlanType = 6
)
// Defines values for OrganizationRoleRoleFqn.
const (
OrganizationRoleRoleFqnOrgAdmin OrganizationRoleRoleFqn = "org_admin"
OrganizationRoleRoleFqnOrgMember OrganizationRoleRoleFqn = "org_member"
)
// Defines values for PartialOrganizationRolesRoleFqn.
const (
OrgAdmin PartialOrganizationRolesRoleFqn = "org_admin"
OrgMember PartialOrganizationRolesRoleFqn = "org_member"
)
// Defines values for PartialProjectRoleRoleFqn.
const (
PartialProjectRoleRoleFqnProjectAdmin PartialProjectRoleRoleFqn = "project_admin"
PartialProjectRoleRoleFqnProjectMember PartialProjectRoleRoleFqn = "project_member"
)
// Defines values for ProjectBackupLocationLocationType.
const (
S3 ProjectBackupLocationLocationType = "s3"
)
// Defines values for ProjectRoleRoleFqn.
const (
ProjectRoleRoleFqnProjectAdmin ProjectRoleRoleFqn = "project_admin"
ProjectRoleRoleFqnProjectMember ProjectRoleRoleFqn = "project_member"
)
// Defines values for RegionStatus.
const (
RegionStatusDOWN RegionStatus = "DOWN"
RegionStatusUNKNOWN RegionStatus = "UNKNOWN"
RegionStatusUP RegionStatus = "UP"
)
// Defines values for PathMetricId.
const (
PathMetricIdCrateAvailability PathMetricId = "crate_availability"
PathMetricIdCrateClusterLastUserActivity PathMetricId = "crate_cluster_last_user_activity"
PathMetricIdCrateCpuSeconds PathMetricId = "crate_cpu_seconds"
PathMetricIdCrateDiskUsage2 PathMetricId = "crate_disk_usage2"
PathMetricIdCrateMemoryUsage PathMetricId = "crate_memory_usage"
PathMetricIdCrateQueryCount PathMetricId = "crate_query_count"
PathMetricIdCrateQueryDuration PathMetricId = "crate_query_duration"
PathMetricIdCrateUnreplicatedTables PathMetricId = "crate_unreplicated_tables"
)
// Defines values for GetApiV2ClustersClusterIdMetricsMetricIdParamsMetricId.
const (
GetApiV2ClustersClusterIdMetricsMetricIdParamsMetricIdCrateAvailability GetApiV2ClustersClusterIdMetricsMetricIdParamsMetricId = "crate_availability"
GetApiV2ClustersClusterIdMetricsMetricIdParamsMetricIdCrateClusterLastUserActivity GetApiV2ClustersClusterIdMetricsMetricIdParamsMetricId = "crate_cluster_last_user_activity"
GetApiV2ClustersClusterIdMetricsMetricIdParamsMetricIdCrateCpuSeconds GetApiV2ClustersClusterIdMetricsMetricIdParamsMetricId = "crate_cpu_seconds"
GetApiV2ClustersClusterIdMetricsMetricIdParamsMetricIdCrateDiskUsage2 GetApiV2ClustersClusterIdMetricsMetricIdParamsMetricId = "crate_disk_usage2"
GetApiV2ClustersClusterIdMetricsMetricIdParamsMetricIdCrateMemoryUsage GetApiV2ClustersClusterIdMetricsMetricIdParamsMetricId = "crate_memory_usage"
GetApiV2ClustersClusterIdMetricsMetricIdParamsMetricIdCrateQueryCount GetApiV2ClustersClusterIdMetricsMetricIdParamsMetricId = "crate_query_count"
GetApiV2ClustersClusterIdMetricsMetricIdParamsMetricIdCrateQueryDuration GetApiV2ClustersClusterIdMetricsMetricIdParamsMetricId = "crate_query_duration"
GetApiV2ClustersClusterIdMetricsMetricIdParamsMetricIdCrateUnreplicatedTables GetApiV2ClustersClusterIdMetricsMetricIdParamsMetricId = "crate_unreplicated_tables"
)
// Address defines model for Address.
type Address struct {
City *string `json:"city,omitempty"`
Country *string `json:"country,omitempty"`
Line1 *string `json:"line1,omitempty"`
Line2 *string `json:"line2"`
PostalCode *string `json:"postal_code,omitempty"`
}
// ApiKey defines model for ApiKey.
type ApiKey struct {
Active *bool `json:"active,omitempty"`
Dc *DublinCore `json:"dc,omitempty"`
Key *string `json:"key,omitempty"`
LastUsed *time.Time `json:"last_used,omitempty"`
Secret *string `json:"secret,omitempty"`
UserId *string `json:"user_id,omitempty"`
}
// AuditEvent defines model for AuditEvent.
type AuditEvent struct {
Action *string `json:"action,omitempty"`
Actor *AuditUser `json:"actor,omitempty"`
Context *map[string]interface{} `json:"context,omitempty"`
Created *time.Time `json:"created,omitempty"`
Id *string `json:"id,omitempty"`
}
// AuditUser defines model for AuditUser.
type AuditUser struct {
Email *string `json:"email,omitempty"`
Id *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Picture *string `json:"picture,omitempty"`
Username *string `json:"username,omitempty"`
}
// AwsSecret defines model for AwsSecret.
type AwsSecret struct {
AccessKey *string `json:"access_key,omitempty"`
SecretKey *string `json:"secret_key,omitempty"`
}
// AzureSecret defines model for AzureSecret.
type AzureSecret struct {
ConnectionString *string `json:"connection_string,omitempty"`
}
// BillingInformation defines model for BillingInformation.
type BillingInformation struct {
Address *Address `json:"address,omitempty"`
Email *openapi_types.Email `json:"email,omitempty"`
Name *string `json:"name,omitempty"`
TaxId *string `json:"tax_id"`
TaxIdType *string `json:"tax_id_type"`
}
// BlobsList defines model for BlobsList.
type BlobsList struct {
Blobs *[]string `json:"blobs,omitempty"`
ContainerName *string `json:"container_name,omitempty"`
Error *string `json:"error"`
Prefix *string `json:"prefix"`
SecretId *string `json:"secret_id,omitempty"`
}
// Bucket defines model for Bucket.
type Bucket struct {
Name string `json:"name"`
}
// BucketsList defines model for BucketsList.
type BucketsList struct {
Buckets []Bucket `json:"buckets"`
Error *string `json:"error"`
}
// CardEdit defines model for CardEdit.
type CardEdit struct {
Default bool `json:"default"`
}
// Cluster defines model for Cluster.
type Cluster struct {
AllowCustomStorage *bool `json:"allow_custom_storage,omitempty"`
AllowSuspend *bool `json:"allow_suspend,omitempty"`
BackupSchedule *string `json:"backup_schedule,omitempty"`
Channel *string `json:"channel,omitempty"`
CrateVersion string `json:"crate_version"`
Dc *DublinCore `json:"dc,omitempty"`
DeletionProtected *bool `json:"deletion_protected,omitempty"`
ExternalIp *string `json:"external_ip,omitempty"`
// Fqdn Fully Qualified Domain Name. Note the trailing dot.
Fqdn *string `json:"fqdn,omitempty"`
GcAvailable *bool `json:"gc_available,omitempty"`
HardwareSpecs *HardwareSpecs `json:"hardware_specs"`
Health *struct {
LastSeen *string `json:"last_seen,omitempty"`
// RunningOperation The type of the currently running operation. Returns an empty string if there is no operation in progress.
RunningOperation *ClusterHealthRunningOperation `json:"running_operation,omitempty"`
Status *ClusterHealthStatus `json:"status,omitempty"`
} `json:"health,omitempty"`
Id *string `json:"id,omitempty"`
IpWhitelist *[]ClusterIpWhitelist `json:"ip_whitelist,omitempty"`
LastAsyncOperation *PartialClusterAsyncOperation `json:"last_async_operation,omitempty"`
Name string `json:"name"`
NumNodes *int `json:"num_nodes,omitempty"`
Origin *string `json:"origin,omitempty"`
Password *string `json:"password,omitempty"`
ProductName string `json:"product_name"`
ProductTier string `json:"product_tier"`
ProductUnit *int `json:"product_unit,omitempty"`
ProjectId string `json:"project_id"`
SubscriptionId *string `json:"subscription_id,omitempty"`
Suspended *bool `json:"suspended,omitempty"`
Url *string `json:"url,omitempty"`
Username string `json:"username"`
}
// ClusterHealthRunningOperation The type of the currently running operation. Returns an empty string if there is no operation in progress.
type ClusterHealthRunningOperation string
// ClusterHealthStatus defines model for Cluster.Health.Status.
type ClusterHealthStatus string
// ClusterAsyncOperation defines model for ClusterAsyncOperation.
type ClusterAsyncOperation struct {
Dc *DublinCore `json:"dc,omitempty"`
Entity *string `json:"entity,omitempty"`
EntityId *string `json:"entity_id,omitempty"`
FeedbackData *map[string]interface{} `json:"feedback_data,omitempty"`
Id *string `json:"id,omitempty"`
// NonSensitiveData Depending on the type of the operation, it contains the following data:
// - SCALE: current_product_unit, current_num_nodes, target_product_unit and target_num_nodes
// - UPGRADE: current_version and target_version- ALLOWED_CIDR_UPDATE: current_ip_whitelist and target_ip_whitelist
NonSensitiveData *map[string]interface{} `json:"non_sensitive_data,omitempty"`
Status *string `json:"status,omitempty"`
Type *string `json:"type,omitempty"`
}
// ClusterAsyncOperationsList defines model for ClusterAsyncOperationsList.
type ClusterAsyncOperationsList struct {
Operations *[]ClusterAsyncOperation `json:"operations,omitempty"`
}
// ClusterBackupSchedule defines model for ClusterBackupSchedule.
type ClusterBackupSchedule struct {
BackupHours string `json:"backup_hours"`
}
// ClusterDataJobAzureBlob defines model for ClusterDataJobAzureBlob.
type ClusterDataJobAzureBlob struct {
BlobName string `json:"blob_name"`
ContainerName string `json:"container_name"`
SecretId string `json:"secret_id"`
}
// ClusterDataJobFile defines model for ClusterDataJobFile.
type ClusterDataJobFile struct {
DownloadUrl *string `json:"download_url,omitempty"`
FileSize *int `json:"file_size,omitempty"`
Id string `json:"id"`
Name *string `json:"name,omitempty"`
Status *string `json:"status,omitempty"`
UploadUrl *string `json:"upload_url,omitempty"`
}
// ClusterDataJobS3 defines model for ClusterDataJobS3.
type ClusterDataJobS3 struct {
Bucket string `json:"bucket"`
Endpoint *string `json:"endpoint,omitempty"`
FilePath string `json:"file_path"`
SecretId string `json:"secret_id"`
}
// ClusterDeletionProtection defines model for ClusterDeletionProtection.
type ClusterDeletionProtection struct {
DeletionProtected bool `json:"deletion_protected"`
}
// ClusterEdit defines model for ClusterEdit.
type ClusterEdit struct {
Password *string `json:"password,omitempty"`
}
// ClusterExportJob defines model for ClusterExportJob.
type ClusterExportJob struct {
ClusterId *string `json:"cluster_id,omitempty"`
Compression *string `json:"compression"`
Dc *DublinCore `json:"dc,omitempty"`
Destination ClusterExportJobDestination `json:"destination"`
Id *string `json:"id,omitempty"`
Progress *map[string]interface{} `json:"progress,omitempty"`
Source ClusterExportJobSource `json:"source"`
Status *ClusterExportJobStatus `json:"status,omitempty"`
}
// ClusterExportJobStatus defines model for ClusterExportJob.Status.
type ClusterExportJobStatus string
// ClusterExportJobDestination defines model for ClusterExportJobDestination.
type ClusterExportJobDestination struct {
File *ClusterDataJobFile `json:"file,omitempty"`
Format string `json:"format"`
}
// ClusterExportJobSource defines model for ClusterExportJobSource.
type ClusterExportJobSource struct {
Table string `json:"table"`
}
// ClusterImportJob defines model for ClusterImportJob.
type ClusterImportJob struct {
Azureblob *ClusterDataJobAzureBlob `json:"azureblob,omitempty"`
ClusterId *string `json:"cluster_id,omitempty"`
Compression *string `json:"compression"`
Dc *DublinCore `json:"dc,omitempty"`
Destination ClusterImportJobDestination `json:"destination"`
File *ClusterDataJobFile `json:"file,omitempty"`
Format string `json:"format"`
Id *string `json:"id,omitempty"`
Progress *map[string]interface{} `json:"progress,omitempty"`
S3 *ClusterDataJobS3 `json:"s3,omitempty"`
Schema *map[string]interface{} `json:"schema"`
Status *ClusterImportJobStatus `json:"status,omitempty"`
Type string `json:"type"`
Url *ClusterImportJobSourceURL `json:"url,omitempty"`
}
// ClusterImportJobStatus defines model for ClusterImportJob.Status.
type ClusterImportJobStatus string
// ClusterImportJobDestination defines model for ClusterImportJobDestination.
type ClusterImportJobDestination struct {
CreateTable *bool `json:"create_table,omitempty"`
Table string `json:"table"`
TableDefinition *[]ClusterImportJobTableDefinition `json:"table_definition"`
}
// ClusterImportJobSourceURL defines model for ClusterImportJobSourceURL.
type ClusterImportJobSourceURL struct {
Url string `json:"url"`
}
// ClusterImportJobTableDefinition defines model for ClusterImportJobTableDefinition.
type ClusterImportJobTableDefinition struct {
Extra *string `json:"extra"`
Name string `json:"name"`
Type string `json:"type"`
}
// ClusterIpWhitelist defines model for ClusterIpWhitelist.
type ClusterIpWhitelist struct {
Cidr string `json:"cidr"`
Description *string `json:"description,omitempty"`
}
// ClusterIpWhitelistEdit defines model for ClusterIpWhitelistEdit.
type ClusterIpWhitelistEdit struct {
IpWhitelist []ClusterIpWhitelist `json:"ip_whitelist"`
}
// ClusterJWTToken defines model for ClusterJWTToken.
type ClusterJWTToken struct {
Expiry *time.Time `json:"expiry,omitempty"`
Refresh *string `json:"refresh,omitempty"`
Token *string `json:"token,omitempty"`
}
// ClusterPricing defines model for ClusterPricing.
type ClusterPricing struct {
PricePerHour *float32 `json:"price_per_hour,omitempty"`
PricePerMonth *float32 `json:"price_per_month,omitempty"`
PromotionPrice *PricingPromotion `json:"promotion_price,omitempty"`
}
// ClusterProduct defines model for ClusterProduct.
type ClusterProduct struct {
ProductName string `json:"product_name"`
}
// ClusterProvision defines model for ClusterProvision.
type ClusterProvision struct {
Cluster PartialCluster `json:"cluster"`
Project *PartialProject `json:"project,omitempty"`
ProjectId *string `json:"project_id,omitempty"`
SubscriptionId string `json:"subscription_id"`
}
// ClusterScale defines model for ClusterScale.
type ClusterScale struct {
ProductUnit int `json:"product_unit"`
}
// ClusterSnapshot defines model for ClusterSnapshot.
type ClusterSnapshot struct {
ClusterId *string `json:"cluster_id,omitempty"`
ConcreteIndices *[]string `json:"concrete_indices,omitempty"`
Created *time.Time `json:"created,omitempty"`
Dc *DublinCore `json:"dc,omitempty"`
ProjectId *string `json:"project_id,omitempty"`
Repository *string `json:"repository,omitempty"`
Snapshot *string `json:"snapshot,omitempty"`
Tables *[]string `json:"tables,omitempty"`
}
// ClusterSnapshotRestore defines model for ClusterSnapshotRestore.
type ClusterSnapshotRestore struct {
Repository string `json:"repository"`
Sections *[]string `json:"sections,omitempty"`
Snapshot string `json:"snapshot"`
SourceClusterId *string `json:"source_cluster_id,omitempty"`
Tables *[]string `json:"tables,omitempty"`
Type *string `json:"type,omitempty"`
}
// ClusterStorageExpand defines model for ClusterStorageExpand.
type ClusterStorageExpand struct {
DiskSizePerNodeBytes *int `json:"disk_size_per_node_bytes"`
}
// ClusterSuspend defines model for ClusterSuspend.
type ClusterSuspend struct {
Suspended bool `json:"suspended"`
}
// ClusterUpgrade defines model for ClusterUpgrade.
type ClusterUpgrade struct {
CrateVersion string `json:"crate_version"`
}
// ConfigurationItem defines model for ConfigurationItem.
type ConfigurationItem struct {
Key *string `json:"key,omitempty"`
OrganizationId *string `json:"organization_id"`
UserId *string `json:"user_id"`
Value string `json:"value"`
}
// ConfirmationToken defines model for ConfirmationToken.
type ConfirmationToken struct {
Token *string `json:"token,omitempty"`
}
// Consumption defines model for Consumption.
type Consumption struct {
Cost *float32 `json:"cost,omitempty"`
Credits *float32 `json:"credits,omitempty"`
Dtuhours *float32 `json:"dtuhours,omitempty"`
Minutes *int `json:"minutes,omitempty"`
Total *float32 `json:"total,omitempty"`
}
// ConsumptionPerProduct defines model for ConsumptionPerProduct.
type ConsumptionPerProduct struct {
Consumption *Consumption `json:"consumption,omitempty"`
ProductName *string `json:"product_name,omitempty"`
}
// Container defines model for Container.
type Container struct {
Name *string `json:"name,omitempty"`
}
// ContainersList defines model for ContainersList.
type ContainersList struct {
Containers *[]Container `json:"containers,omitempty"`
Error *string `json:"error"`
SecretId *string `json:"secret_id,omitempty"`
}
// CrateDBChannels defines model for CrateDBChannels.
type CrateDBChannels struct {
Nightly *NightlyCrateDBVersion `json:"nightly,omitempty"`
Stable *CrateDBVersion `json:"stable,omitempty"`
Testing *CrateDBVersion `json:"testing,omitempty"`
}
// CrateDBVersion defines model for CrateDBVersion.
type CrateDBVersion struct {
Hotfix *int `json:"hotfix,omitempty"`
Major *int `json:"major,omitempty"`
Minor *int `json:"minor,omitempty"`
Version *string `json:"version,omitempty"`
}
// CrateDBVersions defines model for CrateDBVersions.
type CrateDBVersions struct {
CrateVersions *CrateDBChannels `json:"crate_versions,omitempty"`
}
// Credit defines model for Credit.
type Credit struct {
// Amount Credit amount in USD cents
Amount *float32 `json:"amount,omitempty"`
Comment *string `json:"comment"`
ExpirationDate *time.Time `json:"expiration_date,omitempty"`
Id *string `json:"id,omitempty"`
// OriginalAmount Credit amount in USD cents
OriginalAmount *int `json:"original_amount,omitempty"`
// RemainingAmount Remaining credit amount in USD cents
RemainingAmount *int `json:"remaining_amount,omitempty"`
StartDate *time.Time `json:"start_date,omitempty"`
Status *CreditStatus `json:"status,omitempty"`
}
// CreditStatus defines model for Credit.Status.
type CreditStatus string
// CurrentEstimatedCost defines model for CurrentEstimatedCost.
type CurrentEstimatedCost struct {
Hourly *map[string]float32 `json:"hourly,omitempty"`
Monthly *map[string]float32 `json:"monthly,omitempty"`
}
// CurrentUser defines model for CurrentUser.
type CurrentUser struct {
Email openapi_types.Email `json:"email"`
Hmac *string `json:"hmac,omitempty"`
Idp *string `json:"idp,omitempty"`
IsSuperuser *bool `json:"is_superuser,omitempty"`
Name *string `json:"name,omitempty"`
// Deprecated:
OrganizationId *string `json:"organization_id,omitempty"`
OrganizationRoles *[]PartialOrganizationRoles `json:"organization_roles,omitempty"`
Picture *string `json:"picture,omitempty"`
ProjectRoles *[]PartialProjectRole `json:"project_roles,omitempty"`
Status *string `json:"status,omitempty"`
Uid *string `json:"uid,omitempty"`
Username *string `json:"username,omitempty"`
}
// Customer defines model for Customer.
type Customer struct {
Address *CustomerAddress `json:"address,omitempty"`
City *string `json:"city,omitempty"`
Country *string `json:"country,omitempty"`
Email openapi_types.Email `json:"email"`
Line1 *string `json:"line1,omitempty"`
Line2 *string `json:"line2"`
Name string `json:"name"`
OrganizationId *string `json:"organization_id,omitempty"`
Phone string `json:"phone"`
PostalCode *string `json:"postal_code,omitempty"`
Tax *CustomerTax `json:"tax,omitempty"`
TaxId *string `json:"tax_id"`
TaxIdType *string `json:"tax_id_type"`
}
// CustomerAddress defines model for CustomerAddress.
type CustomerAddress struct {
City *string `json:"city,omitempty"`
Country *string `json:"country,omitempty"`
Line1 *string `json:"line1,omitempty"`
Line2 *string `json:"line2,omitempty"`
PostalCode *string `json:"postal_code,omitempty"`
}
// CustomerCard defines model for CustomerCard.
type CustomerCard struct {
Brand *string `json:"brand,omitempty"`
Country *string `json:"country,omitempty"`
Default *bool `json:"default,omitempty"`
ExpMonth *int `json:"exp_month,omitempty"`
ExpYear *int `json:"exp_year,omitempty"`
Id *string `json:"id,omitempty"`
Last4 *string `json:"last4,omitempty"`
}
// CustomerTax defines model for CustomerTax.
type CustomerTax struct {
TaxId *string `json:"tax_id,omitempty"`
TaxIdType *string `json:"tax_id_type,omitempty"`
}
// DataJobData defines model for DataJobData.
type DataJobData struct {
Details *map[string]interface{} `json:"details"`
JobId string `json:"job_id"`
Message string `json:"message"`
Progress Progress `json:"progress"`
}
// Discount defines model for Discount.
type Discount struct {
Amount *int `json:"amount,omitempty"`
Label *string `json:"label,omitempty"`
}
// DublinCore defines model for DublinCore.
type DublinCore struct {
Created *time.Time `json:"created,omitempty"`
Modified *time.Time `json:"modified,omitempty"`
}
// EditApiKeySchema defines model for EditApiKeySchema.
type EditApiKeySchema struct {
Active *bool `json:"active,omitempty"`
}
// FeatureFlags defines model for FeatureFlags.
type FeatureFlags struct {
Flags *[]Flag `json:"flags"`
}
// File defines model for File.
type File struct {
Dc *DublinCore `json:"dc,omitempty"`
DownloadUrl *string `json:"download_url,omitempty"`
// FileSize File size in bytes.
FileSize *int `json:"file_size,omitempty"`
Id *string `json:"id,omitempty"`
Name string `json:"name"`
OrganizationId *string `json:"organization_id,omitempty"`
Status *FileStatus `json:"status,omitempty"`
UploadUrl *string `json:"upload_url,omitempty"`
}
// FileStatus defines model for File.Status.
type FileStatus string
// FileFeedback defines model for FileFeedback.
type FileFeedback struct {
Bytes *int `json:"bytes"`
FailedRecords *int `json:"failed_records"`
Message *string `json:"message"`
Name string `json:"name"`
Percent *float32 `json:"percent"`
Records int `json:"records"`
Status string `json:"status"`
TotalRecords *int `json:"total_records"`
}
// Flag defines model for Flag.
type Flag struct {
IsActive *bool `json:"is_active,omitempty"`
Name *string `json:"name,omitempty"`
}
// Guarantee defines model for Guarantee.
type Guarantee struct {
DiskSpaceBytes *interface{} `json:"disk_space_bytes,omitempty"`
InsertsSecond *int `json:"inserts_second,omitempty"`
QueriesSecond *int `json:"queries_second,omitempty"`
StorageBytes *interface{} `json:"storage_bytes,omitempty"`
}
// HardwareSpecs defines model for HardwareSpecs.
type HardwareSpecs struct {
CpusPerNode *float32 `json:"cpus_per_node"`
DiskSizePerNodeBytes *int `json:"disk_size_per_node_bytes"`
DiskType *string `json:"disk_type"`
DisksPerNode *int `json:"disks_per_node,omitempty"`
HeapSizeBytes *int `json:"heap_size_bytes,omitempty"`
MemoryPerNodeBytes *int `json:"memory_per_node_bytes"`
}
// IPAddress defines model for IPAddress.
type IPAddress struct {
// Ip The IP address of the user
Ip *string `json:"ip,omitempty"`
}
// InstallToken defines model for InstallToken.
type InstallToken struct {
Token string `json:"token"`
}
// InvoiceConsumption defines model for InvoiceConsumption.
type InvoiceConsumption struct {
Currency *string `json:"currency"`
Discounts *[]Discount `json:"discounts,omitempty"`
PeriodEnd *time.Time `json:"period_end,omitempty"`
PeriodStart *time.Time `json:"period_start,omitempty"`
Subtotal *int `json:"subtotal,omitempty"`
Total *int `json:"total,omitempty"`
TotalDiscountAmount *int `json:"total_discount_amount,omitempty"`
}
// JWK defines model for JWK.
type JWK struct {
Keys *[]map[string]interface{} `json:"keys,omitempty"`
}
// JWTRefreshToken defines model for JWTRefreshToken.
type JWTRefreshToken struct {
RefreshToken string `json:"refresh_token"`
}
// LatestCrateVersion defines model for LatestCrateVersion.
type LatestCrateVersion struct {
// Nightly The latest nightly CrateDB version. This can be deployed if the nightly channel is specified.
Nightly *string `json:"nightly,omitempty"`
// Stable The latest stable CrateDB version. This will be used by default in all new deployments.
Stable *string `json:"stable,omitempty"`
// Testing The latest testing CrateDB version. This can be deployed if the testing channel is specified.
Testing *string `json:"testing,omitempty"`
}
// Meta defines model for Meta.
type Meta struct {
CrateVersions *LatestCrateVersion `json:"crate_versions,omitempty"`
Version *Version `json:"version,omitempty"`
}
// NestedSecret defines model for NestedSecret.
type NestedSecret struct {
AwsSecret *AwsSecret `json:"aws_secret,omitempty"`
AzureSecret *AzureSecret `json:"azure_secret,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
// NewApiKeyResponseSchema defines model for NewApiKeyResponseSchema.
type NewApiKeyResponseSchema struct {
Key *ApiKey `json:"key,omitempty"`
Secret *string `json:"secret,omitempty"`
Success *bool `json:"success,omitempty"`
}
// NewApiKeySchema defines model for NewApiKeySchema.
type NewApiKeySchema struct {
Active *bool `json:"active,omitempty"`
Dc *DublinCore `json:"dc,omitempty"`
Key *string `json:"key,omitempty"`
LastUsed *time.Time `json:"last_used,omitempty"`
Secret *string `json:"secret,omitempty"`
UserId *string `json:"user_id,omitempty"`
}
// NightlyCrateDBVersion defines model for NightlyCrateDBVersion.
type NightlyCrateDBVersion struct {
Date *string `json:"date,omitempty"`
Hotfix *int `json:"hotfix,omitempty"`
Major *int `json:"major,omitempty"`
Minor *int `json:"minor,omitempty"`
Version *string `json:"version,omitempty"`
}
// ObjectsList defines model for ObjectsList.
type ObjectsList struct {
Error *string `json:"error"`
Objects []string `json:"objects"`
}
// Organization defines model for Organization.
type Organization struct {
Dc *DublinCore `json:"dc,omitempty"`
// Email Notification email to use for the organization.
Email *openapi_types.Email `json:"email,omitempty"`
Id *string `json:"id,omitempty"`
Name string `json:"name"`
NotificationsEnabled *bool `json:"notifications_enabled,omitempty"`
// PlanType The support plan to use for the organization.
PlanType *OrganizationPlanType `json:"plan_type,omitempty"`
ProjectCount *int `json:"project_count,omitempty"`
RoleFqn *OrganizationRoleFqn `json:"role_fqn,omitempty"`
}
// OrganizationPlanType The support plan to use for the organization.
type OrganizationPlanType int
// OrganizationRoleFqn defines model for Organization.RoleFqn.
type OrganizationRoleFqn string
// OrganizationCurrentConsumptionSchema defines model for OrganizationCurrentConsumptionSchema.
type OrganizationCurrentConsumptionSchema struct {
ComputeConsumptionThisMonth *[]ConsumptionPerProduct `json:"compute_consumption_this_month,omitempty"`
CurrentCost *CurrentEstimatedCost `json:"current_cost,omitempty"`
StorageConsumptionThisMonth *StorageConsumption `json:"storage_consumption_this_month,omitempty"`
}
// OrganizationEdit defines model for OrganizationEdit.
type OrganizationEdit struct {
// Email Notification email to use for the organization.
Email *openapi_types.Email `json:"email"`
Id *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
NotificationsEnabled *bool `json:"notifications_enabled,omitempty"`
// PlanType The support plan to use for the organization.
PlanType *OrganizationEditPlanType `json:"plan_type,omitempty"`
}
// OrganizationEditPlanType The support plan to use for the organization.
type OrganizationEditPlanType int
// OrganizationInvitation defines model for OrganizationInvitation.
type OrganizationInvitation struct {
Email *openapi_types.Email `json:"email,omitempty"`
ExpirationDate *time.Time `json:"expiration_date,omitempty"`
OrganizationRoles *[]PartialOrganizationRoles `json:"organization_roles,omitempty"`
Status *string `json:"status,omitempty"`
Uid *string `json:"uid,omitempty"`
}
// OrganizationRemainingBudget defines model for OrganizationRemainingBudget.
type OrganizationRemainingBudget struct {
ExcludeClusterId *string `json:"exclude_cluster_id,omitempty"`
RemainingBudgetPerMonth *float32 `json:"remaining_budget_per_month,omitempty"`
}
// OrganizationRole defines model for OrganizationRole.
type OrganizationRole struct {
Added *bool `json:"added,omitempty"`
Invited *bool `json:"invited,omitempty"`
OrganizationId *string `json:"organization_id,omitempty"`
RoleFqn OrganizationRoleRoleFqn `json:"role_fqn"`
User *string `json:"user,omitempty"`
UserId *string `json:"user_id,omitempty"`
}
// OrganizationRoleRoleFqn defines model for OrganizationRole.RoleFqn.
type OrganizationRoleRoleFqn string
// OrganizationUser defines model for OrganizationUser.
type OrganizationUser struct {
Email openapi_types.Email `json:"email"`
Idp *string `json:"idp,omitempty"`
Name *string `json:"name,omitempty"`
OrganizationRoles *[]PartialOrganizationRoles `json:"organization_roles,omitempty"`
Picture *string `json:"picture,omitempty"`
Uid *string `json:"uid,omitempty"`
Username *string `json:"username,omitempty"`
}
// PartialCluster defines model for PartialCluster.
type PartialCluster struct {
Channel *string `json:"channel,omitempty"`
CrateVersion string `json:"crate_version"`
HardwareSpecs *HardwareSpecs `json:"hardware_specs"`
Name string `json:"name"`
Password *string `json:"password,omitempty"`
ProductName string `json:"product_name"`
ProductTier string `json:"product_tier"`
ProductUnit *int `json:"product_unit,omitempty"`
Username string `json:"username"`
}
// PartialClusterAsyncOperation defines model for PartialClusterAsyncOperation.
type PartialClusterAsyncOperation struct {
Dc *DublinCore `json:"dc,omitempty"`
Id *string `json:"id,omitempty"`
Status *string `json:"status,omitempty"`
Type *string `json:"type,omitempty"`
}
// PartialOrganizationRoles defines model for PartialOrganizationRoles.
type PartialOrganizationRoles struct {
OrganizationId *string `json:"organization_id,omitempty"`
RoleFqn PartialOrganizationRolesRoleFqn `json:"role_fqn"`
}
// PartialOrganizationRolesRoleFqn defines model for PartialOrganizationRoles.RoleFqn.
type PartialOrganizationRolesRoleFqn string
// PartialProject defines model for PartialProject.
type PartialProject struct {
// BackupLocation Specify a custom backup location (custom s3 bucket) for a project. Supported in Edge regions only.
BackupLocation *ProjectBackupLocation `json:"backup_location"`
Name *string `json:"name,omitempty"`
Region *string `json:"region,omitempty"`
}
// PartialProjectRole defines model for PartialProjectRole.
type PartialProjectRole struct {
ProjectId *string `json:"project_id,omitempty"`
RoleFqn PartialProjectRoleRoleFqn `json:"role_fqn"`
}
// PartialProjectRoleRoleFqn defines model for PartialProjectRole.RoleFqn.
type PartialProjectRoleRoleFqn string
// PaymentMethod defines model for PaymentMethod.
type PaymentMethod struct {
Card *CustomerCard `json:"card,omitempty"`
IsAvailable *bool `json:"is_available,omitempty"`
IsSetup *bool `json:"is_setup,omitempty"`
Subscription *Subscription `json:"subscription,omitempty"`
SubscriptionId *string `json:"subscription_id,omitempty"`
Type *string `json:"type,omitempty"`
}
// PricingPromotion defines model for PricingPromotion.
type PricingPromotion struct {
PricePerHour *float32 `json:"price_per_hour,omitempty"`
PricePerMonth *float32 `json:"price_per_month,omitempty"`
PromotionDuration *int `json:"promotion_duration,omitempty"`
}
// Product defines model for Product.
type Product struct {
Deprecated *bool `json:"deprecated,omitempty"`
Description *string `json:"description,omitempty"`
GuaranteesPerDtu *Guarantee `json:"guarantees_per_dtu,omitempty"`
Kind *string `json:"kind,omitempty"`
Label *string `json:"label,omitempty"`
Name *string `json:"name,omitempty"`
Offer *string `json:"offer,omitempty"`
Plan *string `json:"plan,omitempty"`
PricePerDtuMinute *int `json:"price_per_dtu_minute,omitempty"`
Region *string `json:"region,omitempty"`
ScaleSummary *string `json:"scale_summary,omitempty"`
Scaling *[]ScaleOption `json:"scaling,omitempty"`
Specs *Spec `json:"specs,omitempty"`
Tags *[]string `json:"tags,omitempty"`
Tier *string `json:"tier,omitempty"`
}
// ProductPricing defines model for ProductPricing.
type ProductPricing struct {
ClusterPrice *ClusterPricing `json:"cluster_price,omitempty"`
StoragePrice *ClusterPricing `json:"storage_price,omitempty"`
TotalPrice *ClusterPricing `json:"total_price,omitempty"`
}
// Progress defines model for Progress.
type Progress struct {
Bytes *int `json:"bytes"`
FailedFiles *int `json:"failed_files,omitempty"`
FailedRecords *int `json:"failed_records"`
Files *[]FileFeedback `json:"files,omitempty"`
Percent *float32 `json:"percent"`
ProcessedFiles *int `json:"processed_files,omitempty"`
Records int `json:"records"`
TotalFiles *int `json:"total_files,omitempty"`
TotalRecords *int `json:"total_records"`
}
// Project defines model for Project.
type Project struct {
// BackupLocation Specify a custom backup location (custom s3 bucket) for a project. Supported in Edge regions only.
BackupLocation *ProjectBackupLocation `json:"backup_location"`
Dc *DublinCore `json:"dc,omitempty"`
Id *string `json:"id,omitempty"`
Name string `json:"name"`