Skip to content

Commit c952b51

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit da94868e of spec repo
1 parent 5eef105 commit c952b51

File tree

26 files changed

+127
-60
lines changed

26 files changed

+127
-60
lines changed

.apigentools-info

+4-4
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": "2025-04-04 12:49:20.380905",
8-
"spec_repo_commit": "73e22797"
7+
"regenerated": "2025-04-04 16:55:39.734664",
8+
"spec_repo_commit": "da94868e"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-04-04 12:49:20.397038",
13-
"spec_repo_commit": "73e22797"
12+
"regenerated": "2025-04-04 16:55:39.750591",
13+
"spec_repo_commit": "da94868e"
1414
}
1515
}
1616
}

examples/v2_action-connection_CreateActionConnection.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ async fn main() {
2525
))),
2626
AWSIntegrationType::AWS,
2727
))),
28-
"Cassette Connection DELETE_ME".to_string(),
28+
"Cassette Connection exampleactionconnection".to_string(),
2929
),
3030
ActionConnectionDataType::ACTION_CONNECTION,
3131
));

examples/v2_action-connection_DeleteActionConnection.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ use datadog_api_client::datadogV2::api_action_connection::ActionConnectionAPI;
55

66
#[tokio::main]
77
async fn main() {
8+
// there is a valid "action_connection" in the system
9+
let action_connection_data_id = std::env::var("ACTION_CONNECTION_DATA_ID").unwrap();
810
let configuration = datadog::Configuration::new();
911
let api = ActionConnectionAPI::with_config(configuration);
1012
let resp = api
11-
.delete_action_connection("connection_id".to_string())
13+
.delete_action_connection(action_connection_data_id.clone())
1214
.await;
1315
if let Ok(value) = resp {
1416
println!("{:#?}", value);

examples/v2_action-connection_DeleteActionConnection_2142905164.rs

-20
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-01-06T22:02:35.383Z
1+
2025-03-26T20:24:59.622Z

tests/scenarios/cassettes/v2/action_connection/Create-a-new-Action-Connection-returns-Bad-Request-response.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"message": "Bad Request"
3333
}
3434
},
35-
"recorded_at": "Mon, 06 Jan 2025 22:02:35 GMT"
35+
"recorded_at": "Wed, 26 Mar 2025 20:24:59 GMT"
3636
}
3737
],
3838
"recorded_with": "VCR 6.0.0"
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-01-06T22:02:35.598Z
1+
2025-03-26T20:24:59.727Z

tests/scenarios/cassettes/v2/action_connection/Create-a-new-Action-Connection-returns-Successfully-created-Action-Connection-response.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"request": {
55
"body": {
6-
"string": "{\"data\":{\"attributes\":{\"integration\":{\"credentials\":{\"account_id\":\"123456789123\",\"role\":\"MyRoleUpdated\",\"type\":\"AWSAssumeRole\"},\"type\":\"AWS\"},\"name\":\"Cassette Connection DELETE_ME\"},\"type\":\"action_connection\"}}",
6+
"string": "{\"data\":{\"attributes\":{\"integration\":{\"credentials\":{\"account_id\":\"123456789123\",\"role\":\"MyRoleUpdated\",\"type\":\"AWSAssumeRole\"},\"type\":\"AWS\"},\"name\":\"Cassette Connection testcreateanewactionconnectionreturnssuccessfullycreatedactionconnectionresponse1743020699\"},\"type\":\"action_connection\"}}",
77
"encoding": null
88
},
99
"headers": {
@@ -19,7 +19,7 @@
1919
},
2020
"response": {
2121
"body": {
22-
"string": "{\"data\":{\"id\":\"db41b6cb-ef93-45bd-9857-548e9474737c\",\"type\":\"action_connection\",\"attributes\":{\"integration\":{\"credentials\":{\"account_id\":\"123456789123\",\"role\":\"MyRoleUpdated\",\"external_id\":\"c6f62d439f14423b963e4dd4246af4a7\",\"principal_id\":\"464622532012\",\"type\":\"AWSAssumeRole\"},\"type\":\"AWS\"},\"name\":\"Cassette Connection DELETE_ME\"}}}",
22+
"string": "{\"data\":{\"id\":\"67aa2f61-266d-48d1-a1ee-cf7c3acc6b20\",\"type\":\"action_connection\",\"attributes\":{\"integration\":{\"credentials\":{\"account_id\":\"123456789123\",\"external_id\":\"70f4660c99684420821b0c13a67eb4d1\",\"principal_id\":\"464622532012\",\"role\":\"MyRoleUpdated\",\"type\":\"AWSAssumeRole\"},\"type\":\"AWS\"},\"name\":\"Cassette Connection testcreateanewactionconnectionreturnssuccessfullycreatedactionconnectionresponse1743020699\"}}}",
2323
"encoding": null
2424
},
2525
"headers": {
@@ -32,7 +32,7 @@
3232
"message": "Created"
3333
}
3434
},
35-
"recorded_at": "Mon, 06 Jan 2025 22:02:35 GMT"
35+
"recorded_at": "Wed, 26 Mar 2025 20:24:59 GMT"
3636
},
3737
{
3838
"request": {
@@ -43,7 +43,7 @@
4343
]
4444
},
4545
"method": "delete",
46-
"uri": "https://api.datadoghq.com/api/v2/actions/connections/db41b6cb-ef93-45bd-9857-548e9474737c"
46+
"uri": "https://api.datadoghq.com/api/v2/actions/connections/67aa2f61-266d-48d1-a1ee-cf7c3acc6b20"
4747
},
4848
"response": {
4949
"body": {
@@ -56,7 +56,7 @@
5656
"message": "No Content"
5757
}
5858
},
59-
"recorded_at": "Mon, 06 Jan 2025 22:02:35 GMT"
59+
"recorded_at": "Wed, 26 Mar 2025 20:24:59 GMT"
6060
}
6161
],
6262
"recorded_with": "VCR 6.0.0"
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-01-06T22:02:36.467Z
1+
2025-03-26T20:25:00.311Z

