Skip to content

Commit 45125d1

Browse files
Generate ske
1 parent 0f573e1 commit 45125d1

13 files changed

+71
-1491
lines changed

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

-3
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
from stackit.ske.models.create_or_update_cluster_payload import (
4444
CreateOrUpdateClusterPayload,
4545
)
46-
from stackit.ske.models.credentials import Credentials
4746
from stackit.ske.models.credentials_rotation_state import CredentialsRotationState
4847
from stackit.ske.models.cri import CRI
4948
from stackit.ske.models.dns import DNS
@@ -64,8 +63,6 @@
6463
from stackit.ske.models.maintenance_auto_update import MaintenanceAutoUpdate
6564
from stackit.ske.models.network import Network
6665
from stackit.ske.models.nodepool import Nodepool
67-
from stackit.ske.models.project_response import ProjectResponse
68-
from stackit.ske.models.project_state import ProjectState
6966
from stackit.ske.models.provider_options import ProviderOptions
7067
from stackit.ske.models.runtime_error import RuntimeError
7168
from stackit.ske.models.taint import Taint

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

+37-1,251
Large diffs are not rendered by default.

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

-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
from stackit.ske.models.create_or_update_cluster_payload import (
2525
CreateOrUpdateClusterPayload,
2626
)
27-
from stackit.ske.models.credentials import Credentials
2827
from stackit.ske.models.credentials_rotation_state import CredentialsRotationState
2928
from stackit.ske.models.cri import CRI
3029
from stackit.ske.models.dns import DNS
@@ -45,8 +44,6 @@
4544
from stackit.ske.models.maintenance_auto_update import MaintenanceAutoUpdate
4645
from stackit.ske.models.network import Network
4746
from stackit.ske.models.nodepool import Nodepool
48-
from stackit.ske.models.project_response import ProjectResponse
49-
from stackit.ske.models.project_state import ProjectState
5047
from stackit.ske.models.provider_options import ProviderOptions
5148
from stackit.ske.models.runtime_error import RuntimeError
5249
from stackit.ske.models.taint import Taint

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

+16-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
import json
1717
import pprint
18+
from datetime import datetime
1819
from typing import Any, ClassVar, Dict, List, Optional, Set
1920

2021
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
@@ -31,13 +32,25 @@ class ClusterStatus(BaseModel):
3132
"""
3233

3334
aggregated: Optional[ClusterStatusState] = ClusterStatusState.STATE_UNSPECIFIED
34-
creation_time: Optional[StrictStr] = Field(
35+
creation_time: Optional[datetime] = Field(
3536
default=None, description="Format: `2024-02-15T11:06:29Z`", alias="creationTime"
3637
)
3738
credentials_rotation: Optional[CredentialsRotationState] = Field(default=None, alias="credentialsRotation")
39+
egress_address_ranges: Optional[List[StrictStr]] = Field(
40+
default=None,
41+
description="The outgoing network ranges (in CIDR notation) of traffic originating from workload on the cluster.",
42+
alias="egressAddressRanges",
43+
)
3844
error: Optional[RuntimeError] = None
3945
hibernated: Optional[StrictBool] = None
40-
__properties: ClassVar[List[str]] = ["aggregated", "creationTime", "credentialsRotation", "error", "hibernated"]
46+
__properties: ClassVar[List[str]] = [
47+
"aggregated",
48+
"creationTime",
49+
"credentialsRotation",
50+
"egressAddressRanges",
51+
"error",
52+
"hibernated",
53+
]
4154

4255
model_config = ConfigDict(
4356
populate_by_name=True,
@@ -104,6 +117,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
104117
if obj.get("credentialsRotation") is not None
105118
else None
106119
),
120+
"egressAddressRanges": obj.get("egressAddressRanges"),
107121
"error": RuntimeError.from_dict(obj["error"]) if obj.get("error") is not None else None,
108122
"hibernated": obj.get("hibernated"),
109123
}

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

-91
This file was deleted.

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

+4-3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
import json
1717
import pprint
18+
from datetime import datetime
1819
from typing import Any, ClassVar, Dict, List, Optional, Set
1920

2021
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
@@ -26,15 +27,15 @@ class CredentialsRotationState(BaseModel):
2627
CredentialsRotationState
2728
"""
2829

