diff --git a/pkg/swagger/docs.go b/pkg/swagger/docs.go index 8e243cd8f2..520cf73c4b 100644 --- a/pkg/swagger/docs.go +++ b/pkg/swagger/docs.go @@ -2297,14 +2297,14 @@ const docTemplate = `{ "types.BatchTaskDefaultConfig": { "type": "object", "properties": { + "Publisher": { + "$ref": "#/definitions/types.DefaultPublisherConfig" + }, "Resources": { "$ref": "#/definitions/types.ResourcesConfig" }, "Timeouts": { "$ref": "#/definitions/types.TaskTimeoutConfig" - }, - "publisher": { - "$ref": "#/definitions/models.SpecConfig" } } }, @@ -2382,6 +2382,22 @@ const docTemplate = `{ } } }, + "types.DefaultPublisherConfig": { + "type": "object", + "properties": { + "Params": { + "description": "Params specifies the publisher configuration data.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "Type": { + "description": "Type specifies the publisher type. e.g. \"s3\", \"local\", \"ipfs\", etc.", + "type": "string" + } + } + }, "types.Docker": { "type": "object", "properties": { diff --git a/pkg/swagger/swagger.json b/pkg/swagger/swagger.json index f87dda4ee1..5fe7a0b319 100644 --- a/pkg/swagger/swagger.json +++ b/pkg/swagger/swagger.json @@ -2293,14 +2293,14 @@ "types.BatchTaskDefaultConfig": { "type": "object", "properties": { + "Publisher": { + "$ref": "#/definitions/types.DefaultPublisherConfig" + }, "Resources": { "$ref": "#/definitions/types.ResourcesConfig" }, "Timeouts": { "$ref": "#/definitions/types.TaskTimeoutConfig" - }, - "publisher": { - "$ref": "#/definitions/models.SpecConfig" } } }, @@ -2378,6 +2378,22 @@ } } }, + "types.DefaultPublisherConfig": { + "type": "object", + "properties": { + "Params": { + "description": "Params specifies the publisher configuration data.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "Type": { + "description": "Type specifies the publisher type. e.g. \"s3\", \"local\", \"ipfs\", etc.", + "type": "string" + } + } + }, "types.Docker": { "type": "object", "properties": { diff --git a/webui/lib/api/generated/types.gen.ts b/webui/lib/api/generated/types.gen.ts index 8007f1986a..b2ddb394cb 100644 --- a/webui/lib/api/generated/types.gen.ts +++ b/webui/lib/api/generated/types.gen.ts @@ -796,9 +796,9 @@ export type types_BatchJobDefaultsConfig = { }; export type types_BatchTaskDefaultConfig = { + Publisher?: types_DefaultPublisherConfig; Resources?: types_ResourcesConfig; Timeouts?: types_TaskTimeoutConfig; - publisher?: models_SpecConfig; }; export type types_Cluster = { @@ -852,6 +852,19 @@ export type types_ComputeAuth = { Token?: string; }; +export type types_DefaultPublisherConfig = { + /** + * Params specifies the publisher configuration data. + */ + Params?: { + [key: string]: (string); + }; + /** + * Type specifies the publisher type. e.g. "s3", "local", "ipfs", etc. + */ + Type?: string; +}; + export type types_Docker = { /** * ManifestCache specifies the settings for the Docker manifest cache. diff --git a/webui/lib/api/schema/swagger.json b/webui/lib/api/schema/swagger.json index f87dda4ee1..5fe7a0b319 100644 --- a/webui/lib/api/schema/swagger.json +++ b/webui/lib/api/schema/swagger.json @@ -2293,14 +2293,14 @@ "types.BatchTaskDefaultConfig": { "type": "object", "properties": { + "Publisher": { + "$ref": "#/definitions/types.DefaultPublisherConfig" + }, "Resources": { "$ref": "#/definitions/types.ResourcesConfig" }, "Timeouts": { "$ref": "#/definitions/types.TaskTimeoutConfig" - }, - "publisher": { - "$ref": "#/definitions/models.SpecConfig" } } }, @@ -2378,6 +2378,22 @@ } } }, + "types.DefaultPublisherConfig": { + "type": "object", + "properties": { + "Params": { + "description": "Params specifies the publisher configuration data.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "Type": { + "description": "Type specifies the publisher type. e.g. \"s3\", \"local\", \"ipfs\", etc.", + "type": "string" + } + } + }, "types.Docker": { "type": "object", "properties": {