|
3 | 3 | * |
4 | 4 | * REST API to interact with Tower Services. |
5 | 5 | * |
6 | | - * The version of the OpenAPI document: v0.6.3 |
| 6 | + * The version of the OpenAPI document: v0.6.4 |
7 | 7 | * Contact: hello@tower.dev |
8 | 8 | * Generated by: https://openapi-generator.tech |
9 | 9 | */ |
@@ -216,8 +216,14 @@ pub struct ExportSecretsParams { |
216 | 216 | /// struct for passing parameters to the method [`generate_run_statistics`] |
217 | 217 | #[derive(Clone, Debug)] |
218 | 218 | pub struct GenerateRunStatisticsParams { |
219 | | - /// Time period for statistics (24h, 7d, 30d) |
220 | | - pub period: Option<String> |
| 219 | + /// Start date and time for statistics (inclusive) |
| 220 | + pub start_at: String, |
| 221 | + /// End date and time for statistics (inclusive) |
| 222 | + pub end_at: String, |
| 223 | + /// Filter runs by status(es). Define multiple with a comma-separated list. Supplying none will return all statuses. |
| 224 | + pub status: Option<Vec<String>>, |
| 225 | + /// Timezone for the statistics (e.g., 'America/New_York'). Defaults to UTC. |
| 226 | + pub timezone: Option<String> |
221 | 227 | } |
222 | 228 |
|
223 | 229 | /// struct for passing parameters to the method [`invite_team_member`] |
@@ -275,12 +281,12 @@ pub struct ListAppsParams { |
275 | 281 | pub page: Option<i64>, |
276 | 282 | /// The number of records to fetch on each page. |
277 | 283 | pub page_size: Option<i64>, |
278 | | - /// Time period for statistics (24h, 7d, 30d, or none) |
279 | | - pub period: Option<String>, |
280 | 284 | /// Number of recent runs to fetch (-1 for all runs, defaults to 20) |
281 | 285 | pub num_runs: Option<i64>, |
282 | | - /// Filter apps by status(es) (comma separated for multiple). Valid values: active, failed, disabled etc. |
283 | | - pub status: Option<Vec<String>> |
| 286 | + /// Sort order for the results. |
| 287 | + pub sort: Option<String>, |
| 288 | + /// Filter to see apps with certain statuses. |
| 289 | + pub filter: Option<String> |
284 | 290 | } |
285 | 291 |
|
286 | 292 | /// struct for passing parameters to the method [`list_catalogs`] |
@@ -2560,8 +2566,16 @@ pub async fn generate_run_statistics(configuration: &configuration::Configuratio |
2560 | 2566 | let uri_str = format!("{}/stats/runs", configuration.base_path); |
2561 | 2567 | let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); |
2562 | 2568 |
|
2563 | | - if let Some(ref param_value) = params.period { |
2564 | | - req_builder = req_builder.query(&[("period", ¶m_value.to_string())]); |
| 2569 | + if let Some(ref param_value) = params.status { |
| 2570 | + req_builder = match "csv" { |
| 2571 | + "multi" => req_builder.query(¶m_value.into_iter().map(|p| ("status".to_owned(), p.to_string())).collect::<Vec<(std::string::String, std::string::String)>>()), |
| 2572 | + _ => req_builder.query(&[("status", ¶m_value.into_iter().map(|p| p.to_string()).collect::<Vec<String>>().join(",").to_string())]), |
| 2573 | + }; |
| 2574 | + } |
| 2575 | + req_builder = req_builder.query(&[("start_at", ¶ms.start_at.to_string())]); |
| 2576 | + req_builder = req_builder.query(&[("end_at", ¶ms.end_at.to_string())]); |
| 2577 | + if let Some(ref param_value) = params.timezone { |
| 2578 | + req_builder = req_builder.query(&[("timezone", ¶m_value.to_string())]); |
2565 | 2579 | } |
2566 | 2580 | if let Some(ref user_agent) = configuration.user_agent { |
2567 | 2581 | req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); |
@@ -2836,17 +2850,14 @@ pub async fn list_apps(configuration: &configuration::Configuration, params: Lis |
2836 | 2850 | if let Some(ref param_value) = params.page_size { |
2837 | 2851 | req_builder = req_builder.query(&[("page_size", ¶m_value.to_string())]); |
2838 | 2852 | } |
2839 | | - if let Some(ref param_value) = params.period { |
2840 | | - req_builder = req_builder.query(&[("period", ¶m_value.to_string())]); |
2841 | | - } |
2842 | 2853 | if let Some(ref param_value) = params.num_runs { |
2843 | 2854 | req_builder = req_builder.query(&[("num_runs", ¶m_value.to_string())]); |
2844 | 2855 | } |
2845 | | - if let Some(ref param_value) = params.status { |
2846 | | - req_builder = match "csv" { |
2847 | | - "multi" => req_builder.query(¶m_value.into_iter().map(|p| ("status".to_owned(), p.to_string())).collect::<Vec<(std::string::String, std::string::String)>>()), |
2848 | | - _ => req_builder.query(&[("status", ¶m_value.into_iter().map(|p| p.to_string()).collect::<Vec<String>>().join(",").to_string())]), |
2849 | | - }; |
| 2856 | + if let Some(ref param_value) = params.sort { |
| 2857 | + req_builder = req_builder.query(&[("sort", ¶m_value.to_string())]); |
| 2858 | + } |
| 2859 | + if let Some(ref param_value) = params.filter { |
| 2860 | + req_builder = req_builder.query(&[("filter", ¶m_value.to_string())]); |
2850 | 2861 | } |
2851 | 2862 | if let Some(ref user_agent) = configuration.user_agent { |
2852 | 2863 | req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); |
|
0 commit comments