Skip to content

Commit 854b0df

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

File tree

3 files changed

+308
-2
lines changed

3 files changed

+308
-2
lines changed

client.gen.go

Lines changed: 219 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: 8 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: 81 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@
634634
},
635635
"/plugins/{team_name}/{plugin_kind}/{plugin_name}/versions/{version_name}/docs": {
636636
"get": {
637-
"description": "List all documentation pages for a given plugin version.",
637+
"description": "List all documentation pages for a given plugin version",
638638
"operationId": "ListPluginVersionDocs",
639639
"parameters": [
640640
{
@@ -697,7 +697,7 @@
697697
]
698698
},
699699
"put": {
700-
"description": "Create or update one or more plugin version docs pages.",
700+
"description": "Create or update one or more plugin version docs pages",
701701
"operationId": "CreatePluginVersionDocs",
702702
"parameters": [
703703
{
@@ -775,6 +775,85 @@
775775
"plugins"
776776
]
777777
},
778+
"post": {
779+
"description": "Replace (override) multiple plugin version docs pages",
780+
"operationId": "ReplacePluginVersionDocs",
781+
"parameters": [
782+
{
783+
"$ref": "#/components/parameters/team_name"
784+
},
785+
{
786+
"$ref": "#/components/parameters/plugin_kind"
787+
},
788+
{
789+
"$ref": "#/components/parameters/plugin_name"
790+
},
791+
{
792+
"$ref": "#/components/parameters/version_name"
793+
}
794+
],
795+
"requestBody": {
796+
"content": {
797+
"application/json": {
798+
"schema": {
799+
"type": "object",
800+
"required": [
801+
"pages"
802+
],
803+
"properties": {
804+
"pages": {
805+
"type": "array",
806+
"items": {
807+
"$ref": "#/components/schemas/PluginDocsPageCreate"
808+
}
809+
}
810+
}
811+
}
812+
}
813+
}
814+
},
815+
"responses": {
816+
"201": {
817+
"description": "Successfully created or updated",
818+
"content": {
819+
"application/json": {
820+
"schema": {
821+
"type": "object",
822+
"properties": {
823+
"names": {
824+
"type": "array",
825+
"items": {
826+
"$ref": "#/components/schemas/PluginDocsPageName"
827+
}
828+
}
829+
}
830+
}
831+
}
832+
}
833+
},
834+
"400": {
835+
"$ref": "#/components/responses/BadRequest"
836+
},
837+
"401": {
838+
"$ref": "#/components/responses/RequiresAuthentication"
839+
},
840+
"403": {
841+
"$ref": "#/components/responses/Forbidden"
842+
},
843+
"404": {
844+
"$ref": "#/components/responses/NotFound"
845+
},
846+
"422": {
847+
"$ref": "#/components/responses/UnprocessableEntity"
848+
},
849+
"500": {
850+
"$ref": "#/components/responses/InternalError"
851+
}
852+
},
853+
"tags": [
854+
"plugins"
855+
]
856+
},
778857
"delete": {
779858
"description": "Delete one or more plugin version docs pages.",
780859
"operationId": "DeletePluginVersionDocs",

0 commit comments

Comments
 (0)