Skip to content

Commit 7d646cc

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 646e8bc3 of spec repo
1 parent 018c9f3 commit 7d646cc

16 files changed

+31
-185
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2024-11-15 19:35:10.102953",
8-
"spec_repo_commit": "ad80112e"
7+
"regenerated": "2024-11-19 16:58:59.807225",
8+
"spec_repo_commit": "646e8bc3"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-11-15 19:35:10.121640",
13-
"spec_repo_commit": "ad80112e"
12+
"regenerated": "2024-11-19 16:58:59.826161",
13+
"spec_repo_commit": "646e8bc3"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -15178,34 +15178,8 @@ components:
1517815178
type: object
1517915179
SyntheticsDeviceID:
1518015180
description: The device ID.
15181-
enum:
15182-
- laptop_large
15183-
- tablet
15184-
- mobile_small
15185-
- chrome.laptop_large
15186-
- chrome.tablet
15187-
- chrome.mobile_small
15188-
- firefox.laptop_large
15189-
- firefox.tablet
15190-
- firefox.mobile_small
15191-
- edge.laptop_large
15192-
- edge.tablet
15193-
- edge.mobile_small
1519415181
example: chrome.laptop_large
1519515182
type: string
15196-
x-enum-varnames:
15197-
- LAPTOP_LARGE
15198-
- TABLET
15199-
- MOBILE_SMALL
15200-
- CHROME_LAPTOP_LARGE
15201-
- CHROME_TABLET
15202-
- CHROME_MOBILE_SMALL
15203-
- FIREFOX_LAPTOP_LARGE
15204-
- FIREFOX_TABLET
15205-
- FIREFOX_MOBILE_SMALL
15206-
- EDGE_LAPTOP_LARGE
15207-
- EDGE_TABLET
15208-
- EDGE_MOBILE_SMALL
1520915183
SyntheticsFetchUptimesPayload:
1521015184
description: Object containing IDs of Synthetic tests and a timeframe.
1521115185
properties:
@@ -15508,10 +15482,6 @@ components:
1550815482
$ref: '#/components/schemas/SyntheticsLocation'
1550915483
type: array
1551015484
type: object
15511-
SyntheticsMobileDeviceID:
15512-
description: The device ID.
15513-
example: synthetics:mobile:device:apple_ipad_10th_gen_2022_ios_16
15514-
type: string
1551515485
SyntheticsMobileStep:
1551615486
description: The steps used in a Synthetic mobile test.
1551715487
properties:
@@ -15787,7 +15757,7 @@ components:
1578715757
device_ids:
1578815758
description: Array with the different device IDs used to run the test.
1578915759
items:
15790-
$ref: '#/components/schemas/SyntheticsMobileDeviceID'
15760+
$ref: '#/components/schemas/SyntheticsDeviceID'
1579115761
type: array
1579215762
message:
1579315763
description: Notification message associated with the test.
@@ -15876,7 +15846,7 @@ components:
1587615846
example:
1587715847
- synthetics:mobile:device:apple_ipad_10th_gen_2022_ios_16
1587815848
items:
15879-
$ref: '#/components/schemas/SyntheticsMobileDeviceID'
15849+
$ref: '#/components/schemas/SyntheticsDeviceID'
1588015850
type: array
1588115851
disableAutoAcceptAlert:
1588215852
description: A boolean to disable auto accepting alerts.

