gogol-storage-0.4.0: Google Cloud Storage JSON SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Storage.Objects.Update

Contents

Description

Updates an object's metadata.

See: Cloud Storage JSON API Reference for storage.objects.update.

Synopsis

REST Resource

type ObjectsUpdateResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> ("o" :> (Capture "object" Text :> (QueryParam "ifMetagenerationMatch" (Textual Int64) :> (QueryParam "ifGenerationNotMatch" (Textual Int64) :> (QueryParam "ifGenerationMatch" (Textual Int64) :> (QueryParam "predefinedAcl" ObjectsUpdatePredefinedACL :> (QueryParam "userProject" Text :> (QueryParam "ifMetagenerationNotMatch" (Textual Int64) :> (QueryParam "projection" ObjectsUpdateProjection :> (QueryParam "generation" (Textual Int64) :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Object :> Put '[JSON] Object))))))))))))))) Source #

A resource alias for storage.objects.update method which the ObjectsUpdate request conforms to.

Creating a Request

data ObjectsUpdate Source #

Updates an object's metadata.

See: objectsUpdate smart constructor.

Instances
Eq ObjectsUpdate Source # 
Instance details

Defined in Network.Google.Resource.Storage.Objects.Update

Data ObjectsUpdate Source # 
Instance details

Defined in Network.Google.Resource.Storage.Objects.Update

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ObjectsUpdate -> c ObjectsUpdate #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ObjectsUpdate #

toConstr :: ObjectsUpdate -> Constr #

dataTypeOf :: ObjectsUpdate -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ObjectsUpdate) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ObjectsUpdate) #

gmapT :: (forall b. Data b => b -> b) -> ObjectsUpdate -> ObjectsUpdate #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ObjectsUpdate -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ObjectsUpdate -> r #

gmapQ :: (forall d. Data d => d -> u) -> ObjectsUpdate -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ObjectsUpdate -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ObjectsUpdate -> m ObjectsUpdate #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ObjectsUpdate -> m ObjectsUpdate #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ObjectsUpdate -> m ObjectsUpdate #

Show ObjectsUpdate Source # 
Instance details

Defined in Network.Google.Resource.Storage.Objects.Update

Generic ObjectsUpdate Source # 
Instance details

Defined in Network.Google.Resource.Storage.Objects.Update

Associated Types

type Rep ObjectsUpdate :: Type -> Type #

GoogleRequest ObjectsUpdate Source # 
Instance details

Defined in Network.Google.Resource.Storage.Objects.Update

Associated Types

type Rs ObjectsUpdate :: Type #

type Scopes ObjectsUpdate :: [Symbol] #

type Rep ObjectsUpdate Source # 
Instance details

Defined in Network.Google.Resource.Storage.Objects.Update

type Rep ObjectsUpdate = D1 (MetaData "ObjectsUpdate" "Network.Google.Resource.Storage.Objects.Update" "gogol-storage-0.4.0-F1QXZopXJqf9Y2QJKwfuR3" False) (C1 (MetaCons "ObjectsUpdate'" PrefixI True) (((S1 (MetaSel (Just "_ouIfMetagenerationMatch") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64))) :*: S1 (MetaSel (Just "_ouIfGenerationNotMatch") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64)))) :*: (S1 (MetaSel (Just "_ouIfGenerationMatch") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64))) :*: (S1 (MetaSel (Just "_ouPredefinedACL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ObjectsUpdatePredefinedACL)) :*: S1 (MetaSel (Just "_ouBucket") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))) :*: ((S1 (MetaSel (Just "_ouPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Object) :*: (S1 (MetaSel (Just "_ouUserProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ouIfMetagenerationNotMatch") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64))))) :*: (S1 (MetaSel (Just "_ouObject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_ouProjection") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ObjectsUpdateProjection)) :*: S1 (MetaSel (Just "_ouGeneration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64))))))))
type Scopes ObjectsUpdate Source # 
Instance details

Defined in Network.Google.Resource.Storage.Objects.Update

type Scopes ObjectsUpdate = "https://www.googleapis.com/auth/cloud-platform" ': ("https://www.googleapis.com/auth/devstorage.full_control" ': ([] :: [Symbol]))
type Rs ObjectsUpdate Source # 
Instance details

Defined in Network.Google.Resource.Storage.Objects.Update

Request Lenses

ouIfMetagenerationMatch :: Lens' ObjectsUpdate (Maybe Int64) Source #

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

ouIfGenerationNotMatch :: Lens' ObjectsUpdate (Maybe Int64) Source #

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.

ouIfGenerationMatch :: Lens' ObjectsUpdate (Maybe Int64) Source #

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.

ouPredefinedACL :: Lens' ObjectsUpdate (Maybe ObjectsUpdatePredefinedACL) Source #

Apply a predefined set of access controls to this object.

ouBucket :: Lens' ObjectsUpdate Text Source #

Name of the bucket in which the object resides.

ouPayload :: Lens' ObjectsUpdate Object Source #

Multipart request metadata.

ouUserProject :: Lens' ObjectsUpdate (Maybe Text) Source #

The project to be billed for this request. Required for Requester Pays buckets.

ouIfMetagenerationNotMatch :: Lens' ObjectsUpdate (Maybe Int64) Source #

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

ouObject :: Lens' ObjectsUpdate Text Source #

Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.

ouProjection :: Lens' ObjectsUpdate (Maybe ObjectsUpdateProjection) Source #

Set of properties to return. Defaults to full.

ouGeneration :: Lens' ObjectsUpdate (Maybe Int64) Source #

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