Skip to content

Commit b08a755

Browse files
authored
docs(k8s): fixed missing hostname in api call (#258)
1 parent d094f3b commit b08a755

File tree

6 files changed

+54
-0
lines changed

6 files changed

+54
-0
lines changed

scaleway-async/scaleway_async/k8s/v1/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from .types import CNI
66
from .types import ClusterStatus
77
from .types import ClusterTypeAvailability
8+
from .types import ClusterTypeResiliency
89
from .types import Ingress
910
from .types import ListClustersRequestOrderBy
1011
from .types import ListNodesRequestOrderBy
@@ -53,6 +54,7 @@
5354
"CNI",
5455
"ClusterStatus",
5556
"ClusterTypeAvailability",
57+
"ClusterTypeResiliency",
5658
"Ingress",
5759
"ListClustersRequestOrderBy",
5860
"ListNodesRequestOrderBy",

scaleway-async/scaleway_async/k8s/v1/marshalling.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,12 @@ def unmarshal_ClusterType(data: Any) -> ClusterType:
297297
field = data.get("name", None)
298298
args["name"] = field
299299

300+
field = data.get("resiliency", None)
301+
args["resiliency"] = field
302+
303+
field = data.get("sla", None)
304+
args["sla"] = field
305+
300306
return ClusterType(**args)
301307

302308

scaleway-async/scaleway_async/k8s/v1/types.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,15 @@ def __str__(self) -> str:
6868
return str(self.value)
6969

7070

71+
class ClusterTypeResiliency(str, Enum):
72+
UNKNOWN_RESILIENCY = "unknown_resiliency"
73+
STANDARD = "standard"
74+
HIGH_AVAILABILITY = "high_availability"
75+
76+
def __str__(self) -> str:
77+
return str(self.value)
78+
79+
7180
class Ingress(str, Enum):
7281
UNKNOWN_INGRESS = "unknown_ingress"
7382
NONE = "none"
@@ -465,6 +474,16 @@ class ClusterType:
465474
Time period during which you can no longer switch to a lower offer.
466475
"""
467476

477+
sla: float
478+
"""
479+
Value of the Service Level Agreement of the offer.
480+
"""
481+
482+
resiliency: ClusterTypeResiliency
483+
"""
484+
Resiliency offered by the offer.
485+
"""
486+
468487

469488
@dataclass
470489
class CreateClusterRequestAutoUpgrade:

scaleway/scaleway/k8s/v1/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from .types import CNI
66
from .types import ClusterStatus
77
from .types import ClusterTypeAvailability
8+
from .types import ClusterTypeResiliency
89
from .types import Ingress
910
from .types import ListClustersRequestOrderBy
1011
from .types import ListNodesRequestOrderBy
@@ -53,6 +54,7 @@
5354
"CNI",
5455
"ClusterStatus",
5556
"ClusterTypeAvailability",
57+
"ClusterTypeResiliency",
5658
"Ingress",
5759
"ListClustersRequestOrderBy",
5860
"ListNodesRequestOrderBy",

scaleway/scaleway/k8s/v1/marshalling.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,12 @@ def unmarshal_ClusterType(data: Any) -> ClusterType:
297297
field = data.get("name", None)
298298
args["name"] = field
299299

300+
field = data.get("resiliency", None)
301+
args["resiliency"] = field
302+
303+
field = data.get("sla", None)
304+
args["sla"] = field
305+
300306
return ClusterType(**args)
301307

302308

scaleway/scaleway/k8s/v1/types.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,15 @@ def __str__(self) -> str:
6868
return str(self.value)
6969

7070

71+
class ClusterTypeResiliency(str, Enum):
72+
UNKNOWN_RESILIENCY = "unknown_resiliency"
73+
STANDARD = "standard"
74+
HIGH_AVAILABILITY = "high_availability"
75+
76+
def __str__(self) -> str:
77+
return str(self.value)
78+
79+
7180
class Ingress(str, Enum):
7281
UNKNOWN_INGRESS = "unknown_ingress"
7382
NONE = "none"
@@ -465,6 +474,16 @@ class ClusterType:
465474
Time period during which you can no longer switch to a lower offer.
466475
"""
467476

477+
sla: float
478+
"""
479+
Value of the Service Level Agreement of the offer.
480+
"""
481+
482+
resiliency: ClusterTypeResiliency
483+
"""
484+
Resiliency offered by the offer.
485+
"""
486+
468487

469488
@dataclass
470489
class CreateClusterRequestAutoUpgrade:

0 commit comments

Comments
 (0)