Skip to content

Commit d8528b0

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

File tree

3 files changed

+95
-19
lines changed

3 files changed

+95
-19
lines changed

client.gen.go

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

models.gen.go

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

spec.json

Lines changed: 37 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,12 @@
3535
{
3636
"name": "plugins"
3737
},
38-
{
39-
"name": "uploads"
40-
},
4138
{
4239
"name": "images"
4340
},
4441
{
4542
"name": "healthcheck"
4643
},
47-
{
48-
"name": "limits"
49-
},
50-
{
51-
"name": "usage"
52-
},
5344
{
5445
"name": "addons"
5546
},
@@ -724,7 +715,7 @@
724715
"properties": {
725716
"items": {
726717
"items": {
727-
"$ref": "#/components/schemas/PluginVersion"
718+
"$ref": "#/components/schemas/PluginVersionList"
728719
},
729720
"type": "array"
730721
},
@@ -863,6 +854,9 @@
863854
},
864855
"package_type": {
865856
"$ref": "#/components/schemas/PluginPackageType"
857+
},
858+
"spec_json_schema": {
859+
"$ref": "#/components/schemas/PluginSpecJSONSchema"
866860
}
867861
}
868862
}
@@ -6097,7 +6091,7 @@
60976091
"docker"
60986092
]
60996093
},
6100-
"PluginVersion": {
6094+
"PluginVersionBase": {
61016095
"additionalProperties": false,
61026096
"description": "CloudQuery Plugin Version",
61036097
"required": [
@@ -6169,6 +6163,32 @@
61696163
"title": "CloudQuery Plugin Version",
61706164
"type": "object"
61716165
},
6166+
"PluginVersionList": {
6167+
"allOf": [
6168+
{
6169+
"$ref": "#/components/schemas/PluginVersionBase"
6170+
}
6171+
]
6172+
},
6173+
"PluginSpecJSONSchema": {
6174+
"description": "The specification of the plugin. This is a JSON schema that describes the configuration of the plugin.",
6175+
"type": "string"
6176+
},
6177+
"PluginVersion": {
6178+
"allOf": [
6179+
{
6180+
"$ref": "#/components/schemas/PluginVersionBase"
6181+
},
6182+
{
6183+
"type": "object",
6184+
"properties": {
6185+
"spec_json_schema": {
6186+
"$ref": "#/components/schemas/PluginSpecJSONSchema"
6187+
}
6188+
}
6189+
}
6190+
]
6191+
},
61726192
"PluginVersionDetails": {
61736193
"allOf": [
61746194
{
@@ -6223,6 +6243,9 @@
62236243
"package_type": {
62246244
"type": "string",
62256245
"description": "The package type of the plugin binaries"
6246+
},
6247+
"spec_json_schema": {
6248+
"$ref": "#/components/schemas/PluginSpecJSONSchema"
62266249
}
62276250
}
62286251
},
@@ -7996,11 +8019,13 @@
79968019
"cpu": {
79978020
"type": "string",
79988021
"description": "CPU quota for the sync",
8022+
"example": "1",
79998023
"x-go-name": "CPU"
80008024
},
80018025
"memory": {
80028026
"type": "string",
8003-
"description": "Memory quota for the sync"
8027+
"description": "Memory quota for the sync",
8028+
"example": "2Gi"
80048029
},
80058030
"created_at": {
80068031
"type": "string",

0 commit comments

Comments
 (0)