Class ProjectsResource.LocationsResource.QueuesResource.TasksResource.BufferRequest
Creates and buffers a new task without the need to explicitly define a Task message. The queue must have HTTP target. To create the task with a custom ID, use the following format and set TASK_ID to your desired ID: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID:buffer To create the task with an automatically generated ID, use the following format: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks:buffer.
Inheritance
Inherited Members
Namespace: Google.Apis.CloudTasks.v2beta2
Assembly: Google.Apis.CloudTasks.v2beta2.dll
Syntax
public class ProjectsResource.LocationsResource.QueuesResource.TasksResource.BufferRequest : CloudTasksBaseServiceRequest<BufferTaskResponse>, IClientServiceRequest<BufferTaskResponse>, IClientServiceRequest
Constructors
BufferRequest(IClientService, BufferTaskRequest, string, string)
Constructs a new Buffer request.
Declaration
public BufferRequest(IClientService service, BufferTaskRequest body, string queue, string taskId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
BufferTaskRequest | body | |
string | queue | |
string | taskId |
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
Queue
Required. The parent queue name. For example: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue must already exist.
Declaration
[RequestParameter("queue", RequestParameterType.Path)]
public virtual string Queue { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
TaskId
Optional. Task ID for the task being created. If not provided, a random task ID is assigned to the task.
Declaration
[RequestParameter("taskId", RequestParameterType.Path)]
public virtual string TaskId { get; }
Property Value
Type | Description |
---|---|
string |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Buffer parameter list.
Declaration
protected override void InitParameters()