Skip to content

Commit 8a9473d

Browse files
Generate objectstorage
1 parent 4d7bd44 commit 8a9473d

26 files changed

+221
-68
lines changed

services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/Pair.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
@javax.annotation.Generated(
1616
value = "org.openapitools.codegen.languages.JavaClientCodegen",
17-
comments = "Generator version: 7.15.0")
17+
comments = "Generator version: 7.19.0")
1818
public class Pair {
1919
private final String name;
2020
private final String value;

services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/ServerConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
/** Representing a Server configuration. */
1818
@javax.annotation.Generated(
1919
value = "org.openapitools.codegen.languages.JavaClientCodegen",
20-
comments = "Generator version: 7.15.0")
20+
comments = "Generator version: 7.19.0")
2121
public class ServerConfiguration {
2222
public String URL;
2323
public String description;

services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/ServerVariable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
/** Representing a Server Variable for server URL template substitution. */
1818
@javax.annotation.Generated(
1919
value = "org.openapitools.codegen.languages.JavaClientCodegen",
20-
comments = "Generator version: 7.15.0")
20+
comments = "Generator version: 7.19.0")
2121
public class ServerVariable {
2222
public String description;
2323
public String defaultValue;

services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/StringUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
@javax.annotation.Generated(
1919
value = "org.openapitools.codegen.languages.JavaClientCodegen",
20-
comments = "Generator version: 7.15.0")
20+
comments = "Generator version: 7.19.0")
2121
public class StringUtil {
2222
/**
2323
* Check if the given array contains the given value (with case-insensitive comparison).

services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/AbstractOpenApiSchema.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */
1919
@javax.annotation.Generated(
2020
value = "org.openapitools.codegen.languages.JavaClientCodegen",
21-
comments = "Generator version: 7.15.0")
21+
comments = "Generator version: 7.19.0")
2222
public abstract class AbstractOpenApiSchema {
2323

2424
// store the actual instance of the schema/object

services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/AccessKey.java

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
/** AccessKey */
3333
@javax.annotation.Generated(
3434
value = "org.openapitools.codegen.languages.JavaClientCodegen",
35-
comments = "Generator version: 7.15.0")
35+
comments = "Generator version: 7.19.0")
3636
public class AccessKey {
3737
public static final String SERIALIZED_NAME_DISPLAY_NAME = "displayName";
3838

@@ -176,6 +176,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
176176
.isEmpty()) { // has required fields but JSON element is null
177177
throw new IllegalArgumentException(
178178
String.format(
179+
java.util.Locale.ROOT,
179180
"The required field(s) %s in AccessKey is not found in the empty JSON string",
180181
AccessKey.openapiRequiredFields.toString()));
181182
}
@@ -187,8 +188,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
187188
if (!AccessKey.openapiFields.contains(entry.getKey())) {
188189
throw new IllegalArgumentException(
189190
String.format(
191+
java.util.Locale.ROOT,
190192
"The field `%s` in the JSON string is not defined in the `AccessKey` properties. JSON: %s",
191-
entry.getKey(), jsonElement.toString()));
193+
entry.getKey(),
194+
jsonElement.toString()));
192195
}
193196
}
194197

