#[non_exhaustive]pub struct CreateBucketRequest {
pub parent: String,
pub bucket: Option<Bucket>,
pub bucket_id: String,
pub predefined_acl: String,
pub predefined_default_object_acl: String,
pub enable_object_retention: bool,
/* private fields */
}Expand description
Request message for CreateBucket.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parent: StringRequired. The project to which this bucket belongs. This field must either
be empty or projects/_. The project ID that owns this bucket should be
specified in the bucket.project field.
bucket: Option<Bucket>Optional. Properties of the new bucket being inserted.
The name of the bucket is specified in the bucket_id field. Populating
bucket.name field results 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: StringRequired. The ID to use for this bucket, which becomes 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: StringOptional. Apply a predefined set of access controls to this bucket.
Valid values are authenticatedRead, private, projectPrivate,
publicRead, or publicReadWrite.
predefined_default_object_acl: StringOptional. Apply a predefined set of default object access controls to this
bucket. Valid values are authenticatedRead, bucketOwnerFullControl,
bucketOwnerRead, private, projectPrivate, or publicRead.
enable_object_retention: boolOptional. If true, enable object retention on the bucket.
Implementations§
Source§impl CreateBucketRequest
impl CreateBucketRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_bucket<T>(self, v: T) -> Self
pub fn set_bucket<T>(self, v: T) -> Self
Sets the value of bucket.
Sourcepub fn set_or_clear_bucket<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_bucket<T>(self, v: Option<T>) -> Self
Sets or clears the value of bucket.
Sourcepub fn set_bucket_id<T: Into<String>>(self, v: T) -> Self
pub fn set_bucket_id<T: Into<String>>(self, v: T) -> Self
Sets the value of bucket_id.
Sourcepub fn set_predefined_acl<T: Into<String>>(self, v: T) -> Self
pub fn set_predefined_acl<T: Into<String>>(self, v: T) -> Self
Sets the value of predefined_acl.
Sourcepub fn set_predefined_default_object_acl<T: Into<String>>(self, v: T) -> Self
pub fn set_predefined_default_object_acl<T: Into<String>>(self, v: T) -> Self
Sets the value of predefined_default_object_acl.
Sourcepub fn set_enable_object_retention<T: Into<bool>>(self, v: T) -> Self
pub fn set_enable_object_retention<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_object_retention.
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§fn default() -> CreateBucketRequest
fn default() -> CreateBucketRequest
Source§impl Message for CreateBucketRequest
impl Message for CreateBucketRequest
Source§impl PartialEq for CreateBucketRequest
impl PartialEq for CreateBucketRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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