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

Contents

Description

Concatenates a list of existing objects into a new object in the same bucket.

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

Synopsis

REST Resource

type ObjectsComposeResource = ("storage" :> ("v1" :> ("b" :> (Capture "destinationBucket" Text :> ("o" :> (Capture "destinationObject" Text :> ("compose" :> (QueryParam "destinationPredefinedAcl" ObjectsComposeDestinationPredefinedACL :> (QueryParam "ifMetagenerationMatch" (Textual Int64) :> (QueryParam "ifGenerationMatch" (Textual Int64) :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` ComposeRequest :> Post `[JSON]` Object)))))))))))) :<|> ("storage" :> ("v1" :> ("b" :> (Capture "destinationBucket" Text :> ("o" :> (Capture "destinationObject" Text :> ("compose" :> (QueryParam "destinationPredefinedAcl" ObjectsComposeDestinationPredefinedACL :> (QueryParam "ifMetagenerationMatch" (Textual Int64) :> (QueryParam "ifGenerationMatch" (Textual Int64) :> (QueryParam "alt" AltMedia :> Post `[OctetStream]` Stream))))))))))) Source

A resource alias for storage.objects.compose method which the ObjectsCompose request conforms to.

Creating a Request

objectsCompose Source

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

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

Request Lenses

oDestinationPredefinedACL :: Lens' ObjectsCompose (Maybe ObjectsComposeDestinationPredefinedACL) Source

Apply a predefined set of access controls to the destination object.

oIfMetagenerationMatch :: Lens' ObjectsCompose (Maybe Int64) Source

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

oIfGenerationMatch :: Lens' ObjectsCompose (Maybe Int64) Source

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

oPayload :: Lens' ObjectsCompose ComposeRequest Source

Multipart request metadata.

oDestinationBucket :: Lens' ObjectsCompose Text Source

Name of the bucket in which to store the new object.

oDestinationObject :: Lens' ObjectsCompose Text Source

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