Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Upload chunk.
Synopsis
- data PutChunk = PutChunk' {}
- newPutChunk :: Text -> Text -> Integer -> Integer -> Text -> DataChecksumAlgorithm -> HashedBody -> PutChunk
- putChunk_backupJobId :: Lens' PutChunk Text
- putChunk_uploadId :: Lens' PutChunk Text
- putChunk_chunkIndex :: Lens' PutChunk Integer
- putChunk_length :: Lens' PutChunk Integer
- putChunk_checksum :: Lens' PutChunk Text
- putChunk_checksumAlgorithm :: Lens' PutChunk DataChecksumAlgorithm
- putChunk_data :: Lens' PutChunk HashedBody
- data PutChunkResponse = PutChunkResponse' {}
- newPutChunkResponse :: Int -> Text -> DataChecksumAlgorithm -> PutChunkResponse
- putChunkResponse_httpStatus :: Lens' PutChunkResponse Int
- putChunkResponse_chunkChecksum :: Lens' PutChunkResponse Text
- putChunkResponse_chunkChecksumAlgorithm :: Lens' PutChunkResponse DataChecksumAlgorithm
Creating a Request
See: newPutChunk
smart constructor.
PutChunk' | |
|
Instances
:: Text | |
-> Text | |
-> Integer | |
-> Integer | |
-> Text | |
-> DataChecksumAlgorithm | |
-> HashedBody | |
-> PutChunk |
Create a value of PutChunk
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:backupJobId:PutChunk'
, putChunk_backupJobId
- Backup job Id for the in-progress backup.
$sel:uploadId:PutChunk'
, putChunk_uploadId
- Upload Id for the in-progress upload.
$sel:chunkIndex:PutChunk'
, putChunk_chunkIndex
- Describes this chunk's position relative to the other chunks
PutChunk
, putChunk_length
- Data length
PutChunk
, putChunk_checksum
- Data checksum
PutChunk
, putChunk_checksumAlgorithm
- Checksum algorithm
$sel:data':PutChunk'
, putChunk_data
- Data to be uploaded
Request Lenses
putChunk_chunkIndex :: Lens' PutChunk Integer Source #
Describes this chunk's position relative to the other chunks
putChunk_checksumAlgorithm :: Lens' PutChunk DataChecksumAlgorithm Source #
Checksum algorithm
putChunk_data :: Lens' PutChunk HashedBody Source #
Data to be uploaded
Destructuring the Response
data PutChunkResponse Source #
See: newPutChunkResponse
smart constructor.
PutChunkResponse' | |
|
Instances
:: Int | |
-> Text | |
-> DataChecksumAlgorithm | |
-> PutChunkResponse |
Create a value of PutChunkResponse
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:PutChunkResponse'
, putChunkResponse_httpStatus
- The response's http status code.
$sel:chunkChecksum:PutChunkResponse'
, putChunkResponse_chunkChecksum
- Chunk checksum
$sel:chunkChecksumAlgorithm:PutChunkResponse'
, putChunkResponse_chunkChecksumAlgorithm
- Checksum algorithm
Response Lenses
putChunkResponse_httpStatus :: Lens' PutChunkResponse Int Source #
The response's http status code.
putChunkResponse_chunkChecksum :: Lens' PutChunkResponse Text Source #
Chunk checksum
putChunkResponse_chunkChecksumAlgorithm :: Lens' PutChunkResponse DataChecksumAlgorithm Source #
Checksum algorithm