Skip to content

Commit b7de63d

Browse files
api-clients-generation-pipeline[bot]nkzouci.datadog-api-spec
authored
Remove mobile device ids and make all device ids simple string (#2269)
* update enum list deserialization * 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 de5f3e6 commit b7de63d

20 files changed

+249
-386
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:11.962446",
8-
"spec_repo_commit": "2e48953d"
7+
"regenerated": "2024-11-20 20:14:24.816715",
8+
"spec_repo_commit": "ebf27b5e"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-11-19 21:12:11.990956",
13-
"spec_repo_commit": "2e48953d"
12+
"regenerated": "2024-11-20 20:14:24.834527",
13+
"spec_repo_commit": "ebf27b5e"
1414
}
1515
}
1616
}

.generator/poetry.lock

Lines changed: 180 additions & 156 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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ pytest = "^7.4.0"
1515
pytest-bdd = "^6.1.1"
1616
python-dateutil = "^2.8.2"
1717
m2r2 = "0.3.3.post2"
18+
setuptools = "^75.0.0"
1819

1920
[tool.poetry.dev-dependencies]
2021

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

docs/datadog_api_client.v1.model.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4358,13 +4358,6 @@ datadog\_api\_client.v1.model.synthetics\_device module
43584358
:members:
43594359
:show-inheritance:
43604360

4361-
datadog\_api\_client.v1.model.synthetics\_device\_id module
4362-
-----------------------------------------------------------
4363-
4364-
.. automodule:: datadog_api_client.v1.model.synthetics_device_id
4365-
:members:
4366-
:show-inheritance:
4367-
43684361
datadog\_api\_client.v1.model.synthetics\_fetch\_uptimes\_payload module
43694362
------------------------------------------------------------------------
43704363

examples/v1/synthetics/CreateSyntheticsAPITest.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from datadog_api_client.v1.model.synthetics_assertion_target import SyntheticsAssertionTarget
1212
from datadog_api_client.v1.model.synthetics_assertion_type import SyntheticsAssertionType
1313
from datadog_api_client.v1.model.synthetics_browser_test_rum_settings import SyntheticsBrowserTestRumSettings
14-
from datadog_api_client.v1.model.synthetics_device_id import SyntheticsDeviceID
1514
from datadog_api_client.v1.model.synthetics_restricted_roles import SyntheticsRestrictedRoles
1615
from datadog_api_client.v1.model.synthetics_test_ci_options import SyntheticsTestCiOptions
1716
from datadog_api_client.v1.model.synthetics_test_details_sub_type import SyntheticsTestDetailsSubType
@@ -54,7 +53,7 @@
5453
execution_rule=SyntheticsTestExecutionRule.BLOCKING,
5554
),
5655
device_ids=[
57-
SyntheticsDeviceID.CHROME_LAPTOP_LARGE,
56+
"chrome.laptop_large",
5857
],
5958
http_version=SyntheticsTestOptionsHTTPVersion.HTTP1,
6059
monitor_options=SyntheticsTestOptionsMonitorOptions(

examples/v1/synthetics/CreateSyntheticsBrowserTest.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from datadog_api_client.v1.model.synthetics_browser_variable_type import SyntheticsBrowserVariableType
1212
from datadog_api_client.v1.model.synthetics_config_variable import SyntheticsConfigVariable
1313
from datadog_api_client.v1.model.synthetics_config_variable_type import SyntheticsConfigVariableType
14-
from datadog_api_client.v1.model.synthetics_device_id import SyntheticsDeviceID
1514
from datadog_api_client.v1.model.synthetics_step import SyntheticsStep
1615
from datadog_api_client.v1.model.synthetics_step_type import SyntheticsStepType
1716
from datadog_api_client.v1.model.synthetics_test_options import SyntheticsTestOptions
@@ -54,7 +53,7 @@
5453
accept_self_signed=False,
5554
allow_insecure=True,
5655
device_ids=[
57-
SyntheticsDeviceID.CHROME_LAPTOP_LARGE,
56+
"chrome.laptop_large",
5857
],
5958
disable_cors=True,
6059
follow_redirects=True,

examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from datadog_api_client.v1.model.synthetics_browser_test_type import SyntheticsBrowserTestType
1111
from datadog_api_client.v1.model.synthetics_config_variable import SyntheticsConfigVariable
1212
from datadog_api_client.v1.model.synthetics_config_variable_type import SyntheticsConfigVariableType
13-
from datadog_api_client.v1.model.synthetics_device_id import SyntheticsDeviceID
1413
from datadog_api_client.v1.model.synthetics_step import SyntheticsStep
1514
from datadog_api_client.v1.model.synthetics_step_type import SyntheticsStepType
1615
from datadog_api_client.v1.model.synthetics_test_ci_options import SyntheticsTestCiOptions
@@ -48,7 +47,7 @@
4847
accept_self_signed=False,
4948
allow_insecure=True,
5049
device_ids=[
51-
SyntheticsDeviceID.TABLET,
50+
"tablet",
5251
],
5352
disable_cors=True,
5453
follow_redirects=True,

examples/v1/synthetics/CreateSyntheticsBrowserTest_397420811.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from datadog_api_client.v1.model.synthetics_browser_test_type import SyntheticsBrowserTestType
1010
from datadog_api_client.v1.model.synthetics_config_variable import SyntheticsConfigVariable
1111
from datadog_api_client.v1.model.synthetics_config_variable_type import SyntheticsConfigVariableType
12-
from datadog_api_client.v1.model.synthetics_device_id import SyntheticsDeviceID
1312
from datadog_api_client.v1.model.synthetics_step import SyntheticsStep
1413
from datadog_api_client.v1.model.synthetics_step_type import SyntheticsStepType
1514
from datadog_api_client.v1.model.synthetics_test_options import SyntheticsTestOptions
@@ -46,7 +45,7 @@
4645
accept_self_signed=False,
4746
allow_insecure=True,
4847
device_ids=[
49-
SyntheticsDeviceID.TABLET,
48+
"tablet",
5049
],
5150
disable_cors=True,
5251
follow_redirects=True,

examples/v1/synthetics/TriggerCITests.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
from datadog_api_client.v1.model.synthetics_ci_batch_metadata_provider import SyntheticsCIBatchMetadataProvider
1414
from datadog_api_client.v1.model.synthetics_ci_test import SyntheticsCITest
1515
from datadog_api_client.v1.model.synthetics_ci_test_body import SyntheticsCITestBody
16-
from datadog_api_client.v1.model.synthetics_device_id import SyntheticsDeviceID
1716
from datadog_api_client.v1.model.synthetics_test_options_retry import SyntheticsTestOptionsRetry
1817

1918
body = SyntheticsCITestBody(
@@ -25,7 +24,7 @@
2524
username="my_username",
2625
),
2726
device_ids=[
28-
SyntheticsDeviceID.CHROME_LAPTOP_LARGE,
27+
"chrome.laptop_large",
2928
],
3029
locations=[
3130
"aws:eu-west-3",

0 commit comments

Comments
 (0)