pub async fn update_policy(
            &mut self,
            request: impl tonic::IntoRequest<super::UpdatePolicyRequest>,
        ) -> Result<tonic::Response<super::Policy>, 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.cloud.binaryauthorization.v1.BinauthzManagementServiceV1/UpdatePolicy",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
/// Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of the
/// new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is always updated as a whole, to avoid race
/// conditions with concurrent policy enforcement (or management!)
/// requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
/// if the request is malformed.
Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of the
new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is always updated as a whole, to avoid race
conditions with concurrent policy enforcement (or management!)
requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
if the request is malformed.
Creates or updates a project ' s [ policy ] [ google . cloud . binaryauthorization . v1 . Policy ] and returns a copy of the new [ policy ] [ google . cloud . binaryauthorization . v1 . Policy ] . A policy is always updated as a whole to avoid race conditions with concurrent policy enforcement ( or management! ) requests . Returns NOT_FOUND if the project does not exist INVALID_ARGUMENT if the request is malformed .
pub async fn update_policy(
            &mut self,
            request: impl tonic::IntoRequest<super::UpdatePolicyRequest>,
        ) -> Result<tonic::Response<super::Policy>, 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.cloud.binaryauthorization.v1.BinauthzManagementServiceV1/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 :: Policy > , 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 }
Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of the
new [policy][google.cloud.binaryauthorization.v1.Policy].
Creates or updates a project ' s [ policy ] [ google . cloud . binaryauthorization . v1 . Policy ] and returns a copy of the new [ policy ] [ google . cloud . binaryauthorization . v1 . Policy ] .
&mut self
request
impl tonic::IntoRequest<super::UpdatePolicyRequest>
&mut self
request
impl tonic::IntoRequest<super::UpdatePolicyRequest>