From 4c237135f480c4d12d8f60ce08c456c1267a3db6 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Tue, 14 Apr 2026 08:00:01 +0000 Subject: [PATCH 1/3] Generate iaas --- services/iaas/oas_commit | 2 +- .../iaas/src/stackit/iaas/api/default_api.py | 17 +++++++++++++++++ .../iaas/models/create_server_payload.py | 6 ++++++ services/iaas/src/stackit/iaas/models/server.py | 6 ++++++ 4 files changed, 30 insertions(+), 1 deletion(-) diff --git a/services/iaas/oas_commit b/services/iaas/oas_commit index a978700c7..39bada35c 100644 --- a/services/iaas/oas_commit +++ b/services/iaas/oas_commit @@ -1 +1 @@ -467fe4d305e48699c34835e45fd1c7b486be01d2 +a35d8f28738a45005b098b66b6debd08a67ab018 diff --git a/services/iaas/src/stackit/iaas/api/default_api.py b/services/iaas/src/stackit/iaas/api/default_api.py index 4f56b7ab4..531d19040 100644 --- a/services/iaas/src/stackit/iaas/api/default_api.py +++ b/services/iaas/src/stackit/iaas/api/default_api.py @@ -12965,6 +12965,7 @@ def delete_volume( project_id: Annotated[UUID, Field(description="The identifier (ID) of a STACKIT Project.")], region: Annotated[StrictStr, Field(description="The STACKIT Region of the resources.")], volume_id: Annotated[UUID, Field(description="The identifier (ID) of a STACKIT Volume.")], + cascade: Annotated[Optional[StrictBool], Field(description="Cascade action.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12985,6 +12986,8 @@ def delete_volume( :type region: str :param volume_id: The identifier (ID) of a STACKIT Volume. (required) :type volume_id: UUID + :param cascade: Cascade action. + :type cascade: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13011,6 +13014,7 @@ def delete_volume( project_id=project_id, region=region, volume_id=volume_id, + cascade=cascade, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13039,6 +13043,7 @@ def delete_volume_with_http_info( project_id: Annotated[UUID, Field(description="The identifier (ID) of a STACKIT Project.")], region: Annotated[StrictStr, Field(description="The STACKIT Region of the resources.")], volume_id: Annotated[UUID, Field(description="The identifier (ID) of a STACKIT Volume.")], + cascade: Annotated[Optional[StrictBool], Field(description="Cascade action.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13059,6 +13064,8 @@ def delete_volume_with_http_info( :type region: str :param volume_id: The identifier (ID) of a STACKIT Volume. (required) :type volume_id: UUID + :param cascade: Cascade action. + :type cascade: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13085,6 +13092,7 @@ def delete_volume_with_http_info( project_id=project_id, region=region, volume_id=volume_id, + cascade=cascade, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13113,6 +13121,7 @@ def delete_volume_without_preload_content( project_id: Annotated[UUID, Field(description="The identifier (ID) of a STACKIT Project.")], region: Annotated[StrictStr, Field(description="The STACKIT Region of the resources.")], volume_id: Annotated[UUID, Field(description="The identifier (ID) of a STACKIT Volume.")], + cascade: Annotated[Optional[StrictBool], Field(description="Cascade action.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13133,6 +13142,8 @@ def delete_volume_without_preload_content( :type region: str :param volume_id: The identifier (ID) of a STACKIT Volume. (required) :type volume_id: UUID + :param cascade: Cascade action. + :type cascade: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13159,6 +13170,7 @@ def delete_volume_without_preload_content( project_id=project_id, region=region, volume_id=volume_id, + cascade=cascade, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13182,6 +13194,7 @@ def _delete_volume_serialize( project_id, region, volume_id, + cascade, _request_auth, _content_type, _headers, @@ -13207,6 +13220,10 @@ def _delete_volume_serialize( if volume_id is not None: _path_params["volumeId"] = volume_id # process the query parameters + if cascade is not None: + + _query_params.append(("cascade", cascade)) + # process the header parameters # process the form parameters # process the body parameter diff --git a/services/iaas/src/stackit/iaas/models/create_server_payload.py b/services/iaas/src/stackit/iaas/models/create_server_payload.py index 8f2b4cfd6..eed5fd63a 100644 --- a/services/iaas/src/stackit/iaas/models/create_server_payload.py +++ b/services/iaas/src/stackit/iaas/models/create_server_payload.py @@ -25,6 +25,7 @@ BaseModel, ConfigDict, Field, + StrictBool, StrictBytes, StrictStr, field_validator, @@ -55,6 +56,9 @@ class CreateServerPayload(BaseModel): alias="availabilityZone", ) boot_volume: Optional[BootVolume] = Field(default=None, alias="bootVolume") + config_drive: Optional[StrictBool] = Field( + default=False, description="When true the server is created with a config drive.", alias="configDrive" + ) created_at: Optional[datetime] = Field( default=None, description="Date-time when resource was created.", alias="createdAt" ) @@ -118,6 +122,7 @@ class CreateServerPayload(BaseModel): "agent", "availabilityZone", "bootVolume", + "configDrive", "createdAt", "errorMessage", "id", @@ -338,6 +343,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "agent": ServerAgent.from_dict(obj["agent"]) if obj.get("agent") is not None else None, "availabilityZone": obj.get("availabilityZone"), "bootVolume": BootVolume.from_dict(obj["bootVolume"]) if obj.get("bootVolume") is not None else None, + "configDrive": obj.get("configDrive") if obj.get("configDrive") is not None else False, "createdAt": obj.get("createdAt"), "errorMessage": obj.get("errorMessage"), "id": obj.get("id"), diff --git a/services/iaas/src/stackit/iaas/models/server.py b/services/iaas/src/stackit/iaas/models/server.py index fb6027c0c..c12225aff 100644 --- a/services/iaas/src/stackit/iaas/models/server.py +++ b/services/iaas/src/stackit/iaas/models/server.py @@ -25,6 +25,7 @@ BaseModel, ConfigDict, Field, + StrictBool, StrictBytes, StrictStr, field_validator, @@ -53,6 +54,9 @@ class Server(BaseModel): alias="availabilityZone", ) boot_volume: Optional[BootVolume] = Field(default=None, alias="bootVolume") + config_drive: Optional[StrictBool] = Field( + default=False, description="When true the server is created with a config drive.", alias="configDrive" + ) created_at: Optional[datetime] = Field( default=None, description="Date-time when resource was created.", alias="createdAt" ) @@ -116,6 +120,7 @@ class Server(BaseModel): "agent", "availabilityZone", "bootVolume", + "configDrive", "createdAt", "errorMessage", "id", @@ -336,6 +341,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "agent": ServerAgent.from_dict(obj["agent"]) if obj.get("agent") is not None else None, "availabilityZone": obj.get("availabilityZone"), "bootVolume": BootVolume.from_dict(obj["bootVolume"]) if obj.get("bootVolume") is not None else None, + "configDrive": obj.get("configDrive") if obj.get("configDrive") is not None else False, "createdAt": obj.get("createdAt"), "errorMessage": obj.get("errorMessage"), "id": obj.get("id"), From b46fc0eb0c1db5a07f1c00c9c7e517514d5eef75 Mon Sep 17 00:00:00 2001 From: Manuel Vaas Date: Tue, 14 Apr 2026 17:13:58 +0200 Subject: [PATCH 2/3] added changelog and version --- CHANGELOG.md | 3 +++ services/iaas/CHANGELOG.md | 4 ++++ services/iaas/pyproject.toml | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 503246697..50051cfaf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ ## Release (2026-MM-DD) +- `iaas`: [v1.2.3](services/iaas/CHANGELOG.md#v123) + - **Feature:** Add optional `cascade` parameter to `delete_volume` API call + - **Feature:** Add `config_drive` attribute to ModelClass `Server` - `alb`: [v0.9.3](services/alb/CHANGELOG.md#v093) - Add HTTP 429 status code to some API client methods - `certificates`: [v1.3.1](services/certificates/CHANGELOG.md#v131) diff --git a/services/iaas/CHANGELOG.md b/services/iaas/CHANGELOG.md index 6568fe197..c0ce5db5b 100644 --- a/services/iaas/CHANGELOG.md +++ b/services/iaas/CHANGELOG.md @@ -1,3 +1,7 @@ +## v1.2.3 +- **Feature:** Add `cascade` parameter to `delete_volume` API call +- **Feature:** Add `config_drive` attribute to ModelClass `Server` + ## v1.2.2 - **Docs:** Extend description of `PortRange` class diff --git a/services/iaas/pyproject.toml b/services/iaas/pyproject.toml index 3d3beb344..7925c9209 100644 --- a/services/iaas/pyproject.toml +++ b/services/iaas/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "stackit-iaas" -version = "v1.2.2" +version = "v1.2.3" description = "IaaS-API" authors = [{ name = "STACKIT Developer Tools", email = "developer-tools@stackit.cloud" }] requires-python = ">=3.9,<4.0" From 94c119d711fb2bde6599ade258e6773121daa374 Mon Sep 17 00:00:00 2001 From: Manuel Vaas Date: Tue, 14 Apr 2026 17:24:03 +0200 Subject: [PATCH 3/3] update changelog and version --- CHANGELOG.md | 4 ++-- services/iaas/CHANGELOG.md | 4 ++-- services/iaas/pyproject.toml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 50051cfaf..e39bf64ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ ## Release (2026-MM-DD) -- `iaas`: [v1.2.3](services/iaas/CHANGELOG.md#v123) +- `iaas`: [v1.3.0](services/iaas/CHANGELOG.md#v130) - **Feature:** Add optional `cascade` parameter to `delete_volume` API call - - **Feature:** Add `config_drive` attribute to ModelClass `Server` + - **Feature:** Add `config_drive` attribute to ModelClass `Server` and `CreateServerPayload` - `alb`: [v0.9.3](services/alb/CHANGELOG.md#v093) - Add HTTP 429 status code to some API client methods - `certificates`: [v1.3.1](services/certificates/CHANGELOG.md#v131) diff --git a/services/iaas/CHANGELOG.md b/services/iaas/CHANGELOG.md index c0ce5db5b..15a4f1188 100644 --- a/services/iaas/CHANGELOG.md +++ b/services/iaas/CHANGELOG.md @@ -1,6 +1,6 @@ -## v1.2.3 +## v1.3.0 - **Feature:** Add `cascade` parameter to `delete_volume` API call -- **Feature:** Add `config_drive` attribute to ModelClass `Server` +- **Feature:** Add `config_drive` attribute to ModelClass `Server` and `CreateServerPayload` ## v1.2.2 - **Docs:** Extend description of `PortRange` class diff --git a/services/iaas/pyproject.toml b/services/iaas/pyproject.toml index 7925c9209..10c2a9baa 100644 --- a/services/iaas/pyproject.toml +++ b/services/iaas/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "stackit-iaas" -version = "v1.2.3" +version = "v1.3.0" description = "IaaS-API" authors = [{ name = "STACKIT Developer Tools", email = "developer-tools@stackit.cloud" }] requires-python = ">=3.9,<4.0"