gogol-ml-0.4.0: Google Cloud Machine Learning Engine 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.Ml.Projects.Predict

Contents

Description

Performs prediction on the data in the request. Cloud ML Engine implements a custom `predict` verb on top of an HTTP POST method.

For details of the request and response format, see the **guide to the predict request format**.

See: Cloud Machine Learning Engine Reference for ml.projects.predict.

Synopsis

REST Resource

type ProjectsPredictResource = "v1" :> (CaptureMode "name" "predict" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudMlV1__PredictRequest :> Post '[JSON] GoogleAPI__HTTPBody)))))))) Source #

A resource alias for ml.projects.predict method which the ProjectsPredict request conforms to.

Creating a Request

projectsPredict Source #

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

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

data ProjectsPredict Source #

Performs prediction on the data in the request. Cloud ML Engine implements a custom `predict` verb on top of an HTTP POST method.

For details of the request and response format, see the **guide to the predict request format**.

See: projectsPredict smart constructor.

Instances
Eq ProjectsPredict Source # 
Instance details

Defined in Network.Google.Resource.Ml.Projects.Predict

Data ProjectsPredict Source # 
Instance details

Defined in Network.Google.Resource.Ml.Projects.Predict

Methods

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

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

toConstr :: ProjectsPredict -> Constr #

dataTypeOf :: ProjectsPredict -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsPredict Source # 
Instance details

Defined in Network.Google.Resource.Ml.Projects.Predict

Generic ProjectsPredict Source # 
Instance details

Defined in Network.Google.Resource.Ml.Projects.Predict

Associated Types

type Rep ProjectsPredict :: Type -> Type #

GoogleRequest ProjectsPredict Source # 
Instance details

Defined in Network.Google.Resource.Ml.Projects.Predict

Associated Types

type Rs ProjectsPredict :: Type #

type Scopes ProjectsPredict :: [Symbol] #

type Rep ProjectsPredict Source # 
Instance details

Defined in Network.Google.Resource.Ml.Projects.Predict

type Scopes ProjectsPredict Source # 
Instance details

Defined in Network.Google.Resource.Ml.Projects.Predict

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

Defined in Network.Google.Resource.Ml.Projects.Predict

Request Lenses

ppUploadProtocol :: Lens' ProjectsPredict (Maybe Text) Source #

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

ppUploadType :: Lens' ProjectsPredict (Maybe Text) Source #

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

ppName :: Lens' ProjectsPredict Text Source #

Required. The resource name of a model or a version. Authorization: requires the `predict` permission on the specified resource.