From cbc1592193754f4f10549069cdf1dd6151e12bb2 Mon Sep 17 00:00:00 2001 From: Bryce Date: Fri, 14 Nov 2025 09:10:24 -0800 Subject: [PATCH 1/2] reconfigure servers - external volume task --- .../tasks/ExternalVolumeAttachAction.yml | 14 -------------- .../tasks/ExternalVolumeDetachAction.yml | 11 ----------- .../ExternalVolumeServersReconfigureAction.yml | 15 +++++++++++++++ .../external-volumes/tasks/ExternalVolumeTask.yml | 7 +++++++ .../tasks/ExternalVolumeTasks.yml | 9 --------- .../infrastructure/external-volumes/tasks.yml | 2 +- 6 files changed, 23 insertions(+), 35 deletions(-) delete mode 100644 components/schemas/infrastructure/external-volumes/tasks/ExternalVolumeAttachAction.yml delete mode 100644 components/schemas/infrastructure/external-volumes/tasks/ExternalVolumeDetachAction.yml create mode 100644 components/schemas/infrastructure/external-volumes/tasks/ExternalVolumeServersReconfigureAction.yml create mode 100644 components/schemas/infrastructure/external-volumes/tasks/ExternalVolumeTask.yml delete mode 100644 components/schemas/infrastructure/external-volumes/tasks/ExternalVolumeTasks.yml diff --git a/components/schemas/infrastructure/external-volumes/tasks/ExternalVolumeAttachAction.yml b/components/schemas/infrastructure/external-volumes/tasks/ExternalVolumeAttachAction.yml deleted file mode 100644 index b84ad001..00000000 --- a/components/schemas/infrastructure/external-volumes/tasks/ExternalVolumeAttachAction.yml +++ /dev/null @@ -1,14 +0,0 @@ -title: ExternalVolumeAttachAction -description: A task to attach an external volume. -type: object -required: - - action - - contents -properties: - action: - type: string - enum: - - attach - description: The name of the action to perform (attach). - contents: - $ref: ../attachment/ExternalVolumeAttachment.yml diff --git a/components/schemas/infrastructure/external-volumes/tasks/ExternalVolumeDetachAction.yml b/components/schemas/infrastructure/external-volumes/tasks/ExternalVolumeDetachAction.yml deleted file mode 100644 index 1c202b0c..00000000 --- a/components/schemas/infrastructure/external-volumes/tasks/ExternalVolumeDetachAction.yml +++ /dev/null @@ -1,11 +0,0 @@ -title: ExternalVolumeDetachAction -description: A task to detach an external volume from an instance. -type: object -required: - - action -properties: - action: - type: string - enum: - - detach - description: The name of the action to perform (detach). diff --git a/components/schemas/infrastructure/external-volumes/tasks/ExternalVolumeServersReconfigureAction.yml b/components/schemas/infrastructure/external-volumes/tasks/ExternalVolumeServersReconfigureAction.yml new file mode 100644 index 00000000..e48ef5a6 --- /dev/null +++ b/components/schemas/infrastructure/external-volumes/tasks/ExternalVolumeServersReconfigureAction.yml @@ -0,0 +1,15 @@ +title: ExternalVolumeServersReconfigureAction +description: A task to reconfigure servers for external volume. +type: object +required: + - action +properties: + action: + type: string + enum: + - servers.reconfigure + description: The name of the action to perform (servers.reconfigure). + contents: + type: array + items: + type: string diff --git a/components/schemas/infrastructure/external-volumes/tasks/ExternalVolumeTask.yml b/components/schemas/infrastructure/external-volumes/tasks/ExternalVolumeTask.yml new file mode 100644 index 00000000..a14343d7 --- /dev/null +++ b/components/schemas/infrastructure/external-volumes/tasks/ExternalVolumeTask.yml @@ -0,0 +1,7 @@ +title: ExternalVolumeTask +discriminator: + propertyName: action + mapping: + servers.reconfigure: ExternalVolumeServersReconfigureAction.yml +oneOf: + - $ref: ExternalVolumeServersReconfigureAction.yml diff --git a/components/schemas/infrastructure/external-volumes/tasks/ExternalVolumeTasks.yml b/components/schemas/infrastructure/external-volumes/tasks/ExternalVolumeTasks.yml deleted file mode 100644 index bbec48e3..00000000 --- a/components/schemas/infrastructure/external-volumes/tasks/ExternalVolumeTasks.yml +++ /dev/null @@ -1,9 +0,0 @@ -title: ExternalVolumeTask -discriminator: - propertyName: action - mapping: - attach: ExternalVolumeAttachAction.yml - detach: ExternalVolumeDetachAction.yml -oneOf: - - $ref: ExternalVolumeAttachAction.yml - - $ref: ExternalVolumeDetachAction.yml diff --git a/platform/paths/infrastructure/external-volumes/tasks.yml b/platform/paths/infrastructure/external-volumes/tasks.yml index 6f1fa0c4..f4557c56 100644 --- a/platform/paths/infrastructure/external-volumes/tasks.yml +++ b/platform/paths/infrastructure/external-volumes/tasks.yml @@ -19,7 +19,7 @@ post: content: application/json: schema: - $ref: ../../../../components/schemas/infrastructure/external-volumes/tasks/ExternalVolumeTasks.yml + $ref: ../../../../components/schemas/infrastructure/external-volumes/tasks/ExternalVolumeTask.yml responses: 202: description: Returns a job descriptor. From 77059eb3c71ef3e2ccb35371655bf61d752b9e2a Mon Sep 17 00:00:00 2001 From: Bryce Date: Mon, 17 Nov 2025 06:56:09 -0800 Subject: [PATCH 2/2] update description --- .../tasks/ExternalVolumeServersReconfigureAction.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/schemas/infrastructure/external-volumes/tasks/ExternalVolumeServersReconfigureAction.yml b/components/schemas/infrastructure/external-volumes/tasks/ExternalVolumeServersReconfigureAction.yml index e48ef5a6..6c3ee435 100644 --- a/components/schemas/infrastructure/external-volumes/tasks/ExternalVolumeServersReconfigureAction.yml +++ b/components/schemas/infrastructure/external-volumes/tasks/ExternalVolumeServersReconfigureAction.yml @@ -1,5 +1,5 @@ title: ExternalVolumeServersReconfigureAction -description: A task to reconfigure servers for external volume. +description: A task to reconfigure mountable destination servers for external volume. type: object required: - action @@ -10,6 +10,7 @@ properties: - servers.reconfigure description: The name of the action to perform (servers.reconfigure). contents: + description: Contents contains an array of server ids to set as mountable destinations for the external volume. type: array items: - type: string + $ref: ../../../ID.yml