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.Translations.List

Contents

Description

Translates input text, returning translated text.

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

Synopsis

REST Resource

type TranslationsListResource = "language" :> ("translate" :> ("v2" :> (QueryParams "q" Text :> (QueryParam "target" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "format" TranslationsListFormat :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "model" Text :> (QueryParam "source" Text :> (QueryParams "cid" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] TranslationsListResponse)))))))))))))))) Source #

A resource alias for language.translations.list method which the TranslationsList request conforms to.

Creating a Request

translationsList Source #

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

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

data TranslationsList Source #

Translates input text, returning translated text.

See: translationsList smart constructor.

Instances
Eq TranslationsList Source # 
Instance details

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

Data TranslationsList Source # 
Instance details

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

Methods

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

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

toConstr :: TranslationsList -> Constr #

dataTypeOf :: TranslationsList -> DataType #

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

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

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

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

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

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

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

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

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

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

Show TranslationsList Source # 
Instance details

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

Generic TranslationsList Source # 
Instance details

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

Associated Types

type Rep TranslationsList :: Type -> Type #

GoogleRequest TranslationsList Source # 
Instance details

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

Associated Types

type Rs TranslationsList :: Type #

type Scopes TranslationsList :: [Symbol] #

type Rep TranslationsList Source # 
Instance details

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

type Rep TranslationsList = D1 (MetaData "TranslationsList" "Network.Google.Resource.Language.Translations.List" "gogol-translate-0.4.0-10etFUJoWwC2Wzq2gJM4i5" False) (C1 (MetaCons "TranslationsList'" PrefixI True) (((S1 (MetaSel (Just "_tlXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_tlUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_tlPp") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool))) :*: (S1 (MetaSel (Just "_tlAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_tlFormat") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe TranslationsListFormat)) :*: S1 (MetaSel (Just "_tlUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 (MetaSel (Just "_tlQ") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text]) :*: (S1 (MetaSel (Just "_tlBearerToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_tlModel") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_tlSource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_tlCid") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 (MetaSel (Just "_tlTarget") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_tlCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))))
type Scopes TranslationsList Source # 
Instance details

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

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

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

Request Lenses

tlUploadProtocol :: Lens' TranslationsList (Maybe Text) Source #

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

tlPp :: Lens' TranslationsList Bool Source #

Pretty-print response.

tlFormat :: Lens' TranslationsList (Maybe TranslationsListFormat) Source #

The format of the source text, in either HTML (default) or plain-text. A value of "html" indicates HTML and a value of "text" indicates plain-text.

tlUploadType :: Lens' TranslationsList (Maybe Text) Source #

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

tlQ :: Lens' TranslationsList [Text] Source #

The input text to translate. Repeat this parameter to perform translation operations on multiple text inputs.

tlModel :: Lens' TranslationsList (Maybe Text) Source #

The `model` type requested for this translation. Valid values are listed in public documentation.

tlSource :: Lens' TranslationsList (Maybe Text) Source #

The language of the source text, set to one of the language codes listed in Language Support. If the source language is not specified, the API will attempt to identify the source language automatically and return it within the response.

tlCid :: Lens' TranslationsList [Text] Source #

The customization id for translate

tlTarget :: Lens' TranslationsList Text Source #

The language to use for translation of the input text, set to one of the language codes listed in Language Support.