{-# 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.YouTube.VideoAbuseReportReasons.List
(
VideoAbuseReportReasonsListResource
, videoAbuseReportReasonsList
, VideoAbuseReportReasonsList
, varrlPart
, varrlHl
) where
import Network.Google.Prelude
import Network.Google.YouTube.Types
type VideoAbuseReportReasonsListResource =
"youtube" :>
"v3" :>
"videoAbuseReportReasons" :>
QueryParam "part" Text :>
QueryParam "hl" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] VideoAbuseReportReasonListResponse
data VideoAbuseReportReasonsList = VideoAbuseReportReasonsList'
{ _varrlPart :: !Text
, _varrlHl :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
videoAbuseReportReasonsList
:: Text
-> VideoAbuseReportReasonsList
videoAbuseReportReasonsList pVarrlPart_ =
VideoAbuseReportReasonsList'
{ _varrlPart = pVarrlPart_
, _varrlHl = "en_US"
}
varrlPart :: Lens' VideoAbuseReportReasonsList Text
varrlPart
= lens _varrlPart (\ s a -> s{_varrlPart = a})
varrlHl :: Lens' VideoAbuseReportReasonsList Text
varrlHl = lens _varrlHl (\ s a -> s{_varrlHl = a})
instance GoogleRequest VideoAbuseReportReasonsList
where
type Rs VideoAbuseReportReasonsList =
VideoAbuseReportReasonListResponse
type Scopes VideoAbuseReportReasonsList =
'["https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtube.force-ssl",
"https://www.googleapis.com/auth/youtube.readonly"]
requestClient VideoAbuseReportReasonsList'{..}
= go (Just _varrlPart) (Just _varrlHl) (Just AltJSON)
youTubeService
where go
= buildClient
(Proxy :: Proxy VideoAbuseReportReasonsListResource)
mempty