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