@@ -197,26 +200,31 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
197200
if (jsonElement.getAsJsonObject().get(requiredField) == null) {
198201
throw new IllegalArgumentException(
199202
String.format(
203+
java.util.Locale.ROOT,
200204
"The required field `%s` is not found in the JSON string: %s",
201-
requiredField, jsonElement.toString()));
205+
requiredField,
206+
jsonElement.toString()));
202207
}
203208
}
204209
JsonObject jsonObj = jsonElement.getAsJsonObject();
205210
if (!jsonObj.get("displayName").isJsonPrimitive()) {
206211
throw new IllegalArgumentException(
207212
String.format(
213+
java.util.Locale.ROOT,
208214
"Expected the field `displayName` to be a primitive type in the JSON string but got `%s`",
209215
jsonObj.get("displayName").toString()));
210216
}
211217
if (!jsonObj.get("expires").isJsonPrimitive()) {
212218
throw new IllegalArgumentException(
213219
String.format(
220+
java.util.Locale.ROOT,
214221
"Expected the field `expires` to be a primitive type in the JSON string but got `%s`",
215222
jsonObj.get("expires").toString()));
216223
}
217224
if (!jsonObj.get("keyId").isJsonPrimitive()) {
218225
throw new IllegalArgumentException(
219226
String.format(
227+
java.util.Locale.ROOT,
220228
"Expected the field `keyId` to be a primitive type in the JSON string but got `%s`",
221229
jsonObj.get("keyId").toString()));
222230
}

services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/Bucket.java

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
/** Bucket */
3333
@javax.annotation.Generated(
3434
value = "org.openapitools.codegen.languages.JavaClientCodegen",
35-
comments = "Generator version: 7.15.0")
35+
comments = "Generator version: 7.19.0")
3636
public class Bucket {
3737
public static final String SERIALIZED_NAME_NAME = "name";
3838

@@ -208,6 +208,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
208208
.isEmpty()) { // has required fields but JSON element is null
209209
throw new IllegalArgumentException(
210210
String.format(
211+
java.util.Locale.ROOT,
211212
"The required field(s) %s in Bucket is not found in the empty JSON string",
212213
Bucket.openapiRequiredFields.toString()));
213214
}
@@ -219,8 +220,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
219220
if (!Bucket.openapiFields.contains(entry.getKey())) {
220221
throw new IllegalArgumentException(
221222
String.format(
223+
java.util.Locale.ROOT,
222224
"The field `%s` in the JSON string is not defined in the `Bucket` properties. JSON: %s",
223-
entry.getKey(), jsonElement.toString()));
225+
entry.getKey(),
226+
jsonElement.toString()));
224227
}
225228
}
226229

@@ -229,32 +232,38 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
229232
if (jsonElement.getAsJsonObject().get(requiredField) == null) {
230233
throw new IllegalArgumentException(
231234
String.format(
235+
java.util.Locale.ROOT,
232236
"The required field `%s` is not found in the JSON string: %s",
233-
requiredField, jsonElement.toString()));
237+
requiredField,
238+
jsonElement.toString()));
234239
}
235240
}
236241
JsonObject jsonObj = jsonElement.getAsJsonObject();
237242
if (!jsonObj.get("name").isJsonPrimitive()) {
238243
throw new IllegalArgumentException(
239244
String.format(
245+
java.util.Locale.ROOT,
240246
"Expected the field `name` to be a primitive type in the JSON string but got `%s`",
241247
jsonObj.get("name").toString()));
242248
}
243249
if (!jsonObj.get("region").isJsonPrimitive()) {
244250
throw new IllegalArgumentException(
245251
String.format(
252+
java.util.Locale.ROOT,
246253
"Expected the field `region` to be a primitive type in the JSON string but got `%s`",
247254
jsonObj.get("region").toString()));
248255
}
249256
if (!jsonObj.get("urlPathStyle").isJsonPrimitive()) {
250257
throw new IllegalArgumentException(
251258
String.format(
259+
java.util.Locale.ROOT,
252260
"Expected the field `urlPathStyle` to be a primitive type in the JSON string but got `%s`",
253261
jsonObj.get("urlPathStyle").toString()));
254262
}
255263
if (!jsonObj.get("urlVirtualHostedStyle").isJsonPrimitive()) {
256264
throw new IllegalArgumentException(
257265
String.format(
266+
java.util.Locale.ROOT,
258267
"Expected the field `urlVirtualHostedStyle` to be a primitive type in the JSON string but got `%s`",
259268
jsonObj.get("urlVirtualHostedStyle").toString()));
260269
}

