Copyright | (c) 2015 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 |
Retrieves an object or its metadata.
See: Cloud Storage JSON API Reference for storage.objects.get
.
- type ObjectsGetResource = ("storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> ("o" :> (Capture "object" Text :> (QueryParam "ifMetagenerationMatch" (Textual Int64) :> (QueryParam "ifGenerationNotMatch" (Textual Int64) :> (QueryParam "ifGenerationMatch" (Textual Int64) :> (QueryParam "ifMetagenerationNotMatch" (Textual Int64) :> (QueryParam "projection" ObjectsGetProjection :> (QueryParam "generation" (Textual Int64) :> (QueryParam "alt" AltJSON :> Get `[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 "ifMetagenerationNotMatch" (Textual Int64) :> (QueryParam "projection" ObjectsGetProjection :> (QueryParam "generation" (Textual Int64) :> (QueryParam "alt" AltMedia :> Get `[OctetStream]` Stream)))))))))))))
- objectsGet :: Text -> Text -> ObjectsGet
- data ObjectsGet
- ogIfMetagenerationMatch :: Lens' ObjectsGet (Maybe Int64)
- ogIfGenerationNotMatch :: Lens' ObjectsGet (Maybe Int64)
- ogIfGenerationMatch :: Lens' ObjectsGet (Maybe Int64)
- ogBucket :: Lens' ObjectsGet Text
- ogIfMetagenerationNotMatch :: Lens' ObjectsGet (Maybe Int64)
- ogObject :: Lens' ObjectsGet Text
- ogProjection :: Lens' ObjectsGet (Maybe ObjectsGetProjection)
- ogGeneration :: Lens' ObjectsGet (Maybe Int64)
REST Resource
type ObjectsGetResource = ("storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> ("o" :> (Capture "object" Text :> (QueryParam "ifMetagenerationMatch" (Textual Int64) :> (QueryParam "ifGenerationNotMatch" (Textual Int64) :> (QueryParam "ifGenerationMatch" (Textual Int64) :> (QueryParam "ifMetagenerationNotMatch" (Textual Int64) :> (QueryParam "projection" ObjectsGetProjection :> (QueryParam "generation" (Textual Int64) :> (QueryParam "alt" AltJSON :> Get `[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 "ifMetagenerationNotMatch" (Textual Int64) :> (QueryParam "projection" ObjectsGetProjection :> (QueryParam "generation" (Textual Int64) :> (QueryParam "alt" AltMedia :> Get `[OctetStream]` Stream))))))))))))) Source
A resource alias for storage.objects.get
method which the
ObjectsGet
request conforms to.
Creating a Request
:: Text | |
-> Text | |
-> ObjectsGet |
Creates a value of ObjectsGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ObjectsGet Source
Retrieves an object or its metadata.
See: objectsGet
smart constructor.
Request Lenses
ogIfMetagenerationMatch :: Lens' ObjectsGet (Maybe Int64) Source
Makes the operation conditional on whether the object's current metageneration matches the given value.
ogIfGenerationNotMatch :: Lens' ObjectsGet (Maybe Int64) Source
Makes the operation conditional on whether the object's generation does not match the given value.
ogIfGenerationMatch :: Lens' ObjectsGet (Maybe Int64) Source
Makes the operation conditional on whether the object's generation matches the given value.
ogBucket :: Lens' ObjectsGet Text Source
Name of the bucket in which the object resides.
ogIfMetagenerationNotMatch :: Lens' ObjectsGet (Maybe Int64) Source
Makes the operation conditional on whether the object's current metageneration does not match the given value.
ogObject :: Lens' ObjectsGet Text Source
Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.
ogProjection :: Lens' ObjectsGet (Maybe ObjectsGetProjection) Source
Set of properties to return. Defaults to noAcl.
ogGeneration :: Lens' ObjectsGet (Maybe Int64) Source
If present, selects a specific revision of this object (as opposed to the latest version, the default).