{-# 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.Metros.List
(
MetrosListResource
, metrosList
, MetrosList
, mlProFileId
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type MetrosListResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"metros" :>
QueryParam "alt" AltJSON :>
Get '[JSON] MetrosListResponse
newtype MetrosList = MetrosList'
{ _mlProFileId :: Textual Int64
} deriving (Eq,Show,Data,Typeable,Generic)
metrosList
:: Int64
-> MetrosList
metrosList pMlProFileId_ =
MetrosList'
{ _mlProFileId = _Coerce # pMlProFileId_
}
mlProFileId :: Lens' MetrosList Int64
mlProFileId
= lens _mlProFileId (\ s a -> s{_mlProFileId = a}) .
_Coerce
instance GoogleRequest MetrosList where
type Rs MetrosList = MetrosListResponse
type Scopes MetrosList =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient MetrosList'{..}
= go _mlProFileId (Just AltJSON) dFAReportingService
where go
= buildClient (Proxy :: Proxy MetrosListResource)
mempty