class ProjectsHistoriesExecutions extends Resource (View source)

The "executions" collection of methods.

Typical usage is:

 $toolresultsService = new Google\Service\ToolResults(...);
 $executions = $toolresultsService->projects_histories_executions;

Methods

create(string $projectId, string $historyId, Execution $postBody, array $optParams = [])

Creates an Execution. The returned Execution will have the id set. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to write to project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the containing History does not exist (executions.create)

get(string $projectId, string $historyId, string $executionId, array $optParams = [])

Gets an Execution. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to write to project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the Execution does not exist (executions.get)

listProjectsHistoriesExecutions(string $projectId, string $historyId, array $optParams = [])

Lists Executions for a given History. The executions are sorted by creation_time in descending order. The execution_id key will be used to order the executions with the same creation_time. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to read project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the containing History does not exist (executions.listProjectsHistoriesExecutions)

patch(string $projectId, string $historyId, string $executionId, Execution $postBody, array $optParams = [])

Updates an existing Execution with the supplied partial entity. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to write to project - INVALID_ARGUMENT - if the request is malformed - FAILED_PRECONDITION - if the requested state transition is illegal - NOT_FOUND - if the containing History does not exist (executions.patch)

Details

Execution create(string $projectId, string $historyId, Execution $postBody, array $optParams = [])

Creates an Execution. The returned Execution will have the id set. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to write to project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the containing History does not exist (executions.create)

Parameters

string $projectId

A Project id. Required.

string $historyId

A History id. Required.

Execution $postBody
array $optParams

Optional parameters.

Return Value

Execution

Exceptions

Exception

Execution get(string $projectId, string $historyId, string $executionId, array $optParams = [])

Gets an Execution. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to write to project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the Execution does not exist (executions.get)

Parameters

string $projectId

A Project id. Required.

string $historyId

A History id. Required.

string $executionId

An Execution id. Required.

array $optParams

Optional parameters.

Return Value

Execution

Exceptions

Exception

ListExecutionsResponse listProjectsHistoriesExecutions(string $projectId, string $historyId, array $optParams = [])

Lists Executions for a given History. The executions are sorted by creation_time in descending order. The execution_id key will be used to order the executions with the same creation_time. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to read project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the containing History does not exist (executions.listProjectsHistoriesExecutions)

Parameters

string $projectId

A Project id. Required.

string $historyId

A History id. Required.

array $optParams

Optional parameters.

Return Value

ListExecutionsResponse

Exceptions

Exception

Execution patch(string $projectId, string $historyId, string $executionId, Execution $postBody, array $optParams = [])

Updates an existing Execution with the supplied partial entity. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to write to project - INVALID_ARGUMENT - if the request is malformed - FAILED_PRECONDITION - if the requested state transition is illegal - NOT_FOUND - if the containing History does not exist (executions.patch)

Parameters

string $projectId

A Project id. Required.

string $historyId Required.
string $executionId Required.
Execution $postBody
array $optParams

Optional parameters.

Return Value

Execution

Exceptions

Exception