29-
last_completion_time: Optional[StrictStr] = Field(
30+
last_completion_time: Optional[datetime] = Field(
3031
default=None, description="Format: `2024-02-15T11:06:29Z`", alias="lastCompletionTime"
3132
)
32-
last_initiation_time: Optional[StrictStr] = Field(
33+
last_initiation_time: Optional[datetime] = Field(
3334
default=None, description="Format: `2024-02-15T11:06:29Z`", alias="lastInitiationTime"
3435
)
3536
phase: Optional[StrictStr] = Field(
3637
default=None,
37-
description="Phase of the credentials rotation. `NEVER` indicates that no credentials rotation has been performed using the new credentials rotation endpoints yet. Using the deprecated [rotate-credentials](#tag/Credentials/operation/SkeService_GetClusterCredentials) endpoint will not update this status field.",
38+
description="Phase of the credentials rotation. `NEVER` indicates that no credentials rotation has been performed using the new credentials rotation endpoints yet.",
3839
)
3940
__properties: ClassVar[List[str]] = ["lastCompletionTime", "lastInitiationTime", "phase"]
4041

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -36,23 +36,23 @@ class HibernationSchedule(BaseModel):
3636
def end_validate_regular_expression(cls, value):
3737
"""Validates the regular expression"""
3838
if not re.match(
39-
r"(@(annually|yearly|monthly|weekly|daily|hourly|reboot))|(@every (\d+(ns|us|µs|ms|s|m|h))+)|((((\d+,)+\d+|(\d+(\/|-)\d+)|\d+|\*) ?){5,7})",
39+
r"(@(annually|yearly|monthly|weekly|daily|hourly|reboot))|(@every (\\d+(ns|us|µs|ms|s|m|h))+)|((((\\d+,)+\\d+|(\\d+(\\/|-)\\d+)|\\d+|\\*) ?){5,7})",
4040
value,
4141
):
4242
raise ValueError(
43-
r"must validate the regular expression /(@(annually|yearly|monthly|weekly|daily|hourly|reboot))|(@every (\d+(ns|us|µs|ms|s|m|h))+)|((((\d+,)+\d+|(\d+(\/|-)\d+)|\d+|\*) ?){5,7})/"
43+
r"must validate the regular expression /(@(annually|yearly|monthly|weekly|daily|hourly|reboot))|(@every (\\d+(ns|us|µs|ms|s|m|h))+)|((((\\d+,)+\\d+|(\\d+(\\/|-)\\d+)|\\d+|\\*) ?){5,7})/"
4444
)
4545
return value
4646

4747
@field_validator("start")
4848
def start_validate_regular_expression(cls, value):
4949
"""Validates the regular expression"""
5050
if not re.match(
51-
r"(@(annually|yearly|monthly|weekly|daily|hourly|reboot))|(@every (\d+(ns|us|µs|ms|s|m|h))+)|((((\d+,)+\d+|(\d+(\/|-)\d+)|\d+|\*) ?){5,7})",
51+
r"(@(annually|yearly|monthly|weekly|daily|hourly|reboot))|(@every (\\d+(ns|us|µs|ms|s|m|h))+)|((((\\d+,)+\\d+|(\\d+(\\/|-)\\d+)|\\d+|\\*) ?){5,7})",
5252
value,
5353
):
5454
raise ValueError(
55-
r"must validate the regular expression /(@(annually|yearly|monthly|weekly|daily|hourly|reboot))|(@every (\d+(ns|us|µs|ms|s|m|h))+)|((((\d+,)+\d+|(\d+(\/|-)\d+)|\d+|\*) ?){5,7})/"
55+
r"must validate the regular expression /(@(annually|yearly|monthly|weekly|daily|hourly|reboot))|(@every (\\d+(ns|us|µs|ms|s|m|h))+)|((((\\d+,)+\\d+|(\\d+(\\/|-)\\d+)|\\d+|\\*) ?){5,7})/"
5656
)
5757
return value
5858

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
import json
1717
import pprint
18+
from datetime import datetime
1819
from typing import Any, ClassVar, Dict, List, Optional, Set
1920

2021
from pydantic import BaseModel, ConfigDict, Field, StrictStr
@@ -26,7 +27,7 @@ class Kubeconfig(BaseModel):
2627
Kubeconfig
2728
"""
2829

29-
expiration_timestamp: Optional[StrictStr] = Field(default=None, alias="expirationTimestamp")
30+
expiration_timestamp: Optional[datetime] = Field(default=None, alias="expirationTimestamp")
3031
kubeconfig: Optional[StrictStr] = None
3132
__properties: ClassVar[List[str]] = ["expirationTimestamp", "kubeconfig"]
3233

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import json
1717
import pprint
1818
import re
19+
from datetime import datetime
1920
from typing import Any, ClassVar, Dict, List, Optional, Set
2021

2122
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
@@ -27,7 +28,7 @@ class KubernetesVersion(BaseModel):
2728
KubernetesVersion
2829
"""
2930

30-
expiration_date: Optional[StrictStr] = Field(default=None, alias="expirationDate")
31+
expiration_date: Optional[datetime] = Field(default=None, alias="expirationDate")
3132
feature_gates: Optional[Dict[str, StrictStr]] = Field(default=None, alias="featureGates")
3233
state: Optional[StrictStr] = None
3334
version: Optional[Annotated[str, Field(strict=True)]] = None

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import json
1717
import pprint
1818
import re
19+
from datetime import datetime
1920
from typing import Any, ClassVar, Dict, List, Optional, Set
2021

2122
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
@@ -30,7 +31,7 @@ class MachineImageVersion(BaseModel):
3031
"""
3132

3233
cri: Optional[List[CRI]] = None
33-
expiration_date: Optional[StrictStr] = Field(default=None, alias="expirationDate")
34+
expiration_date: Optional[datetime] = Field(default=None, alias="expirationDate")
3435
state: Optional[StrictStr] = None
3536
version: Optional[Annotated[str, Field(strict=True)]] = None
3637
__properties: ClassVar[List[str]] = ["cri", "expirationDate", "state", "version"]

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

-89
This file was deleted.

0 commit comments

Comments
 (0)