Skip to content

Commit 2441256

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit e3288dc2 of spec repo (#867)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 4d212dd commit 2441256

File tree

9 files changed

+394
-15
lines changed

9 files changed

+394
-15
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.4",
7-
"regenerated": "2022-10-03 13:35:17.264691",
8-
"spec_repo_commit": "1358b465"
7+
"regenerated": "2022-10-03 19:48:54.357612",
8+
"spec_repo_commit": "e3288dc2"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2022-10-03 13:35:17.277667",
13-
"spec_repo_commit": "1358b465"
12+
"regenerated": "2022-10-03 19:48:54.372666",
13+
"spec_repo_commit": "e3288dc2"
1414
}
1515
}
1616
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2022-10-03T19:34:13.617Z"

cassettes/v2/RUM_2896677143/List-all-the-RUM-applications-returns-OK-response_4258298866/recording.har

Lines changed: 57 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2022-10-03T19:33:57.521Z"
Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
{
2+
"log": {
3+
"_recordingName": "RUM/Update a RUM application returns \"OK\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "74945625c01aa598e53865a53ceb0685",
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": 569,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"data\":{\"attributes\":{\"name\":\"test_name_create\",\"type\":\"browser\"},\"type\":\"rum_application_create\"}}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v2/rum/applications"
39+
},
40+
"response": {
41+
"bodySize": 409,
42+
"content": {
43+
"mimeType": "application/json",
44+
"size": 409,
45+
"text": "{\"data\":{\"attributes\":{\"updated_by_handle\":\"[email protected]\",\"application_id\":\"8aeaffbf-12e3-4192-9b71-7f85bb8f2bf4\",\"name\":\"test_name_create\",\"created_by_handle\":\"[email protected]\",\"created_at\":1664825637704,\"org_id\":321813,\"updated_at\":1664825637704,\"is_active\":false,\"hash\":\"pub1ef487d822e6ce60d082ad0364b29883\",\"type\":\"browser\"},\"type\":\"rum_application\",\"id\":\"8aeaffbf-12e3-4192-9b71-7f85bb8f2bf4\"}}\n"
46+
},
47+
"cookies": [],
48+
"headers": [
49+
{
50+
"name": "content-type",
51+
"value": "application/json"
52+
}
53+
],
54+
"headersSize": 634,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 200,
58+
"statusText": "OK"
59+
},
60+
"startedDateTime": "2022-10-03T19:33:57.528Z",
61+
"time": 800
62+
},
63+
{
64+
"_id": "42c264b80ec4dfa851dcd48f2e4f30e0",
65+
"_order": 0,
66+
"cache": {},
67+
"request": {
68+
"bodySize": 172,
69+
"cookies": [],
70+
"headers": [
71+
{
72+
"_fromType": "array",
73+
"name": "accept",
74+
"value": "application/json"
75+
},
76+
{
77+
"_fromType": "array",
78+
"name": "content-type",
79+
"value": "application/json"
80+
}
81+
],
82+
"headersSize": 607,
83+
"httpVersion": "HTTP/1.1",
84+
"method": "PATCH",
85+
"postData": {
86+
"mimeType": "application/json",
87+
"params": [],
88+
"text": "{\"data\":{\"attributes\":{\"name\":\"updated_name_for_my_existing_rum_application\",\"type\":\"browser\"},\"id\":\"8aeaffbf-12e3-4192-9b71-7f85bb8f2bf4\",\"type\":\"rum_application_update\"}}"
89+
},
90+
"queryString": [],
91+
"url": "https://api.datadoghq.com/api/v2/rum/applications/8aeaffbf-12e3-4192-9b71-7f85bb8f2bf4"
92+
},
93+
"response": {
94+
"bodySize": 437,
95+
"content": {
96+
"mimeType": "application/json",
97+
"size": 437,
98+
"text": "{\"data\":{\"attributes\":{\"updated_by_handle\":\"[email protected]\",\"application_id\":\"8aeaffbf-12e3-4192-9b71-7f85bb8f2bf4\",\"name\":\"updated_name_for_my_existing_rum_application\",\"created_by_handle\":\"[email protected]\",\"created_at\":1664825637704,\"org_id\":321813,\"updated_at\":1664825638467,\"is_active\":false,\"hash\":\"pub1ef487d822e6ce60d082ad0364b29883\",\"type\":\"browser\"},\"type\":\"rum_application\",\"id\":\"8aeaffbf-12e3-4192-9b71-7f85bb8f2bf4\"}}\n"
99+
},
100+
"cookies": [],
101+
"headers": [
102+
{
103+
"name": "content-type",
104+
"value": "application/json"
105+
}
106+
],
107+
"headersSize": 634,
108+
"httpVersion": "HTTP/1.1",
109+
"redirectURL": "",
110+
"status": 200,
111+
"statusText": "OK"
112+
},
113+
"startedDateTime": "2022-10-03T19:33:58.342Z",
114+
"time": 155
115+
},
116+
{
117+
"_id": "29dd7139f66935ee7523e87b4e18ae49",
118+
"_order": 0,
119+
"cache": {},
120+
"request": {
121+
"bodySize": 0,
122+
"cookies": [],
123+
"headers": [
124+
{
125+
"_fromType": "array",
126+
"name": "accept",
127+
"value": "*/*"
128+
}
129+
],
130+
"headersSize": 542,
131+
"httpVersion": "HTTP/1.1",
132+
"method": "DELETE",
133+
"queryString": [],
134+
"url": "https://api.datadoghq.com/api/v2/rum/applications/8aeaffbf-12e3-4192-9b71-7f85bb8f2bf4"
135+
},
136+
"response": {
137+
"bodySize": 0,
138+
"content": {
139+
"mimeType": "text/plain",
140+
"size": 0
141+
},
142+
"cookies": [],
143+
"headers": [],
144+
"headersSize": 581,
145+
"httpVersion": "HTTP/1.1",
146+
"redirectURL": "",
147+
"status": 204,
148+
"statusText": "No Content"
149+
},
150+
"startedDateTime": "2022-10-03T19:33:58.508Z",
151+
"time": 156
152+
}
153+
],
154+
"pages": [],
155+
"version": "1.2"
156+
}
157+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2022-10-03T19:32:50.950Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
{
2+
"log": {
3+
"_recordingName": "RUM/Update a RUM application returns \"Unprocessable Entity.\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "74945625c01aa598e53865a53ceb0685",
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": 571,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"data\":{\"attributes\":{\"name\":\"test_name_create\",\"type\":\"browser\"},\"type\":\"rum_application_create\"}}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v2/rum/applications"
39+
},
40+
"response": {
41+
"bodySize": 409,
42+
"content": {
43+
"mimeType": "application/json",
44+
"size": 409,
45+
"text": "{\"data\":{\"attributes\":{\"updated_by_handle\":\"[email protected]\",\"application_id\":\"296a7eed-c8e3-480d-b3f1-0777555d6005\",\"name\":\"test_name_create\",\"created_by_handle\":\"[email protected]\",\"created_at\":1664825571864,\"org_id\":321813,\"updated_at\":1664825571864,\"is_active\":false,\"hash\":\"puba93f53dff0e15bc11416bd06e42c6cd3\",\"type\":\"browser\"},\"type\":\"rum_application\",\"id\":\"296a7eed-c8e3-480d-b3f1-0777555d6005\"}}\n"
46+
},
47+
"cookies": [],
48+
"headers": [
49+
{
50+
"name": "content-type",
51+
"value": "application/json"
52+
}
53+
],
54+
"headersSize": 634,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 200,
58+
"statusText": "OK"
59+
},
60+
"startedDateTime": "2022-10-03T19:32:50.958Z",
61+
"time": 955
62+
},
63+
{
64+
"_id": "aaceff19478abf7da754f4e929677aab",
65+
"_order": 0,
66+
"cache": {},
67+
"request": {
68+
"bodySize": 72,
69+
"cookies": [],
70+
"headers": [
71+
{
72+
"_fromType": "array",
73+
"name": "accept",
74+
"value": "application/json"
75+
},
76+
{
77+
"_fromType": "array",
78+
"name": "content-type",
79+
"value": "application/json"
80+
}
81+
],
82+
"headersSize": 608,
83+
"httpVersion": "HTTP/1.1",
84+
"method": "PATCH",
85+
"postData": {
86+
"mimeType": "application/json",
87+
"params": [],
88+
"text": "{\"data\":{\"id\":\"this_id_will_not_match\",\"type\":\"rum_application_update\"}}"
89+
},
90+
"queryString": [],
91+
"url": "https://api.datadoghq.com/api/v2/rum/applications/296a7eed-c8e3-480d-b3f1-0777555d6005"
92+
},
93+
"response": {
94+
"bodySize": 84,
95+
"content": {
96+
"mimeType": "application/json",
97+
"size": 84,
98+
"text": "{\"errors\":[\"The id attribute in the request body does not match the id in the URL\"]}"
99+
},
100+
"cookies": [],
101+
"headers": [
102+
{
103+
"name": "content-type",
104+
"value": "application/json"
105+
}
106+
],
107+
"headersSize": 633,
108+
"httpVersion": "HTTP/1.1",
109+
"redirectURL": "",
110+
"status": 422,
111+
"statusText": "Unprocessable Entity"
112+
},
113+
"startedDateTime": "2022-10-03T19:32:51.928Z",
114+
"time": 136
115+
},
116+
{
117+
"_id": "7aa1c1ec854f5c20dd2aa55a774cbb39",
118+
"_order": 0,
119+
"cache": {},
120+
"request": {
121+
"bodySize": 0,
122+
"cookies": [],
123+
"headers": [
124+
{
125+
"_fromType": "array",
126+
"name": "accept",
127+
"value": "*/*"
128+
}
129+
],
130+
"headersSize": 544,
131+
"httpVersion": "HTTP/1.1",
132+
"method": "DELETE",
133+
"queryString": [],
134+
"url": "https://api.datadoghq.com/api/v2/rum/applications/296a7eed-c8e3-480d-b3f1-0777555d6005"
135+
},
136+
"response": {
137+
"bodySize": 0,
138+
"content": {
139+
"mimeType": "text/plain",
140+
"size": 0
141+
},
142+
"cookies": [],
143+
"headers": [],
144+
"headersSize": 581,
145+
"httpVersion": "HTTP/1.1",
146+
"redirectURL": "",
147+
"status": 204,
148+
"statusText": "No Content"
149+
},
150+
"startedDateTime": "2022-10-03T19:32:52.076Z",
151+
"time": 156
152+
}
153+
],
154+
"pages": [],
155+
"version": "1.2"
156+
}
157+
}

examples/v2/rum/UpdateRUMApplication.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,21 @@ import { client, v2 } from "@datadog/datadog-api-client";
77
const configuration = client.createConfiguration();
88
const apiInstance = new v2.RUMApi(configuration);
99

10+
// there is a valid "rum_application" in the system
11+
const RUM_APPLICATION_DATA_ID = process.env.RUM_APPLICATION_DATA_ID as string;
12+
1013
const params: v2.RUMApiUpdateRUMApplicationRequest = {
1114
body: {
1215
data: {
1316
attributes: {
1417
name: "updated_name_for_my_existing_rum_application",
1518
type: "browser",
1619
},
17-
id: "abcd1234-0000-0000-abcd-1234abcd5678",
20+
id: RUM_APPLICATION_DATA_ID,
1821
type: "rum_application_update",
1922
},
2023
},
21-
id: "id",
24+
id: RUM_APPLICATION_DATA_ID,
2225
};
2326

2427
apiInstance

0 commit comments

Comments
 (0)