Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion services/loadbalancer/oas_commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
29ed135519d2a7b1b043cd0c8243bb8d423a784b
a0507fbc8a743f261058ef285885928d2e8e0355
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ private static Class getClassByDiscriminator(
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.loadbalancer.model.GoogleProtobufAny
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.loadbalancer.model.HttpHealthChecks
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.loadbalancer.model.ListCredentialsResponse
.CustomTypeAdapterFactory());
Expand Down Expand Up @@ -172,6 +175,8 @@ private static Class getClassByDiscriminator(
new cloud.stackit.sdk.loadbalancer.model.Target.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.loadbalancer.model.TargetPool.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.loadbalancer.model.TlsConfig.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.loadbalancer.model.UpdateCredentialsPayload
.CustomTypeAdapterFactory());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,21 @@
value = "org.openapitools.codegen.languages.JavaClientCodegen",
comments = "Generator version: 7.19.0")
public class ActiveHealthCheck {
public static final String SERIALIZED_NAME_ALT_PORT = "altPort";

@SerializedName(SERIALIZED_NAME_ALT_PORT)
@javax.annotation.Nullable private Integer altPort;

public static final String SERIALIZED_NAME_HEALTHY_THRESHOLD = "healthyThreshold";

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

public static final String SERIALIZED_NAME_HTTP_HEALTH_CHECKS = "httpHealthChecks";

@SerializedName(SERIALIZED_NAME_HTTP_HEALTH_CHECKS)
@javax.annotation.Nullable private HttpHealthChecks httpHealthChecks;

public static final String SERIALIZED_NAME_INTERVAL = "interval";

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

public ActiveHealthCheck() {}

public ActiveHealthCheck altPort(@javax.annotation.Nullable Integer altPort) {
this.altPort = altPort;
return this;
}

/**
* Overrides the default port used for health check probes.
*
* @return altPort
*/
@javax.annotation.Nullable public Integer getAltPort() {
return altPort;
}

public void setAltPort(@javax.annotation.Nullable Integer altPort) {
this.altPort = altPort;
}

public ActiveHealthCheck healthyThreshold(@javax.annotation.Nullable Integer healthyThreshold) {
this.healthyThreshold = healthyThreshold;
return this;
Expand All @@ -80,6 +108,25 @@ public void setHealthyThreshold(@javax.annotation.Nullable Integer healthyThresh
this.healthyThreshold = healthyThreshold;
}

public ActiveHealthCheck httpHealthChecks(
@javax.annotation.Nullable HttpHealthChecks httpHealthChecks) {
this.httpHealthChecks = httpHealthChecks;
return this;
}

/**
* Get httpHealthChecks
*
* @return httpHealthChecks
*/
@javax.annotation.Nullable public HttpHealthChecks getHttpHealthChecks() {
return httpHealthChecks;
}

public void setHttpHealthChecks(@javax.annotation.Nullable HttpHealthChecks httpHealthChecks) {
this.httpHealthChecks = httpHealthChecks;
}

public ActiveHealthCheck interval(@javax.annotation.Nullable String interval) {
this.interval = interval;
return this;
Expand Down Expand Up @@ -206,7 +253,9 @@ public boolean equals(Object o) {
return false;
}
ActiveHealthCheck activeHealthCheck = (ActiveHealthCheck) o;
return Objects.equals(this.healthyThreshold, activeHealthCheck.healthyThreshold)
return Objects.equals(this.altPort, activeHealthCheck.altPort)
&& Objects.equals(this.healthyThreshold, activeHealthCheck.healthyThreshold)
&& Objects.equals(this.httpHealthChecks, activeHealthCheck.httpHealthChecks)
&& Objects.equals(this.interval, activeHealthCheck.interval)
&& Objects.equals(this.intervalJitter, activeHealthCheck.intervalJitter)
&& Objects.equals(this.timeout, activeHealthCheck.timeout)
Expand All @@ -218,7 +267,9 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
return Objects.hash(
altPort,
healthyThreshold,
httpHealthChecks,
interval,
intervalJitter,
timeout,
Expand All @@ -230,7 +281,9 @@ public int hashCode() {
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ActiveHealthCheck {\n");
sb.append(" altPort: ").append(toIndentedString(altPort)).append("\n");
sb.append(" healthyThreshold: ").append(toIndentedString(healthyThreshold)).append("\n");
sb.append(" httpHealthChecks: ").append(toIndentedString(httpHealthChecks)).append("\n");
sb.append(" interval: ").append(toIndentedString(interval)).append("\n");
sb.append(" intervalJitter: ").append(toIndentedString(intervalJitter)).append("\n");
sb.append(" timeout: ").append(toIndentedString(timeout)).append("\n");
Expand Down Expand Up @@ -263,7 +316,9 @@ private String toIndentedString(Object o) {
openapiFields =
new HashSet<String>(
Arrays.asList(
"altPort",
"healthyThreshold",
"httpHealthChecks",
"interval",
"intervalJitter",
"timeout",
Expand Down Expand Up @@ -291,6 +346,11 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
}
}
JsonObject jsonObj = jsonElement.getAsJsonObject();
// validate the optional field `httpHealthChecks`
if (jsonObj.get("httpHealthChecks") != null
&& !jsonObj.get("httpHealthChecks").isJsonNull()) {
HttpHealthChecks.validateJsonElement(jsonObj.get("httpHealthChecks"));
}
if ((jsonObj.get("interval") != null && !jsonObj.get("interval").isJsonNull())
&& !jsonObj.get("interval").isJsonPrimitive()) {
throw new IllegalArgumentException(
Expand Down
Loading