Class ProjectsResource.LocationsResource.QueuesResource.TasksResource.AcknowledgeRequest
Acknowledges a pull task. The worker, that is, the entity that leased this task must call this method to indicate that the work associated with the task has finished. The worker must acknowledge a task within the lease_duration or the lease will expire and the task will become available to be leased again. After the task is acknowledged, it will not be returned by a later LeaseTasks, GetTask, or ListTasks.
Inheritance
ProjectsResource.LocationsResource.QueuesResource.TasksResource.AcknowledgeRequest
  Inherited Members
Namespace: Google.Apis.CloudTasks.v2beta2
Assembly: Google.Apis.CloudTasks.v2beta2.dll
Syntax
public class ProjectsResource.LocationsResource.QueuesResource.TasksResource.AcknowledgeRequest : CloudTasksBaseServiceRequest<Empty>, IClientServiceRequest<Empty>, IClientServiceRequestConstructors
AcknowledgeRequest(IClientService, AcknowledgeTaskRequest, string)
Constructs a new Acknowledge request.
Declaration
public AcknowledgeRequest(IClientService service, AcknowledgeTaskRequest body, string name)Parameters
| Type | Name | Description | 
|---|---|---|
| IClientService | service | |
| AcknowledgeTaskRequest | body | |
| string | name | 
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }Property Value
| Type | Description | 
|---|---|
| string | 
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }Property Value
| Type | Description | 
|---|---|
| string | 
Overrides
Name
Required. The task name. For example:
projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }Property Value
| Type | Description | 
|---|---|
| string | 
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }Property Value
| Type | Description | 
|---|---|
| string | 
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()Returns
| Type | Description | 
|---|---|
| object | 
Overrides
InitParameters()
Initializes Acknowledge parameter list.
Declaration
protected override void InitParameters()