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 a new execution result. This method is intended for servers which implement the distributed cache independently of the Execution API. As a result, it is OPTIONAL for servers to implement. In order to allow the server to perform access control based on the type of action, and to assist with client debugging, the client MUST first upload the Action that produced the result, along with its Command, into the `ContentAddressableStorage`. Errors: * `UNIMPLEMENTED`: This method is not supported by the server. * `RESOURCE_EXHAUSTED`: There is insufficient storage space to add the entry to the cache.
See: Remote Build Execution API Reference for remotebuildexecution.actionResults.update
.
Synopsis
- type ActionResultsUpdateResource = "v2" :> (Capture "instanceName" Text :> ("actionResults" :> (Capture "hash" Text :> (Capture "sizeBytes" (Textual Int64) :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "resultsCachePolicy.priority" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BuildBazelRemoteExecutionV2ActionResult :> Put '[JSON] BuildBazelRemoteExecutionV2ActionResult))))))))))))
- actionResultsUpdate :: Int64 -> Text -> BuildBazelRemoteExecutionV2ActionResult -> Text -> ActionResultsUpdate
- data ActionResultsUpdate
- aruSizeBytes :: Lens' ActionResultsUpdate Int64
- aruXgafv :: Lens' ActionResultsUpdate (Maybe Xgafv)
- aruHash :: Lens' ActionResultsUpdate Text
- aruUploadProtocol :: Lens' ActionResultsUpdate (Maybe Text)
- aruAccessToken :: Lens' ActionResultsUpdate (Maybe Text)
- aruUploadType :: Lens' ActionResultsUpdate (Maybe Text)
- aruPayload :: Lens' ActionResultsUpdate BuildBazelRemoteExecutionV2ActionResult
- aruResultsCachePolicyPriority :: Lens' ActionResultsUpdate (Maybe Int32)
- aruInstanceName :: Lens' ActionResultsUpdate Text
- aruCallback :: Lens' ActionResultsUpdate (Maybe Text)
REST Resource
type ActionResultsUpdateResource = "v2" :> (Capture "instanceName" Text :> ("actionResults" :> (Capture "hash" Text :> (Capture "sizeBytes" (Textual Int64) :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "resultsCachePolicy.priority" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BuildBazelRemoteExecutionV2ActionResult :> Put '[JSON] BuildBazelRemoteExecutionV2ActionResult)))))))))))) Source #
A resource alias for remotebuildexecution.actionResults.update
method which the
ActionResultsUpdate
request conforms to.
Creating a Request
Creates a value of ActionResultsUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ActionResultsUpdate Source #
Upload a new execution result. This method is intended for servers which implement the distributed cache independently of the Execution API. As a result, it is OPTIONAL for servers to implement. In order to allow the server to perform access control based on the type of action, and to assist with client debugging, the client MUST first upload the Action that produced the result, along with its Command, into the `ContentAddressableStorage`. Errors: * `UNIMPLEMENTED`: This method is not supported by the server. * `RESOURCE_EXHAUSTED`: There is insufficient storage space to add the entry to the cache.
See: actionResultsUpdate
smart constructor.
Instances
Request Lenses
aruSizeBytes :: Lens' ActionResultsUpdate Int64 Source #
The size of the blob, in bytes.
aruHash :: Lens' ActionResultsUpdate Text Source #
The hash. In the case of SHA-256, it will always be a lowercase hex string exactly 64 characters long.
aruUploadProtocol :: Lens' ActionResultsUpdate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
aruAccessToken :: Lens' ActionResultsUpdate (Maybe Text) Source #
OAuth access token.
aruUploadType :: Lens' ActionResultsUpdate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
aruPayload :: Lens' ActionResultsUpdate BuildBazelRemoteExecutionV2ActionResult Source #
Multipart request metadata.
aruResultsCachePolicyPriority :: Lens' ActionResultsUpdate (Maybe Int32) Source #
The priority (relative importance) of this content in the overall cache. Generally, a lower value means a longer retention time or other advantage, but the interpretation of a given value is server-dependent. A priority of 0 means a *default* value, decided by the server. The particular semantics of this field is up to the server. In particular, every server will have their own supported range of priorities, and will decide how these map into retention/eviction policy.
aruInstanceName :: Lens' ActionResultsUpdate 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.
aruCallback :: Lens' ActionResultsUpdate (Maybe Text) Source #
JSONP