Class ProjectsResource.LocationsResource
The "locations" collection of methods.
Inherited Members
Namespace: Google.Apis.CloudTasks.v2
Assembly: Google.Apis.CloudTasks.v2.dll
Syntax
public class ProjectsResource.LocationsResource
Constructors
LocationsResource(IClientService)
Constructs a new resource.
Declaration
public LocationsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Properties
Queues
Gets the Queues resource.
Declaration
public virtual ProjectsResource.LocationsResource.QueuesResource Queues { get; }
Property Value
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.QueuesResource |
Methods
Get(string)
Gets information about a location.
Declaration
public virtual ProjectsResource.LocationsResource.GetRequest Get(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Resource name for the location. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.GetRequest |
GetCmekConfig(string)
Gets the CMEK config. Gets the Customer Managed Encryption Key configured with the Cloud Tasks lcoation. By default there is no kms_key configured.
Declaration
public virtual ProjectsResource.LocationsResource.GetCmekConfigRequest GetCmekConfig(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The config. For example: projects/PROJECT_ID/locations/LOCATION_ID/CmekConfig` |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.GetCmekConfigRequest |
List(string)
Lists information about the supported locations for this service. This method lists locations based on
the resource scope provided in the [ListLocationsRequest.name] field: * Global locations: If name
is empty, the method lists the public locations available to all projects. * Project-specific
locations: If name follows the format projects/{project}, the method lists locations visible to
that specific project. This includes public, private, or other project-specific locations enabled for
the project. For gRPC and client library implementations, the resource name is passed as the name
field. For direct service calls, the resource name is incorporated into the request path based on the
specific service implementation and version.
Declaration
public virtual ProjectsResource.LocationsResource.ListRequest List(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The resource that owns the locations collection, if applicable. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.ListRequest |
UpdateCmekConfig(CmekConfig, string)
Creates or Updates a CMEK config. Updates the Customer Managed Encryption Key associated with the Cloud Tasks location (Creates if the key does not already exist). All new tasks created in the location will be encrypted at-rest with the KMS-key provided in the config.
Declaration
public virtual ProjectsResource.LocationsResource.UpdateCmekConfigRequest UpdateCmekConfig(CmekConfig body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| CmekConfig | body | The body of the request. |
| string | name | Output only. The config resource name which includes the project and location and must end in 'cmekConfig', in the format projects/PROJECT_ID/locations/LOCATION_ID/cmekConfig` |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.UpdateCmekConfigRequest |