Skip to content

Commit 6b00213

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

File tree

3 files changed

+84
-8
lines changed

3 files changed

+84
-8
lines changed

client.gen.go

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

models.gen.go

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

spec.json

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1721,9 +1721,17 @@
17211721
},
17221722
"/addons/{team_name}/{addon_type}/{addon_name}/versions/{version_name}/assets": {
17231723
"get": {
1724-
"description": "Download a asset for a given version",
1724+
"description": "Download an asset for a given version",
17251725
"operationId": "DownloadAddonAsset",
17261726
"parameters": [
1727+
{
1728+
"in": "header",
1729+
"name": "Accept",
1730+
"required": false,
1731+
"schema": {
1732+
"type": "string"
1733+
}
1734+
},
17271735
{
17281736
"$ref": "#/components/parameters/team_name"
17291737
},
@@ -1738,6 +1746,16 @@
17381746
}
17391747
],
17401748
"responses": {
1749+
"200": {
1750+
"description": "Response",
1751+
"content": {
1752+
"application/json": {
1753+
"schema": {
1754+
"$ref": "#/components/schemas/AddonAsset"
1755+
}
1756+
}
1757+
}
1758+
},
17411759
"302": {
17421760
"description": "Response",
17431761
"headers": {
@@ -4483,6 +4501,27 @@
44834501
}
44844502
}
44854503
},
4504+
"AddonAsset": {
4505+
"additionalProperties": false,
4506+
"description": "CloudQuery Addon Asset",
4507+
"required": [
4508+
"checksum",
4509+
"location"
4510+
],
4511+
"properties": {
4512+
"checksum": {
4513+
"type": "string",
4514+
"description": "The checksum of the addon asset"
4515+
},
4516+
"location": {
4517+
"type": "string",
4518+
"format": "uri",
4519+
"description": "The location to download the addon asset from"
4520+
}
4521+
},
4522+
"title": "CloudQuery Addon Asset",
4523+
"type": "object"
4524+
},
44864525
"Team": {
44874526
"additionalProperties": false,
44884527
"description": "CloudQuery Team",

0 commit comments

Comments
 (0)