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

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>,
}

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

impl UpdateBucketRequest[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 UpdateBucketRequest[src]

impl Debug for UpdateBucketRequest[src]

impl Default for UpdateBucketRequest[src]

impl Message for UpdateBucketRequest[src]

impl PartialEq<UpdateBucketRequest> for UpdateBucketRequest[src]

impl StructuralPartialEq for UpdateBucketRequest[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]