Copyright | (c) 2015 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.BigQuery.Jobs.Insert
Description
Starts a new asynchronous job. Requires the Can View project role.
See: BigQuery API Reference for bigquery.jobs.insert
.
- type JobsInsertResource = ("bigquery" :> ("v2" :> ("projects" :> (Capture "projectId" Text :> ("jobs" :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Job :> Post `[JSON]` Job))))))) :<|> ("upload" :> ("bigquery" :> ("v2" :> ("projects" :> (Capture "projectId" Text :> ("jobs" :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" AltMedia :> (MultipartRelated `[JSON]` Job RequestBody :> Post `[JSON]` Job)))))))))
- jobsInsert :: Job -> Text -> JobsInsert
- data JobsInsert
- jiPayload :: Lens' JobsInsert Job
- jiProjectId :: Lens' JobsInsert Text
REST Resource
type JobsInsertResource = ("bigquery" :> ("v2" :> ("projects" :> (Capture "projectId" Text :> ("jobs" :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Job :> Post `[JSON]` Job))))))) :<|> ("upload" :> ("bigquery" :> ("v2" :> ("projects" :> (Capture "projectId" Text :> ("jobs" :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" AltMedia :> (MultipartRelated `[JSON]` Job RequestBody :> Post `[JSON]` Job))))))))) Source
A resource alias for bigquery.jobs.insert
method which the
JobsInsert
request conforms to.
Creating a Request
Arguments
:: Job | |
-> Text | |
-> JobsInsert |
Creates a value of JobsInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data JobsInsert Source
Starts a new asynchronous job. Requires the Can View project role.
See: jobsInsert
smart constructor.
Instances
Request Lenses
jiPayload :: Lens' JobsInsert Job Source
Multipart request metadata.
jiProjectId :: Lens' JobsInsert Text Source
Project ID of the project that will be billed for the job