@@ -814,8 +814,8 @@ func (r *ProtocolIncus) RenameStoragePoolVolume(pool string, volType string, nam
814
814
return nil
815
815
}
816
816
817
- // GetStoragePoolVolumeBackupNames returns a list of volume backup names.
818
- func (r * ProtocolIncus ) GetStoragePoolVolumeBackupNames (pool string , volName string ) ([]string , error ) {
817
+ // GetStorageVolumeBackupNames returns a list of volume backup names.
818
+ func (r * ProtocolIncus ) GetStorageVolumeBackupNames (pool string , volName string ) ([]string , error ) {
819
819
if ! r .HasExtension ("custom_volume_backup" ) {
820
820
return nil , fmt .Errorf ("The server is missing the required \" custom_volume_backup\" API extension" )
821
821
}
@@ -832,14 +832,14 @@ func (r *ProtocolIncus) GetStoragePoolVolumeBackupNames(pool string, volName str
832
832
return urlsToResourceNames (baseURL , urls ... )
833
833
}
834
834
835
- // GetStoragePoolVolumeBackups returns a list of custom volume backups.
836
- func (r * ProtocolIncus ) GetStoragePoolVolumeBackups (pool string , volName string ) ([]api.StoragePoolVolumeBackup , error ) {
835
+ // GetStorageVolumeBackups returns a list of custom volume backups.
836
+ func (r * ProtocolIncus ) GetStorageVolumeBackups (pool string , volName string ) ([]api.StorageVolumeBackup , error ) {
837
837
if ! r .HasExtension ("custom_volume_backup" ) {
838
838
return nil , fmt .Errorf ("The server is missing the required \" custom_volume_backup\" API extension" )
839
839
}
840
840
841
841
// Fetch the raw value
842
- backups := []api.StoragePoolVolumeBackup {}
842
+ backups := []api.StorageVolumeBackup {}
843
843
844
844
_ , err := r .queryStruct ("GET" , fmt .Sprintf ("/storage-pools/%s/volumes/custom/%s/backups?recursion=1" , url .PathEscape (pool ), url .PathEscape (volName )), nil , "" , & backups )
845
845
if err != nil {
@@ -849,14 +849,14 @@ func (r *ProtocolIncus) GetStoragePoolVolumeBackups(pool string, volName string)
849
849
return backups , nil
850
850
}
851
851
852
- // GetStoragePoolVolumeBackup returns a custom volume backup.
853
- func (r * ProtocolIncus ) GetStoragePoolVolumeBackup (pool string , volName string , name string ) (* api.StoragePoolVolumeBackup , string , error ) {
852
+ // GetStorageVolumeBackup returns a custom volume backup.
853
+ func (r * ProtocolIncus ) GetStorageVolumeBackup (pool string , volName string , name string ) (* api.StorageVolumeBackup , string , error ) {
854
854
if ! r .HasExtension ("custom_volume_backup" ) {
855
855
return nil , "" , fmt .Errorf ("The server is missing the required \" custom_volume_backup\" API extension" )
856
856
}
857
857
858
858
// Fetch the raw value
859
- backup := api.StoragePoolVolumeBackup {}
859
+ backup := api.StorageVolumeBackup {}
860
860
etag , err := r .queryStruct ("GET" , fmt .Sprintf ("/storage-pools/%s/volumes/custom/%s/backups/%s" , url .PathEscape (pool ), url .PathEscape (volName ), url .PathEscape (name )), nil , "" , & backup )
861
861
if err != nil {
862
862
return nil , "" , err
@@ -865,8 +865,8 @@ func (r *ProtocolIncus) GetStoragePoolVolumeBackup(pool string, volName string,
865
865
return & backup , etag , nil
866
866
}
867
867
868
- // CreateStoragePoolVolumeBackup creates new custom volume backup.
869
- func (r * ProtocolIncus ) CreateStoragePoolVolumeBackup (pool string , volName string , backup api.StoragePoolVolumeBackupsPost ) (Operation , error ) {
868
+ // CreateStorageVolumeBackup creates new custom volume backup.
869
+ func (r * ProtocolIncus ) CreateStorageVolumeBackup (pool string , volName string , backup api.StorageVolumeBackupsPost ) (Operation , error ) {
870
870
if ! r .HasExtension ("custom_volume_backup" ) {
871
871
return nil , fmt .Errorf ("The server is missing the required \" custom_volume_backup\" API extension" )
872
872
}
@@ -880,8 +880,8 @@ func (r *ProtocolIncus) CreateStoragePoolVolumeBackup(pool string, volName strin
880
880
return op , nil
881
881
}
882
882
883
- // RenameStoragePoolVolumeBackup renames a custom volume backup.
884
- func (r * ProtocolIncus ) RenameStoragePoolVolumeBackup (pool string , volName string , name string , backup api.StoragePoolVolumeBackupPost ) (Operation , error ) {
883
+ // RenameStorageVolumeBackup renames a custom volume backup.
884
+ func (r * ProtocolIncus ) RenameStorageVolumeBackup (pool string , volName string , name string , backup api.StorageVolumeBackupPost ) (Operation , error ) {
885
885
if ! r .HasExtension ("custom_volume_backup" ) {
886
886
return nil , fmt .Errorf ("The server is missing the required \" custom_volume_backup\" API extension" )
887
887
}
@@ -895,8 +895,8 @@ func (r *ProtocolIncus) RenameStoragePoolVolumeBackup(pool string, volName strin
895
895
return op , nil
896
896
}
897
897
898
- // DeleteStoragePoolVolumeBackup deletes a custom volume backup.
899
- func (r * ProtocolIncus ) DeleteStoragePoolVolumeBackup (pool string , volName string , name string ) (Operation , error ) {
898
+ // DeleteStorageVolumeBackup deletes a custom volume backup.
899
+ func (r * ProtocolIncus ) DeleteStorageVolumeBackup (pool string , volName string , name string ) (Operation , error ) {
900
900
if ! r .HasExtension ("custom_volume_backup" ) {
901
901
return nil , fmt .Errorf ("The server is missing the required \" custom_volume_backup\" API extension" )
902
902
}
@@ -910,8 +910,8 @@ func (r *ProtocolIncus) DeleteStoragePoolVolumeBackup(pool string, volName strin
910
910
return op , nil
911
911
}
912
912
913
- // GetStoragePoolVolumeBackupFile requests the custom volume backup content.
914
- func (r * ProtocolIncus ) GetStoragePoolVolumeBackupFile (pool string , volName string , name string , req * BackupFileRequest ) (* BackupFileResponse , error ) {
913
+ // GetStorageVolumeBackupFile requests the custom volume backup content.
914
+ func (r * ProtocolIncus ) GetStorageVolumeBackupFile (pool string , volName string , name string , req * BackupFileRequest ) (* BackupFileResponse , error ) {
915
915
if ! r .HasExtension ("custom_volume_backup" ) {
916
916
return nil , fmt .Errorf ("The server is missing the required \" custom_volume_backup\" API extension" )
917
917
}
@@ -977,7 +977,7 @@ func (r *ProtocolIncus) GetStoragePoolVolumeBackupFile(pool string, volName stri
977
977
}
978
978
979
979
// CreateStoragePoolVolumeFromISO creates a custom volume from an ISO file.
980
- func (r * ProtocolIncus ) CreateStoragePoolVolumeFromISO (pool string , args StoragePoolVolumeBackupArgs ) (Operation , error ) {
980
+ func (r * ProtocolIncus ) CreateStoragePoolVolumeFromISO (pool string , args StorageVolumeBackupArgs ) (Operation , error ) {
981
981
err := r .CheckExtension ("custom_volume_iso" )
982
982
if err != nil {
983
983
return nil , err
@@ -1035,7 +1035,7 @@ func (r *ProtocolIncus) CreateStoragePoolVolumeFromISO(pool string, args Storage
1035
1035
}
1036
1036
1037
1037
// CreateStoragePoolVolumeFromBackup creates a custom volume from a backup file.
1038
- func (r * ProtocolIncus ) CreateStoragePoolVolumeFromBackup (pool string , args StoragePoolVolumeBackupArgs ) (Operation , error ) {
1038
+ func (r * ProtocolIncus ) CreateStoragePoolVolumeFromBackup (pool string , args StorageVolumeBackupArgs ) (Operation , error ) {
1039
1039
if ! r .HasExtension ("custom_volume_backup" ) {
1040
1040
return nil , fmt .Errorf (`The server is missing the required "custom_volume_backup" API extension` )
1041
1041
}
0 commit comments