{-# 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.TextToSpeech.Voices.List
(
VoicesListResource
, voicesList
, VoicesList
, vlXgafv
, vlLanguageCode
, vlUploadProtocol
, vlAccessToken
, vlUploadType
, vlCallback
) where
import Network.Google.Prelude
import Network.Google.TextToSpeech.Types
type VoicesListResource =
"v1" :>
"voices" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "languageCode" Text :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListVoicesResponse
data VoicesList = VoicesList'
{ _vlXgafv :: !(Maybe Xgafv)
, _vlLanguageCode :: !(Maybe Text)
, _vlUploadProtocol :: !(Maybe Text)
, _vlAccessToken :: !(Maybe Text)
, _vlUploadType :: !(Maybe Text)
, _vlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
voicesList
:: VoicesList
voicesList =
VoicesList'
{ _vlXgafv = Nothing
, _vlLanguageCode = Nothing
, _vlUploadProtocol = Nothing
, _vlAccessToken = Nothing
, _vlUploadType = Nothing
, _vlCallback = Nothing
}
vlXgafv :: Lens' VoicesList (Maybe Xgafv)
vlXgafv = lens _vlXgafv (\ s a -> s{_vlXgafv = a})
vlLanguageCode :: Lens' VoicesList (Maybe Text)
vlLanguageCode
= lens _vlLanguageCode
(\ s a -> s{_vlLanguageCode = a})
vlUploadProtocol :: Lens' VoicesList (Maybe Text)
vlUploadProtocol
= lens _vlUploadProtocol
(\ s a -> s{_vlUploadProtocol = a})
vlAccessToken :: Lens' VoicesList (Maybe Text)
vlAccessToken
= lens _vlAccessToken
(\ s a -> s{_vlAccessToken = a})
vlUploadType :: Lens' VoicesList (Maybe Text)
vlUploadType
= lens _vlUploadType (\ s a -> s{_vlUploadType = a})
vlCallback :: Lens' VoicesList (Maybe Text)
vlCallback
= lens _vlCallback (\ s a -> s{_vlCallback = a})
instance GoogleRequest VoicesList where
type Rs VoicesList = ListVoicesResponse
type Scopes VoicesList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient VoicesList'{..}
= go _vlXgafv _vlLanguageCode _vlUploadProtocol
_vlAccessToken
_vlUploadType
_vlCallback
(Just AltJSON)
textToSpeechService
where go
= buildClient (Proxy :: Proxy VoicesListResource)
mempty