Skip to content

Commit

Permalink
Regenerate client from commit 580d1734 of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Oct 30, 2023
1 parent d6aa1da commit ebe1f3b
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 8 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": "2023-10-30 15:19:04.164754",
"spec_repo_commit": "483916f9"
"regenerated": "2023-10-30 20:43:57.830074",
"spec_repo_commit": "580d1734"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2023-10-30 15:19:04.179200",
"spec_repo_commit": "483916f9"
"regenerated": "2023-10-30 20:43:57.845295",
"spec_repo_commit": "580d1734"
}
}
}
1 change: 0 additions & 1 deletion examples/v1/aws-integration/CreateAWSAccount.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
account_id="123456789012",
account_specific_namespace_rules=dict(
auto_scaling=False,
opswork=False,
),
cspm_resource_collection_enabled=True,
excluded_regions=[
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2023-10-30T20:37:07.199Z
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
interactions:
- request:
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":"DatadogAWSIntegrationRole"}'
headers:
accept:
- application/json
content-type:
- application/json
method: POST
uri: https://api.datadoghq.com/api/v1/integration/aws
response:
body:
string: '{"external_id":"240b016c46fe4ceb95ac0232da138c88"}
'
headers:
content-type:
- application/json
status:
code: 200
message: OK
- request:
body: '{"account_id":"123456789012","role_name":"DatadogAWSIntegrationRole"}'
headers:
accept:
- application/json
content-type:
- application/json
method: DELETE
uri: https://api.datadoghq.com/api/v1/integration/aws
response:
body:
string: '{}
'
headers:
content-type:
- application/json
status:
code: 200
message: OK
version: 1
4 changes: 2 additions & 2 deletions tests/v1/features/aws_integration.feature
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ Feature: AWS Integration
When the request is sent
Then the response status is 409 Conflict Error

@generated @skip @team:DataDog/cloud-integrations
@team:DataDog/cloud-integrations
Scenario: Create an AWS integration returns "OK" response
Given new "CreateAWSAccount" request
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"}
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"}
When the request is sent
Then the response status is 200 OK

Expand Down
11 changes: 10 additions & 1 deletion tests/v1/features/undo.json
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,16 @@
"tag": "AWS Integration",
"undo": {
"operationId": "DeleteAWSAccount",
"parameters": [],
"parameters": [
{
"name": "body",
"origin": "request",
"template": {
"account_id": "{{account_id}}",
"role_name": "{{role_name}}"
}
}
],
"type": "unsafe"
}
},
Expand Down

0 comments on commit ebe1f3b

Please sign in to comment.