Class ProjectsResource.WorkerPoolsResource
The "workerPools" collection of methods.
Inheritance
Inherited Members
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 |
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 |
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 |
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 |
Returns
| Type | Description |
|---|---|
| ProjectsResource.WorkerPoolsResource.PatchRequest |