gogol-ml-0.2.0: Google Cloud Machine Learning 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.Versions.Create

Contents

Description

Creates a new version of a model from a trained TensorFlow model. If the version created in the cloud by this call is the first deployed version of the specified model, it will be made the default version of the model. When you add a version to a model that already has one or more versions, the default version does not automatically change. If you want a new version to be the default, you must call projects.models.versions.setDefault.

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

Synopsis

REST Resource

type ProjectsModelsVersionsCreateResource = "v1beta1" :> (Capture "parent" Text :> ("versions" :> (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] GoogleCloudMlV1beta1__Version :> Post '[JSON] GoogleLongrunning__Operation))))))))))) Source #

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

Creating a Request

data ProjectsModelsVersionsCreate Source #

Creates a new version of a model from a trained TensorFlow model. If the version created in the cloud by this call is the first deployed version of the specified model, it will be made the default version of the model. When you add a version to a model that already has one or more versions, the default version does not automatically change. If you want a new version to be the default, you must call projects.models.versions.setDefault.

See: projectsModelsVersionsCreate smart constructor.

Instances

Eq ProjectsModelsVersionsCreate Source # 
Data ProjectsModelsVersionsCreate Source # 

Methods

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

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

toConstr :: ProjectsModelsVersionsCreate -> Constr #

dataTypeOf :: ProjectsModelsVersionsCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsModelsVersionsCreate Source # 
Generic ProjectsModelsVersionsCreate Source # 
GoogleRequest ProjectsModelsVersionsCreate Source # 
type Rep ProjectsModelsVersionsCreate Source # 
type Scopes ProjectsModelsVersionsCreate Source # 
type Scopes ProjectsModelsVersionsCreate = (:) Symbol "https://www.googleapis.com/auth/cloud-platform" ([] Symbol)
type Rs ProjectsModelsVersionsCreate Source # 

Request Lenses

pmvcParent :: Lens' ProjectsModelsVersionsCreate Text Source #

Required. The name of the model. Authorization: requires `Editor` role on the parent project.

pmvcUploadProtocol :: Lens' ProjectsModelsVersionsCreate (Maybe Text) Source #

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

pmvcUploadType :: Lens' ProjectsModelsVersionsCreate (Maybe Text) Source #

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