Skip to content

Commit 697e19e

Browse files
Generate ske
1 parent d1ada67 commit 697e19e

File tree

10 files changed

+369
-31
lines changed

10 files changed

+369
-31
lines changed

services/ske/oas_commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0e64886dd0847341800d7191ed193b75413be998
1+
208d3f9c5620b4c85b5a153e5a636aff11882e6d

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
"CreateOrUpdateClusterPayload",
4242
"CredentialsRotationState",
4343
"DNS",
44+
"ExpirationStatusKubernetes",
45+
"ExpirationStatusNodepool",
46+
"ExpiratoaionStatus",
4447
"Extension",
4548
"GetProviderOptionsRequestVersionState",
4649
"Hibernation",
@@ -108,6 +111,15 @@
108111
)
109112
from stackit.ske.models.cri import CRI as CRI
110113
from stackit.ske.models.dns import DNS as DNS
114+
from stackit.ske.models.expiration_status_kubernetes import (
115+
ExpirationStatusKubernetes as ExpirationStatusKubernetes,
116+
)
117+
from stackit.ske.models.expiration_status_nodepool import (
118+
ExpirationStatusNodepool as ExpirationStatusNodepool,
119+
)
120+
from stackit.ske.models.expiratoaion_status import (
121+
ExpiratoaionStatus as ExpiratoaionStatus,
122+
)
111123
from stackit.ske.models.extension import Extension as Extension
112124
from stackit.ske.models.get_provider_options_request_version_state import (
113125
GetProviderOptionsRequestVersionState as GetProviderOptionsRequestVersionState,

services/ske/src/stackit/ske/api/default_api.py

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ def complete_credentials_rotation(
110110
)
111111

112112
_response_types_map: Dict[str, Optional[str]] = {
113-
"200": "object",
114113
"202": "object",
115114
"400": "object",
116115
"401": "object",
@@ -182,7 +181,6 @@ def complete_credentials_rotation_with_http_info(
182181
)
183182

184183
_response_types_map: Dict[str, Optional[str]] = {
185-
"200": "object",
186184
"202": "object",
187185
"400": "object",
188186
"401": "object",
@@ -254,7 +252,6 @@ def complete_credentials_rotation_without_preload_content(
254252
)
255253

256254
_response_types_map: Dict[str, Optional[str]] = {
257-
"200": "object",
258255
"202": "object",
259256
"400": "object",
260257
"401": "object",
@@ -670,8 +667,7 @@ def create_or_update_cluster(
670667
)
671668

672669
_response_types_map: Dict[str, Optional[str]] = {
673-
"200": "Cluster",
674-
"202": "object",
670+
"202": "Cluster",
675671
"400": "object",
676672
"401": "object",
677673
"404": "object",
@@ -746,8 +742,7 @@ def create_or_update_cluster_with_http_info(
746742
)
747743

748744
_response_types_map: Dict[str, Optional[str]] = {
749-
"200": "Cluster",
750-
"202": "object",
745+
"202": "Cluster",
751746
"400": "object",
752747
"401": "object",
753748
"404": "object",
@@ -822,8 +817,7 @@ def create_or_update_cluster_without_preload_content(
822817
)
823818

824819
_response_types_map: Dict[str, Optional[str]] = {
825-
"200": "Cluster",
826-
"202": "object",
820+
"202": "Cluster",
827821
"400": "object",
828822
"401": "object",
829823
"404": "object",
@@ -957,7 +951,6 @@ def delete_cluster(
957951
)
958952

959953
_response_types_map: Dict[str, Optional[str]] = {
960-
"200": "object",
961954
"202": "object",
962955
"400": "object",
963956
"401": "object",
@@ -1029,7 +1022,6 @@ def delete_cluster_with_http_info(
10291022
)
10301023

10311024
_response_types_map: Dict[str, Optional[str]] = {
1032-
"200": "object",
10331025
"202": "object",
10341026
"400": "object",
10351027
"401": "object",
@@ -1101,7 +1093,6 @@ def delete_cluster_without_preload_content(
11011093
)
11021094

11031095
_response_types_map: Dict[str, Optional[str]] = {
1104-
"200": "object",
11051096
"202": "object",
11061097
"400": "object",
11071098
"401": "object",
@@ -2267,6 +2258,7 @@ def list_provider_options(
22672258

22682259
_response_types_map: Dict[str, Optional[str]] = {
22692260
"200": "ProviderOptions",
2261+
"400": "object",
22702262
"401": "object",
22712263
}
22722264
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
@@ -2332,6 +2324,7 @@ def list_provider_options_with_http_info(
23322324

23332325
_response_types_map: Dict[str, Optional[str]] = {
23342326
"200": "ProviderOptions",
2327+
"400": "object",
23352328
"401": "object",
23362329
}
23372330
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
@@ -2397,6 +2390,7 @@ def list_provider_options_without_preload_content(
23972390

23982391
_response_types_map: Dict[str, Optional[str]] = {
23992392
"200": "ProviderOptions",
2393+
"400": "object",
24002394
"401": "object",
24012395
}
24022396
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
@@ -2516,7 +2510,6 @@ def start_credentials_rotation(
25162510
)
25172511

25182512
_response_types_map: Dict[str, Optional[str]] = {
2519-
"200": "object",
25202513
"202": "object",
25212514
"400": "object",
25222515
"401": "object",
@@ -2588,7 +2581,6 @@ def start_credentials_rotation_with_http_info(
25882581
)
25892582

25902583
_response_types_map: Dict[str, Optional[str]] = {
2591-
"200": "object",
25922584
"202": "object",
25932585
"400": "object",
25942586
"401": "object",
@@ -2660,7 +2652,6 @@ def start_credentials_rotation_without_preload_content(
26602652
)
26612653

26622654
_response_types_map: Dict[str, Optional[str]] = {
2663-
"200": "object",
26642655
"202": "object",
26652656
"400": "object",
26662657
"401": "object",
@@ -2784,7 +2775,6 @@ def trigger_hibernate(
27842775
)
27852776

27862777
_response_types_map: Dict[str, Optional[str]] = {
2787-
"200": "object",
27882778
"202": "object",
27892779
"400": "object",
27902780
"401": "object",
@@ -2856,7 +2846,6 @@ def trigger_hibernate_with_http_info(
28562846
)
28572847

28582848
_response_types_map: Dict[str, Optional[str]] = {
2859-
"200": "object",
28602849
"202": "object",
28612850
"400": "object",
28622851
"401": "object",
@@ -2928,7 +2917,6 @@ def trigger_hibernate_without_preload_content(
29282917
)
29292918

29302919
_response_types_map: Dict[str, Optional[str]] = {
2931-
"200": "object",
29322920
"202": "object",
29332921
"400": "object",
29342922
"401": "object",
@@ -3052,7 +3040,6 @@ def trigger_maintenance(
30523040
)
30533041

30543042
_response_types_map: Dict[str, Optional[str]] = {
3055-
"200": "object",
30563043
"202": "object",
30573044
"400": "object",
30583045
"401": "object",
@@ -3124,7 +3111,6 @@ def trigger_maintenance_with_http_info(
31243111
)
31253112

31263113
_response_types_map: Dict[str, Optional[str]] = {
3127-
"200": "object",
31283114
"202": "object",
31293115
"400": "object",
31303116
"401": "object",
@@ -3196,7 +3182,6 @@ def trigger_maintenance_without_preload_content(
31963182
)
31973183

31983184
_response_types_map: Dict[str, Optional[str]] = {
3199-
"200": "object",
32003185
"202": "object",
32013186
"400": "object",
32023187
"401": "object",
@@ -3320,7 +3305,6 @@ def trigger_reconcile(
33203305
)
33213306

33223307
_response_types_map: Dict[str, Optional[str]] = {
3323-
"200": "object",
33243308
"202": "object",
33253309
"400": "object",
33263310
"401": "object",
@@ -3392,7 +3376,6 @@ def trigger_reconcile_with_http_info(
33923376
)
33933377

33943378
_response_types_map: Dict[str, Optional[str]] = {
3395-
"200": "object",
33963379
"202": "object",
33973380
"400": "object",
33983381
"401": "object",
@@ -3464,7 +3447,6 @@ def trigger_reconcile_without_preload_content(
34643447
)
34653448

34663449
_response_types_map: Dict[str, Optional[str]] = {
3467-
"200": "object",
34683450
"202": "object",
34693451
"400": "object",
34703452
"401": "object",
@@ -3588,7 +3570,6 @@ def trigger_wakeup(
35883570
)
35893571

35903572
_response_types_map: Dict[str, Optional[str]] = {
3591-
"200": "object",
35923573
"202": "object",
35933574
"400": "object",
35943575
"401": "object",
@@ -3660,7 +3641,6 @@ def trigger_wakeup_with_http_info(
36603641
)
36613642

36623643
_response_types_map: Dict[str, Optional[str]] = {
3663-
"200": "object",
36643644
"202": "object",
36653645
"400": "object",
36663646
"401": "object",
@@ -3732,7 +3712,6 @@ def trigger_wakeup_without_preload_content(
37323712
)
37333713

37343714
_response_types_map: Dict[str, Optional[str]] = {
3735-
"200": "object",
37363715
"202": "object",
37373716
"400": "object",
37383717
"401": "object",

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
from stackit.ske.models.credentials_rotation_state import CredentialsRotationState
3030
from stackit.ske.models.cri import CRI
3131
from stackit.ske.models.dns import DNS
32+
from stackit.ske.models.expiration_status_kubernetes import ExpirationStatusKubernetes
33+
from stackit.ske.models.expiration_status_nodepool import ExpirationStatusNodepool
34+
from stackit.ske.models.expiratoaion_status import ExpiratoaionStatus
3235
from stackit.ske.models.extension import Extension
3336
from stackit.ske.models.get_provider_options_request_version_state import (
3437
GetProviderOptionsRequestVersionState,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
class AccessScope(str, Enum):
2323
"""
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.
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. This field is immutable. ⚠️ 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.
2525
"""
2626

2727
"""

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
from stackit.ske.models.cluster_error import ClusterError
3333
from stackit.ske.models.cluster_status_state import ClusterStatusState
3434
from stackit.ske.models.credentials_rotation_state import CredentialsRotationState
35+
from stackit.ske.models.expiratoaion_status import ExpiratoaionStatus
3536
from stackit.ske.models.runtime_error import RuntimeError
3637

3738

@@ -52,6 +53,7 @@ class ClusterStatus(BaseModel):
5253
)
5354
error: Optional[RuntimeError] = None
5455
errors: Optional[List[ClusterError]] = None
56+
expiration: Optional[ExpiratoaionStatus] = None
5557
hibernated: Optional[StrictBool] = None
5658
identity: Optional[StrictStr] = None
5759
pod_address_ranges: Optional[List[StrictStr]] = Field(
@@ -66,6 +68,7 @@ class ClusterStatus(BaseModel):
6668
"egressAddressRanges",
6769
"error",
6870
"errors",
71+
"expiration",
6972
"hibernated",
7073
"identity",
7174
"podAddressRanges",
@@ -134,6 +137,9 @@ def to_dict(self) -> Dict[str, Any]:
134137
if _item_errors:
135138
_items.append(_item_errors.to_dict())
136139
_dict["errors"] = _items
140+
# override the default output from pydantic by calling `to_dict()` of expiration
141+
if self.expiration:
142+
_dict["expiration"] = self.expiration.to_dict()
137143
return _dict
138144

139145
@classmethod
@@ -161,6 +167,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
161167
if obj.get("errors") is not None
162168
else None
163169
),
170+
"expiration": (
171+
ExpiratoaionStatus.from_dict(obj["expiration"]) if obj.get("expiration") is not None else None
172+
),
164173
"hibernated": obj.get("hibernated"),
165174
"identity": obj.get("identity"),
166175
"podAddressRanges": obj.get("podAddressRanges"),

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ def name_validate_enum(cls, value):
3535
if value is None:
3636
return value
3737

38-
if value not in set(["docker", "containerd"]):
39-
raise ValueError("must be one of enum values ('docker', 'containerd')")
38+
if value not in set(["containerd"]):
39+
raise ValueError("must be one of enum values ('containerd')")
4040
return value
4141

4242
model_config = ConfigDict(

0 commit comments

Comments
 (0)