Skip to content

Commit 04da981

Browse files
committed
address review comments
1 parent dcd0319 commit 04da981

16 files changed

+49
-49
lines changed

api/src/main/java/org/apache/cloudstack/api/BaseUpdateTemplateOrIsoPermissionsCmd.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ protected String getResponseName() {
4646
@Parameter(name = ApiConstants.ID, type = CommandType.UUID, entityType = TemplateResponse.class, required = true, description = "The Template ID")
4747
private Long id;
4848

49-
@Parameter(name = ApiConstants.IS_FEATURED, type = CommandType.BOOLEAN, description = "True for featured Template/iso, false otherwise")
49+
@Parameter(name = ApiConstants.IS_FEATURED, type = CommandType.BOOLEAN, description = "True for featured Template/ISO, false otherwise")
5050
private Boolean featured;
5151

52-
@Parameter(name = ApiConstants.IS_PUBLIC, type = CommandType.BOOLEAN, description = "True for public Template/iso, false for private Templates/ISOs")
52+
@Parameter(name = ApiConstants.IS_PUBLIC, type = CommandType.BOOLEAN, description = "True for public Template/ISO, false for private Templates/ISOs")
5353
private Boolean isPublic;
5454

5555
@Parameter(name = ApiConstants.IS_EXTRACTABLE,
@@ -121,7 +121,7 @@ public void execute() {
121121
SuccessResponse response = new SuccessResponse(getCommandName());
122122
setResponseObject(response);
123123
} else {
124-
throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed to update Template/iso permissions");
124+
throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed to update Template/ISO permissions");
125125
}
126126
}
127127
}

api/src/main/java/org/apache/cloudstack/api/command/admin/account/DeleteAccountCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
import com.cloud.event.EventTypes;
3636
import com.cloud.user.Account;
3737

