Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 728e80d

Browse files
committedJun 23, 2025·
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")

‎services/iaasalpha/src/stackit/iaasalpha/models/create_security_group_payload.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class CreateSecurityGroupPayload(BaseModel):
4444
default=None,
4545
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}$`.",
4646
)
47-
name: Annotated[str, Field(strict=True, max_length=63)] = Field(
47+
name: Annotated[str, Field(strict=True, max_length=127)] = Field(
4848
description="The name for a General Object. Matches Names and also UUIDs."
4949
)
5050
rules: Optional[List[SecurityGroupRule]] = Field(
@@ -83,8 +83,8 @@ def id_validate_regular_expression(cls, value):
8383
@field_validator("name")
8484
def name_validate_regular_expression(cls, value):
8585
"""Validates the regular expression"""
86-
if not re.match(r"^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$", value):
87-
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$/")
86+
if not re.match(r"^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$", value):
87+
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$/")
8888
return value
8989

9090
model_config = ConfigDict(

‎services/iaasalpha/src/stackit/iaasalpha/models/create_server_payload.py‎

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,14 @@ class CreateServerPayload(BaseModel):
7272
launched_at: Optional[datetime] = Field(
7373
default=None, description="Date-time when resource was launched.", alias="launchedAt"
7474
)
75-
machine_type: Annotated[str, Field(strict=True, max_length=63)] = Field(
75+
machine_type: Annotated[str, Field(strict=True, max_length=127)] = Field(
7676
description="Name of the machine type the server shall belong to.", alias="machineType"
7777
)
7878
maintenance_window: Optional[ServerMaintenance] = Field(default=None, alias="maintenanceWindow")
79+
metadata: Optional[Dict[str, Any]] = Field(
80+
default=None,
81+
description="Object that represents the metadata of an object. Regex for keys: `^[a-zA-Z0-9-_:. ]{1,255}$`. Regex for values: `^.{0,255}$`.",
82+
)
7983
name: Annotated[str, Field(strict=True, max_length=63)] = Field(description="The name for a Server.")
8084
networking: Optional[CreateServerPayloadNetworking] = None
8185
nics: Optional[List[ServerNetwork]] = Field(
@@ -87,7 +91,7 @@ class CreateServerPayload(BaseModel):
8791
description="The power status of a server. Possible values: `CRASHED`, `ERROR`, `RUNNING`, `STOPPED`.",
8892
alias="powerStatus",
8993
)
90-
security_groups: Optional[List[Annotated[str, Field(strict=True, max_length=63)]]] = Field(
94+
security_groups: Optional[List[Annotated[str, Field(strict=True, max_length=127)]]] = Field(
9195
default=None, description="The initial security groups for the server creation.", alias="securityGroups"
9296
)
9397
service_account_mails: Optional[
@@ -125,6 +129,7 @@ class CreateServerPayload(BaseModel):
125129
"launchedAt",
126130
"machineType",
127131
"maintenanceWindow",
132+
"metadata",
128133
"name",
129134
"networking",
130135
"nics",
@@ -186,15 +191,20 @@ def keypair_name_validate_regular_expression(cls, value):
186191
@field_validator("machine_type")
187192
def machine_type_validate_regular_expression(cls, value):
188193
"""Validates the regular expression"""
189-
if not re.match(r"^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$", value):
190-
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$/")
194+
if not re.match(r"^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$", value):
195+
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$/")
191196
return value
192197

193198
@field_validator("name")
194199
def name_validate_regular_expression(cls, value):
195200
"""Validates the regular expression"""
196-
if not re.match(r"^[A-Za-z0-9]+((-|\.)[A-Za-z0-9]+)*$", value):
197-
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+((-|\.)[A-Za-z0-9]+)*$/")
201+
if not re.match(
202+
r"^(([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])$",
203+
value,
204+
):
205+
raise ValueError(
206+
r"must validate the regular expression /^(([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])$/"
207+
)
198208
return value
199209

200210
model_config = ConfigDict(
@@ -300,6 +310,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
300310
if obj.get("maintenanceWindow") is not None
301311
else None
302312
),
313+
"metadata": obj.get("metadata"),
303314
"name": obj.get("name"),
304315
"networking": (
305316
CreateServerPayloadNetworking.from_dict(obj["networking"])

‎services/iaasalpha/src/stackit/iaasalpha/models/create_snapshot_payload.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class CreateSnapshotPayload(BaseModel):
3939
default=None,
4040
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}$`.",
4141
)
42-
name: Optional[Annotated[str, Field(strict=True, max_length=63)]] = Field(
42+
name: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
4343
default=None, description="The name for a General Object. Matches Names and also UUIDs."
4444
)
4545
size: Optional[StrictInt] = Field(default=None, description="Size in Gigabyte.")
@@ -73,8 +73,8 @@ def name_validate_regular_expression(cls, value):
7373
if value is None:
7474
return value
7575

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

8080
@field_validator("volume_id")

‎services/iaasalpha/src/stackit/iaasalpha/models/create_virtual_ip_payload.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class CreateVirtualIPPayload(BaseModel):
4141
members: Optional[List[Annotated[str, Field(min_length=36, strict=True, max_length=36)]]] = Field(
4242
default=None, description="A list of UUIDs."
4343
)
44-
name: Optional[Annotated[str, Field(strict=True, max_length=63)]] = Field(
44+
name: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
4545
default=None, description="The name for a General Object. Matches Names and also UUIDs."
4646
)
4747
network: Optional[Annotated[str, Field(min_length=36, strict=True, max_length=36)]] = Field(
@@ -86,8 +86,8 @@ def name_validate_regular_expression(cls, value):
8686
if value is None:
8787
return value
8888

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

9393
@field_validator("network")

‎services/iaasalpha/src/stackit/iaasalpha/models/create_volume_payload.py‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ class CreateVolumePayload(BaseModel):
5858
default=None,
5959
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}$`.",
6060
)
61-
name: Optional[Annotated[str, Field(strict=True, max_length=63)]] = Field(
61+
name: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
6262
default=None, description="The name for a General Object. Matches Names and also UUIDs."
6363
)
64-
performance_class: Optional[Annotated[str, Field(strict=True, max_length=63)]] = Field(
64+
performance_class: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
6565
default=None,
6666
description="The name for a General Object. Matches Names and also UUIDs.",
6767
alias="performanceClass",
@@ -113,8 +113,8 @@ def name_validate_regular_expression(cls, value):
113113
if value is None:
114114
return value
115115

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

120120
@field_validator("performance_class")
@@ -123,8 +123,8 @@ def performance_class_validate_regular_expression(cls, value):
123123
if value is None:
124124
return value
125125

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

130130
@field_validator("server_id")

‎services/iaasalpha/src/stackit/iaasalpha/models/image.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class Image(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/machine_type.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class MachineType(BaseModel):
3737
description="Properties to control certain aspects or scheduling behavior for an object.",
3838
alias="extraSpecs",
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
ram: StrictInt = Field(description="Size in Megabyte.")
@@ -47,8 +47,8 @@ class MachineType(BaseModel):
4747
@field_validator("name")
4848
def name_validate_regular_expression(cls, value):
4949
"""Validates the regular expression"""
50-
if not re.match(r"^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$", value):
51-
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$/")
50+
if not re.match(r"^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$", value):
51+
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$/")
5252
return value
5353

5454
model_config = ConfigDict(

‎services/iaasalpha/src/stackit/iaasalpha/models/nic.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class NIC(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")

‎services/iaasalpha/src/stackit/iaasalpha/models/partial_update_network_area_payload.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class PartialUpdateNetworkAreaPayload(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: Optional[Annotated[str, Field(strict=True, max_length=63)]] = Field(
38+
name: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
3939
default=None, description="The name for a General Object. Matches Names and also UUIDs."
4040
)
4141
__properties: ClassVar[List[str]] = ["addressFamily", "labels", "name"]
@@ -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/partial_update_network_payload.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class PartialUpdateNetworkPayload(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: Optional[Annotated[str, Field(strict=True, max_length=63)]] = Field(
40+
name: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
4141
default=None, description="The name for a General Object. Matches Names and also UUIDs."
4242
)
4343
routed: Optional[StrictBool] = Field(
@@ -51,8 +51,8 @@ def name_validate_regular_expression(cls, value):
5151
if value is None:
5252
return value
5353

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

5858
model_config = ConfigDict(

‎services/iaasalpha/src/stackit/iaasalpha/models/resize_server_payload.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ class ResizeServerPayload(BaseModel):
2828
ResizeServerPayload
2929
"""
3030

31-
machine_type: Annotated[str, Field(strict=True, max_length=63)] = Field(
31+
machine_type: Annotated[str, Field(strict=True, max_length=127)] = Field(
3232
description="The name for a General Object. Matches Names and also UUIDs.", alias="machineType"
3333
)
3434
__properties: ClassVar[List[str]] = ["machineType"]
3535

3636
@field_validator("machine_type")
3737
def machine_type_validate_regular_expression(cls, value):
3838
"""Validates the regular expression"""
39-
if not re.match(r"^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$", value):
40-
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$/")
39+
if not re.match(r"^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$", value):
40+
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$/")
4141
return value
4242

4343
model_config = ConfigDict(

‎services/iaasalpha/src/stackit/iaasalpha/models/security_group.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class SecurityGroup(BaseModel):
4444
default=None,
4545
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}$`.",
4646
)
47-
name: Annotated[str, Field(strict=True, max_length=63)] = Field(
47+
name: Annotated[str, Field(strict=True, max_length=127)] = Field(
4848
description="The name for a General Object. Matches Names and also UUIDs."
4949
)
5050
rules: Optional[List[SecurityGroupRule]] = Field(
@@ -83,8 +83,8 @@ def id_validate_regular_expression(cls, value):
8383
@field_validator("name")
8484
def name_validate_regular_expression(cls, value):
8585
"""Validates the regular expression"""
86-
if not re.match(r"^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$", value):
87-
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$/")
86+
if not re.match(r"^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$", value):
87+
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$/")
8888
return value
8989

9090
model_config = ConfigDict(

‎services/iaasalpha/src/stackit/iaasalpha/models/server.py‎

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,14 @@ class Server(BaseModel):
7272
launched_at: Optional[datetime] = Field(
7373
default=None, description="Date-time when resource was launched.", alias="launchedAt"
7474
)
75-
machine_type: Annotated[str, Field(strict=True, max_length=63)] = Field(
75+
machine_type: Annotated[str, Field(strict=True, max_length=127)] = Field(
7676
description="Name of the machine type the server shall belong to.", alias="machineType"
7777
)
7878
maintenance_window: Optional[ServerMaintenance] = Field(default=None, alias="maintenanceWindow")
79+
metadata: Optional[Dict[str, Any]] = Field(
80+
default=None,
81+
description="Object that represents the metadata of an object. Regex for keys: `^[a-zA-Z0-9-_:. ]{1,255}$`. Regex for values: `^.{0,255}$`.",
82+
)
7983
name: Annotated[str, Field(strict=True, max_length=63)] = Field(description="The name for a Server.")
8084
networking: Optional[CreateServerPayloadNetworking] = None
8185
nics: Optional[List[ServerNetwork]] = Field(
@@ -87,7 +91,7 @@ class Server(BaseModel):
8791
description="The power status of a server. Possible values: `CRASHED`, `ERROR`, `RUNNING`, `STOPPED`.",
8892
alias="powerStatus",
8993
)
90-
security_groups: Optional[List[Annotated[str, Field(strict=True, max_length=63)]]] = Field(
94+
security_groups: Optional[List[Annotated[str, Field(strict=True, max_length=127)]]] = Field(
9195
default=None, description="The initial security groups for the server creation.", alias="securityGroups"
9296
)
9397
service_account_mails: Optional[
@@ -125,6 +129,7 @@ class Server(BaseModel):
125129
"launchedAt",
126130
"machineType",
127131
"maintenanceWindow",
132+
"metadata",
128133
"name",
129134
"networking",
130135
"nics",
@@ -186,15 +191,20 @@ def keypair_name_validate_regular_expression(cls, value):
186191
@field_validator("machine_type")
187192
def machine_type_validate_regular_expression(cls, value):
188193
"""Validates the regular expression"""
189-
if not re.match(r"^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$", value):
190-
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$/")
194+
if not re.match(r"^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$", value):
195+
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$/")
191196
return value
192197

193198
@field_validator("name")
194199
def name_validate_regular_expression(cls, value):
195200
"""Validates the regular expression"""
196-
if not re.match(r"^[A-Za-z0-9]+((-|\.)[A-Za-z0-9]+)*$", value):
197-
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+((-|\.)[A-Za-z0-9]+)*$/")
201+
if not re.match(
202+
r"^(([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])$",
203+
value,
204+
):
205+
raise ValueError(
206+
r"must validate the regular expression /^(([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])$/"
207+
)
198208
return value
199209

200210
model_config = ConfigDict(
@@ -300,6 +310,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
300310
if obj.get("maintenanceWindow") is not None
301311
else None
302312
),
313+
"metadata": obj.get("metadata"),
303314
"name": obj.get("name"),
304315
"networking": (
305316
CreateServerPayloadNetworking.from_dict(obj["networking"])

‎services/iaasalpha/src/stackit/iaasalpha/models/server_network.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class ServerNetwork(BaseModel):
4343
network_id: Annotated[str, Field(min_length=36, strict=True, max_length=36)] = Field(
4444
description="Universally Unique Identifier (UUID).", alias="networkId"
4545
)
46-
network_name: Annotated[str, Field(strict=True, max_length=63)] = Field(
46+
network_name: Annotated[str, Field(strict=True, max_length=127)] = Field(
4747
description="The name for a General Object. Matches Names and also UUIDs.", alias="networkName"
4848
)
4949
nic_id: Annotated[str, Field(min_length=36, strict=True, max_length=36)] = Field(
@@ -121,8 +121,8 @@ def network_id_validate_regular_expression(cls, value):
121121
@field_validator("network_name")
122122
def network_name_validate_regular_expression(cls, value):
123123
"""Validates the regular expression"""
124-
if not re.match(r"^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$", value):
125-
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$/")
124+
if not re.match(r"^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$", value):
125+
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$/")
126126
return value
127127

128128
@field_validator("nic_id")

‎services/iaasalpha/src/stackit/iaasalpha/models/snapshot.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class Snapshot(BaseModel):
3939
default=None,
4040
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}$`.",
4141
)
42-
name: Optional[Annotated[str, Field(strict=True, max_length=63)]] = Field(
42+
name: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
4343
default=None, description="The name for a General Object. Matches Names and also UUIDs."
4444
)
4545
size: Optional[StrictInt] = Field(default=None, description="Size in Gigabyte.")
@@ -73,8 +73,8 @@ def name_validate_regular_expression(cls, value):
7373
if value is None:
7474
return value
7575

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

8080
@field_validator("volume_id")

‎services/iaasalpha/src/stackit/iaasalpha/models/update_backup_payload.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class UpdateBackupPayload(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/update_image_payload.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class UpdateImagePayload(BaseModel):
5050
)
5151
min_disk_size: Optional[StrictInt] = Field(default=None, description="Size in Gigabyte.", alias="minDiskSize")
5252
min_ram: Optional[StrictInt] = Field(default=None, description="Size in Megabyte.", alias="minRam")
53-
name: Optional[Annotated[str, Field(strict=True, max_length=63)]] = Field(
53+
name: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
5454
default=None, description="The name for a General Object. Matches Names and also UUIDs."
5555
)
5656
protected: Optional[StrictBool] = None
@@ -62,8 +62,8 @@ def name_validate_regular_expression(cls, value):
6262
if value is None:
6363
return value
6464

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

6969
model_config = ConfigDict(

‎services/iaasalpha/src/stackit/iaasalpha/models/update_nic_payload.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class UpdateNicPayload(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: Optional[Annotated[str, Field(strict=True, max_length=63)]] = Field(
40+
name: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
4141
default=None, description="The name for a General Object. Matches Names and also UUIDs."
4242
)
4343
nic_security: Optional[StrictBool] = Field(
@@ -56,8 +56,8 @@ def name_validate_regular_expression(cls, value):
5656
if value is None:
5757
return value
5858

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

6363
model_config = ConfigDict(

‎services/iaasalpha/src/stackit/iaasalpha/models/update_security_group_payload.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class UpdateSecurityGroupPayload(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: Optional[Annotated[str, Field(strict=True, max_length=63)]] = Field(
38+
name: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
3939
default=None, description="The name for a General Object. Matches Names and also UUIDs."
4040
)
4141
__properties: ClassVar[List[str]] = ["description", "labels", "name"]
@@ -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/update_server_payload.py‎

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,28 @@ class UpdateServerPayload(BaseModel):
3232
default=None,
3333
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}$`.",
3434
)
35+
metadata: Optional[Dict[str, Any]] = Field(
36+
default=None,
37+
description="Object that represents the metadata of an object. Regex for keys: `^[a-zA-Z0-9-_:. ]{1,255}$`. Regex for values: `^.{0,255}$`.",
38+
)
3539
name: Optional[Annotated[str, Field(strict=True, max_length=63)]] = Field(
3640
default=None, description="The name for a Server."
3741
)
38-
__properties: ClassVar[List[str]] = ["labels", "name"]
42+
__properties: ClassVar[List[str]] = ["labels", "metadata", "name"]
3943

4044
@field_validator("name")
4145
def name_validate_regular_expression(cls, value):
4246
"""Validates the regular expression"""
4347
if value is None:
4448
return value
4549

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]+)*$/")
50+
if not re.match(
51+
r"^(([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])$",
52+
value,
53+
):
54+
raise ValueError(
55+
r"must validate the regular expression /^(([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])$/"
56+
)
4857
return value
4958

5059
model_config = ConfigDict(
@@ -95,5 +104,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
95104
if not isinstance(obj, dict):
96105
return cls.model_validate(obj)
97106

98-
_obj = cls.model_validate({"labels": obj.get("labels"), "name": obj.get("name")})
107+
_obj = cls.model_validate(
108+
{"labels": obj.get("labels"), "metadata": obj.get("metadata"), "name": obj.get("name")}
109+
)
99110
return _obj

‎services/iaasalpha/src/stackit/iaasalpha/models/update_snapshot_payload.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class UpdateSnapshotPayload(BaseModel):
3232
default=None,
3333
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}$`.",
3434
)
35-
name: Optional[Annotated[str, Field(strict=True, max_length=63)]] = Field(
35+
name: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
3636
default=None, description="The name for a General Object. Matches Names and also UUIDs."
3737
)
3838
__properties: ClassVar[List[str]] = ["labels", "name"]
@@ -43,8 +43,8 @@ def name_validate_regular_expression(cls, value):
4343
if value is None:
4444
return value
4545

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/update_virtual_ip_payload.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class UpdateVirtualIPPayload(BaseModel):
3535
members: Optional[List[Annotated[str, Field(min_length=36, strict=True, max_length=36)]]] = Field(
3636
default=None, description="A list of UUIDs."
3737
)
38-
name: Optional[Annotated[str, Field(strict=True, max_length=63)]] = Field(
38+
name: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
3939
default=None, description="The name for a General Object. Matches Names and also UUIDs."
4040
)
4141
__properties: ClassVar[List[str]] = ["labels", "members", "name"]
@@ -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/update_volume_payload.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class UpdateVolumePayload(BaseModel):
3939
default=None,
4040
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}$`.",
4141
)
42-
name: Optional[Annotated[str, Field(strict=True, max_length=63)]] = Field(
42+
name: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
4343
default=None, description="The name for a General Object. Matches Names and also UUIDs."
4444
)
4545
__properties: ClassVar[List[str]] = ["bootable", "description", "imageConfig", "labels", "name"]
@@ -50,8 +50,8 @@ def name_validate_regular_expression(cls, value):
5050
if value is None:
5151
return value
5252

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

5757
model_config = ConfigDict(

‎services/iaasalpha/src/stackit/iaasalpha/models/virtual_ip.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class VirtualIp(BaseModel):
4141
members: Optional[List[Annotated[str, Field(min_length=36, strict=True, max_length=36)]]] = Field(
4242
default=None, description="A list of UUIDs."
4343
)
44-
name: Optional[Annotated[str, Field(strict=True, max_length=63)]] = Field(
44+
name: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
4545
default=None, description="The name for a General Object. Matches Names and also UUIDs."
4646
)
4747
network: Optional[Annotated[str, Field(min_length=36, strict=True, max_length=36)]] = Field(
@@ -86,8 +86,8 @@ def name_validate_regular_expression(cls, value):
8686
if value is None:
8787
return value
8888

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

9393
@field_validator("network")

‎services/iaasalpha/src/stackit/iaasalpha/models/volume.py‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ class Volume(BaseModel):
5858
default=None,
5959
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}$`.",
6060
)
61-
name: Optional[Annotated[str, Field(strict=True, max_length=63)]] = Field(
61+
name: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
6262
default=None, description="The name for a General Object. Matches Names and also UUIDs."
6363
)
64-
performance_class: Optional[Annotated[str, Field(strict=True, max_length=63)]] = Field(
64+
performance_class: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(
6565
default=None,
6666
description="The name for a General Object. Matches Names and also UUIDs.",
6767
alias="performanceClass",
@@ -113,8 +113,8 @@ def name_validate_regular_expression(cls, value):
113113
if value is None:
114114
return value
115115

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

120120
@field_validator("performance_class")
@@ -123,8 +123,8 @@ def performance_class_validate_regular_expression(cls, value):
123123
if value is None:
124124
return value
125125

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

130130
@field_validator("server_id")

‎services/iaasalpha/src/stackit/iaasalpha/models/volume_performance_class.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class VolumePerformanceClass(BaseModel):
3636
default=None,
3737
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}$`.",
3838
)
39-
name: Annotated[str, Field(strict=True, max_length=63)] = Field(
39+
name: Annotated[str, Field(strict=True, max_length=127)] = Field(
4040
description="The name for a General Object. Matches Names and also UUIDs."
4141
)
4242
throughput: Optional[StrictInt] = Field(default=None, description="Throughput in Megabyte per second.")
@@ -45,8 +45,8 @@ class VolumePerformanceClass(BaseModel):
4545
@field_validator("name")
4646
def name_validate_regular_expression(cls, value):
4747
"""Validates the regular expression"""
48-
if not re.match(r"^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$", value):
49-
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$/")
48+
if not re.match(r"^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$", value):
49+
raise ValueError(r"must validate the regular expression /^[A-Za-z0-9]+([ \/._-]*[A-Za-z0-9]+)*$/")
5050
return value
5151

5252
model_config = ConfigDict(

0 commit comments

Comments
 (0)
Please sign in to comment.