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/ske/oas_commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0e64886dd0847341800d7191ed193b75413be998
18fae4fac0a9d9b1d0146a37d5513022ad3710cb
12 changes: 12 additions & 0 deletions services/ske/src/stackit/ske/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
"CreateOrUpdateClusterPayload",
"CredentialsRotationState",
"DNS",
"ExpirationStatusKubernetes",
"ExpirationStatusNodepool",
"ExpiratoaionStatus",
"Extension",
"GetProviderOptionsRequestVersionState",
"Hibernation",
Expand Down Expand Up @@ -108,6 +111,15 @@
)
from stackit.ske.models.cri import CRI as CRI
from stackit.ske.models.dns import DNS as DNS
from stackit.ske.models.expiration_status_kubernetes import (
ExpirationStatusKubernetes as ExpirationStatusKubernetes,
)
from stackit.ske.models.expiration_status_nodepool import (
ExpirationStatusNodepool as ExpirationStatusNodepool,
)
from stackit.ske.models.expiratoaion_status import (
ExpiratoaionStatus as ExpiratoaionStatus,
)
from stackit.ske.models.extension import Extension as Extension
from stackit.ske.models.get_provider_options_request_version_state import (
GetProviderOptionsRequestVersionState as GetProviderOptionsRequestVersionState,
Expand Down
33 changes: 6 additions & 27 deletions services/ske/src/stackit/ske/api/default_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ def complete_credentials_rotation(
)

_response_types_map: Dict[str, Optional[str]] = {
"200": "object",
"202": "object",
"400": "object",
"401": "object",
Expand Down Expand Up @@ -182,7 +181,6 @@ def complete_credentials_rotation_with_http_info(
)

_response_types_map: Dict[str, Optional[str]] = {
"200": "object",
"202": "object",
"400": "object",
"401": "object",
Expand Down Expand Up @@ -254,7 +252,6 @@ def complete_credentials_rotation_without_preload_content(
)

_response_types_map: Dict[str, Optional[str]] = {
"200": "object",
"202": "object",
"400": "object",
"401": "object",
Expand Down Expand Up @@ -670,8 +667,7 @@ def create_or_update_cluster(
)

_response_types_map: Dict[str, Optional[str]] = {
"200": "Cluster",
"202": "object",
"202": "Cluster",
"400": "object",
"401": "object",
"404": "object",
Expand Down Expand Up @@ -746,8 +742,7 @@ def create_or_update_cluster_with_http_info(
)

_response_types_map: Dict[str, Optional[str]] = {
"200": "Cluster",
"202": "object",
"202": "Cluster",
"400": "object",
"401": "object",
"404": "object",
Expand Down Expand Up @@ -822,8 +817,7 @@ def create_or_update_cluster_without_preload_content(
)

_response_types_map: Dict[str, Optional[str]] = {
"200": "Cluster",
"202": "object",
"202": "Cluster",
"400": "object",
"401": "object",
"404": "object",
Expand Down Expand Up @@ -957,7 +951,6 @@ def delete_cluster(
)

_response_types_map: Dict[str, Optional[str]] = {
"200": "object",
"202": "object",
"400": "object",
"401": "object",
Expand Down Expand Up @@ -1029,7 +1022,6 @@ def delete_cluster_with_http_info(
)

_response_types_map: Dict[str, Optional[str]] = {
"200": "object",
"202": "object",
"400": "object",
"401": "object",
Expand Down Expand Up @@ -1101,7 +1093,6 @@ def delete_cluster_without_preload_content(
)

_response_types_map: Dict[str, Optional[str]] = {
"200": "object",
"202": "object",
"400": "object",
"401": "object",
Expand Down Expand Up @@ -2267,6 +2258,7 @@ def list_provider_options(

_response_types_map: Dict[str, Optional[str]] = {
"200": "ProviderOptions",
"400": "object",
"401": "object",
}
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
Expand Down Expand Up @@ -2332,6 +2324,7 @@ def list_provider_options_with_http_info(

_response_types_map: Dict[str, Optional[str]] = {
"200": "ProviderOptions",
"400": "object",
"401": "object",
}
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
Expand Down Expand Up @@ -2397,6 +2390,7 @@ def list_provider_options_without_preload_content(

_response_types_map: Dict[str, Optional[str]] = {
"200": "ProviderOptions",
"400": "object",
"401": "object",
}
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
Expand Down Expand Up @@ -2516,7 +2510,6 @@ def start_credentials_rotation(
)

_response_types_map: Dict[str, Optional[str]] = {
"200": "object",
"202": "object",
"400": "object",
"401": "object",
Expand Down Expand Up @@ -2588,7 +2581,6 @@ def start_credentials_rotation_with_http_info(
)

_response_types_map: Dict[str, Optional[str]] = {
"200": "object",
"202": "object",
"400": "object",
"401": "object",
Expand Down Expand Up @@ -2660,7 +2652,6 @@ def start_credentials_rotation_without_preload_content(
)

_response_types_map: Dict[str, Optional[str]] = {
"200": "object",
"202": "object",
"400": "object",
"401": "object",
Expand Down Expand Up @@ -2784,7 +2775,6 @@ def trigger_hibernate(
)

_response_types_map: Dict[str, Optional[str]] = {
"200": "object",
"202": "object",
"400": "object",
"401": "object",
Expand Down Expand Up @@ -2856,7 +2846,6 @@ def trigger_hibernate_with_http_info(
)

_response_types_map: Dict[str, Optional[str]] = {
"200": "object",
"202": "object",
"400": "object",
"401": "object",
Expand Down Expand Up @@ -2928,7 +2917,6 @@ def trigger_hibernate_without_preload_content(
)

_response_types_map: Dict[str, Optional[str]] = {
"200": "object",
"202": "object",
"400": "object",
"401": "object",
Expand Down Expand Up @@ -3052,7 +3040,6 @@ def trigger_maintenance(
)

_response_types_map: Dict[str, Optional[str]] = {
"200": "object",
"202": "object",
"400": "object",
"401": "object",
Expand Down Expand Up @@ -3124,7 +3111,6 @@ def trigger_maintenance_with_http_info(
)

_response_types_map: Dict[str, Optional[str]] = {
"200": "object",
"202": "object",
"400": "object",
"401": "object",
Expand Down Expand Up @@ -3196,7 +3182,6 @@ def trigger_maintenance_without_preload_content(
)

_response_types_map: Dict[str, Optional[str]] = {
"200": "object",
"202": "object",
"400": "object",
"401": "object",
Expand Down Expand Up @@ -3320,7 +3305,6 @@ def trigger_reconcile(
)

_response_types_map: Dict[str, Optional[str]] = {
"200": "object",
"202": "object",
"400": "object",
"401": "object",
Expand Down Expand Up @@ -3392,7 +3376,6 @@ def trigger_reconcile_with_http_info(
)

_response_types_map: Dict[str, Optional[str]] = {
"200": "object",
"202": "object",
"400": "object",
"401": "object",
Expand Down Expand Up @@ -3464,7 +3447,6 @@ def trigger_reconcile_without_preload_content(
)

_response_types_map: Dict[str, Optional[str]] = {
"200": "object",
"202": "object",
"400": "object",
"401": "object",
Expand Down Expand Up @@ -3588,7 +3570,6 @@ def trigger_wakeup(
)

_response_types_map: Dict[str, Optional[str]] = {
"200": "object",
"202": "object",
"400": "object",
"401": "object",
Expand Down Expand Up @@ -3660,7 +3641,6 @@ def trigger_wakeup_with_http_info(
)

_response_types_map: Dict[str, Optional[str]] = {
"200": "object",
"202": "object",
"400": "object",
"401": "object",
Expand Down Expand Up @@ -3732,7 +3712,6 @@ def trigger_wakeup_without_preload_content(
)

_response_types_map: Dict[str, Optional[str]] = {
"200": "object",
"202": "object",
"400": "object",
"401": "object",
Expand Down
3 changes: 3 additions & 0 deletions services/ske/src/stackit/ske/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
from stackit.ske.models.credentials_rotation_state import CredentialsRotationState
from stackit.ske.models.cri import CRI
from stackit.ske.models.dns import DNS
from stackit.ske.models.expiration_status_kubernetes import ExpirationStatusKubernetes
from stackit.ske.models.expiration_status_nodepool import ExpirationStatusNodepool
from stackit.ske.models.expiratoaion_status import ExpiratoaionStatus
from stackit.ske.models.extension import Extension
from stackit.ske.models.get_provider_options_request_version_state import (
GetProviderOptionsRequestVersionState,
Expand Down
2 changes: 1 addition & 1 deletion services/ske/src/stackit/ske/models/access_scope.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

class AccessScope(str, Enum):
"""
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.
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.
"""

"""
Expand Down
9 changes: 9 additions & 0 deletions services/ske/src/stackit/ske/models/cluster_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
from stackit.ske.models.cluster_error import ClusterError
from stackit.ske.models.cluster_status_state import ClusterStatusState
from stackit.ske.models.credentials_rotation_state import CredentialsRotationState
from stackit.ske.models.expiratoaion_status import ExpiratoaionStatus
from stackit.ske.models.runtime_error import RuntimeError


Expand All @@ -52,6 +53,7 @@ class ClusterStatus(BaseModel):
)
error: Optional[RuntimeError] = None
errors: Optional[List[ClusterError]] = None
expiration: Optional[ExpiratoaionStatus] = None
hibernated: Optional[StrictBool] = None
identity: Optional[StrictStr] = None
pod_address_ranges: Optional[List[StrictStr]] = Field(
Expand All @@ -66,6 +68,7 @@ class ClusterStatus(BaseModel):
"egressAddressRanges",
"error",
"errors",
"expiration",
"hibernated",
"identity",
"podAddressRanges",
Expand Down Expand Up @@ -134,6 +137,9 @@ def to_dict(self) -> Dict[str, Any]:
if _item_errors:
_items.append(_item_errors.to_dict())
_dict["errors"] = _items
# override the default output from pydantic by calling `to_dict()` of expiration
if self.expiration:
_dict["expiration"] = self.expiration.to_dict()
return _dict

@classmethod
Expand Down Expand Up @@ -161,6 +167,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
if obj.get("errors") is not None
else None
),
"expiration": (
ExpiratoaionStatus.from_dict(obj["expiration"]) if obj.get("expiration") is not None else None
),
"hibernated": obj.get("hibernated"),
"identity": obj.get("identity"),
"podAddressRanges": obj.get("podAddressRanges"),
Expand Down
4 changes: 2 additions & 2 deletions services/ske/src/stackit/ske/models/cri.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ def name_validate_enum(cls, value):
if value is None:
return value

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

model_config = ConfigDict(
Expand Down
Loading
Loading