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 |
Creates a training or a batch prediction job.
See: Google Cloud Machine Learning Reference for ml.projects.jobs.create
.
- type ProjectsJobsCreateResource = "v1beta1" :> (Capture "parent" Text :> ("jobs" :> (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__Job :> Post '[JSON] GoogleCloudMlV1beta1__Job)))))))))))
- projectsJobsCreate :: Text -> GoogleCloudMlV1beta1__Job -> ProjectsJobsCreate
- data ProjectsJobsCreate
- pParent :: Lens' ProjectsJobsCreate Text
- pXgafv :: Lens' ProjectsJobsCreate (Maybe Xgafv)
- pUploadProtocol :: Lens' ProjectsJobsCreate (Maybe Text)
- pPp :: Lens' ProjectsJobsCreate Bool
- pAccessToken :: Lens' ProjectsJobsCreate (Maybe Text)
- pUploadType :: Lens' ProjectsJobsCreate (Maybe Text)
- pPayload :: Lens' ProjectsJobsCreate GoogleCloudMlV1beta1__Job
- pBearerToken :: Lens' ProjectsJobsCreate (Maybe Text)
- pCallback :: Lens' ProjectsJobsCreate (Maybe Text)
REST Resource
type ProjectsJobsCreateResource = "v1beta1" :> (Capture "parent" Text :> ("jobs" :> (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__Job :> Post '[JSON] GoogleCloudMlV1beta1__Job))))))))))) Source #
A resource alias for ml.projects.jobs.create
method which the
ProjectsJobsCreate
request conforms to.
Creating a Request
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.
Request Lenses
pParent :: Lens' ProjectsJobsCreate Text Source #
Required. The project name. Authorization: requires `Editor` role on the specified project.
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 GoogleCloudMlV1beta1__Job Source #
Multipart request metadata.
pBearerToken :: Lens' ProjectsJobsCreate (Maybe Text) Source #
OAuth bearer token.