Skip to content

Commit f888a16

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 2dee01f of spec repo
1 parent dac1eaa commit f888a16

30 files changed

+2296
-71
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 441 additions & 9 deletions
Large diffs are not rendered by default.

features/v2/incidents.feature

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -806,16 +806,14 @@ Feature: Incidents
806806

807807
@generated @skip @team:DataDog/incident-app
808808
Scenario: List an incident's impacts returns "Bad Request" response
809-
Given operation "ListIncidentImpacts" enabled
810-
And new "ListIncidentImpacts" request
809+
Given new "ListIncidentImpacts" request
811810
And request contains "incident_id" parameter from "REPLACE.ME"
812811
When the request is sent
813812
Then the response status is 400 Bad Request
814813

815814
@generated @skip @team:DataDog/incident-app
816815
Scenario: List an incident's impacts returns "Not Found" response
817-
Given operation "ListIncidentImpacts" enabled
818-
And new "ListIncidentImpacts" request
816+
Given new "ListIncidentImpacts" request
819817
And request contains "incident_id" parameter from "REPLACE.ME"
820818
When the request is sent
821819
Then the response status is 404 Not Found

features/v2/synthetics.feature

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,73 @@ Feature: Synthetics
2727
When the request is sent
2828
Then the response status is 200 OK
2929
And the response "data.attributes.on_demand_concurrency_cap" is equal to 20
30+
31+
@generated @skip @team:DataDog/synthetics-managing
32+
Scenario: Search Synthetics suites returns "API error response." response
33+
Given new "SearchSuites" request
34+
When the request is sent
35+
Then the response status is 400 API error response.
36+
37+
@team:DataDog/synthetics-managing
38+
Scenario: Search Synthetics suites returns "OK" response
39+
Given new "SearchSuites" request
40+
When the request is sent
41+
Then the response status is 200 OK
42+
43+
@generated @skip @team:DataDog/synthetics-managing
44+
Scenario: Synthetics: Bulk delete suites returns "API error response." response
45+
Given new "DeleteSyntheticsSuites" request
46+
And body with value {"data": {"attributes": {"public_ids": [""]}, "type": "delete_suites_request"}}
47+
When the request is sent
48+
Then the response status is 400 API error response.
49+
50+
@generated @skip @team:DataDog/synthetics-managing
51+
Scenario: Synthetics: Bulk delete suites returns "OK" response
52+
Given new "DeleteSyntheticsSuites" request
53+
And body with value {"data": {"attributes": {"public_ids": [""]}, "type": "delete_suites_request"}}
54+
When the request is sent
55+
Then the response status is 200 OK
56+
57+
@generated @skip @team:DataDog/synthetics-managing
58+
Scenario: Synthetics: Create a test suite returns "API error response." response
59+
Given new "CreateSyntheticsSuite" request
60+
And body with value {"data": {"attributes": {"message": "Notification message", "name": "Example suite name", "options": {}, "tags": ["env:production"], "tests": [{"alerting_criticality": "critical", "public_id": ""}], "type": "suite"}, "type": "suites"}}
61+
When the request is sent
62+
Then the response status is 400 API error response.
63+
64+
@team:DataDog/synthetics-managing
65+
Scenario: Synthetics: Create a test suite returns "OK" response
66+
Given new "CreateSyntheticsSuite" request
67+
And body with value {"data": {"attributes": {"message": "Notification message", "name": "Example suite name", "options": {}, "tags": ["env:production"], "tests": [], "type": "suite"}, "type": "suites"}}
68+
When the request is sent
69+
Then the response status is 200 OK
70+
71+
@generated @skip @team:DataDog/synthetics-managing
72+
Scenario: Synthetics: Get a suite returns "API error response." response
73+
Given new "GetSyntheticsSuite" request
74+
And request contains "public_id" parameter from "REPLACE.ME"
75+
When the request is sent
76+
Then the response status is 404 API error response.
77+
78+
@generated @skip @team:DataDog/synthetics-managing
79+
Scenario: Synthetics: Get a suite returns "OK" response
80+
Given new "GetSyntheticsSuite" request
81+
And request contains "public_id" parameter from "REPLACE.ME"
82+
When the request is sent
83+
Then the response status is 200 OK
84+
85+
@generated @skip @team:DataDog/synthetics-managing
86+
Scenario: Synthetics: edit a test suite returns "API error response." response
87+
Given new "EditSyntheticsSuite" request
88+
And request contains "public_id" parameter from "REPLACE.ME"
89+
And body with value {"data": {"attributes": {"message": "Notification message", "name": "Example suite name", "options": {}, "tags": ["env:production"], "tests": [{"alerting_criticality": "critical", "public_id": ""}], "type": "suite"}, "type": "suites"}}
90+
When the request is sent
91+
Then the response status is 400 API error response.
92+
93+
@generated @skip @team:DataDog/synthetics-managing
94+
Scenario: Synthetics: edit a test suite returns "OK" response
95+
Given new "EditSyntheticsSuite" request
96+
And request contains "public_id" parameter from "REPLACE.ME"
97+
And body with value {"data": {"attributes": {"message": "Notification message", "name": "Example suite name", "options": {}, "tags": ["env:production"], "tests": [{"alerting_criticality": "critical", "public_id": ""}], "type": "suite"}, "type": "suites"}}
98+
When the request is sent
99+
Then the response status is 200 OK

