on b3333d6 help sign in
232 lines 6.2 kB history raw
1{-# LANGUAGE DataKinds #-}
2{-# LANGUAGE TypeOperators #-}
4{-# OPTIONS_GHC -fno-warn-unused-imports #-}
5{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
7-- |
8-- Module : Network.Google.AppEngine.TaskQueue
9-- Copyright : (c) 2015 Brendan Hay
10-- License : Mozilla Public License, v. 2.0.
11-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
12-- Stability : auto-generated
13-- Portability : non-portable (GHC extensions)
14--
15-- -- | Lets you access a Google App Engine Pull Task Queue over REST.
16--
17-- /See:/ <https://developers.google.com/appengine/docs/python/taskqueue/rest TaskQueue API Reference>
18module Network.Google.AppEngine.TaskQueue
19 (
20 -- * Resources
21 AppEngineTaskQueue
22 , TasksAPI
23 , TasksInsert
24 , TasksList
25 , TasksPatch
26 , TasksGet
27 , TasksLease
28 , TasksDelete
29 , TasksUpdate
30 , TaskqueuesAPI
31 , TaskqueuesGet
33 -- * Types
35 -- ** Task
36 , Task
37 , task
38 , tRetryCount
39 , tEnqueueTimestamp
40 , tTag
41 , tKind
42 , tQueueName
43 , tPayloadBase64
44 , tId
45 , tLeaseTimestamp
47 -- ** TaskQueue
48 , TaskQueue
49 , taskQueue
50 , tqKind
51 , tqStats
52 , tqMaxLeases
53 , tqId
54 , tqAcl
56 -- ** TaskQueueAcl
57 , TaskQueueAcl
58 , taskQueueAcl
59 , tqaProducerEmails
60 , tqaAdminEmails
61 , tqaConsumerEmails
63 -- ** TaskQueueStats
64 , TaskQueueStats
65 , taskQueueStats
66 , tqsTotalTasks
67 , tqsOldestTask
68 , tqsLeasedLastHour
69 , tqsLeasedLastMinute
71 -- ** Tasks
72 , Tasks
73 , tasks
74 , tasKind
75 , tasItems
77 -- ** Tasks2
78 , Tasks2
79 , tasks2
80 , ttKind
81 , ttItems
82 ) where
84import Network.Google.AppEngine.TaskQueue.Types
85import Network.Google.Prelude
87{- $resources
88TODO
89-}
91type AppEngineTaskQueue = TasksAPI :<|> TaskqueuesAPI
93type TasksAPI =
94 TasksInsert :<|> TasksList :<|> TasksPatch :<|>
95 TasksGet
96 :<|> TasksLease
97 :<|> TasksDelete
98 :<|> TasksUpdate
100-- | Insert a new task in a TaskQueue
101type TasksInsert =
102 "taskqueue" :> "v1beta2" :> "projects" :>
103 Capture "project" Text
104 :> "taskqueues"
105 :> Capture "taskqueue" Text
106 :> "tasks"
107 :> QueryParam "quotaUser" Text
108 :> QueryParam "prettyPrint" Bool
109 :> QueryParam "userIp" Text
110 :> QueryParam "key" Text
111 :> QueryParam "oauth_token" Text
112 :> QueryParam "fields" Text
113 :> QueryParam "alt" Text
115-- | List Tasks in a TaskQueue
116type TasksList =
117 "taskqueue" :> "v1beta2" :> "projects" :>
118 Capture "project" Text
119 :> "taskqueues"
120 :> Capture "taskqueue" Text
121 :> "tasks"
122 :> QueryParam "quotaUser" Text
123 :> QueryParam "prettyPrint" Bool
124 :> QueryParam "userIp" Text
125 :> QueryParam "key" Text
126 :> QueryParam "oauth_token" Text
127 :> QueryParam "fields" Text
128 :> QueryParam "alt" Text
130-- | Update tasks that are leased out of a TaskQueue. This method supports
131-- patch semantics.
132type TasksPatch =
133 "taskqueue" :> "v1beta2" :> "projects" :>
134 Capture "project" Text
135 :> "taskqueues"
136 :> Capture "taskqueue" Text
137 :> "tasks"
138 :> Capture "task" Text
139 :> QueryParam "quotaUser" Text
140 :> QueryParam "prettyPrint" Bool
141 :> QueryParam "userIp" Text
142 :> QueryParam "key" Text
143 :> QueryParam "oauth_token" Text
144 :> QueryParam "newLeaseSeconds" Int32
145 :> QueryParam "fields" Text
146 :> QueryParam "alt" Text
148-- | Get a particular task from a TaskQueue.
149type TasksGet =
150 "taskqueue" :> "v1beta2" :> "projects" :>
151 Capture "project" Text
152 :> "taskqueues"
153 :> Capture "taskqueue" Text
154 :> "tasks"
155 :> Capture "task" Text
156 :> QueryParam "quotaUser" Text
157 :> QueryParam "prettyPrint" Bool
158 :> QueryParam "userIp" Text
159 :> QueryParam "key" Text
160 :> QueryParam "oauth_token" Text
161 :> QueryParam "fields" Text
162 :> QueryParam "alt" Text
164-- | Lease 1 or more tasks from a TaskQueue.
165type TasksLease =
166 "taskqueue" :> "v1beta2" :> "projects" :>
167 Capture "project" Text
168 :> "taskqueues"
169 :> Capture "taskqueue" Text
170 :> "tasks"
171 :> "lease"
172 :> QueryParam "quotaUser" Text
173 :> QueryParam "prettyPrint" Bool
174 :> QueryParam "tag" Text
175 :> QueryParam "userIp" Text
176 :> QueryParam "numTasks" Int32
177 :> QueryParam "key" Text
178 :> QueryParam "leaseSecs" Int32
179 :> QueryParam "oauth_token" Text
180 :> QueryParam "groupByTag" Bool
181 :> QueryParam "fields" Text
182 :> QueryParam "alt" Text
184-- | Delete a task from a TaskQueue.
185type TasksDelete =
186 "taskqueue" :> "v1beta2" :> "projects" :>
187 Capture "project" Text
188 :> "taskqueues"
189 :> Capture "taskqueue" Text
190 :> "tasks"
191 :> Capture "task" Text
192 :> QueryParam "quotaUser" Text
193 :> QueryParam "prettyPrint" Bool
194 :> QueryParam "userIp" Text
195 :> QueryParam "key" Text
196 :> QueryParam "oauth_token" Text
197 :> QueryParam "fields" Text
198 :> QueryParam "alt" Text
200-- | Update tasks that are leased out of a TaskQueue.
201type TasksUpdate =
202 "taskqueue" :> "v1beta2" :> "projects" :>
203 Capture "project" Text
204 :> "taskqueues"
205 :> Capture "taskqueue" Text
206 :> "tasks"
207 :> Capture "task" Text
208 :> QueryParam "quotaUser" Text
209 :> QueryParam "prettyPrint" Bool
210 :> QueryParam "userIp" Text
211 :> QueryParam "key" Text
212 :> QueryParam "oauth_token" Text
213 :> QueryParam "newLeaseSeconds" Int32
214 :> QueryParam "fields" Text
215 :> QueryParam "alt" Text
217type TaskqueuesAPI = TaskqueuesGet
219-- | Get detailed information about a TaskQueue.
220type TaskqueuesGet =
221 "taskqueue" :> "v1beta2" :> "projects" :>
222 Capture "project" Text
223 :> "taskqueues"
224 :> Capture "taskqueue" Text
225 :> QueryParam "quotaUser" Text
226 :> QueryParam "prettyPrint" Bool
227 :> QueryParam "userIp" Text
228 :> QueryParam "key" Text
229 :> QueryParam "getStats" Bool
230 :> QueryParam "oauth_token" Text
231 :> QueryParam "fields" Text
232 :> QueryParam "alt" Text