Skip to content

Commit 2774b79

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Remove mobile device ids and make all device ids simple string (#384)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent f279eda commit 2774b79

17 files changed

+32
-186
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-19 21:12:03.890814",
8-
"spec_repo_commit": "2e48953d"
7+
"regenerated": "2024-11-20 20:14:15.868911",
8+
"spec_repo_commit": "ebf27b5e"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-11-19 21:12:03.909789",
13-
"spec_repo_commit": "2e48953d"
12+
"regenerated": "2024-11-20 20:14:15.887480",
13+
"spec_repo_commit": "ebf27b5e"
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.

LICENSE-3rdparty.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ tracing-attributes,https://github.com/tokio-rs/tracing,MIT,"Tokio Contributors <
136136
tracing-core,https://github.com/tokio-rs/tracing,MIT,Tokio Contributors <[email protected]>
137137
try-lock,https://github.com/seanmonstar/try-lock,MIT,Sean McArthur <[email protected]>
138138
unicase,https://github.com/seanmonstar/unicase,MIT OR Apache-2.0,Sean McArthur <[email protected]>
139-
unicode-ident,https://github.com/dtolnay/unicode-ident,(MIT OR Apache-2.0) AND Unicode-DFS-2016,David Tolnay <[email protected]>
139+
unicode-ident,https://github.com/dtolnay/unicode-ident,(MIT OR Apache-2.0) AND Unicode-3.0,David Tolnay <[email protected]>
140140
url,https://github.com/servo/rust-url,MIT OR Apache-2.0,The rust-url developers
141141
utf16_iter,https://github.com/hsivonen/utf16_iter,Apache-2.0 OR MIT,Henri Sivonen <[email protected]>
142142
utf8_iter,https://github.com/hsivonen/utf8_iter,Apache-2.0 OR MIT,Henri Sivonen <[email protected]>

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;

0 commit comments

Comments
 (0)