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
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cloud.stackit.sdk.alb.examples;

import cloud.stackit.sdk.alb.api.AlbApi;
import cloud.stackit.sdk.alb.model.*;
import cloud.stackit.sdk.alb.v2api.api.AlbApi;
import cloud.stackit.sdk.alb.v2api.model.*;
import cloud.stackit.sdk.core.exception.ApiException;
import java.io.IOException;
import java.net.HttpURLConnection;
Expand Down
7 changes: 0 additions & 7 deletions services/alb/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
# STACKIT Java SDK for STACKIT Application Load Balancer API

- API version: 2.0.0

This API offers an interface to provision and manage Application Load Balancers in your STACKIT project.This solution offers modern L7 load balancing. Current features include TLS, path and prefix based routing aswell as routing based on headers, query parameters and keeping connections persistent with cookies and web sockets.

For each Application Load Balancer provided, two VMs are deployed in your STACKIT project and are subject to fees.


This package is part of the STACKIT Java SDK. For additional information, please visit the [GitHub repository](https://github.com/stackitcloud/stackit-sdk-java) of the SDK.

## Installation from Maven Central (recommended)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Do not edit the class manually.
*/

package cloud.stackit.sdk.alb;
package cloud.stackit.sdk.alb.v2api;

import cloud.stackit.sdk.core.exception.ApiException;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Do not edit the class manually.
*/

package cloud.stackit.sdk.alb;
package cloud.stackit.sdk.alb.v2api;

import cloud.stackit.sdk.core.KeyFlowAuthenticator;
import cloud.stackit.sdk.core.config.CoreConfiguration;
Expand Down Expand Up @@ -357,7 +357,7 @@ public DateFormat getDateFormat() {
* Setter for the field <code>dateFormat</code>.
*
* @param dateFormat a {@link java.text.DateFormat} object
* @return a {@link cloud.stackit.sdk.alb.ApiClient} object
* @return a {@link cloud.stackit.sdk.alb.v2api.ApiClient} object
*/
public ApiClient setDateFormat(DateFormat dateFormat) {
JSON.setDateFormat(dateFormat);
Expand All @@ -368,7 +368,7 @@ public ApiClient setDateFormat(DateFormat dateFormat) {
* Set SqlDateFormat.
*
* @param dateFormat a {@link java.text.DateFormat} object
* @return a {@link cloud.stackit.sdk.alb.ApiClient} object
* @return a {@link cloud.stackit.sdk.alb.v2api.ApiClient} object
*/
public ApiClient setSqlDateFormat(DateFormat dateFormat) {
JSON.setSqlDateFormat(dateFormat);
Expand All @@ -379,7 +379,7 @@ public ApiClient setSqlDateFormat(DateFormat dateFormat) {
* Set OffsetDateTimeFormat.
*
* @param dateFormat a {@link java.time.format.DateTimeFormatter} object
* @return a {@link cloud.stackit.sdk.alb.ApiClient} object
* @return a {@link cloud.stackit.sdk.alb.v2api.ApiClient} object
*/
public ApiClient setOffsetDateTimeFormat(DateTimeFormatter dateFormat) {
JSON.setOffsetDateTimeFormat(dateFormat);
Expand All @@ -390,7 +390,7 @@ public ApiClient setOffsetDateTimeFormat(DateTimeFormatter dateFormat) {
* Set LocalDateFormat.
*
* @param dateFormat a {@link java.time.format.DateTimeFormatter} object
* @return a {@link cloud.stackit.sdk.alb.ApiClient} object
* @return a {@link cloud.stackit.sdk.alb.v2api.ApiClient} object
*/
public ApiClient setLocalDateFormat(DateTimeFormatter dateFormat) {
JSON.setLocalDateFormat(dateFormat);
Expand All @@ -401,7 +401,7 @@ public ApiClient setLocalDateFormat(DateTimeFormatter dateFormat) {
* Set LenientOnJson.
*
* @param lenientOnJson a boolean
* @return a {@link cloud.stackit.sdk.alb.ApiClient} object
* @return a {@link cloud.stackit.sdk.alb.v2api.ApiClient} object
*/
public ApiClient setLenientOnJson(boolean lenientOnJson) {
JSON.setLenientOnJson(lenientOnJson);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Do not edit the class manually.
*/

package cloud.stackit.sdk.alb;
package cloud.stackit.sdk.alb.v2api;

import java.util.List;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Do not edit the class manually.
*/

package cloud.stackit.sdk.alb;
package cloud.stackit.sdk.alb.v2api;

import java.io.IOException;
import okhttp3.*;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Do not edit the class manually.
*/

package cloud.stackit.sdk.alb;
package cloud.stackit.sdk.alb.v2api;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
Expand Down Expand Up @@ -96,95 +96,103 @@ private static Class getClassByDiscriminator(
gsonBuilder.registerTypeAdapter(LocalDate.class, localDateTypeAdapter);
gsonBuilder.registerTypeAdapter(byte[].class, byteArrayAdapter);
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.ActiveHealthCheck.CustomTypeAdapterFactory());
new cloud.stackit.sdk.alb.v2api.model.ActiveHealthCheck.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.CertificateConfig.CustomTypeAdapterFactory());
new cloud.stackit.sdk.alb.v2api.model.CertificateConfig.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.CookiePersistence.CustomTypeAdapterFactory());
new cloud.stackit.sdk.alb.v2api.model.CookiePersistence.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.CreateCredentialsPayload
new cloud.stackit.sdk.alb.v2api.model.CreateCredentialsPayload
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.CreateCredentialsResponse
new cloud.stackit.sdk.alb.v2api.model.CreateCredentialsResponse
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.CreateLoadBalancerPayload
new cloud.stackit.sdk.alb.v2api.model.CreateLoadBalancerPayload
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.CredentialsResponse.CustomTypeAdapterFactory());
new cloud.stackit.sdk.alb.v2api.model.CredentialsResponse
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.GetCredentialsResponse.CustomTypeAdapterFactory());
new cloud.stackit.sdk.alb.v2api.model.GetCredentialsResponse
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.GetQuotaResponse.CustomTypeAdapterFactory());
new cloud.stackit.sdk.alb.v2api.model.GetQuotaResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.GoogleProtobufAny.CustomTypeAdapterFactory());
new cloud.stackit.sdk.alb.v2api.model.GoogleProtobufAny.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.HostConfig.CustomTypeAdapterFactory());
new cloud.stackit.sdk.alb.v2api.model.HostConfig.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.HttpHeader.CustomTypeAdapterFactory());
new cloud.stackit.sdk.alb.v2api.model.HttpHeader.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.HttpHealthChecks.CustomTypeAdapterFactory());
new cloud.stackit.sdk.alb.v2api.model.HttpHealthChecks.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.ListCredentialsResponse.CustomTypeAdapterFactory());
new cloud.stackit.sdk.alb.v2api.model.ListCredentialsResponse
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.ListLoadBalancersResponse
new cloud.stackit.sdk.alb.v2api.model.ListLoadBalancersResponse
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.ListPlansResponse.CustomTypeAdapterFactory());
new cloud.stackit.sdk.alb.v2api.model.ListPlansResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.Listener.CustomTypeAdapterFactory());
new cloud.stackit.sdk.alb.v2api.model.Listener.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.LoadBalancer.CustomTypeAdapterFactory());
new cloud.stackit.sdk.alb.v2api.model.LoadBalancer.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.LoadBalancerError.CustomTypeAdapterFactory());
new cloud.stackit.sdk.alb.v2api.model.LoadBalancerError.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.LoadBalancerOptions.CustomTypeAdapterFactory());
new cloud.stackit.sdk.alb.v2api.model.LoadBalancerOptions
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.LoadbalancerOptionAccessControl
new cloud.stackit.sdk.alb.v2api.model.LoadbalancerOptionAccessControl
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.LoadbalancerOptionLogs.CustomTypeAdapterFactory());
new cloud.stackit.sdk.alb.v2api.model.LoadbalancerOptionLogs
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.LoadbalancerOptionMetrics
new cloud.stackit.sdk.alb.v2api.model.LoadbalancerOptionMetrics
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.LoadbalancerOptionObservability
new cloud.stackit.sdk.alb.v2api.model.LoadbalancerOptionObservability
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.Network.CustomTypeAdapterFactory());
new cloud.stackit.sdk.alb.v2api.model.Network.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.Path.CustomTypeAdapterFactory());
new cloud.stackit.sdk.alb.v2api.model.Path.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.PlanDetails.CustomTypeAdapterFactory());
new cloud.stackit.sdk.alb.v2api.model.PlanDetails.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.ProtocolOptionsHTTP.CustomTypeAdapterFactory());
new cloud.stackit.sdk.alb.v2api.model.ProtocolOptionsHTTP
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.ProtocolOptionsHTTPS.CustomTypeAdapterFactory());
new cloud.stackit.sdk.alb.v2api.model.ProtocolOptionsHTTPS
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.QueryParameter.CustomTypeAdapterFactory());
new cloud.stackit.sdk.alb.v2api.model.QueryParameter.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.Rule.CustomTypeAdapterFactory());
new cloud.stackit.sdk.alb.v2api.model.Rule.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.SecurityGroup.CustomTypeAdapterFactory());
new cloud.stackit.sdk.alb.v2api.model.SecurityGroup.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.Status.CustomTypeAdapterFactory());
new cloud.stackit.sdk.alb.v2api.model.Status.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.Target.CustomTypeAdapterFactory());
new cloud.stackit.sdk.alb.v2api.model.Target.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.TargetPool.CustomTypeAdapterFactory());
new cloud.stackit.sdk.alb.v2api.model.TargetPool.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.TlsConfig.CustomTypeAdapterFactory());
new cloud.stackit.sdk.alb.v2api.model.TlsConfig.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.UpdateCredentialsPayload
new cloud.stackit.sdk.alb.v2api.model.UpdateCredentialsPayload
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.UpdateCredentialsResponse
new cloud.stackit.sdk.alb.v2api.model.UpdateCredentialsResponse
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.UpdateLoadBalancerPayload
new cloud.stackit.sdk.alb.v2api.model.UpdateLoadBalancerPayload
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.alb.model.UpdateTargetPoolPayload.CustomTypeAdapterFactory());
new cloud.stackit.sdk.alb.v2api.model.UpdateTargetPoolPayload
.CustomTypeAdapterFactory());
gson = gsonBuilder.create();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Do not edit the class manually.
*/

