Skip to content

Commit c2f2038

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 8864912 of spec repo
1 parent 96a61ec commit c2f2038

File tree

58 files changed

+1003
-3839
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+1003
-3839
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 84 additions & 456 deletions
Large diffs are not rendered by default.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Get all suppression rules returns "OK" response with sort ascending
2+
use datadog_api_client::datadog;
3+
use datadog_api_client::datadogV2::api_security_monitoring::ListSecurityMonitoringSuppressionsOptionalParams;
4+
use datadog_api_client::datadogV2::api_security_monitoring::SecurityMonitoringAPI;
5+
use datadog_api_client::datadogV2::model::SecurityMonitoringSuppressionSort;
6+
7+
#[tokio::main]
8+
async fn main() {
9+
// there is a valid "suppression" in the system there is a valid "suppression2" in
10+
// the system
11+
let configuration = datadog::Configuration::new();
12+
let api = SecurityMonitoringAPI::with_config(configuration);
13+
let resp = api
14+
.list_security_monitoring_suppressions(
15+
ListSecurityMonitoringSuppressionsOptionalParams::default()
16+
.sort(SecurityMonitoringSuppressionSort::NAME)
17+
.query("id:3dd-0uc-h1s OR id:886e6c3e-e543-049c-ee1b-56a1110295c0".to_string()),
18+
)
19+
.await;
20+
if let Ok(value) = resp {
21+
println!("{:#?}", value);
22+
} else {
23+
println!("{:#?}", resp.unwrap_err());
24+
}
25+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Get all suppression rules returns "OK" response with sort descending
2+
use datadog_api_client::datadog;
3+
use datadog_api_client::datadogV2::api_security_monitoring::ListSecurityMonitoringSuppressionsOptionalParams;
4+
use datadog_api_client::datadogV2::api_security_monitoring::SecurityMonitoringAPI;
5+
use datadog_api_client::datadogV2::model::SecurityMonitoringSuppressionSort;
6+
7+
#[tokio::main]
8+
async fn main() {
9+
// there is a valid "suppression" in the system there is a valid "suppression2" in
10+
// the system
11+
let configuration = datadog::Configuration::new();
12+
let api = SecurityMonitoringAPI::with_config(configuration);
13+
let resp = api
14+
.list_security_monitoring_suppressions(
15+
ListSecurityMonitoringSuppressionsOptionalParams::default()
16+
.sort(SecurityMonitoringSuppressionSort::NAME_DESCENDING)
17+
.query("id:3dd-0uc-h1s OR id:886e6c3e-e543-049c-ee1b-56a1110295c0".to_string()),
18+
)
19+
.await;
20+
if let Ok(value) = resp {
21+
println!("{:#?}", value);
22+
} else {
23+
println!("{:#?}", resp.unwrap_err());
24+
}
25+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Get all suppression rules returns "OK" response with pagination
2+
use datadog_api_client::datadog;
3+
use datadog_api_client::datadogV2::api_security_monitoring::ListSecurityMonitoringSuppressionsOptionalParams;
4+
use datadog_api_client::datadogV2::api_security_monitoring::SecurityMonitoringAPI;
5+
6+
#[tokio::main]
7+
async fn main() {
8+
// there is a valid "suppression" in the system there is a valid "suppression2" in
9+
// the system
10+
let configuration = datadog::Configuration::new();
11+
let api = SecurityMonitoringAPI::with_config(configuration);
12+
let resp = api
13+
.list_security_monitoring_suppressions(
14+
ListSecurityMonitoringSuppressionsOptionalParams::default()
15+
.page_size(1)
16+
.page_number(0)
17+
.query("id:3dd-0uc-h1s OR id:886e6c3e-e543-049c-ee1b-56a1110295c0".to_string()),
18+
)
19+
.await;
20+
if let Ok(value) = resp {
21+
println!("{:#?}", value);
22+
} else {
23+
println!("{:#?}", resp.unwrap_err());
24+
}
25+
}

examples/v2_synthetics_CreateSyntheticsSuite.rs

Lines changed: 0 additions & 32 deletions
This file was deleted.

examples/v2_synthetics_DeleteSyntheticsSuites.rs

Lines changed: 0 additions & 25 deletions
This file was deleted.

examples/v2_synthetics_EditSyntheticsSuite.rs

Lines changed: 0 additions & 37 deletions
This file was deleted.

examples/v2_synthetics_GetSyntheticsSuite.rs

Lines changed: 0 additions & 15 deletions
This file was deleted.

examples/v2_synthetics_SearchSuites.rs

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/datadogV2/api/api_on_call.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ impl GetOnCallTeamRoutingRulesOptionalParams {
9696
pub struct GetScheduleOnCallUserOptionalParams {
9797
/// Specifies related resources to include in the response as a comma-separated list. Allowed value: `user`.
9898
pub include: Option<String>,
99-
/// Retrieves the on-call user at the given timestamp (ISO-8601). Defaults to the current time if omitted."
99+
/// Retrieves the on-call user at the given timestamp in RFC3339 format (for example, `2025-05-07T02:53:01Z` or `2025-05-07T02:53:01+00:00`). When using timezone offsets with `+` or `-`, ensure proper URL encoding (`+` should be encoded as `%2B`). Defaults to the current time if omitted.
100100
pub filter_at_ts: Option<String>,
101101
}
102102

@@ -106,7 +106,7 @@ impl GetScheduleOnCallUserOptionalParams {
106106
self.include = Some(value);
107107
self
108108
}
109-
/// Retrieves the on-call user at the given timestamp (ISO-8601). Defaults to the current time if omitted."
109+
/// Retrieves the on-call user at the given timestamp in RFC3339 format (for example, `2025-05-07T02:53:01Z` or `2025-05-07T02:53:01+00:00`). When using timezone offsets with `+` or `-`, ensure proper URL encoding (`+` should be encoded as `%2B`). Defaults to the current time if omitted.
110110
pub fn filter_at_ts(mut self, value: String) -> Self {
111111
self.filter_at_ts = Some(value);
112112
self

0 commit comments

Comments
 (0)