Skip to content

Commit 0f10e57

Browse files
authored
fix: Generate CloudQuery Go API Client from spec.json (#56)
This PR was created by a scheduled workflow to generate the CloudQuery Go API Client from `spec.json`
1 parent 1ed6fde commit 0f10e57

File tree

2 files changed

+69
-16
lines changed

2 files changed

+69
-16
lines changed

models.gen.go

Lines changed: 41 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec.json

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@
307307
"delete": {
308308
"description": "Delete plugin by team and plugin name",
309309
"operationId": "DeletePluginByTeamAndPluginName",
310+
"x-internal": true,
310311
"parameters": [
311312
{
312313
"$ref": "#/components/parameters/team_name"
@@ -1402,6 +1403,7 @@
14021403
"delete": {
14031404
"description": "Delete addon by team and addon name",
14041405
"operationId": "DeleteAddonByTeamAndName",
1406+
"x-internal": true,
14051407
"parameters": [
14061408
{
14071409
"$ref": "#/components/parameters/team_name"
@@ -2098,6 +2100,7 @@
20982100
"delete": {
20992101
"description": "Delete plugins by team",
21002102
"operationId": "DeletePluginsByTeam",
2103+
"x-internal": true,
21012104
"parameters": [
21022105
{
21032106
"$ref": "#/components/parameters/team_name"
@@ -2210,6 +2213,7 @@
22102213
"delete": {
22112214
"description": "Delete addons by team",
22122215
"operationId": "DeleteAddonsByTeam",
2216+
"x-internal": true,
22132217
"parameters": [
22142218
{
22152219
"$ref": "#/components/parameters/team_name"
@@ -3420,6 +3424,15 @@
34203424
"other"
34213425
]
34223426
},
3427+
"PluginReleaseStage": {
3428+
"description": "Official plugins go through two release stages: Preview, and GA.\nBoth Preview and GA plugins follow semantic versioning. The main differences between the two stages are:\nPreview plugins are still experimental and may have frequent breaking changes. Preview plugins might get deprecated due to lack of usage. Long Term Support with community Discord and bug fixes is only guaranteed for GA plugins. Premium plugins are often discounted or free during the Preview stage.",
3429+
"type": "string",
3430+
"enum": [
3431+
"preview",
3432+
"ga"
3433+
],
3434+
"default": "preview"
3435+
},
34233436
"PluginTier": {
34243437
"description": "Supported tiers for plugins",
34253438
"type": "string",
@@ -3468,6 +3481,9 @@
34683481
"description": "True if the plugin is maintained by CloudQuery, false otherwise",
34693482
"type": "boolean"
34703483
},
3484+
"release_stage": {
3485+
"$ref": "#/components/schemas/PluginReleaseStage"
3486+
},
34713487
"repository": {
34723488
"type": "string",
34733489
"example": "https://github.com/cloudquery/cloudquery"
@@ -3593,15 +3609,18 @@
35933609
"type": "string",
35943610
"example": "https://cloudquery.io"
35953611
},
3596-
"repository": {
3597-
"type": "string",
3598-
"example": "https://github.com/cloudquery/cloudquery"
3599-
},
36003612
"public": {
36013613
"type": "boolean",
36023614
"description": "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 team.",
36033615
"example": true
36043616
},
3617+
"repository": {
3618+
"type": "string",
3619+
"example": "https://github.com/cloudquery/cloudquery"
3620+
},
3621+
"release_stage": {
3622+
"$ref": "#/components/schemas/PluginReleaseStage"
3623+
},
36053624
"logo": {
36063625
"type": "string",
36073626
"description": "URL to the plugin's logo. This will be shown in the CloudQuery Hub. This must point to https://images.cloudquery.io/...",
@@ -3611,14 +3630,14 @@
36113630
"type": "string",
36123631
"pattern": "^\\d+(?:\\.\\d{1,10})?$",
36133632
"description": "The price per row in USD. This is used to calculate the price of a sync.",
3614-
"example": "0.0001",
3633+
"example": "0.00001",
36153634
"x-go-name": "USDPerRow"
36163635
},
36173636
"free_rows_per_month": {
36183637
"type": "integer",
36193638
"format": "int64",
36203639
"description": "The number of rows that can be synced for free each month.",
3621-
"example": 1000
3640+
"example": 10000
36223641
}
36233642
}
36243643
},
@@ -3686,6 +3705,9 @@
36863705
"type": "boolean",
36873706
"description": "If plugin is not public, it won't be visible to other teams in the CloudQuery Hub."
36883707
},
3708+
"release_stage": {
3709+
"$ref": "#/components/schemas/PluginReleaseStage"
3710+
},
36893711
"usd_per_row": {
36903712
"type": "string",
36913713
"pattern": "^\\d+(?:\\.\\d{1,10})?$",

0 commit comments

Comments
 (0)