File tree Expand file tree Collapse file tree 6 files changed +54
-0
lines changed
scaleway-async/scaleway_async/k8s/v1 Expand file tree Collapse file tree 6 files changed +54
-0
lines changed Original file line number Diff line number Diff line change 55from .types import CNI
66from .types import ClusterStatus
77from .types import ClusterTypeAvailability
8+ from .types import ClusterTypeResiliency
89from .types import Ingress
910from .types import ListClustersRequestOrderBy
1011from .types import ListNodesRequestOrderBy
5354 "CNI" ,
5455 "ClusterStatus" ,
5556 "ClusterTypeAvailability" ,
57+ "ClusterTypeResiliency" ,
5658 "Ingress" ,
5759 "ListClustersRequestOrderBy" ,
5860 "ListNodesRequestOrderBy" ,
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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+
7180class 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
470489class CreateClusterRequestAutoUpgrade :
Original file line number Diff line number Diff line change 55from .types import CNI
66from .types import ClusterStatus
77from .types import ClusterTypeAvailability
8+ from .types import ClusterTypeResiliency
89from .types import Ingress
910from .types import ListClustersRequestOrderBy
1011from .types import ListNodesRequestOrderBy
5354 "CNI" ,
5455 "ClusterStatus" ,
5556 "ClusterTypeAvailability" ,
57+ "ClusterTypeResiliency" ,
5658 "Ingress" ,
5759 "ListClustersRequestOrderBy" ,
5860 "ListNodesRequestOrderBy" ,
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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+
7180class 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
470489class CreateClusterRequestAutoUpgrade :
You can’t perform that action at this time.
0 commit comments