Struct google_api_proto::google::storage::v2::CreateBucketRequest
source · pub struct CreateBucketRequest {
pub parent: String,
pub bucket: Option<Bucket>,
pub bucket_id: String,
pub predefined_acl: String,
pub predefined_default_object_acl: String,
}
Expand description
Request message for CreateBucket.
Fields§
§parent: String
Required. The project to which this bucket will belong.
bucket: Option<Bucket>
Properties of the new bucket being inserted.
The name of the bucket is specified in the bucket_id
field. Populating
bucket.name
field will result in an error.
The project of the bucket must be specified in the bucket.project
field.
This field must be in projects/{projectIdentifier}
format,
{projectIdentifier} can be the project ID or project number. The parent
field must be either empty or projects/_
.
bucket_id: String
Required. The ID to use for this bucket, which will become the final
component of the bucket’s resource name. For example, the value foo
might
result in a bucket with the name projects/123456/buckets/foo
.
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”.
Trait Implementations§
source§impl Clone for CreateBucketRequest
impl Clone for CreateBucketRequest
source§fn clone(&self) -> CreateBucketRequest
fn clone(&self) -> CreateBucketRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateBucketRequest
impl Debug for CreateBucketRequest
source§impl Default for CreateBucketRequest
impl Default for CreateBucketRequest
source§impl Message for CreateBucketRequest
impl Message for CreateBucketRequest
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 CreateBucketRequest
impl PartialEq for CreateBucketRequest
source§fn eq(&self, other: &CreateBucketRequest) -> bool
fn eq(&self, other: &CreateBucketRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateBucketRequest
Auto Trait Implementations§
impl Freeze for CreateBucketRequest
impl RefUnwindSafe for CreateBucketRequest
impl Send for CreateBucketRequest
impl Sync for CreateBucketRequest
impl Unpin for CreateBucketRequest
impl UnwindSafe for CreateBucketRequest
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