Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Generate CloudQuery Go API Client from spec.json #56

Merged
merged 1 commit into from
Oct 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 41 additions & 10 deletions models.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 28 additions & 6 deletions spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@
"delete": {
"description": "Delete plugin by team and plugin name",
"operationId": "DeletePluginByTeamAndPluginName",
"x-internal": true,
"parameters": [
{
"$ref": "#/components/parameters/team_name"
Expand Down Expand Up @@ -1402,6 +1403,7 @@
"delete": {
"description": "Delete addon by team and addon name",
"operationId": "DeleteAddonByTeamAndName",
"x-internal": true,
"parameters": [
{
"$ref": "#/components/parameters/team_name"
Expand Down Expand Up @@ -2098,6 +2100,7 @@
"delete": {
"description": "Delete plugins by team",
"operationId": "DeletePluginsByTeam",
"x-internal": true,
"parameters": [
{
"$ref": "#/components/parameters/team_name"
Expand Down Expand Up @@ -2210,6 +2213,7 @@
"delete": {
"description": "Delete addons by team",
"operationId": "DeleteAddonsByTeam",
"x-internal": true,
"parameters": [
{
"$ref": "#/components/parameters/team_name"
Expand Down Expand Up @@ -3420,6 +3424,15 @@
"other"
]
},
"PluginReleaseStage": {
"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.",
"type": "string",
"enum": [
"preview",
"ga"
],
"default": "preview"
},
"PluginTier": {
"description": "Supported tiers for plugins",
"type": "string",
Expand Down Expand Up @@ -3468,6 +3481,9 @@
"description": "True if the plugin is maintained by CloudQuery, false otherwise",
"type": "boolean"
},
"release_stage": {
"$ref": "#/components/schemas/PluginReleaseStage"
},
"repository": {
"type": "string",
"example": "https://github.com/cloudquery/cloudquery"
Expand Down Expand Up @@ -3593,15 +3609,18 @@
"type": "string",
"example": "https://cloudquery.io"
},
"repository": {
"type": "string",
"example": "https://github.com/cloudquery/cloudquery"
},
"public": {
"type": "boolean",
"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.",
"example": true
},
"repository": {
"type": "string",
"example": "https://github.com/cloudquery/cloudquery"
},
"release_stage": {
"$ref": "#/components/schemas/PluginReleaseStage"
},
"logo": {
"type": "string",
"description": "URL to the plugin's logo. This will be shown in the CloudQuery Hub. This must point to https://images.cloudquery.io/...",
Expand All @@ -3611,14 +3630,14 @@
"type": "string",
"pattern": "^\\d+(?:\\.\\d{1,10})?$",
"description": "The price per row in USD. This is used to calculate the price of a sync.",
"example": "0.0001",
"example": "0.00001",
"x-go-name": "USDPerRow"
},
"free_rows_per_month": {
"type": "integer",
"format": "int64",
"description": "The number of rows that can be synced for free each month.",
"example": 1000
"example": 10000
}
}
},
Expand Down Expand Up @@ -3686,6 +3705,9 @@
"type": "boolean",
"description": "If plugin is not public, it won't be visible to other teams in the CloudQuery Hub."
},
"release_stage": {
"$ref": "#/components/schemas/PluginReleaseStage"
},
"usd_per_row": {
"type": "string",
"pattern": "^\\d+(?:\\.\\d{1,10})?$",
Expand Down
Loading