Skip to content

Commit

Permalink
Regenerate client from commit a3c20084 of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Jul 29, 2024
1 parent 9ee43e8 commit ad3f9f9
Show file tree
Hide file tree
Showing 22 changed files with 920 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-07-26 19:06:12.505492",
"spec_repo_commit": "44cf4afe"
"regenerated": "2024-07-29 14:10:23.819993",
"spec_repo_commit": "a3c20084"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-07-26 19:06:12.524483",
"spec_repo_commit": "44cf4afe"
"regenerated": "2024-07-29 14:10:23.838139",
"spec_repo_commit": "a3c20084"
}
}
}
92 changes: 92 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11316,6 +11316,37 @@ components:
example: /api/v2/scorecard/rules?page%5Blimit%5D=2&page%5Boffset%5D=2&page%5Bsize%5D=2
type: string
type: object
ListTagsResponse:
description: List tags response.
properties:
data:
$ref: '#/components/schemas/ListTagsResponseData'
type: object
ListTagsResponseData:
description: The list tags response data.
properties:
attributes:
$ref: '#/components/schemas/ListTagsResponseDataAttributes'
id:
description: The device ID
example: example:1.2.3.4
type: string
type:
description: The type of the resource. The value should always be tags.
type: string
type: object
ListTagsResponseDataAttributes:
description: The definition of ListTagsResponseDataAttributes object.
properties:
tags:
description: The list of tags
example:
- tag:test
- tag:testbis
items:
type: string
type: array
type: object
ListTeamsInclude:
description: Included related resources optionally requested.
enum:
Expand Down Expand Up @@ -31426,6 +31457,67 @@ paths:
summary: Get the list of interfaces of the device
tags:
- Network Device Monitoring
/api/v2/ndm/tags/devices/{device_id}:
get:
description: Get the list of tags for a device.
operationId: ListTags
parameters:
- description: The id of the device to fetch.
example: example:1.2.3.4
in: path
name: device_id
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/ListTagsResponse'
description: OK
'403':
$ref: '#/components/responses/ForbiddenResponse'
'404':
$ref: '#/components/responses/NotFoundResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Get the list of tags for a device
tags:
- Network Device Monitoring
patch:
description: Update the tags for a device.
operationId: UpdateTags
parameters:
- description: The id of the device to update tags for.
example: example:1.2.3.4
in: path
name: device_id
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ListTagsResponse'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/ListTagsResponse'
description: OK
'403':
$ref: '#/components/responses/ForbiddenResponse'
'404':
$ref: '#/components/responses/NotFoundResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Update the tags for a device
tags:
- Network Device Monitoring
/api/v2/org_configs:
get:
description: Returns all Org Configs (name, description, and value).
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"2024-07-04T16:51:27.417Z"
"2024-07-25T12:51:06.792Z"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"2024-07-29T13:20:36.111Z"
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"log": {
"_recordingName": "Network Device Monitoring/Get the list of tags for a device returns \"Not Found\" response",
"creator": {
"comment": "persister:fs",
"name": "Polly.JS",
"version": "6.0.5"
},
"entries": [
{
"_id": "f71494b8ba4f0260922acf47f8383617",
"_order": 0,
"cache": {},
"request": {
"bodySize": 0,
"cookies": [],
"headers": [
{
"_fromType": "array",
"name": "accept",
"value": "application/json"
}
],
"headersSize": 519,
"httpVersion": "HTTP/1.1",
"method": "GET",
"queryString": [],
"url": "https://api.datadoghq.com/api/v2/ndm/tags/devices/unknown_device_id"
},
"response": {
"bodySize": 49,
"content": {
"mimeType": "application/vnd.api+json",
"size": 49,
"text": "{\"errors\":[{\"status\":\"404\",\"title\":\"Not Found\"}]}"
},
"cookies": [],
"headers": [
{
"name": "content-type",
"value": "application/vnd.api+json"
}
],
"headersSize": 522,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 404,
"statusText": "Not Found"
},
"startedDateTime": "2024-07-29T13:20:36.118Z",
"time": 442
}
],
"pages": [],
"version": "1.2"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"2024-07-29T13:20:36.574Z"
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"log": {
"_recordingName": "Network Device Monitoring/Get the list of tags for a device returns \"OK\" response",
"creator": {
"comment": "persister:fs",
"name": "Polly.JS",
"version": "6.0.5"
},
"entries": [
{
"_id": "39a92be54468482e8374383acb02d1be",
"_order": 0,
"cache": {},
"request": {
"bodySize": 0,
"cookies": [],
"headers": [
{
"_fromType": "array",
"name": "accept",
"value": "application/json"
}
],
"headersSize": 523,
"httpVersion": "HTTP/1.1",
"method": "GET",
"queryString": [],
"url": "https://api.datadoghq.com/api/v2/ndm/tags/devices/default_device"
},
"response": {
"bodySize": 76,
"content": {
"mimeType": "application/vnd.api+json",
"size": 76,
"text": "{\"data\":{\"id\":\"default_device\",\"type\":\"tags\",\"attributes\":{\"tags\":[]}}}"
},
"cookies": [],
"headers": [
{
"name": "content-type",
"value": "application/vnd.api+json"
}
],
"headersSize": 522,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2024-07-29T13:20:36.577Z",
"time": 298
}
],
"pages": [],
"version": "1.2"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"2024-07-29T13:20:36.885Z"
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"log": {
"_recordingName": "Network Device Monitoring/Update the tags for a device returns \"Not Found\" response",
"creator": {
"comment": "persister:fs",
"name": "Polly.JS",
"version": "6.0.5"
},
"entries": [
{
"_id": "f4d68225d43bb7def88b289c1d3d9eb1",
"_order": 0,
"cache": {},
"request": {
"bodySize": 98,
"cookies": [],
"headers": [
{
"_fromType": "array",
"name": "accept",
"value": "application/json"
},
{
"_fromType": "array",
"name": "content-type",
"value": "application/json"
}
],
"headersSize": 575,
"httpVersion": "HTTP/1.1",
"method": "PATCH",
"postData": {
"mimeType": "application/json",
"params": [],
"text": "{\"data\":{\"attributes\":{\"tags\":[\"tag:test\",\"tag:testbis\"]},\"id\":\"unknown_device_id\",\"type\":\"tags\"}}"
},
"queryString": [],
"url": "https://api.datadoghq.com/api/v2/ndm/tags/devices/unknown_device_id"
},
"response": {
"bodySize": 49,
"content": {
"mimeType": "application/vnd.api+json",
"size": 49,
"text": "{\"errors\":[{\"status\":\"404\",\"title\":\"Not Found\"}]}"
},
"cookies": [],
"headers": [
{
"name": "content-type",
"value": "application/vnd.api+json"
}
],
"headersSize": 522,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 404,
"statusText": "Not Found"
},
"startedDateTime": "2024-07-29T13:20:36.887Z",
"time": 284
}
],
"pages": [],
"version": "1.2"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"2024-07-29T13:20:37.177Z"
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"log": {
"_recordingName": "Network Device Monitoring/Update the tags for a device returns \"OK\" response",
"creator": {
"comment": "persister:fs",
"name": "Polly.JS",
"version": "6.0.5"
},
"entries": [
{
"_id": "bacbb6b5436ca7cd99fb20f8a16323da",
"_order": 0,
"cache": {},
"request": {
"bodySize": 100,
"cookies": [],
"headers": [
{
"_fromType": "array",
"name": "accept",
"value": "application/json"
},
{
"_fromType": "array",
"name": "content-type",
"value": "application/json"
}
],
"headersSize": 580,
"httpVersion": "HTTP/1.1",
"method": "PATCH",
"postData": {
"mimeType": "application/json",
"params": [],
"text": "{\"data\":{\"attributes\":{\"tags\":[\"tag:test\",\"tag:testbis\"]},\"id\":\"default_device\",\"type\":\"tags\"}}"
},
"queryString": [],
"url": "https://api.datadoghq.com/api/v2/ndm/tags/devices/default_device"
},
"response": {
"bodySize": 100,
"content": {
"mimeType": "application/vnd.api+json",
"size": 100,
"text": "{\"data\":{\"id\":\"default_device\",\"type\":\"tags\",\"attributes\":{\"tags\":[\"tag:test\",\"tag:testbis\"]}}}"
},
"cookies": [],
"headers": [
{
"name": "content-type",
"value": "application/vnd.api+json"
}
],
"headersSize": 523,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2024-07-29T13:20:37.181Z",
"time": 404
}
],
"pages": [],
"version": "1.2"
}
}
Loading

0 comments on commit ad3f9f9

Please sign in to comment.