Class ProjectsResource.LocationsResource.QueuesResource.CreateRequest
Creates a queue. Queues created with this method allow tasks to live for a maximum of 31 days. After
a task is 31 days old, the task will be deleted regardless of whether it was dispatched or not.
WARNING: Using this method may have unintended side effects if you are using an App Engine
queue.yaml
or queue.xml
file to manage your queues. Read Overview of Queue Management and
queue.yaml before using this method.
Inheritance
Inherited Members
Namespace: Google.Apis.CloudTasks.v2beta2
Assembly: Google.Apis.CloudTasks.v2beta2.dll
Syntax
public class ProjectsResource.LocationsResource.QueuesResource.CreateRequest : CloudTasksBaseServiceRequest<Queue>, IClientServiceRequest<Queue>, IClientServiceRequest
Constructors
CreateRequest(IClientService, Queue, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, Queue body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Queue | body | |
string | parent |
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
Parent
Required. The location name in which the queue will be created. For example:
projects/PROJECT_ID/locations/LOCATION_ID
The list of allowed locations can be obtained by
calling Cloud Tasks' implementation of ListLocations.
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { 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 Create parameter list.
Declaration
protected override void InitParameters()