Skip to content

Commit 37ddfcc

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

File tree

3 files changed

+79
-13
lines changed

3 files changed

+79
-13
lines changed

client.gen.go

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

models.gen.go

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

spec.json

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4642,6 +4642,9 @@
46424642
"401": {
46434643
"$ref": "#/components/responses/RequiresAuthentication"
46444644
},
4645+
"404": {
4646+
"$ref": "#/components/responses/NotFound"
4647+
},
46454648
"422": {
46464649
"$ref": "#/components/responses/UnprocessableEntity"
46474650
},
@@ -4865,6 +4868,9 @@
48654868
"401": {
48664869
"$ref": "#/components/responses/RequiresAuthentication"
48674870
},
4871+
"404": {
4872+
"$ref": "#/components/responses/NotFound"
4873+
},
48684874
"422": {
48694875
"$ref": "#/components/responses/UnprocessableEntity"
48704876
},
@@ -5051,7 +5057,7 @@
50515057
}
50525058
},
50535059
"post": {
5054-
"description": "Create new Sync definition. Sync runs can be scheduled automatically and manually after sync is created.",
5060+
"description": "Create new Sync definition. Sync runs can be scheduled automatically, or triggered manually after sync is created.",
50555061
"operationId": "CreateSync",
50565062
"tags": [
50575063
"syncs"
@@ -5189,7 +5195,7 @@
51895195
}
51905196
},
51915197
"delete": {
5192-
"description": "Delete Sync. This will delete Sync configuration and all associated sync runs",
5198+
"description": "Delete Sync. This will delete Sync configuration and all associated sync runs, but will not delete the associated source and destination(s). These will need to be deleted separately.",
51935199
"operationId": "DeleteSync",
51945200
"tags": [
51955201
"syncs"
@@ -5759,8 +5765,7 @@
57595765
"coming-soon",
57605766
"preview",
57615767
"ga"
5762-
],
5763-
"default": "coming-soon"
5768+
]
57645769
},
57655770
"PluginTier": {
57665771
"description": "Supported tiers for plugins",
@@ -5889,6 +5894,16 @@
58895894
}
58905895
]
58915896
},
5897+
"PluginReleaseStageCreate": {
5898+
"description": "Official plugins can go through three release stages: Coming Soon, Preview, and GA.\nThe Coming Soon stage is for plugins that are not yet ready for Preview, but users can subscribe to be notified when they are ready.\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.",
5899+
"type": "string",
5900+
"enum": [
5901+
"coming-soon",
5902+
"preview",
5903+
"ga"
5904+
],
5905+
"default": "coming-soon"
5906+
},
58925907
"PluginCreate": {
58935908
"type": "object",
58945909
"required": [
@@ -5946,7 +5961,7 @@
59465961
"example": "https://github.com/cloudquery/cloudquery"
59475962
},
59485963
"release_stage": {
5949-
"$ref": "#/components/schemas/PluginReleaseStage"
5964+
"$ref": "#/components/schemas/PluginReleaseStageCreate"
59505965
},
59515966
"logo": {
59525967
"type": "string",
@@ -5968,6 +5983,15 @@
59685983
}
59695984
}
59705985
},
5986+
"PluginReleaseStageUpdate": {
5987+
"description": "Official plugins can go through three release stages: Coming Soon, Preview, and GA.\nThe Coming Soon stage is for plugins that are not yet ready for Preview, but users can subscribe to be notified when they are ready.\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.",
5988+
"type": "string",
5989+
"enum": [
5990+
"coming-soon",
5991+
"preview",
5992+
"ga"
5993+
]
5994+
},
59715995
"PluginUpdate": {
59725996
"type": "object",
59735997
"properties": {
@@ -6009,7 +6033,7 @@
60096033
"description": "If plugin is not public, it won't be visible to other teams in the CloudQuery Hub."
60106034
},
60116035
"release_stage": {
6012-
"$ref": "#/components/schemas/PluginReleaseStage"
6036+
"$ref": "#/components/schemas/PluginReleaseStageUpdate"
60136037
},
60146038
"usd_per_row": {
60156039
"type": "string",

0 commit comments

Comments
 (0)