mirror of https://github.com/apache/cloudstack.git
CS-14837 [ec2-describe-snapshots] Unable to find responseObjName:[snapshot]. Returning null! Exception: java.lang.NumberFormatException: For input string: <job-id>
- Changing JobId to String since CS 3.0.x uses String Ids now.
This commit is contained in:
parent
f33fb0f6ab
commit
96dffa2155
|
|
@ -24,13 +24,13 @@ import com.google.gson.annotations.SerializedName;
|
|||
*/
|
||||
public class CloudStackPortForwardingRule {
|
||||
@SerializedName(ApiConstants.ID)
|
||||
private Long id;
|
||||
private String id;
|
||||
@SerializedName(ApiConstants.CIDR_LIST)
|
||||
private String cidrList;
|
||||
@SerializedName(ApiConstants.IP_ADDRESS)
|
||||
private String ipAddress;
|
||||
@SerializedName(ApiConstants.IP_ADDRESS_ID)
|
||||
private Long ipAddressId;
|
||||
private String ipAddressId;
|
||||
@SerializedName(ApiConstants.PRIVATE_END_PORT)
|
||||
private Long privateEndPort;
|
||||
@SerializedName(ApiConstants.PRIVATE_PORT)
|
||||
|
|
@ -46,7 +46,7 @@ public class CloudStackPortForwardingRule {
|
|||
@SerializedName(ApiConstants.VIRTUAL_MACHINE_DISPLAY_NAME)
|
||||
private String virtualMachineDisplayName;
|
||||
@SerializedName(ApiConstants.VIRTUAL_MACHINE_ID)
|
||||
private Long virtualMachineId;
|
||||
private String virtualMachineId;
|
||||
@SerializedName(ApiConstants.VIRTUAL_MACHINE_NAME)
|
||||
private String virtualMachineName;
|
||||
|
||||
|
|
@ -60,7 +60,7 @@ public class CloudStackPortForwardingRule {
|
|||
/**
|
||||
* @return the id
|
||||
*/
|
||||
public Long getId() {
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
|
|
@ -81,7 +81,7 @@ public class CloudStackPortForwardingRule {
|
|||
/**
|
||||
* @return the ipAddressId
|
||||
*/
|
||||
public Long getIpAddressId() {
|
||||
public String getIpAddressId() {
|
||||
return ipAddressId;
|
||||
}
|
||||
|
||||
|
|
@ -137,7 +137,7 @@ public class CloudStackPortForwardingRule {
|
|||
/**
|
||||
* @return the virtualMachineId
|
||||
*/
|
||||
public Long getVirtualMachineId() {
|
||||
public String getVirtualMachineId() {
|
||||
return virtualMachineId;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public class CloudStackSecurityGroup {
|
|||
@SerializedName(ApiConstants.DOMAIN_ID)
|
||||
private String domainId;
|
||||
@SerializedName(ApiConstants.JOB_ID)
|
||||
private Long jobId;
|
||||
private String jobId;
|
||||
@SerializedName(ApiConstants.JOB_STATUS)
|
||||
private Integer jobStatus;
|
||||
@SerializedName(ApiConstants.NAME)
|
||||
|
|
@ -67,7 +67,7 @@ public class CloudStackSecurityGroup {
|
|||
return domainName;
|
||||
}
|
||||
|
||||
public Long getJobId() {
|
||||
public String getJobId() {
|
||||
return jobId;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public class CloudStackSnapshot {
|
|||
@SerializedName(ApiConstants.INTERVAL_TYPE)
|
||||
private String intervalType;
|
||||
@SerializedName(ApiConstants.JOB_ID)
|
||||
private Long jobId;
|
||||
private String jobId;
|
||||
@SerializedName(ApiConstants.JOB_STATUS)
|
||||
private Integer jobStatus;
|
||||
@SerializedName(ApiConstants.NAME)
|
||||
|
|
@ -90,7 +90,7 @@ public class CloudStackSnapshot {
|
|||
return name;
|
||||
}
|
||||
|
||||
public Long getJobId() {
|
||||
public String getJobId() {
|
||||
return jobId;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ import com.google.gson.annotations.SerializedName;
|
|||
public class CloudStackSnapshotPolicy {
|
||||
|
||||
@SerializedName(ApiConstants.ID)
|
||||
private Long id;
|
||||
private String id;
|
||||
@SerializedName(ApiConstants.INTERVAL_TYPE)
|
||||
private String intervalType;
|
||||
@SerializedName(ApiConstants.MAX_SNAPS)
|
||||
|
|
@ -35,7 +35,7 @@ public class CloudStackSnapshotPolicy {
|
|||
@SerializedName(ApiConstants.TIMEZONE)
|
||||
private String timeZone;
|
||||
@SerializedName(ApiConstants.VOLUME_ID)
|
||||
private Long volumeId;
|
||||
private String volumeId;
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
@ -46,7 +46,7 @@ public class CloudStackSnapshotPolicy {
|
|||
/**
|
||||
* @return the id
|
||||
*/
|
||||
public Long getId() {
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
|
|
@ -81,7 +81,7 @@ public class CloudStackSnapshotPolicy {
|
|||
/**
|
||||
* @return the volumeId
|
||||
*/
|
||||
public Long getVolumeId() {
|
||||
public String getVolumeId() {
|
||||
return volumeId;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue