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