Skip to content

Commit b255ff1

Browse files
Generator: Update SDK /services/sfs (#525)
Co-authored-by: Ruben Hoenle <Ruben.Hoenle@digits.schwarz>
1 parent 6ac82ad commit b255ff1

24 files changed

+6326
-509
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
1-
## Release (2026-MM-DD)
1+
## Release (2026-04-08)
22
- `iaas`:
33
- [v1.0.1](services/iaas/CHANGELOG.md#v101)
44
- **Docs:** Extend docs of class `PortRange`
55
- [v1.1.0](services/iaas/CHANGELOG.md#v110)
66
- **Feature:** Add `cascade` parameter to `deleteVolume` methods in `DefaultApi` / `IaasApi` class
77
- **Feature:** Add methods for new attribute `configDrive` in `CreateServerPayload` and `Server` class
8+
- `sfs`: [v0.3.0](services/sfs/CHANGELOG.md#v030)
9+
- **Feature:** Add `disableLock`, `enableLock`, `getLock`, `getSchedule`, `listSchedules`, `getSnapshotPolicy`, `listSnapshotPolicies`, methods to `DefaultApi` / `SfsApi` class
10+
- **Feature:** New model classes: `EnableLockResponse`, `GetLockResponse`, `GetScheduleResponse`, `GetSnapshotPolicyResponse`, `ListSchedulesResponse`, `ListSnapshotPoliciesResponse`, `ResourcePoolSnapshotPolicy`, `Schedule`, `SnapshotPolicy`, `SnapshotPolicySchedule`, `UpdateResourcePoolSnapshotPayload`, `UpdateResourcePoolSnapshotResponse`
11+
- **Feature:** Add methods for new attribute `snapshotPolicyId` in model class `UpdateResourcePoolPayload` and `CreateResourcePoolPayload`
12+
- **Feature:** Add methods for new attribute `usedBySnapshotsGigabytes` in model class `ResourcePoolSpace`
13+
- **Feature:** Add methods for new attribute `snaplockExpiryTime` in model class `ResourcePoolSnapshot`
14+
- **Feature:** Add methods for new attribute `snapshotPolicy` in model class `ResourcePool`
15+
- **Feature:** Add methods for new attribute `snaplockRetentionHours` in model class `CreateResourcePoolSnapshotPayload`
816

917
## Release (2026-03-24)
1018
- `alb`:

services/sfs/CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1+
## v0.3.0
2+
- **Feature:** Add `disableLock`, `enableLock`, `getLock`, `getSchedule`, `listSchedules`, `getSnapshotPolicy`, `listSnapshotPolicies`, methods to `DefaultApi` / `SfsApi` class
3+
- **Feature:** New model classes: `EnableLockResponse`, `GetLockResponse`, `GetScheduleResponse`, `GetSnapshotPolicyResponse`, `ListSchedulesResponse`, `ListSnapshotPoliciesResponse`, `ResourcePoolSnapshotPolicy`, `Schedule`, `SnapshotPolicy`, `SnapshotPolicySchedule`, `UpdateResourcePoolSnapshotPayload`, `UpdateResourcePoolSnapshotResponse`
4+
- **Feature:** Add methods for new attribute `snapshotPolicyId` in model class `UpdateResourcePoolPayload` and `CreateResourcePoolPayload`
5+
- **Feature:** Add methods for new attribute `usedBySnapshotsGigabytes` in model class `ResourcePoolSpace`
6+
- **Feature:** Add methods for new attribute `snaplockExpiryTime` in model class `ResourcePoolSnapshot`
7+
- **Feature:** Add methods for new attribute `snapshotPolicy` in model class `ResourcePool`
8+
- **Feature:** Add methods for new attribute `snaplockRetentionHours` in model class `CreateResourcePoolSnapshotPayload`
9+
110
## v0.2.0
211
- **Breaking change:** The `name` and `spaceHardLimitGigabytes` fields are now marked as required for `ShareExportPayload`, `SharePayload`.
312

413
## v0.1.0
5-
- Initial onboarding of STACKIT Java SDK for STACKIT File Storage (SFS) service
14+
- Initial onboarding of STACKIT Java SDK for STACKIT File Storage (SFS) service

services/sfs/VERSION

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

services/sfs/oas_commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
fe212a12ec79a23b81cb53d9a7728f5706bddc23
1+
1c36f3781c31a0e21c4588c7c4ec835d477d2f21

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

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,18 +120,27 @@ private static Class getClassByDiscriminator(
120120
new cloud.stackit.sdk.sfs.model.CreateSharePayload.CustomTypeAdapterFactory());
121121
gsonBuilder.registerTypeAdapterFactory(
122122
new cloud.stackit.sdk.sfs.model.CreateShareResponse.CustomTypeAdapterFactory());
123+
gsonBuilder.registerTypeAdapterFactory(
124+
new cloud.stackit.sdk.sfs.model.EnableLockResponse.CustomTypeAdapterFactory());
123125
gsonBuilder.registerTypeAdapterFactory(
124126
new cloud.stackit.sdk.sfs.model.Error.CustomTypeAdapterFactory());
127+
gsonBuilder.registerTypeAdapterFactory(
128+
new cloud.stackit.sdk.sfs.model.GetLockResponse.CustomTypeAdapterFactory());
125129
gsonBuilder.registerTypeAdapterFactory(
126130
new cloud.stackit.sdk.sfs.model.GetResourcePoolResponse.CustomTypeAdapterFactory());
127131
gsonBuilder.registerTypeAdapterFactory(
128132
new cloud.stackit.sdk.sfs.model.GetResourcePoolSnapshotResponse
129133
.CustomTypeAdapterFactory());
134+
gsonBuilder.registerTypeAdapterFactory(
135+
new cloud.stackit.sdk.sfs.model.GetScheduleResponse.CustomTypeAdapterFactory());
130136
gsonBuilder.registerTypeAdapterFactory(
131137
new cloud.stackit.sdk.sfs.model.GetShareExportPolicyResponse
132138
.CustomTypeAdapterFactory());
133139
gsonBuilder.registerTypeAdapterFactory(
134140
new cloud.stackit.sdk.sfs.model.GetShareResponse.CustomTypeAdapterFactory());
141+
gsonBuilder.registerTypeAdapterFactory(
142+
new cloud.stackit.sdk.sfs.model.GetSnapshotPolicyResponse
143+
.CustomTypeAdapterFactory());
135144
gsonBuilder.registerTypeAdapterFactory(
136145
new cloud.stackit.sdk.sfs.model.GoogleProtobufAny.CustomTypeAdapterFactory());
137146
gsonBuilder.registerTypeAdapterFactory(
@@ -143,11 +152,16 @@ private static Class getClassByDiscriminator(
143152
gsonBuilder.registerTypeAdapterFactory(
144153
new cloud.stackit.sdk.sfs.model.ListResourcePoolsResponse
145154
.CustomTypeAdapterFactory());
155+
gsonBuilder.registerTypeAdapterFactory(
156+
new cloud.stackit.sdk.sfs.model.ListSchedulesResponse.CustomTypeAdapterFactory());
146157
gsonBuilder.registerTypeAdapterFactory(
147158
new cloud.stackit.sdk.sfs.model.ListShareExportPoliciesResponse
148159
.CustomTypeAdapterFactory());
149160
gsonBuilder.registerTypeAdapterFactory(
150161
new cloud.stackit.sdk.sfs.model.ListSharesResponse.CustomTypeAdapterFactory());
162+
gsonBuilder.registerTypeAdapterFactory(
163+
new cloud.stackit.sdk.sfs.model.ListSnapshotPoliciesResponse
164+
.CustomTypeAdapterFactory());
151165
gsonBuilder.registerTypeAdapterFactory(
152166
new cloud.stackit.sdk.sfs.model.PerformanceClass.CustomTypeAdapterFactory());
153167
gsonBuilder.registerTypeAdapterFactory(
@@ -157,14 +171,23 @@ private static Class getClassByDiscriminator(
157171
.CustomTypeAdapterFactory());
158172
gsonBuilder.registerTypeAdapterFactory(
159173
new cloud.stackit.sdk.sfs.model.ResourcePoolSnapshot.CustomTypeAdapterFactory());
174+
gsonBuilder.registerTypeAdapterFactory(
175+
new cloud.stackit.sdk.sfs.model.ResourcePoolSnapshotPolicy
176+
.CustomTypeAdapterFactory());
160177
gsonBuilder.registerTypeAdapterFactory(
161178
new cloud.stackit.sdk.sfs.model.ResourcePoolSpace.CustomTypeAdapterFactory());
179+
gsonBuilder.registerTypeAdapterFactory(
180+
new cloud.stackit.sdk.sfs.model.Schedule.CustomTypeAdapterFactory());
162181
gsonBuilder.registerTypeAdapterFactory(
163182
new cloud.stackit.sdk.sfs.model.Share.CustomTypeAdapterFactory());
164183
gsonBuilder.registerTypeAdapterFactory(
165184
new cloud.stackit.sdk.sfs.model.ShareExportPolicy.CustomTypeAdapterFactory());
166185
gsonBuilder.registerTypeAdapterFactory(
167186
new cloud.stackit.sdk.sfs.model.ShareExportPolicyRule.CustomTypeAdapterFactory());
187+
gsonBuilder.registerTypeAdapterFactory(
188+
new cloud.stackit.sdk.sfs.model.SnapshotPolicy.CustomTypeAdapterFactory());
189+
gsonBuilder.registerTypeAdapterFactory(
190+
new cloud.stackit.sdk.sfs.model.SnapshotPolicySchedule.CustomTypeAdapterFactory());
168191
gsonBuilder.registerTypeAdapterFactory(
169192
new cloud.stackit.sdk.sfs.model.Status.CustomTypeAdapterFactory());
170193
gsonBuilder.registerTypeAdapterFactory(
@@ -173,6 +196,12 @@ private static Class getClassByDiscriminator(
173196
gsonBuilder.registerTypeAdapterFactory(
174197
new cloud.stackit.sdk.sfs.model.UpdateResourcePoolResponse
175198
.CustomTypeAdapterFactory());
199+
gsonBuilder.registerTypeAdapterFactory(
200+
new cloud.stackit.sdk.sfs.model.UpdateResourcePoolSnapshotPayload
201+
.CustomTypeAdapterFactory());
202+
gsonBuilder.registerTypeAdapterFactory(
203+
new cloud.stackit.sdk.sfs.model.UpdateResourcePoolSnapshotResponse
204+
.CustomTypeAdapterFactory());
176205
gsonBuilder.registerTypeAdapterFactory(
177206
new cloud.stackit.sdk.sfs.model.UpdateShareExportPolicyBodyRule
178207
.CustomTypeAdapterFactory());

0 commit comments

Comments
 (0)