features/v2/undo.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4463,6 +4463,43 @@
44634463
"type": "safe"
44644464
}
44654465
},
4466+
"CreateSyntheticsSuite": {
4467+
"tag": "Synthetics",
4468+
"undo": {
4469+
"operationId": "DeleteSyntheticsSuites",
4470+
"parameters": [
4471+
{
4472+
"name": "body",
4473+
"template": "{\"data\": {\"type\": \"delete_suites_request\", \"attributes\": {\"public_ids\": [\"{{ data.attributes.public_id }}\"]}}"
4474+
}
4475+
],
4476+
"type": "unsafe"
4477+
}
4478+
},
4479+
"DeleteSyntheticsSuites": {
4480+
"tag": "Synthetics",
4481+
"undo": {
4482+
"type": "idempotent"
4483+
}
4484+
},
4485+
"SearchSuites": {
4486+
"tag": "Synthetics",
4487+
"undo": {
4488+
"type": "safe"
4489+
}
4490+
},
4491+
"GetSyntheticsSuite": {
4492+
"tag": "Synthetics",
4493+
"undo": {
4494+
"type": "safe"
4495+
}
4496+
},
4497+
"EditSyntheticsSuite": {
4498+
"tag": "Synthetics",
4499+
"undo": {
4500+
"type": "idempotent"
4501+
}
4502+
},
44664503
"ListTagPipelinesRulesets": {
44674504
"tag": "Cloud Cost Management",
44684505
"undo": {

private/bdd_runner/src/support/scenarios_model_mapping.ts

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9005,6 +9005,61 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = {
90059005
},
90069006
operationResponseType: "OnDemandConcurrencyCapResponse",
90079007
},
9008+
"SyntheticsApi.V2.CreateSyntheticsSuite": {
9009+
body: {
9010+
type: "SuiteCreateEditRequest",
9011+
format: "",
9012+
},
9013+
operationResponseType: "SyntheticsSuiteResponse",
9014+
},
9015+
"SyntheticsApi.V2.DeleteSyntheticsSuites": {
9016+
body: {
9017+
type: "DeletedSuitesRequestDeleteRequest",
9018+
format: "",
9019+
},
9020+
operationResponseType: "DeletedSuitesResponse",
9021+
},
9022+
"SyntheticsApi.V2.SearchSuites": {
9023+
query: {
9024+
type: "string",
9025+
format: "",
9026+
},
9027+
sort: {
9028+
type: "string",
9029+
format: "",
9030+
},
9031+
facetsOnly: {
9032+
type: "boolean",
9033+
format: "",
9034+
},
9035+
start: {
9036+
type: "number",
9037+
format: "int64",
9038+
},
9039+
count: {
9040+
type: "number",
9041+
format: "int64",
9042+
},
9043+
operationResponseType: "SyntheticsSuiteSearchResponse",
9044+
},
9045+
"SyntheticsApi.V2.GetSyntheticsSuite": {
9046+
publicId: {
9047+
type: "string",
9048+
format: "",
9049+
},
9050+
operationResponseType: "SyntheticsSuiteResponse",
9051+
},
9052+
"SyntheticsApi.V2.EditSyntheticsSuite": {
9053+
publicId: {
9054+
type: "string",
9055+
format: "",
9056+
},
9057+
body: {
9058+
type: "SuiteCreateEditRequest",
9059+
format: "",
9060+
},
9061+
operationResponseType: "SyntheticsSuiteResponse",
9062+
},
90089063
"TeamsApi.V2.ListTeams": {
90099064
pageNumber: {
90109065
type: "number",

services/incidents/src/v2/IncidentsApi.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,6 @@ export class IncidentsApiRequestFactory extends BaseAPIRequestFactory {
137137
): Promise<RequestContext> {
138138
const _config = _options || this.configuration;
139139

140-
if (!_config.unstableOperations["IncidentsApi.v2.createIncidentImpact"]) {
141-
throw new Error(
142-
"Unstable operation 'createIncidentImpact' is disabled. Enable it by setting `configuration.unstableOperations['IncidentsApi.v2.createIncidentImpact'] = true`",
143-
);
144-
}
145-
146140
// verify required parameter 'incidentId' is not null or undefined
147141
if (incidentId === null || incidentId === undefined) {
148142
throw new RequiredError("incidentId", "createIncidentImpact");
@@ -593,12 +587,6 @@ export class IncidentsApiRequestFactory extends BaseAPIRequestFactory {
593587
): Promise<RequestContext> {
594588
const _config = _options || this.configuration;
595589

596-
if (!_config.unstableOperations["IncidentsApi.v2.deleteIncidentImpact"]) {
597-
throw new Error(
598-
"Unstable operation 'deleteIncidentImpact' is disabled. Enable it by setting `configuration.unstableOperations['IncidentsApi.v2.deleteIncidentImpact'] = true`",
599-
);
600-
}
601-
602590
// verify required parameter 'incidentId' is not null or undefined
603591
if (incidentId === null || incidentId === undefined) {
604592
throw new RequiredError("incidentId", "deleteIncidentImpact");
@@ -1398,12 +1386,6 @@ export class IncidentsApiRequestFactory extends BaseAPIRequestFactory {
13981386
): Promise<RequestContext> {
13991387
const _config = _options || this.configuration;
14001388

1401-
if (!_config.unstableOperations["IncidentsApi.v2.listIncidentImpacts"]) {
1402-
throw new Error(
1403-
"Unstable operation 'listIncidentImpacts' is disabled. Enable it by setting `configuration.unstableOperations['IncidentsApi.v2.listIncidentImpacts'] = true`",
1404-
);
1405-
}
1406-
14071389
// verify required parameter 'incidentId' is not null or undefined
14081390
if (incidentId === null || incidentId === undefined) {
14091391
throw new RequiredError("incidentId", "listIncidentImpacts");

0 commit comments

Comments
 (0)