{-# 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.List
(
ProjectsLocationsQueuesListResource
, projectsLocationsQueuesList
, ProjectsLocationsQueuesList
, plqlParent
, plqlXgafv
, plqlUploadProtocol
, plqlAccessToken
, plqlUploadType
, plqlFilter
, plqlPageToken
, plqlPageSize
, plqlCallback
) where
import Network.Google.CloudTasks.Types
import Network.Google.Prelude
type ProjectsLocationsQueuesListResource =
"v2beta3" :>
Capture "parent" Text :>
"queues" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "filter" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListQueuesResponse
data ProjectsLocationsQueuesList = ProjectsLocationsQueuesList'
{ _plqlParent :: !Text
, _plqlXgafv :: !(Maybe Xgafv)
, _plqlUploadProtocol :: !(Maybe Text)
, _plqlAccessToken :: !(Maybe Text)
, _plqlUploadType :: !(Maybe Text)
, _plqlFilter :: !(Maybe Text)
, _plqlPageToken :: !(Maybe Text)
, _plqlPageSize :: !(Maybe (Textual Int32))
, _plqlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsQueuesList
:: Text
-> ProjectsLocationsQueuesList
projectsLocationsQueuesList pPlqlParent_ =
ProjectsLocationsQueuesList'
{ _plqlParent = pPlqlParent_
, _plqlXgafv = Nothing
, _plqlUploadProtocol = Nothing
, _plqlAccessToken = Nothing
, _plqlUploadType = Nothing
, _plqlFilter = Nothing
, _plqlPageToken = Nothing
, _plqlPageSize = Nothing
, _plqlCallback = Nothing
}
plqlParent :: Lens' ProjectsLocationsQueuesList Text
plqlParent
= lens _plqlParent (\ s a -> s{_plqlParent = a})
plqlXgafv :: Lens' ProjectsLocationsQueuesList (Maybe Xgafv)
plqlXgafv
= lens _plqlXgafv (\ s a -> s{_plqlXgafv = a})
plqlUploadProtocol :: Lens' ProjectsLocationsQueuesList (Maybe Text)
plqlUploadProtocol
= lens _plqlUploadProtocol
(\ s a -> s{_plqlUploadProtocol = a})
plqlAccessToken :: Lens' ProjectsLocationsQueuesList (Maybe Text)
plqlAccessToken
= lens _plqlAccessToken
(\ s a -> s{_plqlAccessToken = a})
plqlUploadType :: Lens' ProjectsLocationsQueuesList (Maybe Text)
plqlUploadType
= lens _plqlUploadType
(\ s a -> s{_plqlUploadType = a})
plqlFilter :: Lens' ProjectsLocationsQueuesList (Maybe Text)
plqlFilter
= lens _plqlFilter (\ s a -> s{_plqlFilter = a})
plqlPageToken :: Lens' ProjectsLocationsQueuesList (Maybe Text)
plqlPageToken
= lens _plqlPageToken
(\ s a -> s{_plqlPageToken = a})
plqlPageSize :: Lens' ProjectsLocationsQueuesList (Maybe Int32)
plqlPageSize
= lens _plqlPageSize (\ s a -> s{_plqlPageSize = a})
. mapping _Coerce
plqlCallback :: Lens' ProjectsLocationsQueuesList (Maybe Text)
plqlCallback
= lens _plqlCallback (\ s a -> s{_plqlCallback = a})
instance GoogleRequest ProjectsLocationsQueuesList
where
type Rs ProjectsLocationsQueuesList =
ListQueuesResponse
type Scopes ProjectsLocationsQueuesList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsLocationsQueuesList'{..}
= go _plqlParent _plqlXgafv _plqlUploadProtocol
_plqlAccessToken
_plqlUploadType
_plqlFilter
_plqlPageToken
_plqlPageSize
_plqlCallback
(Just AltJSON)
cloudTasksService
where go
= buildClient
(Proxy :: Proxy ProjectsLocationsQueuesListResource)
mempty