38-
@APICommand(name = "deleteAccount", description = "Deletes an account and all users associated with this account", responseObject = SuccessResponse.class, entityType = {Account.class},
38+
@APICommand(name = "deleteAccount", description = "Deletes an Account and all Users associated with this Account", responseObject = SuccessResponse.class, entityType = {Account.class},
3939
requestHasSensitiveInfo = false, responseHasSensitiveInfo = false)
4040
public class DeleteAccountCmd extends BaseAsyncCmd {
4141

api/src/main/java/org/apache/cloudstack/api/command/admin/account/DisableAccountCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public long getEntityOwnerId() {
108108

109109
@Override
110110
public String getEventDescription() {
111-
return "Disabling account: " + getAccountName() + " in domain: " + getDomainId();
111+
return "Disabling Account: " + getAccountName() + " in domain: " + getDomainId();
112112
}
113113

114114
@Override

api/src/main/java/org/apache/cloudstack/api/command/admin/account/LockAccountCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import com.cloud.utils.exception.CloudRuntimeException;
2929

3030
@APICommand(name = "lockAccount",
31-
description = "This deprecated function used to lock an account. Look for the API DisableAccount instead",
31+
description = "This deprecated function used to lock an Account. Look for the API DisableAccount instead",
3232
responseObject = AccountResponse.class,
3333
entityType = {Account.class},
3434
requestHasSensitiveInfo = false,

api/src/main/java/org/apache/cloudstack/api/command/admin/acl/project/UpdateProjectRolePermissionCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public class UpdateProjectRolePermissionCmd extends BaseCmd {
5757
private Long projectId;
5858

5959
@Parameter(name = ApiConstants.RULE_ORDER, type = CommandType.LIST, collectionType = CommandType.UUID, entityType = ProjectRolePermissionResponse.class,
60-
description = "The parent role permission UUID, use 0 to move this rule at the top of the list")
60+
description = "ID of the parent role permission, use 0 to move this rule at the top of the list")
6161
private List<Long> projectRulePermissionOrder;
6262

6363
@Parameter(name = ApiConstants.PROJECT_ROLE_PERMISSION_ID, type = CommandType.UUID, entityType = ProjectRolePermissionResponse.class,

api/src/main/java/org/apache/cloudstack/api/command/admin/annotation/RemoveAnnotationCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
public class RemoveAnnotationCmd extends BaseCmd {
3636

3737

38-
@Parameter(name = ApiConstants.ID, type = CommandType.STRING, required = true, description = "The id of the annotation")
38+
@Parameter(name = ApiConstants.ID, type = CommandType.STRING, required = true, description = "The ID of the annotation")
3939
private String uuid;
4040

4141
public String getUuid() {

api/src/main/java/org/apache/cloudstack/api/command/admin/ca/ProvisionCertificateCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public class ProvisionCertificateCmd extends BaseAsyncCmd {
5252
/////////////////////////////////////////////////////
5353

5454
@Parameter(name = ApiConstants.HOST_ID, type = CommandType.UUID, required = true, entityType = HostResponse.class,
55-
description = "The host/agent UUID to which the certificate has to be provisioned (issued and propagated)")
55+
description = "The host/agent ID to which the certificate has to be provisioned (issued and propagated)")
5656
private Long hostId;
5757

5858
@Parameter(name = ApiConstants.RECONNECT, type = CommandType.BOOLEAN,

api/src/main/java/org/apache/cloudstack/api/command/admin/host/DeclareHostAsDegradedCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
import org.apache.cloudstack.context.CallContext;
3434

3535
@APICommand(name = "declareHostAsDegraded",
36-
description = "Declare host as 'Degraded'. Host must be on 'Disconnected' or 'Alert' state. The ADMIN must be sure that there are no Instances running on the respective host otherwise this command might corrupted VMs that were running on the 'Degraded' host.",
36+
description = "Declare host as 'Degraded'. Host must be on 'Disconnected' or 'Alert' state. The ADMIN must be sure that there are no Instances running on the respective host otherwise this command might corrupted Instances that were running on the 'Degraded' host.",
3737
since = "4.16.0.0",
3838
responseObject = HostResponse.class,
3939
requestHasSensitiveInfo = false,

api/src/main/java/org/apache/cloudstack/api/command/admin/host/UpdateHostCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public class UpdateHostCmd extends BaseCmd {
4747
@Parameter(name = ApiConstants.OS_CATEGORY_ID,
4848
type = CommandType.UUID,
4949
entityType = GuestOSCategoryResponse.class,
50-
description = "The ID of Os category to update the host with")
50+
description = "The ID of OS category to update the host with")
5151
private Long osCategoryId;
5252

5353
@Parameter(name = ApiConstants.ALLOCATION_STATE,

api/src/main/java/org/apache/cloudstack/api/command/admin/internallb/ListInternalLBVMsCmd.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,33 +48,33 @@ public class ListInternalLBVMsCmd extends BaseListProjectAndAccountResourcesCmd
4848
@Parameter(name = ApiConstants.HOST_ID, type = CommandType.UUID, entityType = HostResponse.class, description = "The host ID of the Internal LB Instance")
4949
private Long hostId;
5050

51-
@Parameter(name = ApiConstants.ID, type = CommandType.UUID, entityType = UserVmResponse.class, description = "The ID of the Internal LB VM")
51+
@Parameter(name = ApiConstants.ID, type = CommandType.UUID, entityType = UserVmResponse.class, description = "The ID of the Internal LB Instance")
5252
private Long id;
5353

54-
@Parameter(name = ApiConstants.NAME, type = CommandType.STRING, description = "The name of the Internal LB VM")
54+
@Parameter(name = ApiConstants.NAME, type = CommandType.STRING, description = "The name of the Internal LB Instance")
5555
private String routerName;
5656

57-
@Parameter(name = ApiConstants.POD_ID, type = CommandType.UUID, entityType = PodResponse.class, description = "The Pod ID of the Internal LB VM")
57+
@Parameter(name = ApiConstants.POD_ID, type = CommandType.UUID, entityType = PodResponse.class, description = "The Pod ID of the Internal LB Instance")
5858
private Long podId;
5959

60-
@Parameter(name = ApiConstants.STATE, type = CommandType.STRING, description = "The state of the Internal LB VM")
60+
@Parameter(name = ApiConstants.STATE, type = CommandType.STRING, description = "The state of the Internal LB Instance")
6161
private String state;
6262

63-
@Parameter(name = ApiConstants.ZONE_ID, type = CommandType.UUID, entityType = ZoneResponse.class, description = "The Zone ID of the Internal LB VM")
63+
@Parameter(name = ApiConstants.ZONE_ID, type = CommandType.UUID, entityType = ZoneResponse.class, description = "The Zone ID of the Internal LB Instance")
6464
private Long zoneId;
6565

66-
@Parameter(name = ApiConstants.NETWORK_ID, type = CommandType.UUID, entityType = NetworkResponse.class, description = "List by network id")
66+
@Parameter(name = ApiConstants.NETWORK_ID, type = CommandType.UUID, entityType = NetworkResponse.class, description = "List by Network ID")
6767
private Long networkId;
6868

69-
@Parameter(name = ApiConstants.VPC_ID, type = CommandType.UUID, entityType = VpcResponse.class, description = "List Internal LB VMs by VPC")
69+
@Parameter(name = ApiConstants.VPC_ID, type = CommandType.UUID, entityType = VpcResponse.class, description = "List Internal LB Instances by VPC")
7070
private Long vpcId;
7171

72-
@Parameter(name = ApiConstants.FOR_VPC, type = CommandType.BOOLEAN, description = "If true is passed for this parameter, list only VPC Internal LB VMs")
72+
@Parameter(name = ApiConstants.FOR_VPC, type = CommandType.BOOLEAN, description = "If true is passed for this parameter, list only VPC Internal LB Instances")
7373
private Boolean forVpc;
7474

7575

7676
@Parameter(name = ApiConstants.FETCH_ROUTER_HEALTH_CHECK_RESULTS, type = CommandType.BOOLEAN, since = "4.14",
77-
description = "If true is passed for this parameter, also fetch last executed health check results for the VM. Default is false")
77+
description = "If true is passed for this parameter, also fetch last executed health check results for the Instance. Default is false")
7878
private Boolean fetchHealthCheckResults;
7979

8080
/////////////////////////////////////////////////////

0 commit comments

Comments
 (0)