gogol-storage-0.1.1: 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.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:

data ObjectsCompose Source #

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

See: objectsCompose smart constructor.

Instances

Eq ObjectsCompose Source # 
Data ObjectsCompose Source # 

Methods

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

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

toConstr :: ObjectsCompose -> Constr #

dataTypeOf :: ObjectsCompose -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ObjectsCompose Source # 
Generic ObjectsCompose Source # 

Associated Types

type Rep ObjectsCompose :: * -> * #

GoogleRequest ObjectsCompose Source # 
GoogleRequest (MediaDownload ObjectsCompose) Source # 
type Rep ObjectsCompose Source # 
type Rep ObjectsCompose = D1 (MetaData "ObjectsCompose" "Network.Google.Resource.Storage.Objects.Compose" "gogol-storage-0.1.1-484EJNb6NCzBFRtEOp5ki4" False) (C1 (MetaCons "ObjectsCompose'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_oDestinationPredefinedACL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ObjectsComposeDestinationPredefinedACL))) ((:*:) (S1 (MetaSel (Just Symbol "_oIfMetagenerationMatch") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64)))) (S1 (MetaSel (Just Symbol "_oIfGenerationMatch") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64)))))) ((:*:) (S1 (MetaSel (Just Symbol "_oPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ComposeRequest)) ((:*:) (S1 (MetaSel (Just Symbol "_oDestinationBucket") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_oDestinationObject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Scopes ObjectsCompose Source # 
type Scopes ObjectsCompose = (:) Symbol "https://www.googleapis.com/auth/cloud-platform" ((:) Symbol "https://www.googleapis.com/auth/devstorage.full_control" ((:) Symbol "https://www.googleapis.com/auth/devstorage.read_write" ([] Symbol)))
type Rs ObjectsCompose Source # 
type Scopes (MediaDownload ObjectsCompose) Source # 
type Rs (MediaDownload ObjectsCompose) Source # 

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.