/// Updates a log bucket. This method replaces the following fields in the
/// existing bucket with values from the new bucket: `retention_period`
///
/// If the retention period is decreased and the bucket is locked,
/// `FAILED_PRECONDITION` will be returned.
///
/// If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then
/// `FAILED_PRECONDITION` will be returned.
///
/// After a bucket has been created, the bucket's location cannot be changed.
Updates a log bucket. This method replaces the following fields in the
existing bucket with values from the new bucket: `retention_period`

If the retention period is decreased and the bucket is locked,
`FAILED_PRECONDITION` will be returned.



After a bucket has been created, the bucket's location cannot be changed.
Updates a log bucket . This method replaces the following fields in the existing bucket with values from the new bucket : ` retention_period ` If the retention period is decreased and the bucket is locked ` FAILED_PRECONDITION ` will be returned . After a bucket has been created the bucket ' s location cannot be changed .
pub async fn update_bucket(
            &mut self,
            request: impl tonic::IntoRequest<super::UpdateBucketRequest>,
        ) -> Result<tonic::Response<super::LogBucket>, 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.logging.v2.ConfigServiceV2/UpdateBucket",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
pub async fn update_bucket ( & mut self , request : impl tonic :: IntoRequest < super :: UpdateBucketRequest > , ) -> Result < tonic :: Response < super :: LogBucket > , 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 a log bucket.
Updates a log bucket .
&mut self
request
impl tonic::IntoRequest<super::UpdateBucketRequest>