mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-16 02:22:52 +01:00
CLOUDSTACK-2988: API - Template Response - add isdynamicallyscalable property.
This commit is contained in:
parent
da8b1ef81a
commit
ec42d7236c
@ -144,6 +144,7 @@ public class TemplateJoinDaoImpl extends GenericDaoBase<TemplateJoinVO, Long> im
|
||||
templateResponse.setFeatured(template.isFeatured());
|
||||
templateResponse.setExtractable(template.isExtractable() && !(template.getTemplateType() == TemplateType.SYSTEM));
|
||||
templateResponse.setPasswordEnabled(template.isEnablePassword());
|
||||
templateResponse.setDynamicallyScalable(template.isDynamicallyScalable());
|
||||
templateResponse.setSshKeyEnabled(template.isEnableSshKey());
|
||||
templateResponse.setCrossZones(template.isCrossZones());
|
||||
templateResponse.setFormat(template.getFormat());
|
||||
|
||||
@ -95,6 +95,9 @@ public class TemplateJoinVO extends BaseViewVO implements ControlledViewEntity {
|
||||
@Column(name="enable_password")
|
||||
private boolean enablePassword;
|
||||
|
||||
@Column(name="dynamically_scalable")
|
||||
private boolean dynamicallyScalable;
|
||||
|
||||
@Column(name="guest_os_id")
|
||||
private long guestOSId;
|
||||
|
||||
@ -748,7 +751,17 @@ public class TemplateJoinVO extends BaseViewVO implements ControlledViewEntity {
|
||||
this.enablePassword = enablePassword;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public boolean isDynamicallyScalable() {
|
||||
return dynamicallyScalable;
|
||||
}
|
||||
|
||||
public void setDynamicallyScalable(boolean dynamicallyScalable) {
|
||||
this.dynamicallyScalable = dynamicallyScalable;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public long getGuestOSId() {
|
||||
return guestOSId;
|
||||
|
||||
@ -1882,6 +1882,7 @@ CREATE VIEW `cloud`.`template_view` AS
|
||||
vm_template.checksum,
|
||||
vm_template.display_text,
|
||||
vm_template.enable_password,
|
||||
vm_template.dynamically_scalable,
|
||||
vm_template.guest_os_id,
|
||||
guest_os.uuid guest_os_uuid,
|
||||
guest_os.display_name guest_os_name,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user