{-# 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.AcceleratedMobilePageURL.AmpURLs.BatchGet
(
AmpURLsBatchGetResource
, ampURLsBatchGet
, AmpURLsBatchGet
, aubgXgafv
, aubgUploadProtocol
, aubgAccessToken
, aubgUploadType
, aubgPayload
, aubgCallback
) where
import Network.Google.AcceleratedMobilePageURL.Types
import Network.Google.Prelude
type AmpURLsBatchGetResource =
"v1" :>
"ampUrls:batchGet" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] BatchGetAmpURLsRequest :>
Post '[JSON] BatchGetAmpURLsResponse
data AmpURLsBatchGet = AmpURLsBatchGet'
{ _aubgXgafv :: !(Maybe Xgafv)
, _aubgUploadProtocol :: !(Maybe Text)
, _aubgAccessToken :: !(Maybe Text)
, _aubgUploadType :: !(Maybe Text)
, _aubgPayload :: !BatchGetAmpURLsRequest
, _aubgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
ampURLsBatchGet
:: BatchGetAmpURLsRequest
-> AmpURLsBatchGet
ampURLsBatchGet pAubgPayload_ =
AmpURLsBatchGet'
{ _aubgXgafv = Nothing
, _aubgUploadProtocol = Nothing
, _aubgAccessToken = Nothing
, _aubgUploadType = Nothing
, _aubgPayload = pAubgPayload_
, _aubgCallback = Nothing
}
aubgXgafv :: Lens' AmpURLsBatchGet (Maybe Xgafv)
aubgXgafv
= lens _aubgXgafv (\ s a -> s{_aubgXgafv = a})
aubgUploadProtocol :: Lens' AmpURLsBatchGet (Maybe Text)
aubgUploadProtocol
= lens _aubgUploadProtocol
(\ s a -> s{_aubgUploadProtocol = a})
aubgAccessToken :: Lens' AmpURLsBatchGet (Maybe Text)
aubgAccessToken
= lens _aubgAccessToken
(\ s a -> s{_aubgAccessToken = a})
aubgUploadType :: Lens' AmpURLsBatchGet (Maybe Text)
aubgUploadType
= lens _aubgUploadType
(\ s a -> s{_aubgUploadType = a})
aubgPayload :: Lens' AmpURLsBatchGet BatchGetAmpURLsRequest
aubgPayload
= lens _aubgPayload (\ s a -> s{_aubgPayload = a})
aubgCallback :: Lens' AmpURLsBatchGet (Maybe Text)
aubgCallback
= lens _aubgCallback (\ s a -> s{_aubgCallback = a})
instance GoogleRequest AmpURLsBatchGet where
type Rs AmpURLsBatchGet = BatchGetAmpURLsResponse
type Scopes AmpURLsBatchGet = '[]
requestClient AmpURLsBatchGet'{..}
= go _aubgXgafv _aubgUploadProtocol _aubgAccessToken
_aubgUploadType
_aubgCallback
(Just AltJSON)
_aubgPayload
acceleratedMobilePageUrlService
where go
= buildClient
(Proxy :: Proxy AmpURLsBatchGetResource)
mempty