DescribeSecurityGroup: Use String instead of Long for RuleId

RevokeSecurityGroupIngress: Match the response name that CloudBridge uses with that provided by Cloudstack
This commit is contained in:
Likitha Shetty 2012-04-18 18:22:41 +05:30 committed by prachi
parent 51d3eda79e
commit c130768b94
3 changed files with 5 additions and 5 deletions

View File

@ -31,7 +31,7 @@ import com.cloud.user.Account;
public class RevokeSecurityGroupIngressCmd extends BaseAsyncCmd {
public static final Logger s_logger = Logger.getLogger(RevokeSecurityGroupIngressCmd.class.getName());
private static final String s_name = "revokesecuritygroupingress";
private static final String s_name = "revokesecuritygroupingressresponse";
// ///////////////////////////////////////////////////
// ////////////// API parameters /////////////////////

View File

@ -20,7 +20,7 @@ import com.google.gson.annotations.SerializedName;
public class CloudStackIngressRule {
@SerializedName(ApiConstants.RULE_ID)
private Long ruleId;
private String ruleId;
@SerializedName(ApiConstants.PROTOCOL)
private String protocol;
@ -49,7 +49,7 @@ public class CloudStackIngressRule {
public CloudStackIngressRule() {
}
public Long getRuleId() {
public String getRuleId() {
return ruleId;
}

View File

@ -36,7 +36,7 @@ public class CloudStackSecurityGroupIngress {
@SerializedName(ApiConstants.PROTOCOL)
private String protocol;
@SerializedName(ApiConstants.RULE_ID)
private Long ruleId;
private String ruleId;
@SerializedName(ApiConstants.SECURITY_GROUP_NAME)
private String securityGroupName;
@SerializedName(ApiConstants.START_PORT)
@ -102,7 +102,7 @@ public class CloudStackSecurityGroupIngress {
/**
* @return the ruleId
*/
public Long getRuleId() {
public String getRuleId() {
return ruleId;
}