class ProjectsLocationsWorkerPools extends Resource (View source)

The "workerPools" collection of methods.

Typical usage is:

 $cloudbuildService = new Google\Service\CloudBuild(...);
 $workerPools = $cloudbuildService->projects_locations_workerPools;

Methods

create(string $parent, WorkerPool $postBody, array $optParams = [])

Creates a WorkerPool. (workerPools.create)

delete(string $name, array $optParams = [])

Deletes a WorkerPool. (workerPools.delete)

get(string $name, array $optParams = [])

Returns details of a WorkerPool. (workerPools.get)

listProjectsLocationsWorkerPools(string $parent, array $optParams = [])

Lists WorkerPools. (workerPools.listProjectsLocationsWorkerPools)

patch(string $name, WorkerPool $postBody, array $optParams = [])

Updates a WorkerPool. (workerPools.patch)

Details

Operation create(string $parent, WorkerPool $postBody, array $optParams = [])

Creates a WorkerPool. (workerPools.create)

Parameters

string $parent

Required. The parent resource where this worker pool will be created. Format: projects/{project}/locations/{location}.

WorkerPool $postBody
array $optParams

Optional parameters.

Return Value

Operation

Operation delete(string $name, array $optParams = [])

Deletes a WorkerPool. (workerPools.delete)

Parameters

string $name

Required. The name of the WorkerPool to delete. Format: projects/{project}/locations/{location}/workerPools/{workerPool}.

array $optParams

Optional parameters.

Return Value

Operation

WorkerPool get(string $name, array $optParams = [])

Returns details of a WorkerPool. (workerPools.get)

Parameters

string $name

Required. The name of the WorkerPool to retrieve. Format: projects/{project}/locations/{location}/workerPools/{workerPool}.

array $optParams

Optional parameters.

Return Value

WorkerPool

ListWorkerPoolsResponse listProjectsLocationsWorkerPools(string $parent, array $optParams = [])

Lists WorkerPools. (workerPools.listProjectsLocationsWorkerPools)

Parameters

string $parent

Required. The parent of the collection of WorkerPools. Format: projects/{project}/locations/{location}.

array $optParams

Optional parameters.

Return Value

ListWorkerPoolsResponse

Operation patch(string $name, WorkerPool $postBody, array $optParams = [])

Updates a WorkerPool. (workerPools.patch)

Parameters

string $name

Output only. The resource name of the WorkerPool, with format projects/{project}/locations/{location}/workerPools/{worker_pool}. The value of {worker_pool} is provided by worker_pool_id in CreateWorkerPool request and the value of {location} is determined by the endpoint accessed.

WorkerPool $postBody
array $optParams

Optional parameters.

Return Value

Operation