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

Copyright(c) 2015 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 "ifMetagenerationNotMatch" (Textual Int64) :> (QueryParam "projection" ObjectsUpdateProjection :> (QueryParam "generation" (Textual Int64) :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Object :> Put `[JSON]` Object))))))))))))))) :<|> ("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 "ifMetagenerationNotMatch" (Textual Int64) :> (QueryParam "projection" ObjectsUpdateProjection :> (QueryParam "generation" (Textual Int64) :> (QueryParam "alt" AltMedia :> Put `[OctetStream]` Stream)))))))))))))) Source

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

Creating a Request

objectsUpdate Source

Creates a value of ObjectsUpdate with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

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.

ouIfGenerationMatch :: Lens' ObjectsUpdate (Maybe Int64) Source

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

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.

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).