package cloud.stackit.sdk.alb;
package cloud.stackit.sdk.alb.v2api;

@javax.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Do not edit the class manually.
*/

package cloud.stackit.sdk.alb;
package cloud.stackit.sdk.alb.v2api;

import java.io.IOException;
import okhttp3.MediaType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Do not edit the class manually.
*/

package cloud.stackit.sdk.alb;
package cloud.stackit.sdk.alb.v2api;

import java.io.IOException;
import okhttp3.MediaType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Do not edit the class manually.
*/

package cloud.stackit.sdk.alb;
package cloud.stackit.sdk.alb.v2api;

import java.util.Map;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Do not edit the class manually.
*/

package cloud.stackit.sdk.alb;
package cloud.stackit.sdk.alb.v2api;

import java.util.HashSet;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Do not edit the class manually.
*/

package cloud.stackit.sdk.alb;
package cloud.stackit.sdk.alb.v2api;

import java.util.Collection;
import java.util.Iterator;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Do not edit the class manually.
*/

package cloud.stackit.sdk.alb.api;
package cloud.stackit.sdk.alb.v2api.api;

import cloud.stackit.sdk.core.config.CoreConfiguration;
import java.io.IOException;
Expand All @@ -33,7 +33,7 @@ public AlbApi() throws IOException {
*
* <p>For production use consider using the constructor with the OkHttpClient parameter.
*
* @param config your STACKIT SDK CoreConfiguration
* @param configuration your STACKIT SDK CoreConfiguration
* @throws IOException
*/
public AlbApi(CoreConfiguration configuration) throws IOException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,26 @@
* Do not edit the class manually.
*/

package cloud.stackit.sdk.alb.api;

import cloud.stackit.sdk.alb.ApiCallback;
import cloud.stackit.sdk.alb.ApiClient;
import cloud.stackit.sdk.alb.ApiResponse;
import cloud.stackit.sdk.alb.Pair;
import cloud.stackit.sdk.alb.model.CreateCredentialsPayload;
import cloud.stackit.sdk.alb.model.CreateCredentialsResponse;
import cloud.stackit.sdk.alb.model.CreateLoadBalancerPayload;
import cloud.stackit.sdk.alb.model.GetCredentialsResponse;
import cloud.stackit.sdk.alb.model.GetQuotaResponse;
import cloud.stackit.sdk.alb.model.ListCredentialsResponse;
import cloud.stackit.sdk.alb.model.ListLoadBalancersResponse;
import cloud.stackit.sdk.alb.model.ListPlansResponse;
import cloud.stackit.sdk.alb.model.LoadBalancer;
import cloud.stackit.sdk.alb.model.TargetPool;
import cloud.stackit.sdk.alb.model.UpdateCredentialsPayload;
import cloud.stackit.sdk.alb.model.UpdateCredentialsResponse;
import cloud.stackit.sdk.alb.model.UpdateLoadBalancerPayload;
import cloud.stackit.sdk.alb.model.UpdateTargetPoolPayload;
package cloud.stackit.sdk.alb.v2api.api;

import cloud.stackit.sdk.alb.v2api.ApiCallback;
import cloud.stackit.sdk.alb.v2api.ApiClient;
import cloud.stackit.sdk.alb.v2api.ApiResponse;
import cloud.stackit.sdk.alb.v2api.Pair;
import cloud.stackit.sdk.alb.v2api.model.CreateCredentialsPayload;
import cloud.stackit.sdk.alb.v2api.model.CreateCredentialsResponse;
import cloud.stackit.sdk.alb.v2api.model.CreateLoadBalancerPayload;
import cloud.stackit.sdk.alb.v2api.model.GetCredentialsResponse;
import cloud.stackit.sdk.alb.v2api.model.GetQuotaResponse;
import cloud.stackit.sdk.alb.v2api.model.ListCredentialsResponse;
import cloud.stackit.sdk.alb.v2api.model.ListLoadBalancersResponse;
import cloud.stackit.sdk.alb.v2api.model.ListPlansResponse;
import cloud.stackit.sdk.alb.v2api.model.LoadBalancer;
import cloud.stackit.sdk.alb.v2api.model.TargetPool;
import cloud.stackit.sdk.alb.v2api.model.UpdateCredentialsPayload;
import cloud.stackit.sdk.alb.v2api.model.UpdateCredentialsResponse;
import cloud.stackit.sdk.alb.v2api.model.UpdateLoadBalancerPayload;
import cloud.stackit.sdk.alb.v2api.model.UpdateTargetPoolPayload;
import cloud.stackit.sdk.core.config.CoreConfiguration;
import cloud.stackit.sdk.core.exception.ApiException;
import com.google.gson.reflect.TypeToken;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Do not edit the class manually.
*/

package cloud.stackit.sdk.alb.model;
package cloud.stackit.sdk.alb.v2api.model;

import java.util.Map;
import java.util.Objects;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
* Do not edit the class manually.
*/

package cloud.stackit.sdk.alb.model;
package cloud.stackit.sdk.alb.v2api.model;

import cloud.stackit.sdk.alb.JSON;
import cloud.stackit.sdk.alb.v2api.JSON;
import com.google.gson.Gson;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
Expand Down
Loading