tests/scenarios/cassettes/v2/action_connection/Delete-an-existing-Action-Connection-returns-Not-Found-response.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"message": "Not Found"
2727
}
2828
},
29-
"recorded_at": "Mon, 06 Jan 2025 22:02:36 GMT"
29+
"recorded_at": "Wed, 26 Mar 2025 20:25:00 GMT"
3030
}
3131
],
3232
"recorded_with": "VCR 6.0.0"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2025-03-26T20:25:00.458Z
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
{
2+
"http_interactions": [
3+
{
4+
"request": {
5+
"body": {
6+
"string": "{\"data\":{\"attributes\":{\"integration\":{\"credentials\":{\"account_id\":\"123456789123\",\"role\":\"MyRole\",\"type\":\"AWSAssumeRole\"},\"type\":\"AWS\"},\"name\":\"Cassette Connection testdeleteanexistingactionconnectionreturnstheresourcewasdeletedsuccessfullyresponse1743020700\"},\"type\":\"action_connection\"}}",
7+
"encoding": null
8+
},
9+
"headers": {
10+
"Accept": [
11+
"application/json"
12+
],
13+
"Content-Type": [
14+
"application/json"
15+
]
16+
},
17+
"method": "post",
18+
"uri": "https://api.datadoghq.com/api/v2/actions/connections"
19+
},
20+
"response": {
21+
"body": {
22+
"string": "{\"data\":{\"id\":\"c3c3d83b-c495-4c1b-bb1d-592825d21db0\",\"type\":\"action_connection\",\"attributes\":{\"integration\":{\"credentials\":{\"account_id\":\"123456789123\",\"external_id\":\"6183670d1ceb4278808cf2df9aa03a07\",\"principal_id\":\"464622532012\",\"role\":\"MyRole\",\"type\":\"AWSAssumeRole\"},\"type\":\"AWS\"},\"name\":\"Cassette Connection testdeleteanexistingactionconnectionreturnstheresourcewasdeletedsuccessfullyresponse1743020700\"}}}",
23+
"encoding": null
24+
},
25+
"headers": {
26+
"Content-Type": [
27+
"application/vnd.api+json"
28+
]
29+
},
30+
"status": {
31+
"code": 201,
32+
"message": "Created"
33+
}
34+
},
35+
"recorded_at": "Wed, 26 Mar 2025 20:25:00 GMT"
36+
},
37+
{
38+
"request": {
39+
"body": "",
40+
"headers": {
41+
"Accept": [
42+
"*/*"
43+
]
44+
},
45+
"method": "delete",
46+
"uri": "https://api.datadoghq.com/api/v2/actions/connections/c3c3d83b-c495-4c1b-bb1d-592825d21db0"
47+
},
48+
"response": {
49+
"body": {
50+
"string": "",
51+
"encoding": null
52+
},
53+
"headers": {},
54+
"status": {
55+
"code": 204,
56+
"message": "No Content"
57+
}
58+
},
59+
"recorded_at": "Wed, 26 Mar 2025 20:25:00 GMT"
60+
},
61+
{
62+
"request": {
63+
"body": "",
64+
"headers": {
65+
"Accept": [
66+
"*/*"
67+
]
68+
},
69+
"method": "delete",
70+
"uri": "https://api.datadoghq.com/api/v2/actions/connections/c3c3d83b-c495-4c1b-bb1d-592825d21db0"
71+
},
72+
"response": {
73+
"body": {
74+
"string": "{\"errors\":[{\"title\":\"Generic Error\",\"detail\":\"error deleting connection: rpc error: code = NotFound desc = connection not found\"}]}",
75+
"encoding": null
76+
},
77+
"headers": {
78+
"Content-Type": [
79+
"application/vnd.api+json"
80+
]
81+
},
82+
"status": {
83+
"code": 404,
84+
"message": "Not Found"
85+
}
86+
},
87+
"recorded_at": "Wed, 26 Mar 2025 20:25:00 GMT"
88+
}
89+
],
90+
"recorded_with": "VCR 6.0.0"
91+
}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-01-06T22:02:37.403Z
1+
2025-03-26T20:25:01.150Z

