gogol-translate-0.4.0: Google Cloud Translation SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Language.Languages.List

Contents

Description

Returns a list of supported languages for translation.

See: Google Cloud Translation API Reference for language.languages.list.

Synopsis

REST Resource

type LanguagesListResource = "language" :> ("translate" :> ("v2" :> ("languages" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "model" Text :> (QueryParam "target" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] LanguagesListResponse))))))))))))) Source #

A resource alias for language.languages.list method which the LanguagesList request conforms to.

Creating a Request

languagesList :: LanguagesList Source #

Creates a value of LanguagesList with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data LanguagesList Source #

Returns a list of supported languages for translation.

See: languagesList smart constructor.

Instances
Eq LanguagesList Source # 
Instance details

Defined in Network.Google.Resource.Language.Languages.List

Data LanguagesList Source # 
Instance details

Defined in Network.Google.Resource.Language.Languages.List

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> LanguagesList -> c LanguagesList #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c LanguagesList #

toConstr :: LanguagesList -> Constr #

dataTypeOf :: LanguagesList -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c LanguagesList) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c LanguagesList) #

gmapT :: (forall b. Data b => b -> b) -> LanguagesList -> LanguagesList #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> LanguagesList -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> LanguagesList -> r #

gmapQ :: (forall d. Data d => d -> u) -> LanguagesList -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> LanguagesList -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> LanguagesList -> m LanguagesList #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> LanguagesList -> m LanguagesList #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> LanguagesList -> m LanguagesList #

Show LanguagesList Source # 
Instance details

Defined in Network.Google.Resource.Language.Languages.List

Generic LanguagesList Source # 
Instance details

Defined in Network.Google.Resource.Language.Languages.List

Associated Types

type Rep LanguagesList :: Type -> Type #

GoogleRequest LanguagesList Source # 
Instance details

Defined in Network.Google.Resource.Language.Languages.List

Associated Types

type Rs LanguagesList :: Type #

type Scopes LanguagesList :: [Symbol] #

type Rep LanguagesList Source # 
Instance details

Defined in Network.Google.Resource.Language.Languages.List

type Scopes LanguagesList Source # 
Instance details

Defined in Network.Google.Resource.Language.Languages.List

type Scopes LanguagesList = "https://www.googleapis.com/auth/cloud-translation" ': ("https://www.googleapis.com/auth/cloud-platform" ': ([] :: [Symbol]))
type Rs LanguagesList Source # 
Instance details

Defined in Network.Google.Resource.Language.Languages.List

Request Lenses

llUploadProtocol :: Lens' LanguagesList (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

llPp :: Lens' LanguagesList Bool Source #

Pretty-print response.

llUploadType :: Lens' LanguagesList (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").

llModel :: Lens' LanguagesList (Maybe Text) Source #

The model type for which supported languages should be returned.

llTarget :: Lens' LanguagesList (Maybe Text) Source #

The language to use to return localized, human readable names of supported languages.