-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmodels.gen.go
5533 lines (4399 loc) · 192 KB
/
models.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 cloudquery_api provides primitives to interact with the openapi HTTP API.
//
// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.3.0 DO NOT EDIT.
package cloudquery_api
import (
"encoding/json"
"fmt"
"time"
openapi_types "github.com/oapi-codegen/runtime/types"
)
const (
BasicAuthScopes = "basicAuth.Scopes"
BearerAuthScopes = "bearerAuth.Scopes"
CookieAuthScopes = "cookieAuth.Scopes"
)
// Defines values for APIKeyScope.
const (
APIKeyScopeReadAndWrite APIKeyScope = "read-and-write"
)
// Defines values for AddonCategory.
const (
AddonCategoryCloudInfrastructure AddonCategory = "cloud-infrastructure"
AddonCategoryDatabases AddonCategory = "databases"
AddonCategoryEngineeringAnalytics AddonCategory = "engineering-analytics"
AddonCategoryOther AddonCategory = "other"
AddonCategorySalesMarketing AddonCategory = "sales-marketing"
)
// Defines values for AddonFormat.
const (
AddonFormatZip AddonFormat = "zip"
)
// Defines values for AddonOrderStatus.
const (
AddonOrderStatusCancelled AddonOrderStatus = "cancelled"
AddonOrderStatusCompleted AddonOrderStatus = "completed"
AddonOrderStatusPending AddonOrderStatus = "pending"
)
// Defines values for AddonTier.
const (
AddonTierFree AddonTier = "free"
AddonTierPaid AddonTier = "paid"
)
// Defines values for AddonType.
const (
AddonTypeTransformation AddonType = "transformation"
AddonTypeVisualization AddonType = "visualization"
)
// Defines values for ConnectorStatus.
const (
ConnectorStatusAuthenticated ConnectorStatus = "authenticated"
ConnectorStatusCreated ConnectorStatus = "created"
ConnectorStatusFailed ConnectorStatus = "failed"
ConnectorStatusRevoked ConnectorStatus = "revoked"
)
// Defines values for ContentType.
const (
ContentTypeImagejpeg ContentType = "image/jpeg"
ContentTypeImagepng ContentType = "image/png"
ContentTypeImagewebp ContentType = "image/webp"
)
// Defines values for EmailTeamInvitationRequestRole.
const (
EmailTeamInvitationRequestRoleAdmin EmailTeamInvitationRequestRole = "admin"
EmailTeamInvitationRequestRoleMember EmailTeamInvitationRequestRole = "member"
)
// Defines values for ManagedDatabaseStatus.
const (
ManagedDatabaseStatusExpired ManagedDatabaseStatus = "expired"
ManagedDatabaseStatusFailed ManagedDatabaseStatus = "failed"
ManagedDatabaseStatusPending ManagedDatabaseStatus = "pending"
ManagedDatabaseStatusReady ManagedDatabaseStatus = "ready"
)
// Defines values for PluginCategory.
const (
PluginCategoryCloudFinops PluginCategory = "cloud-finops"
PluginCategoryCloudInfrastructure PluginCategory = "cloud-infrastructure"
PluginCategoryCustomerSupport PluginCategory = "customer-support"
PluginCategoryDataWarehouses PluginCategory = "data-warehouses"
PluginCategoryDatabases PluginCategory = "databases"
PluginCategoryEngineeringAnalytics PluginCategory = "engineering-analytics"
PluginCategoryFinance PluginCategory = "finance"
PluginCategoryFleetManagement PluginCategory = "fleet-management"
PluginCategoryHumanResources PluginCategory = "human-resources"
PluginCategoryMarketingAnalytics PluginCategory = "marketing-analytics"
PluginCategoryOther PluginCategory = "other"
PluginCategoryProductAnalytics PluginCategory = "product-analytics"
PluginCategoryProjectManagement PluginCategory = "project-management"
PluginCategorySalesMarketing PluginCategory = "sales-marketing"
PluginCategorySecurity PluginCategory = "security"
PluginCategoryShipmentTracking PluginCategory = "shipment-tracking"
)
// Defines values for PluginKind.
const (
PluginKindDestination PluginKind = "destination"
PluginKindSource PluginKind = "source"
PluginKindTransformer PluginKind = "transformer"
)
// Defines values for PluginNotificationRequestStatus.
const (
PluginNotificationRequestStatusPending PluginNotificationRequestStatus = "pending"
PluginNotificationRequestStatusSent PluginNotificationRequestStatus = "sent"
)
// Defines values for PluginPackageType.
const (
PluginPackageTypeDocker PluginPackageType = "docker"
PluginPackageTypeNative PluginPackageType = "native"
)
// Defines values for PluginPriceCategory.
const (
PluginPriceCategoryApi PluginPriceCategory = "api"
PluginPriceCategoryDatabase PluginPriceCategory = "database"
PluginPriceCategoryFree PluginPriceCategory = "free"
)
// Defines values for PluginReleaseStage.
const (
PluginReleaseStageComingSoon PluginReleaseStage = "coming-soon"
PluginReleaseStageGa PluginReleaseStage = "ga"
PluginReleaseStagePreview PluginReleaseStage = "preview"
)
// Defines values for PluginReleaseStageCreate.
const (
PluginReleaseStageCreateComingSoon PluginReleaseStageCreate = "coming-soon"
PluginReleaseStageCreateGa PluginReleaseStageCreate = "ga"
PluginReleaseStageCreatePreview PluginReleaseStageCreate = "preview"
)
// Defines values for PluginReleaseStageUpdate.
const (
PluginReleaseStageUpdateComingSoon PluginReleaseStageUpdate = "coming-soon"
PluginReleaseStageUpdateGa PluginReleaseStageUpdate = "ga"
PluginReleaseStageUpdatePreview PluginReleaseStageUpdate = "preview"
)
// Defines values for PluginTier.
const (
PluginTierFree PluginTier = "free"
PluginTierOpenCore PluginTier = "open-core"
PluginTierPaid PluginTier = "paid"
)
// Defines values for SyncDestinationMigrateMode.
const (
SyncDestinationMigrateModeForced SyncDestinationMigrateMode = "forced"
SyncDestinationMigrateModeSafe SyncDestinationMigrateMode = "safe"
)
// Defines values for SyncDestinationMigrateModeUpdate.
const (
SyncDestinationMigrateModeUpdateForced SyncDestinationMigrateModeUpdate = "forced"
SyncDestinationMigrateModeUpdateSafe SyncDestinationMigrateModeUpdate = "safe"
)
// Defines values for SyncDestinationWriteMode.
const (
SyncDestinationWriteModeAppend SyncDestinationWriteMode = "append"
SyncDestinationWriteModeOverwrite SyncDestinationWriteMode = "overwrite"
SyncDestinationWriteModeOverwriteDeleteStale SyncDestinationWriteMode = "overwrite-delete-stale"
)
// Defines values for SyncDestinationWriteModeUpdate.
const (
SyncDestinationWriteModeUpdateAppend SyncDestinationWriteModeUpdate = "append"
SyncDestinationWriteModeUpdateOverwrite SyncDestinationWriteModeUpdate = "overwrite"
SyncDestinationWriteModeUpdateOverwriteDeleteStale SyncDestinationWriteModeUpdate = "overwrite-delete-stale"
)
// Defines values for SyncLastUpdateSource.
const (
SyncLastUpdateSourceUi SyncLastUpdateSource = "ui"
SyncLastUpdateSourceYaml SyncLastUpdateSource = "yaml"
)
// Defines values for SyncRunStatus.
const (
SyncRunStatusCancelled SyncRunStatus = "cancelled"
SyncRunStatusCompleted SyncRunStatus = "completed"
SyncRunStatusCreated SyncRunStatus = "created"
SyncRunStatusFailed SyncRunStatus = "failed"
SyncRunStatusStarted SyncRunStatus = "started"
)
// Defines values for SyncRunStatusReason.
const (
SyncRunStatusReasonError SyncRunStatusReason = "error"
SyncRunStatusReasonOomKilled SyncRunStatusReason = "oom_killed"
)
// Defines values for SyncTestConnectionStatus.
const (
SyncTestConnectionStatusCompleted SyncTestConnectionStatus = "completed"
SyncTestConnectionStatusCreated SyncTestConnectionStatus = "created"
SyncTestConnectionStatusFailed SyncTestConnectionStatus = "failed"
SyncTestConnectionStatusStarted SyncTestConnectionStatus = "started"
)
// Defines values for TeamPlan.
const (
TeamPlanEnterprise TeamPlan = "enterprise"
TeamPlanFree TeamPlan = "free"
TeamPlanPaid TeamPlan = "paid"
TeamPlanTrial TeamPlan = "trial"
)
// Defines values for TeamSubscriptionOrderStatus.
const (
TeamSubscriptionOrderStatusCancelled TeamSubscriptionOrderStatus = "cancelled"
TeamSubscriptionOrderStatusCompleted TeamSubscriptionOrderStatus = "completed"
TeamSubscriptionOrderStatusPending TeamSubscriptionOrderStatus = "pending"
)
// Defines values for AddonSortBy.
const (
AddonSortByCreatedAt AddonSortBy = "created_at"
AddonSortByDownloads AddonSortBy = "downloads"
AddonSortByName AddonSortBy = "name"
AddonSortByUpdatedAt AddonSortBy = "updated_at"
)
// Defines values for PluginSortBy.
const (
PluginSortByCreatedAt PluginSortBy = "created_at"
PluginSortByDownloads PluginSortBy = "downloads"
PluginSortByName PluginSortBy = "name"
PluginSortByUpdatedAt PluginSortBy = "updated_at"
)
// Defines values for VersionSortBy.
const (
VersionSortByCreatedAt VersionSortBy = "created_at"
)
// Defines values for ListAddonsParamsSortBy.
const (
ListAddonsParamsSortByCreatedAt ListAddonsParamsSortBy = "created_at"
ListAddonsParamsSortByDownloads ListAddonsParamsSortBy = "downloads"
ListAddonsParamsSortByName ListAddonsParamsSortBy = "name"
ListAddonsParamsSortByUpdatedAt ListAddonsParamsSortBy = "updated_at"
)
// Defines values for ListAddonVersionsParamsSortBy.
const (
ListAddonVersionsParamsSortByCreatedAt ListAddonVersionsParamsSortBy = "created_at"
)
// Defines values for ListPluginsParamsSortBy.
const (
ListPluginsParamsSortByCreatedAt ListPluginsParamsSortBy = "created_at"
ListPluginsParamsSortByDownloads ListPluginsParamsSortBy = "downloads"
ListPluginsParamsSortByName ListPluginsParamsSortBy = "name"
ListPluginsParamsSortByUpdatedAt ListPluginsParamsSortBy = "updated_at"
)
// Defines values for ListPluginVersionsParamsSortBy.
const (
ListPluginVersionsParamsSortByCreatedAt ListPluginVersionsParamsSortBy = "created_at"
)
// Defines values for GetTeamUsageSummaryParamsMetrics.
const (
GetTeamUsageSummaryParamsMetricsCloudVcpuSeconds GetTeamUsageSummaryParamsMetrics = "cloud_vcpu_seconds"
GetTeamUsageSummaryParamsMetricsCloudVramByteSeconds GetTeamUsageSummaryParamsMetrics = "cloud_vram_byte_seconds"
GetTeamUsageSummaryParamsMetricsNetworkEgressBytes GetTeamUsageSummaryParamsMetrics = "network_egress_bytes"
GetTeamUsageSummaryParamsMetricsPaidRows GetTeamUsageSummaryParamsMetrics = "paid_rows"
)
// Defines values for GetTeamUsageSummaryParamsAggregationPeriod.
const (
GetTeamUsageSummaryParamsAggregationPeriodDay GetTeamUsageSummaryParamsAggregationPeriod = "day"
GetTeamUsageSummaryParamsAggregationPeriodMonth GetTeamUsageSummaryParamsAggregationPeriod = "month"
)
// Defines values for GetGroupedTeamUsageSummaryParamsMetrics.
const (
GetGroupedTeamUsageSummaryParamsMetricsCloudVcpuSeconds GetGroupedTeamUsageSummaryParamsMetrics = "cloud_vcpu_seconds"
GetGroupedTeamUsageSummaryParamsMetricsCloudVramByteSeconds GetGroupedTeamUsageSummaryParamsMetrics = "cloud_vram_byte_seconds"
GetGroupedTeamUsageSummaryParamsMetricsNetworkEgressBytes GetGroupedTeamUsageSummaryParamsMetrics = "network_egress_bytes"
GetGroupedTeamUsageSummaryParamsMetricsPaidRows GetGroupedTeamUsageSummaryParamsMetrics = "paid_rows"
)
// Defines values for GetGroupedTeamUsageSummaryParamsAggregationPeriod.
const (
GetGroupedTeamUsageSummaryParamsAggregationPeriodDay GetGroupedTeamUsageSummaryParamsAggregationPeriod = "day"
GetGroupedTeamUsageSummaryParamsAggregationPeriodMonth GetGroupedTeamUsageSummaryParamsAggregationPeriod = "month"
)
// Defines values for GetGroupedTeamUsageSummaryParamsGroupBy.
const (
GetGroupedTeamUsageSummaryParamsGroupByPlugin GetGroupedTeamUsageSummaryParamsGroupBy = "plugin"
GetGroupedTeamUsageSummaryParamsGroupByPriceCategory GetGroupedTeamUsageSummaryParamsGroupBy = "price_category"
GetGroupedTeamUsageSummaryParamsGroupBySyncId GetGroupedTeamUsageSummaryParamsGroupBy = "sync_id"
)
// APIKey API Key to interact with CloudQuery Cloud under specific team
type APIKey struct {
CreatedAt *time.Time `json:"created_at,omitempty"`
// CreatedBy email of the user that created the API key
CreatedBy *string `json:"created_by,omitempty"`
// Expired Whether the API key has expired or not
Expired bool `json:"expired"`
// ExpiresAt Timestamp at which API key will stop working
ExpiresAt time.Time `json:"expires_at"`
// APIKeyID ID of the API key
APIKeyID APIKeyID `json:"id"`
// Key API key. Will be shown only in the response when creating the key.
Key *string `json:"key,omitempty"`
// LastAccessAt Timestamp at which API key was last used - accurate to the day only.
LastAccessAt *time.Time `json:"last_access_at,omitempty"`
// Name Name of the API key
Name APIKeyName `json:"name"`
// Scope Scope of permissions for the API key. API keys are used for creating new plugin versions and downloading existing plugins
Scope APIKeyScope `json:"scope"`
}
// APIKeyID ID of the API key
type APIKeyID = openapi_types.UUID
// APIKeyName Name of the API key
type APIKeyName = string
// APIKeyScope Scope of permissions for the API key. API keys are used for creating new plugin versions and downloading existing plugins
type APIKeyScope string
// AcceptTeamInvitationRequest defines model for AcceptTeamInvitation_request.
type AcceptTeamInvitationRequest struct {
Token openapi_types.UUID `json:"token"`
}
// ActivatePlatform200Response defines model for ActivatePlatform_200_response.
type ActivatePlatform200Response struct {
// ActivationID Activation ID for the platform
ActivationID interface{} `json:"activation_id"`
// NextCheckInSeconds Time in seconds until the next check in
NextCheckInSeconds interface{} `json:"next_check_in_seconds"`
// TeamName Name of the team that was activated
TeamName interface{} `json:"team_name"`
AdditionalProperties map[string]interface{} `json:"-"`
}
// ActivatePlatform205Response defines model for ActivatePlatform_205_response.
type ActivatePlatform205Response struct {
// ButtonText Text for the button
ButtonText *interface{} `json:"button_text,omitempty"`
// ButtonURL URL for the button
ButtonURL *interface{} `json:"button_url,omitempty"`
// Error Error message
Error interface{} `json:"error"`
AdditionalProperties map[string]interface{} `json:"-"`
}
// ActivatePlatformRequest defines model for ActivatePlatform_request.
type ActivatePlatformRequest struct {
// APIKey Team API key to activate platform with
APIKey interface{} `json:"api_key"`
// InstallationID Installation ID of the platform
InstallationID interface{} `json:"installation_id"`
AdditionalProperties map[string]interface{} `json:"-"`
}
// Addon CloudQuery Addon
type Addon struct {
// AddonFormat Supported formats for addons
AddonFormat AddonFormat `json:"addon_format"`
// AddonType Supported types for addons
AddonType AddonType `json:"addon_type"`
// Category Supported categories for addons
Category AddonCategory `json:"category"`
CreatedAt time.Time `json:"created_at"`
// DisplayName The addon's display name
DisplayName string `json:"display_name"`
Homepage *string `json:"homepage,omitempty"`
Logo string `json:"logo"`
// Name The unique name for the addon.
Name AddonName `json:"name"`
// Official True if the addon is maintained by CloudQuery, false otherwise
Official bool `json:"official"`
// PriceUSD The price for 6 months
PriceUSD string `json:"price_usd"`
// Public Whether the plugin is listed in the CloudQuery Hub. If false, the plugin will not be shown in the CloudQuery Hub and will only be visible to members of the plugin's team.
Public *bool `json:"public,omitempty"`
Repository *string `json:"repository,omitempty"`
ShortDescription string `json:"short_description"`
// TeamName The unique name for the team.
TeamName TeamName `json:"team_name"`
// Tier Supported tiers for addons
Tier AddonTier `json:"tier"`
UpdatedAt time.Time `json:"updated_at"`
}
// AddonAsset CloudQuery Addon Asset
type AddonAsset struct {
// Checksum The checksum of the addon asset
Checksum string `json:"checksum"`
// Location The location to download the addon asset from
Location string `json:"location"`
}
// AddonCategory Supported categories for addons
type AddonCategory string
// AddonCreate CloudQuery AddonCreate
type AddonCreate struct {
// AddonFormat Supported formats for addons
AddonFormat AddonFormat `json:"addon_format"`
// AddonType Supported types for addons
AddonType AddonType `json:"addon_type"`
// Category Supported categories for addons
Category AddonCategory `json:"category"`
// DisplayName The addon's display name
DisplayName string `json:"display_name"`
Homepage *string `json:"homepage,omitempty"`
Logo *string `json:"logo,omitempty"`
// Name The unique name for the addon.
Name AddonName `json:"name"`
// PriceUSD The price for 6 months
PriceUSD *string `json:"price_usd,omitempty"`
// Public Whether the plugin is listed in the CloudQuery Hub. If false, the plugin will not be shown in the CloudQuery Hub and will only be visible to members of the plugin's team.
Public bool `json:"public"`
Repository *string `json:"repository,omitempty"`
ShortDescription string `json:"short_description"`
// TeamName The unique name for the team.
TeamName TeamName `json:"team_name"`
// Tier Supported tiers for addons
Tier AddonTier `json:"tier"`
}
// AddonFormat Supported formats for addons
type AddonFormat string
// AddonName The unique name for the addon.
type AddonName = string
// AddonOrder CloudQuery Addon Order
type AddonOrder struct {
// AddonName The unique name for the addon.
AddonName AddonName `json:"addon_name"`
// AddonTeam The unique name for the team.
AddonTeam TeamName `json:"addon_team"`
// AddonType Supported types for addons
AddonType AddonType `json:"addon_type"`
CompletedAt *time.Time `json:"completed_at,omitempty"`
// CompletionURL Stripe URL for completing purchase. Only shown in response to POST request.
CompletionURL *string `json:"completion_url,omitempty"`
CreatedAt time.Time `json:"created_at"`
// AddonOrderID ID of the addon order
AddonOrderID AddonOrderID `json:"id"`
Status AddonOrderStatus `json:"status"`
// TeamName The unique name for the team.
TeamName TeamName `json:"team_name"`
UpdatedAt time.Time `json:"updated_at"`
}
// AddonOrderCreate Create CloudQuery Addon Order
type AddonOrderCreate struct {
// AddonName The unique name for the addon.
AddonName AddonName `json:"addon_name"`
// AddonTeam The unique name for the team.
AddonTeam TeamName `json:"addon_team"`
// AddonType Supported types for addons
AddonType AddonType `json:"addon_type"`
// CancelUrl URL to redirect to after order cancellation
CancelUrl string `json:"cancel_url"`
// SuccessUrl URL to redirect to after successful order completion
SuccessUrl string `json:"success_url"`
}
// AddonOrderID ID of the addon order
type AddonOrderID = openapi_types.UUID
// AddonOrderStatus defines model for AddonOrderStatus.
type AddonOrderStatus string
// AddonTier Supported tiers for addons
type AddonTier string
// AddonType Supported types for addons
type AddonType string
// AddonUpdate CloudQuery AddonUpdate
type AddonUpdate struct {
// AddonFormat Supported formats for addons
AddonFormat *AddonFormat `json:"addon_format,omitempty"`
// Category Supported categories for addons
Category *AddonCategory `json:"category,omitempty"`
CreatedAt *time.Time `json:"created_at,omitempty"`
// DisplayName The addon's display name
DisplayName *string `json:"display_name,omitempty"`
Homepage *string `json:"homepage,omitempty"`
Logo *string `json:"logo,omitempty"`
// PriceUSD The price for 6 months in USD
PriceUSD *string `json:"price_usd,omitempty"`
// Public Whether the plugin is listed in the CloudQuery Hub. If false, the plugin will not be shown in the CloudQuery Hub and will only be visible to members of the plugin's team.
Public *bool `json:"public,omitempty"`
Repository *string `json:"repository,omitempty"`
ShortDescription *string `json:"short_description,omitempty"`
// Tier Supported tiers for addons
Tier *AddonTier `json:"tier,omitempty"`
}
// AddonVersion CloudQuery Addon Version
type AddonVersion struct {
// AddonDeps list of other addons this addon depends on in the format of team_name/type/name@version
AddonDeps *[]string `json:"addon_deps,omitempty"`
// Checksum The checksum of the addon asset
Checksum string `json:"checksum"`
// CreatedAt The date and time the plugin version was created.
CreatedAt time.Time `json:"created_at"`
// Doc Main README in MD format
Doc string `json:"doc"`
// Draft If a plugin version is in draft, it will not show to members outside the team or be counted as the latest version.
Draft bool `json:"draft"`
// Message Description of what's new or changed in this version (supports markdown)
Message string `json:"message"`
// Name The version in semantic version format.
Name VersionName `json:"name"`
// PluginDeps list of plugins the addon depends on in the format of team_name/kind/name@version
PluginDeps *[]string `json:"plugin_deps,omitempty"`
// PublishedAt The date and time the plugin version was set to non-draft (published).
PublishedAt *time.Time `json:"published_at,omitempty"`
// Retracted If a plugin version is retracted, assets will still be available for download, but the version will be marked as retracted to discourage use.
Retracted bool `json:"retracted"`
}
// AddonVersionUpdate defines model for AddonVersionUpdate.
type AddonVersionUpdate struct {
// AddonDeps list of other addons this addon depends on in the format of team_name/type/name@version
AddonDeps *[]string `json:"addon_deps,omitempty"`
// Checksum The checksum of the addon asset
Checksum *string `json:"checksum,omitempty"`
// Doc Main README in MD format
Doc *string `json:"doc,omitempty"`
// Draft If a plugin version is in draft, it will not show to members outside the team or be counted as the latest version.
Draft *bool `json:"draft,omitempty"`
// Message Description of what's new or changed in this version (supports markdown)
Message *string `json:"message,omitempty"`
// PluginDeps list of plugins the addon depends on in the format of team_name/kind/name@version
PluginDeps *[]string `json:"plugin_deps,omitempty"`
// Retracted If a plugin version is retracted, assets will still be available for download, but the version will be marked as retracted to discourage use.
Retracted *bool `json:"retracted,omitempty"`
}
// BasicError Basic Error
type BasicError struct {
Message string `json:"message"`
Status int `json:"status"`
}
// Connector Connector definition
type Connector struct {
// CreatedAt Time the connector was created
CreatedAt time.Time `json:"created_at"`
// ID unique ID of the connector
ID openapi_types.UUID `json:"id"`
// Name Name of the connector
Name string `json:"name"`
// Status The status of the connector
Status ConnectorStatus `json:"status"`
// Type Type of the connector
Type string `json:"type"`
}
// ConnectorAuthFinishRequestAWS AWS connector authentication request, filled in after the user has authenticated through AWS
type ConnectorAuthFinishRequestAWS struct {
// ExternalID External ID in the role definition. Optional. If not provided the previously suggested external ID will be used. Empty string will remove the external ID.
ExternalID *string `json:"external_id,omitempty"`
// RoleARN ARN of role created by the user
RoleARN string `json:"role_arn"`
}
// ConnectorAuthFinishRequestOAuth OAuth connector authentication request, filled in after the user has authenticated through OAuth
type ConnectorAuthFinishRequestOAuth struct {
// BaseURL Base of the URL the callback url was constructed from
BaseURL interface{} `json:"base_url"`
// Env Environment variables used in the spec.
Env *interface{} `json:"env,omitempty"`
// ReturnURL URL the user was redirected to (including new parameter values) after the OAuth flow is complete
ReturnURL interface{} `json:"return_url"`
Spec *map[string]interface{} `json:"spec,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
// ConnectorAuthRequestAWS AWS connector authentication request to start the authentication process
type ConnectorAuthRequestAWS struct {
// Env Environment variables used in the spec.
Env *interface{} `json:"env,omitempty"`
// PluginKind Kind of the plugin
PluginKind interface{} `json:"plugin_kind"`
// PluginName Name of the plugin
PluginName interface{} `json:"plugin_name"`
// PluginTeam Team that owns the plugin we are authenticating the connector for
PluginTeam interface{} `json:"plugin_team"`
// PluginVersion Version of the plugin
PluginVersion *interface{} `json:"plugin_version,omitempty"`
// SkipDependentTables Whether to skip dependent tables, setting from the outer spec
SkipDependentTables *interface{} `json:"skip_dependent_tables,omitempty"`
// SkipTables Tables to skip authentication, setting from the outer spec
SkipTables *interface{} `json:"skip_tables,omitempty"`
Spec *map[string]interface{} `json:"spec,omitempty"`
// Tables Tables to authenticate, setting from the outer spec
Tables *interface{} `json:"tables,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
// ConnectorAuthRequestGCP GCP connector authentication request to start the authentication process
type ConnectorAuthRequestGCP struct {
// PluginKind Kind of the plugin
PluginKind string `json:"plugin_kind"`
// PluginName Name of the plugin
PluginName string `json:"plugin_name"`
// PluginTeam Team that owns the plugin we are authenticating the connector for
PluginTeam string `json:"plugin_team"`
}
// ConnectorAuthRequestOAuth OAuth connector authentication request to start the authentication process
type ConnectorAuthRequestOAuth struct {
// BaseURL Base of the URL the callback url will be constructed from
BaseURL interface{} `json:"base_url"`
// Env Environment variables used in the spec.
Env *interface{} `json:"env,omitempty"`
// Flavor Override default flavor
Flavor *interface{} `json:"flavor,omitempty"`
// PluginKind Kind of the plugin
PluginKind interface{} `json:"plugin_kind"`
// PluginName Name of the plugin
PluginName interface{} `json:"plugin_name"`
// PluginTeam Team that owns the plugin we are authenticating the connector for
PluginTeam interface{} `json:"plugin_team"`
// PluginVersion Version of the plugin
PluginVersion *interface{} `json:"plugin_version,omitempty"`
// SkipDependentTables Whether to skip dependent tables, setting from the outer spec
SkipDependentTables *interface{} `json:"skip_dependent_tables,omitempty"`
// SkipTables Tables to skip authentication, setting from the outer spec
SkipTables *interface{} `json:"skip_tables,omitempty"`
Spec *map[string]interface{} `json:"spec,omitempty"`
// Tables Tables to authenticate, setting from the outer spec
Tables *interface{} `json:"tables,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
// ConnectorAuthResponseAWS AWS connector authentication response to start the authentication process
type ConnectorAuthResponseAWS struct {
// RedirectURL URL to redirect the user to, to authenticate
RedirectURL string `json:"redirect_url"`
// RoleTemplateURL URL to the role template, to present to the user
RoleTemplateURL string `json:"role_template_url"`
// SuggestedExternalID External ID suggested to enter into the role definition
SuggestedExternalID string `json:"suggested_external_id"`
// SuggestedPolicyARNs List of AWS policy ARNs suggested to grant inside the role definition
SuggestedPolicyARNs []string `json:"suggested_policy_arns"`
}
// ConnectorAuthResponseGCP GCP connector authentication response to start the authentication process
type ConnectorAuthResponseGCP struct {
// ServiceAccount CloudQuery GCP Service Account to grant access to
ServiceAccount string `json:"service_account"`
}
// ConnectorAuthResponseOAuth OAuth connector authentication response to start the authentication process
type ConnectorAuthResponseOAuth struct {
// RedirectURL URL to redirect the user to, to authenticate
RedirectURL string `json:"redirect_url"`
}
// ConnectorCreate Connector creation request
type ConnectorCreate struct {
// Name Name of the connector
Name string `json:"name"`
// Type Type of the connector
Type string `json:"type"`
}
// ConnectorCredentialsResponseAWS AWS connector credentials response
type ConnectorCredentialsResponseAWS struct {
AccessKeyId string `json:"access_key_id"`
CanExpire bool `json:"can_expire"`
Expires time.Time `json:"expires"`
SecretAccessKey string `json:"secret_access_key"`
SessionToken string `json:"session_token"`
Source string `json:"source"`
}
// ConnectorCredentialsResponseOAuth OAuth connector credentials response
type ConnectorCredentialsResponseOAuth struct {
AccessToken string `json:"access_token"`
Expires *time.Time `json:"expires,omitempty"`
}
// ConnectorID ID of the Connector
type ConnectorID = openapi_types.UUID
// ConnectorIdentityResponseAWS AWS connector identity response
type ConnectorIdentityResponseAWS struct {
// RoleARN Role ARN to assume
RoleARN string `json:"role_arn"`
}
// ConnectorStatus The status of the connector
type ConnectorStatus string
// ConnectorUpdate defines model for ConnectorUpdate.
type ConnectorUpdate struct {
// Name Name of the connector
Name *string `json:"name,omitempty"`
}
// ContentType The HTTP Content-Type of the image or asset
type ContentType string
// CreateAddonVersionRequest defines model for CreateAddonVersion_request.
type CreateAddonVersionRequest struct {
// AddonDeps addon dependencies in the format of ['team_name/type/addon_name@version']
AddonDeps *[]string `json:"addon_deps,omitempty"`
// Checksum SHA-256 checksum for the addon asset
Checksum string `json:"checksum"`
// Doc Main README in MD format
Doc string `json:"doc"`
// Message A message describing what's new or changed in this version.
// This message will be displayed to users in the addon's changelog.
// Supports limited markdown syntax.
Message string `json:"message"`
// PluginDeps plugin dependencies in the format of ['team_name/kind/plugin_name@version']
PluginDeps *[]string `json:"plugin_deps,omitempty"`
}
// CreatePluginVersionDocs201Response defines model for CreatePluginVersionDocs_201_response.
type CreatePluginVersionDocs201Response struct {
Names *[]PluginDocsPageName `json:"names,omitempty"`
}
// CreatePluginVersionDocsRequest defines model for CreatePluginVersionDocs_request.
type CreatePluginVersionDocsRequest struct {
Pages []PluginDocsPageCreate `json:"pages"`
}
// CreatePluginVersionTables201Response defines model for CreatePluginVersionTables_201_response.
type CreatePluginVersionTables201Response struct {
Names *[]PluginTableName `json:"names,omitempty"`
}
// CreatePluginVersionTablesRequest defines model for CreatePluginVersionTables_request.
type CreatePluginVersionTablesRequest struct {
Tables []PluginTableCreate `json:"tables"`
}
// CreatePluginVersionRequest defines model for CreatePluginVersion_request.
type CreatePluginVersionRequest struct {
// Checksums List of SHA-256 checksums for this plugin version, one for each supported target.
Checksums []string `json:"checksums"`
// Message A message describing what's new or changed in this version.
// This message will be displayed to users in the plugin's changelog.
// Supports limited markdown syntax.
Message string `json:"message"`
// PackageType The package type of the plugin assets
PackageType PluginPackageType `json:"package_type"`
// Protocols The CloudQuery protocols supported by this plugin version (only protocol 3 is supported by new plugins).
Protocols PluginProtocols `json:"protocols"`
// SpecJsonSchema The specification of the plugin. This is a JSON schema that describes the configuration of the plugin.
SpecJsonSchema *PluginSpecJSONSchema `json:"spec_json_schema,omitempty"`
// SupportedTargets The targets supported by this plugin version, formatted as <os>_<arch>
SupportedTargets []string `json:"supported_targets"`
}
// CreateSyncRunProgressRequest defines model for CreateSyncRunProgress_request.
type CreateSyncRunProgressRequest struct {
// Errors Number of errors encountered so far
Errors int64 `json:"errors"`
// Rows Number of rows synced so far
Rows int64 `json:"rows"`
// Status The status of the sync run
Status *SyncRunStatus `json:"status,omitempty"`
// Warnings Number of warnings encountered so far
Warnings int64 `json:"warnings"`
}
// CreateTeamAPIKeyRequest defines model for CreateTeamAPIKey_request.
type CreateTeamAPIKeyRequest struct {
ExpiresAt time.Time `json:"expires_at"`
// Name Name of the API key
Name APIKeyName `json:"name"`
}
// CreateTeamImages201Response defines model for CreateTeamImages_201_response.
type CreateTeamImages201Response struct {
Items []TeamImage `json:"items"`
Metadata ListMetadata `json:"metadata"`
}
// CreateTeamImagesRequest defines model for CreateTeamImages_request.
type CreateTeamImagesRequest struct {
Images []TeamImageCreate `json:"images"`
}
// CreateTeamRequest defines model for CreateTeam_request.
type CreateTeamRequest struct {
// DisplayName The team's display name
DisplayName interface{} `json:"display_name"`
// Name The unique name for the team.
Name TeamName `json:"name"`
AdditionalProperties map[string]interface{} `json:"-"`
}
// CreateUserToken201Response defines model for CreateUserToken_201_response.
type CreateUserToken201Response struct {
// CustomToken Token to exchange for refresh token
CustomToken string `json:"custom_token"`
}
// DeletePluginVersionDocsRequest defines model for DeletePluginVersionDocs_request.
type DeletePluginVersionDocsRequest struct {
Names []PluginDocsPageName `json:"names"`
}
// DeletePluginVersionTablesRequest defines model for DeletePluginVersionTables_request.
type DeletePluginVersionTablesRequest struct {
Names []PluginTableName `json:"names"`
}
// DeleteTeamInvitationRequest defines model for DeleteTeamInvitation_request.
type DeleteTeamInvitationRequest struct {
Email openapi_types.Email `json:"email"`
}
// DisplayName A human-readable display name
type DisplayName = string
// DockerError Error Returned from the Docker Authorization Handler to the Docker Registry
type DockerError struct {
Details string `json:"details"`
}
// Email defines model for Email.
type Email = openapi_types.Email
// EmailTeamInvitationRequest defines model for EmailTeamInvitation_request.
type EmailTeamInvitationRequest struct {
Email openapi_types.Email `json:"email"`
Role EmailTeamInvitationRequestRole `json:"role"`
}
// EmailTeamInvitationRequestRole defines model for EmailTeamInvitationRequest.Role.
type EmailTeamInvitationRequestRole string
// FieldError defines model for FieldError.
type FieldError struct {
Errors *[]string `json:"errors,omitempty"`
FieldErrors *map[string]string `json:"field_errors,omitempty"`
Message string `json:"message"`
Status int `json:"status"`
}
// FinalizePluginUIAssetUploadRequest defines model for FinalizePluginUIAssetUpload_request.
type FinalizePluginUIAssetUploadRequest struct {
// UIID ID representing the finished upload
UIID string `json:"ui_id"`
}
// GetConnectorAuthStatusAWS200Response defines model for GetConnectorAuthStatusAWS_200_response.
type GetConnectorAuthStatusAWS200Response struct {
// ExternalID External ID used for the role
ExternalID *string `json:"external_id,omitempty"`
// RoleARN ARN of role created by the user
RoleARN *string `json:"role_arn,omitempty"`
}
// GetConnectorAuthStatusGCP200Response defines model for GetConnectorAuthStatusGCP_200_response.
type GetConnectorAuthStatusGCP200Response struct {
// ServiceAccount CloudQuery GCP Service Account to grant access to
ServiceAccount *string `json:"service_account,omitempty"`
}
// GetCurrentUserMemberships200Response defines model for GetCurrentUserMemberships_200_response.
type GetCurrentUserMemberships200Response struct {
Items []MembershipWithTeam `json:"items"`
Metadata ListMetadata `json:"metadata"`
}
// GetManagedDatabases200Response defines model for GetManagedDatabases_200_response.