{-# 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.Get
(
ProjectsLocationsQueuesGetResource
, projectsLocationsQueuesGet
, ProjectsLocationsQueuesGet
, plqgXgafv
, plqgUploadProtocol
, plqgAccessToken
, plqgUploadType
, plqgName
, plqgCallback
) where
import Network.Google.CloudTasks.Types
import Network.Google.Prelude
type ProjectsLocationsQueuesGetResource =
"v2beta3" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Queue
data ProjectsLocationsQueuesGet = ProjectsLocationsQueuesGet'
{ _plqgXgafv :: !(Maybe Xgafv)
, _plqgUploadProtocol :: !(Maybe Text)
, _plqgAccessToken :: !(Maybe Text)
, _plqgUploadType :: !(Maybe Text)
, _plqgName :: !Text
, _plqgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsQueuesGet
:: Text
-> ProjectsLocationsQueuesGet
projectsLocationsQueuesGet pPlqgName_ =
ProjectsLocationsQueuesGet'
{ _plqgXgafv = Nothing
, _plqgUploadProtocol = Nothing
, _plqgAccessToken = Nothing
, _plqgUploadType = Nothing
, _plqgName = pPlqgName_
, _plqgCallback = Nothing
}
plqgXgafv :: Lens' ProjectsLocationsQueuesGet (Maybe Xgafv)
plqgXgafv
= lens _plqgXgafv (\ s a -> s{_plqgXgafv = a})
plqgUploadProtocol :: Lens' ProjectsLocationsQueuesGet (Maybe Text)
plqgUploadProtocol
= lens _plqgUploadProtocol
(\ s a -> s{_plqgUploadProtocol = a})
plqgAccessToken :: Lens' ProjectsLocationsQueuesGet (Maybe Text)
plqgAccessToken
= lens _plqgAccessToken
(\ s a -> s{_plqgAccessToken = a})
plqgUploadType :: Lens' ProjectsLocationsQueuesGet (Maybe Text)
plqgUploadType
= lens _plqgUploadType
(\ s a -> s{_plqgUploadType = a})
plqgName :: Lens' ProjectsLocationsQueuesGet Text
plqgName = lens _plqgName (\ s a -> s{_plqgName = a})
plqgCallback :: Lens' ProjectsLocationsQueuesGet (Maybe Text)
plqgCallback
= lens _plqgCallback (\ s a -> s{_plqgCallback = a})
instance GoogleRequest ProjectsLocationsQueuesGet
where
type Rs ProjectsLocationsQueuesGet = Queue
type Scopes ProjectsLocationsQueuesGet =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsLocationsQueuesGet'{..}
= go _plqgName _plqgXgafv _plqgUploadProtocol
_plqgAccessToken
_plqgUploadType
_plqgCallback
(Just AltJSON)
cloudTasksService
where go
= buildClient
(Proxy :: Proxy ProjectsLocationsQueuesGetResource)
mempty