Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public class ClusterResponse extends BaseResponseWithAnnotations {

@SerializedName("capacity")
@Param(description = "the capacity of the Cluster", responseObject = CapacityResponse.class)
private List<CapacityResponse> capacitites;
private List<CapacityResponse> capacities;

@SerializedName("cpuovercommitratio")
@Param(description = "The cpu overcommit ratio of the cluster")
Expand Down Expand Up @@ -171,12 +171,12 @@ public void setManagedState(String managedState) {
this.managedState = managedState;
}

public List<CapacityResponse> getCapacitites() {
return capacitites;
public List<CapacityResponse> getCapacities() {
return capacities;
}

public void setCapacitites(ArrayList<CapacityResponse> arrayList) {
this.capacitites = arrayList;
public void setCapacities(ArrayList<CapacityResponse> arrayList) {
this.capacities = arrayList;
}

public void setCpuOvercommitRatio(String cpuovercommitratio) {
Expand Down Expand Up @@ -219,4 +219,32 @@ public void setResourceDetails(Map<String, String> details) {
public Map<String, String> getResourceDetails() {
return resourceDetails;
}

public String getCpuovercommitratio() {
return cpuovercommitratio;
}

public void setCpuovercommitratio(String cpuovercommitratio) {
this.cpuovercommitratio = cpuovercommitratio;
}

public String getMemoryovercommitratio() {
return memoryovercommitratio;
}

public void setMemoryovercommitratio(String memoryovercommitratio) {
this.memoryovercommitratio = memoryovercommitratio;
}

public String getOvm3vip() {
return ovm3vip;
}

public void setOvm3vip(String ovm3vip) {
this.ovm3vip = ovm3vip;
}

public void setCapacities(List<CapacityResponse> capacities) {
this.capacities = capacities;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ public class HostResponse extends BaseResponseWithAnnotations {

@SerializedName("ueficapability")
@Param(description = "true if the host has capability to support UEFI boot")
private Boolean uefiCapabilty;
private Boolean uefiCapability;

@SerializedName(ApiConstants.ENCRYPTION_SUPPORTED)
@Param(description = "true if the host supports encryption", since = "4.18")
Expand Down Expand Up @@ -711,7 +711,7 @@ public String getClusterType() {
return clusterType;
}

public Boolean isLocalStorageActive() {
public Boolean getLocalStorageActive() {
return localStorageActive;
}

Expand All @@ -731,7 +731,7 @@ public Boolean hasEnoughCapacity() {
return hasEnoughCapacity;
}

public Boolean isSuitableForMigration() {
public Boolean getSuitableForMigration() {
return suitableForMigration;
}

Expand All @@ -743,8 +743,8 @@ public Boolean getHaHost() {
return haHost;
}

public void setUefiCapabilty(Boolean hostCapability) {
this.uefiCapabilty = hostCapability;
public void setUefiCapability(Boolean hostCapability) {
this.uefiCapability = hostCapability;
}

public void setEncryptionSupported(Boolean encryptionSupported) {
Expand All @@ -762,4 +762,76 @@ public Boolean getIsTagARule() {
public void setIsTagARule(Boolean tagARule) {
isTagARule = tagARule;
}

public Long getCpuAllocatedValue() {
return cpuAllocatedValue;
}

public String getCpuAllocatedPercentage() {
return cpuAllocatedPercentage;
}

public String getCpuAllocatedWithOverprovisioning() {
return cpuAllocatedWithOverprovisioning;
}

public Double getCpuloadaverage() {
return cpuloadaverage;
}

public void setCpuloadaverage(Double cpuloadaverage) {
this.cpuloadaverage = cpuloadaverage;
}

public String getMemWithOverprovisioning() {
return memWithOverprovisioning;
}

public String getMemoryAllocatedPercentage() {
return memoryAllocatedPercentage;
}

public Long getMemoryAllocatedBytes() {
return memoryAllocatedBytes;
}

public Boolean getTagARule() {
return isTagARule;
}

public void setTagARule(Boolean tagARule) {
isTagARule = tagARule;
}

public Boolean getHasEnoughCapacity() {
return hasEnoughCapacity;
}

public void setDetails(Map details) {
this.details = details;
}

public String getAnnotation() {
return annotation;
}

public Date getLastAnnotated() {
return lastAnnotated;
}

public String getUsername() {
return username;
}

public Boolean getUefiCapability() {
return uefiCapability;
}

public Boolean getEncryptionSupported() {
return encryptionSupported;
}

public Boolean getInstanceConversionSupported() {
return instanceConversionSupported;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -167,4 +167,8 @@ public void setKernelVersion(String kernelVersion) {
public void setServiceIp(String serviceIp) {
this.serviceIp = serviceIp;
}

public String getKernelVersion() {
return kernelVersion;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -371,4 +371,16 @@ public String getNfsMountOpts() {
public void setNfsMountOpts(String nfsMountOpts) {
this.nfsMountOpts = nfsMountOpts;
}

public Long getAllocatedIops() {
return allocatedIops;
}

public Boolean getTagARule() {
return isTagARule;
}

public void setTagARule(Boolean tagARule) {
isTagARule = tagARule;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1133,4 +1133,8 @@ public void addVnfDetail(String key, String value) {
}
this.vnfDetails.put(key,value);
}

public void setIpAddress(String ipAddress) {
this.ipAddress = ipAddress;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public class VolumeResponse extends BaseResponseWithTagInformation implements Co

@SerializedName("destroyed")
@Param(description = "the boolean state of whether the volume is destroyed or not")
private Boolean destroyed;
private boolean destroyed;

@SerializedName(ApiConstants.SERVICE_OFFERING_ID)
@Param(description = "ID of the service offering for root disk")
Expand All @@ -227,15 +227,15 @@ public class VolumeResponse extends BaseResponseWithTagInformation implements Co

@SerializedName("isextractable")
@Param(description = "true if the volume is extractable, false otherwise")
private Boolean extractable;
private boolean extractable;

@SerializedName(ApiConstants.STATUS)
@Param(description = "the status of the volume")
private String status;

@SerializedName(ApiConstants.DISPLAY_VOLUME)
@Param(description = "an optional field whether to the display the volume to the end user or not.", authorized = {RoleType.Admin})
private Boolean displayVolume;
private boolean displayVolume;

@SerializedName(ApiConstants.PATH)
@Param(description = "the path of the volume")
Expand Down Expand Up @@ -318,11 +318,11 @@ public String getObjectId() {
return this.getId();
}

public Boolean isDestroyed() {
public boolean isDestroyed() {
return destroyed;
}

public void setDestroyed(Boolean destroyed) {
public void setDestroyed(boolean destroyed) {
this.destroyed = destroyed;
}

Expand Down Expand Up @@ -521,7 +521,7 @@ public void setServiceOfferingDisplayText(String serviceOfferingDisplayText) {
this.serviceOfferingDisplayText = serviceOfferingDisplayText;
}

public void setExtractable(Boolean extractable) {
public void setExtractable(boolean extractable) {
this.extractable = extractable;
}

Expand All @@ -539,7 +539,7 @@ public void setProjectName(String projectName) {
this.projectName = projectName;
}

public void setDisplayVolume(Boolean displayVm) {
public void setDisplayVolume(boolean displayVm) {
this.displayVolume = displayVm;
}

Expand Down Expand Up @@ -755,15 +755,15 @@ public String getServiceOfferingDisplayText() {
return serviceOfferingDisplayText;
}

public Boolean getExtractable() {
public boolean isExtractable() {
return extractable;
}

public String getStatus() {
return status;
}

public Boolean getDisplayVolume() {
public boolean isDisplayVolume() {
return displayVolume;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public class ZoneResponse extends BaseResponseWithAnnotations implements SetReso

@SerializedName("securitygroupsenabled")
@Param(description = "true if security groups support is enabled, false otherwise")
private Boolean securityGroupsEnabled;
private boolean securityGroupsEnabled;

@SerializedName("allocationstate")
@Param(description = "the allocation state of the cluster")
Expand All @@ -111,11 +111,11 @@ public class ZoneResponse extends BaseResponseWithAnnotations implements SetReso

@SerializedName("capacity")
@Param(description = "the capacity of the Zone", responseObject = CapacityResponse.class)
private List<CapacityResponse> capacitites;
private List<CapacityResponse> capacities;

@SerializedName(ApiConstants.LOCAL_STORAGE_ENABLED)
@Param(description = "true if local storage offering enabled, false otherwise")
private Boolean localStorageEnabled;
private boolean localStorageEnabled;

@SerializedName(ApiConstants.TAGS)
@Param(description = "the list of resource tags associated with zone.", responseObject = ResourceTagResponse.class, since = "4.3")
Expand Down Expand Up @@ -197,7 +197,7 @@ public void setNetworkType(String networkType) {
this.networkType = networkType;
}

public void setSecurityGroupsEnabled(Boolean securityGroupsEnabled) {
public void setSecurityGroupsEnabled(boolean securityGroupsEnabled) {
this.securityGroupsEnabled = securityGroupsEnabled;
}

Expand All @@ -213,15 +213,15 @@ public void setDhcpProvider(String dhcpProvider) {
this.dhcpProvider = dhcpProvider;
}

public void setCapacitites(List<CapacityResponse> capacitites) {
this.capacitites = capacitites;
public void setCapacities(List<CapacityResponse> capacities) {
this.capacities = capacities;
}

public void setDomainName(String domainName) {
this.domainName = domainName;
}

public void setLocalStorageEnabled(Boolean localStorageEnabled) {
public void setLocalStorageEnabled(boolean localStorageEnabled) {
this.localStorageEnabled = localStorageEnabled;
}

Expand Down Expand Up @@ -324,8 +324,8 @@ public String getDhcpProvider() {
return dhcpProvider;
}

public List<CapacityResponse> getCapacitites() {
return capacitites;
public List<CapacityResponse> getCapacities() {
return capacities;
}

public boolean isLocalStorageEnabled() {
Expand All @@ -340,6 +340,18 @@ public Map<String, String> getResourceDetails() {
return resourceDetails;
}

public Boolean getAllowUserSpecifyVRMtu() {
return allowUserSpecifyVRMtu;
}

public Integer getRouterPrivateInterfaceMaxMtu() {
return routerPrivateInterfaceMaxMtu;
}

public Integer getRouterPublicInterfaceMaxMtu() {
return routerPublicInterfaceMaxMtu;
}

@Override
public void setResourceIconResponse(ResourceIconResponse resourceIconResponse) {
this.resourceIconResponse = resourceIconResponse;
Expand Down
2 changes: 1 addition & 1 deletion server/src/main/java/com/cloud/api/ApiResponseHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -1511,7 +1511,7 @@ public ClusterResponse createClusterResponse(Cluster cluster, Boolean showCapaci
}
// Do it for stats as well.
capacityResponses.addAll(getStatsCapacityresponse(null, cluster.getId(), pod.getId(), pod.getDataCenterId()));
clusterResponse.setCapacitites(new ArrayList<CapacityResponse>(capacityResponses));
clusterResponse.setCapacities(new ArrayList<CapacityResponse>(capacityResponses));
}
clusterResponse.setHasAnnotation(annotationDao.hasAnnotations(cluster.getUuid(), AnnotationService.EntityType.CLUSTER.name(),
_accountMgr.isRootAdmin(CallContext.current().getCallingAccount().getId())));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public ZoneResponse newDataCenterResponse(ResponseView view, DataCenterJoinVO da
zoneResponse.setGuestCidrAddress(dataCenter.getGuestNetworkCidr());

if (showCapacities != null && showCapacities) {
zoneResponse.setCapacitites(ApiResponseHelper.getDataCenterCapacityResponse(dataCenter.getId()));
zoneResponse.setCapacities(ApiResponseHelper.getDataCenterCapacityResponse(dataCenter.getId()));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,9 @@ public HostResponse newHostResponse(HostJoinVO host, EnumSet<HostDetails> detail
Map<String, String> hostDetails = hostDetailsDao.findDetails(host.getId());
if (hostDetails != null) {
if (hostDetails.containsKey(Host.HOST_UEFI_ENABLE)) {
hostResponse.setUefiCapabilty(Boolean.parseBoolean((String) hostDetails.get(Host.HOST_UEFI_ENABLE)));
hostResponse.setUefiCapability(Boolean.parseBoolean((String) hostDetails.get(Host.HOST_UEFI_ENABLE)));
} else {
hostResponse.setUefiCapabilty(new Boolean(false));
hostResponse.setUefiCapability(new Boolean(false));
}
}
if (details.contains(HostDetails.all) && (host.getHypervisorType() == Hypervisor.HypervisorType.KVM ||
Expand Down