Class ProjectsResource.LocationsResource.WorkerPoolsResource
The "workerPools" collection of methods.
Inherited Members
Namespace: Google.Apis.CloudRun.v2
Assembly: Google.Apis.CloudRun.v2.dll
Syntax
public class ProjectsResource.LocationsResource.WorkerPoolsResource
Constructors
WorkerPoolsResource(IClientService)
Constructs a new resource.
Declaration
public WorkerPoolsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
Revisions
Gets the Revisions resource.
Declaration
public virtual ProjectsResource.LocationsResource.WorkerPoolsResource.RevisionsResource Revisions { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.LocationsResource.WorkerPoolsResource.RevisionsResource |
Methods
Create(GoogleCloudRunV2WorkerPool, string)
Creates a new WorkerPool in a given project and location.
Declaration
public virtual ProjectsResource.LocationsResource.WorkerPoolsResource.CreateRequest Create(GoogleCloudRunV2WorkerPool body, string parent)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudRunV2WorkerPool | body | The body of the request. |
string | parent | Required. The location and project in which this worker pool should be created. Format: projects/{project}/locations/{location}, where {project} can be project id or number. Only lowercase characters, digits, and hyphens. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.WorkerPoolsResource.CreateRequest |
Delete(string)
Deletes a WorkerPool.
Declaration
public virtual ProjectsResource.LocationsResource.WorkerPoolsResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The full name of the WorkerPool. Format: projects/{project}/locations/{location}/workerPools/{worker_pool}, where {project} can be project id or number. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.WorkerPoolsResource.DeleteRequest |
Get(string)
Gets information about a WorkerPool.
Declaration
public virtual ProjectsResource.LocationsResource.WorkerPoolsResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The full name of the WorkerPool. Format: projects/{project}/locations/{location}/workerPools/{worker_pool}, where {project} can be project id or number. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.WorkerPoolsResource.GetRequest |
List(string)
Lists WorkerPools. Results are sorted by creation time, descending.
Declaration
public virtual ProjectsResource.LocationsResource.WorkerPoolsResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The location and project to list resources on. Location must be a valid Google Cloud region, and cannot be the "-" wildcard. Format: projects/{project}/locations/{location}, where {project} can be project id or number. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.WorkerPoolsResource.ListRequest |
Patch(GoogleCloudRunV2WorkerPool, string)
Updates a WorkerPool.
Declaration
public virtual ProjectsResource.LocationsResource.WorkerPoolsResource.PatchRequest Patch(GoogleCloudRunV2WorkerPool body, string name)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudRunV2WorkerPool | body | The body of the request. |
string | name | The fully qualified name of this WorkerPool. In CreateWorkerPoolRequest, this field is ignored, and instead composed from CreateWorkerPoolRequest.parent and CreateWorkerPoolRequest.worker_id. Format: projects/{project}/locations/{location}/workerPools/{worker_id} |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.WorkerPoolsResource.PatchRequest |
TestIamPermissions(GoogleIamV1TestIamPermissionsRequest, string)
Returns permissions that a caller has on the specified Project. There are no permissions required for making this API call.
Declaration
public virtual ProjectsResource.LocationsResource.WorkerPoolsResource.TestIamPermissionsRequest TestIamPermissions(GoogleIamV1TestIamPermissionsRequest body, string resource)
Parameters
Type | Name | Description |
---|---|---|
GoogleIamV1TestIamPermissionsRequest | body | The body of the request. |
string | resource | REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.WorkerPoolsResource.TestIamPermissionsRequest |