From c0f091deb574ba68bc338d225d715f72afd007d1 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 8 Nov 2024 19:41:56 +0000 Subject: [PATCH 01/10] Regenerate client from commit ae3b5463 of spec repo --- .apigentools-info | 8 ++-- .generator/schemas/v1/openapi.yaml | 32 +++++++++++++++- ...v2_security-monitoring_GetHistoricalJob.rs | 2 +- ...del_hourly_usage_attribution_usage_type.rs | 3 ++ ...hly_usage_attribution_supported_metrics.rs | 6 +++ .../model_monthly_usage_attribution_values.rs | 36 ++++++++++++++++++ .../model/model_usage_summary_date.rs | 19 ++++++++++ .../model/model_usage_summary_date_org.rs | 19 ++++++++++ .../model/model_usage_summary_response.rs | 37 ++++++++++++++----- 9 files changed, 147 insertions(+), 15 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 1f703bfaf..875ab2b3b 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-11-08 14:25:31.791201", - "spec_repo_commit": "d907813e" + "regenerated": "2024-11-08 19:36:27.945748", + "spec_repo_commit": "ae3b5463" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-11-08 14:25:31.809719", - "spec_repo_commit": "d907813e" + "regenerated": "2024-11-08 19:36:27.964476", + "spec_repo_commit": "ae3b5463" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 2e2f4139f..a34b12988 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -4187,6 +4187,7 @@ components: - custom_ingested_timeseries_usage - custom_timeseries_usage - cws_containers_usage + - cws_fargate_task_usage - cws_hosts_usage - data_jobs_monitoring_usage - data_stream_monitoring_usage @@ -4259,6 +4260,7 @@ components: - CUSTOM_INGESTED_TIMESERIES_USAGE - CUSTOM_TIMESERIES_USAGE - CWS_CONTAINERS_USAGE + - CWS_FARGATE_TASK_USAGE - CWS_HOSTS_USAGE - DATA_JOBS_MONITORING_USAGE - DATA_STREAM_MONITORING_USAGE @@ -7939,6 +7941,8 @@ components: - custom_ingested_timeseries_percentage - cws_containers_percentage - cws_containers_usage + - cws_fargate_task_percentage + - cws_fargate_task_usage - cws_hosts_percentage - cws_hosts_usage - data_jobs_monitoring_usage @@ -8078,6 +8082,8 @@ components: - CUSTOM_INGESTED_TIMESERIES_PERCENTAGE - CWS_CONTAINERS_PERCENTAGE - CWS_CONTAINERS_USAGE + - CWS_FARGATE_TASK_PERCENTAGE + - CWS_FARGATE_TASK_USAGE - CWS_HOSTS_PERCENTAGE - CWS_HOSTS_USAGE - DATA_JOBS_MONITORING_USAGE @@ -8357,6 +8363,15 @@ components: description: The Cloud Workload Security container usage by tag(s). format: double type: number + cws_fargate_task_percentage: + description: The percentage of Cloud Workload Security Fargate task usage + by tag(s). + format: double + type: number + cws_fargate_task_usage: + description: The Cloud Workload Security Fargate task usage by tag(s). + format: double + type: number cws_hosts_percentage: description: The percentage of Cloud Workload Security host usage by tag(s). format: double @@ -19909,6 +19924,11 @@ components: over all hours in the current date for all organizations. format: int64 type: integer + cws_fargate_task_avg: + description: Shows the average of all distinct Cloud Workload Security Fargate + tasks over all hours in the current date for all organizations. + format: int64 + type: integer cws_host_top99p: description: Shows the 99th percentile of all Cloud Workload Security hosts over all hours in the current date for all organizations. @@ -20679,6 +20699,11 @@ components: over all hours in the current date for the given org. format: int64 type: integer + cws_fargate_task_avg: + description: Shows the average of all distinct Cloud Workload Security Fargate + tasks over all hours in the current date for the given org. + format: int64 + type: integer cws_host_top99p: description: Shows the 99th percentile of all Cloud Workload Security hosts over all hours in the current date for the given org. @@ -21443,11 +21468,16 @@ components: hours in the current month for all organizations. format: int64 type: integer - cws_containers_avg_sum: + cws_container_avg_sum: description: Shows the average of all distinct Cloud Workload Security containers over all hours in the current month for all organizations. format: int64 type: integer + cws_fargate_task_avg_sum: + description: Shows the average of all distinct Cloud Workload Security Fargate + tasks over all hours in the current month for all organizations. + format: int64 + type: integer cws_host_top99p_sum: description: Shows the 99th percentile of all Cloud Workload Security hosts over all hours in the current month for all organizations. diff --git a/examples/v2_security-monitoring_GetHistoricalJob.rs b/examples/v2_security-monitoring_GetHistoricalJob.rs index 022f165d2..af35afafe 100644 --- a/examples/v2_security-monitoring_GetHistoricalJob.rs +++ b/examples/v2_security-monitoring_GetHistoricalJob.rs @@ -7,8 +7,8 @@ async fn main() { // there is a valid "historical_job" in the system let historical_job_data_id = std::env::var("HISTORICAL_JOB_DATA_ID").unwrap(); let mut configuration = datadog::Configuration::new(); - configuration.set_unstable_operation_enabled("v2.GetHistoricalJob", true); configuration.set_unstable_operation_enabled("v2.RunHistoricalJob", true); + configuration.set_unstable_operation_enabled("v2.GetHistoricalJob", true); let api = SecurityMonitoringAPI::with_config(configuration); let resp = api.get_historical_job(historical_job_data_id.clone()).await; if let Ok(value) = resp { diff --git a/src/datadogV1/model/model_hourly_usage_attribution_usage_type.rs b/src/datadogV1/model/model_hourly_usage_attribution_usage_type.rs index 5feae0513..785cd0de8 100644 --- a/src/datadogV1/model/model_hourly_usage_attribution_usage_type.rs +++ b/src/datadogV1/model/model_hourly_usage_attribution_usage_type.rs @@ -28,6 +28,7 @@ pub enum HourlyUsageAttributionUsageType { CUSTOM_INGESTED_TIMESERIES_USAGE, CUSTOM_TIMESERIES_USAGE, CWS_CONTAINERS_USAGE, + CWS_FARGATE_TASK_USAGE, CWS_HOSTS_USAGE, DATA_JOBS_MONITORING_USAGE, DATA_STREAM_MONITORING_USAGE, @@ -112,6 +113,7 @@ impl ToString for HourlyUsageAttributionUsageType { } Self::CUSTOM_TIMESERIES_USAGE => String::from("custom_timeseries_usage"), Self::CWS_CONTAINERS_USAGE => String::from("cws_containers_usage"), + Self::CWS_FARGATE_TASK_USAGE => String::from("cws_fargate_task_usage"), Self::CWS_HOSTS_USAGE => String::from("cws_hosts_usage"), Self::DATA_JOBS_MONITORING_USAGE => String::from("data_jobs_monitoring_usage"), Self::DATA_STREAM_MONITORING_USAGE => String::from("data_stream_monitoring_usage"), @@ -222,6 +224,7 @@ impl<'de> Deserialize<'de> for HourlyUsageAttributionUsageType { "custom_ingested_timeseries_usage" => Self::CUSTOM_INGESTED_TIMESERIES_USAGE, "custom_timeseries_usage" => Self::CUSTOM_TIMESERIES_USAGE, "cws_containers_usage" => Self::CWS_CONTAINERS_USAGE, + "cws_fargate_task_usage" => Self::CWS_FARGATE_TASK_USAGE, "cws_hosts_usage" => Self::CWS_HOSTS_USAGE, "data_jobs_monitoring_usage" => Self::DATA_JOBS_MONITORING_USAGE, "data_stream_monitoring_usage" => Self::DATA_STREAM_MONITORING_USAGE, diff --git a/src/datadogV1/model/model_monthly_usage_attribution_supported_metrics.rs b/src/datadogV1/model/model_monthly_usage_attribution_supported_metrics.rs index 0036e1e04..1c7ed57a6 100644 --- a/src/datadogV1/model/model_monthly_usage_attribution_supported_metrics.rs +++ b/src/datadogV1/model/model_monthly_usage_attribution_supported_metrics.rs @@ -41,6 +41,8 @@ pub enum MonthlyUsageAttributionSupportedMetrics { CUSTOM_INGESTED_TIMESERIES_PERCENTAGE, CWS_CONTAINERS_PERCENTAGE, CWS_CONTAINERS_USAGE, + CWS_FARGATE_TASK_PERCENTAGE, + CWS_FARGATE_TASK_USAGE, CWS_HOSTS_PERCENTAGE, CWS_HOSTS_USAGE, DATA_JOBS_MONITORING_USAGE, @@ -194,6 +196,8 @@ impl ToString for MonthlyUsageAttributionSupportedMetrics { } Self::CWS_CONTAINERS_PERCENTAGE => String::from("cws_containers_percentage"), Self::CWS_CONTAINERS_USAGE => String::from("cws_containers_usage"), + Self::CWS_FARGATE_TASK_PERCENTAGE => String::from("cws_fargate_task_percentage"), + Self::CWS_FARGATE_TASK_USAGE => String::from("cws_fargate_task_usage"), Self::CWS_HOSTS_PERCENTAGE => String::from("cws_hosts_percentage"), Self::CWS_HOSTS_USAGE => String::from("cws_hosts_usage"), Self::DATA_JOBS_MONITORING_USAGE => String::from("data_jobs_monitoring_usage"), @@ -401,6 +405,8 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionSupportedMetrics { "custom_ingested_timeseries_percentage" => Self::CUSTOM_INGESTED_TIMESERIES_PERCENTAGE, "cws_containers_percentage" => Self::CWS_CONTAINERS_PERCENTAGE, "cws_containers_usage" => Self::CWS_CONTAINERS_USAGE, + "cws_fargate_task_percentage" => Self::CWS_FARGATE_TASK_PERCENTAGE, + "cws_fargate_task_usage" => Self::CWS_FARGATE_TASK_USAGE, "cws_hosts_percentage" => Self::CWS_HOSTS_PERCENTAGE, "cws_hosts_usage" => Self::CWS_HOSTS_USAGE, "data_jobs_monitoring_usage" => Self::DATA_JOBS_MONITORING_USAGE, diff --git a/src/datadogV1/model/model_monthly_usage_attribution_values.rs b/src/datadogV1/model/model_monthly_usage_attribution_values.rs index cfce3e050..b5c41c31e 100644 --- a/src/datadogV1/model/model_monthly_usage_attribution_values.rs +++ b/src/datadogV1/model/model_monthly_usage_attribution_values.rs @@ -131,6 +131,12 @@ pub struct MonthlyUsageAttributionValues { /// The Cloud Workload Security container usage by tag(s). #[serde(rename = "cws_containers_usage")] pub cws_containers_usage: Option, + /// The percentage of Cloud Workload Security Fargate task usage by tag(s). + #[serde(rename = "cws_fargate_task_percentage")] + pub cws_fargate_task_percentage: Option, + /// The Cloud Workload Security Fargate task usage by tag(s). + #[serde(rename = "cws_fargate_task_usage")] + pub cws_fargate_task_usage: Option, /// The percentage of Cloud Workload Security host usage by tag(s). #[serde(rename = "cws_hosts_percentage")] pub cws_hosts_percentage: Option, @@ -463,6 +469,8 @@ impl MonthlyUsageAttributionValues { custom_timeseries_usage: None, cws_containers_percentage: None, cws_containers_usage: None, + cws_fargate_task_percentage: None, + cws_fargate_task_usage: None, cws_hosts_percentage: None, cws_hosts_usage: None, data_jobs_monitoring_usage: None, @@ -762,6 +770,16 @@ impl MonthlyUsageAttributionValues { self } + pub fn cws_fargate_task_percentage(mut self, value: f64) -> Self { + self.cws_fargate_task_percentage = Some(value); + self + } + + pub fn cws_fargate_task_usage(mut self, value: f64) -> Self { + self.cws_fargate_task_usage = Some(value); + self + } + pub fn cws_hosts_percentage(mut self, value: f64) -> Self { self.cws_hosts_percentage = Some(value); self @@ -1304,6 +1322,8 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionValues { let mut custom_timeseries_usage: Option = None; let mut cws_containers_percentage: Option = None; let mut cws_containers_usage: Option = None; + let mut cws_fargate_task_percentage: Option = None; + let mut cws_fargate_task_usage: Option = None; let mut cws_hosts_percentage: Option = None; let mut cws_hosts_usage: Option = None; let mut data_jobs_monitoring_usage: Option = None; @@ -1685,6 +1705,20 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionValues { cws_containers_usage = Some(serde_json::from_value(v).map_err(M::Error::custom)?); } + "cws_fargate_task_percentage" => { + if v.is_null() { + continue; + } + cws_fargate_task_percentage = + Some(serde_json::from_value(v).map_err(M::Error::custom)?); + } + "cws_fargate_task_usage" => { + if v.is_null() { + continue; + } + cws_fargate_task_usage = + Some(serde_json::from_value(v).map_err(M::Error::custom)?); + } "cws_hosts_percentage" => { if v.is_null() { continue; @@ -2391,6 +2425,8 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionValues { custom_timeseries_usage, cws_containers_percentage, cws_containers_usage, + cws_fargate_task_percentage, + cws_fargate_task_usage, cws_hosts_percentage, cws_hosts_usage, data_jobs_monitoring_usage, diff --git a/src/datadogV1/model/model_usage_summary_date.rs b/src/datadogV1/model/model_usage_summary_date.rs index 875cea190..030cca197 100644 --- a/src/datadogV1/model/model_usage_summary_date.rs +++ b/src/datadogV1/model/model_usage_summary_date.rs @@ -170,6 +170,9 @@ pub struct UsageSummaryDate { /// Shows the average of all distinct Cloud Workload Security containers over all hours in the current date for all organizations. #[serde(rename = "cws_container_count_avg")] pub cws_container_count_avg: Option, + /// Shows the average of all distinct Cloud Workload Security Fargate tasks over all hours in the current date for all organizations. + #[serde(rename = "cws_fargate_task_avg")] + pub cws_fargate_task_avg: Option, /// Shows the 99th percentile of all Cloud Workload Security hosts over all hours in the current date for all organizations. #[serde(rename = "cws_host_top99p")] pub cws_host_top99p: Option, @@ -505,6 +508,7 @@ impl UsageSummaryDate { cspm_host_top99p: None, custom_ts_avg: None, cws_container_count_avg: None, + cws_fargate_task_avg: None, cws_host_top99p: None, data_jobs_monitoring_host_hr_sum: None, date: None, @@ -909,6 +913,12 @@ impl UsageSummaryDate { self } + #[allow(deprecated)] + pub fn cws_fargate_task_avg(mut self, value: i64) -> Self { + self.cws_fargate_task_avg = Some(value); + self + } + #[allow(deprecated)] pub fn cws_host_top99p(mut self, value: i64) -> Self { self.cws_host_top99p = Some(value); @@ -1515,6 +1525,7 @@ impl<'de> Deserialize<'de> for UsageSummaryDate { let mut cspm_host_top99p: Option = None; let mut custom_ts_avg: Option = None; let mut cws_container_count_avg: Option = None; + let mut cws_fargate_task_avg: Option = None; let mut cws_host_top99p: Option = None; let mut data_jobs_monitoring_host_hr_sum: Option = None; let mut date: Option> = None; @@ -1974,6 +1985,13 @@ impl<'de> Deserialize<'de> for UsageSummaryDate { cws_container_count_avg = Some(serde_json::from_value(v).map_err(M::Error::custom)?); } + "cws_fargate_task_avg" => { + if v.is_null() { + continue; + } + cws_fargate_task_avg = + Some(serde_json::from_value(v).map_err(M::Error::custom)?); + } "cws_host_top99p" => { if v.is_null() { continue; @@ -2643,6 +2661,7 @@ impl<'de> Deserialize<'de> for UsageSummaryDate { cspm_host_top99p, custom_ts_avg, cws_container_count_avg, + cws_fargate_task_avg, cws_host_top99p, data_jobs_monitoring_host_hr_sum, date, diff --git a/src/datadogV1/model/model_usage_summary_date_org.rs b/src/datadogV1/model/model_usage_summary_date_org.rs index 1f3795881..a0ba45537 100644 --- a/src/datadogV1/model/model_usage_summary_date_org.rs +++ b/src/datadogV1/model/model_usage_summary_date_org.rs @@ -182,6 +182,9 @@ pub struct UsageSummaryDateOrg { /// Shows the average of all distinct Cloud Workload Security containers over all hours in the current date for the given org. #[serde(rename = "cws_container_count_avg")] pub cws_container_count_avg: Option, + /// Shows the average of all distinct Cloud Workload Security Fargate tasks over all hours in the current date for the given org. + #[serde(rename = "cws_fargate_task_avg")] + pub cws_fargate_task_avg: Option, /// Shows the 99th percentile of all Cloud Workload Security hosts over all hours in the current date for the given org. #[serde(rename = "cws_host_top99p")] pub cws_host_top99p: Option, @@ -528,6 +531,7 @@ impl UsageSummaryDateOrg { custom_live_ts_avg: None, custom_ts_avg: None, cws_container_count_avg: None, + cws_fargate_task_avg: None, cws_host_top99p: None, data_jobs_monitoring_host_hr_sum: None, dbm_host_top99p_sum: None, @@ -958,6 +962,12 @@ impl UsageSummaryDateOrg { self } + #[allow(deprecated)] + pub fn cws_fargate_task_avg(mut self, value: i64) -> Self { + self.cws_fargate_task_avg = Some(value); + self + } + #[allow(deprecated)] pub fn cws_host_top99p(mut self, value: i64) -> Self { self.cws_host_top99p = Some(value); @@ -1580,6 +1590,7 @@ impl<'de> Deserialize<'de> for UsageSummaryDateOrg { let mut custom_live_ts_avg: Option = None; let mut custom_ts_avg: Option = None; let mut cws_container_count_avg: Option = None; + let mut cws_fargate_task_avg: Option = None; let mut cws_host_top99p: Option = None; let mut data_jobs_monitoring_host_hr_sum: Option = None; let mut dbm_host_top99p_sum: Option = None; @@ -2069,6 +2080,13 @@ impl<'de> Deserialize<'de> for UsageSummaryDateOrg { cws_container_count_avg = Some(serde_json::from_value(v).map_err(M::Error::custom)?); } + "cws_fargate_task_avg" => { + if v.is_null() { + continue; + } + cws_fargate_task_avg = + Some(serde_json::from_value(v).map_err(M::Error::custom)?); + } "cws_host_top99p" => { if v.is_null() { continue; @@ -2754,6 +2772,7 @@ impl<'de> Deserialize<'de> for UsageSummaryDateOrg { custom_live_ts_avg, custom_ts_avg, cws_container_count_avg, + cws_fargate_task_avg, cws_host_top99p, data_jobs_monitoring_host_hr_sum, dbm_host_top99p_sum, diff --git a/src/datadogV1/model/model_usage_summary_response.rs b/src/datadogV1/model/model_usage_summary_response.rs index a0590e7b1..547f53211 100644 --- a/src/datadogV1/model/model_usage_summary_response.rs +++ b/src/datadogV1/model/model_usage_summary_response.rs @@ -177,8 +177,11 @@ pub struct UsageSummaryResponse { #[serde(rename = "custom_ts_sum")] pub custom_ts_sum: Option, /// Shows the average of all distinct Cloud Workload Security containers over all hours in the current month for all organizations. - #[serde(rename = "cws_containers_avg_sum")] - pub cws_containers_avg_sum: Option, + #[serde(rename = "cws_container_avg_sum")] + pub cws_container_avg_sum: Option, + /// Shows the average of all distinct Cloud Workload Security Fargate tasks over all hours in the current month for all organizations. + #[serde(rename = "cws_fargate_task_avg_sum")] + pub cws_fargate_task_avg_sum: Option, /// Shows the 99th percentile of all Cloud Workload Security hosts over all hours in the current month for all organizations. #[serde(rename = "cws_host_top99p_sum")] pub cws_host_top99p_sum: Option, @@ -543,7 +546,8 @@ impl UsageSummaryResponse { custom_historical_ts_sum: None, custom_live_ts_sum: None, custom_ts_sum: None, - cws_containers_avg_sum: None, + cws_container_avg_sum: None, + cws_fargate_task_avg_sum: None, cws_host_top99p_sum: None, data_jobs_monitoring_host_hr_agg_sum: None, dbm_host_top99p_sum: None, @@ -969,8 +973,14 @@ impl UsageSummaryResponse { } #[allow(deprecated)] - pub fn cws_containers_avg_sum(mut self, value: i64) -> Self { - self.cws_containers_avg_sum = Some(value); + pub fn cws_container_avg_sum(mut self, value: i64) -> Self { + self.cws_container_avg_sum = Some(value); + self + } + + #[allow(deprecated)] + pub fn cws_fargate_task_avg_sum(mut self, value: i64) -> Self { + self.cws_fargate_task_avg_sum = Some(value); self } @@ -1630,7 +1640,8 @@ impl<'de> Deserialize<'de> for UsageSummaryResponse { let mut custom_historical_ts_sum: Option = None; let mut custom_live_ts_sum: Option = None; let mut custom_ts_sum: Option = None; - let mut cws_containers_avg_sum: Option = None; + let mut cws_container_avg_sum: Option = None; + let mut cws_fargate_task_avg_sum: Option = None; let mut cws_host_top99p_sum: Option = None; let mut data_jobs_monitoring_host_hr_agg_sum: Option = None; let mut dbm_host_top99p_sum: Option = None; @@ -2112,11 +2123,18 @@ impl<'de> Deserialize<'de> for UsageSummaryResponse { custom_ts_sum = Some(serde_json::from_value(v).map_err(M::Error::custom)?); } - "cws_containers_avg_sum" => { + "cws_container_avg_sum" => { + if v.is_null() { + continue; + } + cws_container_avg_sum = + Some(serde_json::from_value(v).map_err(M::Error::custom)?); + } + "cws_fargate_task_avg_sum" => { if v.is_null() { continue; } - cws_containers_avg_sum = + cws_fargate_task_avg_sum = Some(serde_json::from_value(v).map_err(M::Error::custom)?); } "cws_host_top99p_sum" => { @@ -2845,7 +2863,8 @@ impl<'de> Deserialize<'de> for UsageSummaryResponse { custom_historical_ts_sum, custom_live_ts_sum, custom_ts_sum, - cws_containers_avg_sum, + cws_container_avg_sum, + cws_fargate_task_avg_sum, cws_host_top99p_sum, data_jobs_monitoring_host_hr_agg_sum, dbm_host_top99p_sum, From 8d1f7d61d1e694aec20a2591555f3a5faffec62a Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 8 Nov 2024 19:45:48 +0000 Subject: [PATCH 02/10] pre-commit fixes --- examples/v2_security-monitoring_GetHistoricalJob.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/v2_security-monitoring_GetHistoricalJob.rs b/examples/v2_security-monitoring_GetHistoricalJob.rs index af35afafe..022f165d2 100644 --- a/examples/v2_security-monitoring_GetHistoricalJob.rs +++ b/examples/v2_security-monitoring_GetHistoricalJob.rs @@ -7,8 +7,8 @@ async fn main() { // there is a valid "historical_job" in the system let historical_job_data_id = std::env::var("HISTORICAL_JOB_DATA_ID").unwrap(); let mut configuration = datadog::Configuration::new(); - configuration.set_unstable_operation_enabled("v2.RunHistoricalJob", true); configuration.set_unstable_operation_enabled("v2.GetHistoricalJob", true); + configuration.set_unstable_operation_enabled("v2.RunHistoricalJob", true); let api = SecurityMonitoringAPI::with_config(configuration); let resp = api.get_historical_job(historical_job_data_id.clone()).await; if let Ok(value) = resp { From 1c20cbb91644f0af04a66ab21d3efc60ecea6a49 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 8 Nov 2024 19:49:46 +0000 Subject: [PATCH 03/10] pre-commit fixes --- examples/v2_security-monitoring_GetHistoricalJob.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/v2_security-monitoring_GetHistoricalJob.rs b/examples/v2_security-monitoring_GetHistoricalJob.rs index 022f165d2..af35afafe 100644 --- a/examples/v2_security-monitoring_GetHistoricalJob.rs +++ b/examples/v2_security-monitoring_GetHistoricalJob.rs @@ -7,8 +7,8 @@ async fn main() { // there is a valid "historical_job" in the system let historical_job_data_id = std::env::var("HISTORICAL_JOB_DATA_ID").unwrap(); let mut configuration = datadog::Configuration::new(); - configuration.set_unstable_operation_enabled("v2.GetHistoricalJob", true); configuration.set_unstable_operation_enabled("v2.RunHistoricalJob", true); + configuration.set_unstable_operation_enabled("v2.GetHistoricalJob", true); let api = SecurityMonitoringAPI::with_config(configuration); let resp = api.get_historical_job(historical_job_data_id.clone()).await; if let Ok(value) = resp { From 26c061ad3e5f63adb9231f8cb144cc16bfb88937 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 8 Nov 2024 19:53:45 +0000 Subject: [PATCH 04/10] pre-commit fixes --- examples/v2_security-monitoring_CancelHistoricalJob.rs | 2 +- examples/v2_security-monitoring_ListHistoricalJobs.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/v2_security-monitoring_CancelHistoricalJob.rs b/examples/v2_security-monitoring_CancelHistoricalJob.rs index 315f3054c..587767bec 100644 --- a/examples/v2_security-monitoring_CancelHistoricalJob.rs +++ b/examples/v2_security-monitoring_CancelHistoricalJob.rs @@ -7,8 +7,8 @@ async fn main() { // there is a valid "historical_job" in the system let historical_job_data_id = std::env::var("HISTORICAL_JOB_DATA_ID").unwrap(); let mut configuration = datadog::Configuration::new(); - configuration.set_unstable_operation_enabled("v2.CancelHistoricalJob", true); configuration.set_unstable_operation_enabled("v2.RunHistoricalJob", true); + configuration.set_unstable_operation_enabled("v2.CancelHistoricalJob", true); let api = SecurityMonitoringAPI::with_config(configuration); let resp = api .cancel_historical_job(historical_job_data_id.clone()) diff --git a/examples/v2_security-monitoring_ListHistoricalJobs.rs b/examples/v2_security-monitoring_ListHistoricalJobs.rs index 5122fd3d0..b5c50bc6c 100644 --- a/examples/v2_security-monitoring_ListHistoricalJobs.rs +++ b/examples/v2_security-monitoring_ListHistoricalJobs.rs @@ -7,8 +7,8 @@ use datadog_api_client::datadogV2::api_security_monitoring::SecurityMonitoringAP async fn main() { // there is a valid "historical_job" in the system let mut configuration = datadog::Configuration::new(); - configuration.set_unstable_operation_enabled("v2.ListHistoricalJobs", true); configuration.set_unstable_operation_enabled("v2.RunHistoricalJob", true); + configuration.set_unstable_operation_enabled("v2.ListHistoricalJobs", true); let api = SecurityMonitoringAPI::with_config(configuration); let resp = api .list_historical_jobs( From 17a1c7700fc75f213349737d6ec0df04b3182d98 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 8 Nov 2024 19:57:37 +0000 Subject: [PATCH 05/10] pre-commit fixes --- examples/v2_security-monitoring_CancelHistoricalJob.rs | 2 +- examples/v2_security-monitoring_GetHistoricalJob.rs | 2 +- examples/v2_security-monitoring_ListHistoricalJobs.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/v2_security-monitoring_CancelHistoricalJob.rs b/examples/v2_security-monitoring_CancelHistoricalJob.rs index 587767bec..315f3054c 100644 --- a/examples/v2_security-monitoring_CancelHistoricalJob.rs +++ b/examples/v2_security-monitoring_CancelHistoricalJob.rs @@ -7,8 +7,8 @@ async fn main() { // there is a valid "historical_job" in the system let historical_job_data_id = std::env::var("HISTORICAL_JOB_DATA_ID").unwrap(); let mut configuration = datadog::Configuration::new(); - configuration.set_unstable_operation_enabled("v2.RunHistoricalJob", true); configuration.set_unstable_operation_enabled("v2.CancelHistoricalJob", true); + configuration.set_unstable_operation_enabled("v2.RunHistoricalJob", true); let api = SecurityMonitoringAPI::with_config(configuration); let resp = api .cancel_historical_job(historical_job_data_id.clone()) diff --git a/examples/v2_security-monitoring_GetHistoricalJob.rs b/examples/v2_security-monitoring_GetHistoricalJob.rs index af35afafe..022f165d2 100644 --- a/examples/v2_security-monitoring_GetHistoricalJob.rs +++ b/examples/v2_security-monitoring_GetHistoricalJob.rs @@ -7,8 +7,8 @@ async fn main() { // there is a valid "historical_job" in the system let historical_job_data_id = std::env::var("HISTORICAL_JOB_DATA_ID").unwrap(); let mut configuration = datadog::Configuration::new(); - configuration.set_unstable_operation_enabled("v2.RunHistoricalJob", true); configuration.set_unstable_operation_enabled("v2.GetHistoricalJob", true); + configuration.set_unstable_operation_enabled("v2.RunHistoricalJob", true); let api = SecurityMonitoringAPI::with_config(configuration); let resp = api.get_historical_job(historical_job_data_id.clone()).await; if let Ok(value) = resp { diff --git a/examples/v2_security-monitoring_ListHistoricalJobs.rs b/examples/v2_security-monitoring_ListHistoricalJobs.rs index b5c50bc6c..5122fd3d0 100644 --- a/examples/v2_security-monitoring_ListHistoricalJobs.rs +++ b/examples/v2_security-monitoring_ListHistoricalJobs.rs @@ -7,8 +7,8 @@ use datadog_api_client::datadogV2::api_security_monitoring::SecurityMonitoringAP async fn main() { // there is a valid "historical_job" in the system let mut configuration = datadog::Configuration::new(); - configuration.set_unstable_operation_enabled("v2.RunHistoricalJob", true); configuration.set_unstable_operation_enabled("v2.ListHistoricalJobs", true); + configuration.set_unstable_operation_enabled("v2.RunHistoricalJob", true); let api = SecurityMonitoringAPI::with_config(configuration); let resp = api .list_historical_jobs( From 833590dfdf89e618682514fd48135c75f7322776 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 8 Nov 2024 20:01:46 +0000 Subject: [PATCH 06/10] pre-commit fixes --- examples/v2_security-monitoring_CancelHistoricalJob.rs | 2 +- examples/v2_security-monitoring_ListHistoricalJobs.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/v2_security-monitoring_CancelHistoricalJob.rs b/examples/v2_security-monitoring_CancelHistoricalJob.rs index 315f3054c..587767bec 100644 --- a/examples/v2_security-monitoring_CancelHistoricalJob.rs +++ b/examples/v2_security-monitoring_CancelHistoricalJob.rs @@ -7,8 +7,8 @@ async fn main() { // there is a valid "historical_job" in the system let historical_job_data_id = std::env::var("HISTORICAL_JOB_DATA_ID").unwrap(); let mut configuration = datadog::Configuration::new(); - configuration.set_unstable_operation_enabled("v2.CancelHistoricalJob", true); configuration.set_unstable_operation_enabled("v2.RunHistoricalJob", true); + configuration.set_unstable_operation_enabled("v2.CancelHistoricalJob", true); let api = SecurityMonitoringAPI::with_config(configuration); let resp = api .cancel_historical_job(historical_job_data_id.clone()) diff --git a/examples/v2_security-monitoring_ListHistoricalJobs.rs b/examples/v2_security-monitoring_ListHistoricalJobs.rs index 5122fd3d0..b5c50bc6c 100644 --- a/examples/v2_security-monitoring_ListHistoricalJobs.rs +++ b/examples/v2_security-monitoring_ListHistoricalJobs.rs @@ -7,8 +7,8 @@ use datadog_api_client::datadogV2::api_security_monitoring::SecurityMonitoringAP async fn main() { // there is a valid "historical_job" in the system let mut configuration = datadog::Configuration::new(); - configuration.set_unstable_operation_enabled("v2.ListHistoricalJobs", true); configuration.set_unstable_operation_enabled("v2.RunHistoricalJob", true); + configuration.set_unstable_operation_enabled("v2.ListHistoricalJobs", true); let api = SecurityMonitoringAPI::with_config(configuration); let resp = api .list_historical_jobs( From 92dc5251ff7806f5ea2514db81bd2ba8058d8408 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 8 Nov 2024 20:05:46 +0000 Subject: [PATCH 07/10] pre-commit fixes --- examples/v2_security-monitoring_ListHistoricalJobs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/v2_security-monitoring_ListHistoricalJobs.rs b/examples/v2_security-monitoring_ListHistoricalJobs.rs index b5c50bc6c..5122fd3d0 100644 --- a/examples/v2_security-monitoring_ListHistoricalJobs.rs +++ b/examples/v2_security-monitoring_ListHistoricalJobs.rs @@ -7,8 +7,8 @@ use datadog_api_client::datadogV2::api_security_monitoring::SecurityMonitoringAP async fn main() { // there is a valid "historical_job" in the system let mut configuration = datadog::Configuration::new(); - configuration.set_unstable_operation_enabled("v2.RunHistoricalJob", true); configuration.set_unstable_operation_enabled("v2.ListHistoricalJobs", true); + configuration.set_unstable_operation_enabled("v2.RunHistoricalJob", true); let api = SecurityMonitoringAPI::with_config(configuration); let resp = api .list_historical_jobs( From 950ddcd54152a439b2c26d92ad72f25cb9b54129 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 8 Nov 2024 20:09:52 +0000 Subject: [PATCH 08/10] pre-commit fixes --- examples/v2_security-monitoring_CancelHistoricalJob.rs | 2 +- examples/v2_security-monitoring_ListHistoricalJobs.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/v2_security-monitoring_CancelHistoricalJob.rs b/examples/v2_security-monitoring_CancelHistoricalJob.rs index 587767bec..315f3054c 100644 --- a/examples/v2_security-monitoring_CancelHistoricalJob.rs +++ b/examples/v2_security-monitoring_CancelHistoricalJob.rs @@ -7,8 +7,8 @@ async fn main() { // there is a valid "historical_job" in the system let historical_job_data_id = std::env::var("HISTORICAL_JOB_DATA_ID").unwrap(); let mut configuration = datadog::Configuration::new(); - configuration.set_unstable_operation_enabled("v2.RunHistoricalJob", true); configuration.set_unstable_operation_enabled("v2.CancelHistoricalJob", true); + configuration.set_unstable_operation_enabled("v2.RunHistoricalJob", true); let api = SecurityMonitoringAPI::with_config(configuration); let resp = api .cancel_historical_job(historical_job_data_id.clone()) diff --git a/examples/v2_security-monitoring_ListHistoricalJobs.rs b/examples/v2_security-monitoring_ListHistoricalJobs.rs index 5122fd3d0..b5c50bc6c 100644 --- a/examples/v2_security-monitoring_ListHistoricalJobs.rs +++ b/examples/v2_security-monitoring_ListHistoricalJobs.rs @@ -7,8 +7,8 @@ use datadog_api_client::datadogV2::api_security_monitoring::SecurityMonitoringAP async fn main() { // there is a valid "historical_job" in the system let mut configuration = datadog::Configuration::new(); - configuration.set_unstable_operation_enabled("v2.ListHistoricalJobs", true); configuration.set_unstable_operation_enabled("v2.RunHistoricalJob", true); + configuration.set_unstable_operation_enabled("v2.ListHistoricalJobs", true); let api = SecurityMonitoringAPI::with_config(configuration); let resp = api .list_historical_jobs( From f887589d279022535171082803dac309ce6da354 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 8 Nov 2024 20:13:46 +0000 Subject: [PATCH 09/10] pre-commit fixes --- examples/v2_security-monitoring_GetHistoricalJob.rs | 2 +- examples/v2_security-monitoring_ListHistoricalJobs.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/v2_security-monitoring_GetHistoricalJob.rs b/examples/v2_security-monitoring_GetHistoricalJob.rs index 022f165d2..af35afafe 100644 --- a/examples/v2_security-monitoring_GetHistoricalJob.rs +++ b/examples/v2_security-monitoring_GetHistoricalJob.rs @@ -7,8 +7,8 @@ async fn main() { // there is a valid "historical_job" in the system let historical_job_data_id = std::env::var("HISTORICAL_JOB_DATA_ID").unwrap(); let mut configuration = datadog::Configuration::new(); - configuration.set_unstable_operation_enabled("v2.GetHistoricalJob", true); configuration.set_unstable_operation_enabled("v2.RunHistoricalJob", true); + configuration.set_unstable_operation_enabled("v2.GetHistoricalJob", true); let api = SecurityMonitoringAPI::with_config(configuration); let resp = api.get_historical_job(historical_job_data_id.clone()).await; if let Ok(value) = resp { diff --git a/examples/v2_security-monitoring_ListHistoricalJobs.rs b/examples/v2_security-monitoring_ListHistoricalJobs.rs index b5c50bc6c..5122fd3d0 100644 --- a/examples/v2_security-monitoring_ListHistoricalJobs.rs +++ b/examples/v2_security-monitoring_ListHistoricalJobs.rs @@ -7,8 +7,8 @@ use datadog_api_client::datadogV2::api_security_monitoring::SecurityMonitoringAP async fn main() { // there is a valid "historical_job" in the system let mut configuration = datadog::Configuration::new(); - configuration.set_unstable_operation_enabled("v2.RunHistoricalJob", true); configuration.set_unstable_operation_enabled("v2.ListHistoricalJobs", true); + configuration.set_unstable_operation_enabled("v2.RunHistoricalJob", true); let api = SecurityMonitoringAPI::with_config(configuration); let resp = api .list_historical_jobs( From 8be400572d0f214030687c71cd66674bc383d242 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 8 Nov 2024 20:17:33 +0000 Subject: [PATCH 10/10] pre-commit fixes --- examples/v2_security-monitoring_GetHistoricalJob.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/v2_security-monitoring_GetHistoricalJob.rs b/examples/v2_security-monitoring_GetHistoricalJob.rs index af35afafe..022f165d2 100644 --- a/examples/v2_security-monitoring_GetHistoricalJob.rs +++ b/examples/v2_security-monitoring_GetHistoricalJob.rs @@ -7,8 +7,8 @@ async fn main() { // there is a valid "historical_job" in the system let historical_job_data_id = std::env::var("HISTORICAL_JOB_DATA_ID").unwrap(); let mut configuration = datadog::Configuration::new(); - configuration.set_unstable_operation_enabled("v2.RunHistoricalJob", true); configuration.set_unstable_operation_enabled("v2.GetHistoricalJob", true); + configuration.set_unstable_operation_enabled("v2.RunHistoricalJob", true); let api = SecurityMonitoringAPI::with_config(configuration); let resp = api.get_historical_job(historical_job_data_id.clone()).await; if let Ok(value) = resp {