pub async fn update_policy(
            &mut self,
            request: impl tonic::IntoRequest<super::UpdatePolicyRequest>,
        ) -> Result<
            tonic::Response<super::super::super::longrunning::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.iam.v2beta.Policies/UpdatePolicy",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
/// 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 [GetPolicy][google.iam.v2beta.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.
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 [GetPolicy][google.iam.v2beta.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.
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 [ GetPolicy ] [ google . iam . v2beta . 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 .
pub async fn update_policy(
            &mut self,
            request: impl tonic::IntoRequest<super::UpdatePolicyRequest>,
        ) -> Result<
            tonic::Response<super::super::super::longrunning::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.iam.v2beta.Policies/UpdatePolicy",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
pub async fn update_policy ( & mut self , request : impl tonic :: IntoRequest < super :: UpdatePolicyRequest > , ) -> Result < tonic :: Response < super :: super :: super :: longrunning :: Operation > , tonic :: Status , > { self . inner . ready ( ) . await . map_err ( | e | { tonic :: Status :: new ( tonic :: Code :: Unknown , format ! ( " " e into ( ) ) , ) } ) ? ; let codec = tonic :: codec :: ProstCodec :: default ( ) ; let path = http :: uri :: PathAndQuery :: from_static ( " " , ) ; self . inner . unary ( request . into_request ( ) , path , codec ) . await }
Updates the specified policy.
Updates the specified policy .
&mut self
request
impl tonic::IntoRequest<super::UpdatePolicyRequest>
&mut self
request
impl tonic::IntoRequest<super::UpdatePolicyRequest>