Skip to content

Commit 626d41f

Browse files
Apply suggestions from code review
Co-authored-by: Fabricio Duarte <fabricio.duarte.jr@gmail.com>
1 parent 7573aff commit 626d41f

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

api/src/main/java/org/apache/cloudstack/api/command/user/resource/ListResourceLimitsCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class ListResourceLimitsCmd extends BaseListProjectAndAccountResourcesCmd
4242
@Parameter(name = ApiConstants.ID, type = CommandType.LONG, description = "Lists resource limits by ID.")
4343
private Long id;
4444

45-
@Parameter(name = ApiConstants.RESOURCE_TYPE, type = CommandType.INTEGER, description = "Type of resource. Values are 0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11 and 12. "
45+
@Parameter(name = ApiConstants.RESOURCE_TYPE, type = CommandType.INTEGER, description = "Type of resource. Accepted values are 0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11 and 12. "
4646
+ "0 - Instance. Number of Instances a user can create. "
4747
+ "1 - IP. Number of public IP addresses an account can own. "
4848
+ "2 - Volume. Number of disk volumes an account can own. "

api/src/main/java/org/apache/cloudstack/api/command/user/resource/UpdateResourceCountCmd.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public class UpdateResourceCountCmd extends BaseCmd {
6060

6161
@Parameter(name = ApiConstants.RESOURCE_TYPE,
6262
type = CommandType.INTEGER,
63-
description = "Type of resource to update. If specifies valid values are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 and 12. If not specified will update all resource counts"
63+
description = "Type of resource to update. Accepted values are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 and 12. If not specified will update all resource counts"
6464
+ "0 - Instance. Number of Instances a user can create. "
6565
+ "1 - IP. Number of public IP addresses a user can own. "
6666
+ "2 - Volume. Number of disk volumes a user can create. "
@@ -73,7 +73,7 @@ public class UpdateResourceCountCmd extends BaseCmd {
7373
+ "9 - Memory. Total Memory (in MB) a user can use. "
7474
+ "10 - PrimaryStorage. Total primary storage space (in GiB) a user can use. "
7575
+ "11 - SecondaryStorage. Total secondary storage space (in GiB) a user can use."
76-
+ "12 - InstanceSnapshot. Number of VM snapshots a user can create.")
76+
+ "12 - InstanceSnapshot. Number of instance snapshots an account can own.")
7777
private Integer resourceType;
7878

7979
@Parameter(name = ApiConstants.PROJECT_ID, type = CommandType.UUID, entityType = ProjectResponse.class, description = "Update resource limits for project")

api/src/main/java/org/apache/cloudstack/api/response/AccountResponse.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,15 +128,15 @@ public class AccountResponse extends BaseResponse implements ResourceLimitAndCou
128128
private String snapshotAvailable;
129129

130130
@SerializedName(ApiConstants.VM_SNAPSHOT_LIMIT)
131-
@Param(description = "the number of Instance Snapshots that can be stored by this Account")
131+
@Param(description = "The total number of Instance Snapshots that this Account can own")
132132
private String vmSnapshotLimit;
133133

134134
@SerializedName(ApiConstants.VM_SNAPSHOT_TOTAL)
135-
@Param(description = "the number of Instance Snapshots stored by this Account")
135+
@Param(description = "The number of Instance Snapshots owned by this Account")
136136
private Long vmSnapshotTotal;
137137

138138
@SerializedName(ApiConstants.VM_SNAPSHOT_AVAILABLE)
139-
@Param(description = "the number of Instance Snapshots available for this Account")
139+
@Param(description = "The number of Instance Snapshots available for this Account")
140140
private String vmSnapshotAvailable;
141141

142142
@SerializedName("templatelimit")

0 commit comments

Comments
 (0)