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 |
Fetch the entire directory tree rooted at a node. This request must be targeted at a Directory stored in the ContentAddressableStorage (CAS). The server will enumerate the `Directory` tree recursively and return every node descended from the root. The GetTreeRequest.page_token parameter can be used to skip ahead in the stream (e.g. when retrying a partially completed and aborted request), by setting it to a value taken from GetTreeResponse.next_page_token of the last successfully processed GetTreeResponse). The exact traversal order is unspecified and, unless retrieving subsequent pages from an earlier request, is not guaranteed to be stable across multiple invocations of `GetTree`. If part of the tree is missing from the CAS, the server will return the portion present and omit the rest. * `NOT_FOUND`: The requested tree root is not present in the CAS.
See: Remote Build Execution API Reference for remotebuildexecution.blobs.getTree
.
Synopsis
- type BlobsGetTreeResource = "v2" :> (Capture "instanceName" Text :> ("blobs" :> (Capture "hash" Text :> (CaptureMode "sizeBytes" "getTree" (Textual Int64) :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] BuildBazelRemoteExecutionV2GetTreeResponse))))))))))))
- blobsGetTree :: Int64 -> Text -> Text -> BlobsGetTree
- data BlobsGetTree
- bgtSizeBytes :: Lens' BlobsGetTree Int64
- bgtXgafv :: Lens' BlobsGetTree (Maybe Xgafv)
- bgtHash :: Lens' BlobsGetTree Text
- bgtUploadProtocol :: Lens' BlobsGetTree (Maybe Text)
- bgtAccessToken :: Lens' BlobsGetTree (Maybe Text)
- bgtUploadType :: Lens' BlobsGetTree (Maybe Text)
- bgtPageToken :: Lens' BlobsGetTree (Maybe Text)
- bgtPageSize :: Lens' BlobsGetTree (Maybe Int32)
- bgtInstanceName :: Lens' BlobsGetTree Text
- bgtCallback :: Lens' BlobsGetTree (Maybe Text)
REST Resource
type BlobsGetTreeResource = "v2" :> (Capture "instanceName" Text :> ("blobs" :> (Capture "hash" Text :> (CaptureMode "sizeBytes" "getTree" (Textual Int64) :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] BuildBazelRemoteExecutionV2GetTreeResponse)))))))))))) Source #
A resource alias for remotebuildexecution.blobs.getTree
method which the
BlobsGetTree
request conforms to.
Creating a Request
Creates a value of BlobsGetTree
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data BlobsGetTree Source #
Fetch the entire directory tree rooted at a node. This request must be targeted at a Directory stored in the ContentAddressableStorage (CAS). The server will enumerate the `Directory` tree recursively and return every node descended from the root. The GetTreeRequest.page_token parameter can be used to skip ahead in the stream (e.g. when retrying a partially completed and aborted request), by setting it to a value taken from GetTreeResponse.next_page_token of the last successfully processed GetTreeResponse). The exact traversal order is unspecified and, unless retrieving subsequent pages from an earlier request, is not guaranteed to be stable across multiple invocations of `GetTree`. If part of the tree is missing from the CAS, the server will return the portion present and omit the rest. * `NOT_FOUND`: The requested tree root is not present in the CAS.
See: blobsGetTree
smart constructor.
Instances
Request Lenses
bgtSizeBytes :: Lens' BlobsGetTree Int64 Source #
The size of the blob, in bytes.
bgtHash :: Lens' BlobsGetTree Text Source #
The hash. In the case of SHA-256, it will always be a lowercase hex string exactly 64 characters long.
bgtUploadProtocol :: Lens' BlobsGetTree (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
bgtAccessToken :: Lens' BlobsGetTree (Maybe Text) Source #
OAuth access token.
bgtUploadType :: Lens' BlobsGetTree (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
bgtPageToken :: Lens' BlobsGetTree (Maybe Text) Source #
A page token, which must be a value received in a previous GetTreeResponse. If present, the server will use it to return the following page of results.
bgtPageSize :: Lens' BlobsGetTree (Maybe Int32) Source #
A maximum page size to request. If present, the server will request no more than this many items. Regardless of whether a page size is specified, the server may place its own limit on the number of items to be returned and require the client to retrieve more items using a subsequent request.
bgtInstanceName :: Lens' BlobsGetTree 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.
bgtCallback :: Lens' BlobsGetTree (Maybe Text) Source #
JSONP