@@ -138,12 +138,12 @@ type (
138138 // The current token can be obtained with [WorkerDeploymentHandle.Describe],
139139 // or returned by other successful Worker Deployment operations.
140140 //
141- // Optional: defaulted to empty token, which bypasses conflict detection.
141+ // Optional: defaults to empty token, which bypasses conflict detection.
142142 ConflictToken []byte
143143
144- // Identity: The identity of the client who initiated this request.
144+ // Identity - The identity of the client who initiated this request.
145145 //
146- // Optional: default to the identity of the underlying workflow client.
146+ // Optional: defaults to the identity of the underlying workflow client.
147147 Identity string
148148
149149 // IgnoreMissingTaskQueues - Override protection against accidental removal of Task Queues.
@@ -196,12 +196,12 @@ type (
196196 // The current token can be obtained with [WorkerDeploymentHandle.Describe],
197197 // or returned by other successful Worker Deployment operations.
198198 //
199- // Optional: defaulted to empty token, which bypasses conflict detection.
199+ // Optional: defaults to empty token, which bypasses conflict detection.
200200 ConflictToken []byte
201201
202- // Identity: The identity of the client who initiated this request.
202+ // Identity - The identity of the client who initiated this request.
203203 //
204- // Optional: default to the identity of the underlying workflow client.
204+ // Optional: defaults to the identity of the underlying workflow client.
205205 Identity string
206206
207207 // IgnoreMissingTaskQueues - Override protection against accidental removal of Task Queues.
@@ -235,6 +235,54 @@ type (
235235 PreviousPercentage float32
236236 }
237237
238+ // WorkerDeploymentSetManagerIdentityOptions provides options for
239+ // [WorkerDeploymentHandle.SetManagerIdentity].
240+ //
241+ // NOTE: Experimental
242+ //
243+ // Exposed as: [go.temporal.io/sdk/client.WorkerDeploymentSetManagerIdentityOptions]
244+ WorkerDeploymentSetManagerIdentityOptions struct {
245+ // ManagerIdentity - string to set as the Worker Deployment's ManagerIdentity.
246+ // An empty string will clear the ManagerIdentity field.
247+ // It is invalid to set Self=true and ManagerIdentity != "".
248+ ManagerIdentity string
249+
250+ // Self - If true, set the Worker Deployment's ManagerIdentity field to the identity
251+ // of the user submitting this request.
252+ // It is invalid to set Self=true and ManagerIdentity != "".
253+ Self bool
254+
255+ // ConflictToken - Token to serialize Worker Deployment operations. Passing a non-empty
256+ // conflict token will cause this request to fail with
257+ // `serviceerror.FailedPrecondition` if the
258+ // Deployment's configuration has been modified between the API call that
259+ // generated the token and this one.
260+ // The current token can be obtained with [WorkerDeploymentHandle.Describe],
261+ // or returned by other successful Worker Deployment operations.
262+ //
263+ // Optional: defaults to empty token, which bypasses conflict detection.
264+ ConflictToken []byte
265+
266+ // Identity - The identity of the client who initiated this request.
267+ //
268+ // Optional: defaults to the identity of the underlying workflow client.
269+ Identity string
270+ }
271+
272+ // WorkerDeploymentSetManagerIdentityResponse is the response for
273+ // [WorkerDeploymentHandle.SetManagerIdentity].
274+ //
275+ // NOTE: Experimental
276+ //
277+ // Exposed as: [go.temporal.io/sdk/client.WorkerDeploymentSetManagerIdentityResponse]
278+ WorkerDeploymentSetManagerIdentityResponse struct {
279+ // ConflictToken - Token to serialize Worker Deployment operations.
280+ ConflictToken []byte
281+
282+ // PreviousManagerIdentity - The Manager Identity before executing this operation, if any.
283+ PreviousManagerIdentity string
284+ }
285+
238286 // WorkerDeploymentDescribeVersionOptions provides options for
239287 // [WorkerDeploymentHandle.DescribeVersion].
240288 //
@@ -344,7 +392,7 @@ type (
344392
345393 // Identity - The identity of the client who initiated this request.
346394 //
347- // Optional: default to the identity of the underlying workflow client.
395+ // Optional: defaults to the identity of the underlying workflow client.
348396 Identity string
349397 }
350398
@@ -422,6 +470,11 @@ type (
422470 // NOTE: Experimental
423471 SetRampingVersion (ctx context.Context , options WorkerDeploymentSetRampingVersionOptions ) (WorkerDeploymentSetRampingVersionResponse , error )
424472
473+ // SetManagerIdentity changes the Manager Identity of this Worker Deployment.
474+ //
475+ // NOTE: Experimental
476+ SetManagerIdentity (ctx context.Context , options WorkerDeploymentSetManagerIdentityOptions ) (WorkerDeploymentSetManagerIdentityResponse , error )
477+
425478 // DescribeVersion gives a description of one the Versions in this Worker Deployment.
426479 //
427480 // NOTE: Experimental
@@ -537,7 +590,7 @@ type (
537590
538591 // Identity - The identity of the client who initiated this request.
539592 //
540- // Optional: default to the identity of the underlying workflow client.
593+ // Optional: defaults to the identity of the underlying workflow client.
541594 Identity string
542595 }
543596
0 commit comments