google_cloud_bigquery/http/job/
get.rs

1use reqwest_middleware::{ClientWithMiddleware as Client, RequestBuilder};
2
3#[derive(Clone, PartialEq, serde::Deserialize, serde::Serialize, Debug, Default)]
4#[serde(rename_all = "camelCase")]
5pub struct GetJobRequest {
6    /// The geographic location of the job. You must specify the location to run the job for the following scenarios:
7    ///
8    /// If the location to run a job is not in the us or the eu multi-regional location
9    /// If the job's location is in a single region (for example, us-central1)
10    /// For more information, see https://cloud.google.com/bigquery/docs/locations#specifying_your_location.
11    pub location: Option<String>,
12}
13
14pub fn build(base_url: &str, client: &Client, project_id: &str, job_id: &str, data: &GetJobRequest) -> RequestBuilder {
15    let url = format!("{}/projects/{}/jobs/{}", base_url, project_id, job_id);
16    client.get(url).query(data)
17}