From 84943dc7b524d6505b4878c96a90734126301c99 Mon Sep 17 00:00:00 2001 From: cq-bot Date: Thu, 22 Aug 2024 08:51:29 +0000 Subject: [PATCH] fix: Generate CloudQuery Go API Client from `spec.json` --- models.gen.go | 6 ++++++ spec.json | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/models.gen.go b/models.gen.go index 709687a..6de30a2 100644 --- a/models.gen.go +++ b/models.gen.go @@ -1905,6 +1905,9 @@ type PromoteSyncDestinationTestConnection struct { // Name Descriptive, unique name for the destination. The name can only contain ASCII letters, digits, - and _. Name string `json:"name"` + // OverwriteDestination Set this to allow overwriting an existing sync destination. Defaults to true to preserve compatibility. + OverwriteDestination *bool `json:"overwrite_destination,omitempty"` + // WriteMode Write mode for the destination WriteMode *SyncDestinationWriteMode `json:"write_mode,omitempty"` } @@ -1917,6 +1920,9 @@ type PromoteSyncSourceTestConnection struct { // Name Descriptive, unique name for the source. The name can only contain ASCII letters, digits, - and _. Name string `json:"name"` + // OverwriteSource Set this to allow overwriting an existing sync source. Defaults to true to preserve compatibility. + OverwriteSource *bool `json:"overwrite_source,omitempty"` + // SkipTables Tables matched by `tables` that should be skipped. Wildcards are supported. SkipTables *[]string `json:"skip_tables,omitempty"` diff --git a/spec.json b/spec.json index 0608af3..f861376 100644 --- a/spec.json +++ b/spec.json @@ -8685,6 +8685,10 @@ "type" : "string" }, "type" : "array" + }, + "overwrite_source" : { + "type" : "boolean", + "Description" : "Set this to allow overwriting an existing sync source. Defaults to true to preserve compatibility." } }, "required" : [ "name", "tables" ], @@ -8907,6 +8911,10 @@ }, "migrate_mode" : { "$ref" : "#/components/schemas/SyncDestinationMigrateMode" + }, + "overwrite_destination" : { + "type" : "boolean", + "Description" : "Set this to allow overwriting an existing sync destination. Defaults to true to preserve compatibility." } }, "required" : [ "name" ],