{-# 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.FirebaseDynamicLinks.ReopenAttribution
(
ReopenAttributionResource
, reopenAttribution
, ReopenAttribution
, raXgafv
, raUploadProtocol
, raAccessToken
, raUploadType
, raPayload
, raCallback
) where
import Network.Google.FirebaseDynamicLinks.Types
import Network.Google.Prelude
type ReopenAttributionResource =
"v1" :>
"reopenAttribution" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] GetIosReopenAttributionRequest :>
Post '[JSON] GetIosReopenAttributionResponse
data ReopenAttribution = ReopenAttribution'
{ _raXgafv :: !(Maybe Xgafv)
, _raUploadProtocol :: !(Maybe Text)
, _raAccessToken :: !(Maybe Text)
, _raUploadType :: !(Maybe Text)
, _raPayload :: !GetIosReopenAttributionRequest
, _raCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
reopenAttribution
:: GetIosReopenAttributionRequest
-> ReopenAttribution
reopenAttribution pRaPayload_ =
ReopenAttribution'
{ _raXgafv = Nothing
, _raUploadProtocol = Nothing
, _raAccessToken = Nothing
, _raUploadType = Nothing
, _raPayload = pRaPayload_
, _raCallback = Nothing
}
raXgafv :: Lens' ReopenAttribution (Maybe Xgafv)
raXgafv = lens _raXgafv (\ s a -> s{_raXgafv = a})
raUploadProtocol :: Lens' ReopenAttribution (Maybe Text)
raUploadProtocol
= lens _raUploadProtocol
(\ s a -> s{_raUploadProtocol = a})
raAccessToken :: Lens' ReopenAttribution (Maybe Text)
raAccessToken
= lens _raAccessToken
(\ s a -> s{_raAccessToken = a})
raUploadType :: Lens' ReopenAttribution (Maybe Text)
raUploadType
= lens _raUploadType (\ s a -> s{_raUploadType = a})
raPayload :: Lens' ReopenAttribution GetIosReopenAttributionRequest
raPayload
= lens _raPayload (\ s a -> s{_raPayload = a})
raCallback :: Lens' ReopenAttribution (Maybe Text)
raCallback
= lens _raCallback (\ s a -> s{_raCallback = a})
instance GoogleRequest ReopenAttribution where
type Rs ReopenAttribution =
GetIosReopenAttributionResponse
type Scopes ReopenAttribution =
'["https://www.googleapis.com/auth/firebase"]
requestClient ReopenAttribution'{..}
= go _raXgafv _raUploadProtocol _raAccessToken
_raUploadType
_raCallback
(Just AltJSON)
_raPayload
firebaseDynamicLinksService
where go
= buildClient
(Proxy :: Proxy ReopenAttributionResource)
mempty