{-# 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.I18nLanguages.List
(
I18nLanguagesListResource
, i18nLanguagesList
, I18nLanguagesList
, illPart
, illHl
) where
import Network.Google.Prelude
import Network.Google.YouTube.Types
type I18nLanguagesListResource =
"youtube" :>
"v3" :>
"i18nLanguages" :>
QueryParam "part" Text :>
QueryParam "hl" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] I18nLanguageListResponse
data I18nLanguagesList = I18nLanguagesList'
{ _illPart :: !Text
, _illHl :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
i18nLanguagesList
:: Text
-> I18nLanguagesList
i18nLanguagesList pIllPart_ =
I18nLanguagesList'
{ _illPart = pIllPart_
, _illHl = "en_US"
}
illPart :: Lens' I18nLanguagesList Text
illPart = lens _illPart (\ s a -> s{_illPart = a})
illHl :: Lens' I18nLanguagesList Text
illHl = lens _illHl (\ s a -> s{_illHl = a})
instance GoogleRequest I18nLanguagesList where
type Rs I18nLanguagesList = I18nLanguageListResponse
type Scopes I18nLanguagesList =
'["https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtube.force-ssl",
"https://www.googleapis.com/auth/youtube.readonly",
"https://www.googleapis.com/auth/youtubepartner"]
requestClient I18nLanguagesList'{..}
= go (Just _illPart) (Just _illHl) (Just AltJSON)
youTubeService
where go
= buildClient
(Proxy :: Proxy I18nLanguagesListResource)
mempty