Skip to content

Commit 140445c

Browse files
committed
Merge remote-tracking branch 'apache/4.19' into simplify-role-change-check
2 parents 3ccd65d + 1a403f1 commit 140445c

File tree

69 files changed

+1890
-630
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+1890
-630
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/ApiConstants.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,7 @@ public class ApiConstants {
576576
public static final String AGGREGATE_NAME = "aggregatename";
577577
public static final String POOL_NAME = "poolname";
578578
public static final String VOLUME_NAME = "volumename";
579+
public static final String VOLUME_STATE = "volumestate";
579580
public static final String SNAPSHOT_POLICY = "snapshotpolicy";
580581
public static final String SNAPSHOT_RESERVATION = "snapshotreservation";
581582
public static final String IP_NETWORK_LIST = "iptonetworklist";

api/src/main/java/org/apache/cloudstack/api/command/user/vm/UpdateVMCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public class UpdateVMCmd extends BaseCustomIdCmd implements SecurityGroupAction,
143143
+ " Example: dhcpoptionsnetworklist[0].dhcp:114=url&dhcpoptionsetworklist[0].networkid=networkid&dhcpoptionsetworklist[0].dhcp:66=www.test.com")
144144
private Map dhcpOptionsNetworkList;
145145

146-
@Parameter(name = ApiConstants.EXTRA_CONFIG, type = CommandType.STRING, since = "4.12", description = "an optional URL encoded string that can be passed to the virtual machine upon successful deployment", authorized = { RoleType.Admin }, length = 5120)
146+
@Parameter(name = ApiConstants.EXTRA_CONFIG, type = CommandType.STRING, since = "4.12", description = "an optional URL encoded string that can be passed to the virtual machine upon successful deployment", length = 5120)
147147
private String extraConfig;
148148

149149
/////////////////////////////////////////////////////

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
@@ -272,7 +272,7 @@ public class HostResponse extends BaseResponseWithAnnotations {
272272

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

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

714-
public Boolean isLocalStorageActive() {
714+
public Boolean getLocalStorageActive() {
715715
return localStorageActive;
716716
}
717717

@@ -731,7 +731,7 @@ public Boolean hasEnoughCapacity() {
731731
return hasEnoughCapacity;
732732
}
733733

734-
public Boolean isSuitableForMigration() {
734+
public Boolean getSuitableForMigration() {
735735
return suitableForMigration;
736736
}
737737

@@ -743,8 +743,8 @@ public Boolean getHaHost() {
743743
return haHost;
744744
}
745745

746-
public void setUefiCapabilty(Boolean hostCapability) {
747-
this.uefiCapabilty = hostCapability;
746+
public void setUefiCapability(Boolean hostCapability) {
747+
this.uefiCapability = hostCapability;
748748
}
749749

750750
public void setEncryptionSupported(Boolean encryptionSupported) {
@@ -762,4 +762,76 @@ public Boolean getIsTagARule() {
762762
public void setIsTagARule(Boolean tagARule) {
763763
isTagARule = tagARule;
764764
}
765+
766+
public Long getCpuAllocatedValue() {
767+
return cpuAllocatedValue;
768+
}
769+
770+
public String getCpuAllocatedPercentage() {
771+
return cpuAllocatedPercentage;
772+
}
773+
774+
public String getCpuAllocatedWithOverprovisioning() {
775+
return cpuAllocatedWithOverprovisioning;
776+
}
777+
778+
public Double getCpuloadaverage() {
779+
return cpuloadaverage;
780+
}
781+
782+
public void setCpuloadaverage(Double cpuloadaverage) {
783+
this.cpuloadaverage = cpuloadaverage;
784+
}
785+
786+
public String getMemWithOverprovisioning() {
787+
return memWithOverprovisioning;
788+
}
789+
790+
public String getMemoryAllocatedPercentage() {
791+
return memoryAllocatedPercentage;
792+
}
793+
794+
public Long getMemoryAllocatedBytes() {
795+
return memoryAllocatedBytes;
796+
}
797+
798+
public Boolean getTagARule() {
799+
return isTagARule;
800+
}
801+
802+
public void setTagARule(Boolean tagARule) {
803+
isTagARule = tagARule;
804+
}
805+
806+
public Boolean getHasEnoughCapacity() {
807+
return hasEnoughCapacity;
808+
}
809+
810+
public void setDetails(Map details) {
811+
this.details = details;
812+
}
813+
814+
public String getAnnotation() {
815+
return annotation;
816+
}
817+
818+
public Date getLastAnnotated() {
819+
return lastAnnotated;
820+
}
821+
822+
public String getUsername() {
823+
return username;
824+
}
825+
826+
public Boolean getUefiCapability() {
827+
return uefiCapability;
828+
}
829+
830+
public Boolean getEncryptionSupported() {
831+
return encryptionSupported;
832+
}
833+
834+
public Boolean getInstanceConversionSupported() {
835+
return instanceConversionSupported;
836+
}
765837
}

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/SnapshotResponse.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ public class SnapshotResponse extends BaseResponseWithTagInformation implements
7171
@Param(description = "type of the disk volume")
7272
private String volumeType;
7373

74+
@SerializedName(ApiConstants.VOLUME_STATE)
75+
@Param(description = "state of the disk volume")
76+
private String volumeState;
77+
7478
@SerializedName(ApiConstants.CREATED)
7579
@Param(description = " the date the snapshot was created")
7680
private Date created;
@@ -199,6 +203,10 @@ public void setVolumeType(String volumeType) {
199203
this.volumeType = volumeType;
200204
}
201205

206+
public void setVolumeState(String volumeState) {
207+
this.volumeState = volumeState;
208+
}
209+
202210
public void setCreated(Date created) {
203211
this.created = created;
204212
}

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

0 commit comments

Comments
 (0)