API: allow worker cluster creation without explicit UUID
Clusters can be created without UUID now. In that case, a random one will be generated. The cluster will be returned by the creation call, so that the caller can know that generated UUID.
This commit is contained in:
parent
3724a8874e
commit
0e6b6a6013
@ -635,8 +635,11 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/WorkerCluster"
|
$ref: "#/components/schemas/WorkerCluster"
|
||||||
responses:
|
responses:
|
||||||
"204":
|
"200":
|
||||||
description: The cluster was created.
|
description: The cluster was created. The created cluster is returned, so that the caller can know its UUID.
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema: { $ref: "#/components/schemas/WorkerCluster" }
|
||||||
default:
|
default:
|
||||||
description: Error message
|
description: Error message
|
||||||
content:
|
content:
|
||||||
@ -2423,13 +2426,15 @@ components:
|
|||||||
"id":
|
"id":
|
||||||
type: string
|
type: string
|
||||||
format: uuid
|
format: uuid
|
||||||
|
description: >
|
||||||
|
UUID of the cluster. Can be ommitted when creating a new cluster, in
|
||||||
|
which case a random UUID will be assigned.
|
||||||
"name":
|
"name":
|
||||||
type: string
|
type: string
|
||||||
"description":
|
"description":
|
||||||
type: string
|
type: string
|
||||||
required: [id, name]
|
required: [name]
|
||||||
example:
|
example:
|
||||||
id: 4312d68c-ea6d-4566-9bf6-e9f09be48ceb
|
|
||||||
name: GPU-EEVEE
|
name: GPU-EEVEE
|
||||||
description: All workers that can do GPU rendering with EEVEE.
|
description: All workers that can do GPU rendering with EEVEE.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user