1
0
mirror of https://github.com/lxc/incus.git synced 2026-02-05 09:46:19 +01:00

shared/api: Add StorageVolumeFull

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
This commit is contained in:
Stéphane Graber
2025-11-27 03:09:24 -05:00
parent f83d262dc6
commit 204b247e79

View File

@@ -96,6 +96,24 @@ type StorageVolumePostTarget struct {
Websockets map[string]string `json:"secrets,omitempty" yaml:"secrets,omitempty"`
}
// StorageVolumeFull is a combination of StorageVolume, StorageVolumeBackup, StorageVolumeSnapshot and StorageVolumeState.
//
// swagger:model
//
// API extension: storage_volume_full.
type StorageVolumeFull struct {
StorageVolume `yaml:",inline"`
// List of backups.
Backups []StorageVolumeBackup `json:"backups" yaml:"backups"`
// List of snapshots.
Snapshots []StorageVolumeSnapshot `json:"snapshots" yaml:"snapshots"`
// State.
State *StorageVolumeState `json:"state" yaml:"state"`
}
// StorageVolume represents the fields of a storage volume.
//
// swagger:model