{-# 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.PubSub.Projects.Subscriptions.ModifyAckDeadline
(
ProjectsSubscriptionsModifyAckDeadlineResource
, projectsSubscriptionsModifyAckDeadline
, ProjectsSubscriptionsModifyAckDeadline
, psmadXgafv
, psmadUploadProtocol
, psmadAccessToken
, psmadUploadType
, psmadPayload
, psmadSubscription
, psmadCallback
) where
import Network.Google.Prelude
import Network.Google.PubSub.Types
type ProjectsSubscriptionsModifyAckDeadlineResource =
"v1" :>
CaptureMode "subscription" "modifyAckDeadline" Text
:>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] ModifyAckDeadlineRequest :>
Post '[JSON] Empty
data ProjectsSubscriptionsModifyAckDeadline = ProjectsSubscriptionsModifyAckDeadline'
{ _psmadXgafv :: !(Maybe Xgafv)
, _psmadUploadProtocol :: !(Maybe Text)
, _psmadAccessToken :: !(Maybe Text)
, _psmadUploadType :: !(Maybe Text)
, _psmadPayload :: !ModifyAckDeadlineRequest
, _psmadSubscription :: !Text
, _psmadCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsSubscriptionsModifyAckDeadline
:: ModifyAckDeadlineRequest
-> Text
-> ProjectsSubscriptionsModifyAckDeadline
projectsSubscriptionsModifyAckDeadline pPsmadPayload_ pPsmadSubscription_ =
ProjectsSubscriptionsModifyAckDeadline'
{ _psmadXgafv = Nothing
, _psmadUploadProtocol = Nothing
, _psmadAccessToken = Nothing
, _psmadUploadType = Nothing
, _psmadPayload = pPsmadPayload_
, _psmadSubscription = pPsmadSubscription_
, _psmadCallback = Nothing
}
psmadXgafv :: Lens' ProjectsSubscriptionsModifyAckDeadline (Maybe Xgafv)
psmadXgafv
= lens _psmadXgafv (\ s a -> s{_psmadXgafv = a})
psmadUploadProtocol :: Lens' ProjectsSubscriptionsModifyAckDeadline (Maybe Text)
psmadUploadProtocol
= lens _psmadUploadProtocol
(\ s a -> s{_psmadUploadProtocol = a})
psmadAccessToken :: Lens' ProjectsSubscriptionsModifyAckDeadline (Maybe Text)
psmadAccessToken
= lens _psmadAccessToken
(\ s a -> s{_psmadAccessToken = a})
psmadUploadType :: Lens' ProjectsSubscriptionsModifyAckDeadline (Maybe Text)
psmadUploadType
= lens _psmadUploadType
(\ s a -> s{_psmadUploadType = a})
psmadPayload :: Lens' ProjectsSubscriptionsModifyAckDeadline ModifyAckDeadlineRequest
psmadPayload
= lens _psmadPayload (\ s a -> s{_psmadPayload = a})
psmadSubscription :: Lens' ProjectsSubscriptionsModifyAckDeadline Text
psmadSubscription
= lens _psmadSubscription
(\ s a -> s{_psmadSubscription = a})
psmadCallback :: Lens' ProjectsSubscriptionsModifyAckDeadline (Maybe Text)
psmadCallback
= lens _psmadCallback
(\ s a -> s{_psmadCallback = a})
instance GoogleRequest
ProjectsSubscriptionsModifyAckDeadline where
type Rs ProjectsSubscriptionsModifyAckDeadline =
Empty
type Scopes ProjectsSubscriptionsModifyAckDeadline =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/pubsub"]
requestClient
ProjectsSubscriptionsModifyAckDeadline'{..}
= go _psmadSubscription _psmadXgafv
_psmadUploadProtocol
_psmadAccessToken
_psmadUploadType
_psmadCallback
(Just AltJSON)
_psmadPayload
pubSubService
where go
= buildClient
(Proxy ::
Proxy ProjectsSubscriptionsModifyAckDeadlineResource)
mempty