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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user