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.Jobs.Patch

Contents

Description

Updates a specific job resource. Currently the only supported fields to update are `labels`.

See: Cloud Machine Learning Engine Reference for ml.projects.jobs.patch.

Synopsis

REST Resource

type ProjectsJobsPatchResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudMlV1__Job :> Patch '[JSON] GoogleCloudMlV1__Job))))))))) Source #

A resource alias for ml.projects.jobs.patch method which the ProjectsJobsPatch request conforms to.

Creating a Request

projectsJobsPatch Source #

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

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

data ProjectsJobsPatch Source #

Updates a specific job resource. Currently the only supported fields to update are `labels`.

See: projectsJobsPatch smart constructor.

Instances
Eq ProjectsJobsPatch Source # 
Instance details

Defined in Network.Google.Resource.Ml.Projects.Jobs.Patch

Data ProjectsJobsPatch Source # 
Instance details

Defined in Network.Google.Resource.Ml.Projects.Jobs.Patch

Methods

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

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

toConstr :: ProjectsJobsPatch -> Constr #

dataTypeOf :: ProjectsJobsPatch -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsJobsPatch Source # 
Instance details

Defined in Network.Google.Resource.Ml.Projects.Jobs.Patch

Generic ProjectsJobsPatch Source # 
Instance details

Defined in Network.Google.Resource.Ml.Projects.Jobs.Patch

Associated Types

type Rep ProjectsJobsPatch :: Type -> Type #

GoogleRequest ProjectsJobsPatch Source # 
Instance details

Defined in Network.Google.Resource.Ml.Projects.Jobs.Patch

Associated Types

type Rs ProjectsJobsPatch :: Type #

type Scopes ProjectsJobsPatch :: [Symbol] #

type Rep ProjectsJobsPatch Source # 
Instance details

Defined in Network.Google.Resource.Ml.Projects.Jobs.Patch

type Scopes ProjectsJobsPatch Source # 
Instance details

Defined in Network.Google.Resource.Ml.Projects.Jobs.Patch

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

Defined in Network.Google.Resource.Ml.Projects.Jobs.Patch

Request Lenses

pjpUploadProtocol :: Lens' ProjectsJobsPatch (Maybe Text) Source #

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

pjpUpdateMask :: Lens' ProjectsJobsPatch (Maybe GFieldMask) Source #

Required. Specifies the path, relative to `Job`, of the field to update. To adopt etag mechanism, include `etag` field in the mask, and include the `etag` value in your job resource. For example, to change the labels of a job, the `update_mask` parameter would be specified as `labels`, `etag`, and the `PATCH` request body would specify the new value, as follows: { "labels": { "owner": "Google", "color": "Blue" } "etag": "33a64df551425fcc55e4d42a148795d9f25f89d4" } If `etag` matches the one on the server, the labels of the job will be replaced with the given ones, and the server end `etag` will be recalculated. Currently the only supported update masks are `labels` and `etag`.

pjpUploadType :: Lens' ProjectsJobsPatch (Maybe Text) Source #

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

pjpName :: Lens' ProjectsJobsPatch Text Source #

Required. The job name.