{-# 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.OperatingSystemVersions.Get
(
OperatingSystemVersionsGetResource
, operatingSystemVersionsGet
, OperatingSystemVersionsGet
, osvgProFileId
, osvgId
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type OperatingSystemVersionsGetResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"operatingSystemVersions" :>
Capture "id" (Textual Int64) :>
QueryParam "alt" AltJSON :>
Get '[JSON] OperatingSystemVersion
data OperatingSystemVersionsGet = OperatingSystemVersionsGet'
{ _osvgProFileId :: !(Textual Int64)
, _osvgId :: !(Textual Int64)
} deriving (Eq,Show,Data,Typeable,Generic)
operatingSystemVersionsGet
:: Int64
-> Int64
-> OperatingSystemVersionsGet
operatingSystemVersionsGet pOsvgProFileId_ pOsvgId_ =
OperatingSystemVersionsGet'
{ _osvgProFileId = _Coerce # pOsvgProFileId_
, _osvgId = _Coerce # pOsvgId_
}
osvgProFileId :: Lens' OperatingSystemVersionsGet Int64
osvgProFileId
= lens _osvgProFileId
(\ s a -> s{_osvgProFileId = a})
. _Coerce
osvgId :: Lens' OperatingSystemVersionsGet Int64
osvgId
= lens _osvgId (\ s a -> s{_osvgId = a}) . _Coerce
instance GoogleRequest OperatingSystemVersionsGet
where
type Rs OperatingSystemVersionsGet =
OperatingSystemVersion
type Scopes OperatingSystemVersionsGet =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient OperatingSystemVersionsGet'{..}
= go _osvgProFileId _osvgId (Just AltJSON)
dFAReportingService
where go
= buildClient
(Proxy :: Proxy OperatingSystemVersionsGetResource)
mempty