Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion services/iaas/oas_commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
a35d8f28738a45005b098b66b6debd08a67ab018
327e1a89405f6b4994afaee72ecc7e5a24c9c42d
566 changes: 554 additions & 12 deletions services/iaas/src/stackit/iaas/api/default_api.py

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class CreateNetworkAreaRangePayload(BaseModel):
""" # noqa: E501

ipv4: Optional[Annotated[List[NetworkRange], Field(min_length=1, max_length=64)]] = Field(
default=None, description="A list of network ranges."
default=None, description="A list of network area network ranges."
)
__properties: ClassVar[List[str]] = ["ipv4"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ class CreateSnapshotPayload(BaseModel):
Object that represents a snapshot.
""" # noqa: E501

availability_zone: Optional[StrictStr] = Field(
default=None, description="Object that represents an availability zone.", alias="availabilityZone"
)
created_at: Optional[datetime] = Field(
default=None, description="Date-time when resource was created.", alias="createdAt"
)
Expand All @@ -55,6 +58,7 @@ class CreateSnapshotPayload(BaseModel):
)
volume_id: UUID = Field(description="Universally Unique Identifier (UUID).", alias="volumeId")
__properties: ClassVar[List[str]] = [
"availabilityZone",
"createdAt",
"description",
"id",
Expand Down Expand Up @@ -166,9 +170,11 @@ def to_dict(self) -> Dict[str, Any]:
* OpenAPI `readOnly` fields are excluded.
* OpenAPI `readOnly` fields are excluded.
* OpenAPI `readOnly` fields are excluded.
* OpenAPI `readOnly` fields are excluded.
"""
excluded_fields: Set[str] = set(
[
"availability_zone",
"created_at",
"id",
"size",
Expand All @@ -195,6 +201,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:

_obj = cls.model_validate(
{
"availabilityZone": obj.get("availabilityZone"),
"createdAt": obj.get("createdAt"),
"description": obj.get("description"),
"id": obj.get("id"),
Expand Down
2 changes: 1 addition & 1 deletion services/iaas/src/stackit/iaas/models/network_range.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

class NetworkRange(BaseModel):
"""
Object that represents a network range.
Object that represents a network range of a network area.
""" # noqa: E501

created_at: Optional[datetime] = Field(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@

class NetworkRangeListResponse(BaseModel):
"""
Network Range list response.
Network Range list response of a network area.
""" # noqa: E501

items: Annotated[List[NetworkRange], Field(min_length=1, max_length=64)] = Field(
description="A list of network ranges."
description="A list of network area network ranges."
)
__properties: ClassVar[List[str]] = ["items"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class RegionalAreaIPv4(BaseModel):
description="The minimal prefix length for networks in the network area.", alias="minPrefixLen"
)
network_ranges: Annotated[List[NetworkRange], Field(min_length=1, max_length=64)] = Field(
description="A list of network ranges.", alias="networkRanges"
description="A list of network area network ranges.", alias="networkRanges"
)
transfer_network: Annotated[str, Field(strict=True)] = Field(
description="IPv4 Classless Inter-Domain Routing (CIDR).", alias="transferNetwork"
Expand Down
7 changes: 7 additions & 0 deletions services/iaas/src/stackit/iaas/models/snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ class Snapshot(BaseModel):
Object that represents a snapshot.
""" # noqa: E501

availability_zone: Optional[StrictStr] = Field(
default=None, description="Object that represents an availability zone.", alias="availabilityZone"
)
created_at: Optional[datetime] = Field(
default=None, description="Date-time when resource was created.", alias="createdAt"
)
Expand All @@ -55,6 +58,7 @@ class Snapshot(BaseModel):
)
volume_id: UUID = Field(description="Universally Unique Identifier (UUID).", alias="volumeId")
__properties: ClassVar[List[str]] = [
"availabilityZone",
"createdAt",
"description",
"id",
Expand Down Expand Up @@ -166,9 +170,11 @@ def to_dict(self) -> Dict[str, Any]:
* OpenAPI `readOnly` fields are excluded.
* OpenAPI `readOnly` fields are excluded.
* OpenAPI `readOnly` fields are excluded.
* OpenAPI `readOnly` fields are excluded.
"""
excluded_fields: Set[str] = set(
[
"availability_zone",
"created_at",
"id",
"size",
Expand All @@ -195,6 +201,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:

_obj = cls.model_validate(
{
"availabilityZone": obj.get("availabilityZone"),
"createdAt": obj.get("createdAt"),
"description": obj.get("description"),
"id": obj.get("id"),
Expand Down
Loading