Struct google_api_proto::google::storage::v2::UpdateBucketRequest
source · pub struct UpdateBucketRequest {
pub bucket: Option<Bucket>,
pub if_metageneration_match: Option<i64>,
pub if_metageneration_not_match: Option<i64>,
pub predefined_acl: String,
pub predefined_default_object_acl: String,
pub update_mask: Option<FieldMask>,
}
Expand description
Request for UpdateBucket method.
Fields§
§bucket: Option<Bucket>
Required. The bucket to update.
The bucket’s name
field will be used to identify the bucket.
if_metageneration_match: Option<i64>
If set, will only modify the bucket if its metageneration matches this value.
if_metageneration_not_match: Option<i64>
If set, will only modify the bucket if its metageneration does not match this value.
predefined_acl: String
Apply a predefined set of access controls to this bucket. Valid values are “authenticatedRead”, “private”, “projectPrivate”, “publicRead”, or “publicReadWrite”.
predefined_default_object_acl: String
Apply a predefined set of default object access controls to this bucket. Valid values are “authenticatedRead”, “bucketOwnerFullControl”, “bucketOwnerRead”, “private”, “projectPrivate”, or “publicRead”.
update_mask: Option<FieldMask>
Required. List of fields to be updated.
To specify ALL fields, equivalent to the JSON API’s “update” function,
specify a single field with the value *
. Note: not recommended. If a new
field is introduced at a later time, an older client updating with the *
may accidentally reset the new field’s value.
Not specifying any fields is an error.
Implementations§
source§impl UpdateBucketRequest
impl UpdateBucketRequest
sourcepub fn if_metageneration_match(&self) -> i64
pub fn if_metageneration_match(&self) -> i64
Returns the value of if_metageneration_match
, or the default value if if_metageneration_match
is unset.
sourcepub fn if_metageneration_not_match(&self) -> i64
pub fn if_metageneration_not_match(&self) -> i64
Returns the value of if_metageneration_not_match
, or the default value if if_metageneration_not_match
is unset.
Trait Implementations§
source§impl Clone for UpdateBucketRequest
impl Clone for UpdateBucketRequest
source§fn clone(&self) -> UpdateBucketRequest
fn clone(&self) -> UpdateBucketRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateBucketRequest
impl Debug for UpdateBucketRequest
source§impl Default for UpdateBucketRequest
impl Default for UpdateBucketRequest
source§impl Message for UpdateBucketRequest
impl Message for UpdateBucketRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for UpdateBucketRequest
impl PartialEq for UpdateBucketRequest
source§fn eq(&self, other: &UpdateBucketRequest) -> bool
fn eq(&self, other: &UpdateBucketRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateBucketRequest
Auto Trait Implementations§
impl Freeze for UpdateBucketRequest
impl RefUnwindSafe for UpdateBucketRequest
impl Send for UpdateBucketRequest
impl Sync for UpdateBucketRequest
impl Unpin for UpdateBucketRequest
impl UnwindSafe for UpdateBucketRequest
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request