Skip to content

Commit 0b84955

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit e98f66e of spec repo
1 parent abbc180 commit 0b84955

40 files changed

Lines changed: 4397 additions & 163 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 1287 additions & 0 deletions
Large diffs are not rendered by default.

features/v2/synthetics.feature

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,22 @@ Feature: Synthetics
133133
When the request is sent
134134
Then the response status is 200 OK
135135

136+
@generated @skip @team:DataDog/synthetics-managing
137+
Scenario: Get a specific version of a test returns "API error response." response
138+
Given new "GetSyntheticsTestVersion" request
139+
And request contains "public_id" parameter from "REPLACE.ME"
140+
And request contains "version_number" parameter from "REPLACE.ME"
141+
When the request is sent
142+
Then the response status is 404 API error response.
143+
144+
@generated @skip @team:DataDog/synthetics-managing
145+
Scenario: Get a specific version of a test returns "OK" response
146+
Given new "GetSyntheticsTestVersion" request
147+
And request contains "public_id" parameter from "REPLACE.ME"
148+
And request contains "version_number" parameter from "REPLACE.ME"
149+
When the request is sent
150+
Then the response status is 200 OK
151+
136152
@generated @skip @team:DataDog/synthetics-managing
137153
Scenario: Get a suite returns "API error response." response
138154
Given new "GetSyntheticsSuite" request
@@ -147,12 +163,61 @@ Feature: Synthetics
147163
When the request is sent
148164
Then the response status is 200 OK
149165

166+
@generated @skip @team:DataDog/synthetics-managing
167+
Scenario: Get available subtests for a multistep test returns "OK" response
168+
Given new "GetApiMultistepSubtests" request
169+
And request contains "public_id" parameter from "REPLACE.ME"
170+
When the request is sent
171+
Then the response status is 200 OK
172+
173+
@generated @skip @team:DataDog/synthetics-managing
174+
Scenario: Get parent suites for a test returns "API error response." response
175+
Given new "GetTestParentSuites" request
176+
And request contains "public_id" parameter from "REPLACE.ME"
177+
When the request is sent
178+
Then the response status is 404 API error response.
179+
180+
@generated @skip @team:DataDog/synthetics-managing
181+
Scenario: Get parent suites for a test returns "OK" response
182+
Given new "GetTestParentSuites" request
183+
And request contains "public_id" parameter from "REPLACE.ME"
184+
When the request is sent
185+
Then the response status is 200 OK
186+
187+
@generated @skip @team:DataDog/synthetics-managing
188+
Scenario: Get parent tests for a subtest returns "API error response." response
189+
Given new "GetApiMultistepSubtestParents" request
190+
And request contains "public_id" parameter from "REPLACE.ME"
191+
When the request is sent
192+
Then the response status is 404 API error response.
193+
194+
@generated @skip @team:DataDog/synthetics-managing
195+
Scenario: Get parent tests for a subtest returns "OK" response
196+
Given new "GetApiMultistepSubtestParents" request
197+
And request contains "public_id" parameter from "REPLACE.ME"
198+
When the request is sent
199+
Then the response status is 200 OK
200+
150201
@team:DataDog/synthetics-managing
151202
Scenario: Get the on-demand concurrency cap returns "OK" response
152203
Given new "GetOnDemandConcurrencyCap" request
153204
When the request is sent
154205
Then the response status is 200 OK
155206

207+
@generated @skip @team:DataDog/synthetics-managing
208+
Scenario: Get version history of a test returns "API error response." response
209+
Given new "ListSyntheticsTestVersions" request
210+
And request contains "public_id" parameter from "REPLACE.ME"
211+
When the request is sent
212+
Then the response status is 404 API error response.
213+
214+
@generated @skip @team:DataDog/synthetics-managing
215+
Scenario: Get version history of a test returns "OK" response
216+
Given new "ListSyntheticsTestVersions" request
217+
And request contains "public_id" parameter from "REPLACE.ME"
218+
When the request is sent
219+
Then the response status is 200 OK
220+
156221
@generated @skip @team:DataDog/synthetics-managing
157222
Scenario: Patch a global variable returns "Bad Request" response
158223
Given new "PatchGlobalVariable" request
@@ -177,6 +242,22 @@ Feature: Synthetics
177242
When the request is sent
178243
Then the response status is 200 OK
179244

245+
@generated @skip @team:DataDog/synthetics-managing
246+
Scenario: Patch a test suite returns "API error response." response
247+
Given new "PatchTestSuite" request
248+
And request contains "public_id" parameter from "REPLACE.ME"
249+
And body with value {"data": {"attributes": {"json_patch": [{"op": "add", "path": "/name"}]}, "type": "suites_json_patch"}}
250+
When the request is sent
251+
Then the response status is 400 API error response.
252+
253+
@generated @skip @team:DataDog/synthetics-managing
254+
Scenario: Patch a test suite returns "OK" response
255+
Given new "PatchTestSuite" request
256+
And request contains "public_id" parameter from "REPLACE.ME"
257+
And body with value {"data": {"attributes": {"json_patch": [{"op": "add", "path": "/name"}]}, "type": "suites_json_patch"}}
258+
When the request is sent
259+
Then the response status is 200 OK
260+
180261
@team:DataDog/synthetics-managing
181262
Scenario: Save new value for on-demand concurrency cap returns "OK" response
182263
Given new "SetOnDemandConcurrencyCap" request

