| Copyright | (c) 2015-2016 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.Google.Resource.Ml.Projects.Jobs.Create
Description
Creates a training or a batch prediction job.
See: Cloud Machine Learning Engine Reference for ml.projects.jobs.create.
Synopsis
- type ProjectsJobsCreateResource = "v1" :> (Capture "parent" Text :> ("jobs" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudMlV1__Job :> Post '[JSON] GoogleCloudMlV1__Job)))))))))
- projectsJobsCreate :: Text -> GoogleCloudMlV1__Job -> ProjectsJobsCreate
- data ProjectsJobsCreate
- pParent :: Lens' ProjectsJobsCreate Text
- pXgafv :: Lens' ProjectsJobsCreate (Maybe Xgafv)
- pUploadProtocol :: Lens' ProjectsJobsCreate (Maybe Text)
- pAccessToken :: Lens' ProjectsJobsCreate (Maybe Text)
- pUploadType :: Lens' ProjectsJobsCreate (Maybe Text)
- pPayload :: Lens' ProjectsJobsCreate GoogleCloudMlV1__Job
- pCallback :: Lens' ProjectsJobsCreate (Maybe Text)
REST Resource
type ProjectsJobsCreateResource = "v1" :> (Capture "parent" Text :> ("jobs" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudMlV1__Job :> Post '[JSON] GoogleCloudMlV1__Job))))))))) Source #
A resource alias for ml.projects.jobs.create method which the
ProjectsJobsCreate request conforms to.
Creating a Request
Arguments
| :: Text | |
| -> GoogleCloudMlV1__Job | |
| -> ProjectsJobsCreate |
Creates a value of ProjectsJobsCreate with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsJobsCreate Source #
Creates a training or a batch prediction job.
See: projectsJobsCreate smart constructor.
Instances
Request Lenses
pUploadProtocol :: Lens' ProjectsJobsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pAccessToken :: Lens' ProjectsJobsCreate (Maybe Text) Source #
OAuth access token.
pUploadType :: Lens' ProjectsJobsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pPayload :: Lens' ProjectsJobsCreate GoogleCloudMlV1__Job Source #
Multipart request metadata.