Skip to content

Commit ad3f9f9

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit a3c20084 of spec repo
1 parent 9ee43e8 commit ad3f9f9

File tree

22 files changed

+920
-5
lines changed

22 files changed

+920
-5
lines changed

.apigentools-info

+4-4
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-07-26 19:06:12.505492",
8-
"spec_repo_commit": "44cf4afe"
7+
"regenerated": "2024-07-29 14:10:23.819993",
8+
"spec_repo_commit": "a3c20084"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-07-26 19:06:12.524483",
13-
"spec_repo_commit": "44cf4afe"
12+
"regenerated": "2024-07-29 14:10:23.838139",
13+
"spec_repo_commit": "a3c20084"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+92
Original file line numberDiff line numberDiff line change
@@ -11316,6 +11316,37 @@ components:
1131611316
example: /api/v2/scorecard/rules?page%5Blimit%5D=2&page%5Boffset%5D=2&page%5Bsize%5D=2
1131711317
type: string
1131811318
type: object
11319+
ListTagsResponse:
11320+
description: List tags response.
11321+
properties:
11322+
data:
11323+
$ref: '#/components/schemas/ListTagsResponseData'
11324+
type: object
11325+
ListTagsResponseData:
11326+
description: The list tags response data.
11327+
properties:
11328+
attributes:
11329+
$ref: '#/components/schemas/ListTagsResponseDataAttributes'
11330+
id:
11331+
description: The device ID
11332+
example: example:1.2.3.4
11333+
type: string
11334+
type:
11335+
description: The type of the resource. The value should always be tags.
11336+
type: string
11337+
type: object
11338+
ListTagsResponseDataAttributes:
11339+
description: The definition of ListTagsResponseDataAttributes object.
11340+
properties:
11341+
tags:
11342+
description: The list of tags
11343+
example:
11344+
- tag:test
11345+
- tag:testbis
11346+
items:
11347+
type: string
11348+
type: array
11349+
type: object
1131911350
ListTeamsInclude:
1132011351
description: Included related resources optionally requested.
1132111352
enum:
@@ -31426,6 +31457,67 @@ paths:
3142631457
summary: Get the list of interfaces of the device
3142731458
tags:
3142831459
- Network Device Monitoring
31460+
/api/v2/ndm/tags/devices/{device_id}:
31461+
get:
31462+
description: Get the list of tags for a device.
31463+
operationId: ListTags
31464+
parameters:
31465+
- description: The id of the device to fetch.
31466+
example: example:1.2.3.4
31467+
in: path
31468+
name: device_id
31469+
required: true
31470+
schema:
31471+
type: string
31472+
responses:
31473+
'200':
31474+
content:
31475+
application/json:
31476+
schema:
31477+
$ref: '#/components/schemas/ListTagsResponse'
31478+
description: OK
31479+
'403':
31480+
$ref: '#/components/responses/ForbiddenResponse'
31481+
'404':
31482+
$ref: '#/components/responses/NotFoundResponse'
31483+
'429':
31484+
$ref: '#/components/responses/TooManyRequestsResponse'
31485+
summary: Get the list of tags for a device
31486+
tags:
31487+
- Network Device Monitoring
31488+
patch:
31489+
description: Update the tags for a device.
31490+
operationId: UpdateTags
31491+
parameters:
31492+
- description: The id of the device to update tags for.
31493+
example: example:1.2.3.4
31494+
in: path
31495+
name: device_id
31496+
required: true
31497+
schema:
31498+
type: string
31499+
requestBody:
31500+
content:
31501+
application/json:
31502+
schema:
31503+
$ref: '#/components/schemas/ListTagsResponse'
31504+
required: true
31505+
responses:
31506+
'200':
31507+
content:
31508+
application/json:
31509+
schema:
31510+
$ref: '#/components/schemas/ListTagsResponse'
31511+
description: OK
31512+
'403':
31513+
$ref: '#/components/responses/ForbiddenResponse'
31514+
'404':
31515+
$ref: '#/components/responses/NotFoundResponse'
31516+
'429':
31517+
$ref: '#/components/responses/TooManyRequestsResponse'
31518+
summary: Update the tags for a device
31519+
tags:
31520+
- Network Device Monitoring
3142931521
/api/v2/org_configs:
3143031522
get:
3143131523
description: Returns all Org Configs (name, description, and value).
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2024-07-04T16:51:27.417Z"
1+
"2024-07-25T12:51:06.792Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2024-07-29T13:20:36.111Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"log": {
3+
"_recordingName": "Network Device Monitoring/Get the list of tags for a device returns \"Not Found\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "f71494b8ba4f0260922acf47f8383617",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 0,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "accept",
21+
"value": "application/json"
22+
}
23+
],
24+
"headersSize": 519,
25+
"httpVersion": "HTTP/1.1",
26+
"method": "GET",
27+
"queryString": [],
28+
"url": "https://api.datadoghq.com/api/v2/ndm/tags/devices/unknown_device_id"
29+
},
30+
"response": {
31+
"bodySize": 49,
32+
"content": {
33+
"mimeType": "application/vnd.api+json",
34+
"size": 49,
35+
"text": "{\"errors\":[{\"status\":\"404\",\"title\":\"Not Found\"}]}"
36+
},
37+
"cookies": [],
38+
"headers": [
39+
{
40+
"name": "content-type",
41+
"value": "application/vnd.api+json"
42+
}
43+
],
44+
"headersSize": 522,
45+
"httpVersion": "HTTP/1.1",
46+
"redirectURL": "",
47+
"status": 404,
48+
"statusText": "Not Found"
49+
},
50+
"startedDateTime": "2024-07-29T13:20:36.118Z",
51+
"time": 442
52+
}
53+
],
54+
"pages": [],
55+
"version": "1.2"
56+
}
57+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2024-07-29T13:20:36.574Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"log": {
3+
"_recordingName": "Network Device Monitoring/Get the list of tags for a device returns \"OK\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "39a92be54468482e8374383acb02d1be",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 0,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "accept",
21+
"value": "application/json"
22+
}
23+
],
24+
"headersSize": 523,
25+
"httpVersion": "HTTP/1.1",
26+
"method": "GET",
27+
"queryString": [],
28+
"url": "https://api.datadoghq.com/api/v2/ndm/tags/devices/default_device"
29+
},
30+
"response": {
31+
"bodySize": 76,
32+
"content": {
33+
"mimeType": "application/vnd.api+json",
34+
"size": 76,
35+
"text": "{\"data\":{\"id\":\"default_device\",\"type\":\"tags\",\"attributes\":{\"tags\":[]}}}"
36+
},
37+
"cookies": [],
38+
"headers": [
39+
{
40+
"name": "content-type",
41+
"value": "application/vnd.api+json"
42+
}
43+
],
44+
"headersSize": 522,
45+
"httpVersion": "HTTP/1.1",
46+
"redirectURL": "",
47+
"status": 200,
48+
"statusText": "OK"
49+
},
50+
"startedDateTime": "2024-07-29T13:20:36.577Z",
51+
"time": 298
52+
}
53+
],
54+
"pages": [],
55+
"version": "1.2"
56+
}
57+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2024-07-29T13:20:36.885Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"log": {
3+
"_recordingName": "Network Device Monitoring/Update the tags for a device returns \"Not Found\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "f4d68225d43bb7def88b289c1d3d9eb1",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 98,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "accept",
21+
"value": "application/json"
22+
},
23+
{
24+
"_fromType": "array",
25+
"name": "content-type",
26+
"value": "application/json"
27+
}
28+
],
29+
"headersSize": 575,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "PATCH",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"data\":{\"attributes\":{\"tags\":[\"tag:test\",\"tag:testbis\"]},\"id\":\"unknown_device_id\",\"type\":\"tags\"}}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v2/ndm/tags/devices/unknown_device_id"
39+
},
40+
"response": {
41+
"bodySize": 49,
42+
"content": {
43+
"mimeType": "application/vnd.api+json",
44+
"size": 49,
45+
"text": "{\"errors\":[{\"status\":\"404\",\"title\":\"Not Found\"}]}"
46+
},
47+
"cookies": [],
48+
"headers": [
49+
{
50+
"name": "content-type",
51+
"value": "application/vnd.api+json"
52+
}
53+
],
54+
"headersSize": 522,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 404,
58+
"statusText": "Not Found"
59+
},
60+
"startedDateTime": "2024-07-29T13:20:36.887Z",
61+
"time": 284
62+
}
63+
],
64+
"pages": [],
65+
"version": "1.2"
66+
}
67+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2024-07-29T13:20:37.177Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"log": {
3+
"_recordingName": "Network Device Monitoring/Update the tags for a device returns \"OK\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "bacbb6b5436ca7cd99fb20f8a16323da",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 100,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "accept",
21+
"value": "application/json"
22+
},
23+
{
24+
"_fromType": "array",
25+
"name": "content-type",
26+
"value": "application/json"
27+
}
28+
],
29+
"headersSize": 580,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "PATCH",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"data\":{\"attributes\":{\"tags\":[\"tag:test\",\"tag:testbis\"]},\"id\":\"default_device\",\"type\":\"tags\"}}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v2/ndm/tags/devices/default_device"
39+
},
40+
"response": {
41+
"bodySize": 100,
42+
"content": {
43+
"mimeType": "application/vnd.api+json",
44+
"size": 100,
45+
"text": "{\"data\":{\"id\":\"default_device\",\"type\":\"tags\",\"attributes\":{\"tags\":[\"tag:test\",\"tag:testbis\"]}}}"
46+
},
47+
"cookies": [],
48+
"headers": [
49+
{
50+
"name": "content-type",
51+
"value": "application/vnd.api+json"
52+
}
53+
],
54+
"headersSize": 523,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 200,
58+
"statusText": "OK"
59+
},
60+
"startedDateTime": "2024-07-29T13:20:37.181Z",
61+
"time": 404
62+
}
63+
],
64+
"pages": [],
65+
"version": "1.2"
66+
}
67+
}

0 commit comments

Comments
 (0)