Struct gapi_grpc::google::storage::v1::PatchObjectRequest[][src]

pub struct PatchObjectRequest {
    pub bucket: String,
    pub object: String,
    pub generation: i64,
    pub if_generation_match: Option<i64>,
    pub if_generation_not_match: Option<i64>,
    pub if_metageneration_match: Option<i64>,
    pub if_metageneration_not_match: Option<i64>,
    pub predefined_acl: i32,
    pub projection: i32,
    pub metadata: Option<Object>,
    pub update_mask: Option<FieldMask>,
    pub common_object_request_params: Option<CommonObjectRequestParams>,
    pub common_request_params: Option<CommonRequestParams>,
}

Request message for PatchObject.

Fields

bucket: String

Required. Name of the bucket in which the object resides.

object: String

Required. Name of the object.

generation: i64

If present, selects a specific revision of this object (as opposed to the latest version, the default).

if_generation_match: Option<i64>

Makes the operation conditional on whether the object’s current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object.

if_generation_not_match: Option<i64>

Makes the operation conditional on whether the object’s current generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.

if_metageneration_match: Option<i64>

Makes the operation conditional on whether the object’s current metageneration matches the given value.

if_metageneration_not_match: Option<i64>

Makes the operation conditional on whether the object’s current metageneration does not match the given value.

predefined_acl: i32

Apply a predefined set of access controls to this object.

projection: i32

Set of properties to return. Defaults to FULL.

metadata: Option<Object>

The Object metadata for updating.

update_mask: Option<FieldMask>

List of fields to be updated.

To specify ALL fields, equivalent to the JSON API’s “update” function, specify a single field with the value *. Note: not recommended. If a new field is introduced at a later time, an older client updating with the * may accidentally reset the new field’s value.

Not specifying any fields is an error. Not specifying a field while setting that field to a non-default value is an error.

common_object_request_params: Option<CommonObjectRequestParams>

A set of parameters common to Storage API requests concerning an object.

common_request_params: Option<CommonRequestParams>

A set of parameters common to all Storage API requests.

Implementations

impl PatchObjectRequest[src]

pub fn predefined_acl(&self) -> PredefinedObjectAcl[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: PredefinedObjectAcl)[src]

Sets predefined_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 PatchObjectRequest[src]

impl Debug for PatchObjectRequest[src]

impl Default for PatchObjectRequest[src]

impl Message for PatchObjectRequest[src]

impl PartialEq<PatchObjectRequest> for PatchObjectRequest[src]

impl StructuralPartialEq for PatchObjectRequest[src]

Auto Trait Implementations

impl RefUnwindSafe for PatchObjectRequest

impl Send for PatchObjectRequest

impl Sync for PatchObjectRequest

impl Unpin for PatchObjectRequest

impl UnwindSafe for PatchObjectRequest

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> 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>, 
[src]

impl<T> WithSubscriber for T[src]