Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions components/schemas/containers/summaries/VolumeSummary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,8 @@ properties:
id:
$ref: ../../ID.yml
- type: "null"
removed:
description: The time stamp of the volume's removal, if applicable.
oneOf:
- $ref: ../../DateTime.yml
- type: "null"
15 changes: 15 additions & 0 deletions components/schemas/vms/task/VirtualMachineAddVolumesAction.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
title: VirtualMachineAddVolumesAction
type: object
required:
- action
- contents
properties:
action:
type: string
enum:
- volumes.add
contents:
type: array
description: Array of volume configs to add.
items:
$ref: ../config/volumes/VirtualMachineVolumeConfig.yml
15 changes: 15 additions & 0 deletions components/schemas/vms/task/VirtualMachineRemoveVolumesAction.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
title: VirtualMachineRemoveVolumesAction
type: object
required:
- action
- contents
properties:
action:
type: string
enum:
- volumes.remove
contents:
type: array
description: Array of volume IDs to remove.
items:
$ref: ../../ID.yml
4 changes: 4 additions & 0 deletions components/schemas/vms/task/VirtualMachineTask.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ discriminator:
ip.allocate: VirtualMachineIpAllocateAction.yml
ip.unallocate: VirtualMachineIpUnallocateAction.yml
volumes.reconfigure: VirtualMachineReconfigureVolumesAction.yml
volumes.add: VirtualMachineAddVolumesAction.yml
volumes.remove: VirtualMachineRemoveVolumesAction.yml
oneOf:
- $ref: VirtualMachineStartAction.yml
- $ref: VirtualMachineStopAction.yml
Expand All @@ -19,3 +21,5 @@ oneOf:
- $ref: VirtualMachineIpAllocateAction.yml
- $ref: VirtualMachineIpUnallocateAction.yml
- $ref: VirtualMachineReconfigureVolumesAction.yml
- $ref: VirtualMachineAddVolumesAction.yml
- $ref: VirtualMachineRemoveVolumesAction.yml