Skip to content

Commit 9d26172

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit cf1cdfa of spec repo
1 parent 507c098 commit 9d26172

30 files changed

+2800
-233
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 624 additions & 53 deletions
Large diffs are not rendered by default.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/**
2+
* List tracers for a specific agent returns "OK" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
configuration.unstableOperations["v2.listFleetAgentTracers"] = true;
9+
const apiInstance = new v2.FleetAutomationApi(configuration);
10+
11+
const params: v2.FleetAutomationApiListFleetAgentTracersRequest = {
12+
agentKey: "agent_key",
13+
};
14+
15+
apiInstance
16+
.listFleetAgentTracers(params)
17+
.then((data: v2.FleetTracersResponse) => {
18+
console.log(
19+
"API called successfully. Returned data: " + JSON.stringify(data)
20+
);
21+
})
22+
.catch((error: any) => console.error(error));
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* List all fleet clusters returns "OK" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
configuration.unstableOperations["v2.listFleetClusters"] = true;
9+
const apiInstance = new v2.FleetAutomationApi(configuration);
10+
11+
apiInstance
12+
.listFleetClusters()
13+
.then((data: v2.FleetClustersResponse) => {
14+
console.log(
15+
"API called successfully. Returned data: " + JSON.stringify(data)
16+
);
17+
})
18+
.catch((error: any) => console.error(error));
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/**
2+
* List instrumented pods for a cluster returns "OK" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
configuration.unstableOperations["v2.listFleetInstrumentedPods"] = true;
9+
const apiInstance = new v2.FleetAutomationApi(configuration);
10+
11+
const params: v2.FleetAutomationApiListFleetInstrumentedPodsRequest = {
12+
clusterName: "cluster_name",
13+
};
14+
15+
apiInstance
16+
.listFleetInstrumentedPods(params)
17+
.then((data: v2.FleetInstrumentedPodsResponse) => {
18+
console.log(
19+
"API called successfully. Returned data: " + JSON.stringify(data)
20+
);
21+
})
22+
.catch((error: any) => console.error(error));
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* List all fleet tracers returns "OK" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
configuration.unstableOperations["v2.listFleetTracers"] = true;
9+
const apiInstance = new v2.FleetAutomationApi(configuration);
10+
11+
apiInstance
12+
.listFleetTracers()
13+
.then((data: v2.FleetTracersResponse) => {
14+
console.log(
15+
"API called successfully. Returned data: " + JSON.stringify(data)
16+
);
17+
})
18+
.catch((error: any) => console.error(error));

features/support/scenarios_model_mapping.ts

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2374,13 +2374,70 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = {
23742374
},
23752375
"operationResponseType": "FleetAgentsResponse",
23762376
},
2377+
"v2.ListFleetAgentTracers": {
2378+
"agentKey": {
2379+
"type": "string",
2380+
"format": "",
2381+
},
2382+
"pageNumber": {
2383+
"type": "number",
2384+
"format": "int64",
2385+
},
2386+
"pageSize": {
2387+
"type": "number",
2388+
"format": "int64",
2389+
},
2390+
"sortAttribute": {
2391+
"type": "string",
2392+
"format": "",
2393+
},
2394+
"sortDescending": {
2395+
"type": "boolean",
2396+
"format": "",
2397+
},
2398+
"operationResponseType": "FleetTracersResponse",
2399+
},
23772400
"v2.GetFleetAgentInfo": {
23782401
"agentKey": {
23792402
"type": "string",
23802403
"format": "",
23812404
},
23822405
"operationResponseType": "FleetAgentInfoResponse",
23832406
},
2407+
"v2.ListFleetClusters": {
2408+
"pageNumber": {
2409+
"type": "number",
2410+
"format": "int64",
2411+
},
2412+
"pageSize": {
2413+
"type": "number",
2414+
"format": "int64",
2415+
},
2416+
"sortAttribute": {
2417+
"type": "string",
2418+
"format": "",
2419+
},
2420+
"sortDescending": {
2421+
"type": "boolean",
2422+
"format": "",
2423+
},
2424+
"filter": {
2425+
"type": "string",
2426+
"format": "",
2427+
},
2428+
"tags": {
2429+
"type": "string",
2430+
"format": "",
2431+
},
2432+
"operationResponseType": "FleetClustersResponse",
2433+
},
2434+
"v2.ListFleetInstrumentedPods": {
2435+
"clusterName": {
2436+
"type": "string",
2437+
"format": "",
2438+
},
2439+
"operationResponseType": "FleetInstrumentedPodsResponse",
2440+
},
23842441
"v2.ListFleetDeployments": {
23852442
"pageSize": {
23862443
"type": "number",
@@ -2470,6 +2527,29 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = {
24702527
},
24712528
"operationResponseType": "FleetDeploymentResponse",
24722529
},
2530+
"v2.ListFleetTracers": {
2531+
"pageNumber": {
2532+
"type": "number",
2533+
"format": "int64",
2534+
},
2535+
"pageSize": {
2536+
"type": "number",
2537+
"format": "int64",
2538+
},
2539+
"sortAttribute": {
2540+
"type": "string",
2541+
"format": "",
2542+
},
2543+
"sortDescending": {
2544+
"type": "boolean",
2545+
"format": "",
2546+
},
2547+
"filter": {
2548+
"type": "string",
2549+
"format": "",
2550+
},
2551+
"operationResponseType": "FleetTracersResponse",
2552+
},
24732553
"v2.ListDatastores": {
24742554
"operationResponseType": "DatastoreArray",
24752555
},

features/v2/fleet_automation.feature

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,48 @@ Feature: Fleet Automation
232232
When the request is sent
233233
Then the response status is 200 OK
234234

235+
@generated @skip @team:DataDog/fleet-automation
236+
Scenario: List all fleet clusters returns "Bad Request" response
237+
Given operation "ListFleetClusters" enabled
238+
And new "ListFleetClusters" request
239+
When the request is sent
240+
Then the response status is 400 Bad Request
241+
242+
@generated @skip @team:DataDog/fleet-automation
243+
Scenario: List all fleet clusters returns "Not Found" response
244+
Given operation "ListFleetClusters" enabled
245+
And new "ListFleetClusters" request
246+
When the request is sent
247+
Then the response status is 404 Not Found
248+
249+
@generated @skip @team:DataDog/fleet-automation
250+
Scenario: List all fleet clusters returns "OK" response
251+
Given operation "ListFleetClusters" enabled
252+
And new "ListFleetClusters" request
253+
When the request is sent
254+
Then the response status is 200 OK
255+
256+
@generated @skip @team:DataDog/fleet-automation
257+
Scenario: List all fleet tracers returns "Bad Request" response
258+
Given operation "ListFleetTracers" enabled
259+
And new "ListFleetTracers" request
260+
When the request is sent
261+
Then the response status is 400 Bad Request
262+
263+
@generated @skip @team:DataDog/fleet-automation
264+
Scenario: List all fleet tracers returns "Not Found" response
265+
Given operation "ListFleetTracers" enabled
266+
And new "ListFleetTracers" request
267+
When the request is sent
268+
Then the response status is 404 Not Found
269+
270+
@generated @skip @team:DataDog/fleet-automation
271+
Scenario: List all fleet tracers returns "OK" response
272+
Given operation "ListFleetTracers" enabled
273+
And new "ListFleetTracers" request
274+
When the request is sent
275+
Then the response status is 200 OK
276+
235277
@generated @skip @team:DataDog/fleet-automation
236278
Scenario: List all schedules returns "Bad Request" response
237279
Given operation "ListFleetSchedules" enabled
@@ -246,6 +288,54 @@ Feature: Fleet Automation
246288
When the request is sent
247289
Then the response status is 200 OK
248290

291+
@generated @skip @team:DataDog/fleet-automation
292+
Scenario: List instrumented pods for a cluster returns "Bad Request" response
293+
Given operation "ListFleetInstrumentedPods" enabled
294+
And new "ListFleetInstrumentedPods" request
295+
And request contains "cluster_name" parameter from "REPLACE.ME"
296+
When the request is sent
297+
Then the response status is 400 Bad Request
298+
299+
@generated @skip @team:DataDog/fleet-automation
300+
Scenario: List instrumented pods for a cluster returns "Not Found" response
301+
Given operation "ListFleetInstrumentedPods" enabled
302+
And new "ListFleetInstrumentedPods" request
303+
And request contains "cluster_name" parameter from "REPLACE.ME"
304+
When the request is sent
305+
Then the response status is 404 Not Found
306+
307+
@generated @skip @team:DataDog/fleet-automation
308+
Scenario: List instrumented pods for a cluster returns "OK" response
309+
Given operation "ListFleetInstrumentedPods" enabled
310+
And new "ListFleetInstrumentedPods" request
311+
And request contains "cluster_name" parameter from "REPLACE.ME"
312+
When the request is sent
313+
Then the response status is 200 OK
314+
315+
@generated @skip @team:DataDog/fleet-automation
316+
Scenario: List tracers for a specific agent returns "Bad Request" response
317+
Given operation "ListFleetAgentTracers" enabled
318+
And new "ListFleetAgentTracers" request
319+
And request contains "agent_key" parameter from "REPLACE.ME"
320+
When the request is sent
321+
Then the response status is 400 Bad Request
322+
323+
@generated @skip @team:DataDog/fleet-automation
324+
Scenario: List tracers for a specific agent returns "Not Found" response
325+
Given operation "ListFleetAgentTracers" enabled
326+
And new "ListFleetAgentTracers" request
327+
And request contains "agent_key" parameter from "REPLACE.ME"
328+
When the request is sent
329+
Then the response status is 404 Not Found
330+
331+
@generated @skip @team:DataDog/fleet-automation
332+
Scenario: List tracers for a specific agent returns "OK" response
333+
Given operation "ListFleetAgentTracers" enabled
334+
And new "ListFleetAgentTracers" request
335+
And request contains "agent_key" parameter from "REPLACE.ME"
336+
When the request is sent
337+
Then the response status is 200 OK
338+
249339
@generated @skip @team:DataDog/fleet-automation
250340
Scenario: Trigger a schedule deployment returns "Bad Request" response
251341
Given operation "TriggerFleetSchedule" enabled

features/v2/undo.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,30 @@
1111
"type": "safe"
1212
}
1313
},
14+
"ListFleetAgentTracers": {
15+
"tag": "Fleet Automation",
16+
"undo": {
17+
"type": "safe"
18+
}
19+
},
1420
"GetFleetAgentInfo": {
1521
"tag": "Fleet Automation",
1622
"undo": {
1723
"type": "safe"
1824
}
1925
},
26+
"ListFleetClusters": {
27+
"tag": "Fleet Automation",
28+
"undo": {
29+
"type": "safe"
30+
}
31+
},
32+
"ListFleetInstrumentedPods": {
33+
"tag": "Fleet Automation",
34+
"undo": {
35+
"type": "safe"
36+
}
37+
},
2038
"ListFleetDeployments": {
2139
"tag": "Fleet Automation",
2240
"undo": {
@@ -111,6 +129,12 @@
111129
"type": "unsafe"
112130
}
113131
},
132+
"ListFleetTracers": {
133+
"tag": "Fleet Automation",
134+
"undo": {
135+
"type": "safe"
136+
}
137+
},
114138
"ListDatastores": {
115139
"tag": "Actions Datastores",
116140
"undo": {

packages/datadog-api-client-common/configuration.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,13 @@ export function createConfiguration(
231231
"v2.getFleetDeployment": false,
232232
"v2.getFleetSchedule": false,
233233
"v2.listFleetAgents": false,
234+
"v2.listFleetAgentTracers": false,
234235
"v2.listFleetAgentVersions": false,
236+
"v2.listFleetClusters": false,
235237
"v2.listFleetDeployments": false,
238+
"v2.listFleetInstrumentedPods": false,
236239
"v2.listFleetSchedules": false,
240+
"v2.listFleetTracers": false,
237241
"v2.triggerFleetSchedule": false,
238242
"v2.updateFleetSchedule": false,
239243
"v2.createOpenAPI": false,

0 commit comments

Comments
 (0)