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.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 "userProject" Text :> (QueryParam "kmsKeyName" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ComposeRequest :> Post '[JSON] Object))))))))))))) Source #

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

Creating a Request

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 # 
Instance details

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

Data ObjectsCompose Source # 
Instance details

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

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 # 
Instance details

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

Generic ObjectsCompose Source # 
Instance details

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

Associated Types

type Rep ObjectsCompose :: Type -> Type #

GoogleRequest ObjectsCompose Source # 
Instance details

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

Associated Types

type Rs ObjectsCompose :: Type #

type Scopes ObjectsCompose :: [Symbol] #

type Rep ObjectsCompose Source # 
Instance details

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

type Rep ObjectsCompose = D1 (MetaData "ObjectsCompose" "Network.Google.Resource.Storage.Objects.Compose" "gogol-storage-0.4.0-F1QXZopXJqf9Y2QJKwfuR3" False) (C1 (MetaCons "ObjectsCompose'" PrefixI True) (((S1 (MetaSel (Just "_oDestinationPredefinedACL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ObjectsComposeDestinationPredefinedACL)) :*: S1 (MetaSel (Just "_oIfMetagenerationMatch") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64)))) :*: (S1 (MetaSel (Just "_oIfGenerationMatch") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64))) :*: S1 (MetaSel (Just "_oPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ComposeRequest))) :*: ((S1 (MetaSel (Just "_oUserProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_oDestinationBucket") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_oKmsKeyName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_oDestinationObject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes ObjectsCompose Source # 
Instance details

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

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

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

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. Setting to 0 makes the operation succeed only if there are no live versions of the object.

oPayload :: Lens' ObjectsCompose ComposeRequest Source #

Multipart request metadata.

oUserProject :: Lens' ObjectsCompose (Maybe Text) Source #

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

oDestinationBucket :: Lens' ObjectsCompose Text Source #

Name of the bucket containing the source objects. The destination object is stored in this bucket.

oKmsKeyName :: Lens' ObjectsCompose (Maybe Text) Source #

Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the object. Overrides the object metadata's kms_key_name value, if any.

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.