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