{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Network.Google.Resource.CloudTasks.Projects.Locations.Queues.Tasks.List
(
ProjectsLocationsQueuesTasksListResource
, projectsLocationsQueuesTasksList
, ProjectsLocationsQueuesTasksList
, plqtlParent
, plqtlXgafv
, plqtlUploadProtocol
, plqtlAccessToken
, plqtlUploadType
, plqtlResponseView
, plqtlPageToken
, plqtlPageSize
, plqtlCallback
) where
import Network.Google.CloudTasks.Types
import Network.Google.Prelude
type ProjectsLocationsQueuesTasksListResource =
"v2beta3" :>
Capture "parent" Text :>
"tasks" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "responseView" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListTasksResponse
data ProjectsLocationsQueuesTasksList = ProjectsLocationsQueuesTasksList'
{ _plqtlParent :: !Text
, _plqtlXgafv :: !(Maybe Xgafv)
, _plqtlUploadProtocol :: !(Maybe Text)
, _plqtlAccessToken :: !(Maybe Text)
, _plqtlUploadType :: !(Maybe Text)
, _plqtlResponseView :: !(Maybe Text)
, _plqtlPageToken :: !(Maybe Text)
, _plqtlPageSize :: !(Maybe (Textual Int32))
, _plqtlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsQueuesTasksList
:: Text
-> ProjectsLocationsQueuesTasksList
projectsLocationsQueuesTasksList pPlqtlParent_ =
ProjectsLocationsQueuesTasksList'
{ _plqtlParent = pPlqtlParent_
, _plqtlXgafv = Nothing
, _plqtlUploadProtocol = Nothing
, _plqtlAccessToken = Nothing
, _plqtlUploadType = Nothing
, _plqtlResponseView = Nothing
, _plqtlPageToken = Nothing
, _plqtlPageSize = Nothing
, _plqtlCallback = Nothing
}
plqtlParent :: Lens' ProjectsLocationsQueuesTasksList Text
plqtlParent
= lens _plqtlParent (\ s a -> s{_plqtlParent = a})
plqtlXgafv :: Lens' ProjectsLocationsQueuesTasksList (Maybe Xgafv)
plqtlXgafv
= lens _plqtlXgafv (\ s a -> s{_plqtlXgafv = a})
plqtlUploadProtocol :: Lens' ProjectsLocationsQueuesTasksList (Maybe Text)
plqtlUploadProtocol
= lens _plqtlUploadProtocol
(\ s a -> s{_plqtlUploadProtocol = a})
plqtlAccessToken :: Lens' ProjectsLocationsQueuesTasksList (Maybe Text)
plqtlAccessToken
= lens _plqtlAccessToken
(\ s a -> s{_plqtlAccessToken = a})
plqtlUploadType :: Lens' ProjectsLocationsQueuesTasksList (Maybe Text)
plqtlUploadType
= lens _plqtlUploadType
(\ s a -> s{_plqtlUploadType = a})
plqtlResponseView :: Lens' ProjectsLocationsQueuesTasksList (Maybe Text)
plqtlResponseView
= lens _plqtlResponseView
(\ s a -> s{_plqtlResponseView = a})
plqtlPageToken :: Lens' ProjectsLocationsQueuesTasksList (Maybe Text)
plqtlPageToken
= lens _plqtlPageToken
(\ s a -> s{_plqtlPageToken = a})
plqtlPageSize :: Lens' ProjectsLocationsQueuesTasksList (Maybe Int32)
plqtlPageSize
= lens _plqtlPageSize
(\ s a -> s{_plqtlPageSize = a})
. mapping _Coerce
plqtlCallback :: Lens' ProjectsLocationsQueuesTasksList (Maybe Text)
plqtlCallback
= lens _plqtlCallback
(\ s a -> s{_plqtlCallback = a})
instance GoogleRequest
ProjectsLocationsQueuesTasksList where
type Rs ProjectsLocationsQueuesTasksList =
ListTasksResponse
type Scopes ProjectsLocationsQueuesTasksList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsLocationsQueuesTasksList'{..}
= go _plqtlParent _plqtlXgafv _plqtlUploadProtocol
_plqtlAccessToken
_plqtlUploadType
_plqtlResponseView
_plqtlPageToken
_plqtlPageSize
_plqtlCallback
(Just AltJSON)
cloudTasksService
where go
= buildClient
(Proxy ::
Proxy ProjectsLocationsQueuesTasksListResource)
mempty