tests/scenarios/cassettes/v2/action_connection/Get-an-existing-Action-Connection-returns-Bad-Request-response.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"message": "Bad Request"
2727
}
2828
},
29-
"recorded_at": "Mon, 06 Jan 2025 22:02:37 GMT"
29+
"recorded_at": "Wed, 26 Mar 2025 20:25:01 GMT"
3030
}
3131
],
3232
"recorded_with": "VCR 6.0.0"
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-01-06T22:02:37.563Z
1+
2025-03-26T20:25:01.247Z

tests/scenarios/cassettes/v2/action_connection/Get-an-existing-Action-Connection-returns-Not-Found-response.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"message": "Not Found"
2727
}
2828
},
29-
"recorded_at": "Mon, 06 Jan 2025 22:02:37 GMT"
29+
"recorded_at": "Wed, 26 Mar 2025 20:25:01 GMT"
3030
}
3131
],
3232
"recorded_with": "VCR 6.0.0"
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-01-06T22:02:37.743Z
1+
2025-03-26T20:25:01.398Z

tests/scenarios/cassettes/v2/action_connection/Get-an-existing-Action-Connection-returns-Successfully-get-Action-Connection-response.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"response": {
1515
"body": {
16-
"string": "{\"data\":{\"id\":\"cb460d51-3c88-4e87-adac-d47131d0423d\",\"type\":\"action_connection\",\"attributes\":{\"integration\":{\"credentials\":{\"account_id\":\"123456789123\",\"role\":\"MyRoleUpdated\",\"external_id\":\"909b33b1242748cfbef42f20011e2fa0\",\"principal_id\":\"464622532012\",\"type\":\"AWSAssumeRole\"},\"type\":\"AWS\"},\"name\":\"Cassette Connection\"}}}",
16+
"string": "{\"data\":{\"id\":\"cb460d51-3c88-4e87-adac-d47131d0423d\",\"type\":\"action_connection\",\"attributes\":{\"integration\":{\"credentials\":{\"account_id\":\"123456789123\",\"external_id\":\"909b33b1242748cfbef42f20011e2fa0\",\"principal_id\":\"464622532012\",\"role\":\"MyRoleUpdated\",\"type\":\"AWSAssumeRole\"},\"type\":\"AWS\"},\"name\":\"Cassette Connection\"}}}",
1717
"encoding": null
1818
},
1919
"headers": {
@@ -26,7 +26,7 @@
2626
"message": "OK"
2727
}
2828
},
29-
"recorded_at": "Mon, 06 Jan 2025 22:02:37 GMT"
29+
"recorded_at": "Wed, 26 Mar 2025 20:25:01 GMT"
3030
}
3131
],
3232
"recorded_with": "VCR 6.0.0"
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-01-06T22:02:38.001Z
1+
2025-03-26T20:25:01.521Z

tests/scenarios/cassettes/v2/action_connection/Update-an-existing-Action-Connection-returns-Bad-Request-response.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"message": "Bad Request"
3333
}
3434
},
35-
"recorded_at": "Mon, 06 Jan 2025 22:02:38 GMT"
35+
"recorded_at": "Wed, 26 Mar 2025 20:25:01 GMT"
3636
}
3737
],
3838
"recorded_with": "VCR 6.0.0"
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-01-06T22:02:38.092Z
1+
2025-03-26T20:25:01.625Z

tests/scenarios/cassettes/v2/action_connection/Update-an-existing-Action-Connection-returns-Not-Found-response.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"message": "Not Found"
3333
}
3434
},
35-
"recorded_at": "Mon, 06 Jan 2025 22:02:38 GMT"
35+
"recorded_at": "Wed, 26 Mar 2025 20:25:01 GMT"
3636
}
3737
],
3838
"recorded_with": "VCR 6.0.0"
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-01-06T22:02:38.186Z
1+
2025-03-26T20:25:01.719Z

