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 |
Retrieves the results of a query job.
See: BigQuery API Reference for bigquery.jobs.getQueryResults
.
Synopsis
- type JobsGetQueryResultsResource = "bigquery" :> ("v2" :> ("projects" :> (Capture "projectId" Text :> ("queries" :> (Capture "jobId" Text :> (QueryParam "location" Text :> (QueryParam "timeoutMs" (Textual Word32) :> (QueryParam "pageToken" Text :> (QueryParam "startIndex" (Textual Word64) :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get '[JSON] GetQueryResultsResponse)))))))))))
- jobsGetQueryResults :: Text -> Text -> JobsGetQueryResults
- data JobsGetQueryResults
- jgqrJobId :: Lens' JobsGetQueryResults Text
- jgqrLocation :: Lens' JobsGetQueryResults (Maybe Text)
- jgqrTimeoutMs :: Lens' JobsGetQueryResults (Maybe Word32)
- jgqrPageToken :: Lens' JobsGetQueryResults (Maybe Text)
- jgqrProjectId :: Lens' JobsGetQueryResults Text
- jgqrStartIndex :: Lens' JobsGetQueryResults (Maybe Word64)
- jgqrMaxResults :: Lens' JobsGetQueryResults (Maybe Word32)
REST Resource
type JobsGetQueryResultsResource = "bigquery" :> ("v2" :> ("projects" :> (Capture "projectId" Text :> ("queries" :> (Capture "jobId" Text :> (QueryParam "location" Text :> (QueryParam "timeoutMs" (Textual Word32) :> (QueryParam "pageToken" Text :> (QueryParam "startIndex" (Textual Word64) :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get '[JSON] GetQueryResultsResponse))))))))))) Source #
A resource alias for bigquery.jobs.getQueryResults
method which the
JobsGetQueryResults
request conforms to.
Creating a Request
Creates a value of JobsGetQueryResults
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data JobsGetQueryResults Source #
Retrieves the results of a query job.
See: jobsGetQueryResults
smart constructor.
Instances
Request Lenses
jgqrLocation :: Lens' JobsGetQueryResults (Maybe Text) Source #
The geographic location where the job should run. Required except for US and EU. See details at https://cloud.google.com/bigquery/docs/locations#specifying_your_location.
jgqrTimeoutMs :: Lens' JobsGetQueryResults (Maybe Word32) Source #
How long to wait for the query to complete, in milliseconds, before returning. Default is 10 seconds. If the timeout passes before the job completes, the 'jobComplete' field in the response will be false
jgqrPageToken :: Lens' JobsGetQueryResults (Maybe Text) Source #
Page token, returned by a previous call, to request the next page of results
jgqrProjectId :: Lens' JobsGetQueryResults Text Source #
- Required
- Project ID of the query job
jgqrStartIndex :: Lens' JobsGetQueryResults (Maybe Word64) Source #
Zero-based index of the starting row
jgqrMaxResults :: Lens' JobsGetQueryResults (Maybe Word32) Source #
Maximum number of results to read