Skip to content

Commit 43d1731

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 89f9f50d of spec repo
1 parent 56b2e26 commit 43d1731

File tree

6 files changed

+134
-8
lines changed

6 files changed

+134
-8
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.6",
7-
"regenerated": "2023-10-30 20:47:58.741038",
8-
"spec_repo_commit": "98cfa2fd"
7+
"regenerated": "2023-10-31 12:30:02.647346",
8+
"spec_repo_commit": "89f9f50d"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2023-10-30 20:47:58.757171",
13-
"spec_repo_commit": "98cfa2fd"
12+
"regenerated": "2023-10-31 12:30:02.665748",
13+
"spec_repo_commit": "89f9f50d"
1414
}
1515
}
1616
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2023-10-30T20:37:07.199Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
{
2+
"log": {
3+
"_recordingName": "AWS Integration/Create an AWS integration returns \"OK\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "0fa932298e4ee1e22d27fbae45a8ee57",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 340,
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": 565,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"account_id\":\"123456789012\",\"account_specific_namespace_rules\":{\"auto_scaling\":false},\"cspm_resource_collection_enabled\":true,\"excluded_regions\":[\"us-east-1\",\"us-west-2\"],\"filter_tags\":[\"$KEY:$VALUE\"],\"host_tags\":[\"$KEY:$VALUE\"],\"metrics_collection_enabled\":false,\"resource_collection_enabled\":true,\"role_name\":\"DatadogAWSIntegrationRole\"}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v1/integration/aws"
39+
},
40+
"response": {
41+
"bodySize": 51,
42+
"content": {
43+
"mimeType": "application/json",
44+
"size": 51,
45+
"text": "{\"external_id\":\"240b016c46fe4ceb95ac0232da138c88\"}\n"
46+
},
47+
"cookies": [],
48+
"headers": [
49+
{
50+
"name": "content-type",
51+
"value": "application/json"
52+
}
53+
],
54+
"headersSize": 516,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 200,
58+
"statusText": "OK"
59+
},
60+
"startedDateTime": "2023-10-30T20:37:07.214Z",
61+
"time": 1013
62+
},
63+
{
64+
"_id": "7b99dc51b31a17819c7092e92dc505be",
65+
"_order": 0,
66+
"cache": {},
67+
"request": {
68+
"bodySize": 69,
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": 566,
83+
"httpVersion": "HTTP/1.1",
84+
"method": "DELETE",
85+
"postData": {
86+
"mimeType": "application/json",
87+
"params": [],
88+
"text": "{\"account_id\":\"123456789012\",\"role_name\":\"DatadogAWSIntegrationRole\"}"
89+
},
90+
"queryString": [],
91+
"url": "https://api.datadoghq.com/api/v1/integration/aws"
92+
},
93+
"response": {
94+
"bodySize": 3,
95+
"content": {
96+
"mimeType": "application/json",
97+
"size": 3,
98+
"text": "{}\n"
99+
},
100+
"cookies": [],
101+
"headers": [
102+
{
103+
"name": "content-type",
104+
"value": "application/json"
105+
}
106+
],
107+
"headersSize": 492,
108+
"httpVersion": "HTTP/1.1",
109+
"redirectURL": "",
110+
"status": 200,
111+
"statusText": "OK"
112+
},
113+
"startedDateTime": "2023-10-30T20:37:08.242Z",
114+
"time": 865
115+
}
116+
],
117+
"pages": [],
118+
"version": "1.2"
119+
}
120+
}

examples/v1/aws-integration/CreateAWSAccount.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ const params: v1.AWSIntegrationApiCreateAWSAccountRequest = {
1212
accountId: "123456789012",
1313
accountSpecificNamespaceRules: {
1414
auto_scaling: false,
15-
opswork: false,
1615
},
1716
cspmResourceCollectionEnabled: true,
1817
excludedRegions: ["us-east-1", "us-west-2"],

features/v1/aws_integration.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ Feature: AWS Integration
2323
When the request is sent
2424
Then the response status is 409 Conflict Error
2525

26-
@generated @skip @team:DataDog/cloud-integrations
26+
@team:DataDog/cloud-integrations
2727
Scenario: Create an AWS integration returns "OK" response
2828
Given new "CreateAWSAccount" request
29-
And body with value {"account_id": "123456789012", "account_specific_namespace_rules": {"auto_scaling": false, "opswork": false}, "cspm_resource_collection_enabled": true, "excluded_regions": ["us-east-1", "us-west-2"], "filter_tags": ["$KEY:$VALUE"], "host_tags": ["$KEY:$VALUE"], "metrics_collection_enabled": false, "resource_collection_enabled": true, "role_name": "DatadogAWSIntegrationRole"}
29+
And body with value {"account_id": "123456789012", "account_specific_namespace_rules": {"auto_scaling": false}, "cspm_resource_collection_enabled": true, "excluded_regions": ["us-east-1", "us-west-2"], "filter_tags": ["$KEY:$VALUE"], "host_tags": ["$KEY:$VALUE"], "metrics_collection_enabled": false, "resource_collection_enabled": true, "role_name": "DatadogAWSIntegrationRole"}
3030
When the request is sent
3131
Then the response status is 200 OK
3232

features/v1/undo.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,13 @@
356356
"tag": "AWS Integration",
357357
"undo": {
358358
"operationId": "DeleteAWSAccount",
359-
"parameters": [],
359+
"parameters": [
360+
{
361+
"name": "body",
362+
"origin": "request",
363+
"template": "{\"account_id\": \"{{account_id}}\", \"role_name\": \"{{role_name}}\"}"
364+
}
365+
],
360366
"type": "unsafe"
361367
}
362368
},

0 commit comments

Comments
 (0)