{-# 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.AdExchangeBuyer.BillingInfo.Get
(
BillingInfoGetResource
, billingInfoGet
, BillingInfoGet
, bigAccountId
) where
import Network.Google.AdExchangeBuyer.Types
import Network.Google.Prelude
type BillingInfoGetResource =
"adexchangebuyer" :>
"v1.4" :>
"billinginfo" :>
Capture "accountId" (Textual Int32) :>
QueryParam "alt" AltJSON :> Get '[JSON] BillingInfo
newtype BillingInfoGet = BillingInfoGet'
{ _bigAccountId :: Textual Int32
} deriving (Eq,Show,Data,Typeable,Generic)
billingInfoGet
:: Int32
-> BillingInfoGet
billingInfoGet pBigAccountId_ =
BillingInfoGet'
{ _bigAccountId = _Coerce # pBigAccountId_
}
bigAccountId :: Lens' BillingInfoGet Int32
bigAccountId
= lens _bigAccountId (\ s a -> s{_bigAccountId = a})
. _Coerce
instance GoogleRequest BillingInfoGet where
type Rs BillingInfoGet = BillingInfo
type Scopes BillingInfoGet =
'["https://www.googleapis.com/auth/adexchange.buyer"]
requestClient BillingInfoGet'{..}
= go _bigAccountId (Just AltJSON)
adExchangeBuyerService
where go
= buildClient (Proxy :: Proxy BillingInfoGetResource)
mempty