1{-# LANGUAGE DataKinds #-}
2{-# LANGUAGE DeriveDataTypeable #-}
3{-# LANGUAGE DeriveGeneric #-}
4{-# LANGUAGE RecordWildCards #-}
5{-# LANGUAGE TypeFamilies #-}
6{-# LANGUAGE TypeOperators #-}
8{-# OPTIONS_GHC -fno-warn-unused-imports #-}
9{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12-- Module : Network.Google.API.Taskqueue.Tasks.List
13-- Copyright : (c) 2015 Brendan Hay
14-- License : Mozilla Public License, v. 2.0.
15-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
16-- Stability : auto-generated
17-- Portability : non-portable (GHC extensions)
19-- | List Tasks in a TaskQueue
21-- /See:/ <https://developers.google.com/appengine/docs/python/taskqueue/rest TaskQueue API Reference> for @taskqueue.tasks.list@.
22module Network.Google.API.Taskqueue.Tasks.List
27 -- * Creating a Request
43import Network.Google.AppEngine.TaskQueue.Types
44import Network.Google.Prelude
46-- | A resource alias for taskqueue.tasks.list which the
47-- 'TasksList'' request conforms to.
49 Capture "project" Text :>
51 Capture "taskqueue" Text :>
53 QueryParam "quotaUser" Text :>
54 QueryParam "prettyPrint" Bool :>
55 QueryParam "userIp" Text :>
56 QueryParam "key" Text :>
57 QueryParam "oauth_token" Text :>
58 QueryParam "fields" Text :>
59 QueryParam "alt" Alt :> Get '[JSON] Tasks2
61-- | List Tasks in a TaskQueue
63-- /See:/ 'tasksList'' smart constructor.
64data TasksList' = TasksList'
65 { _tlTaskqueue :: !Text
66 , _tlQuotaUser :: !(Maybe Text)
67 , _tlPrettyPrint :: !Bool
69 , _tlUserIp :: !(Maybe Text)
70 , _tlKey :: !(Maybe Text)
71 , _tlOauthToken :: !(Maybe Text)
72 , _tlFields :: !(Maybe Text)
74 } deriving (Eq,Read,Show,Data,Typeable,Generic)
76-- | Creates a value of 'TasksList'' with the minimum fields required to make a request.
78-- Use one of the following lenses to modify other fields as desired:
98 :: Text -- ^ 'taskqueue'
99 -> Text -- ^ 'project'
101tasksList' pTlTaskqueue_ pTlProject_ =
103 { _tlTaskqueue = pTlTaskqueue_
104 , _tlQuotaUser = Nothing
105 , _tlPrettyPrint = True
106 , _tlProject = pTlProject_
107 , _tlUserIp = Nothing
109 , _tlOauthToken = Nothing
110 , _tlFields = Nothing
114-- | The id of the taskqueue to list tasks from.
115tlTaskqueue :: Lens' TasksList' Text
117 = lens _tlTaskqueue (\ s a -> s{_tlTaskqueue = a})
119-- | Available to use for quota purposes for server-side applications. Can be
120-- any arbitrary string assigned to a user, but should not exceed 40
121-- characters. Overrides userIp if both are provided.
122tlQuotaUser :: Lens' TasksList' (Maybe Text)
124 = lens _tlQuotaUser (\ s a -> s{_tlQuotaUser = a})
126-- | Returns response with indentations and line breaks.
127tlPrettyPrint :: Lens' TasksList' Bool
129 = lens _tlPrettyPrint
130 (\ s a -> s{_tlPrettyPrint = a})
132-- | The project under which the queue lies.
133tlProject :: Lens' TasksList' Text
135 = lens _tlProject (\ s a -> s{_tlProject = a})
137-- | IP address of the site where the request originates. Use this if you
138-- want to enforce per-user limits.
139tlUserIp :: Lens' TasksList' (Maybe Text)
140tlUserIp = lens _tlUserIp (\ s a -> s{_tlUserIp = a})
142-- | API key. Your API key identifies your project and provides you with API
143-- access, quota, and reports. Required unless you provide an OAuth 2.0
145tlKey :: Lens' TasksList' (Maybe Text)
146tlKey = lens _tlKey (\ s a -> s{_tlKey = a})
148-- | OAuth 2.0 token for the current user.
149tlOauthToken :: Lens' TasksList' (Maybe Text)
151 = lens _tlOauthToken (\ s a -> s{_tlOauthToken = a})
153-- | Selector specifying which fields to include in a partial response.
154tlFields :: Lens' TasksList' (Maybe Text)
155tlFields = lens _tlFields (\ s a -> s{_tlFields = a})
157-- | Data format for the response.
158tlAlt :: Lens' TasksList' Alt
159tlAlt = lens _tlAlt (\ s a -> s{_tlAlt = a})
161instance GoogleRequest TasksList' where
162 type Rs TasksList' = Tasks2
164 = requestWithRoute defReq appEngineTaskQueueURL
165 requestWithRoute r u TasksList'{..}
166 = go _tlTaskqueue _tlQuotaUser (Just _tlPrettyPrint)
174 = clientWithRoute (Proxy :: Proxy TasksListAPI) r u
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list