Skip to content
Merged
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
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,24 @@

- `automation`: [v0.1.0](services/automation/CHANGELOG.md#v010)
- Initial onboarding of STACKIT Java SDK for Automation service
- `iaas`: [v1.6.0](services/iaas/CHANGELOG.md#v160)
- `v2alpha1api`:
- **Breaking Change:** In `DestinationCIDRv4`, `DestinationCIDRv6`, `NexthopBlackhole`, `NexthopIPv4`, `NexthopIPv6`, and `NexthopInternet`, changed `type` field from `String` to enum `TypeEnum`.
- **Feature:** Add operations to manage prefix lists: `deletePrefixList`, `getPrefixList`, `getPrefixListEntries`, and `listPrefixLists`.
- **Feature:** Add operations `getRouteOfRoutingTable`, `listAllRoutesOfRoutingTable`, and `retypeVolume`.
- **Feature:** Add new models for routes and prefix lists: `AllRouteListResponse`, `AnyRoute`, `AnyRouteDynamic`, `AnyRouteService`, `AnyRouteSource`, `AnyRouteSourceId`, `AnyRouteStatic`, `AnyRouteSystem`, `BaseRoute`, `PrefixEntries`, `PrefixList`, `PrefixListListResponse`, and `RetypeVolumePayload`.
- **Feature:** Add attribute `description` to model `PartialUpdateNetworkPayload`.
- **Docs:** Update documentation for `labels` field constraints across models.
- `v2api`:
- **Breaking Change:** In `DestinationCIDRv4`, `DestinationCIDRv6`, `NexthopBlackhole`, `NexthopIPv4`, `NexthopIPv6`, and `NexthopInternet`, changed `type` field from `String` to enum `TypeEnum`.
- **Feature:** Add attribute `description` to model `PartialUpdateNetworkPayload`.
- **Feature:** Add attributes `projectType` and `vpcId` to model `Project`.
- **Docs:** Update documentation for `labels` field constraints across models.
- `v2beta1api`:
- **Breaking Change:** In `NexthopBlackhole`, `NexthopIPv4`, `NexthopIPv6`, and `NexthopInternet`, changed `type` field from `String` to enum `TypeEnum`.
- **Feature:** Add attribute `description` to model `PartialUpdateNetworkPayload`.
- **Feature:** Add attributes `projectType` and `vpcId` to model `Project`.
- **Docs:** Update documentation for `labels` field constraints across models.
- `objectstorage`: [v0.4.0](services/objectstorage/CHANGELOG.md#v040)
- `v1api`:
- **Feature:** New model class `RateLimitError`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,14 @@ public static void main(String[] args) throws IOException {
.destination(
new AddVPCStaticRoutePayloadDestination(
new DestinationCIDRv4()
.type("cidrv4")
.type(DestinationCIDRv4.TypeEnum.CIDRV4)
.value("0.0.0.0/0")))
.nexthop(
new AddVPCStaticRoutePayloadNexthop(
new NexthopInternet().type("internet"))));
new NexthopInternet()
.type(
NexthopInternet.TypeEnum
.INTERNET))));
Comment thread
marceljk marked this conversation as resolved.
System.out.println("static route created: " + r.staticRoute.getId());

// create a network range
Expand Down
19 changes: 19 additions & 0 deletions services/iaas/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
## v1.6.0
- `v2alpha1api`:
- **Breaking Change:** In `DestinationCIDRv4`, `DestinationCIDRv6`, `NexthopBlackhole`, `NexthopIPv4`, `NexthopIPv6`, and `NexthopInternet`, changed `type` field from `String` to enum `TypeEnum`.
- **Feature:** Add operations to manage prefix lists: `deletePrefixList`, `getPrefixList`, `getPrefixListEntries`, and `listPrefixLists`.
- **Feature:** Add operations `getRouteOfRoutingTable`, `listAllRoutesOfRoutingTable`, and `retypeVolume`.
- **Feature:** Add new models for routes and prefix lists: `AllRouteListResponse`, `AnyRoute`, `AnyRouteDynamic`, `AnyRouteService`, `AnyRouteSource`, `AnyRouteSourceId`, `AnyRouteStatic`, `AnyRouteSystem`, `BaseRoute`, `PrefixEntries`, `PrefixList`, `PrefixListListResponse`, and `RetypeVolumePayload`.
- **Feature:** Add attribute `description` to model `PartialUpdateNetworkPayload`.
- **Docs:** Update documentation for `labels` field constraints across models.
- `v2api`:
- **Breaking Change:** In `DestinationCIDRv4`, `DestinationCIDRv6`, `NexthopBlackhole`, `NexthopIPv4`, `NexthopIPv6`, and `NexthopInternet`, changed `type` field from `String` to enum `TypeEnum`.
- **Feature:** Add attribute `description` to model `PartialUpdateNetworkPayload`.
- **Feature:** Add attributes `projectType` and `vpcId` to model `Project`.
- **Docs:** Update documentation for `labels` field constraints across models.
- `v2beta1api`:
- **Breaking Change:** In `NexthopBlackhole`, `NexthopIPv4`, `NexthopIPv6`, and `NexthopInternet`, changed `type` field from `String` to enum `TypeEnum`.
- **Feature:** Add attribute `description` to model `PartialUpdateNetworkPayload`.
- **Feature:** Add attributes `projectType` and `vpcId` to model `Project`.
- **Docs:** Update documentation for `labels` field constraints across models.

