mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
CLOUDSTACK-2672: Adding isVolatile parameter in service offering response object
Signed off by :- Nitin Mehta <nitin.mehta@citrix.com>
This commit is contained in:
parent
fac59a7429
commit
82974458a6
@ -60,6 +60,9 @@ public class ServiceOfferingResponse extends BaseResponse {
|
||||
@SerializedName("limitcpuuse") @Param(description="restrict the CPU usage to committed service offering")
|
||||
private Boolean limitCpuUse;
|
||||
|
||||
@SerializedName("isvolatile") @Param(description="true if the vm needs to be volatile, i.e., on every reboot of vm from API root disk is discarded and creates a new root disk")
|
||||
private Boolean isVolatile;
|
||||
|
||||
@SerializedName("tags") @Param(description="the tags for the service offering")
|
||||
private String tags;
|
||||
|
||||
@ -237,4 +240,12 @@ public class ServiceOfferingResponse extends BaseResponse {
|
||||
public void setDeploymentPlanner(String deploymentPlanner) {
|
||||
this.deploymentPlanner = deploymentPlanner;
|
||||
}
|
||||
|
||||
public boolean getVolatileVm() {
|
||||
return isVolatile;
|
||||
}
|
||||
|
||||
public void setVolatileVm(boolean isVolatile) {
|
||||
this.isVolatile = isVolatile;
|
||||
}
|
||||
}
|
||||
|
||||
@ -68,6 +68,7 @@ public class ServiceOfferingJoinDaoImpl extends GenericDaoBase<ServiceOfferingJo
|
||||
: ServiceOffering.StorageType.shared.toString());
|
||||
offeringResponse.setOfferHa(offering.isOfferHA());
|
||||
offeringResponse.setLimitCpuUse(offering.isLimitCpuUse());
|
||||
offeringResponse.setVolatileVm(offering.getVolatileVm());
|
||||
offeringResponse.setTags(offering.getTags());
|
||||
offeringResponse.setDomain(offering.getDomainName());
|
||||
offeringResponse.setDomainId(offering.getDomainUuid());
|
||||
|
||||
@ -75,6 +75,9 @@ public class ServiceOfferingJoinVO extends BaseViewVO implements InternalIdentit
|
||||
@Column(name="limit_cpu_use")
|
||||
private boolean limitCpuUse;
|
||||
|
||||
@Column(name="is_volatile")
|
||||
private boolean volatileVm;
|
||||
|
||||
@Column(name="host_tag")
|
||||
private String hostTag;
|
||||
|
||||
@ -318,5 +321,13 @@ public class ServiceOfferingJoinVO extends BaseViewVO implements InternalIdentit
|
||||
this.deploymentPlanner = deploymentPlanner;
|
||||
}
|
||||
|
||||
public boolean getVolatileVm() {
|
||||
return volatileVm;
|
||||
}
|
||||
|
||||
public void setVolatileVm(boolean volatileVm) {
|
||||
this.volatileVm = volatileVm;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -1026,6 +1026,7 @@ CREATE VIEW `cloud`.`service_offering_view` AS
|
||||
service_offering.default_use,
|
||||
service_offering.vm_type,
|
||||
service_offering.sort_key,
|
||||
service_offering.is_volatile,
|
||||
service_offering.deployment_planner,
|
||||
domain.id domain_id,
|
||||
domain.uuid domain_uuid,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user