services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/CreateAccessKeyPayload.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
/** CreateAccessKeyPayload */
3434
@javax.annotation.Generated(
3535
value = "org.openapitools.codegen.languages.JavaClientCodegen",
36-
comments = "Generator version: 7.15.0")
36+
comments = "Generator version: 7.19.0")
3737
public class CreateAccessKeyPayload {
3838
public static final String SERIALIZED_NAME_EXPIRES = "expires";
3939

@@ -120,6 +120,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
120120
.isEmpty()) { // has required fields but JSON element is null
121121
throw new IllegalArgumentException(
122122
String.format(
123+
java.util.Locale.ROOT,
123124
"The required field(s) %s in CreateAccessKeyPayload is not found in the empty JSON string",
124125
CreateAccessKeyPayload.openapiRequiredFields.toString()));
125126
}
@@ -131,8 +132,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
131132
if (!CreateAccessKeyPayload.openapiFields.contains(entry.getKey())) {
132133
throw new IllegalArgumentException(
133134
String.format(
135+
java.util.Locale.ROOT,
134136
"The field `%s` in the JSON string is not defined in the `CreateAccessKeyPayload` properties. JSON: %s",
135-
entry.getKey(), jsonElement.toString()));
137+
entry.getKey(),
138+
jsonElement.toString()));
136139
}
137140
}
138141
JsonObject jsonObj = jsonElement.getAsJsonObject();

services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/CreateAccessKeyResponse.java

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
/** CreateAccessKeyResponse */
3333
@javax.annotation.Generated(
3434
value = "org.openapitools.codegen.languages.JavaClientCodegen",
35-
comments = "Generator version: 7.15.0")
35+
comments = "Generator version: 7.19.0")
3636
public class CreateAccessKeyResponse {
3737
public static final String SERIALIZED_NAME_ACCESS_KEY = "accessKey";
3838

@@ -271,6 +271,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
271271
.isEmpty()) { // has required fields but JSON element is null
272272
throw new IllegalArgumentException(
273273
String.format(
274+
java.util.Locale.ROOT,
274275
"The required field(s) %s in CreateAccessKeyResponse is not found in the empty JSON string",
275276
CreateAccessKeyResponse.openapiRequiredFields.toString()));
276277
}
@@ -282,8 +283,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
282283
if (!CreateAccessKeyResponse.openapiFields.contains(entry.getKey())) {
283284
throw new IllegalArgumentException(
284285
String.format(
286+
java.util.Locale.ROOT,
285287
"The field `%s` in the JSON string is not defined in the `CreateAccessKeyResponse` properties. JSON: %s",
286-
entry.getKey(), jsonElement.toString()));
288+
entry.getKey(),
289+
jsonElement.toString()));
287290
}
288291
}
289292

