Skip to content

Commit

Permalink
fix: Generate CloudQuery Go API Client from spec.json (#61)
Browse files Browse the repository at this point in the history
This PR was created by a scheduled workflow to generate the CloudQuery Go API Client from `spec.json`
  • Loading branch information
cq-bot committed Nov 10, 2023
1 parent 1a97169 commit 6b00213
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 8 deletions.
37 changes: 30 additions & 7 deletions client.gen.go

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

14 changes: 14 additions & 0 deletions models.gen.go

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

41 changes: 40 additions & 1 deletion spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -1721,9 +1721,17 @@
},
"/addons/{team_name}/{addon_type}/{addon_name}/versions/{version_name}/assets": {
"get": {
"description": "Download a asset for a given version",
"description": "Download an asset for a given version",
"operationId": "DownloadAddonAsset",
"parameters": [
{
"in": "header",
"name": "Accept",
"required": false,
"schema": {
"type": "string"
}
},
{
"$ref": "#/components/parameters/team_name"
},
Expand All @@ -1738,6 +1746,16 @@
}
],
"responses": {
"200": {
"description": "Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AddonAsset"
}
}
}
},
"302": {
"description": "Response",
"headers": {
Expand Down Expand Up @@ -4483,6 +4501,27 @@
}
}
},
"AddonAsset": {
"additionalProperties": false,
"description": "CloudQuery Addon Asset",
"required": [
"checksum",
"location"
],
"properties": {
"checksum": {
"type": "string",
"description": "The checksum of the addon asset"
},
"location": {
"type": "string",
"format": "uri",
"description": "The location to download the addon asset from"
}
},
"title": "CloudQuery Addon Asset",
"type": "object"
},
"Team": {
"additionalProperties": false,
"description": "CloudQuery Team",
Expand Down

0 comments on commit 6b00213

Please sign in to comment.