Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Concatenates a list of existing objects into a new object in the same bucket.
See: Cloud Storage JSON API Reference for storage.objects.compose
.
- 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)))))))))))
- objectsCompose :: ComposeRequest -> Text -> Text -> ObjectsCompose
- data ObjectsCompose
- oDestinationPredefinedACL :: Lens' ObjectsCompose (Maybe ObjectsComposeDestinationPredefinedACL)
- oIfMetagenerationMatch :: Lens' ObjectsCompose (Maybe Int64)
- oIfGenerationMatch :: Lens' ObjectsCompose (Maybe Int64)
- oPayload :: Lens' ObjectsCompose ComposeRequest
- oDestinationBucket :: Lens' ObjectsCompose Text
- oDestinationObject :: Lens' ObjectsCompose Text
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
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.
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.