Skip to content

Commit a3f7bfa

Browse files
committed
review comments
1 parent b5830c6 commit a3f7bfa

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

api/src/main/java/org/apache/cloudstack/api/command/admin/vm/CreateVMFromBackupCmdByAdmin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@
3939
authorized = {RoleType.Admin, RoleType.ResourceAdmin, RoleType.DomainAdmin, RoleType.User})
4040
public class CreateVMFromBackupCmdByAdmin extends CreateVMFromBackupCmd implements AdminCmd {
4141

42-
@Parameter(name = ApiConstants.POD_ID, type = CommandType.UUID, entityType = PodResponse.class, description = "destination Pod ID to deploy the VM to - parameter available for root admin only", since = "4.13")
42+
@Parameter(name = ApiConstants.POD_ID, type = CommandType.UUID, entityType = PodResponse.class, description = "destination Pod ID to deploy the VM to - parameter available for root admin only", since = "4.21")
4343
private Long podId;
4444

45-
@Parameter(name = ApiConstants.CLUSTER_ID, type = CommandType.UUID, entityType = ClusterResponse.class, description = "destination Cluster ID to deploy the VM to - parameter available for root admin only", since = "4.13")
45+
@Parameter(name = ApiConstants.CLUSTER_ID, type = CommandType.UUID, entityType = ClusterResponse.class, description = "destination Cluster ID to deploy the VM to - parameter available for root admin only", since = "4.21")
4646
private Long clusterId;
4747

4848
public Long getPodId() {

api/src/main/java/org/apache/cloudstack/api/command/user/vm/CreateVMFromBackupCmd.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@
5050
authorized = {RoleType.Admin, RoleType.ResourceAdmin, RoleType.DomainAdmin, RoleType.User})
5151
public class CreateVMFromBackupCmd extends BaseDeployVMCmd {
5252

53-
@Inject
54-
BackupManager backupManager;
55-
5653
/////////////////////////////////////////////////////
5754
//////////////// API parameters /////////////////////
5855
/////////////////////////////////////////////////////

api/src/main/java/org/apache/cloudstack/backup/BackupProvider.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,13 @@ public interface BackupProvider {
104104
void syncBackupMetrics(Long zoneId);
105105

106106
/**
107-
* This method should TODO
108-
* @param vm the machine to get restore point for
107+
* Returns a list of Backup.RestorePoint
108+
* @param vm the machine to get the restore points for
109109
*/
110110
List<Backup.RestorePoint> listRestorePoints(VirtualMachine vm);
111111

112112
/**
113-
* This method should TODO
113+
* Creates and returns an entry in the backups table by getting the information from restorePoint and vm.
114114
*
115115
* @param restorePoint the restore point to create a backup for
116116
* @param vm The machine for which to create a backup

0 commit comments

Comments
 (0)