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.Models.Create

Contents

Description

Creates a model which will later contain one or more versions. You must add at least one version before you can request predictions from the model. Add versions by calling projects.models.versions.create.

See: Cloud Machine Learning Engine Reference for ml.projects.models.create.

Synopsis

REST Resource

type ProjectsModelsCreateResource = "v1" :> (Capture "parent" Text :> ("models" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudMlV1__Model :> Post '[JSON] GoogleCloudMlV1__Model))))))))) Source #

A resource alias for ml.projects.models.create method which the ProjectsModelsCreate request conforms to.

Creating a Request

projectsModelsCreate Source #

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

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

data ProjectsModelsCreate Source #

Creates a model which will later contain one or more versions. You must add at least one version before you can request predictions from the model. Add versions by calling projects.models.versions.create.

See: projectsModelsCreate smart constructor.

Instances
Eq ProjectsModelsCreate Source # 
Instance details

Defined in Network.Google.Resource.Ml.Projects.Models.Create

Data ProjectsModelsCreate Source # 
Instance details

Defined in Network.Google.Resource.Ml.Projects.Models.Create

Methods

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

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

toConstr :: ProjectsModelsCreate -> Constr #

dataTypeOf :: ProjectsModelsCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsModelsCreate Source # 
Instance details

Defined in Network.Google.Resource.Ml.Projects.Models.Create

Generic ProjectsModelsCreate Source # 
Instance details

Defined in Network.Google.Resource.Ml.Projects.Models.Create

Associated Types

type Rep ProjectsModelsCreate :: Type -> Type #

GoogleRequest ProjectsModelsCreate Source # 
Instance details

Defined in Network.Google.Resource.Ml.Projects.Models.Create

Associated Types

type Rs ProjectsModelsCreate :: Type #

type Scopes ProjectsModelsCreate :: [Symbol] #

type Rep ProjectsModelsCreate Source # 
Instance details

Defined in Network.Google.Resource.Ml.Projects.Models.Create

type Rep ProjectsModelsCreate = D1 (MetaData "ProjectsModelsCreate" "Network.Google.Resource.Ml.Projects.Models.Create" "gogol-ml-0.4.0-E5tHTl2V6ffJIUGt4f8uUo" False) (C1 (MetaCons "ProjectsModelsCreate'" PrefixI True) ((S1 (MetaSel (Just "_pmcParent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_pmcXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_pmcUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pmcAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pmcUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_pmcPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 GoogleCloudMlV1__Model) :*: S1 (MetaSel (Just "_pmcCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsModelsCreate Source # 
Instance details

Defined in Network.Google.Resource.Ml.Projects.Models.Create

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

Defined in Network.Google.Resource.Ml.Projects.Models.Create

Request Lenses

pmcParent :: Lens' ProjectsModelsCreate Text Source #

Required. The project name.

pmcUploadProtocol :: Lens' ProjectsModelsCreate (Maybe Text) Source #

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

pmcUploadType :: Lens' ProjectsModelsCreate (Maybe Text) Source #

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