Skip to content

Generator: Update SDK /services/iaas #1275

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
## Release (2025-XX-YY)
- `iaas`: [v0.5.3](services/iaas/CHANGELOG.md#v053-2025-06-12)
- Increase max length of description from 127 to 255 for
- Security groups: `BaseSecurityGroupRule`, `CreateSecurityGroupPayload`, `CreateSecurityGroupRulePayload`, `SecurityGroup`, `SecurityGroupRule`, `UpdateSecurityGroupPayload`
- Volumes: `CreateVolumePayload`, `UpdateVolumePayload`, `Volume`, `VolumePerformanceClass`
- `MachineType`
- Set max length of description of `Network` to 255
- Update the description of `Server` and `CreateServerPayload` status field to include new possible value `PAUSED`
- `loadbalanccer`: [v0.3.0](services/loadbalancer/CHANGELOG.md#v030-2025-06-10)
- **Feature:** Add new field `target_security_group` in `LoadBalancer` Model
- `resourcemanager`: [v0.5.0](services/resourcemanager/CHANGELOG.md#v050-2025-06-04)
Expand Down
8 changes: 8 additions & 0 deletions services/iaas/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## v0.5.3 (2025-06-12)
- Increase max length of description from 127 to 255 for
- Security groups: `BaseSecurityGroupRule`, `CreateSecurityGroupPayload`, `CreateSecurityGroupRulePayload`, `SecurityGroup`, `SecurityGroupRule`, `UpdateSecurityGroupPayload`
- Volumes: `CreateVolumePayload`, `UpdateVolumePayload`, `Volume`, `VolumePerformanceClass`
- `MachineType`
- Set max length of description of `Network` to 255
- Update the description of `Server` and `CreateServerPayload` status field to include new possible value `PAUSED`

## v0.5.2 (2025-05-19)
- **Improvement:** Update descriptions

Expand Down
2 changes: 1 addition & 1 deletion services/iaas/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "stackit-iaas"

[tool.poetry]
name = "stackit-iaas"
version = "v0.5.2"
version = "v0.5.3"
authors = [
"STACKIT Developer Tools <[email protected]>",
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ class BaseSecurityGroupRule(BaseModel):
The base schema for a security group rule.
"""

description: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
default=None, description="Description Object. Allows string up to 127 Characters."
description: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(
default=None, description="Description Object. Allows string up to 255 Characters."
)
direction: StrictStr = Field(description="The direction of the traffic which the rule should match.")
ethertype: Optional[StrictStr] = Field(default="IPv4", description="The ethertype which the rule should match.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ class CreateSecurityGroupPayload(BaseModel):
created_at: Optional[datetime] = Field(
default=None, description="Date-time when resource was created.", alias="createdAt"
)
description: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
default=None, description="Description Object. Allows string up to 127 Characters."
description: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(
default=None, description="Description Object. Allows string up to 255 Characters."
)
id: Optional[Annotated[str, Field(min_length=36, strict=True, max_length=36)]] = Field(
default=None, description="Universally Unique Identifier (UUID)."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ class CreateSecurityGroupRulePayload(BaseModel):
Object that represents a request body for security group rule creation.
"""

description: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
default=None, description="Description Object. Allows string up to 127 Characters."
description: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(
default=None, description="Description Object. Allows string up to 255 Characters."
)
direction: StrictStr = Field(description="The direction of the traffic which the rule should match.")
ethertype: Optional[StrictStr] = Field(default="IPv4", description="The ethertype which the rule should match.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class CreateServerPayload(BaseModel):
)
status: Optional[StrictStr] = Field(
default=None,
description="The status of a server object. Possible values: `ACTIVE`, `BACKING-UP`, `CREATING`, `DEALLOCATED`, `DEALLOCATING`, `DELETED`, `DELETING`, `ERROR`, `INACTIVE`, `MIGRATING`, `REBOOT`, `REBOOTING`, `REBUILD`, `REBUILDING`, `RESCUE`, `RESCUING`, `RESIZING`, `RESTORING`, `SNAPSHOTTING`, `STARTING`, `STOPPING`, `UNRESCUING`, `UPDATING`.",
description="The status of a server object. Possible values: `ACTIVE`, `BACKING-UP`, `CREATING`, `DEALLOCATED`, `DEALLOCATING`, `DELETED`, `DELETING`, `ERROR`, `INACTIVE`, `MIGRATING`, `PAUSED`, `REBOOT`, `REBOOTING`, `REBUILD`, `REBUILDING`, `RESCUE`, `RESCUING`, `RESIZING`, `RESTORING`, `SNAPSHOTTING`, `STARTING`, `STOPPING`, `UNRESCUING`, `UPDATING`.",
)
updated_at: Optional[datetime] = Field(
default=None, description="Date-time when resource was last updated.", alias="updatedAt"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ class CreateVolumePayload(BaseModel):
created_at: Optional[datetime] = Field(
default=None, description="Date-time when resource was created.", alias="createdAt"
)
description: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
default=None, description="Description Object. Allows string up to 127 Characters."
description: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(
default=None, description="Description Object. Allows string up to 255 Characters."
)
id: Optional[Annotated[str, Field(min_length=36, strict=True, max_length=36)]] = Field(
default=None, description="Universally Unique Identifier (UUID)."
Expand Down
4 changes: 2 additions & 2 deletions services/iaas/src/stackit/iaas/models/machine_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ class MachineType(BaseModel):
Machine Type. Filterable Fields: `disk`, `extraSpecs`, `name`, `ram`, `vcpus`.
"""

description: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
default=None, description="Description Object. Allows string up to 127 Characters."
description: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(
default=None, description="Description Object. Allows string up to 255 Characters."
)
disk: StrictInt = Field(description="Size in Gigabyte.")
extra_specs: Optional[Dict[str, Any]] = Field(
Expand Down
2 changes: 1 addition & 1 deletion services/iaas/src/stackit/iaas/models/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class Network(BaseModel):
default=None,
description="Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`.",
)
name: StrictStr
name: Annotated[str, Field(strict=True, max_length=255)]
nameservers: Optional[Annotated[List[Annotated[str, Field(strict=True)]], Field(max_length=3)]] = Field(
default=None, description="A list containing DNS Servers/Nameservers for IPv4."
)
Expand Down
4 changes: 2 additions & 2 deletions services/iaas/src/stackit/iaas/models/security_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ class SecurityGroup(BaseModel):
created_at: Optional[datetime] = Field(
default=None, description="Date-time when resource was created.", alias="createdAt"
)
description: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
default=None, description="Description Object. Allows string up to 127 Characters."
description: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(
default=None, description="Description Object. Allows string up to 255 Characters."
)
id: Optional[Annotated[str, Field(min_length=36, strict=True, max_length=36)]] = Field(
default=None, description="Universally Unique Identifier (UUID)."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ class SecurityGroupRule(BaseModel):
Object that represents a security group rule.
"""

description: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
default=None, description="Description Object. Allows string up to 127 Characters."
description: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(
default=None, description="Description Object. Allows string up to 255 Characters."
)
direction: StrictStr = Field(description="The direction of the traffic which the rule should match.")
ethertype: Optional[StrictStr] = Field(default="IPv4", description="The ethertype which the rule should match.")
Expand Down
2 changes: 1 addition & 1 deletion services/iaas/src/stackit/iaas/models/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class Server(BaseModel):
)
status: Optional[StrictStr] = Field(
default=None,
description="The status of a server object. Possible values: `ACTIVE`, `BACKING-UP`, `CREATING`, `DEALLOCATED`, `DEALLOCATING`, `DELETED`, `DELETING`, `ERROR`, `INACTIVE`, `MIGRATING`, `REBOOT`, `REBOOTING`, `REBUILD`, `REBUILDING`, `RESCUE`, `RESCUING`, `RESIZING`, `RESTORING`, `SNAPSHOTTING`, `STARTING`, `STOPPING`, `UNRESCUING`, `UPDATING`.",
description="The status of a server object. Possible values: `ACTIVE`, `BACKING-UP`, `CREATING`, `DEALLOCATED`, `DEALLOCATING`, `DELETED`, `DELETING`, `ERROR`, `INACTIVE`, `MIGRATING`, `PAUSED`, `REBOOT`, `REBOOTING`, `REBUILD`, `REBUILDING`, `RESCUE`, `RESCUING`, `RESIZING`, `RESTORING`, `SNAPSHOTTING`, `STARTING`, `STOPPING`, `UNRESCUING`, `UPDATING`.",
)
updated_at: Optional[datetime] = Field(
default=None, description="Date-time when resource was last updated.", alias="updatedAt"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ class UpdateSecurityGroupPayload(BaseModel):
Object that represents an update request body of a security group.
"""

description: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
default=None, description="Description Object. Allows string up to 127 Characters."
description: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(
default=None, description="Description Object. Allows string up to 255 Characters."
)
labels: Optional[Dict[str, Any]] = Field(
default=None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ class UpdateVolumePayload(BaseModel):
"""

bootable: Optional[StrictBool] = Field(default=None, description="Indicates if a volume is bootable.")
description: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
default=None, description="Description Object. Allows string up to 127 Characters."
description: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(
default=None, description="Description Object. Allows string up to 255 Characters."
)
image_config: Optional[ImageConfig] = Field(default=None, alias="imageConfig")
labels: Optional[Dict[str, Any]] = Field(
Expand Down
4 changes: 2 additions & 2 deletions services/iaas/src/stackit/iaas/models/volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ class Volume(BaseModel):
created_at: Optional[datetime] = Field(
default=None, description="Date-time when resource was created.", alias="createdAt"
)
description: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
default=None, description="Description Object. Allows string up to 127 Characters."
description: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(
default=None, description="Description Object. Allows string up to 255 Characters."
)
id: Optional[Annotated[str, Field(min_length=36, strict=True, max_length=36)]] = Field(
default=None, description="Universally Unique Identifier (UUID)."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ class VolumePerformanceClass(BaseModel):
Object that represents a Volume performance class.
"""

description: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
default=None, description="Description Object. Allows string up to 127 Characters."
description: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(
default=None, description="Description Object. Allows string up to 255 Characters."
)
iops: Optional[StrictInt] = Field(default=None, description="Input/Output Operations per second.")
labels: Optional[Dict[str, Any]] = Field(
Expand Down
Loading