Skip to content

Commit 2995758

Browse files
api-clients-generation-pipeline[bot]nkzouci.datadog-api-spec
authored
Remove mobile device ids and make all device ids simple string (#2108)
* update enum list deserialization * dep update * Regenerate client from commit ebf27b5e of spec repo --------- Co-authored-by: Kevin Zou <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 9d710a4 commit 2995758

21 files changed

+219
-290
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:16.150137",
8-
"spec_repo_commit": "2e48953d"
7+
"regenerated": "2024-11-20 20:14:17.376953",
8+
"spec_repo_commit": "ebf27b5e"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-11-19 21:12:16.168656",
13-
"spec_repo_commit": "2e48953d"
12+
"regenerated": "2024-11-20 20:14:17.395595",
13+
"spec_repo_commit": "ebf27b5e"
1414
}
1515
}
1616
}

.generator/poetry.lock

Lines changed: 157 additions & 133 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.generator/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ license = "Apache-2.0"
88
[tool.poetry.dependencies]
99
python = "^3.10"
1010
click = "^8.1.4"
11-
PyYAML = "^6.0"
11+
pyyaml = "^6.0"
1212
jsonref = "^1.1.0"
1313
jinja2 = "^3.1.2"
1414
pytest = "^7.4.0"

.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.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
execution_rule: DatadogAPIClient::V1::SyntheticsTestExecutionRule::BLOCKING,
2828
}),
2929
device_ids: [
30-
DatadogAPIClient::V1::SyntheticsDeviceID::CHROME_LAPTOP_LARGE,
30+
"chrome.laptop_large",
3131
],
3232
http_version: DatadogAPIClient::V1::SyntheticsTestOptionsHTTPVersion::HTTP1,
3333
monitor_options: DatadogAPIClient::V1::SyntheticsTestOptionsMonitorOptions.new({

examples/v1/synthetics/CreateSyntheticsBrowserTest.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
accept_self_signed: false,
4040
allow_insecure: true,
4141
device_ids: [
42-
DatadogAPIClient::V1::SyntheticsDeviceID::CHROME_LAPTOP_LARGE,
42+
"chrome.laptop_large",
4343
],
4444
disable_cors: true,
4545
follow_redirects: true,

examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
accept_self_signed: false,
3333
allow_insecure: true,
3434
device_ids: [
35-
DatadogAPIClient::V1::SyntheticsDeviceID::TABLET,
35+
"tablet",
3636
],
3737
disable_cors: true,
3838
follow_redirects: true,

examples/v1/synthetics/CreateSyntheticsBrowserTest_397420811.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
accept_self_signed: false,
3030
allow_insecure: true,
3131
device_ids: [
32-
DatadogAPIClient::V1::SyntheticsDeviceID::TABLET,
32+
"tablet",
3333
],
3434
disable_cors: true,
3535
follow_redirects: true,

examples/v1/synthetics/TriggerCITests.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
username: "my_username",
1313
}),
1414
device_ids: [
15-
DatadogAPIClient::V1::SyntheticsDeviceID::CHROME_LAPTOP_LARGE,
15+
"chrome.laptop_large",
1616
],
1717
locations: [
1818
"aws:eu-west-3",

examples/v1/synthetics/UpdateBrowserTest.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
execution_rule: DatadogAPIClient::V1::SyntheticsTestExecutionRule::BLOCKING,
5454
}),
5555
device_ids: [
56-
DatadogAPIClient::V1::SyntheticsDeviceID::CHROME_LAPTOP_LARGE,
56+
"chrome.laptop_large",
5757
],
5858
http_version: DatadogAPIClient::V1::SyntheticsTestOptionsHTTPVersion::HTTP1,
5959
monitor_options: DatadogAPIClient::V1::SyntheticsTestOptionsMonitorOptions.new({

0 commit comments

Comments
 (0)