Class ProjectsResource.LocationsResource.QueuesResource.TasksResource.RenewLeaseRequest
Renew the current lease of a pull task. The worker can use this method to extend the lease by a new duration, starting from now. The new task lease will be returned in the task's schedule_time.
Inheritance
ProjectsResource.LocationsResource.QueuesResource.TasksResource.RenewLeaseRequest
Inherited Members
Namespace: Google.Apis.CloudTasks.v2beta2
Assembly: Google.Apis.CloudTasks.v2beta2.dll
Syntax
public class ProjectsResource.LocationsResource.QueuesResource.TasksResource.RenewLeaseRequest : CloudTasksBaseServiceRequest<Task>, IClientServiceRequest<Task>, IClientServiceRequest
Constructors
RenewLeaseRequest(IClientService, RenewLeaseRequest, string)
Constructs a new RenewLease request.
Declaration
public RenewLeaseRequest(IClientService service, RenewLeaseRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
RenewLeaseRequest | 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 RenewLease parameter list.
Declaration
protected override void InitParameters()