Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.QueuesResource.PatchRequest

Updates a queue. This method creates the queue if it does not exist and updates the queue if it does exist. 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
System.Object
Google.Apis.Requests.ClientServiceRequest
Google.Apis.Requests.ClientServiceRequest<Queue>
CloudTasksBaseServiceRequest<Queue>
ProjectsResource.LocationsResource.QueuesResource.PatchRequest
Implements
Google.Apis.Requests.IClientServiceRequest<Queue>
Google.Apis.Requests.IClientServiceRequest
Inherited Members
CloudTasksBaseServiceRequest<Queue>.Xgafv
CloudTasksBaseServiceRequest<Queue>.AccessToken
CloudTasksBaseServiceRequest<Queue>.Alt
CloudTasksBaseServiceRequest<Queue>.Callback
CloudTasksBaseServiceRequest<Queue>.Fields
CloudTasksBaseServiceRequest<Queue>.Key
CloudTasksBaseServiceRequest<Queue>.OauthToken
CloudTasksBaseServiceRequest<Queue>.PrettyPrint
CloudTasksBaseServiceRequest<Queue>.QuotaUser
CloudTasksBaseServiceRequest<Queue>.UploadType
CloudTasksBaseServiceRequest<Queue>.UploadProtocol
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudTasks.v2beta2.Data.Queue>.Execute()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudTasks.v2beta2.Data.Queue>.ExecuteAsStream()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudTasks.v2beta2.Data.Queue>.ExecuteAsync()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudTasks.v2beta2.Data.Queue>.ExecuteAsync(System.Threading.CancellationToken)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudTasks.v2beta2.Data.Queue>.ExecuteAsStreamAsync()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudTasks.v2beta2.Data.Queue>.ExecuteAsStreamAsync(System.Threading.CancellationToken)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudTasks.v2beta2.Data.Queue>.CreateRequest(System.Nullable<System.Boolean>)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudTasks.v2beta2.Data.Queue>.GenerateRequestUri()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudTasks.v2beta2.Data.Queue>.GetDefaultETagAction(System.String)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudTasks.v2beta2.Data.Queue>.ETagAction
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudTasks.v2beta2.Data.Queue>.ModifyRequest
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudTasks.v2beta2.Data.Queue>.ValidateParameters
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudTasks.v2beta2.Data.Queue>.RequestParameters
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudTasks.v2beta2.Data.Queue>.Service
Google.Apis.Requests.ClientServiceRequest._unsuccessfulResponseHandlers
Google.Apis.Requests.ClientServiceRequest._exceptionHandlers
Google.Apis.Requests.ClientServiceRequest._executeInterceptors
Google.Apis.Requests.ClientServiceRequest.AddUnsuccessfulResponseHandler(Google.Apis.Http.IHttpUnsuccessfulResponseHandler)
Google.Apis.Requests.ClientServiceRequest.AddExceptionHandler(Google.Apis.Http.IHttpExceptionHandler)
Google.Apis.Requests.ClientServiceRequest.AddExecuteInterceptor(Google.Apis.Http.IHttpExecuteInterceptor)
Google.Apis.Requests.ClientServiceRequest.Credential
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.CloudTasks.v2beta2
Assembly: Google.Apis.CloudTasks.v2beta2.dll
Syntax
public class PatchRequest : CloudTasksBaseServiceRequest<Queue>, IClientServiceRequest<Queue>, IClientServiceRequest

Constructors

PatchRequest(IClientService, Queue, String)

Constructs a new Patch request.

Declaration
public PatchRequest(IClientService service, Queue body, string name)
Parameters
Type Name Description
Google.Apis.Services.IClientService service
Queue body
System.String name

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudTasks.v2beta2.Data.Queue>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudTasks.v2beta2.Data.Queue>.MethodName

Name

Caller-specified and required in CreateQueue, after which it becomes output only. The queue name. The queue name must have the following format: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID * PROJECT_ID can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see Identifying projects

  • LOCATION_ID is the canonical ID for the queue's location. The list of available locations can be obtained by calling ListLocations. For more information, see https://cloud.google.com/about/locations/. * QUEUE_ID can contain letters ([A-Za-z]), numbers ([0-9]), or hyphens (-). The maximum length is 100 characters.
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type Description
System.String

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudTasks.v2beta2.Data.Queue>.RestPath

UpdateMask

A mask used to specify which fields of the queue are being updated. If empty, then all fields will be updated.

Declaration
[RequestParameter("updateMask", RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
Property Value
Type Description
System.Object

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
System.Object
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudTasks.v2beta2.Data.Queue>.GetBody()

InitParameters()

Initializes Patch parameter list.

Declaration
protected override void InitParameters()
Overrides
Google.Apis.CloudTasks.v2beta2.CloudTasksBaseServiceRequest<Google.Apis.CloudTasks.v2beta2.Data.Queue>.InitParameters()

Implements

Google.Apis.Requests.IClientServiceRequest<TResponse>
Google.Apis.Requests.IClientServiceRequest
In This Article
Back to top