Skip to content

Commit

Permalink
fix: Generate CloudQuery Go API Client from spec.json (#87)
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 authored Dec 12, 2023
1 parent a859c21 commit 854b0df
Show file tree
Hide file tree
Showing 3 changed files with 308 additions and 2 deletions.
219 changes: 219 additions & 0 deletions client.gen.go

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

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

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

83 changes: 81 additions & 2 deletions spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@
},
"/plugins/{team_name}/{plugin_kind}/{plugin_name}/versions/{version_name}/docs": {
"get": {
"description": "List all documentation pages for a given plugin version.",
"description": "List all documentation pages for a given plugin version",
"operationId": "ListPluginVersionDocs",
"parameters": [
{
Expand Down Expand Up @@ -697,7 +697,7 @@
]
},
"put": {
"description": "Create or update one or more plugin version docs pages.",
"description": "Create or update one or more plugin version docs pages",
"operationId": "CreatePluginVersionDocs",
"parameters": [
{
Expand Down Expand Up @@ -775,6 +775,85 @@
"plugins"
]
},
"post": {
"description": "Replace (override) multiple plugin version docs pages",
"operationId": "ReplacePluginVersionDocs",
"parameters": [
{
"$ref": "#/components/parameters/team_name"
},
{
"$ref": "#/components/parameters/plugin_kind"
},
{
"$ref": "#/components/parameters/plugin_name"
},
{
"$ref": "#/components/parameters/version_name"
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"pages"
],
"properties": {
"pages": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PluginDocsPageCreate"
}
}
}
}
}
}
},
"responses": {
"201": {
"description": "Successfully created or updated",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"names": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PluginDocsPageName"
}
}
}
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/RequiresAuthentication"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"422": {
"$ref": "#/components/responses/UnprocessableEntity"
},
"500": {
"$ref": "#/components/responses/InternalError"
}
},
"tags": [
"plugins"
]
},
"delete": {
"description": "Delete one or more plugin version docs pages.",
"operationId": "DeletePluginVersionDocs",
Expand Down

0 comments on commit 854b0df

Please sign in to comment.