[][src]Struct gcp_client::google::storage::v1::InsertBucketRequest

pub struct InsertBucketRequest {
    pub predefined_acl: i32,
    pub predefined_default_object_acl: i32,
    pub project: String,
    pub projection: i32,
    pub bucket: Option<Bucket>,
    pub common_request_params: Option<CommonRequestParams>,
}

Request message for InsertBucket.

Fields

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.

project: String

Required. A valid API project identifier.

projection: i32

Set of properties to return. Defaults to NO_ACL, unless the bucket resource specifies acl or defaultObjectAcl properties, when it defaults to FULL.

bucket: Option<Bucket>

Properties of the new bucket being inserted, including its name.

common_request_params: Option<CommonRequestParams>

A set of parameters common to all Storage API requests.

Implementations

impl InsertBucketRequest[src]

pub fn predefined_acl(&self) -> PredefinedBucketAcl[src]

Returns the enum value of predefined_acl, or the default if the field is set to an invalid enum value.

pub fn set_predefined_acl(&mut self, value: PredefinedBucketAcl)[src]

Sets predefined_acl to the provided enum value.

pub fn predefined_default_object_acl(&self) -> PredefinedObjectAcl[src]

Returns the enum value of predefined_default_object_acl, or the default if the field is set to an invalid enum value.

pub fn set_predefined_default_object_acl(&mut self, value: PredefinedObjectAcl)[src]

Sets predefined_default_object_acl to the provided enum value.

pub fn projection(&self) -> Projection[src]

Returns the enum value of projection, or the default if the field is set to an invalid enum value.

pub fn set_projection(&mut self, value: Projection)[src]

Sets projection to the provided enum value.

Trait Implementations

impl Clone for InsertBucketRequest[src]

impl Debug for InsertBucketRequest[src]

impl Default for InsertBucketRequest[src]

impl Message for InsertBucketRequest[src]

impl PartialEq<InsertBucketRequest> for InsertBucketRequest[src]

impl StructuralPartialEq for InsertBucketRequest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]