{-# 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.Content.Datafeedstatuses.Get
(
DatafeedstatusesGetResource
, datafeedstatusesGet
, DatafeedstatusesGet
, dggMerchantId
, dggCountry
, dggDatafeedId
, dggLanguage
) where
import Network.Google.Prelude
import Network.Google.ShoppingContent.Types
type DatafeedstatusesGetResource =
"content" :>
"v2.1" :>
Capture "merchantId" (Textual Word64) :>
"datafeedstatuses" :>
Capture "datafeedId" (Textual Word64) :>
QueryParam "country" Text :>
QueryParam "language" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] DatafeedStatus
data DatafeedstatusesGet = DatafeedstatusesGet'
{ _dggMerchantId :: !(Textual Word64)
, _dggCountry :: !(Maybe Text)
, _dggDatafeedId :: !(Textual Word64)
, _dggLanguage :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
datafeedstatusesGet
:: Word64
-> Word64
-> DatafeedstatusesGet
datafeedstatusesGet pDggMerchantId_ pDggDatafeedId_ =
DatafeedstatusesGet'
{ _dggMerchantId = _Coerce # pDggMerchantId_
, _dggCountry = Nothing
, _dggDatafeedId = _Coerce # pDggDatafeedId_
, _dggLanguage = Nothing
}
dggMerchantId :: Lens' DatafeedstatusesGet Word64
dggMerchantId
= lens _dggMerchantId
(\ s a -> s{_dggMerchantId = a})
. _Coerce
dggCountry :: Lens' DatafeedstatusesGet (Maybe Text)
dggCountry
= lens _dggCountry (\ s a -> s{_dggCountry = a})
dggDatafeedId :: Lens' DatafeedstatusesGet Word64
dggDatafeedId
= lens _dggDatafeedId
(\ s a -> s{_dggDatafeedId = a})
. _Coerce
dggLanguage :: Lens' DatafeedstatusesGet (Maybe Text)
dggLanguage
= lens _dggLanguage (\ s a -> s{_dggLanguage = a})
instance GoogleRequest DatafeedstatusesGet where
type Rs DatafeedstatusesGet = DatafeedStatus
type Scopes DatafeedstatusesGet =
'["https://www.googleapis.com/auth/content"]
requestClient DatafeedstatusesGet'{..}
= go _dggMerchantId _dggDatafeedId _dggCountry
_dggLanguage
(Just AltJSON)
shoppingContentService
where go
= buildClient
(Proxy :: Proxy DatafeedstatusesGetResource)
mempty