@@ -2024,18 +2024,15 @@ message SetCurrentDeploymentResponse {
20242024// Set/unset the Current Version of a Worker Deployment.
20252025message SetWorkerDeploymentCurrentVersionRequest {
20262026 string namespace = 1 ;
2027- // Deprecated. Use `current`.
2028- string deployment_name = 2 [deprecated = true ];
2029- // Deprecated. Use `current`.
2027+ string deployment_name = 2 ;
2028+ // Deprecated. Use `build_id`.
20302029 string version = 3 [deprecated = true ];
20312030
2032- // Required.
2033- oneof current {
2034- temporal.api.deployment.v1.WorkerDeploymentVersion deployment_version = 7 ;
2035- // The name of the Deployment where you want to set Current Version to unversioned.
2036- // Represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
2037- string unversioned_deployment_name = 8 ;
2038- };
2031+ // The build id of the version that you want to set as Current.
2032+ // Pass an empty value to set the Current Version to nil.
2033+ // A nil Current Version represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
2034+ string build_id = 7 ;
2035+
20392036 // Optional. This can be the value of conflict_token from a Describe, or another Worker
20402037 // Deployment API. Passing a non-nil conflict token will cause this request to fail if the
20412038 // Deployment's configuration has been modified between the API call that generated the
@@ -2064,29 +2061,24 @@ message SetWorkerDeploymentCurrentVersionResponse {
20642061 // that write to the Worker Deployment state to ensure that the state
20652062 // did not change between this API call and a future write.
20662063 bytes conflict_token = 1 ;
2067- // Deprecated. Use `replaced_version `.
2064+ // Deprecated. Use `previous_deployment_version `.
20682065 string previous_version = 2 [deprecated = true ];
20692066 // The version that was current before executing this operation.
2070- oneof replaced_version {
2071- temporal.api.deployment.v1.WorkerDeploymentVersion deployment_version = 3 ;
2072- bool unversioned = 4 ;
2073- };
2067+ temporal.api.deployment.v1.WorkerDeploymentVersion previous_deployment_version = 3 ;
20742068}
20752069
20762070// Set/unset the Ramping Version of a Worker Deployment and its ramp percentage.
20772071message SetWorkerDeploymentRampingVersionRequest {
20782072 string namespace = 1 ;
2079- // Deprecated. Use `ramping`.
2080- string deployment_name = 2 [deprecated = true ];
2081- // Deprecated. Use `ramping`.
2073+ string deployment_name = 2 ;
2074+ // Deprecated. Use `build_id`.
20822075 string version = 3 [deprecated = true ];
2083- // Pass an empty value to unset the Ramping Version. Must be paired with `percentage=0`.
2084- oneof ramping {
2085- temporal.api.deployment.v1.WorkerDeploymentVersion deployment_version = 8 ;
2086- // The name of the Deployment where you want to set Ramping Version to unversioned.
2087- // Represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
2088- string unversioned_deployment_name = 9 ;
2089- };
2076+
2077+ // The build id of the version that you want to ramp traffic to.
2078+ // Pass an empty value to set the Ramping Version to nil.
2079+ // A nil Ramping Version represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
2080+ string build_id = 8 ;
2081+
20902082 // Ramp percentage to set. Valid range: [0,100].
20912083 float percentage = 4 ;
20922084
@@ -2121,13 +2113,10 @@ message SetWorkerDeploymentRampingVersionResponse {
21212113 // that write to the Worker Deployment state to ensure that the state
21222114 // did not change between this API call and a future write.
21232115 bytes conflict_token = 1 ;
2124- // Deprecated. Use `replaced_version `.
2116+ // Deprecated. Use `previous_deployment_version `.
21252117 string previous_version = 2 [deprecated = true ];
21262118 // The version that was ramping before executing this operation.
2127- oneof replaced_version {
2128- temporal.api.deployment.v1.WorkerDeploymentVersion deployment_version = 4 ;
2129- bool unversioned = 5 ;
2130- };
2119+ temporal.api.deployment.v1.WorkerDeploymentVersion previous_deployment_version = 4 ;
21312120 // The ramping version percentage before executing this operation.
21322121 float previous_percentage = 3 ;
21332122}
0 commit comments