Skip to content

Commit 107e98f

Browse files
authored
fix: Generate CloudQuery Go API Client from spec.json (#134)
This PR was created by a scheduled workflow to generate the CloudQuery Go API Client from `spec.json`
1 parent 9e72ad2 commit 107e98f

File tree

2 files changed

+40
-85
lines changed

2 files changed

+40
-85
lines changed

models.gen.go

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

spec.json

Lines changed: 25 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -7924,6 +7924,25 @@
79247924
}
79257925
}
79267926
},
7927+
"SyncDestinationWriteMode": {
7928+
"type": "string",
7929+
"description": "Write mode for the destination",
7930+
"enum": [
7931+
"append",
7932+
"overwrite",
7933+
"overwrite-delete-stale"
7934+
],
7935+
"default": "overwrite-delete-stale"
7936+
},
7937+
"SyncDestinationMigrateMode": {
7938+
"type": "string",
7939+
"description": "Migrate mode for the destination",
7940+
"enum": [
7941+
"safe",
7942+
"forced"
7943+
],
7944+
"default": "safe"
7945+
},
79277946
"SyncDestinationCreate": {
79287947
"title": "Sync Destination definition for creating a new destination",
79297948
"description": "Sync Destination Definition",
@@ -7950,23 +7969,10 @@
79507969
"example": "v1.2.3"
79517970
},
79527971
"write_mode": {
7953-
"type": "string",
7954-
"description": "Write mode for the destination",
7955-
"enum": [
7956-
"append",
7957-
"overwrite",
7958-
"overwrite-delete-stale"
7959-
],
7960-
"default": "overwrite-delete-stale"
7972+
"$ref": "#/components/schemas/SyncDestinationWriteMode"
79617973
},
79627974
"migrate_mode": {
7963-
"type": "string",
7964-
"description": "Migrate mode for the destination",
7965-
"enum": [
7966-
"safe",
7967-
"forced"
7968-
],
7969-
"default": "safe"
7975+
"$ref": "#/components/schemas/SyncDestinationMigrateMode"
79707976
},
79717977
"spec": {
79727978
"type": "object",
@@ -8039,23 +8045,10 @@
80398045
"example": "v1.2.3"
80408046
},
80418047
"write_mode": {
8042-
"type": "string",
8043-
"description": "Write mode for the destination",
8044-
"enum": [
8045-
"append",
8046-
"overwrite",
8047-
"overwrite-delete-stale"
8048-
],
8049-
"default": "overwrite-delete-stale"
8048+
"$ref": "#/components/schemas/SyncDestinationWriteMode"
80508049
},
80518050
"migrate_mode": {
8052-
"type": "string",
8053-
"description": "Migrate mode for the destination",
8054-
"enum": [
8055-
"safe",
8056-
"forced"
8057-
],
8058-
"default": "safe"
8051+
"$ref": "#/components/schemas/SyncDestinationMigrateMode"
80598052
},
80608053
"spec": {
80618054
"type": "object",
@@ -8277,13 +8270,13 @@
82778270
"example": "2017-07-14T16:53:42Z",
82788271
"format": "date-time",
82798272
"type": "string",
8280-
"description": "Whether the sync is disabled"
8273+
"description": "Time the sync run was created"
82818274
},
82828275
"completed_at": {
82838276
"example": "2017-07-14T16:53:42Z",
82848277
"format": "date-time",
82858278
"type": "string",
8286-
"description": "Cron schedule for the sync"
8279+
"description": "Time the sync run was completed"
82878280
},
82888281
"total_rows": {
82898282
"type": "integer",

0 commit comments

Comments
 (0)