{-# 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.AdExchangeSeller.Accounts.Metadata.Metrics.List
(
AccountsMetadataMetricsListResource
, accountsMetadataMetricsList
, AccountsMetadataMetricsList
, ammlAccountId
) where
import Network.Google.AdExchangeSeller.Types
import Network.Google.Prelude
type AccountsMetadataMetricsListResource =
"adexchangeseller" :>
"v2.0" :>
"accounts" :>
Capture "accountId" Text :>
"metadata" :>
"metrics" :>
QueryParam "alt" AltJSON :> Get '[JSON] Metadata
newtype AccountsMetadataMetricsList = AccountsMetadataMetricsList'
{ _ammlAccountId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
accountsMetadataMetricsList
:: Text
-> AccountsMetadataMetricsList
accountsMetadataMetricsList pAmmlAccountId_ =
AccountsMetadataMetricsList'
{ _ammlAccountId = pAmmlAccountId_
}
ammlAccountId :: Lens' AccountsMetadataMetricsList Text
ammlAccountId
= lens _ammlAccountId
(\ s a -> s{_ammlAccountId = a})
instance GoogleRequest AccountsMetadataMetricsList
where
type Rs AccountsMetadataMetricsList = Metadata
type Scopes AccountsMetadataMetricsList =
'["https://www.googleapis.com/auth/adexchange.seller",
"https://www.googleapis.com/auth/adexchange.seller.readonly"]
requestClient AccountsMetadataMetricsList'{..}
= go _ammlAccountId (Just AltJSON)
adExchangeSellerService
where go
= buildClient
(Proxy :: Proxy AccountsMetadataMetricsListResource)
mempty