2222DeploymentStrategyTypeGQL : type [DeploymentStrategy ] = strawberry .enum (
2323 DeploymentStrategy ,
2424 name = "DeploymentStrategyType" ,
25- description = dedent_strip ("""
26- Added in 25.19.0.
27- Determines how new revisions of a model deployment are rolled out to replace old ones.
28- ROLLING performs incremental replica replacement controlled by max_surge and max_unavailable,
29- while BLUE_GREEN provisions a complete new replica set before switching traffic.
30- """ ),
25+ description = "Added in 25.19.0. This enum represents the deployment strategy type of a model deployment, indicating the strategy used for deployment." ,
3126)
3227
3328# ========== Output Types (Response) ==========
3429
3530
3631@strawberry .interface (
3732 name = "DeploymentStrategySpec" ,
38- description = dedent_strip ("""
39- Added in 25.19.0.
40- Base interface for all deployment strategy specifications.
41- Each concrete implementation (RollingUpdateStrategySpec, BlueGreenStrategySpec)
42- carries strategy-specific parameters that control how replica transitions are performed.
43- """ ),
33+ description = "Added in 25.19.0. Base interface for deployment strategy specifications." ,
4434)
4535class DeploymentStrategySpecGQL :
4636 strategy : DeploymentStrategyTypeGQL
4737
4838
4939@strawberry .type (
5040 name = "RollingUpdateStrategySpec" ,
51- description = dedent_strip ("""
52- Added in 25.19.0.
53- Strategy specification for rolling updates.
54- Replicas are replaced incrementally: max_surge controls how many extra replicas
55- can be created above the desired count, and max_unavailable controls how many
56- existing replicas can be taken down simultaneously during the transition.
57- """ ),
41+ description = "Added in 25.19.0. Rolling update strategy specification." ,
5842)
5943class RollingUpdateStrategySpecGQL (DeploymentStrategySpecGQL ):
6044 max_surge : int
@@ -63,13 +47,7 @@ class RollingUpdateStrategySpecGQL(DeploymentStrategySpecGQL):
6347
6448@strawberry .type (
6549 name = "BlueGreenStrategySpec" ,
66- description = dedent_strip ("""
67- Added in 25.19.0.
68- Strategy specification for blue-green deployments.
69- A complete new replica set (green) is provisioned alongside the existing one (blue).
70- When auto_promote is true, traffic is automatically switched to the green set
71- after promote_delay_seconds; otherwise, manual promotion is required.
72- """ ),
50+ description = "Added in 25.19.0. Blue-green deployment strategy specification." ,
7351)
7452class BlueGreenStrategySpecGQL (DeploymentStrategySpecGQL ):
7553 auto_promote : bool
@@ -78,14 +56,7 @@ class BlueGreenStrategySpecGQL(DeploymentStrategySpecGQL):
7856
7957@strawberry .type (
8058 name = "DeploymentPolicy" ,
81- description = dedent_strip ("""
82- Added in 25.19.0.
83- Defines the deployment policy attached to a model deployment,
84- including the rollout strategy (rolling update or blue-green),
85- strategy-specific parameters, and whether to automatically roll back on failure.
86- Each deployment has at most one policy; creating a new policy for the same deployment
87- replaces the existing one (upsert semantics).
88- """ ),
59+ description = "Added in 25.19.0. Deployment policy configuration." ,
8960)
9061class DeploymentPolicyGQL (Node ):
9162 id : NodeID [str ]
@@ -136,14 +107,7 @@ def from_data(cls, data: DeploymentPolicyData) -> Self:
136107
137108@strawberry .input (
138109 name = "RollingUpdateConfigInput" ,
139- description = dedent_strip ("""
140- Added in 25.19.0.
141- Input parameters for configuring a rolling update strategy.
142- max_surge sets the maximum number of additional replicas that can be created
143- beyond the desired count during an update (default: 1).
144- max_unavailable sets the maximum number of replicas that can be unavailable
145- during the update (default: 0). At least one of these must be positive.
146- """ ),
110+ description = "Added in 25.19.0. Configuration for rolling update strategy." ,
147111)
148112class RollingUpdateConfigInputGQL :
149113 max_surge : int = 1
@@ -158,13 +122,7 @@ def to_spec(self) -> RollingUpdateSpec:
158122
159123@strawberry .input (
160124 name = "BlueGreenConfigInput" ,
161- description = dedent_strip ("""
162- Added in 25.19.0.
163- Input parameters for configuring a blue-green deployment strategy.
164- When auto_promote is true, traffic is automatically switched from the blue (old)
165- replica set to the green (new) set after promote_delay_seconds elapse.
166- When auto_promote is false (default), an explicit promotion action is required.
167- """ ),
125+ description = "Added in 25.19.0. Configuration for blue-green deployment strategy." ,
168126)
169127class BlueGreenConfigInputGQL :
170128 auto_promote : bool = False
0 commit comments