{-# 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.InstallAttribution
(
InstallAttributionResource
, installAttribution
, InstallAttribution
, iaXgafv
, iaUploadProtocol
, iaAccessToken
, iaUploadType
, iaPayload
, iaCallback
) where
import Network.Google.FirebaseDynamicLinks.Types
import Network.Google.Prelude
type InstallAttributionResource =
"v1" :>
"installAttribution" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] GetIosPostInstallAttributionRequest
:> Post '[JSON] GetIosPostInstallAttributionResponse
data InstallAttribution = InstallAttribution'
{ _iaXgafv :: !(Maybe Xgafv)
, _iaUploadProtocol :: !(Maybe Text)
, _iaAccessToken :: !(Maybe Text)
, _iaUploadType :: !(Maybe Text)
, _iaPayload :: !GetIosPostInstallAttributionRequest
, _iaCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
installAttribution
:: GetIosPostInstallAttributionRequest
-> InstallAttribution
installAttribution pIaPayload_ =
InstallAttribution'
{ _iaXgafv = Nothing
, _iaUploadProtocol = Nothing
, _iaAccessToken = Nothing
, _iaUploadType = Nothing
, _iaPayload = pIaPayload_
, _iaCallback = Nothing
}
iaXgafv :: Lens' InstallAttribution (Maybe Xgafv)
iaXgafv = lens _iaXgafv (\ s a -> s{_iaXgafv = a})
iaUploadProtocol :: Lens' InstallAttribution (Maybe Text)
iaUploadProtocol
= lens _iaUploadProtocol
(\ s a -> s{_iaUploadProtocol = a})
iaAccessToken :: Lens' InstallAttribution (Maybe Text)
iaAccessToken
= lens _iaAccessToken
(\ s a -> s{_iaAccessToken = a})
iaUploadType :: Lens' InstallAttribution (Maybe Text)
iaUploadType
= lens _iaUploadType (\ s a -> s{_iaUploadType = a})
iaPayload :: Lens' InstallAttribution GetIosPostInstallAttributionRequest
iaPayload
= lens _iaPayload (\ s a -> s{_iaPayload = a})
iaCallback :: Lens' InstallAttribution (Maybe Text)
iaCallback
= lens _iaCallback (\ s a -> s{_iaCallback = a})
instance GoogleRequest InstallAttribution where
type Rs InstallAttribution =
GetIosPostInstallAttributionResponse
type Scopes InstallAttribution =
'["https://www.googleapis.com/auth/firebase"]
requestClient InstallAttribution'{..}
= go _iaXgafv _iaUploadProtocol _iaAccessToken
_iaUploadType
_iaCallback
(Just AltJSON)
_iaPayload
firebaseDynamicLinksService
where go
= buildClient
(Proxy :: Proxy InstallAttributionResource)
mempty