This is an automated email from the ASF dual-hosted git repository.
dahn pushed a commit to branch 4.20
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.20 by this push:
new 432a3065bc8 api: fix response annotation for createBackupSchedule
(#11950)
432a3065bc8 is described below
commit 432a3065bc8690ee4a48e95a69181d693aad348f
Author: Abhishek Kumar <[email protected]>
AuthorDate: Wed Dec 24 20:50:40 2025 +0530
api: fix response annotation for createBackupSchedule (#11950)
Currently, `createBackupSchedule` API documentation wrongly specifies
BackupResponse as the API response.
Signed-off-by: Abhishek Kumar <[email protected]>
---
.../cloudstack/api/command/user/backup/CreateBackupScheduleCmd.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git
a/api/src/main/java/org/apache/cloudstack/api/command/user/backup/CreateBackupScheduleCmd.java
b/api/src/main/java/org/apache/cloudstack/api/command/user/backup/CreateBackupScheduleCmd.java
index 8d7febaa734..05d903a611c 100644
---
a/api/src/main/java/org/apache/cloudstack/api/command/user/backup/CreateBackupScheduleCmd.java
+++
b/api/src/main/java/org/apache/cloudstack/api/command/user/backup/CreateBackupScheduleCmd.java
@@ -26,7 +26,6 @@ import org.apache.cloudstack.api.ApiErrorCode;
import org.apache.cloudstack.api.BaseCmd;
import org.apache.cloudstack.api.Parameter;
import org.apache.cloudstack.api.ServerApiException;
-import org.apache.cloudstack.api.response.BackupResponse;
import org.apache.cloudstack.api.response.BackupScheduleResponse;
import org.apache.cloudstack.api.response.UserVmResponse;
import org.apache.cloudstack.backup.BackupManager;
@@ -38,7 +37,7 @@ import com.cloud.utils.exception.CloudRuntimeException;
@APICommand(name = "createBackupSchedule",
description = "Creates a User-defined Instance backup schedule",
- responseObject = BackupResponse.class, since = "4.14.0",
+ responseObject = BackupScheduleResponse.class, since = "4.14.0",
authorized = {RoleType.Admin, RoleType.ResourceAdmin,
RoleType.DomainAdmin, RoleType.User})
public class CreateBackupScheduleCmd extends BaseCmd {