Skip to content

Commit b73f634

Browse files
committed
Merge branch '4.19'
2 parents 5baac44 + 6fbdda9 commit b73f634

File tree

23 files changed

+763
-178
lines changed

23 files changed

+763
-178
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
fail-fast: false
3636
matrix:
3737
tests: [ "smoke/test_accounts
38+
smoke/test_account_access
3839
smoke/test_affinity_groups
3940
smoke/test_affinity_groups_projects
4041
smoke/test_annotations

api/src/main/java/org/apache/cloudstack/api/response/ClusterResponse.java

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public class ClusterResponse extends BaseResponseWithAnnotations {
7373

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

7878
@SerializedName("cpuovercommitratio")
7979
@Param(description = "The cpu overcommit ratio of the cluster")
@@ -171,12 +171,12 @@ public void setManagedState(String managedState) {
171171
this.managedState = managedState;
172172
}
173173

174-
public List<CapacityResponse> getCapacitites() {
175-
return capacitites;
174+
public List<CapacityResponse> getCapacities() {
175+
return capacities;
176176
}
177177

178-
public void setCapacitites(ArrayList<CapacityResponse> arrayList) {
179-
this.capacitites = arrayList;
178+
public void setCapacities(ArrayList<CapacityResponse> arrayList) {
179+
this.capacities = arrayList;
180180
}
181181

182182
public void setCpuOvercommitRatio(String cpuovercommitratio) {
@@ -219,4 +219,32 @@ public void setResourceDetails(Map<String, String> details) {
219219
public Map<String, String> getResourceDetails() {
220220
return resourceDetails;
221221
}
222+
223+
public String getCpuovercommitratio() {
224+
return cpuovercommitratio;
225+
}
226+
227+
public void setCpuovercommitratio(String cpuovercommitratio) {
228+
this.cpuovercommitratio = cpuovercommitratio;
229+
}
230+
231+
public String getMemoryovercommitratio() {
232+
return memoryovercommitratio;
233+
}
234+
235+
public void setMemoryovercommitratio(String memoryovercommitratio) {
236+
this.memoryovercommitratio = memoryovercommitratio;
237+
}
238+
239+
public String getOvm3vip() {
240+
return ovm3vip;
241+
}
242+
243+
public void setOvm3vip(String ovm3vip) {
244+
this.ovm3vip = ovm3vip;
245+
}
246+
247+
public void setCapacities(List<CapacityResponse> capacities) {
248+
this.capacities = capacities;
249+
}
222250
}

api/src/main/java/org/apache/cloudstack/api/response/HostResponse.java

Lines changed: 77 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ public class HostResponse extends BaseResponseWithAnnotations {
280280

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

285285
@SerializedName(ApiConstants.ENCRYPTION_SUPPORTED)
286286
@Param(description = "true if the host supports encryption", since = "4.18")
@@ -735,7 +735,7 @@ public String getClusterType() {
735735
return clusterType;
736736
}
737737

738-
public Boolean isLocalStorageActive() {
738+
public Boolean getLocalStorageActive() {
739739
return localStorageActive;
740740
}
741741

@@ -755,7 +755,7 @@ public Boolean hasEnoughCapacity() {
755755
return hasEnoughCapacity;
756756
}
757757

758-
public Boolean isSuitableForMigration() {
758+
public Boolean getSuitableForMigration() {
759759
return suitableForMigration;
760760
}
761761

@@ -767,8 +767,8 @@ public Boolean getHaHost() {
767767
return haHost;
768768
}
769769

770-
public void setUefiCapabilty(Boolean hostCapability) {
771-
this.uefiCapabilty = hostCapability;
770+
public void setUefiCapability(Boolean hostCapability) {
771+
this.uefiCapability = hostCapability;
772772
}
773773

774774
public void setEncryptionSupported(Boolean encryptionSupported) {
@@ -786,4 +786,76 @@ public Boolean getIsTagARule() {
786786
public void setIsTagARule(Boolean tagARule) {
787787
isTagARule = tagARule;
788788
}
789+
790+
public Long getCpuAllocatedValue() {
791+
return cpuAllocatedValue;
792+
}
793+
794+
public String getCpuAllocatedPercentage() {
795+
return cpuAllocatedPercentage;
796+
}
797+
798+
public String getCpuAllocatedWithOverprovisioning() {
799+
return cpuAllocatedWithOverprovisioning;
800+
}
801+
802+
public Double getCpuloadaverage() {
803+
return cpuloadaverage;
804+
}
805+
806+
public void setCpuloadaverage(Double cpuloadaverage) {
807+
this.cpuloadaverage = cpuloadaverage;
808+
}
809+
810+
public String getMemWithOverprovisioning() {
811+
return memWithOverprovisioning;
812+
}
813+
814+
public String getMemoryAllocatedPercentage() {
815+
return memoryAllocatedPercentage;
816+
}
817+
818+
public Long getMemoryAllocatedBytes() {
819+
return memoryAllocatedBytes;
820+
}
821+
822+
public Boolean getTagARule() {
823+
return isTagARule;
824+
}
825+
826+
public void setTagARule(Boolean tagARule) {
827+
isTagARule = tagARule;
828+
}
829+
830+
public Boolean getHasEnoughCapacity() {
831+
return hasEnoughCapacity;
832+
}
833+
834+
public void setDetails(Map details) {
835+
this.details = details;
836+
}
837+
838+
public String getAnnotation() {
839+
return annotation;
840+
}
841+
842+
public Date getLastAnnotated() {
843+
return lastAnnotated;
844+
}
845+
846+
public String getUsername() {
847+
return username;
848+
}
849+
850+
public Boolean getUefiCapability() {
851+
return uefiCapability;
852+
}
853+
854+
public Boolean getEncryptionSupported() {
855+
return encryptionSupported;
856+
}
857+
858+
public Boolean getInstanceConversionSupported() {
859+
return instanceConversionSupported;
860+
}
789861
}

api/src/main/java/org/apache/cloudstack/api/response/ManagementServerResponse.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,4 +167,8 @@ public void setKernelVersion(String kernelVersion) {
167167
public void setServiceIp(String serviceIp) {
168168
this.serviceIp = serviceIp;
169169
}
170+
171+
public String getKernelVersion() {
172+
return kernelVersion;
173+
}
170174
}

api/src/main/java/org/apache/cloudstack/api/response/StoragePoolResponse.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,4 +371,16 @@ public String getNfsMountOpts() {
371371
public void setNfsMountOpts(String nfsMountOpts) {
372372
this.nfsMountOpts = nfsMountOpts;
373373
}
374+
375+
public Long getAllocatedIops() {
376+
return allocatedIops;
377+
}
378+
379+
public Boolean getTagARule() {
380+
return isTagARule;
381+
}
382+
383+
public void setTagARule(Boolean tagARule) {
384+
isTagARule = tagARule;
385+
}
374386
}

api/src/main/java/org/apache/cloudstack/api/response/UserVmResponse.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,4 +1133,8 @@ public void addVnfDetail(String key, String value) {
11331133
}
11341134
this.vnfDetails.put(key,value);
11351135
}
1136+
1137+
public void setIpAddress(String ipAddress) {
1138+
this.ipAddress = ipAddress;
1139+
}
11361140
}

api/src/main/java/org/apache/cloudstack/api/response/VolumeResponse.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public class VolumeResponse extends BaseResponseWithTagInformation implements Co
211211

212212
@SerializedName("destroyed")
213213
@Param(description = "the boolean state of whether the volume is destroyed or not")
214-
private Boolean destroyed;
214+
private boolean destroyed;
215215

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

228228
@SerializedName("isextractable")
229229
@Param(description = "true if the volume is extractable, false otherwise")
230-
private Boolean extractable;
230+
private boolean extractable;
231231

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

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

240240
@SerializedName(ApiConstants.PATH)
241241
@Param(description = "the path of the volume")
@@ -318,11 +318,11 @@ public String getObjectId() {
318318
return this.getId();
319319
}
320320

321-
public Boolean isDestroyed() {
321+
public boolean isDestroyed() {
322322
return destroyed;
323323
}
324324

325-
public void setDestroyed(Boolean destroyed) {
325+
public void setDestroyed(boolean destroyed) {
326326
this.destroyed = destroyed;
327327
}
328328

@@ -521,7 +521,7 @@ public void setServiceOfferingDisplayText(String serviceOfferingDisplayText) {
521521
this.serviceOfferingDisplayText = serviceOfferingDisplayText;
522522
}
523523

524-
public void setExtractable(Boolean extractable) {
524+
public void setExtractable(boolean extractable) {
525525
this.extractable = extractable;
526526
}
527527

@@ -539,7 +539,7 @@ public void setProjectName(String projectName) {
539539
this.projectName = projectName;
540540
}
541541

542-
public void setDisplayVolume(Boolean displayVm) {
542+
public void setDisplayVolume(boolean displayVm) {
543543
this.displayVolume = displayVm;
544544
}
545545

@@ -755,15 +755,15 @@ public String getServiceOfferingDisplayText() {
755755
return serviceOfferingDisplayText;
756756
}
757757

758-
public Boolean getExtractable() {
758+
public boolean isExtractable() {
759759
return extractable;
760760
}
761761

762762
public String getStatus() {
763763
return status;
764764
}
765765

766-
public Boolean getDisplayVolume() {
766+
public boolean isDisplayVolume() {
767767
return displayVolume;
768768
}
769769

api/src/main/java/org/apache/cloudstack/api/response/ZoneResponse.java

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public class ZoneResponse extends BaseResponseWithAnnotations implements SetReso
9595

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

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

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

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

120120
@SerializedName(ApiConstants.TAGS)
121121
@Param(description = "the list of resource tags associated with zone.", responseObject = ResourceTagResponse.class, since = "4.3")
@@ -201,7 +201,7 @@ public void setNetworkType(String networkType) {
201201
this.networkType = networkType;
202202
}
203203

204-
public void setSecurityGroupsEnabled(Boolean securityGroupsEnabled) {
204+
public void setSecurityGroupsEnabled(boolean securityGroupsEnabled) {
205205
this.securityGroupsEnabled = securityGroupsEnabled;
206206
}
207207

@@ -217,15 +217,15 @@ public void setDhcpProvider(String dhcpProvider) {
217217
this.dhcpProvider = dhcpProvider;
218218
}
219219

220-
public void setCapacitites(List<CapacityResponse> capacitites) {
221-
this.capacitites = capacitites;
220+
public void setCapacities(List<CapacityResponse> capacities) {
221+
this.capacities = capacities;
222222
}
223223

224224
public void setDomainName(String domainName) {
225225
this.domainName = domainName;
226226
}
227227

228-
public void setLocalStorageEnabled(Boolean localStorageEnabled) {
228+
public void setLocalStorageEnabled(boolean localStorageEnabled) {
229229
this.localStorageEnabled = localStorageEnabled;
230230
}
231231

@@ -328,8 +328,8 @@ public String getDhcpProvider() {
328328
return dhcpProvider;
329329
}
330330

331-
public List<CapacityResponse> getCapacitites() {
332-
return capacitites;
331+
public List<CapacityResponse> getCapacities() {
332+
return capacities;
333333
}
334334

335335
public boolean isLocalStorageEnabled() {
@@ -344,6 +344,18 @@ public Map<String, String> getResourceDetails() {
344344
return resourceDetails;
345345
}
346346

347+
public Boolean getAllowUserSpecifyVRMtu() {
348+
return allowUserSpecifyVRMtu;
349+
}
350+
351+
public Integer getRouterPrivateInterfaceMaxMtu() {
352+
return routerPrivateInterfaceMaxMtu;
353+
}
354+
355+
public Integer getRouterPublicInterfaceMaxMtu() {
356+
return routerPublicInterfaceMaxMtu;
357+
}
358+
347359
@Override
348360
public void setResourceIconResponse(ResourceIconResponse resourceIconResponse) {
349361
this.resourceIconResponse = resourceIconResponse;

0 commit comments

Comments
 (0)