From 9d65a8844bb3b4dcc35c7c771138d874a5a48d4f Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 2 Apr 2026 14:43:15 +0000 Subject: [PATCH] Generate iaas --- services/iaas/oas_commit | 2 +- .../stackit/sdk/iaas/api/DefaultApi.java | 25 ++++++++++++----- .../sdk/iaas/model/CreateServerPayload.java | 27 +++++++++++++++++++ .../cloud/stackit/sdk/iaas/model/Server.java | 27 +++++++++++++++++++ 4 files changed, 74 insertions(+), 7 deletions(-) diff --git a/services/iaas/oas_commit b/services/iaas/oas_commit index c0e5569..7cf8baf 100644 --- a/services/iaas/oas_commit +++ b/services/iaas/oas_commit @@ -1 +1 @@ -779c34469d663919ed700f2c69487eb5cccf70f3 +208d3f9c5620b4c85b5a153e5a636aff11882e6d diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/api/DefaultApi.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/api/DefaultApi.java index 5a6a8d8..252f085 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/api/DefaultApi.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/api/DefaultApi.java @@ -10334,6 +10334,7 @@ public okhttp3.Call deleteSnapshotAsync( * @param projectId The identifier (ID) of a STACKIT Project. (required) * @param region The STACKIT Region of the resources. (required) * @param volumeId The identifier (ID) of a STACKIT Volume. (required) + * @param cascade Cascade action. (optional, default to false) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -10354,6 +10355,7 @@ public okhttp3.Call deleteVolumeCall( @javax.annotation.Nonnull UUID projectId, @javax.annotation.Nonnull String region, @javax.annotation.Nonnull UUID volumeId, + @javax.annotation.Nullable Boolean cascade, final ApiCallback _callback) throws ApiException { String basePath = null; @@ -10390,6 +10392,10 @@ public okhttp3.Call deleteVolumeCall( Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (cascade != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("cascade", cascade)); + } + final String[] localVarAccepts = {"application/json"}; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -10423,6 +10429,7 @@ private okhttp3.Call deleteVolumeValidateBeforeCall( @javax.annotation.Nonnull UUID projectId, @javax.annotation.Nonnull String region, @javax.annotation.Nonnull UUID volumeId, + @javax.annotation.Nullable Boolean cascade, final ApiCallback _callback) throws ApiException { // verify the required parameter 'projectId' is set @@ -10443,7 +10450,7 @@ private okhttp3.Call deleteVolumeValidateBeforeCall( "Missing the required parameter 'volumeId' when calling deleteVolume(Async)"); } - return deleteVolumeCall(projectId, region, volumeId, _callback); + return deleteVolumeCall(projectId, region, volumeId, cascade, _callback); } /** @@ -10453,6 +10460,7 @@ private okhttp3.Call deleteVolumeValidateBeforeCall( * @param projectId The identifier (ID) of a STACKIT Project. (required) * @param region The STACKIT Region of the resources. (required) * @param volumeId The identifier (ID) of a STACKIT Volume. (required) + * @param cascade Cascade action. (optional, default to false) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details @@ -10471,9 +10479,10 @@ private okhttp3.Call deleteVolumeValidateBeforeCall( public void deleteVolume( @javax.annotation.Nonnull UUID projectId, @javax.annotation.Nonnull String region, - @javax.annotation.Nonnull UUID volumeId) + @javax.annotation.Nonnull UUID volumeId, + @javax.annotation.Nullable Boolean cascade) throws ApiException { - deleteVolumeWithHttpInfo(projectId, region, volumeId); + deleteVolumeWithHttpInfo(projectId, region, volumeId, cascade); } /** @@ -10483,6 +10492,7 @@ public void deleteVolume( * @param projectId The identifier (ID) of a STACKIT Project. (required) * @param region The STACKIT Region of the resources. (required) * @param volumeId The identifier (ID) of a STACKIT Volume. (required) + * @param cascade Cascade action. (optional, default to false) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body @@ -10502,10 +10512,11 @@ public void deleteVolume( public ApiResponse deleteVolumeWithHttpInfo( @javax.annotation.Nonnull UUID projectId, @javax.annotation.Nonnull String region, - @javax.annotation.Nonnull UUID volumeId) + @javax.annotation.Nonnull UUID volumeId, + @javax.annotation.Nullable Boolean cascade) throws ApiException { okhttp3.Call localVarCall = - deleteVolumeValidateBeforeCall(projectId, region, volumeId, null); + deleteVolumeValidateBeforeCall(projectId, region, volumeId, cascade, null); return localVarApiClient.execute(localVarCall); } @@ -10516,6 +10527,7 @@ public ApiResponse deleteVolumeWithHttpInfo( * @param projectId The identifier (ID) of a STACKIT Project. (required) * @param region The STACKIT Region of the resources. (required) * @param volumeId The identifier (ID) of a STACKIT Volume. (required) + * @param cascade Cascade action. (optional, default to false) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body @@ -10537,11 +10549,12 @@ public okhttp3.Call deleteVolumeAsync( @javax.annotation.Nonnull UUID projectId, @javax.annotation.Nonnull String region, @javax.annotation.Nonnull UUID volumeId, + @javax.annotation.Nullable Boolean cascade, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = - deleteVolumeValidateBeforeCall(projectId, region, volumeId, _callback); + deleteVolumeValidateBeforeCall(projectId, region, volumeId, cascade, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateServerPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateServerPayload.java index 1e5aeba..b724778 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateServerPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateServerPayload.java @@ -59,6 +59,11 @@ public class CreateServerPayload { @SerializedName(SERIALIZED_NAME_BOOT_VOLUME) @javax.annotation.Nullable private BootVolume bootVolume; + public static final String SERIALIZED_NAME_CONFIG_DRIVE = "configDrive"; + + @SerializedName(SERIALIZED_NAME_CONFIG_DRIVE) + @javax.annotation.Nullable private Boolean configDrive = false; + public static final String SERIALIZED_NAME_CREATED_AT = "createdAt"; @SerializedName(SERIALIZED_NAME_CREATED_AT) @@ -262,6 +267,24 @@ public void setBootVolume(@javax.annotation.Nullable BootVolume bootVolume) { this.bootVolume = bootVolume; } + public CreateServerPayload configDrive(@javax.annotation.Nullable Boolean configDrive) { + this.configDrive = configDrive; + return this; + } + + /** + * When true the server is created with a config drive. + * + * @return configDrive + */ + @javax.annotation.Nullable public Boolean getConfigDrive() { + return configDrive; + } + + public void setConfigDrive(@javax.annotation.Nullable Boolean configDrive) { + this.configDrive = configDrive; + } + /** * Date-time when resource was created. * @@ -645,6 +668,7 @@ public boolean equals(Object o) { && Objects.equals(this.agent, createServerPayload.agent) && Objects.equals(this.availabilityZone, createServerPayload.availabilityZone) && Objects.equals(this.bootVolume, createServerPayload.bootVolume) + && Objects.equals(this.configDrive, createServerPayload.configDrive) && Objects.equals(this.createdAt, createServerPayload.createdAt) && Objects.equals(this.errorMessage, createServerPayload.errorMessage) && Objects.equals(this.id, createServerPayload.id) @@ -676,6 +700,7 @@ public int hashCode() { agent, availabilityZone, bootVolume, + configDrive, createdAt, errorMessage, id, @@ -707,6 +732,7 @@ public String toString() { sb.append(" agent: ").append(toIndentedString(agent)).append("\n"); sb.append(" availabilityZone: ").append(toIndentedString(availabilityZone)).append("\n"); sb.append(" bootVolume: ").append(toIndentedString(bootVolume)).append("\n"); + sb.append(" configDrive: ").append(toIndentedString(configDrive)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); @@ -761,6 +787,7 @@ private String toIndentedString(Object o) { "agent", "availabilityZone", "bootVolume", + "configDrive", "createdAt", "errorMessage", "id", diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/Server.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/Server.java index 201ea59..dbfd61f 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/Server.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/Server.java @@ -59,6 +59,11 @@ public class Server { @SerializedName(SERIALIZED_NAME_BOOT_VOLUME) @javax.annotation.Nullable private BootVolume bootVolume; + public static final String SERIALIZED_NAME_CONFIG_DRIVE = "configDrive"; + + @SerializedName(SERIALIZED_NAME_CONFIG_DRIVE) + @javax.annotation.Nullable private Boolean configDrive = false; + public static final String SERIALIZED_NAME_CREATED_AT = "createdAt"; @SerializedName(SERIALIZED_NAME_CREATED_AT) @@ -260,6 +265,24 @@ public void setBootVolume(@javax.annotation.Nullable BootVolume bootVolume) { this.bootVolume = bootVolume; } + public Server configDrive(@javax.annotation.Nullable Boolean configDrive) { + this.configDrive = configDrive; + return this; + } + + /** + * When true the server is created with a config drive. + * + * @return configDrive + */ + @javax.annotation.Nullable public Boolean getConfigDrive() { + return configDrive; + } + + public void setConfigDrive(@javax.annotation.Nullable Boolean configDrive) { + this.configDrive = configDrive; + } + /** * Date-time when resource was created. * @@ -638,6 +661,7 @@ public boolean equals(Object o) { && Objects.equals(this.agent, server.agent) && Objects.equals(this.availabilityZone, server.availabilityZone) && Objects.equals(this.bootVolume, server.bootVolume) + && Objects.equals(this.configDrive, server.configDrive) && Objects.equals(this.createdAt, server.createdAt) && Objects.equals(this.errorMessage, server.errorMessage) && Objects.equals(this.id, server.id) @@ -668,6 +692,7 @@ public int hashCode() { agent, availabilityZone, bootVolume, + configDrive, createdAt, errorMessage, id, @@ -699,6 +724,7 @@ public String toString() { sb.append(" agent: ").append(toIndentedString(agent)).append("\n"); sb.append(" availabilityZone: ").append(toIndentedString(availabilityZone)).append("\n"); sb.append(" bootVolume: ").append(toIndentedString(bootVolume)).append("\n"); + sb.append(" configDrive: ").append(toIndentedString(configDrive)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); @@ -753,6 +779,7 @@ private String toIndentedString(Object o) { "agent", "availabilityZone", "bootVolume", + "configDrive", "createdAt", "errorMessage", "id",