updatePolicy method

ResponseFuture<Operation> updatePolicy(
  1. UpdatePolicyRequest request, {
  2. CallOptions? options,
})

Updates the specified policy.

You can update only the rules and the display name for the policy.

To update a policy, you should use a read-modify-write loop:

  1. Use google.iam.v2.Policies.GetPolicy to read the current version of the policy.
  2. Modify the policy as needed.
  3. Use UpdatePolicy to write the updated policy.

This pattern helps prevent conflicts between concurrent updates.

Implementation

$grpc.ResponseFuture<$1.Operation> updatePolicy(
  $0.UpdatePolicyRequest request, {
  $grpc.CallOptions? options,
}) {
  return $createUnaryCall(_$updatePolicy, request, options: options);
}