Skip to content

Commit f7c22fc

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 646e8bc3 of spec repo
1 parent cc68e70 commit f7c22fc

File tree

11 files changed

+20
-108
lines changed

11 files changed

+20
-108
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:12.685951",
8-
"spec_repo_commit": "ad80112e"
7+
"regenerated": "2024-11-19 16:59:05.305527",
8+
"spec_repo_commit": "646e8bc3"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-11-15 19:35:12.704741",
13-
"spec_repo_commit": "ad80112e"
12+
"regenerated": "2024-11-19 16:59:05.324669",
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.

features/v1/synthetics.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Feature: Synthetics
128128
@generated @skip @team:DataDog/synthetics-ct
129129
Scenario: Create a mobile test returns "- JSON format is wrong" response
130130
Given new "CreateSyntheticsMobileTest" request
131-
And body with value {"config": {"variables": [{"name": "VARIABLE_NAME", "secure": false, "type": "text"}]}, "device_ids": ["synthetics:mobile:device:apple_ipad_10th_gen_2022_ios_16"], "message": "Notification message", "name": "Example test name", "options": {"bindings": [{"principals": [], "relation": "editor"}], "ci": {"executionRule": "blocking"}, "device_ids": ["synthetics:mobile:device:apple_ipad_10th_gen_2022_ios_16"], "mobileApplication": {"applicationId": "00000000-0000-0000-0000-aaaaaaaaaaaa", "referenceId": "00000000-0000-0000-0000-aaaaaaaaaaab", "referenceType": "latest"}, "monitor_options": {"notification_preset_name": "show_all"}, "restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], "retry": {}, "scheduling": {"timeframes": [{"day": 1, "from": "07:00", "to": "16:00"}, {"day": 3, "from": "07:00", "to": "16:00"}], "timezone": "America/New_York"}, "tick_every": 300}, "status": "live", "steps": [{"name": "", "params": {"check": "equals", "direction": "up", "element": {"contextType": "native", "relativePosition": {}, "userLocator": {"values": [{"type": "accessibility-id"}]}}, "positions": [{}], "variable": {"example": "", "name": "VAR_NAME"}}, "publicId": "pub-lic-id0", "type": "assertElementContent"}], "tags": ["env:production"], "type": "mobile"}
131+
And body with value {"config": {"variables": [{"name": "VARIABLE_NAME", "secure": false, "type": "text"}]}, "device_ids": ["chrome.laptop_large"], "message": "Notification message", "name": "Example test name", "options": {"bindings": [{"principals": [], "relation": "editor"}], "ci": {"executionRule": "blocking"}, "device_ids": ["synthetics:mobile:device:apple_ipad_10th_gen_2022_ios_16"], "mobileApplication": {"applicationId": "00000000-0000-0000-0000-aaaaaaaaaaaa", "referenceId": "00000000-0000-0000-0000-aaaaaaaaaaab", "referenceType": "latest"}, "monitor_options": {"notification_preset_name": "show_all"}, "restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], "retry": {}, "scheduling": {"timeframes": [{"day": 1, "from": "07:00", "to": "16:00"}, {"day": 3, "from": "07:00", "to": "16:00"}], "timezone": "America/New_York"}, "tick_every": 300}, "status": "live", "steps": [{"name": "", "params": {"check": "equals", "direction": "up", "element": {"contextType": "native", "relativePosition": {}, "userLocator": {"values": [{"type": "accessibility-id"}]}}, "positions": [{}], "variable": {"example": "", "name": "VAR_NAME"}}, "publicId": "pub-lic-id0", "type": "assertElementContent"}], "tags": ["env:production"], "type": "mobile"}
132132
When the request is sent
133133
Then the response status is 400 - JSON format is wrong
134134

@@ -147,7 +147,7 @@ Feature: Synthetics
147147
@generated @skip @team:DataDog/synthetics-ct
148148
Scenario: Create a mobile test returns "Test quota is reached" response
149149
Given new "CreateSyntheticsMobileTest" request
150-
And body with value {"config": {"variables": [{"name": "VARIABLE_NAME", "secure": false, "type": "text"}]}, "device_ids": ["synthetics:mobile:device:apple_ipad_10th_gen_2022_ios_16"], "message": "Notification message", "name": "Example test name", "options": {"bindings": [{"principals": [], "relation": "editor"}], "ci": {"executionRule": "blocking"}, "device_ids": ["synthetics:mobile:device:apple_ipad_10th_gen_2022_ios_16"], "mobileApplication": {"applicationId": "00000000-0000-0000-0000-aaaaaaaaaaaa", "referenceId": "00000000-0000-0000-0000-aaaaaaaaaaab", "referenceType": "latest"}, "monitor_options": {"notification_preset_name": "show_all"}, "restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], "retry": {}, "scheduling": {"timeframes": [{"day": 1, "from": "07:00", "to": "16:00"}, {"day": 3, "from": "07:00", "to": "16:00"}], "timezone": "America/New_York"}, "tick_every": 300}, "status": "live", "steps": [{"name": "", "params": {"check": "equals", "direction": "up", "element": {"contextType": "native", "relativePosition": {}, "userLocator": {"values": [{"type": "accessibility-id"}]}}, "positions": [{}], "variable": {"example": "", "name": "VAR_NAME"}}, "publicId": "pub-lic-id0", "type": "assertElementContent"}], "tags": ["env:production"], "type": "mobile"}
150+
And body with value {"config": {"variables": [{"name": "VARIABLE_NAME", "secure": false, "type": "text"}]}, "device_ids": ["chrome.laptop_large"], "message": "Notification message", "name": "Example test name", "options": {"bindings": [{"principals": [], "relation": "editor"}], "ci": {"executionRule": "blocking"}, "device_ids": ["synthetics:mobile:device:apple_ipad_10th_gen_2022_ios_16"], "mobileApplication": {"applicationId": "00000000-0000-0000-0000-aaaaaaaaaaaa", "referenceId": "00000000-0000-0000-0000-aaaaaaaaaaab", "referenceType": "latest"}, "monitor_options": {"notification_preset_name": "show_all"}, "restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], "retry": {}, "scheduling": {"timeframes": [{"day": 1, "from": "07:00", "to": "16:00"}, {"day": 3, "from": "07:00", "to": "16:00"}], "timezone": "America/New_York"}, "tick_every": 300}, "status": "live", "steps": [{"name": "", "params": {"check": "equals", "direction": "up", "element": {"contextType": "native", "relativePosition": {}, "userLocator": {"values": [{"type": "accessibility-id"}]}}, "positions": [{}], "variable": {"example": "", "name": "VAR_NAME"}}, "publicId": "pub-lic-id0", "type": "assertElementContent"}], "tags": ["env:production"], "type": "mobile"}
151151
When the request is sent
152152
Then the response status is 402 Test quota is reached
153153

@@ -361,15 +361,15 @@ Feature: Synthetics
361361
Scenario: Edit a Mobile test returns "- JSON format is wrong" response
362362
Given new "UpdateMobileTest" request
363363
And request contains "public_id" parameter from "REPLACE.ME"
364-
And body with value {"config": {"variables": [{"name": "VARIABLE_NAME", "secure": false, "type": "text"}]}, "device_ids": ["synthetics:mobile:device:apple_ipad_10th_gen_2022_ios_16"], "message": "Notification message", "name": "Example test name", "options": {"bindings": [{"principals": [], "relation": "editor"}], "ci": {"executionRule": "blocking"}, "device_ids": ["synthetics:mobile:device:apple_ipad_10th_gen_2022_ios_16"], "mobileApplication": {"applicationId": "00000000-0000-0000-0000-aaaaaaaaaaaa", "referenceId": "00000000-0000-0000-0000-aaaaaaaaaaab", "referenceType": "latest"}, "monitor_options": {"notification_preset_name": "show_all"}, "restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], "retry": {}, "scheduling": {"timeframes": [{"day": 1, "from": "07:00", "to": "16:00"}, {"day": 3, "from": "07:00", "to": "16:00"}], "timezone": "America/New_York"}, "tick_every": 300}, "status": "live", "steps": [{"name": "", "params": {"check": "equals", "direction": "up", "element": {"contextType": "native", "relativePosition": {}, "userLocator": {"values": [{"type": "accessibility-id"}]}}, "positions": [{}], "variable": {"example": "", "name": "VAR_NAME"}}, "publicId": "pub-lic-id0", "type": "assertElementContent"}], "tags": ["env:production"], "type": "mobile"}
364+
And body with value {"config": {"variables": [{"name": "VARIABLE_NAME", "secure": false, "type": "text"}]}, "device_ids": ["chrome.laptop_large"], "message": "Notification message", "name": "Example test name", "options": {"bindings": [{"principals": [], "relation": "editor"}], "ci": {"executionRule": "blocking"}, "device_ids": ["synthetics:mobile:device:apple_ipad_10th_gen_2022_ios_16"], "mobileApplication": {"applicationId": "00000000-0000-0000-0000-aaaaaaaaaaaa", "referenceId": "00000000-0000-0000-0000-aaaaaaaaaaab", "referenceType": "latest"}, "monitor_options": {"notification_preset_name": "show_all"}, "restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], "retry": {}, "scheduling": {"timeframes": [{"day": 1, "from": "07:00", "to": "16:00"}, {"day": 3, "from": "07:00", "to": "16:00"}], "timezone": "America/New_York"}, "tick_every": 300}, "status": "live", "steps": [{"name": "", "params": {"check": "equals", "direction": "up", "element": {"contextType": "native", "relativePosition": {}, "userLocator": {"values": [{"type": "accessibility-id"}]}}, "positions": [{}], "variable": {"example": "", "name": "VAR_NAME"}}, "publicId": "pub-lic-id0", "type": "assertElementContent"}], "tags": ["env:production"], "type": "mobile"}
365365
When the request is sent
366366
Then the response status is 400 - JSON format is wrong
367367

368368
@generated @skip @team:DataDog/synthetics-ct
369369
Scenario: Edit a Mobile test returns "- Synthetic Monitoring is not activated for the user" response
370370
Given new "UpdateMobileTest" request
371371
And request contains "public_id" parameter from "REPLACE.ME"
372-
And body with value {"config": {"variables": [{"name": "VARIABLE_NAME", "secure": false, "type": "text"}]}, "device_ids": ["synthetics:mobile:device:apple_ipad_10th_gen_2022_ios_16"], "message": "Notification message", "name": "Example test name", "options": {"bindings": [{"principals": [], "relation": "editor"}], "ci": {"executionRule": "blocking"}, "device_ids": ["synthetics:mobile:device:apple_ipad_10th_gen_2022_ios_16"], "mobileApplication": {"applicationId": "00000000-0000-0000-0000-aaaaaaaaaaaa", "referenceId": "00000000-0000-0000-0000-aaaaaaaaaaab", "referenceType": "latest"}, "monitor_options": {"notification_preset_name": "show_all"}, "restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], "retry": {}, "scheduling": {"timeframes": [{"day": 1, "from": "07:00", "to": "16:00"}, {"day": 3, "from": "07:00", "to": "16:00"}], "timezone": "America/New_York"}, "tick_every": 300}, "status": "live", "steps": [{"name": "", "params": {"check": "equals", "direction": "up", "element": {"contextType": "native", "relativePosition": {}, "userLocator": {"values": [{"type": "accessibility-id"}]}}, "positions": [{}], "variable": {"example": "", "name": "VAR_NAME"}}, "publicId": "pub-lic-id0", "type": "assertElementContent"}], "tags": ["env:production"], "type": "mobile"}
372+
And body with value {"config": {"variables": [{"name": "VARIABLE_NAME", "secure": false, "type": "text"}]}, "device_ids": ["chrome.laptop_large"], "message": "Notification message", "name": "Example test name", "options": {"bindings": [{"principals": [], "relation": "editor"}], "ci": {"executionRule": "blocking"}, "device_ids": ["synthetics:mobile:device:apple_ipad_10th_gen_2022_ios_16"], "mobileApplication": {"applicationId": "00000000-0000-0000-0000-aaaaaaaaaaaa", "referenceId": "00000000-0000-0000-0000-aaaaaaaaaaab", "referenceType": "latest"}, "monitor_options": {"notification_preset_name": "show_all"}, "restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], "retry": {}, "scheduling": {"timeframes": [{"day": 1, "from": "07:00", "to": "16:00"}, {"day": 3, "from": "07:00", "to": "16:00"}], "timezone": "America/New_York"}, "tick_every": 300}, "status": "live", "steps": [{"name": "", "params": {"check": "equals", "direction": "up", "element": {"contextType": "native", "relativePosition": {}, "userLocator": {"values": [{"type": "accessibility-id"}]}}, "positions": [{}], "variable": {"example": "", "name": "VAR_NAME"}}, "publicId": "pub-lic-id0", "type": "assertElementContent"}], "tags": ["env:production"], "type": "mobile"}
373373
When the request is sent
374374
Then the response status is 404 - Synthetic Monitoring is not activated for the user
375375

packages/datadog-api-client-v1/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,6 @@ export { SyntheticsDeletedTest } from "./models/SyntheticsDeletedTest";
940940
export { SyntheticsDeleteTestsPayload } from "./models/SyntheticsDeleteTestsPayload";
941941
export { SyntheticsDeleteTestsResponse } from "./models/SyntheticsDeleteTestsResponse";
942942
export { SyntheticsDevice } from "./models/SyntheticsDevice";
943-
export { SyntheticsDeviceID } from "./models/SyntheticsDeviceID";
944943
export { SyntheticsFetchUptimesPayload } from "./models/SyntheticsFetchUptimesPayload";
945944
export { SyntheticsGetAPITestLatestResultsResponse } from "./models/SyntheticsGetAPITestLatestResultsResponse";
946945
export { SyntheticsGetBrowserTestLatestResultsResponse } from "./models/SyntheticsGetBrowserTestLatestResultsResponse";

packages/datadog-api-client-v1/models/ObjectSerializer.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1347,20 +1347,6 @@ const enumsMap: { [key: string]: any[] } = {
13471347
"notIsEmpty",
13481348
],
13491349
SyntheticsConfigVariableType: ["global", "text", "email"],
1350-
SyntheticsDeviceID: [
1351-
"laptop_large",
1352-
"tablet",
1353-
"mobile_small",
1354-
"chrome.laptop_large",
1355-
"chrome.tablet",
1356-
"chrome.mobile_small",
1357-
"firefox.laptop_large",
1358-
"firefox.tablet",
1359-
"firefox.mobile_small",
1360-
"edge.laptop_large",
1361-
"edge.tablet",
1362-
"edge.mobile_small",
1363-
],
13641350
SyntheticsGlobalVariableParseTestOptionsType: [
13651351
"http_body",
13661352
"http_header",

packages/datadog-api-client-v1/models/SyntheticsBatchResult.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* Copyright 2020-Present Datadog, Inc.
55
*/
66
import { SyntheticsBatchStatus } from "./SyntheticsBatchStatus";
7-
import { SyntheticsDeviceID } from "./SyntheticsDeviceID";
87
import { SyntheticsTestDetailsType } from "./SyntheticsTestDetailsType";
98
import { SyntheticsTestExecutionRule } from "./SyntheticsTestExecutionRule";
109

@@ -17,7 +16,7 @@ export class SyntheticsBatchResult {
1716
/**
1817
* The device ID.
1918
*/
20-
"device"?: SyntheticsDeviceID;
19+
"device"?: string;
2120
/**
2221
* Total duration in millisecond of the test.
2322
*/
@@ -73,7 +72,7 @@ export class SyntheticsBatchResult {
7372
static readonly attributeTypeMap: AttributeTypeMap = {
7473
device: {
7574
baseName: "device",
76-
type: "SyntheticsDeviceID",
75+
type: "string",
7776
},
7877
duration: {
7978
baseName: "duration",

packages/datadog-api-client-v1/models/SyntheticsCITest.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
*/
66
import { SyntheticsBasicAuth } from "./SyntheticsBasicAuth";
77
import { SyntheticsCIBatchMetadata } from "./SyntheticsCIBatchMetadata";
8-
import { SyntheticsDeviceID } from "./SyntheticsDeviceID";
98
import { SyntheticsTestOptionsRetry } from "./SyntheticsTestOptionsRetry";
109

1110
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
@@ -37,7 +36,7 @@ export class SyntheticsCITest {
3736
/**
3837
* For browser test, array with the different device IDs used to run the test.
3938
*/
40-
"deviceIds"?: Array<SyntheticsDeviceID>;
39+
"deviceIds"?: Array<string>;
4140
/**
4241
* For API HTTP test, whether or not the test should follow redirects.
4342
*/
@@ -109,7 +108,7 @@ export class SyntheticsCITest {
109108
},
110109
deviceIds: {
111110
baseName: "deviceIds",
112-
type: "Array<SyntheticsDeviceID>",
111+
type: "Array<string>",
113112
},
114113
followRedirects: {
115114
baseName: "followRedirects",

packages/datadog-api-client-v1/models/SyntheticsDevice.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* This product includes software developed at Datadog (https://www.datadoghq.com/).
44
* Copyright 2020-Present Datadog, Inc.
55
*/
6-
import { SyntheticsDeviceID } from "./SyntheticsDeviceID";
76

87
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
98

@@ -18,7 +17,7 @@ export class SyntheticsDevice {
1817
/**
1918
* The device ID.
2019
*/
21-
"id": SyntheticsDeviceID;
20+
"id": string;
2221
/**
2322
* Whether or not the device is a mobile.
2423
*/
@@ -56,7 +55,7 @@ export class SyntheticsDevice {
5655
},
5756
id: {
5857
baseName: "id",
59-
type: "SyntheticsDeviceID",
58+
type: "string",
6059
required: true,
6160
},
6261
isMobile: {

packages/datadog-api-client-v1/models/SyntheticsDeviceID.ts

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

packages/datadog-api-client-v1/models/SyntheticsTestOptions.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* Copyright 2020-Present Datadog, Inc.
55
*/
66
import { SyntheticsBrowserTestRumSettings } from "./SyntheticsBrowserTestRumSettings";
7-
import { SyntheticsDeviceID } from "./SyntheticsDeviceID";
87
import { SyntheticsTestCiOptions } from "./SyntheticsTestCiOptions";
98
import { SyntheticsTestOptionsHTTPVersion } from "./SyntheticsTestOptionsHTTPVersion";
109
import { SyntheticsTestOptionsMonitorOptions } from "./SyntheticsTestOptionsMonitorOptions";
@@ -37,7 +36,7 @@ export class SyntheticsTestOptions {
3736
/**
3837
* For browser test, array with the different device IDs used to run the test.
3938
*/
40-
"deviceIds"?: Array<SyntheticsDeviceID>;
39+
"deviceIds"?: Array<string>;
4140
/**
4241
* Whether or not to disable CORS mechanism.
4342
*/
@@ -161,7 +160,7 @@ export class SyntheticsTestOptions {
161160
},
162161
deviceIds: {
163162
baseName: "device_ids",
164-
type: "Array<SyntheticsDeviceID>",
163+
type: "Array<string>",
165164
},
166165
disableCors: {
167166
baseName: "disableCors",

0 commit comments

Comments
 (0)