Skip to content

Commit f0e2b77

Browse files
Generator: Update SDK /services/iaas (#3218)
Co-authored-by: Manuel Vaas <manuel.vaas@stackit.cloud>
1 parent 58aaae4 commit f0e2b77

Some content is hidden

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

46 files changed

+111
-52
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
## Release (2026-xx-xx)
22

3+
- `iaas`: [v1.2.0](services/iaas/CHANGELOG.md#v120)
4+
- **Feature:** Add `description` attribute to ModelClasses:
5+
- `Backup`, `CreateBackupPayload`, `UpdateBackupPayload`
6+
- `Snapshot`, `CreateSnapshotPayload`, `UpdateSnapshotPayload`
7+
- **Bugfix:** Flagged `disk_format` as necessary for `ImageFromVolumePayload`
8+
- **Improvement:** Updated description for labels
39
- `alb`: [v0.9.0](services/alb/CHANGELOG.md#v090)
410
- **Feature:** Add new field `AltPort` to `ActiveHealthCheck`
511
- **Feature:** Add new field `Tls` to `HttpHealthCheck`

services/iaas/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## v1.2.0
2+
- **Feature:** Add `description` attribute to ModelClasses:
3+
- `Backup`, `CreateBackupPayload`, `UpdateBackupPayload`
4+
- `Snapshot`, `CreateSnapshotPayload`, `UpdateSnapshotPayload`
5+
- **Bugfix:** Flagged `disk_format` as necessary for `ImageFromVolumePayload`
6+
- **Improvement:** Updated description for labels
7+
18
## v1.1.0
29
- **Feature:** Add `CreateIsolatedNetwork` functionality
310
- **Feature:** Add `ImageFromVolumePayload` functionality

services/iaas/oas_commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cb550f3c2129447568c2855337b1874968e033bb

services/iaas/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "stackit-iaas"
3-
version = "v1.1.0"
3+
version = "v1.2.0"
44
description = "IaaS-API"
55
authors = [{ name = "STACKIT Developer Tools", email = "developer-tools@stackit.cloud" }]
66
requires-python = ">=3.9,<4.0"
@@ -111,7 +111,7 @@ per-file-ignores = """
111111
# asserts are fine in tests, tests shouldn't be build optimized
112112
./tests/*: S101,
113113
# F841: some variables get generated but may not be used, depending on the api-spec
114-
# E501: long descriptions/string values might lead to lines that are too long
114+
# E501: long descriptions/string values might lead to lines that are too long
115115
./src/stackit/*/models/*: F841,E501
116116
# F841: some variables get generated but may not be used, depending on the api-spec
117117
# E501: long descriptions/string values might lead to lines that are too long

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class AddRoutingTableToAreaPayload(BaseModel):
4949
)
5050
labels: Optional[Dict[str, Any]] = Field(
5151
default=None,
52-
description="Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key.",
52+
description="Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. The `stackit-` prefix is reserved and cannot be used for Keys.",
5353
)
5454
name: Annotated[str, Field(strict=True, max_length=127)] = Field(
5555
description="The name for a General Object. Matches Names and also UUIDs."

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,16 @@ class Backup(BaseModel):
4343
created_at: Optional[datetime] = Field(
4444
default=None, description="Date-time when resource was created.", alias="createdAt"
4545
)
46+
description: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(
47+
default=None, description="Description Object. Allows string up to 255 Characters."
48+
)
4649
encrypted: Optional[StrictBool] = Field(default=None, description="Indicates if a volume is encrypted.")
4750
id: Optional[Annotated[str, Field(min_length=36, strict=True, max_length=36)]] = Field(
4851
default=None, description="Universally Unique Identifier (UUID)."
4952
)
5053
labels: Optional[Dict[str, Any]] = Field(
5154
default=None,
52-
description="Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key.",
55+
description="Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. The `stackit-` prefix is reserved and cannot be used for Keys.",
5356
)
5457
name: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
5558
default=None, description="The name for a General Object. Matches Names and also UUIDs."
@@ -71,6 +74,7 @@ class Backup(BaseModel):
7174
__properties: ClassVar[List[str]] = [
7275
"availabilityZone",
7376
"createdAt",
77+
"description",
7478
"encrypted",
7579
"id",
7680
"labels",
@@ -227,6 +231,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
227231
{
228232
"availabilityZone": obj.get("availabilityZone"),
229233
"createdAt": obj.get("createdAt"),
234+
"description": obj.get("description"),
230235
"encrypted": obj.get("encrypted"),
231236
"id": obj.get("id"),
232237
"labels": obj.get("labels"),

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,18 @@ class CreateBackupPayload(BaseModel):
3030
Object that represents a backup create request body.
3131
""" # noqa: E501
3232

33+
description: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(
34+
default=None, description="Description Object. Allows string up to 255 Characters."
35+
)
3336
labels: Optional[Dict[str, Any]] = Field(
3437
default=None,
35-
description="Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key.",
38+
description="Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. The `stackit-` prefix is reserved and cannot be used for Keys.",
3639
)
3740
name: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
3841
default=None, description="The name for a General Object. Matches Names and also UUIDs."
3942
)
4043
source: BackupSource
41-
__properties: ClassVar[List[str]] = ["labels", "name", "source"]
44+
__properties: ClassVar[List[str]] = ["description", "labels", "name", "source"]
4245

4346
@field_validator("name")
4447
def name_validate_regular_expression(cls, value):
@@ -103,6 +106,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
103106

104107
_obj = cls.model_validate(
105108
{
109+
"description": obj.get("description"),
106110
"labels": obj.get("labels"),
107111
"name": obj.get("name"),
108112
"source": BackupSource.from_dict(obj["source"]) if obj.get("source") is not None else None,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class CreateImagePayload(BaseModel):
5858
)
5959
labels: Optional[Dict[str, Any]] = Field(
6060
default=None,
61-
description="Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key.",
61+
description="Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. The `stackit-` prefix is reserved and cannot be used for Keys.",
6262
)
6363
min_disk_size: Optional[StrictInt] = Field(default=None, description="Size in Gigabyte.", alias="minDiskSize")
6464
min_ram: Optional[StrictInt] = Field(default=None, description="Size in Megabyte.", alias="minRam")

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class CreateIsolatedNetworkPayload(BaseModel):
3434
ipv4: Optional[CreateNetworkIPv4] = None
3535
labels: Optional[Dict[str, Any]] = Field(
3636
default=None,
37-
description="Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key.",
37+
description="Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. The `stackit-` prefix is reserved and cannot be used for Keys.",
3838
)
3939
name: Annotated[str, Field(strict=True, max_length=127)] = Field(
4040
description="The name for a General Object. Matches Names and also UUIDs."

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class CreateKeyPairPayload(BaseModel):
3737
)
3838
labels: Optional[Dict[str, Any]] = Field(
3939
default=None,
40-
description="Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key.",
40+
description="Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. The `stackit-` prefix is reserved and cannot be used for Keys.",
4141
)
4242
name: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
4343
default=None,

0 commit comments

Comments
 (0)