@@ -292,45 +295,53 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
292295
if (jsonElement.getAsJsonObject().get(requiredField) == null) {
293296
throw new IllegalArgumentException(
294297
String.format(
298+
java.util.Locale.ROOT,
295299
"The required field `%s` is not found in the JSON string: %s",
296-
requiredField, jsonElement.toString()));
300+
requiredField,
301+
jsonElement.toString()));
297302
}
298303
}
299304
JsonObject jsonObj = jsonElement.getAsJsonObject();
300305
if (!jsonObj.get("accessKey").isJsonPrimitive()) {
301306
throw new IllegalArgumentException(
302307
String.format(
308+
java.util.Locale.ROOT,
303309
"Expected the field `accessKey` to be a primitive type in the JSON string but got `%s`",
304310
jsonObj.get("accessKey").toString()));
305311
}
306312
if (!jsonObj.get("displayName").isJsonPrimitive()) {
307313
throw new IllegalArgumentException(
308314
String.format(
315+
java.util.Locale.ROOT,
309316
"Expected the field `displayName` to be a primitive type in the JSON string but got `%s`",
310317
jsonObj.get("displayName").toString()));
311318
}
312319
if ((jsonObj.get("expires") != null && !jsonObj.get("expires").isJsonNull())
313320
&& !jsonObj.get("expires").isJsonPrimitive()) {
314321
throw new IllegalArgumentException(
315322
String.format(
323+
java.util.Locale.ROOT,
316324
"Expected the field `expires` to be a primitive type in the JSON string but got `%s`",
317325
jsonObj.get("expires").toString()));
318326
}
319327
if (!jsonObj.get("keyId").isJsonPrimitive()) {
320328
throw new IllegalArgumentException(
321329
String.format(
330+
java.util.Locale.ROOT,
322331
"Expected the field `keyId` to be a primitive type in the JSON string but got `%s`",
323332
jsonObj.get("keyId").toString()));
324333
}
325334
if (!jsonObj.get("project").isJsonPrimitive()) {
326335
throw new IllegalArgumentException(
327336
String.format(
337+
java.util.Locale.ROOT,
328338
"Expected the field `project` to be a primitive type in the JSON string but got `%s`",
329339
jsonObj.get("project").toString()));
330340
}
331341
if (!jsonObj.get("secretAccessKey").isJsonPrimitive()) {
332342
throw new IllegalArgumentException(
333343
String.format(
344+
java.util.Locale.ROOT,
334345
"Expected the field `secretAccessKey` to be a primitive type in the JSON string but got `%s`",
335346
jsonObj.get("secretAccessKey").toString()));
336347
}

services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/CreateBucketResponse.java

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
/** CreateBucketResponse */
3333
@javax.annotation.Generated(
3434
value = "org.openapitools.codegen.languages.JavaClientCodegen",
35-
comments = "Generator version: 7.15.0")
35+
comments = "Generator version: 7.19.0")
3636
public class CreateBucketResponse {
3737
public static final String SERIALIZED_NAME_BUCKET = "bucket";
3838

@@ -148,6 +148,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
148148
.isEmpty()) { // has required fields but JSON element is null
149149
throw new IllegalArgumentException(
150150
String.format(
151+
java.util.Locale.ROOT,
151152
"The required field(s) %s in CreateBucketResponse is not found in the empty JSON string",
152153
CreateBucketResponse.openapiRequiredFields.toString()));
153154
}
@@ -159,8 +160,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
159160
if (!CreateBucketResponse.openapiFields.contains(entry.getKey())) {
160161
throw new IllegalArgumentException(
161162
String.format(
163+
java.util.Locale.ROOT,
162164
"The field `%s` in the JSON string is not defined in the `CreateBucketResponse` properties. JSON: %s",
163-
entry.getKey(), jsonElement.toString()));
165+
entry.getKey(),
166+
jsonElement.toString()));
164167
}
165168
}
166169

@@ -169,20 +172,24 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
169172
if (jsonElement.getAsJsonObject().get(requiredField) == null) {
170173
throw new IllegalArgumentException(
171174
String.format(
175+
java.util.Locale.ROOT,
172176
"The required field `%s` is not found in the JSON string: %s",
173-
requiredField, jsonElement.toString()));
177+
requiredField,
178+
jsonElement.toString()));
174179
}
175180
}
176181
JsonObject jsonObj = jsonElement.getAsJsonObject();
177182
if (!jsonObj.get("bucket").isJsonPrimitive()) {
178183
throw new IllegalArgumentException(
179184
String.format(
185+
java.util.Locale.ROOT,
180186
"Expected the field `bucket` to be a primitive type in the JSON string but got `%s`",
181187
jsonObj.get("bucket").toString()));
182188
}
183189
if (!jsonObj.get("project").isJsonPrimitive()) {
184190
throw new IllegalArgumentException(
185191
String.format(
192+
java.util.Locale.ROOT,
186193
"Expected the field `project` to be a primitive type in the JSON string but got `%s`",
187194
jsonObj.get("project").toString()));
188195
}

0 commit comments

Comments
 (0)