Skip to content

Commit ff0c632

Browse files
Generator: Update SDK /services/ske (#3085)
* Generate ske * Add changelogs Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de> --------- Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de> Co-authored-by: Alexander Dahmen <alexander.dahmen@inovex.de>
1 parent d3bf5fa commit ff0c632

File tree

12 files changed

+160
-11
lines changed

12 files changed

+160
-11
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
## Release (2026-xx-xx)
1+
## Release (2026-02-18)
22

3+
- `ske`: [v1.6.0](services/ske/CHANGELOG.md#v160)
4+
- **Feature:** New model `AccessScope`
5+
- **Feature:** New model `V2ControlPlaneNetwork`
6+
- **Feature:** Added field `ControlPlane` of type `V2ControlPlaneNetwork` to model `Network`
37
- `alb`: [v0.8.1](services/alb/CHANGELOG.md#v081)
48
- Update regular expressions to allow longer names
59
- `authorization`: [v0.7.0](services/authorization/CHANGELOG.md#v070)

services/ske/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## v1.6.0
2+
- **Feature:** New model `AccessScope`
3+
- **Feature:** New model `V2ControlPlaneNetwork`
4+
- **Feature:** Added field `ControlPlane` of type `V2ControlPlaneNetwork` to model `Network`
5+
16
## v1.5.0
27
- **Feature:** Add field `identity` to model `ClusterStatus`
38

services/ske/oas_commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9ba4c1ad01406fe6d0399b971043a2f9f74ea510

services/ske/pyproject.toml

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

44
[tool.poetry]
55
name = "stackit-ske"
6-
version = "v1.5.0"
6+
version = "v1.6.0"
77
authors = [
88
"STACKIT Developer Tools <developer-tools@stackit.cloud>",
99
]

services/ske/src/stackit/ske/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"ApiAttributeError",
3030
"ApiException",
3131
"ACL",
32+
"AccessScope",
3233
"AvailabilityZone",
3334
"CRI",
3435
"Cluster",
@@ -64,6 +65,7 @@
6465
"RuntimeError",
6566
"Taint",
6667
"TimeWindow",
68+
"V2ControlPlaneNetwork",
6769
"Volume",
6870
"VolumeType",
6971
]
@@ -81,6 +83,7 @@
8183
from stackit.ske.exceptions import ApiTypeError as ApiTypeError
8284
from stackit.ske.exceptions import ApiValueError as ApiValueError
8385
from stackit.ske.exceptions import OpenApiException as OpenApiException
86+
from stackit.ske.models.access_scope import AccessScope as AccessScope
8487

8588
# import models into sdk package
8689
from stackit.ske.models.acl import ACL as ACL
@@ -139,5 +142,8 @@
139142
from stackit.ske.models.runtime_error import RuntimeError as RuntimeError
140143
from stackit.ske.models.taint import Taint as Taint
141144
from stackit.ske.models.time_window import TimeWindow as TimeWindow
145+
from stackit.ske.models.v2_control_plane_network import (
146+
V2ControlPlaneNetwork as V2ControlPlaneNetwork,
147+
)
142148
from stackit.ske.models.volume import Volume as Volume
143149
from stackit.ske.models.volume_type import VolumeType as VolumeType

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
""" # noqa: E501
1414

1515

16+
from stackit.ske.models.access_scope import AccessScope
17+
1618
# import models into model package
1719
from stackit.ske.models.acl import ACL
1820
from stackit.ske.models.availability_zone import AvailabilityZone
@@ -54,5 +56,6 @@
5456
from stackit.ske.models.runtime_error import RuntimeError
5557
from stackit.ske.models.taint import Taint
5658
from stackit.ske.models.time_window import TimeWindow
59+
from stackit.ske.models.v2_control_plane_network import V2ControlPlaneNetwork
5760
from stackit.ske.models.volume import Volume
5861
from stackit.ske.models.volume_type import VolumeType
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# coding: utf-8
2+
3+
"""
4+
STACKIT Kubernetes Engine API
5+
6+
The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks.
7+
8+
The version of the OpenAPI document: 2.0
9+
Generated by OpenAPI Generator (https://openapi-generator.tech)
10+
11+
Do not edit the class manually.
12+
""" # noqa: E501
13+
14+
from __future__ import annotations
15+
16+
import json
17+
from enum import Enum
18+
19+
from typing_extensions import Self
20+
21+
22+
class AccessScope(str, Enum):
23+
"""
24+
The access scope of the Control Plane. It defines if the Kubernetes control plane is public or only available inside a STACKIT Network Area. ⚠️ Note: This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected.
25+
"""
26+
27+
"""
28+
allowed enum values
29+
"""
30+
PUBLIC = "PUBLIC"
31+
SNA = "SNA"
32+
33+
@classmethod
34+
def from_json(cls, json_str: str) -> Self:
35+
"""Create an instance of AccessScope from a JSON string"""
36+
return cls(json.loads(json_str))

services/ske/src/stackit/ske/models/cluster_status.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class ClusterStatus(BaseModel):
4040
ClusterStatus
4141
""" # noqa: E501
4242

43-
aggregated: Optional[ClusterStatusState] = ClusterStatusState.STATE_UNSPECIFIED
43+
aggregated: Optional[ClusterStatusState] = None
4444
creation_time: Optional[datetime] = Field(
4545
default=None, description="Format: `2024-02-15T11:06:29Z`", alias="creationTime"
4646
)
@@ -147,9 +147,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
147147

148148
_obj = cls.model_validate(
149149
{
150-
"aggregated": (
151-
obj.get("aggregated") if obj.get("aggregated") is not None else ClusterStatusState.STATE_UNSPECIFIED
152-
),
150+
"aggregated": obj.get("aggregated"),
153151
"creationTime": obj.get("creationTime"),
154152
"credentialsRotation": (
155153
CredentialsRotationState.from_dict(obj["credentialsRotation"])

services/ske/src/stackit/ske/models/cluster_status_state.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ class ClusterStatusState(str, Enum):
2727
"""
2828
allowed enum values
2929
"""
30-
STATE_UNSPECIFIED = "STATE_UNSPECIFIED"
3130
STATE_HEALTHY = "STATE_HEALTHY"
3231
STATE_CREATING = "STATE_CREATING"
3332
STATE_DELETING = "STATE_DELETING"

services/ske/src/stackit/ske/models/get_provider_options_request_version_state.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ class GetProviderOptionsRequestVersionState(str, Enum):
2727
"""
2828
allowed enum values
2929
"""
30-
UNSPECIFIED = "UNSPECIFIED"
3130
SUPPORTED = "SUPPORTED"
3231

3332
@classmethod

0 commit comments

Comments
 (0)