Copyright | (c) 2013-2021 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 |
Returns the base-64 encoded content of an individual blob in a repository.
Synopsis
- data GetBlob = GetBlob' {
- repositoryName :: Text
- blobId :: Text
- newGetBlob :: Text -> Text -> GetBlob
- getBlob_repositoryName :: Lens' GetBlob Text
- getBlob_blobId :: Lens' GetBlob Text
- data GetBlobResponse = GetBlobResponse' {
- httpStatus :: Int
- content :: Base64
- newGetBlobResponse :: Int -> ByteString -> GetBlobResponse
- getBlobResponse_httpStatus :: Lens' GetBlobResponse Int
- getBlobResponse_content :: Lens' GetBlobResponse ByteString
Creating a Request
Represents the input of a get blob operation.
See: newGetBlob
smart constructor.
GetBlob' | |
|
Instances
Create a value of GetBlob
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:repositoryName:GetBlob'
, getBlob_repositoryName
- The name of the repository that contains the blob.
$sel:blobId:GetBlob'
, getBlob_blobId
- The ID of the blob, which is its SHA-1 pointer.
Request Lenses
getBlob_repositoryName :: Lens' GetBlob Text Source #
The name of the repository that contains the blob.
Destructuring the Response
data GetBlobResponse Source #
Represents the output of a get blob operation.
See: newGetBlobResponse
smart constructor.
GetBlobResponse' | |
|
Instances
Create a value of GetBlobResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:GetBlobResponse'
, getBlobResponse_httpStatus
- The response's http status code.
$sel:content:GetBlobResponse'
, getBlobResponse_content
- 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.
Response Lenses
getBlobResponse_httpStatus :: Lens' GetBlobResponse Int Source #
The response's http status code.
getBlobResponse_content :: 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.