Skip to content

Commit c259e72

Browse files
Generate iaas
1 parent d1ada67 commit c259e72

File tree

4 files changed

+30
-1
lines changed

4 files changed

+30
-1
lines changed

services/iaas/oas_commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
467fe4d305e48699c34835e45fd1c7b486be01d2
1+
7df21609559f3652a7fee05149a6c1b729428532

services/iaas/src/stackit/iaas/api/default_api.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12965,6 +12965,7 @@ def delete_volume(
1296512965
project_id: Annotated[UUID, Field(description="The identifier (ID) of a STACKIT Project.")],
1296612966
region: Annotated[StrictStr, Field(description="The STACKIT Region of the resources.")],
1296712967
volume_id: Annotated[UUID, Field(description="The identifier (ID) of a STACKIT Volume.")],
12968+
cascade: Annotated[Optional[StrictBool], Field(description="Cascade action.")] = None,
1296812969
_request_timeout: Union[
1296912970
None,
1297012971
Annotated[StrictFloat, Field(gt=0)],
@@ -12985,6 +12986,8 @@ def delete_volume(
1298512986
:type region: str
1298612987
:param volume_id: The identifier (ID) of a STACKIT Volume. (required)
1298712988
:type volume_id: UUID
12989+
:param cascade: Cascade action.
12990+
:type cascade: bool
1298812991
:param _request_timeout: timeout setting for this request. If one
1298912992
number provided, it will be total request
1299012993
timeout. It can also be a pair (tuple) of
@@ -13011,6 +13014,7 @@ def delete_volume(
1301113014
project_id=project_id,
1301213015
region=region,
1301313016
volume_id=volume_id,
13017+
cascade=cascade,
1301413018
_request_auth=_request_auth,
1301513019
_content_type=_content_type,
1301613020
_headers=_headers,
@@ -13039,6 +13043,7 @@ def delete_volume_with_http_info(
1303913043
project_id: Annotated[UUID, Field(description="The identifier (ID) of a STACKIT Project.")],
1304013044
region: Annotated[StrictStr, Field(description="The STACKIT Region of the resources.")],
1304113045
volume_id: Annotated[UUID, Field(description="The identifier (ID) of a STACKIT Volume.")],
13046+
cascade: Annotated[Optional[StrictBool], Field(description="Cascade action.")] = None,
1304213047
_request_timeout: Union[
1304313048
None,
1304413049
Annotated[StrictFloat, Field(gt=0)],
@@ -13059,6 +13064,8 @@ def delete_volume_with_http_info(
1305913064
:type region: str
1306013065
:param volume_id: The identifier (ID) of a STACKIT Volume. (required)
1306113066
:type volume_id: UUID
13067+
:param cascade: Cascade action.
13068+
:type cascade: bool
1306213069
:param _request_timeout: timeout setting for this request. If one
1306313070
number provided, it will be total request
1306413071
timeout. It can also be a pair (tuple) of
@@ -13085,6 +13092,7 @@ def delete_volume_with_http_info(
1308513092
project_id=project_id,
1308613093
region=region,
1308713094
volume_id=volume_id,
13095+
cascade=cascade,
1308813096
_request_auth=_request_auth,
1308913097
_content_type=_content_type,
1309013098
_headers=_headers,
@@ -13113,6 +13121,7 @@ def delete_volume_without_preload_content(
1311313121
project_id: Annotated[UUID, Field(description="The identifier (ID) of a STACKIT Project.")],
1311413122
region: Annotated[StrictStr, Field(description="The STACKIT Region of the resources.")],
1311513123
volume_id: Annotated[UUID, Field(description="The identifier (ID) of a STACKIT Volume.")],
13124+
cascade: Annotated[Optional[StrictBool], Field(description="Cascade action.")] = None,
1311613125
_request_timeout: Union[
1311713126
None,
1311813127
Annotated[StrictFloat, Field(gt=0)],
@@ -13133,6 +13142,8 @@ def delete_volume_without_preload_content(
1313313142
:type region: str
1313413143
:param volume_id: The identifier (ID) of a STACKIT Volume. (required)
1313513144
:type volume_id: UUID
13145+
:param cascade: Cascade action.
13146+
:type cascade: bool
1313613147
:param _request_timeout: timeout setting for this request. If one
1313713148
number provided, it will be total request
1313813149
timeout. It can also be a pair (tuple) of
@@ -13159,6 +13170,7 @@ def delete_volume_without_preload_content(
1315913170
project_id=project_id,
1316013171
region=region,
1316113172
volume_id=volume_id,
13173+
cascade=cascade,
1316213174
_request_auth=_request_auth,
1316313175
_content_type=_content_type,
1316413176
_headers=_headers,
@@ -13182,6 +13194,7 @@ def _delete_volume_serialize(
1318213194
project_id,
1318313195
region,
1318413196
volume_id,
13197+
cascade,
1318513198
_request_auth,
1318613199
_content_type,
1318713200
_headers,
@@ -13207,6 +13220,10 @@ def _delete_volume_serialize(
1320713220
if volume_id is not None:
1320813221
_path_params["volumeId"] = volume_id
1320913222
# process the query parameters
13223+
if cascade is not None:
13224+
13225+
_query_params.append(("cascade", cascade))
13226+
1321013227
# process the header parameters
1321113228
# process the form parameters
1321213229
# process the body parameter

services/iaas/src/stackit/iaas/models/create_server_payload.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
BaseModel,
2626
ConfigDict,
2727
Field,
28+
StrictBool,
2829
StrictBytes,
2930
StrictStr,
3031
field_validator,
@@ -55,6 +56,9 @@ class CreateServerPayload(BaseModel):
5556
alias="availabilityZone",
5657
)
5758
boot_volume: Optional[BootVolume] = Field(default=None, alias="bootVolume")
59+
config_drive: Optional[StrictBool] = Field(
60+
default=False, description="When true the server is created with a config drive.", alias="configDrive"
61+
)
5862
created_at: Optional[datetime] = Field(
5963
default=None, description="Date-time when resource was created.", alias="createdAt"
6064
)
@@ -118,6 +122,7 @@ class CreateServerPayload(BaseModel):
118122
"agent",
119123
"availabilityZone",
120124
"bootVolume",
125+
"configDrive",
121126
"createdAt",
122127
"errorMessage",
123128
"id",
@@ -338,6 +343,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
338343
"agent": ServerAgent.from_dict(obj["agent"]) if obj.get("agent") is not None else None,
339344
"availabilityZone": obj.get("availabilityZone"),
340345
"bootVolume": BootVolume.from_dict(obj["bootVolume"]) if obj.get("bootVolume") is not None else None,
346+
"configDrive": obj.get("configDrive") if obj.get("configDrive") is not None else False,
341347
"createdAt": obj.get("createdAt"),
342348
"errorMessage": obj.get("errorMessage"),
343349
"id": obj.get("id"),

services/iaas/src/stackit/iaas/models/server.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
BaseModel,
2626
ConfigDict,
2727
Field,
28+
StrictBool,
2829
StrictBytes,
2930
StrictStr,
3031
field_validator,
@@ -53,6 +54,9 @@ class Server(BaseModel):
5354
alias="availabilityZone",
5455
)
5556
boot_volume: Optional[BootVolume] = Field(default=None, alias="bootVolume")
57+
config_drive: Optional[StrictBool] = Field(
58+
default=False, description="When true the server is created with a config drive.", alias="configDrive"
59+
)
5660
created_at: Optional[datetime] = Field(
5761
default=None, description="Date-time when resource was created.", alias="createdAt"
5862
)
@@ -116,6 +120,7 @@ class Server(BaseModel):
116120
"agent",
117121
"availabilityZone",
118122
"bootVolume",
123+
"configDrive",
119124
"createdAt",
120125
"errorMessage",
121126
"id",
@@ -336,6 +341,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
336341
"agent": ServerAgent.from_dict(obj["agent"]) if obj.get("agent") is not None else None,
337342
"availabilityZone": obj.get("availabilityZone"),
338343
"bootVolume": BootVolume.from_dict(obj["bootVolume"]) if obj.get("bootVolume") is not None else None,
344+
"configDrive": obj.get("configDrive") if obj.get("configDrive") is not None else False,
339345
"createdAt": obj.get("createdAt"),
340346
"errorMessage": obj.get("errorMessage"),
341347
"id": obj.get("id"),

0 commit comments

Comments
 (0)