Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Generator: Update SDK /services/iaas#1299

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Benjosh95 merged 3 commits intomainfromgenerator-bot-15821554992/iaas
Jun 23, 2025
Merged
Show file tree
Hide file tree
Changes fromall 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
11 changes: 11 additions & 0 deletionsCHANGELOG.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -9,6 +9,17 @@
- new model `OfferType`
- new attribute `CatalogProductDetail` for `CatalogProductDetail` model
- Attribute `is_product_listing` in `CatalogProductDetail` is now of type `Optional[StrictBool]` (previously `StrictBool`)
- `iaas`: [v0.5.4](services/iaas/CHANGELOG.md#v054)
- **Improvement:** Increase max length of `machine_type` and `volume_performance_class` fields from 63 to 127 characters in API methods
- **Improvement:** Increase max length of `name` fields from 63 to 127 characters for various models:
- `AffinityGroup`, `Backup`, `BootVolume`, `CreateAffinityGroupPayload`, `CreateBackupPayload`
`CreateImagePayload`, `CreateNetworkAreaPayload`, `CreateNetworkPayload`, `CreateNicPayload`
`CreateSecurityGroupPayload`, `CreateServerPayload`, `CreateSnapshotPayload`, `CreateVolumePayload`
`Image`, `MachineType`, `Nic`, `PartialUpdateNetworkAreaPayload`, `PartialUpdateNetworkPayload`
`ResizeServerPayload`, `SecurityGroup`, `Server`, `ServerNetwork`, `Snapshot`
`UpdateBackupPayload`, `UpdateImagePayload`, `UpdateNicPayload`, `UpdateSecurityGroupPayload`
`UpdateServerPayload`, `UpdateSnapshotPayload`, `UpdateVolumePayload`, `Volume`, `VolumePerformanceClass`
- **Improvement:** Update regular expression pattern for name validation to allow more flexible naming conventions

## Release (2025-06-16)
- `core`: [v0.2.0](core/CHANGELOG.md#v020-2025-06-12)
Expand Down
12 changes: 12 additions & 0 deletionsservices/iaas/CHANGELOG.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
## v0.5.4
- **Improvement:** Increase max length of `machine_type` and `volume_performance_class` fields from 63 to 127 characters in API methods
- **Improvement:** Increase max length of `name` fields from 63 to 127 characters for various models:
- `AffinityGroup`, `Backup`, `BootVolume`, `CreateAffinityGroupPayload`, `CreateBackupPayload`
`CreateImagePayload`, `CreateNetworkAreaPayload`, `CreateNetworkPayload`, `CreateNicPayload`
`CreateSecurityGroupPayload`, `CreateServerPayload`, `CreateSnapshotPayload`, `CreateVolumePayload`
`Image`, `MachineType`, `Nic`, `PartialUpdateNetworkAreaPayload`, `PartialUpdateNetworkPayload`
`ResizeServerPayload`, `SecurityGroup`, `Server`, `ServerNetwork`, `Snapshot`
`UpdateBackupPayload`, `UpdateImagePayload`, `UpdateNicPayload`, `UpdateSecurityGroupPayload`
`UpdateServerPayload`, `UpdateSnapshotPayload`, `UpdateVolumePayload`, `Volume`, `VolumePerformanceClass`
- **Improvement:** Update regular expression pattern for name validation to allow more flexible naming conventions

## v0.5.3 (2025-06-12)
- Increase max length of description from 127 to 255 for
- Security groups: `BaseSecurityGroupRule`, `CreateSecurityGroupPayload`, `CreateSecurityGroupRulePayload`, `SecurityGroup`, `SecurityGroupRule`, `UpdateSecurityGroupPayload`
Expand Down
2 changes: 1 addition & 1 deletionservices/iaas/pyproject.toml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,7 +3,7 @@ name = "stackit-iaas"

[tool.poetry]
name = "stackit-iaas"
version = "v0.5.3"
version = "v0.5.4"
authors = [
"STACKIT Developer Tools <developer-tools@stackit.cloud>",
]
Expand Down
12 changes: 6 additions & 6 deletionsservices/iaas/src/stackit/iaas/api/default_api.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -13378,7 +13378,7 @@ def get_machine_type(
str,
Field(min_length=36, strict=True, max_length=36, description="The identifier (ID) of a STACKIT Project."),
],
machine_type: Annotated[str, Field(strict=True, max_length=63, description="STACKIT machine type Name.")],
machine_type: Annotated[str, Field(strict=True, max_length=127, description="STACKIT machine type Name.")],
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand DownExpand Up@@ -13450,7 +13450,7 @@ def get_machine_type_with_http_info(
str,
Field(min_length=36, strict=True, max_length=36, description="The identifier (ID) of a STACKIT Project."),
],
machine_type: Annotated[str, Field(strict=True, max_length=63, description="STACKIT machine type Name.")],
machine_type: Annotated[str, Field(strict=True, max_length=127, description="STACKIT machine type Name.")],
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand DownExpand Up@@ -13522,7 +13522,7 @@ def get_machine_type_without_preload_content(
str,
Field(min_length=36, strict=True, max_length=36, description="The identifier (ID) of a STACKIT Project."),
],
machine_type: Annotated[str, Field(strict=True, max_length=63, description="STACKIT machine type Name.")],
machine_type: Annotated[str, Field(strict=True, max_length=127, description="STACKIT machine type Name.")],
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand DownExpand Up@@ -18260,7 +18260,7 @@ def get_volume_performance_class(
Field(min_length=36, strict=True, max_length=36, description="The identifier (ID) of a STACKIT Project."),
],
volume_performance_class: Annotated[
str, Field(strict=True, max_length=63, description="The name of a STACKIT Volume performance class.")
str, Field(strict=True, max_length=127, description="The name of a STACKIT Volume performance class.")
],
_request_timeout: Union[
None,
Expand DownExpand Up@@ -18334,7 +18334,7 @@ def get_volume_performance_class_with_http_info(
Field(min_length=36, strict=True, max_length=36, description="The identifier (ID) of a STACKIT Project."),
],
volume_performance_class: Annotated[
str, Field(strict=True, max_length=63, description="The name of a STACKIT Volume performance class.")
str, Field(strict=True, max_length=127, description="The name of a STACKIT Volume performance class.")
],
_request_timeout: Union[
None,
Expand DownExpand Up@@ -18408,7 +18408,7 @@ def get_volume_performance_class_without_preload_content(
Field(min_length=36, strict=True, max_length=36, description="The identifier (ID) of a STACKIT Project."),
],
volume_performance_class: Annotated[
str, Field(strict=True, max_length=63, description="The name of a STACKIT Volume performance class.")
str, Field(strict=True, max_length=127, description="The name of a STACKIT Volume performance class.")
],
_request_timeout: Union[
None,
Expand Down
6 changes: 3 additions & 3 deletionsservices/iaas/src/stackit/iaas/models/affinity_group.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -34,7 +34,7 @@ class AffinityGroup(BaseModel):
members: Optional[List[Annotated[str, Field(min_length=36, strict=True, max_length=36)]]] = Field(
default=None, description="The servers that are part of the affinity group."
)
name: Annotated[str, Field(strict=True, max_length=63)] = Field(
name: Annotated[str, Field(strict=True, max_length=127)] = Field(
description="The name for a General Object. Matches Names and also UUIDs."
)
policy: StrictStr = Field(
Expand All@@ -57,8 +57,8 @@ def id_validate_regular_expression(cls, value):
@field_validator("name")
def name_validate_regular_expression(cls, value):
"""Validates the regular expression"""
if not re.match(r"^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$", value):
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$/")
if not re.match(r"^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$", value):
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$/")
return value

model_config = ConfigDict(
Expand Down
6 changes: 3 additions & 3 deletionsservices/iaas/src/stackit/iaas/models/backup.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -42,7 +42,7 @@ class Backup(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: Optional[Annotated[str, Field(strict=True, max_length=63)]] = Field(
name: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
default=None, description="The name for a General Object. Matches Names and also UUIDs."
)
size: Optional[StrictInt] = Field(default=None, description="Size in Gigabyte.")
Expand DownExpand Up@@ -90,8 +90,8 @@ def name_validate_regular_expression(cls, value):
if value is None:
return value

if not re.match(r"^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$", value):
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$/")
if not re.match(r"^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$", value):
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$/")
return value

@field_validator("snapshot_id")
Expand Down
6 changes: 3 additions & 3 deletionsservices/iaas/src/stackit/iaas/models/boot_volume.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -45,7 +45,7 @@ class BootVolume(BaseModel):
id: Optional[Annotated[str, Field(min_length=36, strict=True, max_length=36)]] = Field(
default=None, description="Universally Unique Identifier (UUID)."
)
performance_class: Optional[Annotated[str, Field(strict=True, max_length=63)]] = Field(
performance_class: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
default=None,
description="The name for a General Object. Matches Names and also UUIDs.",
alias="performanceClass",
Expand All@@ -72,8 +72,8 @@ def performance_class_validate_regular_expression(cls, value):
if value is None:
return value

if not re.match(r"^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$", value):
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$/")
if not re.match(r"^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$", value):
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$/")
return value

model_config = ConfigDict(
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -34,7 +34,7 @@ class CreateAffinityGroupPayload(BaseModel):
members: Optional[List[Annotated[str, Field(min_length=36, strict=True, max_length=36)]]] = Field(
default=None, description="The servers that are part of the affinity group."
)
name: Annotated[str, Field(strict=True, max_length=63)] = Field(
name: Annotated[str, Field(strict=True, max_length=127)] = Field(
description="The name for a General Object. Matches Names and also UUIDs."
)
policy: StrictStr = Field(
Expand All@@ -57,8 +57,8 @@ def id_validate_regular_expression(cls, value):
@field_validator("name")
def name_validate_regular_expression(cls, value):
"""Validates the regular expression"""
if not re.match(r"^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$", value):
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$/")
if not re.match(r"^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$", value):
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$/")
return value

model_config = ConfigDict(
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -34,7 +34,7 @@ class CreateBackupPayload(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: Optional[Annotated[str, Field(strict=True, max_length=63)]] = Field(
name: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
default=None, description="The name for a General Object. Matches Names and also UUIDs."
)
source: BackupSource
Expand All@@ -46,8 +46,8 @@ def name_validate_regular_expression(cls, value):
if value is None:
return value

if not re.match(r"^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$", value):
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$/")
if not re.match(r"^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$", value):
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$/")
return value

model_config = ConfigDict(
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -57,7 +57,7 @@ class CreateImagePayload(BaseModel):
)
min_disk_size: Optional[StrictInt] = Field(default=None, description="Size in Gigabyte.", alias="minDiskSize")
min_ram: Optional[StrictInt] = Field(default=None, description="Size in Megabyte.", alias="minRam")
name: Annotated[str, Field(strict=True, max_length=63)] = Field(
name: Annotated[str, Field(strict=True, max_length=127)] = Field(
description="The name for a General Object. Matches Names and also UUIDs."
)
owner: Optional[Annotated[str, Field(min_length=36, strict=True, max_length=36)]] = Field(
Expand DownExpand Up@@ -108,8 +108,8 @@ def id_validate_regular_expression(cls, value):
@field_validator("name")
def name_validate_regular_expression(cls, value):
"""Validates the regular expression"""
if not re.match(r"^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$", value):
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$/")
if not re.match(r"^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$", value):
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$/")
return value

@field_validator("owner")
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -35,16 +35,16 @@ class CreateNetworkAreaPayload(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: Annotated[str, Field(strict=True, max_length=63)] = Field(
name: Annotated[str, Field(strict=True, max_length=127)] = Field(
description="The name for a General Object. Matches Names and also UUIDs."
)
__properties: ClassVar[List[str]] = ["addressFamily", "labels", "name"]

@field_validator("name")
def name_validate_regular_expression(cls, value):
"""Validates the regular expression"""
if not re.match(r"^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$", value):
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$/")
if not re.match(r"^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$", value):
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$/")
return value

model_config = ConfigDict(
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -35,7 +35,7 @@ class CreateNetworkPayload(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: Annotated[str, Field(strict=True, max_length=63)] = Field(
name: Annotated[str, Field(strict=True, max_length=127)] = Field(
description="The name for a General Object. Matches Names and also UUIDs."
)
routed: Optional[StrictBool] = Field(
Expand All@@ -46,8 +46,8 @@ class CreateNetworkPayload(BaseModel):
@field_validator("name")
def name_validate_regular_expression(cls, value):
"""Validates the regular expression"""
if not re.match(r"^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$", value):
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$/")
if not re.match(r"^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$", value):
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$/")
return value

model_config = ConfigDict(
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -59,7 +59,7 @@ class CreateNicPayload(BaseModel):
mac: Optional[Annotated[str, Field(strict=True)]] = Field(
default=None, description="Object that represents an MAC address."
)
name: Optional[Annotated[str, Field(strict=True, max_length=63)]] = Field(
name: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
default=None, description="The name for a General Object. Matches Names and also UUIDs."
)
network_id: Optional[Annotated[str, Field(min_length=36, strict=True, max_length=36)]] = Field(
Expand DownExpand Up@@ -161,8 +161,8 @@ def name_validate_regular_expression(cls, value):
if value is None:
return value

if not re.match(r"^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$", value):
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$/")
if not re.match(r"^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$", value):
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$/")
return value

@field_validator("network_id")
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -44,7 +44,7 @@ class CreateSecurityGroupPayload(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: Annotated[str, Field(strict=True, max_length=63)] = Field(
name: Annotated[str, Field(strict=True, max_length=127)] = Field(
description="The name for a General Object. Matches Names and also UUIDs."
)
rules: Optional[List[SecurityGroupRule]] = Field(
Expand DownExpand Up@@ -83,8 +83,8 @@ def id_validate_regular_expression(cls, value):
@field_validator("name")
def name_validate_regular_expression(cls, value):
"""Validates the regular expression"""
if not re.match(r"^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$", value):
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$/")
if not re.match(r"^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$", value):
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$/")
return value

model_config = ConfigDict(
Expand Down
Loading
Loading

[8]ページ先頭

©2009-2025 Movatter.jp