Support all worker attributes on CreateDockerWorkerVersion
https://redmine.teklia.com/issues/5409
CreateWorker
and CreateWorkerVersion
could allow publishing workers, but they do not support revisions. Since Git imports have been removed, the only way to have worker versions with Git revisions and references is via CreateDockerWorkerVersion
, so it now has to replicate the behavior of CreateWorker
, UpdateWorker
and CreateWorkerVersion
combined on top of supporting revisions. We therefore need to support setting the worker name, type and description, and not just the slug.
Please add three new fields to CreateDockerWorkerVersion
:
-
worker_name
: Required string. Must be used as the worker's name, instead of using the slug both as the slug and name. -
worker_type
: Required string. Slug of aWorkerType
that will be set on the worker. If the WorkerType does not exist, it must be created. -
worker_description
: Optional string, defaulting to an empty string. Must be used as the worker's description.
When a worker with the specified worker_slug
already exists, the existing worker's name, type and description must be updated.