Skip to content

Commit 140f2fe

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

File tree

2 files changed

+44
-11
lines changed

2 files changed

+44
-11
lines changed

models.gen.go

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

spec.json

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7688,7 +7688,7 @@
76887688
"description": "Plugin path in CloudQuery registry",
76897689
"pattern": "^cloudquery/[^/]+"
76907690
},
7691-
"SyncEnv": {
7691+
"SyncEnvCreate": {
76927692
"type": "object",
76937693
"description": "Environment variable. Environment variables are assumed to be secret.",
76947694
"required": [
@@ -7755,11 +7755,24 @@
77557755
"description": "Environment variables for the plugin. All environment variables will be stored as secrets.",
77567756
"type": "array",
77577757
"items": {
7758-
"$ref": "#/components/schemas/SyncEnv"
7758+
"$ref": "#/components/schemas/SyncEnvCreate"
77597759
}
77607760
}
77617761
}
77627762
},
7763+
"SyncEnv": {
7764+
"type": "object",
7765+
"description": "Environment variable. Environment variables are assumed to be secret.",
7766+
"required": [
7767+
"name"
7768+
],
7769+
"properties": {
7770+
"name": {
7771+
"type": "string",
7772+
"description": "Name of the environment variable"
7773+
}
7774+
}
7775+
},
77637776
"SyncSource": {
77647777
"allOf": [
77657778
{
@@ -7790,6 +7803,13 @@
77907803
"format": "date-time",
77917804
"example": "2023-07-14T16:53:42Z",
77927805
"description": "Time when the source was last updated"
7806+
},
7807+
"env": {
7808+
"description": "Environment variables for the plugin.",
7809+
"type": "array",
7810+
"items": {
7811+
"$ref": "#/components/schemas/SyncEnv"
7812+
}
77937813
}
77947814
}
77957815
}
@@ -7832,7 +7852,7 @@
78327852
"description": "Environment variables for the plugin. All environment variables will be stored as secrets.",
78337853
"type": "array",
78347854
"items": {
7835-
"$ref": "#/components/schemas/SyncEnv"
7855+
"$ref": "#/components/schemas/SyncEnvCreate"
78367856
}
78377857
}
78387858
}
@@ -7890,7 +7910,7 @@
78907910
"description": "Environment variables for the plugin. All environment variables will be stored as secrets.",
78917911
"type": "array",
78927912
"items": {
7893-
"$ref": "#/components/schemas/SyncEnv"
7913+
"$ref": "#/components/schemas/SyncEnvCreate"
78947914
}
78957915
}
78967916
}
@@ -7925,6 +7945,13 @@
79257945
"format": "date-time",
79267946
"example": "2023-07-14T16:53:42Z",
79277947
"description": "Time when the source was last updated"
7948+
},
7949+
"env": {
7950+
"description": "Environment variables for the plugin.",
7951+
"type": "array",
7952+
"items": {
7953+
"$ref": "#/components/schemas/SyncEnv"
7954+
}
79287955
}
79297956
}
79307957
}
@@ -7972,7 +7999,7 @@
79727999
"description": "Environment variables for the plugin. All environment variables will be stored as secrets.",
79738000
"type": "array",
79748001
"items": {
7975-
"$ref": "#/components/schemas/SyncEnv"
8002+
"$ref": "#/components/schemas/SyncEnvCreate"
79768003
}
79778004
}
79788005
}

0 commit comments

Comments
 (0)