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.Translate

Contents

Description

Translates input text, returning translated text.

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

Synopsis

REST Resource

type TranslationsTranslateResource = "language" :> ("translate" :> ("v2" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] TranslateTextRequest :> Post '[JSON] TranslationsListResponse))))))))))) Source #

A resource alias for language.translations.translate method which the TranslationsTranslate request conforms to.

Creating a Request

translationsTranslate Source #

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

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

data TranslationsTranslate Source #

Translates input text, returning translated text.

See: translationsTranslate smart constructor.

Instances
Eq TranslationsTranslate Source # 
Instance details

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

Data TranslationsTranslate Source # 
Instance details

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

Methods

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

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

toConstr :: TranslationsTranslate -> Constr #

dataTypeOf :: TranslationsTranslate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show TranslationsTranslate Source # 
Instance details

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

Generic TranslationsTranslate Source # 
Instance details

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

Associated Types

type Rep TranslationsTranslate :: Type -> Type #

GoogleRequest TranslationsTranslate Source # 
Instance details

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

type Rep TranslationsTranslate Source # 
Instance details

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

type Rep TranslationsTranslate = D1 (MetaData "TranslationsTranslate" "Network.Google.Resource.Language.Translations.Translate" "gogol-translate-0.4.0-10etFUJoWwC2Wzq2gJM4i5" False) (C1 (MetaCons "TranslationsTranslate'" PrefixI True) (((S1 (MetaSel (Just "_ttXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_ttUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_ttPp") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool) :*: S1 (MetaSel (Just "_ttAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_ttUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ttPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 TranslateTextRequest)) :*: (S1 (MetaSel (Just "_ttBearerToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ttCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes TranslationsTranslate Source # 
Instance details

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

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

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

Request Lenses

ttUploadProtocol :: Lens' TranslationsTranslate (Maybe Text) Source #

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

ttPp :: Lens' TranslationsTranslate Bool Source #

Pretty-print response.

ttUploadType :: Lens' TranslationsTranslate (Maybe Text) Source #

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