Skip to content

Commit ae48797

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit dc18f74b of spec repo (#681)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 509cfaf commit ae48797

File tree

5 files changed

+89
-9
lines changed

5 files changed

+89
-9
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.2",
7-
"regenerated": "2022-05-19 09:29:35.796721",
8-
"spec_repo_commit": "d65e6213"
7+
"regenerated": "2022-05-19 13:46:02.637449",
8+
"spec_repo_commit": "dc18f74b"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.2",
12-
"regenerated": "2022-05-19 09:29:35.808666",
13-
"spec_repo_commit": "d65e6213"
12+
"regenerated": "2022-05-19 13:46:02.653894",
13+
"spec_repo_commit": "dc18f74b"
1414
}
1515
}
1616
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2022-05-17T15:38:07.190Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
{
2+
"log": {
3+
"_recordingName": "AWS Integration/Update 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": "0332334dbc51d14ab3a1f528cc205e1a",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 347,
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": 632,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "PUT",
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\":\"datadog-role\"}"
36+
},
37+
"queryString": [
38+
{
39+
"name": "account_id",
40+
"value": "123456789012"
41+
},
42+
{
43+
"name": "role_name",
44+
"value": "datadog-role"
45+
}
46+
],
47+
"url": "https://api.datadoghq.com/api/v1/integration/aws?account_id=123456789012&role_name=datadog-role"
48+
},
49+
"response": {
50+
"bodySize": 2,
51+
"content": {
52+
"mimeType": "application/json;charset=utf-8",
53+
"size": 2,
54+
"text": "{}"
55+
},
56+
"cookies": [],
57+
"headers": [
58+
{
59+
"name": "content-type",
60+
"value": "application/json;charset=utf-8"
61+
}
62+
],
63+
"headersSize": 654,
64+
"httpVersion": "HTTP/1.1",
65+
"redirectURL": "",
66+
"status": 200,
67+
"statusText": "OK"
68+
},
69+
"startedDateTime": "2022-05-17T15:38:07.204Z",
70+
"time": 878
71+
}
72+
],
73+
"pages": [],
74+
"version": "1.2"
75+
}
76+
}

examples/v1/aws-integration/UpdateAWSAccount.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,20 @@ const apiInstance = new v1.AWSIntegrationApi(configuration);
99

1010
const params: v1.AWSIntegrationApiUpdateAWSAccountRequest = {
1111
body: {
12-
accountId: "1234567",
12+
accountId: "123456789012",
1313
accountSpecificNamespaceRules: {
1414
auto_scaling: false,
15-
opswork: false,
1615
},
1716
cspmResourceCollectionEnabled: true,
1817
excludedRegions: ["us-east-1", "us-west-2"],
1918
filterTags: ["$KEY:$VALUE"],
2019
hostTags: ["$KEY:$VALUE"],
2120
metricsCollectionEnabled: false,
2221
resourceCollectionEnabled: true,
23-
roleName: "DatadogAWSIntegrationRole",
22+
roleName: "datadog-role",
2423
},
24+
accountId: "123456789012",
25+
roleName: "datadog-role",
2526
};
2627

2728
apiInstance

features/v1/aws_integration.feature

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,11 @@ Feature: AWS Integration
139139
When the request is sent
140140
Then the response status is 409 Conflict Error
141141

142-
@generated @skip @team:DataDog/cloud-integrations
142+
@replay-only @team:DataDog/cloud-integrations
143143
Scenario: Update an AWS integration returns "OK" response
144144
Given new "UpdateAWSAccount" request
145-
And body with value {"account_id": "1234567", "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"}
145+
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": "datadog-role"}
146+
And request contains "account_id" parameter with value "123456789012"
147+
And request contains "role_name" parameter with value "datadog-role"
146148
When the request is sent
147149
Then the response status is 200 OK

0 commit comments

Comments
 (0)