@@ -2024,18 +2024,15 @@ message SetCurrentDeploymentResponse {
2024
2024
// Set/unset the Current Version of a Worker Deployment.
2025
2025
message SetWorkerDeploymentCurrentVersionRequest {
2026
2026
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`.
2030
2029
string version = 3 [deprecated = true ];
2031
2030
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
+
2039
2036
// Optional. This can be the value of conflict_token from a Describe, or another Worker
2040
2037
// Deployment API. Passing a non-nil conflict token will cause this request to fail if the
2041
2038
// Deployment's configuration has been modified between the API call that generated the
@@ -2064,29 +2061,24 @@ message SetWorkerDeploymentCurrentVersionResponse {
2064
2061
// that write to the Worker Deployment state to ensure that the state
2065
2062
// did not change between this API call and a future write.
2066
2063
bytes conflict_token = 1 ;
2067
- // Deprecated. Use `replaced_version `.
2064
+ // Deprecated. Use `previous_deployment_version `.
2068
2065
string previous_version = 2 [deprecated = true ];
2069
2066
// 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 ;
2074
2068
}
2075
2069
2076
2070
// Set/unset the Ramping Version of a Worker Deployment and its ramp percentage.
2077
2071
message SetWorkerDeploymentRampingVersionRequest {
2078
2072
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`.
2082
2075
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
+
2090
2082
// Ramp percentage to set. Valid range: [0,100].
2091
2083
float percentage = 4 ;
2092
2084
@@ -2121,13 +2113,10 @@ message SetWorkerDeploymentRampingVersionResponse {
2121
2113
// that write to the Worker Deployment state to ensure that the state
2122
2114
// did not change between this API call and a future write.
2123
2115
bytes conflict_token = 1 ;
2124
- // Deprecated. Use `replaced_version `.
2116
+ // Deprecated. Use `previous_deployment_version `.
2125
2117
string previous_version = 2 [deprecated = true ];
2126
2118
// 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 ;
2131
2120
// The ramping version percentage before executing this operation.
2132
2121
float previous_percentage = 3 ;
2133
2122
}
0 commit comments