gogol-language-0.4.0: Google Cloud Natural Language 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.Documents.ClassifyText

Contents

Description

Classifies a document into categories.

See: Cloud Natural Language API Reference for language.documents.classifyText.

Synopsis

REST Resource

type DocumentsClassifyTextResource = "v1" :> ("documents:classifyText" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ClassifyTextRequest :> Post '[JSON] ClassifyTextResponse)))))))) Source #

A resource alias for language.documents.classifyText method which the DocumentsClassifyText request conforms to.

Creating a Request

documentsClassifyText Source #

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

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

data DocumentsClassifyText Source #

Classifies a document into categories.

See: documentsClassifyText smart constructor.

Instances
Eq DocumentsClassifyText Source # 
Instance details

Defined in Network.Google.Resource.Language.Documents.ClassifyText

Data DocumentsClassifyText Source # 
Instance details

Defined in Network.Google.Resource.Language.Documents.ClassifyText

Methods

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

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

toConstr :: DocumentsClassifyText -> Constr #

dataTypeOf :: DocumentsClassifyText -> DataType #

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

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

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

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

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

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

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

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

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

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

Show DocumentsClassifyText Source # 
Instance details

Defined in Network.Google.Resource.Language.Documents.ClassifyText

Generic DocumentsClassifyText Source # 
Instance details

Defined in Network.Google.Resource.Language.Documents.ClassifyText

Associated Types

type Rep DocumentsClassifyText :: Type -> Type #

GoogleRequest DocumentsClassifyText Source # 
Instance details

Defined in Network.Google.Resource.Language.Documents.ClassifyText

type Rep DocumentsClassifyText Source # 
Instance details

Defined in Network.Google.Resource.Language.Documents.ClassifyText

type Rep DocumentsClassifyText = D1 (MetaData "DocumentsClassifyText" "Network.Google.Resource.Language.Documents.ClassifyText" "gogol-language-0.4.0-5pnSmGql6DrGvyDSKlfn7G" False) (C1 (MetaCons "DocumentsClassifyText'" PrefixI True) ((S1 (MetaSel (Just "_dctXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_dctUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_dctAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_dctUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_dctPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ClassifyTextRequest) :*: S1 (MetaSel (Just "_dctCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes DocumentsClassifyText Source # 
Instance details

Defined in Network.Google.Resource.Language.Documents.ClassifyText

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

Defined in Network.Google.Resource.Language.Documents.ClassifyText

Request Lenses

dctUploadProtocol :: Lens' DocumentsClassifyText (Maybe Text) Source #

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

dctUploadType :: Lens' DocumentsClassifyText (Maybe Text) Source #

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