Show / Hide Table of Contents

Class ProjectsResource.WorkerPoolsResource

The "workerPools" collection of methods.

Inheritance
System.Object
ProjectsResource.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.v1alpha2
Assembly: Google.Apis.CloudBuild.v1alpha2.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.

Declaration
public virtual ProjectsResource.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 book will be created. Format: projects/{project}

Returns
Type Description
ProjectsResource.WorkerPoolsResource.CreateRequest

Delete(String)

Deletes a WorkerPool.

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

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

Returns
Type Description
ProjectsResource.WorkerPoolsResource.DeleteRequest

Get(String)

Returns details of a WorkerPool.

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

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

Returns
Type Description
ProjectsResource.WorkerPoolsResource.GetRequest

List(String)

Lists WorkerPools by project.

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

Required. The parent, which owns this collection of WorkerPools. Format: projects/{project}

Returns
Type Description
ProjectsResource.WorkerPoolsResource.ListRequest

Patch(WorkerPool, String)

Updates a WorkerPool.

Declaration
public virtual ProjectsResource.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. Format of the name is projects/{project_id}/workerPools/{worker_pool_id}, where the value of {worker_pool_id} is provided in the CreateWorkerPool request.

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