{-# 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.Get
(
ProjectsLocationsQueuesTasksGetResource
, projectsLocationsQueuesTasksGet
, ProjectsLocationsQueuesTasksGet
, plqtgXgafv
, plqtgUploadProtocol
, plqtgAccessToken
, plqtgUploadType
, plqtgResponseView
, plqtgName
, plqtgCallback
) where
import Network.Google.CloudTasks.Types
import Network.Google.Prelude
type ProjectsLocationsQueuesTasksGetResource =
"v2beta3" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "responseView" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Task
data ProjectsLocationsQueuesTasksGet = ProjectsLocationsQueuesTasksGet'
{ _plqtgXgafv :: !(Maybe Xgafv)
, _plqtgUploadProtocol :: !(Maybe Text)
, _plqtgAccessToken :: !(Maybe Text)
, _plqtgUploadType :: !(Maybe Text)
, _plqtgResponseView :: !(Maybe Text)
, _plqtgName :: !Text
, _plqtgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsQueuesTasksGet
:: Text
-> ProjectsLocationsQueuesTasksGet
projectsLocationsQueuesTasksGet pPlqtgName_ =
ProjectsLocationsQueuesTasksGet'
{ _plqtgXgafv = Nothing
, _plqtgUploadProtocol = Nothing
, _plqtgAccessToken = Nothing
, _plqtgUploadType = Nothing
, _plqtgResponseView = Nothing
, _plqtgName = pPlqtgName_
, _plqtgCallback = Nothing
}
plqtgXgafv :: Lens' ProjectsLocationsQueuesTasksGet (Maybe Xgafv)
plqtgXgafv
= lens _plqtgXgafv (\ s a -> s{_plqtgXgafv = a})
plqtgUploadProtocol :: Lens' ProjectsLocationsQueuesTasksGet (Maybe Text)
plqtgUploadProtocol
= lens _plqtgUploadProtocol
(\ s a -> s{_plqtgUploadProtocol = a})
plqtgAccessToken :: Lens' ProjectsLocationsQueuesTasksGet (Maybe Text)
plqtgAccessToken
= lens _plqtgAccessToken
(\ s a -> s{_plqtgAccessToken = a})
plqtgUploadType :: Lens' ProjectsLocationsQueuesTasksGet (Maybe Text)
plqtgUploadType
= lens _plqtgUploadType
(\ s a -> s{_plqtgUploadType = a})
plqtgResponseView :: Lens' ProjectsLocationsQueuesTasksGet (Maybe Text)
plqtgResponseView
= lens _plqtgResponseView
(\ s a -> s{_plqtgResponseView = a})
plqtgName :: Lens' ProjectsLocationsQueuesTasksGet Text
plqtgName
= lens _plqtgName (\ s a -> s{_plqtgName = a})
plqtgCallback :: Lens' ProjectsLocationsQueuesTasksGet (Maybe Text)
plqtgCallback
= lens _plqtgCallback
(\ s a -> s{_plqtgCallback = a})
instance GoogleRequest
ProjectsLocationsQueuesTasksGet where
type Rs ProjectsLocationsQueuesTasksGet = Task
type Scopes ProjectsLocationsQueuesTasksGet =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsLocationsQueuesTasksGet'{..}
= go _plqtgName _plqtgXgafv _plqtgUploadProtocol
_plqtgAccessToken
_plqtgUploadType
_plqtgResponseView
_plqtgCallback
(Just AltJSON)
cloudTasksService
where go
= buildClient
(Proxy ::
Proxy ProjectsLocationsQueuesTasksGetResource)
mempty