Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.WorkerPoolsResource

The "workerPools" collection of methods.

Inheritance
System.Object
ProjectsResource.LocationsResource.WorkerPoolsResource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.CloudBuild.v1beta1
Assembly: Google.Apis.CloudBuild.v1beta1.dll
Syntax
public class WorkerPoolsResource

Constructors

WorkerPoolsResource(IClientService)

Constructs a new resource.

Declaration
public WorkerPoolsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Create(WorkerPool, String)

Creates a WorkerPool to run the builds, and returns the new worker pool. NOTE: As of now, this method returns an Operation that is always complete.

Declaration
public virtual ProjectsResource.LocationsResource.WorkerPoolsResource.CreateRequest Create(WorkerPool body, string parent)
Parameters
Type Name Description
WorkerPool body

The body of the request.

System.String parent

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

Returns
Type Description
ProjectsResource.LocationsResource.WorkerPoolsResource.CreateRequest

Delete(String)

Deletes a WorkerPool. NOTE: As of now, this method returns an Operation that is always complete.

Declaration
public virtual ProjectsResource.LocationsResource.WorkerPoolsResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
System.String name

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

Returns
Type Description
ProjectsResource.LocationsResource.WorkerPoolsResource.DeleteRequest

Get(String)

Returns details of a WorkerPool.

Declaration
public virtual ProjectsResource.LocationsResource.WorkerPoolsResource.GetRequest Get(string name)
Parameters
Type Name Description
System.String name

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

Returns
Type Description
ProjectsResource.LocationsResource.WorkerPoolsResource.GetRequest

List(String)

Lists WorkerPools in the given project.

Declaration
public virtual ProjectsResource.LocationsResource.WorkerPoolsResource.ListRequest List(string parent)
Parameters
Type Name Description
System.String parent

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

Returns
Type Description
ProjectsResource.LocationsResource.WorkerPoolsResource.ListRequest

Patch(WorkerPool, String)

Updates a WorkerPool. NOTE: As of now, this method returns an Operation that is always complete.

Declaration
public virtual ProjectsResource.LocationsResource.WorkerPoolsResource.PatchRequest Patch(WorkerPool body, string name)
Parameters
Type Name Description
WorkerPool body

The body of the request.

System.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.

Returns
Type Description
ProjectsResource.LocationsResource.WorkerPoolsResource.PatchRequest
In This Article
Back to top Generated by DocFX