Skip to content

Commit

Permalink
fix: Generate CloudQuery Go API Client from spec.json (#120)
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 committed Feb 1, 2024
1 parent c545ec6 commit 140f2fe
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 11 deletions.
18 changes: 12 additions & 6 deletions models.gen.go

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

37 changes: 32 additions & 5 deletions spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -7688,7 +7688,7 @@
"description": "Plugin path in CloudQuery registry",
"pattern": "^cloudquery/[^/]+"
},
"SyncEnv": {
"SyncEnvCreate": {
"type": "object",
"description": "Environment variable. Environment variables are assumed to be secret.",
"required": [
Expand Down Expand Up @@ -7755,11 +7755,24 @@
"description": "Environment variables for the plugin. All environment variables will be stored as secrets.",
"type": "array",
"items": {
"$ref": "#/components/schemas/SyncEnv"
"$ref": "#/components/schemas/SyncEnvCreate"
}
}
}
},
"SyncEnv": {
"type": "object",
"description": "Environment variable. Environment variables are assumed to be secret.",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "Name of the environment variable"
}
}
},
"SyncSource": {
"allOf": [
{
Expand Down Expand Up @@ -7790,6 +7803,13 @@
"format": "date-time",
"example": "2023-07-14T16:53:42Z",
"description": "Time when the source was last updated"
},
"env": {
"description": "Environment variables for the plugin.",
"type": "array",
"items": {
"$ref": "#/components/schemas/SyncEnv"
}
}
}
}
Expand Down Expand Up @@ -7832,7 +7852,7 @@
"description": "Environment variables for the plugin. All environment variables will be stored as secrets.",
"type": "array",
"items": {
"$ref": "#/components/schemas/SyncEnv"
"$ref": "#/components/schemas/SyncEnvCreate"
}
}
}
Expand Down Expand Up @@ -7890,7 +7910,7 @@
"description": "Environment variables for the plugin. All environment variables will be stored as secrets.",
"type": "array",
"items": {
"$ref": "#/components/schemas/SyncEnv"
"$ref": "#/components/schemas/SyncEnvCreate"
}
}
}
Expand Down Expand Up @@ -7925,6 +7945,13 @@
"format": "date-time",
"example": "2023-07-14T16:53:42Z",
"description": "Time when the source was last updated"
},
"env": {
"description": "Environment variables for the plugin.",
"type": "array",
"items": {
"$ref": "#/components/schemas/SyncEnv"
}
}
}
}
Expand Down Expand Up @@ -7972,7 +7999,7 @@
"description": "Environment variables for the plugin. All environment variables will be stored as secrets.",
"type": "array",
"items": {
"$ref": "#/components/schemas/SyncEnv"
"$ref": "#/components/schemas/SyncEnvCreate"
}
}
}
Expand Down

0 comments on commit 140f2fe

Please sign in to comment.