Skip to content

Commit 5b68cbe

Browse files
Generator: Update SDK /services/iaas (#2333)
Co-authored-by: Ruben Hoenle <Ruben.Hoenle@stackit.cloud>
1 parent 997e87e commit 5b68cbe

Some content is hidden

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

45 files changed

+217
-38
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
## Release (2025-xx-xx)
22
- `authorization`: [v0.4.0](services/authorization/CHANGELOG.md#v040)
33
- **Feature**: Add support for assignable subjects
4+
- `iaas`: [v0.9.0](services/iaas/CHANGELOG.md#v090)
5+
- Add `created_at` and `updated_at` attribute to `SecurityGroupRule`, `BaseSecurityGroupRule` and `CreateSecurityGroupRulePayload` model classes
6+
- Add `description` attribute to `NIC`, `CreateNicPayload` and `UpdateNicPayload` model classes
7+
- New model class `ServerAgent`
8+
- Add `agent` and `description` attribute to `Server` and `CreateServerPayload` model classes
49
- `intake`: [v0.2.0](services/intake/CHANGELOG.md#v020)
510
- **Feature:** Add response `IntakeRunnerResponse` to `UpdateIntakeRunnerExecute` request
611
- **Feature:** Add response `IntakeUserResponse` to `UpdateIntakeUserExecute` request

services/iaas/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## v0.9.0
2+
- Add `created_at` and `updated_at` attribute to `SecurityGroupRule`, `BaseSecurityGroupRule` and `CreateSecurityGroupRulePayload` model classes
3+
- Add `description` attribute to `NIC`, `CreateNicPayload` and `UpdateNicPayload` model classes
4+
- New model class `ServerAgent`
5+
- Add `agent` and `description` attribute to `Server` and `CreateServerPayload` model classes
6+
17
## v0.8.1
28
- **Internal:** Add workaround to fix upstream OpenAPI generator issue where regex patterns include leading/trailing slashes that need to be removed for validation in `AllowedAddressesInner`, `AreaId`, and `CreateProtocol` models
39

services/iaas/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "stackit-iaas"
33

44
[tool.poetry]
55
name = "stackit-iaas"
6-
version = "v0.8.1"
6+
version = "v0.9.0"
77
authors = [
88
"STACKIT Developer Tools <developer-tools@stackit.cloud>",
99
]

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,

0 commit comments

Comments
 (0)