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