Skip to content

Commit 728e80d

Browse files
Generate iaasalpha
1 parent 3b07ac5 commit 728e80d

36 files changed

+157
-124
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14332,7 +14332,7 @@ def get_machine_type(
1433214332
str,
1433314333
Field(min_length=36, strict=True, max_length=36, description="The identifier (ID) of a STACKIT Project."),
1433414334
],
14335-
machine_type: Annotated[str, Field(strict=True, max_length=63, description="STACKIT machine type Name.")],
14335+
machine_type: Annotated[str, Field(strict=True, max_length=127, description="STACKIT machine type Name.")],
1433614336
_request_timeout: Union[
1433714337
None,
1433814338
Annotated[StrictFloat, Field(gt=0)],
@@ -14404,7 +14404,7 @@ def get_machine_type_with_http_info(
1440414404
str,
1440514405
Field(min_length=36, strict=True, max_length=36, description="The identifier (ID) of a STACKIT Project."),
1440614406
],
14407-
machine_type: Annotated[str, Field(strict=True, max_length=63, description="STACKIT machine type Name.")],
14407+
machine_type: Annotated[str, Field(strict=True, max_length=127, description="STACKIT machine type Name.")],
1440814408
_request_timeout: Union[
1440914409
None,
1441014410
Annotated[StrictFloat, Field(gt=0)],
@@ -14476,7 +14476,7 @@ def get_machine_type_without_preload_content(
1447614476
str,
1447714477
Field(min_length=36, strict=True, max_length=36, description="The identifier (ID) of a STACKIT Project."),
1447814478
],
14479-
machine_type: Annotated[str, Field(strict=True, max_length=63, description="STACKIT machine type Name.")],
14479+
machine_type: Annotated[str, Field(strict=True, max_length=127, description="STACKIT machine type Name.")],
1448014480
_request_timeout: Union[
1448114481
None,
1448214482
Annotated[StrictFloat, Field(gt=0)],
@@ -19759,7 +19759,7 @@ def get_volume_performance_class(
1975919759
Field(min_length=36, strict=True, max_length=36, description="The identifier (ID) of a STACKIT Project."),
1976019760
],
1976119761
volume_performance_class: Annotated[
19762-
str, Field(strict=True, max_length=63, description="The name of a STACKIT Volume performance class.")
19762+
str, Field(strict=True, max_length=127, description="The name of a STACKIT Volume performance class.")
1976319763
],
1976419764
_request_timeout: Union[
1976519765
None,
@@ -19833,7 +19833,7 @@ def get_volume_performance_class_with_http_info(
1983319833
Field(min_length=36, strict=True, max_length=36, description="The identifier (ID) of a STACKIT Project."),
1983419834
],
1983519835
volume_performance_class: Annotated[
19836-
str, Field(strict=True, max_length=63, description="The name of a STACKIT Volume performance class.")
19836+
str, Field(strict=True, max_length=127, description="The name of a STACKIT Volume performance class.")
1983719837
],
1983819838
_request_timeout: Union[
1983919839
None,
@@ -19907,7 +19907,7 @@ def get_volume_performance_class_without_preload_content(
1990719907
Field(min_length=36, strict=True, max_length=36, description="The identifier (ID) of a STACKIT Project."),
1990819908
],
1990919909
volume_performance_class: Annotated[
19910-
str, Field(strict=True, max_length=63, description="The name of a STACKIT Volume performance class.")
19910+
str, Field(strict=True, max_length=127, description="The name of a STACKIT Volume performance class.")
1991119911
],
1991219912
_request_timeout: Union[
1991319913
None,

services/iaasalpha/src/stackit/iaasalpha/models/affinity_group.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class AffinityGroup(BaseModel):
3434
members: Optional[List[Annotated[str, Field(min_length=36, strict=True, max_length=36)]]] = Field(
3535
default=None, description="The servers that are part of the affinity group."
3636
)
37-
name: Annotated[str, Field(strict=True, max_length=63)] = Field(
37+
name: Annotated[str, Field(strict=True, max_length=127)] = Field(
3838
description="The name for a General Object. Matches Names and also UUIDs."
3939
)
4040
policy: StrictStr = Field(
@@ -57,8 +57,8 @@ def id_validate_regular_expression(cls, value):
5757
@field_validator("name")
5858
def name_validate_regular_expression(cls, value):
5959
"""Validates the regular expression"""
60-
if not re.match(r"^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$", value):
61-
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$/")
60+
if not re.match(r"^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$", value):
61+
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$/")
6262
return value
6363

6464
model_config = ConfigDict(

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Backup(BaseModel):
4242
default=None,
4343
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}$`.",
4444
)
45-
name: Optional[Annotated[str, Field(strict=True, max_length=63)]] = Field(
45+
name: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
4646
default=None, description="The name for a General Object. Matches Names and also UUIDs."
4747
)
4848
size: Optional[StrictInt] = Field(default=None, description="Size in Gigabyte.")
@@ -90,8 +90,8 @@ def name_validate_regular_expression(cls, value):
9090
if value is None:
9191
return value
9292

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

9797
@field_validator("snapshot_id")

services/iaasalpha/src/stackit/iaasalpha/models/boot_volume.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class BootVolume(BaseModel):
4545
id: Optional[Annotated[str, Field(min_length=36, strict=True, max_length=36)]] = Field(
4646
default=None, description="Universally Unique Identifier (UUID)."
4747
)
48-
performance_class: Optional[Annotated[str, Field(strict=True, max_length=63)]] = Field(
48+
performance_class: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
4949
default=None,
5050
description="The name for a General Object. Matches Names and also UUIDs.",
5151
alias="performanceClass",
@@ -72,8 +72,8 @@ def performance_class_validate_regular_expression(cls, value):
7272
if value is None:
7373
return value
7474

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

7979
model_config = ConfigDict(

services/iaasalpha/src/stackit/iaasalpha/models/create_affinity_group_payload.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class CreateAffinityGroupPayload(BaseModel):
3434
members: Optional[List[Annotated[str, Field(min_length=36, strict=True, max_length=36)]]] = Field(
3535
default=None, description="The servers that are part of the affinity group."
3636
)
37-
name: Annotated[str, Field(strict=True, max_length=63)] = Field(
37+
name: Annotated[str, Field(strict=True, max_length=127)] = Field(
3838
description="The name for a General Object. Matches Names and also UUIDs."
3939
)
4040
policy: StrictStr = Field(
@@ -57,8 +57,8 @@ def id_validate_regular_expression(cls, value):
5757
@field_validator("name")
5858
def name_validate_regular_expression(cls, value):
5959
"""Validates the regular expression"""
60-
if not re.match(r"^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$", value):
61-
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$/")
60+
if not re.match(r"^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$", value):
61+
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$/")
6262
return value
6363

6464
model_config = ConfigDict(

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class CreateBackupPayload(BaseModel):
3434
default=None,
3535
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}$`.",
3636
)
37-
name: Optional[Annotated[str, Field(strict=True, max_length=63)]] = Field(
37+
name: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
3838
default=None, description="The name for a General Object. Matches Names and also UUIDs."
3939
)
4040
source: BackupSource
@@ -46,8 +46,8 @@ def name_validate_regular_expression(cls, value):
4646
if value is None:
4747
return value
4848

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

5353
model_config = ConfigDict(

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class CreateImagePayload(BaseModel):
5757
)
5858
min_disk_size: Optional[StrictInt] = Field(default=None, description="Size in Gigabyte.", alias="minDiskSize")
5959
min_ram: Optional[StrictInt] = Field(default=None, description="Size in Megabyte.", alias="minRam")
60-
name: Annotated[str, Field(strict=True, max_length=63)] = Field(
60+
name: Annotated[str, Field(strict=True, max_length=127)] = Field(
6161
description="The name for a General Object. Matches Names and also UUIDs."
6262
)
6363
owner: Optional[Annotated[str, Field(min_length=36, strict=True, max_length=36)]] = Field(
@@ -108,8 +108,8 @@ def id_validate_regular_expression(cls, value):
108108
@field_validator("name")
109109
def name_validate_regular_expression(cls, value):
110110
"""Validates the regular expression"""
111-
if not re.match(r"^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$", value):
112-
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$/")
111+
if not re.match(r"^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$", value):
112+
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$/")
113113
return value
114114

115115
@field_validator("owner")

services/iaasalpha/src/stackit/iaasalpha/models/create_network_area_payload.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,16 @@ class CreateNetworkAreaPayload(BaseModel):
3535
default=None,
3636
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}$`.",
3737
)
38-
name: Annotated[str, Field(strict=True, max_length=63)] = Field(
38+
name: Annotated[str, Field(strict=True, max_length=127)] = Field(
3939
description="The name for a General Object. Matches Names and also UUIDs."
4040
)
4141
__properties: ClassVar[List[str]] = ["addressFamily", "labels", "name"]
4242

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

5050
model_config = ConfigDict(

services/iaasalpha/src/stackit/iaasalpha/models/create_network_payload.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class CreateNetworkPayload(BaseModel):
3737
default=None,
3838
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}$`.",
3939
)
40-
name: Annotated[str, Field(strict=True, max_length=63)] = Field(
40+
name: Annotated[str, Field(strict=True, max_length=127)] = Field(
4141
description="The name for a General Object. Matches Names and also UUIDs."
4242
)
4343
routed: Optional[StrictBool] = Field(
@@ -48,8 +48,8 @@ class CreateNetworkPayload(BaseModel):
4848
@field_validator("name")
4949
def name_validate_regular_expression(cls, value):
5050
"""Validates the regular expression"""
51-
if not re.match(r"^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$", value):
52-
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$/")
51+
if not re.match(r"^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$", value):
52+
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$/")
5353
return value
5454

5555
model_config = ConfigDict(

services/iaasalpha/src/stackit/iaasalpha/models/create_nic_payload.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class CreateNicPayload(BaseModel):
5959
mac: Optional[Annotated[str, Field(strict=True)]] = Field(
6060
default=None, description="Object that represents an MAC address."
6161
)
62-
name: Optional[Annotated[str, Field(strict=True, max_length=63)]] = Field(
62+
name: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
6363
default=None, description="The name for a General Object. Matches Names and also UUIDs."
6464
)
6565
network_id: Optional[Annotated[str, Field(min_length=36, strict=True, max_length=36)]] = Field(
@@ -161,8 +161,8 @@ def name_validate_regular_expression(cls, value):
161161
if value is None:
162162
return value
163163

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

168168
@field_validator("network_id")

0 commit comments

Comments
 (0)