Skip to content

Commit

Permalink
fix: Generate CloudQuery Go API Client from spec.json (#115)
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 Jan 31, 2024
1 parent 7267cc4 commit d8528b0
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 19 deletions.
8 changes: 4 additions & 4 deletions client.gen.go

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

57 changes: 54 additions & 3 deletions models.gen.go

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

49 changes: 37 additions & 12 deletions spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,12 @@
{
"name": "plugins"
},
{
"name": "uploads"
},
{
"name": "images"
},
{
"name": "healthcheck"
},
{
"name": "limits"
},
{
"name": "usage"
},
{
"name": "addons"
},
Expand Down Expand Up @@ -724,7 +715,7 @@
"properties": {
"items": {
"items": {
"$ref": "#/components/schemas/PluginVersion"
"$ref": "#/components/schemas/PluginVersionList"
},
"type": "array"
},
Expand Down Expand Up @@ -863,6 +854,9 @@
},
"package_type": {
"$ref": "#/components/schemas/PluginPackageType"
},
"spec_json_schema": {
"$ref": "#/components/schemas/PluginSpecJSONSchema"
}
}
}
Expand Down Expand Up @@ -6097,7 +6091,7 @@
"docker"
]
},
"PluginVersion": {
"PluginVersionBase": {
"additionalProperties": false,
"description": "CloudQuery Plugin Version",
"required": [
Expand Down Expand Up @@ -6169,6 +6163,32 @@
"title": "CloudQuery Plugin Version",
"type": "object"
},
"PluginVersionList": {
"allOf": [
{
"$ref": "#/components/schemas/PluginVersionBase"
}
]
},
"PluginSpecJSONSchema": {
"description": "The specification of the plugin. This is a JSON schema that describes the configuration of the plugin.",
"type": "string"
},
"PluginVersion": {
"allOf": [
{
"$ref": "#/components/schemas/PluginVersionBase"
},
{
"type": "object",
"properties": {
"spec_json_schema": {
"$ref": "#/components/schemas/PluginSpecJSONSchema"
}
}
}
]
},
"PluginVersionDetails": {
"allOf": [
{
Expand Down Expand Up @@ -6223,6 +6243,9 @@
"package_type": {
"type": "string",
"description": "The package type of the plugin binaries"
},
"spec_json_schema": {
"$ref": "#/components/schemas/PluginSpecJSONSchema"
}
}
},
Expand Down Expand Up @@ -7996,11 +8019,13 @@
"cpu": {
"type": "string",
"description": "CPU quota for the sync",
"example": "1",
"x-go-name": "CPU"
},
"memory": {
"type": "string",
"description": "Memory quota for the sync"
"description": "Memory quota for the sync",
"example": "2Gi"
},
"created_at": {
"type": "string",
Expand Down

0 comments on commit d8528b0

Please sign in to comment.