{-# 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.Resume
(
ProjectsLocationsQueuesResumeResource
, projectsLocationsQueuesResume
, ProjectsLocationsQueuesResume
, plqrXgafv
, plqrUploadProtocol
, plqrAccessToken
, plqrUploadType
, plqrPayload
, plqrName
, plqrCallback
) where
import Network.Google.CloudTasks.Types
import Network.Google.Prelude
type ProjectsLocationsQueuesResumeResource =
"v2beta3" :>
CaptureMode "name" "resume" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] ResumeQueueRequest :>
Post '[JSON] Queue
data ProjectsLocationsQueuesResume = ProjectsLocationsQueuesResume'
{ _plqrXgafv :: !(Maybe Xgafv)
, _plqrUploadProtocol :: !(Maybe Text)
, _plqrAccessToken :: !(Maybe Text)
, _plqrUploadType :: !(Maybe Text)
, _plqrPayload :: !ResumeQueueRequest
, _plqrName :: !Text
, _plqrCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsQueuesResume
:: ResumeQueueRequest
-> Text
-> ProjectsLocationsQueuesResume
projectsLocationsQueuesResume pPlqrPayload_ pPlqrName_ =
ProjectsLocationsQueuesResume'
{ _plqrXgafv = Nothing
, _plqrUploadProtocol = Nothing
, _plqrAccessToken = Nothing
, _plqrUploadType = Nothing
, _plqrPayload = pPlqrPayload_
, _plqrName = pPlqrName_
, _plqrCallback = Nothing
}
plqrXgafv :: Lens' ProjectsLocationsQueuesResume (Maybe Xgafv)
plqrXgafv
= lens _plqrXgafv (\ s a -> s{_plqrXgafv = a})
plqrUploadProtocol :: Lens' ProjectsLocationsQueuesResume (Maybe Text)
plqrUploadProtocol
= lens _plqrUploadProtocol
(\ s a -> s{_plqrUploadProtocol = a})
plqrAccessToken :: Lens' ProjectsLocationsQueuesResume (Maybe Text)
plqrAccessToken
= lens _plqrAccessToken
(\ s a -> s{_plqrAccessToken = a})
plqrUploadType :: Lens' ProjectsLocationsQueuesResume (Maybe Text)
plqrUploadType
= lens _plqrUploadType
(\ s a -> s{_plqrUploadType = a})
plqrPayload :: Lens' ProjectsLocationsQueuesResume ResumeQueueRequest
plqrPayload
= lens _plqrPayload (\ s a -> s{_plqrPayload = a})
plqrName :: Lens' ProjectsLocationsQueuesResume Text
plqrName = lens _plqrName (\ s a -> s{_plqrName = a})
plqrCallback :: Lens' ProjectsLocationsQueuesResume (Maybe Text)
plqrCallback
= lens _plqrCallback (\ s a -> s{_plqrCallback = a})
instance GoogleRequest ProjectsLocationsQueuesResume
where
type Rs ProjectsLocationsQueuesResume = Queue
type Scopes ProjectsLocationsQueuesResume =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsLocationsQueuesResume'{..}
= go _plqrName _plqrXgafv _plqrUploadProtocol
_plqrAccessToken
_plqrUploadType
_plqrCallback
(Just AltJSON)
_plqrPayload
cloudTasksService
where go
= buildClient
(Proxy ::
Proxy ProjectsLocationsQueuesResumeResource)
mempty