Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Returns the base-64 encoded content of an individual blob within a repository.
- getBlob :: Text -> Text -> GetBlob
- data GetBlob
- gRepositoryName :: Lens' GetBlob Text
- gBlobId :: Lens' GetBlob Text
- getBlobResponse :: Int -> ByteString -> GetBlobResponse
- data GetBlobResponse
- gbrsResponseStatus :: Lens' GetBlobResponse Int
- gbrsContent :: Lens' GetBlobResponse ByteString
Creating a Request
Creates a value of GetBlob
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gRepositoryName
- The name of the repository that contains the blob.gBlobId
- The ID of the blob, which is its SHA-1 pointer.
Represents the input of a get blob operation.
See: getBlob
smart constructor.
Request Lenses
Destructuring the Response
Creates a value of GetBlobResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gbrsResponseStatus
- -- | The response status code.gbrsContent
- The content of the blob, usually a file.-- Note: ThisLens
automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. ThisLens
accepts and returns only raw unencoded data.
data GetBlobResponse Source #
Represents the output of a get blob operation.
See: getBlobResponse
smart constructor.
Response Lenses
gbrsResponseStatus :: Lens' GetBlobResponse Int Source #
- - | The response status code.
gbrsContent :: Lens' GetBlobResponse ByteString Source #
The content of the blob, usually a file.-- Note: This Lens
automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This Lens
accepts and returns only raw unencoded data.