Skip to content

Commit efdf7c0

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 9120bb44 of spec repo
1 parent 62ace6e commit efdf7c0

21 files changed

+174
-86
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": "2025-01-23 22:24:33.345379",
8-
"spec_repo_commit": "6a31fa8c"
7+
"regenerated": "2025-01-24 18:35:53.031767",
8+
"spec_repo_commit": "9120bb44"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-01-23 22:24:33.360838",
13-
"spec_repo_commit": "6a31fa8c"
12+
"regenerated": "2025-01-24 18:35:53.049822",
13+
"spec_repo_commit": "9120bb44"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 41 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ components:
207207
schema:
208208
type: string
209209
ConnectionId:
210-
description: The ID of the action connection
210+
description: The ID of the Action Connection.
211211
in: path
212212
name: connection_id
213213
required: true
@@ -1221,23 +1221,23 @@ components:
12211221
description: The definition of `AWSAssumeRole` object.
12221222
properties:
12231223
account_id:
1224-
description: AWS account the connection is created for
1224+
description: AWS account the connection is created for.
12251225
example: '111222333444'
12261226
pattern: ^\d{12}$
12271227
type: string
12281228
external_id:
12291229
description: External ID used to scope which connection can be used to assume
1230-
the role
1230+
the role.
12311231
example: 33a1011635c44b38a064cf14e82e1d8f
12321232
readOnly: true
12331233
type: string
12341234
principal_id:
1235-
description: AWS account that will assume the role
1235+
description: AWS account that will assume the role.
12361236
example: '123456789012'
12371237
readOnly: true
12381238
type: string
12391239
role:
1240-
description: Role to assume
1240+
description: Role to assume.
12411241
example: my-role
12421242
type: string
12431243
type:
@@ -1259,7 +1259,7 @@ components:
12591259
description: The definition of `AWSAssumeRoleUpdate` object.
12601260
properties:
12611261
account_id:
1262-
description: AWS account the connection is created for
1262+
description: AWS account the connection is created for.
12631263
example: '111222333444'
12641264
pattern: ^\d{12}$
12651265
type: string
@@ -1669,7 +1669,7 @@ components:
16691669
integration:
16701670
$ref: '#/components/schemas/ActionConnectionIntegration'
16711671
name:
1672-
description: Name of the connection
1672+
description: Name of the connection.
16731673
example: My AWS Connection
16741674
type: string
16751675
required:
@@ -1682,7 +1682,7 @@ components:
16821682
integration:
16831683
$ref: '#/components/schemas/ActionConnectionIntegrationUpdate'
16841684
name:
1685-
description: Name of the connection
1685+
description: Name of the connection.
16861686
example: My AWS Connection
16871687
type: string
16881688
type: object
@@ -1692,7 +1692,7 @@ components:
16921692
attributes:
16931693
$ref: '#/components/schemas/ActionConnectionAttributes'
16941694
id:
1695-
description: The connection identifier
1695+
description: The connection identifier.
16961696
readOnly: true
16971697
type: string
16981698
type:
@@ -7193,15 +7193,15 @@ components:
71937193
x-enum-varnames:
71947194
- COST_BY_ORG
71957195
CreateActionConnectionRequest:
7196-
description: Request used to create an action connection.
7196+
description: Request used to create an Action Connection.
71977197
properties:
71987198
data:
71997199
$ref: '#/components/schemas/ActionConnectionData'
72007200
required:
72017201
- data
72027202
type: object
72037203
CreateActionConnectionResponse:
7204-
description: The response for a created connection
7204+
description: The response for a created connection.
72057205
properties:
72067206
data:
72077207
$ref: '#/components/schemas/ActionConnectionData'
@@ -12428,7 +12428,7 @@ components:
1242812428
x-enum-varnames:
1242912429
- GCP_SERVICE_ACCOUNT
1243012430
GetActionConnectionResponse:
12431-
description: The response for found connection
12431+
description: The response for found connection.
1243212432
properties:
1243312433
data:
1243412434
$ref: '#/components/schemas/ActionConnectionData'
@@ -12818,7 +12818,7 @@ components:
1281812818
description: The definition of `HTTPIntegration` object.
1281912819
properties:
1282012820
base_url:
12821-
description: Base HTTP url for the integration
12821+
description: Base HTTP url for the integration.
1282212822
example: http://datadoghq.com
1282312823
pattern: url
1282412824
type: string
@@ -12843,7 +12843,7 @@ components:
1284312843
description: The definition of `HTTPIntegrationUpdate` object.
1284412844
properties:
1284512845
base_url:
12846-
description: Base HTTP url for the integration
12846+
description: Base HTTP url for the integration.
1284712847
example: http://datadoghq.com
1284812848
pattern: url
1284912849
type: string
@@ -29362,7 +29362,7 @@ components:
2936229362
type: string
2936329363
type: object
2936429364
UpdateActionConnectionRequest:
29365-
description: Request used to update an action connection.
29365+
description: Request used to update an Action Connection.
2936629366
properties:
2936729367
data:
2936829368
$ref: '#/components/schemas/ActionConnectionDataUpdate'
@@ -30918,7 +30918,7 @@ openapi: 3.0.0
3091830918
paths:
3091930919
/api/v2/actions/connections:
3092030920
post:
30921-
description: Create a new Action Connection
30921+
description: Create a new Action Connection.
3092230922
operationId: CreateActionConnection
3092330923
requestBody:
3092430924
content:
@@ -30932,7 +30932,7 @@ paths:
3093230932
application/json:
3093330933
schema:
3093430934
$ref: '#/components/schemas/CreateActionConnectionResponse'
30935-
description: Successfully created Action Connection
30935+
description: Successfully created an Action Connection.
3093630936
'400':
3093730937
content:
3093830938
application/json:
@@ -30954,9 +30954,13 @@ paths:
3095430954
summary: Create a new Action Connection
3095530955
tags:
3095630956
- Action Connection
30957+
x-permission:
30958+
operator: OR
30959+
permissions:
30960+
- connection_read
3095730961
/api/v2/actions/connections/{connection_id}:
3095830962
delete:
30959-
description: Delete an existing Action Connection
30963+
description: Delete an existing Action Connection.
3096030964
operationId: DeleteActionConnection
3096130965
parameters:
3096230966
- $ref: '#/components/parameters/ConnectionId'
@@ -30989,7 +30993,7 @@ paths:
3098930993
permissions:
3099030994
- connection_write
3099130995
get:
30992-
description: Get an existing Action Connection
30996+
description: Get an existing Action Connection.
3099330997
operationId: GetActionConnection
3099430998
parameters:
3099530999
- $ref: '#/components/parameters/ConnectionId'
@@ -30999,7 +31003,7 @@ paths:
3099931003
application/json:
3100031004
schema:
3100131005
$ref: '#/components/schemas/GetActionConnectionResponse'
31002-
description: Successfully get Action Connection
31006+
description: Successfully got an Action Connection.
3100331007
'400':
3100431008
content:
3100531009
application/json:
@@ -31027,6 +31031,10 @@ paths:
3102731031
summary: Get an existing Action Connection
3102831032
tags:
3102931033
- Action Connection
31034+
x-permission:
31035+
operator: OR
31036+
permissions:
31037+
- connection_read
3103031038
patch:
3103131039
description: Update an existing Action Connection
3103231040
operationId: UpdateActionConnection
@@ -31037,15 +31045,15 @@ paths:
3103731045
application/json:
3103831046
schema:
3103931047
$ref: '#/components/schemas/UpdateActionConnectionRequest'
31040-
description: Update an existing Action Connection request body
31048+
description: Update an existing Action Connection request body.
3104131049
required: true
3104231050
responses:
3104331051
'200':
3104431052
content:
3104531053
application/json:
3104631054
schema:
3104731055
$ref: '#/components/schemas/UpdateActionConnectionResponse'
31048-
description: Successfully updated Action Connection
31056+
description: Successfully updated an Action Connection.
3104931057
'400':
3105031058
content:
3105131059
application/json:
@@ -31073,6 +31081,10 @@ paths:
3107331081
summary: Update an existing Action Connection
3107431082
tags:
3107531083
- Action Connection
31084+
x-permission:
31085+
operator: OR
31086+
permissions:
31087+
- connection_write
3107631088
/api/v2/agentless_scanning/accounts/aws:
3107731089
get:
3107831090
description: Fetches the scan options configured for AWS accounts.
@@ -49080,13 +49092,15 @@ tags:
4908049092
externalDocs:
4908149093
url: https://docs.datadoghq.com/integrations/amazon_web_services/#log-collection
4908249094
name: AWS Logs Integration
49083-
- description: "Action connections extend your installed integrations and allow you
49084-
to take action in your third-party systems\n(e.g. AWS, GitLab, and Statuspage)
49085-
with Datadog\u2019s Workflow Automation and App Builder products.\n\nDatadog\u2019s
49095+
- description: "Action Connections extend your installed integrations and allow you
49096+
to take action in your third-party systems\n(e.g. AWS, GitLab, and OpenAI) with
49097+
Datadog\u2019s [Workflow Automation](https://docs.datadoghq.com/service_management/workflows/)\nand
49098+
[App Builder](https://docs.datadoghq.com/service_management/app_builder/) products.\n\nDatadog\u2019s
4908649099
Integrations automatically provide authentication for Slack, Microsoft Teams,
49087-
PagerDuty, Opsgenie,\nJIRA, GitHub, and Statuspage. You do not need additional
49100+
PagerDuty, Opsgenie,\nJira, GitHub, and Statuspage. You do not need additional
4908849101
connections in order to access these tools within\nWorkflow Automation and App
49089-
Builder.\n\nWe offer granular access control for editing and resolving connections."
49102+
Builder.\n\nWe offer granular access control for editing and resolving connections.\n\n**Note:**
49103+
The Action Connection API currently supports AWS and HTTP integrations."
4909049104
externalDocs:
4909149105
description: Find out more at
4909249106
url: https://docs.datadoghq.com/service_management/workflows/connections/
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
# Create a new Action Connection returns "Successfully created Action Connection" response
1+
# Create a new Action Connection returns "Successfully created an Action Connection." response
22

33
require "datadog_api_client"
44
api_instance = DatadogAPIClient::V2::ActionConnectionAPI.new
55

66
body = DatadogAPIClient::V2::CreateActionConnectionRequest.new({
77
data: DatadogAPIClient::V2::ActionConnectionData.new({
8-
type: DatadogAPIClient::V2::ActionConnectionDataType::ACTION_CONNECTION,
98
attributes: DatadogAPIClient::V2::ActionConnectionAttributes.new({
10-
name: "Cassette Connection DELETE_ME",
119
integration: DatadogAPIClient::V2::AWSIntegration.new({
12-
type: DatadogAPIClient::V2::AWSIntegrationType::AWS,
1310
credentials: DatadogAPIClient::V2::AWSAssumeRole.new({
11+
account_id: "111222333444",
12+
role: "my-role",
1413
type: DatadogAPIClient::V2::AWSAssumeRoleType::AWSASSUMEROLE,
15-
role: "MyRoleUpdated",
16-
account_id: "123456789123",
1714
}),
15+
type: DatadogAPIClient::V2::AWSIntegrationType::AWS,
1816
}),
17+
name: "My AWS Connection",
1918
}),
19+
type: DatadogAPIClient::V2::ActionConnectionDataType::ACTION_CONNECTION,
2020
}),
2121
})
2222
p api_instance.create_action_connection(body)
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Create a new Action Connection returns "Successfully created Action Connection" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::ActionConnectionAPI.new
5+
6+
body = DatadogAPIClient::V2::CreateActionConnectionRequest.new({
7+
data: DatadogAPIClient::V2::ActionConnectionData.new({
8+
type: DatadogAPIClient::V2::ActionConnectionDataType::ACTION_CONNECTION,
9+
attributes: DatadogAPIClient::V2::ActionConnectionAttributes.new({
10+
name: "Cassette Connection DELETE_ME",
11+
integration: DatadogAPIClient::V2::AWSIntegration.new({
12+
type: DatadogAPIClient::V2::AWSIntegrationType::AWS,
13+
credentials: DatadogAPIClient::V2::AWSAssumeRole.new({
14+
type: DatadogAPIClient::V2::AWSAssumeRoleType::AWSASSUMEROLE,
15+
role: "MyRoleUpdated",
16+
account_id: "123456789123",
17+
}),
18+
}),
19+
}),
20+
}),
21+
})
22+
p api_instance.create_action_connection(body)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Get an existing Action Connection returns "Successfully get Action Connection" response
1+
# Get an existing Action Connection returns "Successfully got an Action Connection." response
22

33
require "datadog_api_client"
44
api_instance = DatadogAPIClient::V2::ActionConnectionAPI.new
5-
p api_instance.get_action_connection("cb460d51-3c88-4e87-adac-d47131d0423d")
5+
p api_instance.get_action_connection("connection_id")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Get an existing Action Connection returns "Successfully get Action Connection" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::ActionConnectionAPI.new
5+
p api_instance.get_action_connection("cb460d51-3c88-4e87-adac-d47131d0423d")
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
# Update an existing Action Connection returns "Successfully updated Action Connection" response
1+
# Update an existing Action Connection returns "Successfully updated an Action Connection." response
22

33
require "datadog_api_client"
44
api_instance = DatadogAPIClient::V2::ActionConnectionAPI.new
55

66
body = DatadogAPIClient::V2::UpdateActionConnectionRequest.new({
77
data: DatadogAPIClient::V2::ActionConnectionDataUpdate.new({
8-
type: DatadogAPIClient::V2::ActionConnectionDataType::ACTION_CONNECTION,
98
attributes: DatadogAPIClient::V2::ActionConnectionAttributesUpdate.new({
10-
name: "Cassette Connection",
119
integration: DatadogAPIClient::V2::AWSIntegrationUpdate.new({
12-
type: DatadogAPIClient::V2::AWSIntegrationType::AWS,
1310
credentials: DatadogAPIClient::V2::AWSAssumeRoleUpdate.new({
11+
account_id: "111222333444",
12+
role: "my-role",
1413
type: DatadogAPIClient::V2::AWSAssumeRoleType::AWSASSUMEROLE,
15-
role: "MyRoleUpdated",
16-
account_id: "123456789123",
1714
}),
15+
type: DatadogAPIClient::V2::AWSIntegrationType::AWS,
1816
}),
17+
name: "My AWS Connection",
1918
}),
19+
type: DatadogAPIClient::V2::ActionConnectionDataType::ACTION_CONNECTION,
2020
}),
2121
})
22-
p api_instance.update_action_connection("cb460d51-3c88-4e87-adac-d47131d0423d", body)
22+
p api_instance.update_action_connection("connection_id", body)
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Update an existing Action Connection returns "Successfully updated Action Connection" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::ActionConnectionAPI.new
5+
6+
body = DatadogAPIClient::V2::UpdateActionConnectionRequest.new({
7+
data: DatadogAPIClient::V2::ActionConnectionDataUpdate.new({
8+
type: DatadogAPIClient::V2::ActionConnectionDataType::ACTION_CONNECTION,
9+
attributes: DatadogAPIClient::V2::ActionConnectionAttributesUpdate.new({
10+
name: "Cassette Connection",
11+
integration: DatadogAPIClient::V2::AWSIntegrationUpdate.new({
12+
type: DatadogAPIClient::V2::AWSIntegrationType::AWS,
13+
credentials: DatadogAPIClient::V2::AWSAssumeRoleUpdate.new({
14+
type: DatadogAPIClient::V2::AWSAssumeRoleType::AWSASSUMEROLE,
15+
role: "MyRoleUpdated",
16+
account_id: "123456789123",
17+
}),
18+
}),
19+
}),
20+
}),
21+
})
22+
p api_instance.update_action_connection("cb460d51-3c88-4e87-adac-d47131d0423d", body)

0 commit comments

Comments
 (0)