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 new job. Typically, the job becomes searchable within 10 seconds, but it may take up to 5 minutes.
See: Cloud Talent Solution API Reference for jobs.projects.jobs.create
.
Synopsis
- type ProjectsJobsCreateResource = "v3p1beta1" :> (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] CreateJobRequest :> Post '[JSON] Job)))))))))
- projectsJobsCreate :: Text -> CreateJobRequest -> ProjectsJobsCreate
- data ProjectsJobsCreate
- pjcParent :: Lens' ProjectsJobsCreate Text
- pjcXgafv :: Lens' ProjectsJobsCreate (Maybe Xgafv)
- pjcUploadProtocol :: Lens' ProjectsJobsCreate (Maybe Text)
- pjcAccessToken :: Lens' ProjectsJobsCreate (Maybe Text)
- pjcUploadType :: Lens' ProjectsJobsCreate (Maybe Text)
- pjcPayload :: Lens' ProjectsJobsCreate CreateJobRequest
- pjcCallback :: Lens' ProjectsJobsCreate (Maybe Text)
REST Resource
type ProjectsJobsCreateResource = "v3p1beta1" :> (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] CreateJobRequest :> Post '[JSON] Job))))))))) Source #
A resource alias for jobs.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 new job. Typically, the job becomes searchable within 10 seconds, but it may take up to 5 minutes.
See: projectsJobsCreate
smart constructor.
Instances
Request Lenses
pjcParent :: Lens' ProjectsJobsCreate Text Source #
Required. The resource name of the project under which the job is created. The format is "projects/{project_id}", for example, "projects/api-test-project".
pjcUploadProtocol :: Lens' ProjectsJobsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pjcAccessToken :: Lens' ProjectsJobsCreate (Maybe Text) Source #
OAuth access token.
pjcUploadType :: Lens' ProjectsJobsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pjcPayload :: Lens' ProjectsJobsCreate CreateJobRequest Source #
Multipart request metadata.
pjcCallback :: Lens' ProjectsJobsCreate (Maybe Text) Source #
JSONP