## v1.5.0
- **Breaking Change:** Removed the `ServerVTPM` class and the corresponding `vtpm` field from the `Server` model, as this functionality was unintentionally released and non-functional.

Expand Down
2 changes: 1 addition & 1 deletion services/iaas/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.5.0
1.6.0
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,43 @@ public static GsonBuilder createGson() {
getDiscriminatorValue(readElement, "type"));
}
})
.registerTypeSelector(
cloud.stackit.sdk.iaas.v2alpha1api.model.AnyRoute.class,
new TypeSelector<
cloud.stackit.sdk.iaas.v2alpha1api.model.AnyRoute>() {
@Override
public Class<
? extends
cloud.stackit.sdk.iaas.v2alpha1api.model
.AnyRoute>
getClassForElement(JsonElement readElement) {
Map<String, Class> classByDiscriminatorValue =
new HashMap<String, Class>();
classByDiscriminatorValue.put(
"dynamic",
cloud.stackit.sdk.iaas.v2alpha1api.model
.AnyRouteDynamic.class);
classByDiscriminatorValue.put(
"service",
cloud.stackit.sdk.iaas.v2alpha1api.model
.AnyRouteService.class);
classByDiscriminatorValue.put(
"static",
cloud.stackit.sdk.iaas.v2alpha1api.model
.AnyRouteStatic.class);
classByDiscriminatorValue.put(
"system",
cloud.stackit.sdk.iaas.v2alpha1api.model
.AnyRouteSystem.class);
classByDiscriminatorValue.put(
"AnyRoute",
cloud.stackit.sdk.iaas.v2alpha1api.model.AnyRoute
.class);
return getClassByDiscriminator(
classByDiscriminatorValue,
getDiscriminatorValue(readElement, "type"));
}
})
.registerTypeSelector(
cloud.stackit.sdk.iaas.v2alpha1api.model
.CreateVPCNetworkRangePayload.class,
Expand Down Expand Up @@ -337,6 +374,31 @@ private static Class getClassByDiscriminator(
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.iaas.v2alpha1api.model.AddVPCStaticRoutePayloadNexthop
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.iaas.v2alpha1api.model.AllRouteListResponse
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.iaas.v2alpha1api.model.AnyRoute.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.iaas.v2alpha1api.model.AnyRouteDynamic
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.iaas.v2alpha1api.model.AnyRouteService
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.iaas.v2alpha1api.model.AnyRouteSource
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.iaas.v2alpha1api.model.AnyRouteSourceId
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.iaas.v2alpha1api.model.AnyRouteStatic
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.iaas.v2alpha1api.model.AnyRouteSystem
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.iaas.v2alpha1api.model.BaseRoute.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.iaas.v2alpha1api.model.CreateNetworkIPv4
.CustomTypeAdapterFactory());
Expand Down Expand Up @@ -407,6 +469,14 @@ private static Class getClassByDiscriminator(
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.iaas.v2alpha1api.model.PartialUpdateVPCPayload
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.iaas.v2alpha1api.model.PrefixEntries
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.iaas.v2alpha1api.model.PrefixList.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.iaas.v2alpha1api.model.PrefixListListResponse
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.iaas.v2alpha1api.model.RegionalVPC
.CustomTypeAdapterFactory());
Expand All @@ -416,6 +486,9 @@ private static Class getClassByDiscriminator(
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.iaas.v2alpha1api.model.RegionalVPCList
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.iaas.v2alpha1api.model.RetypeVolumePayload
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.iaas.v2alpha1api.model.Route.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
Expand Down
Loading
Loading