gcp_bigquery_client/model/
job_list_parameters.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Default, Clone, Serialize, Deserialize)]
4#[serde(rename_all = "camelCase")]
5pub struct JobListParameters {
6    /// Whether to display jobs owned by all users in the project. Default False.
7    #[serde(skip_serializing_if = "Option::is_none")]
8    pub all_users: Option<bool>,
9    /// The maximum number of results to return in a single response page. Leverage the page tokens to iterate through the entire collection.
10    #[serde(skip_serializing_if = "Option::is_none")]
11    pub max_results: Option<u32>,
12    /// Min value for job creation time, in milliseconds since the POSIX epoch. If set, only jobs created after or at this timestamp are returned.
13    #[serde(skip_serializing_if = "Option::is_none")]
14    pub min_creation_time: Option<u64>,
15    /// Max value for job creation time, in milliseconds since the POSIX epoch. If set, only jobs created before or at this timestamp are returned.
16    #[serde(skip_serializing_if = "Option::is_none")]
17    pub max_creation_time: Option<u64>,
18    /// If set, show only child jobs of the specified parent. Otherwise, show all top-level jobs.
19    #[serde(skip_serializing_if = "Option::is_none")]
20    pub parent_job_id: Option<String>,
21    /// Restrict information returned to a set of selected fields. Acceptable values are: full or minimal.
22    #[serde(skip_serializing_if = "Option::is_none")]
23    pub projection: Option<Projection>,
24    /// Filter for job state. Acceptable values are: done, pending, and running.
25    #[serde(skip_serializing_if = "Option::is_none")]
26    pub state_filter: Option<StateFilter>,
27    /// Page token, returned by a previous call, to request the next page of results.
28    #[serde(skip_serializing_if = "Option::is_none")]
29    pub page_token: Option<String>,
30}
31
32#[derive(Debug, Clone, Serialize, Deserialize)]
33#[serde(rename_all = "lowercase")]
34pub enum Projection {
35    Full,
36    Minimal,
37}
38
39#[derive(Debug, Clone, Serialize, Deserialize)]
40#[serde(rename_all = "lowercase")]
41pub enum StateFilter {
42    Done,
43    Pending,
44    Running,
45}