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 job.
See: Cloud Scheduler API Reference for cloudscheduler.projects.locations.jobs.create
.
Synopsis
- type ProjectsLocationsJobsCreateResource = "v1beta1" :> (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] Job :> Post '[JSON] Job)))))))))
- projectsLocationsJobsCreate :: Text -> Job -> ProjectsLocationsJobsCreate
- data ProjectsLocationsJobsCreate
- pljcParent :: Lens' ProjectsLocationsJobsCreate Text
- pljcXgafv :: Lens' ProjectsLocationsJobsCreate (Maybe Xgafv)
- pljcUploadProtocol :: Lens' ProjectsLocationsJobsCreate (Maybe Text)
- pljcAccessToken :: Lens' ProjectsLocationsJobsCreate (Maybe Text)
- pljcUploadType :: Lens' ProjectsLocationsJobsCreate (Maybe Text)
- pljcPayload :: Lens' ProjectsLocationsJobsCreate Job
- pljcCallback :: Lens' ProjectsLocationsJobsCreate (Maybe Text)
REST Resource
type ProjectsLocationsJobsCreateResource = "v1beta1" :> (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] Job :> Post '[JSON] Job))))))))) Source #
A resource alias for cloudscheduler.projects.locations.jobs.create
method which the
ProjectsLocationsJobsCreate
request conforms to.
Creating a Request
projectsLocationsJobsCreate Source #
Creates a value of ProjectsLocationsJobsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsLocationsJobsCreate Source #
Creates a job.
See: projectsLocationsJobsCreate
smart constructor.
Instances
Request Lenses
pljcParent :: Lens' ProjectsLocationsJobsCreate Text Source #
Required. The location name. For example: `projects/PROJECT_ID/locations/LOCATION_ID`.
pljcUploadProtocol :: Lens' ProjectsLocationsJobsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pljcAccessToken :: Lens' ProjectsLocationsJobsCreate (Maybe Text) Source #
OAuth access token.
pljcUploadType :: Lens' ProjectsLocationsJobsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pljcPayload :: Lens' ProjectsLocationsJobsCreate Job Source #
Multipart request metadata.
pljcCallback :: Lens' ProjectsLocationsJobsCreate (Maybe Text) Source #
JSONP