Skip to content

Commit 5a862d7

Browse files
committed
chore(sdk): bump openapi generator version
1 parent ca98c88 commit 5a862d7

File tree

154 files changed

+168
-208
lines changed

Some content is hidden

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

154 files changed

+168
-208
lines changed

examples/authentication/src/main/java/cloud/stackit/sdk/authentication/examples/AuthenticationExample.java

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

33
import cloud.stackit.sdk.core.config.CoreConfiguration;
4-
import cloud.stackit.sdk.resourcemanager.api.DefaultApi;
4+
import cloud.stackit.sdk.resourcemanager.api.ResourceManagerApi;
55
import cloud.stackit.sdk.resourcemanager.model.ListOrganizationsResponse;
66

77
class AuthenticationExample {
@@ -13,7 +13,7 @@ public static void main(String[] args) {
1313
new CoreConfiguration().serviceAccountKeyPath(SERVICE_ACCOUNT_KEY_PATH);
1414

1515
try {
16-
DefaultApi api = new DefaultApi(config);
16+
ResourceManagerApi api = new ResourceManagerApi(config);
1717

1818
/* list all organizations */
1919
ListOrganizationsResponse response =

examples/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/examples/ResourcemanagerExample.java

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

33
import cloud.stackit.sdk.core.exception.ApiException;
4-
import cloud.stackit.sdk.resourcemanager.api.DefaultApi;
4+
import cloud.stackit.sdk.resourcemanager.api.ResourceManagerApi;
55
import cloud.stackit.sdk.resourcemanager.model.CreateFolderPayload;
66
import cloud.stackit.sdk.resourcemanager.model.CreateProjectPayload;
77
import cloud.stackit.sdk.resourcemanager.model.FolderResponse;
@@ -14,7 +14,7 @@ class ResourcemanagerExample {
1414
public static void main(String[] args) throws IOException {
1515
// Credentials are read from the credentialsFile in `~/.stackit/credentials.json` or the env
1616
// STACKIT_SERVICE_ACCOUNT_KEY_PATH / STACKIT_SERVICE_ACCOUNT_KEY
17-
DefaultApi resourceManagerApi = new DefaultApi();
17+
ResourceManagerApi resourceManagerApi = new ResourceManagerApi();
1818

1919
// replace this with something useful for real use
2020
UUID containerParentId = UUID.randomUUID();

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

Lines changed: 7 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -14,30 +14,14 @@
1414

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

2222
public Pair(String name, String value) {
23-
setName(name);
24-
setValue(value);
25-
}
26-
27-
private void setName(String name) {
28-
if (!isValidString(name)) {
29-
return;
30-
}
31-
32-
this.name = name;
33-
}
34-
35-
private void setValue(String value) {
36-
if (!isValidString(value)) {
37-
return;
38-
}
39-
40-
this.value = value;
23+
this.name = isValidString(name) ? name : "";
24+
this.value = isValidString(value) ? value : "";
4125
}
4226

4327
public String getName() {
@@ -48,11 +32,7 @@ public String getValue() {
4832
return this.value;
4933
}
5034

51-
private boolean isValidString(String arg) {
52-
if (arg == null) {
53-
return false;
54-
}
55-
56-
return true;
35+
private static boolean isValidString(String arg) {
36+
return arg != null;
5737
}
5838
}

services/iaas/src/main/java/cloud/stackit/sdk/iaas/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.14.0")
20+
comments = "Generator version: 7.15.0")
2121
public class ServerConfiguration {
2222
public String URL;
2323
public String description;

services/iaas/src/main/java/cloud/stackit/sdk/iaas/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.14.0")
20+
comments = "Generator version: 7.15.0")
2121
public class ServerVariable {
2222
public String description;
2323
public String defaultValue;

services/iaas/src/main/java/cloud/stackit/sdk/iaas/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.14.0")
20+
comments = "Generator version: 7.15.0")
2121
public class StringUtil {
2222
/**
2323
* Check if the given array contains the given value (with case-insensitive comparison).

services/iaas/src/main/java/cloud/stackit/sdk/iaas/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.14.0")
21+
comments = "Generator version: 7.15.0")
2222
public abstract class AbstractOpenApiSchema {
2323

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

services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/AddVolumeToServerPayload.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
/** Object that represents a Volume attachment to a server. */
3434
@javax.annotation.Generated(
3535
value = "org.openapitools.codegen.languages.JavaClientCodegen",
36-
comments = "Generator version: 7.14.0")
36+
comments = "Generator version: 7.15.0")
3737
public class AddVolumeToServerPayload {
3838
public static final String SERIALIZED_NAME_DELETE_ON_TERMINATION = "deleteOnTermination";
3939

services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/AffinityGroup.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
/** Definition of an affinity group. */
3636
@javax.annotation.Generated(
3737
value = "org.openapitools.codegen.languages.JavaClientCodegen",
38-
comments = "Generator version: 7.14.0")
38+
comments = "Generator version: 7.15.0")
3939
public class AffinityGroup {
4040
public static final String SERIALIZED_NAME_ID = "id";
4141

services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/AffinityGroupListResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
/** Response object for affinity group list request. */
3636
@javax.annotation.Generated(
3737
value = "org.openapitools.codegen.languages.JavaClientCodegen",
38-
comments = "Generator version: 7.14.0")
38+
comments = "Generator version: 7.15.0")
3939
public class AffinityGroupListResponse {
4040
public static final String SERIALIZED_NAME_ITEMS = "items";
4141

0 commit comments

Comments
 (0)