Class NamespacesResource.WorkerpoolsResource
The "workerpools" collection of methods.
Inherited Members
Namespace: Google.Apis.CloudRun.v1
Assembly: Google.Apis.CloudRun.v1.dll
Syntax
public class NamespacesResource.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 new WorkerPool. WorkerPool creation will trigger a new deployment. Use GetWorkerPool, and check worker_pool.status to determine if the WorkerPool is ready.
Declaration
public virtual NamespacesResource.WorkerpoolsResource.CreateRequest Create(WorkerPool body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| WorkerPool | body | The body of the request. |
| string | parent | Required. The resource's parent. In Cloud Run, it may be one of the following: *
|
Returns
| Type | Description |
|---|---|
| NamespacesResource.WorkerpoolsResource.CreateRequest |
Delete(string)
Deletes the provided worker pool. This will cause the WorkerPool to stop all instances and will delete all associated WorkerPoolRevisions.
Declaration
public virtual NamespacesResource.WorkerpoolsResource.DeleteRequest Delete(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The fully qualified name of the worker pool to delete. It can be any of the following forms: *
|
Returns
| Type | Description |
|---|---|
| NamespacesResource.WorkerpoolsResource.DeleteRequest |
Get(string)
Gets information about a worker pool.
Declaration
public virtual NamespacesResource.WorkerpoolsResource.GetRequest Get(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The fully qualified name of the worker pool to retrieve. It can be any of the following forms:
|
Returns
| Type | Description |
|---|---|
| NamespacesResource.WorkerpoolsResource.GetRequest |
List(string)
Lists worker pools for the given project and region. Results are sorted by creation time, descending.
Declaration
public virtual NamespacesResource.WorkerpoolsResource.ListRequest List(string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent from where the resources should be listed. In Cloud Run, it may be one of the
following: * |
Returns
| Type | Description |
|---|---|
| NamespacesResource.WorkerpoolsResource.ListRequest |
ReplaceWorkerPool(WorkerPool, string)
Replaces a worker pool. Only the spec and metadata labels and annotations are modifiable. After the Update request, Cloud Run will work to make the 'status' match the requested 'spec'. May provide metadata.resourceVersion to enforce update from last read for optimistic concurrency control.
Declaration
public virtual NamespacesResource.WorkerpoolsResource.ReplaceWorkerPoolRequest ReplaceWorkerPool(WorkerPool body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| WorkerPool | body | The body of the request. |
| string | name | Required. The fully qualified name of the worker pool to replace. It can be any of the following forms:
|
Returns
| Type | Description |
|---|---|
| NamespacesResource.WorkerpoolsResource.ReplaceWorkerPoolRequest |