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 task and adds it to a queue. Tasks cannot be updated after creation; there is no UpdateTask command. * For App Engine queues, the maximum task size is 100KB.
See: Cloud Tasks API Reference for cloudtasks.projects.locations.queues.tasks.create
.
Synopsis
- type ProjectsLocationsQueuesTasksCreateResource = "v2beta3" :> (Capture "parent" Text :> ("tasks" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CreateTaskRequest :> Post '[JSON] Task)))))))))
- projectsLocationsQueuesTasksCreate :: Text -> CreateTaskRequest -> ProjectsLocationsQueuesTasksCreate
- data ProjectsLocationsQueuesTasksCreate
- plqtcParent :: Lens' ProjectsLocationsQueuesTasksCreate Text
- plqtcXgafv :: Lens' ProjectsLocationsQueuesTasksCreate (Maybe Xgafv)
- plqtcUploadProtocol :: Lens' ProjectsLocationsQueuesTasksCreate (Maybe Text)
- plqtcAccessToken :: Lens' ProjectsLocationsQueuesTasksCreate (Maybe Text)
- plqtcUploadType :: Lens' ProjectsLocationsQueuesTasksCreate (Maybe Text)
- plqtcPayload :: Lens' ProjectsLocationsQueuesTasksCreate CreateTaskRequest
- plqtcCallback :: Lens' ProjectsLocationsQueuesTasksCreate (Maybe Text)
REST Resource
type ProjectsLocationsQueuesTasksCreateResource = "v2beta3" :> (Capture "parent" Text :> ("tasks" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CreateTaskRequest :> Post '[JSON] Task))))))))) Source #
A resource alias for cloudtasks.projects.locations.queues.tasks.create
method which the
ProjectsLocationsQueuesTasksCreate
request conforms to.
Creating a Request
projectsLocationsQueuesTasksCreate Source #
Creates a value of ProjectsLocationsQueuesTasksCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsLocationsQueuesTasksCreate Source #
Creates a task and adds it to a queue. Tasks cannot be updated after creation; there is no UpdateTask command. * For App Engine queues, the maximum task size is 100KB.
See: projectsLocationsQueuesTasksCreate
smart constructor.
Instances
Request Lenses
plqtcParent :: Lens' ProjectsLocationsQueuesTasksCreate Text Source #
Required. The queue name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue must already exist.
plqtcXgafv :: Lens' ProjectsLocationsQueuesTasksCreate (Maybe Xgafv) Source #
V1 error format.
plqtcUploadProtocol :: Lens' ProjectsLocationsQueuesTasksCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
plqtcAccessToken :: Lens' ProjectsLocationsQueuesTasksCreate (Maybe Text) Source #
OAuth access token.
plqtcUploadType :: Lens' ProjectsLocationsQueuesTasksCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
plqtcPayload :: Lens' ProjectsLocationsQueuesTasksCreate CreateTaskRequest Source #
Multipart request metadata.