mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-3016: remove zonetype property from API response (userVM)
This commit is contained in:
parent
759eeca651
commit
2f2bb6b316
|
|
@ -80,9 +80,6 @@ public class UserVmResponse extends BaseResponse implements ControlledEntityResp
|
|||
@SerializedName(ApiConstants.ZONE_NAME) @Param(description="the name of the availability zone for the virtual machine")
|
||||
private String zoneName;
|
||||
|
||||
@SerializedName(ApiConstants.ZONE_TYPE) @Param(description="the network type of the availability zone for the virtual machine")
|
||||
private String zoneType;
|
||||
|
||||
@SerializedName(ApiConstants.HOST_ID) @Param(description="the ID of the host for the virtual machine")
|
||||
private String hostId;
|
||||
|
||||
|
|
@ -273,10 +270,6 @@ public class UserVmResponse extends BaseResponse implements ControlledEntityResp
|
|||
this.zoneName = zoneName;
|
||||
}
|
||||
|
||||
public void setZoneType(String zoneType) {
|
||||
this.zoneType = zoneType;
|
||||
}
|
||||
|
||||
public void setHostId(String hostId) {
|
||||
this.hostId = hostId;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -102,7 +102,6 @@ public class UserVmJoinDaoImpl extends GenericDaoBase<UserVmJoinVO, Long> implem
|
|||
}
|
||||
userVmResponse.setZoneId(userVm.getDataCenterUuid());
|
||||
userVmResponse.setZoneName(userVm.getDataCenterName());
|
||||
userVmResponse.setZoneType(userVm.getDataCenterType());
|
||||
if ((caller == null) || (caller.getType() == Account.ACCOUNT_TYPE_ADMIN)) {
|
||||
userVmResponse.setInstanceName(userVm.getInstanceName());
|
||||
userVmResponse.setHostId(userVm.getHostUuid());
|
||||
|
|
|
|||
|
|
@ -156,9 +156,6 @@ public class UserVmJoinVO extends BaseViewVO implements ControlledViewEntity {
|
|||
@Column(name="data_center_name")
|
||||
private String dataCenterName = null;
|
||||
|
||||
@Column(name="data_center_type")
|
||||
private String dataCenterType = null;
|
||||
|
||||
@Column(name="security_group_enabled")
|
||||
private boolean securityGroupEnabled;
|
||||
|
||||
|
|
@ -813,18 +810,8 @@ public class UserVmJoinVO extends BaseViewVO implements ControlledViewEntity {
|
|||
public void setDataCenterName(String zoneName) {
|
||||
this.dataCenterName = zoneName;
|
||||
}
|
||||
|
||||
|
||||
public String getDataCenterType() {
|
||||
return dataCenterType;
|
||||
}
|
||||
|
||||
|
||||
public void setDataCenterType(String zoneType) {
|
||||
this.dataCenterType = zoneType;
|
||||
}
|
||||
|
||||
|
||||
public boolean isSecurityGroupEnabled() {
|
||||
return securityGroupEnabled;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue