Skip to content

Commit 5ce9f84

Browse files
Generate iaas
1 parent dd986d0 commit 5ce9f84

Some content is hidden

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

42 files changed

+205
-37
lines changed

services/iaas/src/stackit/iaas/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@
119119
"SecurityGroupRuleListResponse",
120120
"SecurityGroupRuleProtocol",
121121
"Server",
122+
"ServerAgent",
122123
"ServerConsoleUrl",
123124
"ServerListResponse",
124125
"ServerMaintenance",
@@ -364,6 +365,7 @@
364365
SecurityGroupRuleProtocol as SecurityGroupRuleProtocol,
365366
)
366367
from stackit.iaas.models.server import Server as Server
368+
from stackit.iaas.models.server_agent import ServerAgent as ServerAgent
367369
from stackit.iaas.models.server_console_url import ServerConsoleUrl as ServerConsoleUrl
368370
from stackit.iaas.models.server_list_response import (
369371
ServerListResponse as ServerListResponse,

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@
125125
)
126126
from stackit.iaas.models.security_group_rule_protocol import SecurityGroupRuleProtocol
127127
from stackit.iaas.models.server import Server
128+
from stackit.iaas.models.server_agent import ServerAgent
128129
from stackit.iaas.models.server_console_url import ServerConsoleUrl
129130
from stackit.iaas.models.server_list_response import ServerListResponse
130131
from stackit.iaas.models.server_maintenance import ServerMaintenance

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class Backup(BaseModel):
4040
)
4141
labels: Optional[Dict[str, Any]] = Field(
4242
default=None,
43-
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}$`. Providing a `null` value for a key will remove that key.",
43+
description="Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key.",
4444
)
4545
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."

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import json
1818
import pprint
1919
import re # noqa: F401
20+
from datetime import datetime
2021
from typing import Any, ClassVar, Dict, List, Optional, Set
2122

2223
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
@@ -31,6 +32,9 @@ class BaseSecurityGroupRule(BaseModel):
3132
The base schema for a security group rule.
3233
""" # noqa: E501
3334

35+
created_at: Optional[datetime] = Field(
36+
default=None, description="Date-time when resource was created.", alias="createdAt"
37+
)
3438
description: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(
3539
default=None, description="Description Object. Allows string up to 255 Characters."
3640
)
@@ -56,7 +60,11 @@ class BaseSecurityGroupRule(BaseModel):
5660
security_group_id: Optional[Annotated[str, Field(min_length=36, strict=True, max_length=36)]] = Field(
5761
default=None, description="Universally Unique Identifier (UUID).", alias="securityGroupId"
5862
)
63+
updated_at: Optional[datetime] = Field(
64+
default=None, description="Date-time when resource was last updated.", alias="updatedAt"
65+
)
5966
__properties: ClassVar[List[str]] = [
67+
"createdAt",
6068
"description",
6169
"direction",
6270
"ethertype",
@@ -66,6 +74,7 @@ class BaseSecurityGroupRule(BaseModel):
6674
"portRange",
6775
"remoteSecurityGroupId",
6876
"securityGroupId",
77+
"updatedAt",
6978
]
7079

7180
@field_validator("id")
@@ -150,11 +159,15 @@ def to_dict(self) -> Dict[str, Any]:
150159
are ignored.
151160
* OpenAPI `readOnly` fields are excluded.
152161
* OpenAPI `readOnly` fields are excluded.
162+
* OpenAPI `readOnly` fields are excluded.
163+
* OpenAPI `readOnly` fields are excluded.
153164
"""
154165
excluded_fields: Set[str] = set(
155166
[
167+
"created_at",
156168
"id",
157169
"security_group_id",
170+
"updated_at",
158171
]
159172
)
160173

@@ -182,6 +195,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
182195

183196
_obj = cls.model_validate(
184197
{
198+
"createdAt": obj.get("createdAt"),
185199
"description": obj.get("description"),
186200
"direction": obj.get("direction"),
187201
"ethertype": obj.get("ethertype") if obj.get("ethertype") is not None else "IPv4",
@@ -193,6 +207,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
193207
"portRange": PortRange.from_dict(obj["portRange"]) if obj.get("portRange") is not None else None,
194208
"remoteSecurityGroupId": obj.get("remoteSecurityGroupId"),
195209
"securityGroupId": obj.get("securityGroupId"),
210+
"updatedAt": obj.get("updatedAt"),
196211
}
197212
)
198213
return _obj

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class CreateBackupPayload(BaseModel):
3232

3333
labels: Optional[Dict[str, Any]] = Field(
3434
default=None,
35-
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}$`. Providing a `null` value for a key will remove that key.",
35+
description="Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key.",
3636
)
3737
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."

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class CreateImagePayload(BaseModel):
5555
)
5656
labels: Optional[Dict[str, Any]] = Field(
5757
default=None,
58-
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}$`. Providing a `null` value for a key will remove that key.",
58+
description="Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key.",
5959
)
6060
min_disk_size: Optional[StrictInt] = Field(default=None, description="Size in Gigabyte.", alias="minDiskSize")
6161
min_ram: Optional[StrictInt] = Field(default=None, description="Size in Megabyte.", alias="minRam")

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

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class CreateNetworkAreaPayload(BaseModel):
3333
address_family: CreateAreaAddressFamily = Field(alias="addressFamily")
3434
labels: Optional[Dict[str, Any]] = Field(
3535
default=None,
36-
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}$`. Providing a `null` value for a key will remove that key.",
36+
description="Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key.",
3737
)
3838
name: Annotated[str, Field(strict=True, max_length=127)] = Field(
3939
description="The name for a General Object. Matches Names and also UUIDs."

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class CreateNetworkPayload(BaseModel):
3434
dhcp: Optional[StrictBool] = Field(default=None, description="Enable or disable DHCP for a network.")
3535
labels: Optional[Dict[str, Any]] = Field(
3636
default=None,
37-
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}$`. Providing a `null` value for a key will remove that key.",
37+
description="Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key.",
3838
)
3939
name: Annotated[str, Field(strict=True, max_length=127)] = Field(
4040
description="The name for a General Object. Matches Names and also UUIDs."

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ class CreateNicPayload(BaseModel):
4040
allowed_addresses: Optional[List[AllowedAddressesInner]] = Field(
4141
default=None, description="A list of IPs or CIDR notations.", alias="allowedAddresses"
4242
)
43+
description: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(
44+
default=None, description="Description Object. Allows string up to 255 Characters."
45+
)
4346
device: Optional[Annotated[str, Field(min_length=36, strict=True, max_length=36)]] = Field(
4447
default=None, description="Universally Unique Identifier (UUID)."
4548
)
@@ -54,7 +57,7 @@ class CreateNicPayload(BaseModel):
5457
)
5558
labels: Optional[Dict[str, Any]] = Field(
5659
default=None,
57-
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}$`. Providing a `null` value for a key will remove that key.",
60+
description="Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key.",
5861
)
5962
mac: Optional[Annotated[str, Field(strict=True)]] = Field(
6063
default=None, description="Object that represents an MAC address."
@@ -79,6 +82,7 @@ class CreateNicPayload(BaseModel):
7982
)
8083
__properties: ClassVar[List[str]] = [
8184
"allowedAddresses",
85+
"description",
8286
"device",
8387
"id",
8488
"ipv4",
@@ -256,6 +260,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
256260
if obj.get("allowedAddresses") is not None
257261
else None
258262
),
263+
"description": obj.get("description"),
259264
"device": obj.get("device"),
260265
"id": obj.get("id"),
261266
"ipv4": obj.get("ipv4"),

0 commit comments

Comments
 (0)