tests/scenarios/cassettes/v2/action_connection/Update-an-existing-Action-Connection-returns-Successfully-updated-Action-Connection-response.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
},
2020
"response": {
2121
"body": {
22-
"string": "{\"data\":{\"id\":\"cb460d51-3c88-4e87-adac-d47131d0423d\",\"type\":\"action_connection\",\"attributes\":{\"integration\":{\"credentials\":{\"account_id\":\"123456789123\",\"role\":\"MyRoleUpdated\",\"external_id\":\"909b33b1242748cfbef42f20011e2fa0\",\"principal_id\":\"464622532012\",\"type\":\"AWSAssumeRole\"},\"type\":\"AWS\"},\"name\":\"Cassette Connection\"}}}",
22+
"string": "{\"data\":{\"id\":\"cb460d51-3c88-4e87-adac-d47131d0423d\",\"type\":\"action_connection\",\"attributes\":{\"integration\":{\"credentials\":{\"account_id\":\"123456789123\",\"external_id\":\"909b33b1242748cfbef42f20011e2fa0\",\"principal_id\":\"464622532012\",\"role\":\"MyRoleUpdated\",\"type\":\"AWSAssumeRole\"},\"type\":\"AWS\"},\"name\":\"Cassette Connection\"}}}",
2323
"encoding": null
2424
},
2525
"headers": {
@@ -32,7 +32,7 @@
3232
"message": "OK"
3333
}
3434
},
35-
"recorded_at": "Mon, 06 Jan 2025 22:02:38 GMT"
35+
"recorded_at": "Wed, 26 Mar 2025 20:25:01 GMT"
3636
}
3737
],
3838
"recorded_with": "VCR 6.0.0"

tests/scenarios/features/v2/action_connection.feature

+2-9
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Feature: Action Connection
2424
@team:DataDog/workflow-automation-dev
2525
Scenario: Create a new Action Connection returns "Successfully created Action Connection" response
2626
Given new "CreateActionConnection" request
27-
And body with value {"data":{"type":"action_connection","attributes":{"name":"Cassette Connection DELETE_ME","integration":{"type":"AWS","credentials":{"type":"AWSAssumeRole","role":"MyRoleUpdated","account_id":"123456789123"}}}}}
27+
And body with value {"data":{"type":"action_connection","attributes":{"name":"Cassette Connection {{ unique_lower_alnum }}","integration":{"type":"AWS","credentials":{"type":"AWSAssumeRole","role":"MyRoleUpdated","account_id":"123456789123"}}}}}
2828
When the request is sent
2929
Then the response status is 201 Successfully created Action Connection
3030

@@ -36,20 +36,13 @@ Feature: Action Connection
3636
Then the response status is 404 Not Found
3737

3838
@team:DataDog/workflow-automation-dev
39-
Scenario: Delete an existing Action Connection returns "Successfully deleted Action Connection" response
39+
Scenario: Delete an existing Action Connection returns "The resource was deleted successfully." response
4040
Given there is a valid "action_connection" in the system
4141
And new "DeleteActionConnection" request
4242
And request contains "connection_id" parameter from "action_connection.data.id"
4343
When the request is sent
4444
Then the response status is 204 The resource was deleted successfully.
4545

46-
@generated @skip @team:DataDog/workflow-automation-dev
47-
Scenario: Delete an existing Action Connection returns "The resource was deleted successfully." response
48-
Given new "DeleteActionConnection" request
49-
And request contains "connection_id" parameter from "REPLACE.ME"
50-
When the request is sent
51-
Then the response status is 204 The resource was deleted successfully.
52-
5346
@team:DataDog/workflow-automation-dev
5447
Scenario: Get an existing Action Connection returns "Bad Request" response
5548
Given new "GetActionConnection" request

tests/scenarios/features/v2/given.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"parameters": [
44
{
55
"name": "body",
6-
"value": "{\n \"data\": {\n \"type\": \"action_connection\",\n \"attributes\": {\n \"name\": \"Cassette Connection DELETE\",\n \"integration\": {\n \"type\": \"AWS\",\n \"credentials\": {\n \"type\": \"AWSAssumeRole\",\n \"role\": \"MyRole\",\n \"account_id\": \"123456789123\"\n }\n }\n }\n }\n}"
6+
"value": "{\n \"data\": {\n \"type\": \"action_connection\",\n \"attributes\": {\n \"name\": \"Cassette Connection {{ unique_lower_alnum }}\",\n \"integration\": {\n \"type\": \"AWS\",\n \"credentials\": {\n \"type\": \"AWSAssumeRole\",\n \"role\": \"MyRole\",\n \"account_id\": \"123456789123\"\n }\n }\n }\n }\n}"
77
}
88
],
99
"step": "there is a valid \"action_connection\" in the system",

0 commit comments

Comments
 (0)