Skip to content

Commit 8ae7085

Browse files
committed
minor fixups
1 parent 186e771 commit 8ae7085

6 files changed

Lines changed: 13 additions & 13 deletions

File tree

api/src/main/java/org/apache/cloudstack/api/command/user/schedule/CreateResourceScheduleCmd.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ public class CreateResourceScheduleCmd extends BaseCmd {
5858
@Parameter(name = ApiConstants.ACTION, type = CommandType.STRING, required = true, description = "Action to take on the resource.")
5959
private String action;
6060

61-
@Parameter(name = ApiConstants.START_DATE, type = CommandType.DATE, required = false, description = "Start date from which the schedule becomes active. Defaults to current date plus 1 minute. Use format \"yyyy-MM-dd hh:mm:ss\")")
61+
@Parameter(name = ApiConstants.START_DATE, type = CommandType.DATE, required = false, description = "Start date from which the schedule becomes active. Defaults to current date plus 1 minute. Use format \"yyyy-MM-dd hh:mm:ss\"")
6262
private Date startDate;
6363

64-
@Parameter(name = ApiConstants.END_DATE, type = CommandType.DATE, required = false, description = "End date after which the schedule becomes inactive. Use format \"yyyy-MM-dd hh:mm:ss\")")
64+
@Parameter(name = ApiConstants.END_DATE, type = CommandType.DATE, required = false, description = "End date after which the schedule becomes inactive. Use format \"yyyy-MM-dd hh:mm:ss\"")
6565
private Date endDate;
6666

6767
@Parameter(name = ApiConstants.ENABLED, type = CommandType.BOOLEAN, required = false, description = "Enable schedule. Defaults to true")

api/src/main/java/org/apache/cloudstack/api/command/user/schedule/DeleteResourceScheduleCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class DeleteResourceScheduleCmd extends BaseCmd {
4343
@Parameter(name = ApiConstants.RESOURCE_TYPE, type = CommandType.STRING, required = true, description = "Type of the resource")
4444
private String resourceType;
4545

46-
@Parameter(name = ApiConstants.RESOURCE_ID, type = CommandType.STRING, required = true, description = "ID of the resource for which schedule is to be defined")
46+
@Parameter(name = ApiConstants.RESOURCE_ID, type = CommandType.STRING, required = true, description = "ID of the resource for which schedules are to be deleted")
4747
private String resourceId;
4848

4949
@Parameter(name = ApiConstants.ID, type = CommandType.UUID, entityType = ResourceScheduleResponse.class, required = false, description = "ID of the schedule to be deleted")

api/src/main/java/org/apache/cloudstack/api/command/user/schedule/ListResourceScheduleCmd.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,22 @@ public class ListResourceScheduleCmd extends BaseListCmd {
3939
@Inject
4040
ResourceScheduleManager resourceScheduleManager;
4141

42-
@Parameter(name = ApiConstants.ID, type = CommandType.UUID, entityType = ResourceScheduleResponse.class, required = false, description = "ID of the schedule to be updated")
42+
@Parameter(name = ApiConstants.ID, type = CommandType.UUID, entityType = ResourceScheduleResponse.class, required = false, description = "ID of the schedule")
4343
private Long id;
4444

45-
@Parameter(name = ApiConstants.IDS, type = CommandType.LIST, collectionType = CommandType.UUID, entityType = ResourceScheduleResponse.class, required = false, description = "comma separated list of schedule ids to be deleted")
45+
@Parameter(name = ApiConstants.IDS, type = CommandType.LIST, collectionType = CommandType.UUID, entityType = ResourceScheduleResponse.class, required = false, description = "comma separated list of schedule ids")
4646
private List<Long> ids;
4747

48-
@Parameter(name = ApiConstants.RESOURCE_TYPE, type = CommandType.STRING, required = true, description = "Type of the resource")
48+
@Parameter(name = ApiConstants.RESOURCE_TYPE, type = CommandType.STRING, required = true, description = "Type of the resource.")
4949
private String resourceType;
5050

51-
@Parameter(name = ApiConstants.RESOURCE_ID, type = CommandType.STRING, required = true, description = "ID of the resource for which schedule is to be defined")
51+
@Parameter(name = ApiConstants.RESOURCE_ID, type = CommandType.STRING, required = true, description = "ID of the resource for which schedules are to be listed.")
5252
private String resourceId;
5353

5454
@Parameter(name = ApiConstants.ACTION, type = CommandType.STRING, required = false, description = "Action to take on the resource.")
5555
private String action;
5656

57-
@Parameter(name = ApiConstants.ENABLED, type = CommandType.BOOLEAN, required = false, description = "Enable schedule. Defaults to true")
57+
@Parameter(name = ApiConstants.ENABLED, type = CommandType.BOOLEAN, required = false, description = "Filter by enabled status.")
5858
private Boolean enabled;
5959

6060
public Long getId() {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,14 @@ public class CreateVMScheduleCmd extends BaseCmd {
7777
type = CommandType.DATE,
7878
required = false,
7979
description = "Start date from which the schedule becomes active. Defaults to current date plus 1 minute."
80-
+ "Use format \"yyyy-MM-dd hh:mm:ss\")")
80+
+ "Use format \"yyyy-MM-dd hh:mm:ss\"")
8181
private Date startDate;
8282

8383
@Parameter(name = ApiConstants.END_DATE,
8484
type = CommandType.DATE,
8585
required = false,
8686
description = "End date after which the schedule becomes inactive"
87-
+ "Use format \"yyyy-MM-dd hh:mm:ss\")")
87+
+ "Use format \"yyyy-MM-dd hh:mm:ss\"")
8888
private Date endDate;
8989

9090
@Parameter(name = ApiConstants.ENABLED,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public class ListVMScheduleCmd extends BaseListCmd {
6464
@Parameter(name = ApiConstants.ENABLED,
6565
type = CommandType.BOOLEAN,
6666
required = false,
67-
description = "ID of Instance schedule")
67+
description = "Filter by enabled status")
6868
private Boolean enabled;
6969

7070
/// //////////////////////////////////////////////////

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@ public class UpdateVMScheduleCmd extends BaseCmd {
7070
type = CommandType.DATE,
7171
required = false,
7272
description = "Start date from which the schedule becomes active"
73-
+ "Use format \"yyyy-MM-dd hh:mm:ss\")")
73+
+ "Use format \"yyyy-MM-dd hh:mm:ss\"")
7474
private Date startDate;
7575

7676
@Parameter(name = ApiConstants.END_DATE,
7777
type = CommandType.DATE,
7878
required = false,
7979
description = "End date after which the schedule becomes inactive"
80-
+ "Use format \"yyyy-MM-dd hh:mm:ss\")")
80+
+ "Use format \"yyyy-MM-dd hh:mm:ss\"")
8181
private Date endDate;
8282

8383
@Parameter(name = ApiConstants.ENABLED,

0 commit comments

Comments
 (0)