Skip to content

Commit 5cb006d

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

File tree

2 files changed

+56
-48
lines changed

2 files changed

+56
-48
lines changed

models.gen.go

Lines changed: 5 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: 51 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -3011,49 +3011,6 @@
30113011
"title": "CloudQuery Plugin Table",
30123012
"type": "object"
30133013
},
3014-
"PluginTableCreate": {
3015-
"additionalProperties": false,
3016-
"description": "CloudQuery Plugin Table",
3017-
"required": [
3018-
"name"
3019-
],
3020-
"properties": {
3021-
"description": {
3022-
"description": "Description of the table",
3023-
"type": "string",
3024-
"example": "AWS S3 Buckets"
3025-
},
3026-
"is_incremental": {
3027-
"description": "Whether the table is incremental",
3028-
"type": "boolean"
3029-
},
3030-
"name": {
3031-
"$ref": "#/components/schemas/PluginTableName"
3032-
},
3033-
"parent": {
3034-
"description": "Name of the parent table, if any",
3035-
"type": "string",
3036-
"example": "nil"
3037-
},
3038-
"relations": {
3039-
"description": "Names of the tables that depend on this table",
3040-
"items": {
3041-
"type": "string"
3042-
},
3043-
"type": "array",
3044-
"example": [
3045-
"aws_s3_bucket_cors_rules"
3046-
]
3047-
},
3048-
"title": {
3049-
"description": "Title of the table",
3050-
"type": "string",
3051-
"example": "AWS S3 Buckets"
3052-
}
3053-
},
3054-
"title": "CloudQuery Plugin Table",
3055-
"type": "object"
3056-
},
30573014
"PluginTableColumn": {
30583015
"additionalProperties": false,
30593016
"description": "CloudQuery Plugin Column",
@@ -3064,7 +3021,7 @@
30643021
"not_null",
30653022
"primary_key",
30663023
"type",
3067-
"is_unique"
3024+
"unique"
30683025
],
30693026
"properties": {
30703027
"description": {
@@ -3091,14 +3048,63 @@
30913048
"description": "Arrow Type of the column",
30923049
"type": "string"
30933050
},
3094-
"is_unique": {
3051+
"unique": {
30953052
"description": "Whether the column has a unique constraint",
30963053
"type": "boolean"
30973054
}
30983055
},
30993056
"title": "CloudQuery Plugin Table Column",
31003057
"type": "object"
31013058
},
3059+
"PluginTableCreate": {
3060+
"additionalProperties": false,
3061+
"description": "CloudQuery Plugin Table",
3062+
"required": [
3063+
"name"
3064+
],
3065+
"properties": {
3066+
"description": {
3067+
"description": "Description of the table",
3068+
"type": "string",
3069+
"example": "AWS S3 Buckets"
3070+
},
3071+
"is_incremental": {
3072+
"description": "Whether the table is incremental",
3073+
"type": "boolean"
3074+
},
3075+
"name": {
3076+
"$ref": "#/components/schemas/PluginTableName"
3077+
},
3078+
"parent": {
3079+
"description": "Name of the parent table, if any",
3080+
"type": "string",
3081+
"example": "nil"
3082+
},
3083+
"relations": {
3084+
"description": "Names of the tables that depend on this table",
3085+
"items": {
3086+
"type": "string"
3087+
},
3088+
"type": "array",
3089+
"example": [
3090+
"aws_s3_bucket_cors_rules"
3091+
]
3092+
},
3093+
"title": {
3094+
"description": "Title of the table",
3095+
"type": "string",
3096+
"example": "AWS S3 Buckets"
3097+
},
3098+
"columns": {
3099+
"type": "array",
3100+
"items": {
3101+
"$ref": "#/components/schemas/PluginTableColumn"
3102+
}
3103+
}
3104+
},
3105+
"title": "CloudQuery Plugin Table",
3106+
"type": "object"
3107+
},
31023108
"PluginTableDetails": {
31033109
"additionalProperties": false,
31043110
"required": [

0 commit comments

Comments
 (0)