{-# 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.DFAReporting.Sizes.Get
(
SizesGetResource
, sizesGet
, SizesGet
, sgProFileId
, sgId
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type SizesGetResource =
"dfareporting" :>
"v3.3" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"sizes" :>
Capture "id" (Textual Int64) :>
QueryParam "alt" AltJSON :> Get '[JSON] Size
data SizesGet =
SizesGet'
{ _sgProFileId :: !(Textual Int64)
, _sgId :: !(Textual Int64)
}
deriving (Eq, Show, Data, Typeable, Generic)
sizesGet
:: Int64
-> Int64
-> SizesGet
sizesGet pSgProFileId_ pSgId_ =
SizesGet' {_sgProFileId = _Coerce # pSgProFileId_, _sgId = _Coerce # pSgId_}
sgProFileId :: Lens' SizesGet Int64
sgProFileId
= lens _sgProFileId (\ s a -> s{_sgProFileId = a}) .
_Coerce
sgId :: Lens' SizesGet Int64
sgId = lens _sgId (\ s a -> s{_sgId = a}) . _Coerce
instance GoogleRequest SizesGet where
type Rs SizesGet = Size
type Scopes SizesGet =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient SizesGet'{..}
= go _sgProFileId _sgId (Just AltJSON)
dFAReportingService
where go
= buildClient (Proxy :: Proxy SizesGetResource)
mempty