Skip to content

Commit a87778b

Browse files
Refactor KubernetesClusterResourceModifierActionWorker (#8801)
Co-authored-by: dahn <daan.hoogland@gmail.com>
1 parent 77cc75a commit a87778b

6 files changed

Lines changed: 158 additions & 112 deletions

File tree

api/src/main/java/org/apache/cloudstack/api/command/user/firewall/CreateFirewallRuleCmd.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,35 @@ public Long getIpAddressId() {
9494
return ipAddressId;
9595
}
9696

97+
public void setIpAddressId(Long ipAddressId) {
98+
this.ipAddressId = ipAddressId;
99+
}
100+
97101
@Override
98102
public String getProtocol() {
99103
return protocol.trim();
100104
}
101105

106+
public void setProtocol(String protocol) {
107+
this.protocol = protocol;
108+
}
109+
110+
public Integer getPublicStartPort() {
111+
return publicStartPort;
112+
}
113+
114+
public void setPublicStartPort(Integer publicStartPort) {
115+
this.publicStartPort = publicStartPort;
116+
}
117+
118+
public Integer getPublicEndPort() {
119+
return publicEndPort;
120+
}
121+
122+
public void setPublicEndPort(Integer publicEndPort) {
123+
this.publicEndPort = publicEndPort;
124+
}
125+
102126
@Override
103127
public List<String> getSourceCidrList() {
104128
if (cidrlist != null) {

api/src/main/java/org/apache/cloudstack/api/command/user/network/CreateNetworkACLCmd.java

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ public String getProtocol() {
113113
return p;
114114
}
115115

116+
public void setProtocol(String protocol) {
117+
this.protocol = protocol;
118+
}
119+
116120
public List<String> getSourceCidrList() {
117121
if (cidrlist != null) {
118122
return cidrlist;
@@ -136,6 +140,9 @@ public NetworkACLItem.TrafficType getTrafficType() {
136140
throw new InvalidParameterValueException("Invalid traffic type " + trafficType);
137141
}
138142

143+
public void setTrafficType(String trafficType) {
144+
this.trafficType = trafficType;
145+
}
139146
// ///////////////////////////////////////////////////
140147
// ///////////// API Implementation///////////////////
141148
// ///////////////////////////////////////////////////
@@ -144,15 +151,23 @@ public String getAction() {
144151
return action;
145152
}
146153

154+
public void setAction(String action) {
155+
this.action = action;
156+
}
157+
147158
public Integer getNumber() {
148159
return number;
149160
}
150161

151-
public Integer getSourcePortStart() {
162+
public Integer getPublicStartPort() {
152163
return publicStartPort;
153164
}
154165

155-
public Integer getSourcePortEnd() {
166+
public void setPublicStartPort(Integer publicStartPort) {
167+
this.publicStartPort = publicStartPort;
168+
}
169+
170+
public Integer getPublicEndPort() {
156171
if (publicEndPort == null) {
157172
if (publicStartPort != null) {
158173
return publicStartPort;
@@ -164,10 +179,18 @@ public Integer getSourcePortEnd() {
164179
return null;
165180
}
166181

182+
public void setPublicEndPort(Integer publicEndPort) {
183+
this.publicEndPort = publicEndPort;
184+
}
185+
167186
public Long getNetworkId() {
168187
return networkId;
169188
}
170189

190+
public void setNetworkId(Long networkId) {
191+
this.networkId = networkId;
192+
}
193+
171194
@Override
172195
public long getEntityOwnerId() {
173196
Account caller = CallContext.current().getCallingAccount();
@@ -207,6 +230,10 @@ public Long getACLId() {
207230
return aclId;
208231
}
209232

233+
public void setAclId(Long aclId) {
234+
this.aclId = aclId;
235+
}
236+
210237
public String getReason() {
211238
return reason;
212239
}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ public Long getId() {
102102
return id;
103103
}
104104

105+
public void setId(Long id) {
106+
this.id = id;
107+
}
108+
105109
public Long getHostId() {
106110
return hostId;
107111
}

api/src/main/java/org/apache/cloudstack/api/command/user/volume/ResizeVolumeCmd.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ public Long getId() {
101101
return getEntityId();
102102
}
103103

104+
public void setId(Long id) {
105+
this.id = id;
106+
}
107+
104108
public Long getMinIops() {
105109
return minIops;
106110
}
@@ -113,6 +117,10 @@ public Long getSize() {
113117
return size;
114118
}
115119

120+
public void setSize(Long size) {
121+
this.size = size;
122+
}
123+
116124
public boolean isShrinkOk() {
117125
return shrinkOk;
118126
}

0 commit comments

Comments
 (0)