mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-16 10:32:34 +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.setFeatured(template.isFeatured());
|
||||||
templateResponse.setExtractable(template.isExtractable() && !(template.getTemplateType() == TemplateType.SYSTEM));
|
templateResponse.setExtractable(template.isExtractable() && !(template.getTemplateType() == TemplateType.SYSTEM));
|
||||||
templateResponse.setPasswordEnabled(template.isEnablePassword());
|
templateResponse.setPasswordEnabled(template.isEnablePassword());
|
||||||
|
templateResponse.setDynamicallyScalable(template.isDynamicallyScalable());
|
||||||
templateResponse.setSshKeyEnabled(template.isEnableSshKey());
|
templateResponse.setSshKeyEnabled(template.isEnableSshKey());
|
||||||
templateResponse.setCrossZones(template.isCrossZones());
|
templateResponse.setCrossZones(template.isCrossZones());
|
||||||
templateResponse.setFormat(template.getFormat());
|
templateResponse.setFormat(template.getFormat());
|
||||||
|
|||||||
@ -95,6 +95,9 @@ public class TemplateJoinVO extends BaseViewVO implements ControlledViewEntity {
|
|||||||
@Column(name="enable_password")
|
@Column(name="enable_password")
|
||||||
private boolean enablePassword;
|
private boolean enablePassword;
|
||||||
|
|
||||||
|
@Column(name="dynamically_scalable")
|
||||||
|
private boolean dynamicallyScalable;
|
||||||
|
|
||||||
@Column(name="guest_os_id")
|
@Column(name="guest_os_id")
|
||||||
private long guestOSId;
|
private long guestOSId;
|
||||||
|
|
||||||
@ -750,6 +753,16 @@ public class TemplateJoinVO extends BaseViewVO implements ControlledViewEntity {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public boolean isDynamicallyScalable() {
|
||||||
|
return dynamicallyScalable;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDynamicallyScalable(boolean dynamicallyScalable) {
|
||||||
|
this.dynamicallyScalable = dynamicallyScalable;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public long getGuestOSId() {
|
public long getGuestOSId() {
|
||||||
return guestOSId;
|
return guestOSId;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1882,6 +1882,7 @@ CREATE VIEW `cloud`.`template_view` AS
|
|||||||
vm_template.checksum,
|
vm_template.checksum,
|
||||||
vm_template.display_text,
|
vm_template.display_text,
|
||||||
vm_template.enable_password,
|
vm_template.enable_password,
|
||||||
|
vm_template.dynamically_scalable,
|
||||||
vm_template.guest_os_id,
|
vm_template.guest_os_id,
|
||||||
guest_os.uuid guest_os_uuid,
|
guest_os.uuid guest_os_uuid,
|
||||||
guest_os.display_name guest_os_name,
|
guest_os.display_name guest_os_name,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user