Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
See: Cloud Tasks API Reference for cloudtasks.projects.locations.queues.patch
.
Synopsis
- type ProjectsLocationsQueuesPatchResource = "v2beta3" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Queue :> Patch '[JSON] Queue)))))))))
- projectsLocationsQueuesPatch :: Queue -> Text -> ProjectsLocationsQueuesPatch
- data ProjectsLocationsQueuesPatch
- plqpXgafv :: Lens' ProjectsLocationsQueuesPatch (Maybe Xgafv)
- plqpUploadProtocol :: Lens' ProjectsLocationsQueuesPatch (Maybe Text)
- plqpUpdateMask :: Lens' ProjectsLocationsQueuesPatch (Maybe GFieldMask)
- plqpAccessToken :: Lens' ProjectsLocationsQueuesPatch (Maybe Text)
- plqpUploadType :: Lens' ProjectsLocationsQueuesPatch (Maybe Text)
- plqpPayload :: Lens' ProjectsLocationsQueuesPatch Queue
- plqpName :: Lens' ProjectsLocationsQueuesPatch Text
- plqpCallback :: Lens' ProjectsLocationsQueuesPatch (Maybe Text)
REST Resource
type ProjectsLocationsQueuesPatchResource = "v2beta3" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Queue :> Patch '[JSON] Queue))))))))) Source #
A resource alias for cloudtasks.projects.locations.queues.patch
method which the
ProjectsLocationsQueuesPatch
request conforms to.
Creating a Request
projectsLocationsQueuesPatch Source #
Creates a value of ProjectsLocationsQueuesPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsLocationsQueuesPatch Source #
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.
See: projectsLocationsQueuesPatch
smart constructor.
Instances
Request Lenses
plqpUploadProtocol :: Lens' ProjectsLocationsQueuesPatch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
plqpUpdateMask :: Lens' ProjectsLocationsQueuesPatch (Maybe GFieldMask) Source #
A mask used to specify which fields of the queue are being updated. If empty, then all fields will be updated.
plqpAccessToken :: Lens' ProjectsLocationsQueuesPatch (Maybe Text) Source #
OAuth access token.
plqpUploadType :: Lens' ProjectsLocationsQueuesPatch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
plqpPayload :: Lens' ProjectsLocationsQueuesPatch Queue Source #
Multipart request metadata.
plqpName :: Lens' ProjectsLocationsQueuesPatch Text Source #
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.
plqpCallback :: Lens' ProjectsLocationsQueuesPatch (Maybe Text) Source #
JSONP