Skip to content

Commit 5da315b

Browse files
Generator: Update SDK /services/loadbalancer (#461)
* Generate loadbalancer * Add changelogs Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de> --------- Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de> Co-authored-by: Alexander Dahmen <alexander.dahmen@inovex.de>
1 parent e71a55f commit 5da315b

File tree

8 files changed

+799
-3
lines changed

8 files changed

+799
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
- **Feature:** Add fields `usedCredentials` and `usedLoadbalancers` to `GetQuotaResponse`
1212
- **Improvement:** Support additional properties in models
1313
- `loadbalancer`:
14+
- [v0.3.0](services/loadbalancer/CHANGELOG.md#v030)
15+
- **Feature:** Add new fields `AltPort` and `HttpHealthCheck` to `ActiveHealthCheck`
1416
- [v0.2.1](services/loadbalancer/CHANGELOG.md#v021)
1517
- Bump dependency `org.apache.commons:commons-lang3` to `3.18.0`
1618
- Bump dependency `org.openapitools:jackson-databind-nullable` to `0.2.8`

services/loadbalancer/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## v0.3.0
2+
- **Feature:** Add new fields `AltPort` and `HttpHealthCheck` to `ActiveHealthCheck`
3+
14
## v0.2.1
25
- Bump dependency `org.apache.commons:commons-lang3` to `3.18.0`
36
- Bump dependency `org.openapitools:jackson-databind-nullable` to `0.2.8`

services/loadbalancer/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.2.1
1+
0.3.0

services/loadbalancer/oas_commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
29ed135519d2a7b1b043cd0c8243bb8d423a784b
1+
10774896634990c655a523f5f0fabd6e2be9e216

services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/JSON.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ private static Class getClassByDiscriminator(
119119
gsonBuilder.registerTypeAdapterFactory(
120120
new cloud.stackit.sdk.loadbalancer.model.GoogleProtobufAny
121121
.CustomTypeAdapterFactory());
122+
gsonBuilder.registerTypeAdapterFactory(
123+
new cloud.stackit.sdk.loadbalancer.model.HttpHealthChecks
124+
.CustomTypeAdapterFactory());
122125
gsonBuilder.registerTypeAdapterFactory(
123126
new cloud.stackit.sdk.loadbalancer.model.ListCredentialsResponse
124127
.CustomTypeAdapterFactory());
@@ -172,6 +175,8 @@ private static Class getClassByDiscriminator(
172175
new cloud.stackit.sdk.loadbalancer.model.Target.CustomTypeAdapterFactory());
173176
gsonBuilder.registerTypeAdapterFactory(
174177
new cloud.stackit.sdk.loadbalancer.model.TargetPool.CustomTypeAdapterFactory());
178+
gsonBuilder.registerTypeAdapterFactory(
179+
new cloud.stackit.sdk.loadbalancer.model.TlsConfig.CustomTypeAdapterFactory());
175180
gsonBuilder.registerTypeAdapterFactory(
176181
new cloud.stackit.sdk.loadbalancer.model.UpdateCredentialsPayload
177182
.CustomTypeAdapterFactory());

services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/ActiveHealthCheck.java

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,21 @@
3535
value = "org.openapitools.codegen.languages.JavaClientCodegen",
3636
comments = "Generator version: 7.19.0")
3737
public class ActiveHealthCheck {
38+
public static final String SERIALIZED_NAME_ALT_PORT = "altPort";
39+
40+
@SerializedName(SERIALIZED_NAME_ALT_PORT)
41+
@javax.annotation.Nullable private Integer altPort;
42+
3843
public static final String SERIALIZED_NAME_HEALTHY_THRESHOLD = "healthyThreshold";
3944

4045
@SerializedName(SERIALIZED_NAME_HEALTHY_THRESHOLD)
4146
@javax.annotation.Nullable private Integer healthyThreshold;
4247

48+
public static final String SERIALIZED_NAME_HTTP_HEALTH_CHECKS = "httpHealthChecks";
49+
50+
@SerializedName(SERIALIZED_NAME_HTTP_HEALTH_CHECKS)
51+
@javax.annotation.Nullable private HttpHealthChecks httpHealthChecks;
52+
4353
public static final String SERIALIZED_NAME_INTERVAL = "interval";
4454

4555
@SerializedName(SERIALIZED_NAME_INTERVAL)
@@ -62,6 +72,24 @@ public class ActiveHealthCheck {
6272

6373
public ActiveHealthCheck() {}
6474

75+
public ActiveHealthCheck altPort(@javax.annotation.Nullable Integer altPort) {
76+
this.altPort = altPort;
77+
return this;
78+
}
79+
80+
/**
81+
* Overrides the default port used for health check probes.
82+
*
83+
* @return altPort
84+
*/
85+
@javax.annotation.Nullable public Integer getAltPort() {
86+
return altPort;
87+
}
88+
89+
public void setAltPort(@javax.annotation.Nullable Integer altPort) {
90+
this.altPort = altPort;
91+
}
92+
6593
public ActiveHealthCheck healthyThreshold(@javax.annotation.Nullable Integer healthyThreshold) {
6694
this.healthyThreshold = healthyThreshold;
6795
return this;
@@ -80,6 +108,25 @@ public void setHealthyThreshold(@javax.annotation.Nullable Integer healthyThresh
80108
this.healthyThreshold = healthyThreshold;
81109
}
82110

111+
public ActiveHealthCheck httpHealthChecks(
112+
@javax.annotation.Nullable HttpHealthChecks httpHealthChecks) {
113+
this.httpHealthChecks = httpHealthChecks;
114+
return this;
115+
}
116+
117+
/**
118+
* Get httpHealthChecks
119+
*
120+
* @return httpHealthChecks
121+
*/
122+
@javax.annotation.Nullable public HttpHealthChecks getHttpHealthChecks() {
123+
return httpHealthChecks;
124+
}
125+
126+
public void setHttpHealthChecks(@javax.annotation.Nullable HttpHealthChecks httpHealthChecks) {
127+
this.httpHealthChecks = httpHealthChecks;
128+
}
129+
83130
public ActiveHealthCheck interval(@javax.annotation.Nullable String interval) {
84131
this.interval = interval;
85132
return this;
@@ -206,7 +253,9 @@ public boolean equals(Object o) {
206253
return false;
207254
}
208255
ActiveHealthCheck activeHealthCheck = (ActiveHealthCheck) o;
209-
return Objects.equals(this.healthyThreshold, activeHealthCheck.healthyThreshold)
256+
return Objects.equals(this.altPort, activeHealthCheck.altPort)
257+
&& Objects.equals(this.healthyThreshold, activeHealthCheck.healthyThreshold)
258+
&& Objects.equals(this.httpHealthChecks, activeHealthCheck.httpHealthChecks)
210259
&& Objects.equals(this.interval, activeHealthCheck.interval)
211260
&& Objects.equals(this.intervalJitter, activeHealthCheck.intervalJitter)
212261
&& Objects.equals(this.timeout, activeHealthCheck.timeout)
@@ -218,7 +267,9 @@ public boolean equals(Object o) {
218267
@Override
219268
public int hashCode() {
220269
return Objects.hash(
270+
altPort,
221271
healthyThreshold,
272+
httpHealthChecks,
222273
interval,
223274
intervalJitter,
224275
timeout,
@@ -230,7 +281,9 @@ public int hashCode() {
230281
public String toString() {
231282
StringBuilder sb = new StringBuilder();
232283
sb.append("class ActiveHealthCheck {\n");
284+
sb.append(" altPort: ").append(toIndentedString(altPort)).append("\n");
233285
sb.append(" healthyThreshold: ").append(toIndentedString(healthyThreshold)).append("\n");
286+
sb.append(" httpHealthChecks: ").append(toIndentedString(httpHealthChecks)).append("\n");
234287
sb.append(" interval: ").append(toIndentedString(interval)).append("\n");
235288
sb.append(" intervalJitter: ").append(toIndentedString(intervalJitter)).append("\n");
236289
sb.append(" timeout: ").append(toIndentedString(timeout)).append("\n");
@@ -263,7 +316,9 @@ private String toIndentedString(Object o) {
263316
openapiFields =
264317
new HashSet<String>(
265318
Arrays.asList(
319+
"altPort",
266320
"healthyThreshold",
321+
"httpHealthChecks",
267322
"interval",
268323
"intervalJitter",
269324
"timeout",
@@ -291,6 +346,11 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
291346
}
292347
}
293348
JsonObject jsonObj = jsonElement.getAsJsonObject();
349+
// validate the optional field `httpHealthChecks`
350+
if (jsonObj.get("httpHealthChecks") != null
351+
&& !jsonObj.get("httpHealthChecks").isJsonNull()) {
352+
HttpHealthChecks.validateJsonElement(jsonObj.get("httpHealthChecks"));
353+
}
294354
if ((jsonObj.get("interval") != null && !jsonObj.get("interval").isJsonNull())
295355
&& !jsonObj.get("interval").isJsonPrimitive()) {
296356
throw new IllegalArgumentException(

0 commit comments

Comments
 (0)