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.Versions.SetDefault

Contents

Description

Designates a version to be the default for the model. The default version is used for prediction requests made against the model that don't specify a version. The first version to be created for a model is automatically set as the default. You must make any subsequent changes to the default version setting manually using this method.

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

Synopsis

REST Resource

type ProjectsModelsVersionsSetDefaultResource = "v1" :> (CaptureMode "name" "setDefault" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudMlV1__SetDefaultVersionRequest :> Post '[JSON] GoogleCloudMlV1__Version)))))))) Source #

A resource alias for ml.projects.models.versions.setDefault method which the ProjectsModelsVersionsSetDefault request conforms to.

Creating a Request

data ProjectsModelsVersionsSetDefault Source #

Designates a version to be the default for the model. The default version is used for prediction requests made against the model that don't specify a version. The first version to be created for a model is automatically set as the default. You must make any subsequent changes to the default version setting manually using this method.

See: projectsModelsVersionsSetDefault smart constructor.

Instances
Eq ProjectsModelsVersionsSetDefault Source # 
Instance details

Defined in Network.Google.Resource.Ml.Projects.Models.Versions.SetDefault

Data ProjectsModelsVersionsSetDefault Source # 
Instance details

Defined in Network.Google.Resource.Ml.Projects.Models.Versions.SetDefault

Methods

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

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

toConstr :: ProjectsModelsVersionsSetDefault -> Constr #

dataTypeOf :: ProjectsModelsVersionsSetDefault -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsModelsVersionsSetDefault Source # 
Instance details

Defined in Network.Google.Resource.Ml.Projects.Models.Versions.SetDefault

Generic ProjectsModelsVersionsSetDefault Source # 
Instance details

Defined in Network.Google.Resource.Ml.Projects.Models.Versions.SetDefault

Associated Types

type Rep ProjectsModelsVersionsSetDefault :: Type -> Type #

GoogleRequest ProjectsModelsVersionsSetDefault Source # 
Instance details

Defined in Network.Google.Resource.Ml.Projects.Models.Versions.SetDefault

type Rep ProjectsModelsVersionsSetDefault Source # 
Instance details

Defined in Network.Google.Resource.Ml.Projects.Models.Versions.SetDefault

type Rep ProjectsModelsVersionsSetDefault = D1 (MetaData "ProjectsModelsVersionsSetDefault" "Network.Google.Resource.Ml.Projects.Models.Versions.SetDefault" "gogol-ml-0.4.0-E5tHTl2V6ffJIUGt4f8uUo" False) (C1 (MetaCons "ProjectsModelsVersionsSetDefault'" PrefixI True) ((S1 (MetaSel (Just "_pmvsdXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_pmvsdUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pmvsdAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pmvsdUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pmvsdPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 GoogleCloudMlV1__SetDefaultVersionRequest)) :*: (S1 (MetaSel (Just "_pmvsdName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pmvsdCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsModelsVersionsSetDefault Source # 
Instance details

Defined in Network.Google.Resource.Ml.Projects.Models.Versions.SetDefault

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

Defined in Network.Google.Resource.Ml.Projects.Models.Versions.SetDefault

Request Lenses

pmvsdUploadProtocol :: Lens' ProjectsModelsVersionsSetDefault (Maybe Text) Source #

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

pmvsdUploadType :: Lens' ProjectsModelsVersionsSetDefault (Maybe Text) Source #

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

pmvsdName :: Lens' ProjectsModelsVersionsSetDefault Text Source #

Required. The name of the version to make the default for the model. You can get the names of all the versions of a model by calling projects.models.versions.list.