examples/v1_synthetics_CreateSyntheticsAPITest.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ use datadog_api_client::datadogV1::model::SyntheticsAssertionOperator;
99
use datadog_api_client::datadogV1::model::SyntheticsAssertionTarget;
1010
use datadog_api_client::datadogV1::model::SyntheticsAssertionType;
1111
use datadog_api_client::datadogV1::model::SyntheticsBrowserTestRumSettings;
12-
use datadog_api_client::datadogV1::model::SyntheticsDeviceID;
1312
use datadog_api_client::datadogV1::model::SyntheticsTestCiOptions;
1413
use datadog_api_client::datadogV1::model::SyntheticsTestDetailsSubType;
1514
use datadog_api_client::datadogV1::model::SyntheticsTestExecutionRule;
@@ -47,7 +46,7 @@ async fn main() {
4746
.ci(SyntheticsTestCiOptions::new(
4847
SyntheticsTestExecutionRule::BLOCKING,
4948
))
50-
.device_ids(vec![SyntheticsDeviceID::CHROME_LAPTOP_LARGE])
49+
.device_ids(vec!["chrome.laptop_large".to_string()])
5150
.http_version(SyntheticsTestOptionsHTTPVersion::HTTP1)
5251
.monitor_options(
5352
SyntheticsTestOptionsMonitorOptions::new().notification_preset_name(

examples/v1_synthetics_CreateSyntheticsBrowserTest.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ use datadog_api_client::datadogV1::model::SyntheticsBrowserVariable;
88
use datadog_api_client::datadogV1::model::SyntheticsBrowserVariableType;
99
use datadog_api_client::datadogV1::model::SyntheticsConfigVariable;
1010
use datadog_api_client::datadogV1::model::SyntheticsConfigVariableType;
11-
use datadog_api_client::datadogV1::model::SyntheticsDeviceID;
1211
use datadog_api_client::datadogV1::model::SyntheticsStep;
1312
use datadog_api_client::datadogV1::model::SyntheticsStepType;
1413
use datadog_api_client::datadogV1::model::SyntheticsTestOptions;
@@ -46,7 +45,7 @@ async fn main() {
4645
SyntheticsTestOptions::new()
4746
.accept_self_signed(false)
4847
.allow_insecure(true)
49-
.device_ids(vec![SyntheticsDeviceID::CHROME_LAPTOP_LARGE])
48+
.device_ids(vec!["chrome.laptop_large".to_string()])
5049
.disable_cors(true)
5150
.enable_profiling(true)
5251
.enable_security_testing(true)

examples/v1_synthetics_CreateSyntheticsBrowserTest_2932742688.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ use datadog_api_client::datadogV1::model::SyntheticsBrowserTestRumSettings;
77
use datadog_api_client::datadogV1::model::SyntheticsBrowserTestType;
88
use datadog_api_client::datadogV1::model::SyntheticsConfigVariable;
99
use datadog_api_client::datadogV1::model::SyntheticsConfigVariableType;
10-
use datadog_api_client::datadogV1::model::SyntheticsDeviceID;
1110
use datadog_api_client::datadogV1::model::SyntheticsStep;
1211
use datadog_api_client::datadogV1::model::SyntheticsStepType;
1312
use datadog_api_client::datadogV1::model::SyntheticsTestCiOptions;
@@ -43,7 +42,7 @@ async fn main() {
4342
.ci(SyntheticsTestCiOptions::new(
4443
SyntheticsTestExecutionRule::SKIPPED,
4544
))
46-
.device_ids(vec![SyntheticsDeviceID::TABLET])
45+
.device_ids(vec!["tablet".to_string()])
4746
.disable_cors(true)
4847
.disable_csp(true)
4948
.follow_redirects(true)

examples/v1_synthetics_CreateSyntheticsBrowserTest_397420811.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ use datadog_api_client::datadogV1::model::SyntheticsBrowserTestConfig;
77
use datadog_api_client::datadogV1::model::SyntheticsBrowserTestType;
88
use datadog_api_client::datadogV1::model::SyntheticsConfigVariable;
99
use datadog_api_client::datadogV1::model::SyntheticsConfigVariableType;
10-
use datadog_api_client::datadogV1::model::SyntheticsDeviceID;
1110
use datadog_api_client::datadogV1::model::SyntheticsStep;
1211
use datadog_api_client::datadogV1::model::SyntheticsStepType;
1312
use datadog_api_client::datadogV1::model::SyntheticsTestOptions;
@@ -39,7 +38,7 @@ async fn main() {
3938
SyntheticsTestOptions::new()
4039
.accept_self_signed(false)
4140
.allow_insecure(true)
42-
.device_ids(vec![SyntheticsDeviceID::TABLET])
41+
.device_ids(vec!["tablet".to_string()])
4342
.disable_cors(true)
4443
.follow_redirects(true)
4544
.min_failure_duration(10)

examples/v1_synthetics_TriggerCITests.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ use datadog_api_client::datadogV1::model::SyntheticsCIBatchMetadataPipeline;
1111
use datadog_api_client::datadogV1::model::SyntheticsCIBatchMetadataProvider;
1212
use datadog_api_client::datadogV1::model::SyntheticsCITest;
1313
use datadog_api_client::datadogV1::model::SyntheticsCITestBody;
14-
use datadog_api_client::datadogV1::model::SyntheticsDeviceID;
1514
use datadog_api_client::datadogV1::model::SyntheticsTestOptionsRetry;
1615

1716
#[tokio::main]
@@ -22,7 +21,7 @@ async fn main() {
2221
SyntheticsBasicAuthWeb::new("PaSSw0RD!".to_string(), "my_username".to_string())
2322
.type_(SyntheticsBasicAuthWebType::WEB),
2423
)))
25-
.device_ids(vec![SyntheticsDeviceID::CHROME_LAPTOP_LARGE])
24+
.device_ids(vec!["chrome.laptop_large".to_string()])
2625
.locations(vec!["aws:eu-west-3".to_string()])
2726
.metadata(
2827
SyntheticsCIBatchMetadata::new()

examples/v1_synthetics_UpdateBrowserTest.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ use datadog_api_client::datadogV1::model::SyntheticsBrowserVariable;
1212
use datadog_api_client::datadogV1::model::SyntheticsBrowserVariableType;
1313
use datadog_api_client::datadogV1::model::SyntheticsConfigVariable;
1414
use datadog_api_client::datadogV1::model::SyntheticsConfigVariableType;
15-
use datadog_api_client::datadogV1::model::SyntheticsDeviceID;
1615
use datadog_api_client::datadogV1::model::SyntheticsStep;
1716
use datadog_api_client::datadogV1::model::SyntheticsStepType;
1817
use datadog_api_client::datadogV1::model::SyntheticsTestCallType;
@@ -75,7 +74,7 @@ async fn main() {
7574
.ci(SyntheticsTestCiOptions::new(
7675
SyntheticsTestExecutionRule::BLOCKING,
7776
))
78-
.device_ids(vec![SyntheticsDeviceID::CHROME_LAPTOP_LARGE])
77+
.device_ids(vec!["chrome.laptop_large".to_string()])
7978
.http_version(SyntheticsTestOptionsHTTPVersion::HTTP1)
8079
.monitor_options(
8180
SyntheticsTestOptionsMonitorOptions::new().notification_preset_name(

src/datadogV1/model/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,8 +1270,6 @@ pub mod model_synthetics_ci_batch_metadata_git;
12701270
pub use self::model_synthetics_ci_batch_metadata_git::SyntheticsCIBatchMetadataGit;
12711271
pub mod model_synthetics_batch_result;
12721272
pub use self::model_synthetics_batch_result::SyntheticsBatchResult;
1273-
pub mod model_synthetics_device_id;
1274-
pub use self::model_synthetics_device_id::SyntheticsDeviceID;
12751273
pub mod model_synthetics_test_execution_rule;
12761274
pub use self::model_synthetics_test_execution_rule::SyntheticsTestExecutionRule;
12771275
pub mod model_synthetics_batch_status;

src/datadogV1/model/model_synthetics_batch_result.rs

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use std::fmt::{self, Formatter};
1313
pub struct SyntheticsBatchResult {
1414
/// The device ID.
1515
#[serde(rename = "device")]
16-
pub device: Option<crate::datadogV1::model::SyntheticsDeviceID>,
16+
pub device: Option<String>,
1717
/// Total duration in millisecond of the test.
1818
#[serde(rename = "duration")]
1919
pub duration: Option<f64>,
@@ -66,7 +66,7 @@ impl SyntheticsBatchResult {
6666
}
6767
}
6868

69-
pub fn device(mut self, value: crate::datadogV1::model::SyntheticsDeviceID) -> Self {
69+
pub fn device(mut self, value: String) -> Self {
7070
self.device = Some(value);
7171
self
7272
}
@@ -151,7 +151,7 @@ impl<'de> Deserialize<'de> for SyntheticsBatchResult {
151151
where
152152
M: MapAccess<'a>,
153153
{
154-
let mut device: Option<crate::datadogV1::model::SyntheticsDeviceID> = None;
154+
let mut device: Option<String> = None;
155155
let mut duration: Option<f64> = None;
156156
let mut execution_rule: Option<
157157
crate::datadogV1::model::SyntheticsTestExecutionRule,
@@ -177,16 +177,6 @@ impl<'de> Deserialize<'de> for SyntheticsBatchResult {
177177
continue;
178178
}
179179
device = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
180-
if let Some(ref _device) = device {
181-
match _device {
182-
crate::datadogV1::model::SyntheticsDeviceID::UnparsedObject(
183-
_device,
184-
) => {
185-
_unparsed = true;
186-
}
187-
_ => {}
188-
}
189-
}
190180
}
191181
"duration" => {
192182
if v.is_null() {

0 commit comments

Comments
 (0)