Class ActionResultsResource
The "actionResults" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.RemoteBuildExecution.v2
Assembly: Google.Apis.RemoteBuildExecution.v2.dll
Syntax
public class ActionResultsResource
Constructors
ActionResultsResource(IClientService)
Constructs a new resource.
Declaration
public ActionResultsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
Google.Apis.Services.IClientService | service |
Methods
Get(String, String, Int64)
Retrieve a cached execution result. Implementations SHOULD ensure that any blobs referenced from the
ContentAddressableStorage are available at the time of returning the ActionResult and will be for some
period of time afterwards. The lifetimes of the referenced blobs SHOULD be increased if necessary and
applicable. Errors: * NOT_FOUND
: The requested ActionResult
is not in the cache.
Declaration
public virtual ActionResultsResource.GetRequest Get(string instanceName, string hash, long sizeBytes)
Parameters
Type | Name | Description |
---|---|---|
System.String | instanceName | 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. |
System.String | hash | The hash. In the case of SHA-256, it will always be a lowercase hex string exactly 64 characters long. |
System.Int64 | sizeBytes | The size of the blob, in bytes. |
Returns
Type | Description |
---|---|
ActionResultsResource.GetRequest |
Update(BuildBazelRemoteExecutionV2ActionResult, String, String, Int64)
Upload a new execution result. 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
. Server implementations MAY modify the
UpdateActionResultRequest.action_result
and return an equivalent value. Errors: * INVALID_ARGUMENT
: One
or more arguments are invalid. * FAILED_PRECONDITION
: One or more errors occurred in updating the action
result, such as a missing command or action. * RESOURCE_EXHAUSTED
: There is insufficient storage space to
add the entry to the cache.
Declaration
public virtual ActionResultsResource.UpdateRequest Update(BuildBazelRemoteExecutionV2ActionResult body, string instanceName, string hash, long sizeBytes)
Parameters
Type | Name | Description |
---|---|---|
BuildBazelRemoteExecutionV2ActionResult | body | The body of the request. |
System.String | instanceName | 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. |
System.String | hash | The hash. In the case of SHA-256, it will always be a lowercase hex string exactly 64 characters long. |
System.Int64 | sizeBytes | The size of the blob, in bytes. |
Returns
Type | Description |
---|---|
ActionResultsResource.UpdateRequest |