{-# 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.YouTubeReporting.Jobs.List
(
JobsListResource
, jobsList
, JobsList
, jlXgafv
, jlUploadProtocol
, jlAccessToken
, jlUploadType
, jlIncludeSystemManaged
, jlOnBehalfOfContentOwner
, jlPageToken
, jlPageSize
, jlCallback
) where
import Network.Google.Prelude
import Network.Google.YouTubeReporting.Types
type JobsListResource =
"v1" :>
"jobs" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "includeSystemManaged" Bool :>
QueryParam "onBehalfOfContentOwner" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListJobsResponse
data JobsList = JobsList'
{ _jlXgafv :: !(Maybe Xgafv)
, _jlUploadProtocol :: !(Maybe Text)
, _jlAccessToken :: !(Maybe Text)
, _jlUploadType :: !(Maybe Text)
, _jlIncludeSystemManaged :: !(Maybe Bool)
, _jlOnBehalfOfContentOwner :: !(Maybe Text)
, _jlPageToken :: !(Maybe Text)
, _jlPageSize :: !(Maybe (Textual Int32))
, _jlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
jobsList
:: JobsList
jobsList =
JobsList'
{ _jlXgafv = Nothing
, _jlUploadProtocol = Nothing
, _jlAccessToken = Nothing
, _jlUploadType = Nothing
, _jlIncludeSystemManaged = Nothing
, _jlOnBehalfOfContentOwner = Nothing
, _jlPageToken = Nothing
, _jlPageSize = Nothing
, _jlCallback = Nothing
}
jlXgafv :: Lens' JobsList (Maybe Xgafv)
jlXgafv = lens _jlXgafv (\ s a -> s{_jlXgafv = a})
jlUploadProtocol :: Lens' JobsList (Maybe Text)
jlUploadProtocol
= lens _jlUploadProtocol
(\ s a -> s{_jlUploadProtocol = a})
jlAccessToken :: Lens' JobsList (Maybe Text)
jlAccessToken
= lens _jlAccessToken
(\ s a -> s{_jlAccessToken = a})
jlUploadType :: Lens' JobsList (Maybe Text)
jlUploadType
= lens _jlUploadType (\ s a -> s{_jlUploadType = a})
jlIncludeSystemManaged :: Lens' JobsList (Maybe Bool)
jlIncludeSystemManaged
= lens _jlIncludeSystemManaged
(\ s a -> s{_jlIncludeSystemManaged = a})
jlOnBehalfOfContentOwner :: Lens' JobsList (Maybe Text)
jlOnBehalfOfContentOwner
= lens _jlOnBehalfOfContentOwner
(\ s a -> s{_jlOnBehalfOfContentOwner = a})
jlPageToken :: Lens' JobsList (Maybe Text)
jlPageToken
= lens _jlPageToken (\ s a -> s{_jlPageToken = a})
jlPageSize :: Lens' JobsList (Maybe Int32)
jlPageSize
= lens _jlPageSize (\ s a -> s{_jlPageSize = a}) .
mapping _Coerce
jlCallback :: Lens' JobsList (Maybe Text)
jlCallback
= lens _jlCallback (\ s a -> s{_jlCallback = a})
instance GoogleRequest JobsList where
type Rs JobsList = ListJobsResponse
type Scopes JobsList =
'["https://www.googleapis.com/auth/yt-analytics-monetary.readonly",
"https://www.googleapis.com/auth/yt-analytics.readonly"]
requestClient JobsList'{..}
= go _jlXgafv _jlUploadProtocol _jlAccessToken
_jlUploadType
_jlIncludeSystemManaged
_jlOnBehalfOfContentOwner
_jlPageToken
_jlPageSize
_jlCallback
(Just AltJSON)
youTubeReportingService
where go
= buildClient (Proxy :: Proxy JobsListResource)
mempty