features/v2/undo.json

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5809,6 +5809,18 @@
58095809
"type": "idempotent"
58105810
}
58115811
},
5812+
"GetApiMultistepSubtests": {
5813+
"tag": "Synthetics",
5814+
"undo": {
5815+
"type": "safe"
5816+
}
5817+
},
5818+
"GetApiMultistepSubtestParents": {
5819+
"tag": "Synthetics",
5820+
"undo": {
5821+
"type": "safe"
5822+
}
5823+
},
58125824
"GetOnDemandConcurrencyCap": {
58135825
"tag": "Synthetics",
58145826
"undo": {
@@ -5858,6 +5870,12 @@
58585870
"type": "idempotent"
58595871
}
58605872
},
5873+
"PatchTestSuite": {
5874+
"tag": "Synthetics",
5875+
"undo": {
5876+
"type": "idempotent"
5877+
}
5878+
},
58615879
"DeleteSyntheticsTests": {
58625880
"tag": "Synthetics",
58635881
"undo": {
@@ -5895,6 +5913,24 @@
58955913
"type": "idempotent"
58965914
}
58975915
},
5916+
"GetTestParentSuites": {
5917+
"tag": "Synthetics",
5918+
"undo": {
5919+
"type": "safe"
5920+
}
5921+
},
5922+
"ListSyntheticsTestVersions": {
5923+
"tag": "Synthetics",
5924+
"undo": {
5925+
"type": "safe"
5926+
}
5927+
},
5928+
"GetSyntheticsTestVersion": {
5929+
"tag": "Synthetics",
5930+
"undo": {
5931+
"type": "safe"
5932+
}
5933+
},
58985934
"PatchGlobalVariable": {
58995935
"tag": "Synthetics",
59005936
"undo": {
@@ -6356,6 +6392,47 @@
63566392
"type": "safe"
63576393
}
63586394
},
6395+
"SearchWidgets": {
6396+
"tag": "Widgets",
6397+
"undo": {
6398+
"type": "safe"
6399+
}
6400+
},
6401+
"CreateWidget": {
6402+
"tag": "Widgets",
6403+
"undo": {
6404+
"operationId": "DeleteWidget",
6405+
"parameters": [
6406+
{
6407+
"name": "experience_type",
6408+
"source": "experience_type"
6409+
},
6410+
{
6411+
"name": "uuid",
6412+
"source": "data.id"
6413+
}
6414+
],
6415+
"type": "unsafe"
6416+
}
6417+
},
6418+
"DeleteWidget": {
6419+
"tag": "Widgets",
6420+
"undo": {
6421+
"type": "idempotent"
6422+
}
6423+
},
6424+
"GetWidget": {
6425+
"tag": "Widgets",
6426+
"undo": {
6427+
"type": "safe"
6428+
}
6429+
},
6430+
"UpdateWidget": {
6431+
"tag": "Widgets",
6432+
"undo": {
6433+
"type": "safe"
6434+
}
6435+
},
63596436
"CreateWorkflow": {
63606437
"tag": "Workflow Automation",
63616438
"undo": {

features/v2/widgets.feature

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
@endpoint(widgets) @endpoint(widgets-v2)
2+
Feature: Widgets
3+
Create, read, update, and delete saved widgets. Widgets are reusable
4+
visualization components stored independently from any dashboard or
5+
notebook, partitioned by experience type and identified by a UUID.
6+
7+
Background:
8+
Given a valid "apiKeyAuth" key in the system
9+
And a valid "appKeyAuth" key in the system
10+
And an instance of "Widgets" API
11+
12+
@generated @skip @team:DataDog/reporting-and-sharing
13+
Scenario: Create a widget returns "Bad Request" response
14+
Given new "CreateWidget" request
15+
And request contains "experience_type" parameter from "REPLACE.ME"
16+
And body with value {"data": {"attributes": {"definition": {"title": "My Widget", "type": "bar_chart"}, "tags": []}, "type": "widgets"}}
17+
When the request is sent
18+
Then the response status is 400 Bad Request
19+
20+
@generated @skip @team:DataDog/reporting-and-sharing
21+
Scenario: Create a widget returns "OK" response
22+
Given new "CreateWidget" request
23+
And request contains "experience_type" parameter from "REPLACE.ME"
24+
And body with value {"data": {"attributes": {"definition": {"title": "My Widget", "type": "bar_chart"}, "tags": []}, "type": "widgets"}}
25+
When the request is sent
26+
Then the response status is 200 OK
27+
28+
@generated @skip @team:DataDog/reporting-and-sharing
29+
Scenario: Delete a widget returns "Bad Request" response
30+
Given new "DeleteWidget" request
31+
And request contains "experience_type" parameter from "REPLACE.ME"
32+
And request contains "uuid" parameter from "REPLACE.ME"
33+
When the request is sent
34+
Then the response status is 400 Bad Request
35+
36+
@generated @skip @team:DataDog/reporting-and-sharing
37+
Scenario: Delete a widget returns "No Content" response
38+
Given new "DeleteWidget" request
39+
And request contains "experience_type" parameter from "REPLACE.ME"
40+
And request contains "uuid" parameter from "REPLACE.ME"
41+
When the request is sent
42+
Then the response status is 204 No Content
43+
44+
@generated @skip @team:DataDog/reporting-and-sharing
45+
Scenario: Delete a widget returns "Not Found" response
46+
Given new "DeleteWidget" request
47+
And request contains "experience_type" parameter from "REPLACE.ME"
48+
And request contains "uuid" parameter from "REPLACE.ME"
49+
When the request is sent
50+
Then the response status is 404 Not Found
51+
52+
@generated @skip @team:DataDog/reporting-and-sharing
53+
Scenario: Get a widget returns "Bad Request" response
54+
Given new "GetWidget" request
55+
And request contains "experience_type" parameter from "REPLACE.ME"
56+
And request contains "uuid" parameter from "REPLACE.ME"
57+
When the request is sent
58+
Then the response status is 400 Bad Request
59+
60+
@generated @skip @team:DataDog/reporting-and-sharing
61+
Scenario: Get a widget returns "Not Found" response
62+
Given new "GetWidget" request
63+
And request contains "experience_type" parameter from "REPLACE.ME"
64+
And request contains "uuid" parameter from "REPLACE.ME"
65+
When the request is sent
66+
Then the response status is 404 Not Found
67+
68+
@generated @skip @team:DataDog/reporting-and-sharing
69+
Scenario: Get a widget returns "OK" response
70+
Given new "GetWidget" request
71+
And request contains "experience_type" parameter from "REPLACE.ME"
72+
And request contains "uuid" parameter from "REPLACE.ME"
73+
When the request is sent
74+
Then the response status is 200 OK
75+
76+
@generated @skip @team:DataDog/reporting-and-sharing
77+
Scenario: Search widgets returns "Bad Request" response
78+
Given new "SearchWidgets" request
79+
And request contains "experience_type" parameter from "REPLACE.ME"
80+
When the request is sent
81+
Then the response status is 400 Bad Request
82+
83+
@generated @skip @team:DataDog/reporting-and-sharing
84+
Scenario: Search widgets returns "OK" response
85+
Given new "SearchWidgets" request
86+
And request contains "experience_type" parameter from "REPLACE.ME"
87+
When the request is sent
88+
Then the response status is 200 OK
89+
90+
@generated @skip @team:DataDog/reporting-and-sharing
91+
Scenario: Update a widget returns "Bad Request" response
92+
Given new "UpdateWidget" request
93+
And request contains "experience_type" parameter from "REPLACE.ME"
94+
And request contains "uuid" parameter from "REPLACE.ME"
95+
And body with value {"data": {"attributes": {"definition": {"title": "My Widget", "type": "bar_chart"}, "tags": []}, "type": "widgets"}}
96+
When the request is sent
97+
Then the response status is 400 Bad Request
98+
99+
@generated @skip @team:DataDog/reporting-and-sharing
100+
Scenario: Update a widget returns "Not Found" response
101+
Given new "UpdateWidget" request
102+
And request contains "experience_type" parameter from "REPLACE.ME"
103+
And request contains "uuid" parameter from "REPLACE.ME"
104+
And body with value {"data": {"attributes": {"definition": {"title": "My Widget", "type": "bar_chart"}, "tags": []}, "type": "widgets"}}
105+
When the request is sent
106+
Then the response status is 404 Not Found
107+
108+
@generated @skip @team:DataDog/reporting-and-sharing
109+
Scenario: Update a widget returns "OK" response
110+
Given new "UpdateWidget" request
111+
And request contains "experience_type" parameter from "REPLACE.ME"
112+
And request contains "uuid" parameter from "REPLACE.ME"
113+
And body with value {"data": {"attributes": {"definition": {"title": "My Widget", "type": "bar_chart"}, "tags": []}, "type": "widgets"}}
114+
When the request is sent
115+
Then the response status is 200 OK

packages/datadog-api-client/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,4 +464,5 @@ apiInstance
464464
| Usage Metering | @datadog/datadog-api-client-usage-metering | [README.md](../../services/usage-metering/README.md) |
465465
| Users | @datadog/datadog-api-client-users | [README.md](../../services/users/README.md) |
466466
| Webhooks Integration | @datadog/datadog-api-client-webhooks-integration | [README.md](../../services/webhooks-integration/README.md) |
467+
| Widgets | @datadog/datadog-api-client-widgets | [README.md](../../services/widgets/README.md) |
467468
| Workflow Automation | @datadog/datadog-api-client-workflow-automation | [README.md](../../services/workflow-automation/README.md) |

0 commit comments

Comments
 (0)