1{-# LANGUAGE DataKinds #-}
2{-# LANGUAGE DeriveDataTypeable #-}
3{-# LANGUAGE DeriveGeneric #-}
4{-# LANGUAGE FlexibleInstances #-}
5{-# LANGUAGE NoImplicitPrelude #-}
6{-# LANGUAGE OverloadedStrings #-}
7{-# LANGUAGE RecordWildCards #-}
8{-# LANGUAGE TypeFamilies #-}
9{-# LANGUAGE TypeOperators #-}
11{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13{-# OPTIONS_GHC -fno-warn-unused-imports #-}
16-- Module : Network.Google.Resource.TaskQueue.TaskQueues.Get
17-- Copyright : (c) 2015-2016 Brendan Hay
18-- License : Mozilla Public License, v. 2.0.
19-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20-- Stability : auto-generated
21-- Portability : non-portable (GHC extensions)
23-- Get detailed information about a TaskQueue.
25-- /See:/ <https://developers.google.com/appengine/docs/python/taskqueue/rest TaskQueue API Reference> for @taskqueue.taskqueues.get@.
26module Network.Google.Resource.TaskQueue.TaskQueues.Get
31 -- * Creating a Request
41import Network.Google.Prelude
42import Network.Google.TaskQueue.Types
44-- | A resource alias for @taskqueue.taskqueues.get@ method which the
45-- 'TaskQueuesGet' request conforms to.
46type TaskQueuesGetResource =
50 Capture "project" Text :>
52 Capture "taskqueue" Text :>
53 QueryParam "getStats" Bool :>
54 QueryParam "alt" AltJSON :> Get '[JSON] TaskQueue
56-- | Get detailed information about a TaskQueue.
58-- /See:/ 'taskQueuesGet' smart constructor.
59data TaskQueuesGet = TaskQueuesGet'
60 { _tqgTaskQueue :: !Text
61 , _tqgProject :: !Text
62 , _tqgGetStats :: !(Maybe Bool)
63 } deriving (Eq,Show,Data,Typeable,Generic)
65-- | Creates a value of 'TaskQueuesGet' with the minimum fields required to make a request.
67-- Use one of the following lenses to modify other fields as desired:
75 :: Text -- ^ 'tqgTaskQueue'
76 -> Text -- ^ 'tqgProject'
78taskQueuesGet pTqgTaskQueue_ pTqgProject_ =
80 { _tqgTaskQueue = pTqgTaskQueue_
81 , _tqgProject = pTqgProject_
82 , _tqgGetStats = Nothing
85-- | The id of the taskqueue to get the properties of.
86tqgTaskQueue :: Lens' TaskQueuesGet Text
88 = lens _tqgTaskQueue (\ s a -> s{_tqgTaskQueue = a})
90-- | The project under which the queue lies.
91tqgProject :: Lens' TaskQueuesGet Text
93 = lens _tqgProject (\ s a -> s{_tqgProject = a})
95-- | Whether to get stats. Optional.
96tqgGetStats :: Lens' TaskQueuesGet (Maybe Bool)
98 = lens _tqgGetStats (\ s a -> s{_tqgGetStats = a})
100instance GoogleRequest TaskQueuesGet where
101 type Rs TaskQueuesGet = TaskQueue
102 type Scopes TaskQueuesGet =
103 '["https://www.googleapis.com/auth/taskqueue",
104 "https://www.googleapis.com/auth/taskqueue.consumer"]
105 requestClient TaskQueuesGet'{..}
106 = go _tqgProject _tqgTaskQueue _tqgGetStats
110 = buildClient (Proxy :: Proxy TaskQueuesGetResource)
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