updatePolicy method
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:
- Use
google.iam.v2.Policies.GetPolicyto read the current version of the policy. - Modify the policy as needed.
- Use
UpdatePolicyto 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);
}