on f5e22fe help sign in
231 lines 6.1 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.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.TaskQueue
19 (
20 -- * Resources
21 TaskQueue
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.TaskQueue.Types
86{- $resources
87TODO
88-}
90type TaskQueue = TaskqueuesAPI :<|> TasksAPI
92type TasksAPI =
93 TasksList :<|>
94 TasksPatch :<|>
95 TasksGet :<|>
96 TasksLease :<|>
97 TasksDelete :<|> TasksUpdate :<|> TasksInsert
99-- | Insert a new task in a TaskQueue
100type TasksInsert =
101 "taskqueue" :> "v1beta2" :> "projects" :>
102 Capture "project" Text
103 :> "taskqueues"
104 :> Capture "taskqueue" Text
105 :> "tasks"
106 :> QueryParam "quotaUser" Text
107 :> QueryParam "prettyPrint" Bool
108 :> QueryParam "userIp" Text
109 :> QueryParam "key" Text
110 :> QueryParam "oauth_token" Text
111 :> QueryParam "fields" Text
112 :> QueryParam "alt" Text
114-- | List Tasks in a TaskQueue
115type TasksList =
116 "taskqueue" :> "v1beta2" :> "projects" :>
117 Capture "project" Text
118 :> "taskqueues"
119 :> Capture "taskqueue" Text
120 :> "tasks"
121 :> QueryParam "quotaUser" Text
122 :> QueryParam "prettyPrint" Bool
123 :> QueryParam "userIp" Text
124 :> QueryParam "key" Text
125 :> QueryParam "oauth_token" Text
126 :> QueryParam "fields" Text
127 :> QueryParam "alt" Text
129-- | Update tasks that are leased out of a TaskQueue. This method supports
130-- patch semantics.
131type TasksPatch =
132 "taskqueue" :> "v1beta2" :> "projects" :>
133 Capture "project" Text
134 :> "taskqueues"
135 :> Capture "taskqueue" Text
136 :> "tasks"
137 :> Capture "task" Text
138 :> QueryParam "quotaUser" Text
139 :> QueryParam "prettyPrint" Bool
140 :> QueryParam "userIp" Text
141 :> QueryParam "key" Text
142 :> QueryParam "oauth_token" Text
143 :> QueryParam "newLeaseSeconds" Int32
144 :> QueryParam "fields" Text
145 :> QueryParam "alt" Text
147-- | Get a particular task from a TaskQueue.
148type TasksGet =
149 "taskqueue" :> "v1beta2" :> "projects" :>
150 Capture "project" Text
151 :> "taskqueues"
152 :> Capture "taskqueue" Text
153 :> "tasks"
154 :> Capture "task" Text
155 :> QueryParam "quotaUser" Text
156 :> QueryParam "prettyPrint" Bool
157 :> QueryParam "userIp" Text
158 :> QueryParam "key" Text
159 :> QueryParam "oauth_token" Text
160 :> QueryParam "fields" Text
161 :> QueryParam "alt" Text
163-- | Lease 1 or more tasks from a TaskQueue.
164type TasksLease =
165 "taskqueue" :> "v1beta2" :> "projects" :>
166 Capture "project" Text
167 :> "taskqueues"
168 :> Capture "taskqueue" Text
169 :> "tasks"
170 :> "lease"
171 :> QueryParam "quotaUser" Text
172 :> QueryParam "prettyPrint" Bool
173 :> QueryParam "tag" Text
174 :> QueryParam "userIp" Text
175 :> QueryParam "numTasks" Int32
176 :> QueryParam "key" Text
177 :> QueryParam "leaseSecs" Int32
178 :> QueryParam "oauth_token" Text
179 :> QueryParam "groupByTag" Bool
180 :> QueryParam "fields" Text
181 :> QueryParam "alt" Text
183-- | Delete a task from a TaskQueue.
184type TasksDelete =
185 "taskqueue" :> "v1beta2" :> "projects" :>
186 Capture "project" Text
187 :> "taskqueues"
188 :> Capture "taskqueue" Text
189 :> "tasks"
190 :> Capture "task" Text
191 :> QueryParam "quotaUser" Text
192 :> QueryParam "prettyPrint" Bool
193 :> QueryParam "userIp" Text
194 :> QueryParam "key" Text
195 :> QueryParam "oauth_token" Text
196 :> QueryParam "fields" Text
197 :> QueryParam "alt" Text
199-- | Update tasks that are leased out of a TaskQueue.
200type TasksUpdate =
201 "taskqueue" :> "v1beta2" :> "projects" :>
202 Capture "project" Text
203 :> "taskqueues"
204 :> Capture "taskqueue" Text
205 :> "tasks"
206 :> Capture "task" Text
207 :> QueryParam "quotaUser" Text
208 :> QueryParam "prettyPrint" Bool
209 :> QueryParam "userIp" Text
210 :> QueryParam "key" Text
211 :> QueryParam "oauth_token" Text
212 :> QueryParam "newLeaseSeconds" Int32
213 :> QueryParam "fields" Text
214 :> QueryParam "alt" Text
216type TaskqueuesAPI = TaskqueuesGet
218-- | Get detailed information about a TaskQueue.
219type TaskqueuesGet =
220 "taskqueue" :> "v1beta2" :> "projects" :>
221 Capture "project" Text
222 :> "taskqueues"
223 :> Capture "taskqueue" Text
224 :> QueryParam "quotaUser" Text
225 :> QueryParam "prettyPrint" Bool
226 :> QueryParam "userIp" Text
227 :> QueryParam "key" Text
228 :> QueryParam "getStats" Bool
229 :> QueryParam "oauth_token" Text
230 :> QueryParam "fields" Text
231 :> QueryParam "alt" Text