{-# 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.List
(
DatafeedstatusesListResource
, datafeedstatusesList
, DatafeedstatusesList
, dlMerchantId
, dlPageToken
, dlMaxResults
) where
import Network.Google.Prelude
import Network.Google.ShoppingContent.Types
type DatafeedstatusesListResource =
"content" :>
"v2.1" :>
Capture "merchantId" (Textual Word64) :>
"datafeedstatuses" :>
QueryParam "pageToken" Text :>
QueryParam "maxResults" (Textual Word32) :>
QueryParam "alt" AltJSON :>
Get '[JSON] DatafeedstatusesListResponse
data DatafeedstatusesList = DatafeedstatusesList'
{ _dlMerchantId :: !(Textual Word64)
, _dlPageToken :: !(Maybe Text)
, _dlMaxResults :: !(Maybe (Textual Word32))
} deriving (Eq,Show,Data,Typeable,Generic)
datafeedstatusesList
:: Word64
-> DatafeedstatusesList
datafeedstatusesList pDlMerchantId_ =
DatafeedstatusesList'
{ _dlMerchantId = _Coerce # pDlMerchantId_
, _dlPageToken = Nothing
, _dlMaxResults = Nothing
}
dlMerchantId :: Lens' DatafeedstatusesList Word64
dlMerchantId
= lens _dlMerchantId (\ s a -> s{_dlMerchantId = a})
. _Coerce
dlPageToken :: Lens' DatafeedstatusesList (Maybe Text)
dlPageToken
= lens _dlPageToken (\ s a -> s{_dlPageToken = a})
dlMaxResults :: Lens' DatafeedstatusesList (Maybe Word32)
dlMaxResults
= lens _dlMaxResults (\ s a -> s{_dlMaxResults = a})
. mapping _Coerce
instance GoogleRequest DatafeedstatusesList where
type Rs DatafeedstatusesList =
DatafeedstatusesListResponse
type Scopes DatafeedstatusesList =
'["https://www.googleapis.com/auth/content"]
requestClient DatafeedstatusesList'{..}
= go _dlMerchantId _dlPageToken _dlMaxResults
(Just AltJSON)
shoppingContentService
where go
= buildClient
(Proxy :: Proxy DatafeedstatusesListResource)
mempty