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.v1alpha1
Assembly: Google.Apis.CloudBuild.v1alpha1.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 | ID of the parent project. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.WorkerPoolsResource.CreateRequest |
Delete(String)
Deletes a WorkerPool by its project ID and WorkerPool name.
Declaration
public virtual ProjectsResource.WorkerPoolsResource.DeleteRequest Delete(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The field will contain name of the resource requested, for example: "projects/project-1/workerPools/workerpool-name" |
Returns
| Type | Description |
|---|---|
| ProjectsResource.WorkerPoolsResource.DeleteRequest |
Get(String)
Returns information about a WorkerPool.
Declaration
public virtual ProjectsResource.WorkerPoolsResource.GetRequest Get(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The field will contain name of the resource requested, for example: "projects/project-1/workerPools/workerpool-name" |
Returns
| Type | Description |
|---|---|
| ProjectsResource.WorkerPoolsResource.GetRequest |
List(String)
List project's WorkerPools.
Declaration
public virtual ProjectsResource.WorkerPoolsResource.ListRequest List(string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | parent | ID of the parent project. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.WorkerPoolsResource.ListRequest |
Patch(WorkerPool, String)
Update 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 | The field will contain name of the resource requested, for example: "projects/project-1/workerPools/workerpool-name" |
Returns
| Type | Description |
|---|---|
| ProjectsResource.WorkerPoolsResource.PatchRequest |