Skip to content

Commit d4e2067

Browse files
committed
extraconfig 추가
1 parent d9f87f5 commit d4e2067

File tree

13 files changed

+3562
-1039
lines changed

13 files changed

+3562
-1039
lines changed

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

Lines changed: 91 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -22,54 +22,81 @@
2222
import com.google.gson.annotations.SerializedName;
2323
import org.apache.cloudstack.api.BaseResponse;
2424
import org.apache.cloudstack.api.EntityReference;
25+
import org.apache.cloudstack.api.ApiConstants;
26+
import java.util.List;
27+
import java.util.Map;
2528

2629
@EntityReference(value = Host.class)
2730
public class ListVhbaDevicesResponse extends BaseResponse {
2831

29-
@SerializedName("vhbaname")
30-
@Param(description = "vHBA device name")
31-
private String vhbaName;
32+
@SerializedName(ApiConstants.HOSTDEVICES_NAME)
33+
@Param(description = "Allocated IP address")
34+
private List<String> hostDevicesName;
35+
36+
@SerializedName(ApiConstants.HOSTDEVICES_TEXT)
37+
@Param(description = "the ID of the pod the IP address belongs to")
38+
private List<String> hostDevicesText;
3239

3340
@SerializedName("parenthbaname")
3441
@Param(description = "Parent HBA device name")
3542
private String parentHbaName;
3643

37-
@SerializedName("wwnn")
38-
@Param(description = "World Wide Node Name")
39-
private String wwnn;
44+
@SerializedName("vmallocations")
45+
@Param(description = "Map of device to VM allocations")
46+
private Map<String, String> vmAllocations;
47+
48+
@SerializedName("devicetypes")
49+
@Param(description = "List of device types (physical/virtual)")
50+
private List<String> deviceTypes;
51+
52+
@SerializedName("parenthbanames")
53+
@Param(description = "List of parent HBA names for vHBA devices")
54+
private List<String> parentHbaNames;
4055

41-
@SerializedName("wwpn")
42-
@Param(description = "World Wide Port Name")
43-
private String wwpn;
56+
@SerializedName("wwnns")
57+
@Param(description = "List of World Wide Node Names")
58+
private List<String> wwnns;
4459

45-
@SerializedName("description")
46-
@Param(description = "vHBA device description")
47-
private String description;
60+
@SerializedName("wwpns")
61+
@Param(description = "List of World Wide Port Names")
62+
private List<String> wwpns;
4863

49-
@SerializedName("status")
50-
@Param(description = "vHBA device status")
51-
private String status;
64+
@SerializedName("descriptions")
65+
@Param(description = "List of vHBA device descriptions")
66+
private List<String> descriptions;
5267

53-
public ListVhbaDevicesResponse(String vhbaName, String parentHbaName, String wwnn, String wwpn, String description, String status) {
54-
this.vhbaName = vhbaName;
68+
@SerializedName("statuses")
69+
@Param(description = "List of vHBA device statuses")
70+
private List<String> statuses;
71+
72+
public ListVhbaDevicesResponse(List<String> hostDevicesName, List<String> hostDevicesText, String parentHbaName, List<String> wwnns, List<String> wwpns, List<String> descriptions, List<String> statuses) {
73+
this.hostDevicesName = hostDevicesName;
74+
this.hostDevicesText = hostDevicesText;
5575
this.parentHbaName = parentHbaName;
56-
this.wwnn = wwnn;
57-
this.wwpn = wwpn;
58-
this.description = description;
59-
this.status = status;
76+
this.wwnns = wwnns;
77+
this.wwpns = wwpns;
78+
this.descriptions = descriptions;
79+
this.statuses = statuses;
6080
}
6181

6282
public ListVhbaDevicesResponse() {
6383
super();
6484
setObjectName("listvhbadevices");
6585
}
6686

67-
public String getVhbaName() {
68-
return vhbaName;
87+
public List<String> getHostDevicesNames() {
88+
return hostDevicesName;
6989
}
7090

71-
public void setVhbaName(String vhbaName) {
72-
this.vhbaName = vhbaName;
91+
public List<String> getHostDevicesTexts() {
92+
return hostDevicesText;
93+
}
94+
public void setHostDevicesNames(List<String> hostDevicesName) {
95+
this.hostDevicesName = hostDevicesName;
96+
}
97+
98+
public void setHostDevicesTexts(List<String> hostDevicesText) {
99+
this.hostDevicesText = hostDevicesText;
73100
}
74101

75102
public String getParentHbaName() {
@@ -80,35 +107,58 @@ public void setParentHbaName(String parentHbaName) {
80107
this.parentHbaName = parentHbaName;
81108
}
82109

83-
public String getWwnn() {
84-
return wwnn;
110+
public List<String> getWwnns() {
111+
return wwnns;
112+
}
113+
114+
public void setWwnns(List<String> wwnns) {
115+
this.wwnns = wwnns;
85116
}
86117

87-
public void setWwnn(String wwnn) {
88-
this.wwnn = wwnn;
118+
public List<String> getWwpns() {
119+
return wwpns;
89120
}
90121

91-
public String getWwpn() {
92-
return wwpn;
122+
public void setWwpns(List<String> wwpns) {
123+
this.wwpns = wwpns;
93124
}
94125

95-
public void setWwpn(String wwpn) {
96-
this.wwpn = wwpn;
126+
public List<String> getDescriptions() {
127+
return descriptions;
97128
}
98129

99-
public String getDescription() {
100-
return description;
130+
public void setDescriptions(List<String> descriptions) {
131+
this.descriptions = descriptions;
101132
}
102133

103-
public void setDescription(String description) {
104-
this.description = description;
134+
public List<String> getStatuses() {
135+
return statuses;
105136
}
106137

107-
public String getStatus() {
108-
return status;
138+
public void setStatuses(List<String> statuses) {
139+
this.statuses = statuses;
140+
}
141+
142+
public void setVmAllocations(Map<String, String> vmAllocations) {
143+
this.vmAllocations = vmAllocations;
144+
}
145+
146+
public Map<String, String> getVmAllocations() {
147+
return this.vmAllocations;
148+
}
149+
150+
public void setDeviceTypes(List<String> deviceTypes) {
151+
this.deviceTypes = deviceTypes;
152+
}
153+
154+
public List<String> getDeviceTypes() {
155+
return this.deviceTypes;
156+
}
157+
public void setParentHbaNames(List<String> parentHbaNames) {
158+
this.parentHbaNames = parentHbaNames;
109159
}
110160

111-
public void setStatus(String status) {
112-
this.status = status;
161+
public List<String> getParentHbaNames() {
162+
return this.parentHbaNames;
113163
}
114164
}

0 commit comments

Comments
 (0)