{-# 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.Get
(
OperatingSystemsGetResource
, operatingSystemsGet
, OperatingSystemsGet
, osgProFileId
, osgDartId
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type OperatingSystemsGetResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"operatingSystems" :>
Capture "dartId" (Textual Int64) :>
QueryParam "alt" AltJSON :>
Get '[JSON] OperatingSystem
data OperatingSystemsGet = OperatingSystemsGet'
{ _osgProFileId :: !(Textual Int64)
, _osgDartId :: !(Textual Int64)
} deriving (Eq,Show,Data,Typeable,Generic)
operatingSystemsGet
:: Int64
-> Int64
-> OperatingSystemsGet
operatingSystemsGet pOsgProFileId_ pOsgDartId_ =
OperatingSystemsGet'
{ _osgProFileId = _Coerce # pOsgProFileId_
, _osgDartId = _Coerce # pOsgDartId_
}
osgProFileId :: Lens' OperatingSystemsGet Int64
osgProFileId
= lens _osgProFileId (\ s a -> s{_osgProFileId = a})
. _Coerce
osgDartId :: Lens' OperatingSystemsGet Int64
osgDartId
= lens _osgDartId (\ s a -> s{_osgDartId = a}) .
_Coerce
instance GoogleRequest OperatingSystemsGet where
type Rs OperatingSystemsGet = OperatingSystem
type Scopes OperatingSystemsGet =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient OperatingSystemsGet'{..}
= go _osgProFileId _osgDartId (Just AltJSON)
dFAReportingService
where go
= buildClient
(Proxy :: Proxy OperatingSystemsGetResource)
mempty