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 |
Upload many blobs at once. The server may enforce a limit of the combined total size of blobs to be uploaded using this API. This limit may be obtained using the Capabilities API. Requests exceeding the limit should either be split into smaller chunks or uploaded using the ByteStream API, as appropriate. This request is equivalent to calling a Bytestream `Write` request on each individual blob, in parallel. The requests may succeed or fail independently. Errors: * `INVALID_ARGUMENT`: The client attempted to upload more than the server supported limit. Individual requests may return the following errors, additionally: * `RESOURCE_EXHAUSTED`: There is insufficient disk quota to store the blob. * `INVALID_ARGUMENT`: The Digest does not match the provided data.
See: Remote Build Execution API Reference for remotebuildexecution.blobs.batchUpdate
.
Synopsis
- type BlobsBatchUpdateResource = "v2" :> (Capture "instanceName" Text :> ("blobs:batchUpdate" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BuildBazelRemoteExecutionV2BatchUpdateBlobsRequest :> Post '[JSON] BuildBazelRemoteExecutionV2BatchUpdateBlobsResponse)))))))))
- blobsBatchUpdate :: BuildBazelRemoteExecutionV2BatchUpdateBlobsRequest -> Text -> BlobsBatchUpdate
- data BlobsBatchUpdate
- bbuXgafv :: Lens' BlobsBatchUpdate (Maybe Xgafv)
- bbuUploadProtocol :: Lens' BlobsBatchUpdate (Maybe Text)
- bbuAccessToken :: Lens' BlobsBatchUpdate (Maybe Text)
- bbuUploadType :: Lens' BlobsBatchUpdate (Maybe Text)
- bbuPayload :: Lens' BlobsBatchUpdate BuildBazelRemoteExecutionV2BatchUpdateBlobsRequest
- bbuInstanceName :: Lens' BlobsBatchUpdate Text
- bbuCallback :: Lens' BlobsBatchUpdate (Maybe Text)
REST Resource
type BlobsBatchUpdateResource = "v2" :> (Capture "instanceName" Text :> ("blobs:batchUpdate" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BuildBazelRemoteExecutionV2BatchUpdateBlobsRequest :> Post '[JSON] BuildBazelRemoteExecutionV2BatchUpdateBlobsResponse))))))))) Source #
A resource alias for remotebuildexecution.blobs.batchUpdate
method which the
BlobsBatchUpdate
request conforms to.
Creating a Request
Creates a value of BlobsBatchUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data BlobsBatchUpdate Source #
Upload many blobs at once. The server may enforce a limit of the combined total size of blobs to be uploaded using this API. This limit may be obtained using the Capabilities API. Requests exceeding the limit should either be split into smaller chunks or uploaded using the ByteStream API, as appropriate. This request is equivalent to calling a Bytestream `Write` request on each individual blob, in parallel. The requests may succeed or fail independently. Errors: * `INVALID_ARGUMENT`: The client attempted to upload more than the server supported limit. Individual requests may return the following errors, additionally: * `RESOURCE_EXHAUSTED`: There is insufficient disk quota to store the blob. * `INVALID_ARGUMENT`: The Digest does not match the provided data.
See: blobsBatchUpdate
smart constructor.
Instances
Request Lenses
bbuUploadProtocol :: Lens' BlobsBatchUpdate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
bbuAccessToken :: Lens' BlobsBatchUpdate (Maybe Text) Source #
OAuth access token.
bbuUploadType :: Lens' BlobsBatchUpdate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
bbuPayload :: Lens' BlobsBatchUpdate BuildBazelRemoteExecutionV2BatchUpdateBlobsRequest Source #
Multipart request metadata.
bbuInstanceName :: Lens' BlobsBatchUpdate Text Source #
The instance of the execution system to operate against. A server may support multiple instances of the execution system (with their own workers, storage, caches, etc.). The server MAY require use of this field to select between them in an implementation-defined fashion, otherwise it can be omitted.
bbuCallback :: Lens' BlobsBatchUpdate (Maybe Text) Source #
JSONP