Skip to content

Commit 4613292

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit dc18f74b of spec repo (#999)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent e46eb9d commit 4613292

File tree

5 files changed

+32
-10
lines changed

5 files changed

+32
-10
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:33.345761",
8-
"spec_repo_commit": "d65e6213"
7+
"regenerated": "2022-05-19 13:45:57.312769",
8+
"spec_repo_commit": "dc18f74b"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.2",
12-
"regenerated": "2022-05-19 09:29:33.359938",
13-
"spec_repo_commit": "d65e6213"
12+
"regenerated": "2022-05-19 13:45:57.324742",
13+
"spec_repo_commit": "dc18f74b"
1414
}
1515
}
1616
}

examples/v1/aws-integration/UpdateAWSAccount.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@
77
from datadog_api_client.v1.model.aws_account import AWSAccount
88

99
body = AWSAccount(
10-
account_id="1234567",
10+
account_id="123456789012",
1111
account_specific_namespace_rules=dict(
1212
auto_scaling=False,
13-
opswork=False,
1413
),
1514
cspm_resource_collection_enabled=True,
1615
excluded_regions=[
@@ -25,12 +24,12 @@
2524
],
2625
metrics_collection_enabled=False,
2726
resource_collection_enabled=True,
28-
role_name="DatadogAWSIntegrationRole",
27+
role_name="datadog-role",
2928
)
3029

3130
configuration = Configuration()
3231
with ApiClient(configuration) as api_client:
3332
api_instance = AWSIntegrationApi(api_client)
34-
response = api_instance.update_aws_account(body=body)
33+
response = api_instance.update_aws_account(account_id="123456789012", role_name="datadog-role", body=body)
3534

3635
print(response)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2022-05-17T15:38:07.190Z
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
interactions:
2+
- request:
3+
body: '{"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"}'
4+
headers:
5+
accept:
6+
- application/json
7+
content-type:
8+
- application/json
9+
method: PUT
10+
uri: https://api.datadoghq.com/api/v1/integration/aws?account_id=123456789012&role_name=datadog-role
11+
response:
12+
body:
13+
string: '{}'
14+
headers:
15+
content-type:
16+
- application/json;charset=utf-8
17+
status:
18+
code: 200
19+
message: OK
20+
version: 1

tests/v1/features/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)