class ProjectsHistories extends Resource (View source)

The "histories" collection of methods.

Typical usage is:

 $toolresultsService = new Google\Service\ToolResults(...);
 $histories = $toolresultsService->projects_histories;

Methods

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

Creates a History. The returned History 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 project does not exist (histories.create)

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

Gets a History. 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 History does not exist (histories.get)

listProjectsHistories(string $projectId, array $optParams = [])

Lists Histories for a given Project. The histories are sorted by modification time in descending order. The history_id key will be used to order the history with the same modification 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 History does not exist (histories.listProjectsHistories)

Details

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

Creates a History. The returned History 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 project does not exist (histories.create)

Parameters

string $projectId

A Project id. Required.

History $postBody
array $optParams

Optional parameters.

Return Value

History

Exceptions

Exception

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

Gets a History. 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 History does not exist (histories.get)

Parameters

string $projectId

A Project id. Required.

string $historyId

A History id. Required.

array $optParams

Optional parameters.

Return Value

History

Exceptions

Exception

ListHistoriesResponse listProjectsHistories(string $projectId, array $optParams = [])

Lists Histories for a given Project. The histories are sorted by modification time in descending order. The history_id key will be used to order the history with the same modification 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 History does not exist (histories.listProjectsHistories)

Parameters

string $projectId

A Project id. Required.

array $optParams

Optional parameters.

Return Value

ListHistoriesResponse

Exceptions

Exception