mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-3950: add "regionsecondaryenabled" in listCapabilitiesCmd
response.
This commit is contained in:
parent
d31e1f9c3f
commit
1e32096584
|
|
@ -53,6 +53,8 @@ public class ListCapabilitiesCmd extends BaseCmd {
|
|||
response.setAllowUsersCreateProjects((Boolean)capabilities.get("allowusercreateprojects"));
|
||||
response.setDiskOffMaxSize((Long)capabilities.get("customDiskOffMaxSize"));
|
||||
response.setKVMSnapshotEnabled((Boolean)capabilities.get("KVMSnapshotEnabled"));
|
||||
response.setRegionSecondaryEnabled((Boolean)capabilities.get("regionSecondaryEnabled"));
|
||||
|
||||
if (capabilities.containsKey("apiLimitInterval")) {
|
||||
response.setApiLimitInterval((Integer) capabilities.get("apiLimitInterval"));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -49,6 +49,9 @@ public class CapabilitiesResponse extends BaseResponse {
|
|||
@SerializedName("KVMsnapshotenabled") @Param(description = "true if snapshot is supported for KVM host, false otherwise")
|
||||
private boolean KVMSnapshotEnabled;
|
||||
|
||||
@SerializedName("regionsecondaryenabled") @Param(description = "true if region wide secondary is enabled, false otherwise")
|
||||
private boolean regionSecondaryEnabled;
|
||||
|
||||
@SerializedName("apilimitinterval") @Param(description="time interval (in seconds) to reset api count")
|
||||
private Integer apiLimitInterval;
|
||||
|
||||
|
|
@ -88,6 +91,10 @@ public class CapabilitiesResponse extends BaseResponse {
|
|||
this.KVMSnapshotEnabled = KVMSnapshotEnabled;
|
||||
}
|
||||
|
||||
public void setRegionSecondaryEnabled(boolean regionSecondaryEnabled){
|
||||
this.regionSecondaryEnabled = regionSecondaryEnabled;
|
||||
}
|
||||
|
||||
public void setApiLimitInterval(Integer apiLimitInterval) {
|
||||
this.apiLimitInterval = apiLimitInterval;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue