Struct google_api_proto::google::storage::v1::UpdateBucketRequest
source · pub struct UpdateBucketRequest {
pub bucket: String,
pub if_metageneration_match: Option<i64>,
pub if_metageneration_not_match: Option<i64>,
pub predefined_acl: i32,
pub predefined_default_object_acl: i32,
pub projection: i32,
pub metadata: Option<Bucket>,
pub common_request_params: Option<CommonRequestParams>,
}
Expand description
Request for UpdateBucket method.
Fields§
§bucket: String
Required. Name of a bucket.
if_metageneration_match: Option<i64>
Makes the return of the bucket metadata conditional on whether the bucket’s current metageneration matches the given value.
if_metageneration_not_match: Option<i64>
Makes the return of the bucket metadata conditional on whether the bucket’s current metageneration does not match the given value.
predefined_acl: i32
Apply a predefined set of access controls to this bucket.
predefined_default_object_acl: i32
Apply a predefined set of default object access controls to this bucket.
projection: i32
Set of properties to return. Defaults to FULL
.
metadata: Option<Bucket>
The Bucket metadata for updating.
common_request_params: Option<CommonRequestParams>
A set of parameters common to all Storage API requests.
Implementations§
source§impl UpdateBucketRequest
impl UpdateBucketRequest
sourcepub fn predefined_acl(&self) -> PredefinedBucketAcl
pub fn predefined_acl(&self) -> PredefinedBucketAcl
Returns the enum value of predefined_acl
, or the default if the field is set to an invalid enum value.
sourcepub fn set_predefined_acl(&mut self, value: PredefinedBucketAcl)
pub fn set_predefined_acl(&mut self, value: PredefinedBucketAcl)
Sets predefined_acl
to the provided enum value.
sourcepub fn predefined_default_object_acl(&self) -> PredefinedObjectAcl
pub fn predefined_default_object_acl(&self) -> PredefinedObjectAcl
Returns the enum value of predefined_default_object_acl
, or the default if the field is set to an invalid enum value.
sourcepub fn set_predefined_default_object_acl(&mut self, value: PredefinedObjectAcl)
pub fn set_predefined_default_object_acl(&mut self, value: PredefinedObjectAcl)
Sets predefined_default_object_acl
to the provided enum value.
sourcepub fn projection(&self) -> Projection
pub fn projection(&self) -> Projection
Returns the enum value of projection
, or the default if the field is set to an invalid enum value.
sourcepub fn set_projection(&mut self, value: Projection)
pub fn set_projection(&mut self, value: Projection)
Sets projection
to the provided enum value.
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