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 |
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.
See: Cloud Tasks API Reference for cloudtasks.projects.locations.queues.create
.
Synopsis
- type ProjectsLocationsQueuesCreateResource = "v2beta3" :> (Capture "parent" Text :> ("queues" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Queue :> Post '[JSON] Queue)))))))))
- projectsLocationsQueuesCreate :: Text -> Queue -> ProjectsLocationsQueuesCreate
- data ProjectsLocationsQueuesCreate
- plqcParent :: Lens' ProjectsLocationsQueuesCreate Text
- plqcXgafv :: Lens' ProjectsLocationsQueuesCreate (Maybe Xgafv)
- plqcUploadProtocol :: Lens' ProjectsLocationsQueuesCreate (Maybe Text)
- plqcAccessToken :: Lens' ProjectsLocationsQueuesCreate (Maybe Text)
- plqcUploadType :: Lens' ProjectsLocationsQueuesCreate (Maybe Text)
- plqcPayload :: Lens' ProjectsLocationsQueuesCreate Queue
- plqcCallback :: Lens' ProjectsLocationsQueuesCreate (Maybe Text)
REST Resource
type ProjectsLocationsQueuesCreateResource = "v2beta3" :> (Capture "parent" Text :> ("queues" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Queue :> Post '[JSON] Queue))))))))) Source #
A resource alias for cloudtasks.projects.locations.queues.create
method which the
ProjectsLocationsQueuesCreate
request conforms to.
Creating a Request
projectsLocationsQueuesCreate Source #
Creates a value of ProjectsLocationsQueuesCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsLocationsQueuesCreate Source #
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.
See: projectsLocationsQueuesCreate
smart constructor.
Instances
Request Lenses
plqcParent :: Lens' ProjectsLocationsQueuesCreate Text Source #
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.
plqcUploadProtocol :: Lens' ProjectsLocationsQueuesCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
plqcAccessToken :: Lens' ProjectsLocationsQueuesCreate (Maybe Text) Source #
OAuth access token.
plqcUploadType :: Lens' ProjectsLocationsQueuesCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
plqcPayload :: Lens' ProjectsLocationsQueuesCreate Queue Source #
Multipart request metadata.
plqcCallback :: Lens' ProjectsLocationsQueuesCreate (Maybe Text) Source #
JSONP