diff --git a/models.gen.go b/models.gen.go index 100b625..eec83ce 100644 --- a/models.gen.go +++ b/models.gen.go @@ -164,6 +164,12 @@ const ( SyncDestinationMigrateModeSafe SyncDestinationMigrateMode = "safe" ) +// Defines values for SyncDestinationMigrateModeUpdate. +const ( + SyncDestinationMigrateModeUpdateForced SyncDestinationMigrateModeUpdate = "forced" + SyncDestinationMigrateModeUpdateSafe SyncDestinationMigrateModeUpdate = "safe" +) + // Defines values for SyncDestinationWriteMode. const ( SyncDestinationWriteModeAppend SyncDestinationWriteMode = "append" @@ -171,6 +177,13 @@ const ( SyncDestinationWriteModeOverwriteDeleteStale SyncDestinationWriteMode = "overwrite-delete-stale" ) +// Defines values for SyncDestinationWriteModeUpdate. +const ( + SyncDestinationWriteModeUpdateAppend SyncDestinationWriteModeUpdate = "append" + SyncDestinationWriteModeUpdateOverwrite SyncDestinationWriteModeUpdate = "overwrite" + SyncDestinationWriteModeUpdateOverwriteDeleteStale SyncDestinationWriteModeUpdate = "overwrite-delete-stale" +) + // Defines values for SyncLastUpdateSource. const ( SyncLastUpdateSourceUi SyncLastUpdateSource = "ui" @@ -2242,6 +2255,9 @@ type SyncDestinationCreate struct { // SyncDestinationMigrateMode Migrate mode for the destination type SyncDestinationMigrateMode string +// SyncDestinationMigrateModeUpdate Migrate mode for the destination, for updating +type SyncDestinationMigrateModeUpdate string + // SyncDestinationTestConnection defines model for SyncDestinationTestConnection. type SyncDestinationTestConnection struct { // CompletedAt Time the test connection was completed @@ -2305,16 +2321,19 @@ type SyncDestinationUpdate struct { // LastUpdateSource How was the source or destination been created or updated last LastUpdateSource *SyncLastUpdateSource `json:"last_update_source,omitempty"` - // MigrateMode Migrate mode for the destination - MigrateMode *SyncDestinationMigrateMode `json:"migrate_mode,omitempty"` + // MigrateMode Migrate mode for the destination, for updating + MigrateMode *SyncDestinationMigrateModeUpdate `json:"migrate_mode,omitempty"` - // WriteMode Write mode for the destination - WriteMode *SyncDestinationWriteMode `json:"write_mode,omitempty"` + // WriteMode Write mode for the destination, for updating + WriteMode *SyncDestinationWriteModeUpdate `json:"write_mode,omitempty"` } // SyncDestinationWriteMode Write mode for the destination type SyncDestinationWriteMode string +// SyncDestinationWriteModeUpdate Write mode for the destination, for updating +type SyncDestinationWriteModeUpdate string + // SyncEnv Environment variable. Environment variables are assumed to be secret. type SyncEnv struct { // Name Name of the environment variable diff --git a/spec.json b/spec.json index 416d094..ef277a0 100644 --- a/spec.json +++ b/spec.json @@ -9662,6 +9662,16 @@ }, "required" : [ "cpu", "created_at", "destinations", "disabled", "display_name", "memory", "name", "schedule", "source", "updated_at" ] }, + "SyncDestinationWriteModeUpdate" : { + "description" : "Write mode for the destination, for updating", + "enum" : [ "append", "overwrite", "overwrite-delete-stale" ], + "type" : "string" + }, + "SyncDestinationMigrateModeUpdate" : { + "description" : "Migrate mode for the destination, for updating", + "enum" : [ "safe", "forced" ], + "type" : "string" + }, "SyncDestinationUpdate" : { "description" : "Sync Destination Update Definition", "properties" : { @@ -9669,10 +9679,10 @@ "$ref" : "#/components/schemas/DisplayName" }, "write_mode" : { - "$ref" : "#/components/schemas/SyncDestinationWriteMode" + "$ref" : "#/components/schemas/SyncDestinationWriteModeUpdate" }, "migrate_mode" : { - "$ref" : "#/components/schemas/SyncDestinationMigrateMode" + "$ref" : "#/components/schemas/SyncDestinationMigrateModeUpdate" }, "last_update_source" : { "$ref" : "#/components/schemas/SyncLastUpdateSource"