Skip to content

Commit 0e25112

Browse files
authored
feat(iaas): add multi API version support (#531)
relates to STACKITSDK-419
1 parent 4a2e40e commit 0e25112

515 files changed

Lines changed: 192825 additions & 579 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
## Release (2026-MM-DD)
2+
- `alb`: [v0.5.0](services/alb/CHANGELOG.md#v050)
3+
- **Feature (breaking change):** Introduction of multi API version support. See the GitHub discussion post for more details: https://github.com/stackitcloud/stackit-sdk-java/discussions/530
4+
- `iaas`: [v1.2.0](services/resourcemanager/CHANGELOG.md#v120)
5+
- **Feature (breaking change):** Introduction of multi API version support. See the GitHub discussion post for more details: https://github.com/stackitcloud/stackit-sdk-java/discussions/530
26
- `resourcemanager`: [v0.5.0](services/resourcemanager/CHANGELOG.md#v050)
37
- **Feature (breaking change):** Introduction of multi API version support. See the GitHub discussion post for more details: https://github.com/stackitcloud/stackit-sdk-java/discussions/530
48
- `sfs`: [v0.3.1](services/sfs/CHANGELOG.md#v031)
59
- Deprecate `getSchedule` and `listSchedules` methods in `SfsApi` class
610

711
## Release (2026-04-08)
8-
- `alb`: [v0.5.0](services/alb/CHANGELOG.md#v050)
9-
- **Feature (breaking change):** Introduction of multi API version support. See the GitHub discussion post for more details: https://github.com/stackitcloud/stackit-sdk-java/discussions/530
1012
- `iaas`:
1113
- [v1.0.1](services/iaas/CHANGELOG.md#v101)
1214
- **Docs:** Extend docs of class `PortRange`

examples/custom-http-client/src/main/java/cloud/stackit/sdk/customhttpclient/examples/CustomHttpClientExample.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import cloud.stackit.sdk.core.KeyFlowAuthenticator;
44
import cloud.stackit.sdk.core.config.CoreConfiguration;
55
import cloud.stackit.sdk.core.exception.ApiException;
6-
import cloud.stackit.sdk.iaas.api.IaasApi;
7-
import cloud.stackit.sdk.iaas.model.*;
6+
import cloud.stackit.sdk.iaas.v2api.api.IaasApi;
7+
import cloud.stackit.sdk.iaas.v2api.model.*;
88
import java.io.IOException;
99
import java.util.UUID;
1010
import okhttp3.OkHttpClient;

examples/iaas/src/main/java/cloud/stackit/sdk/iaas/examples/IaaSExample.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package cloud.stackit.sdk.iaas.examples;
22

33
import cloud.stackit.sdk.core.exception.ApiException;
4-
import cloud.stackit.sdk.iaas.api.IaasApi;
5-
import cloud.stackit.sdk.iaas.model.*;
4+
import cloud.stackit.sdk.iaas.v2api.api.IaasApi;
5+
import cloud.stackit.sdk.iaas.v2api.model.*;
66
import java.io.IOException;
77
import java.net.HttpURLConnection;
88
import java.util.Collections;

examples/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/examples/ServerbackupExample.java renamed to examples/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/examples/ServerBackupExample.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package cloud.stackit.sdk.serverbackup.examples;
22

33
import cloud.stackit.sdk.core.exception.ApiException;
4-
import cloud.stackit.sdk.iaas.api.IaasApi;
5-
import cloud.stackit.sdk.iaas.model.*;
4+
import cloud.stackit.sdk.iaas.v2api.api.IaasApi;
5+
import cloud.stackit.sdk.iaas.v2api.model.*;
66
import cloud.stackit.sdk.serverbackup.api.ServerBackupApi;
77
import cloud.stackit.sdk.serverbackup.model.*;
88
import cloud.stackit.sdk.serverbackup.model.Backup;

services/iaas/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## v1.2.0
2+
- **Feature (breaking change):** Introduction of multi API version support. See the GitHub discussion post for more details: https://github.com/stackitcloud/stackit-sdk-java/discussions/530
3+
14
## v1.1.0
25
- **Feature:** Add `cascade` parameter to `deleteVolume` methods in `DefaultApi` / `IaasApi` class
36
- **Feature:** Add methods for new attribute `configDrive` in `CreateServerPayload` and `Server` class

services/iaas/README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
# STACKIT Java SDK for STACKIT IaaS API
22

3-
- API version: 2
4-
5-
This API allows you to create and modify IaaS resources.
6-
7-
For more information, please visit [https://support.stackit.cloud/servicedesk](https://support.stackit.cloud/servicedesk)
8-
93
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.
104

115
## Installation from Maven Central (recommended)

services/iaas/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.1.0
1+
1.2.0
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
/*
2+
* STACKIT IaaS API
3+
* This API is deprecated. It will be retired on 01.03.2027. Please use the STACKIT IaaS API V2 instead.
4+
*
5+
* The version of the OpenAPI document: 1
6+
* Contact: stackit-iaas@mail.schwarz
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*/
12+
13+
package cloud.stackit.sdk.iaas.v1api;
14+
15+
import cloud.stackit.sdk.core.exception.ApiException;
16+
import java.util.List;
17+
import java.util.Map;
18+
19+
/**
20+
* Callback for asynchronous API call.
21+
*
22+
* @param <T> The return type
23+
*/
24+
public interface ApiCallback<T> {
25+
/**
26+
* This is called when the API call fails.
27+
*
28+
* @param e The exception causing the failure
29+
* @param statusCode Status code of the response if available, otherwise it would be 0
30+
* @param responseHeaders Headers of the response if available, otherwise it would be null
31+
*/
32+
void onFailure(ApiException e, int statusCode, Map<String, List<String>> responseHeaders);
33+
34+
/**
35+
* This is called when the API call succeeded.
36+
*
37+
* @param result The result deserialized from response
38+
* @param statusCode Status code of the response
39+
* @param responseHeaders Headers of the response
40+
*/
41+
void onSuccess(T result, int statusCode, Map<String, List<String>> responseHeaders);
42+
43+
/**
44+
* This is called when the API upload processing.
45+
*
46+
* @param bytesWritten bytes Written
47+
* @param contentLength content length of request body
48+
* @param done write end
49+
*/
50+
void onUploadProgress(long bytesWritten, long contentLength, boolean done);
51+
52+
/**
53+
* This is called when the API download processing.
54+
*
55+
* @param bytesRead bytes Read
56+
* @param contentLength content length of the response
57+
* @param done Read end
58+
*/
59+
void onDownloadProgress(long bytesRead, long contentLength, boolean done);
60+
}

0 commit comments

Comments
 (0)