BazelExecution
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
POST |
/api/v1/bazel/executions/{id}/complete |
create |
Success |
POST |
/api/v1/bazel/executions/{id}/fail |
create |
Success |
POST |
/api/v1/bazel/executions/{id}/heartbeat |
create |
Success |
POST |
/api/v1/bazel/executions |
create |
Success |
POST |
/api/v1/bazel/executions/claim_next |
create |
Success |
GET |
/api/v1/bazel/executions/{id} |
load |
Success |
GET |
/api/v1/bazel/executions/lookup |
load |
Success |
Examples
One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.
Golang
Construct client as shown in the Golang setup, then call the operations:
bazel_execution, err := client.BazelExecution(nil).Load(map[string]any{"id": "example_id"}, nil)
if err != nil {
panic(err)
}
fmt.Println(bazel_execution)
created, err := client.BazelExecution(nil).Create(map[string]any{}, nil)
if err != nil {
panic(err)
}
fmt.Println(created)
Lua
Construct client as shown in the Lua setup, then call the operations:
local bazel_execution, err = client:BazelExecution():load({ id = "example_id" })
local created, err = client:BazelExecution():create({ })
PHP
Construct client as shown in the PHP setup, then call the operations:
$bazel_execution = $client->BazelExecution()->load(["id" => "example_id"]);
$created = $client->BazelExecution()->create([]);
Python
Construct client as shown in the Python setup, then call the operations:
bazel_execution = client.BazelExecution().load({"id": "example_id"})
created = client.BazelExecution().create({ })
Ruby
Construct client as shown in the Ruby setup, then call the operations:
bazel_execution = client.BazelExecution.load({ "id" => "example_id" })
created = client.BazelExecution.create({ })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const bazel_execution = await client.BazelExecution().load({ id: "example_id" })
const created = await client.BazelExecution().create({ })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
id |
string |
No | Id |
create
POST /api/v1/bazel/executions/{id}/complete
Operation ID: post_api_v1_bazel_executions_id_complete.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path |
string |
Yes |
Request body
application/json
The request body is object.
Responses
200: Success
application/json
The response is object.
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
POST /api/v1/bazel/executions/{id}/fail
Operation ID: post_api_v1_bazel_executions_id_fail.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path |
string |
Yes |
Request body
application/json
The request body is object.
Responses
200: Success
application/json
The response is object.
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
POST /api/v1/bazel/executions/{id}/heartbeat
Operation ID: post_api_v1_bazel_executions_id_heartbeat.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path |
string |
Yes |
Request body
application/json
The request body is object.
Responses
200: Success
application/json
The response is object.
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
POST /api/v1/bazel/executions
Operation ID: api_v1_executions.
Authentication: bearer token (bearerAuth).
Request body
application/json
The request body is object.
Responses
200: Success
application/json
The response is object.
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
POST /api/v1/bazel/executions/claim_next
Operation ID: api_v1_executions_claim_next.
Authentication: bearer token (bearerAuth).
Request body
application/json
The request body is object.
Responses
200: Success
application/json
The response is object.
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
load
GET /api/v1/bazel/executions/{id}
Operation ID: get_api_v1_bazel_executions_id_.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path |
string |
Yes |
Responses
200: Success
application/json
The response is object.
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
GET /api/v1/bazel/executions/lookup
Operation ID: api_v1_executions_lookup.
Authentication: bearer token (bearerAuth).
Responses
200: Success
application/json
The response is object.