Skip to content

Commit bae74f3

Browse files
Merge master into datadog-api-spec/test/d.marin/oncall-api
2 parents 28ce752 + 4eece73 commit bae74f3

23 files changed

Lines changed: 108 additions & 60 deletions

File tree

.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-04-03 16:27:55.129965",
8-
"spec_repo_commit": "4468962d"
7+
"regenerated": "2025-04-04 20:19:29.358542",
8+
"spec_repo_commit": "3909ab62"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-04-03 16:27:55.144771",
13-
"spec_repo_commit": "4468962d"
12+
"regenerated": "2025-04-04 20:19:29.373801",
13+
"spec_repo_commit": "3909ab62"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -654,8 +654,8 @@ components:
654654
type: string
655655
ResourceID:
656656
description: 'Identifier, formatted as `type:id`. Supported types: `connection`,
657-
`dashboard`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`,
658-
`app-builder-app`, `connection`, `connection-group`.'
657+
`dashboard`, `integration-account`, `integration-webhook`, `notebook`, `reference-table`,
658+
`security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`.'
659659
example: dashboard:abc-def-ghi
660660
in: path
661661
name: resource_id
@@ -2864,13 +2864,13 @@ components:
28642864
enum:
28652865
- attack_attempt
28662866
- business_logic
2867-
- security_responses
2867+
- security_response
28682868
example: business_logic
28692869
type: string
28702870
x-enum-varnames:
28712871
- ATTACK_ATTEMPT
28722872
- BUSINESS_LOGIC
2873-
- SECURITY_RESPONSES
2873+
- SECURITY_RESPONSE
28742874
ApplicationSecurityWafCustomRuleType:
28752875
default: custom_rule
28762876
description: The type of the resource. The value should always be `custom_rule`.
@@ -45734,6 +45734,10 @@ paths:
4573445734

4573545735
- Dashboards: `dashboard`
4573645736

45737+
- Integration Accounts: `integration-account`
45738+
45739+
- Integration Webhooks: `integration-webhook`
45740+
4573745741
- Notebooks: `notebook`
4573845742

4573945743
- Powerpacks: `powerpack`
@@ -45769,6 +45773,10 @@ paths:
4576945773

4577045774
Dashboards | `viewer`, `editor`
4577145775

45776+
Integration Accounts | `viewer`, `editor`
45777+
45778+
Integration Webhooks | `viewer`, `editor`
45779+
4577245780
Notebooks | `viewer`, `editor`
4577345781

4577445782
Powerpacks | `viewer`, `editor`

examples/v2/action-connection/CreateActionConnection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
data=ActionConnectionData(
1818
type=ActionConnectionDataType.ACTION_CONNECTION,
1919
attributes=ActionConnectionAttributes(
20-
name="Cassette Connection DELETE_ME",
20+
name="Cassette Connection exampleactionconnection",
2121
integration=AWSIntegration(
2222
type=AWSIntegrationType.AWS,
2323
credentials=AWSAssumeRole(

examples/v2/action-connection/DeleteActionConnection.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@
22
Delete an existing Action Connection returns "The resource was deleted successfully." response
33
"""
44

5+
from os import environ
56
from datadog_api_client import ApiClient, Configuration
67
from datadog_api_client.v2.api.action_connection_api import ActionConnectionApi
78

9+
# there is a valid "action_connection" in the system
10+
ACTION_CONNECTION_DATA_ID = environ["ACTION_CONNECTION_DATA_ID"]
11+
812
configuration = Configuration()
913
with ApiClient(configuration) as api_client:
1014
api_instance = ActionConnectionApi(api_client)
1115
api_instance.delete_action_connection(
12-
connection_id="connection_id",
16+
connection_id=ACTION_CONNECTION_DATA_ID,
1317
)

examples/v2/action-connection/DeleteActionConnection_2142905164.py

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/datadog_api_client/v2/api/restriction_policies_api.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def delete_restriction_policy(
112112
113113
Deletes the restriction policy associated with a specified resource.
114114
115-
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group``.
115+
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``integration-account`` , ``integration-webhook`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group``.
116116
:type resource_id: str
117117
:rtype: None
118118
"""
@@ -129,7 +129,7 @@ def get_restriction_policy(
129129
130130
Retrieves the restriction policy associated with a specified resource.
131131
132-
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group``.
132+
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``integration-account`` , ``integration-webhook`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group``.
133133
:type resource_id: str
134134
:rtype: RestrictionPolicyResponse
135135
"""
@@ -154,6 +154,8 @@ def update_restriction_policy(
154154
Restriction policies can be applied to the following resources:
155155
156156
* Dashboards: ``dashboard``
157+
* Integration Accounts: ``integration-account``
158+
* Integration Webhooks: ``integration-webhook``
157159
* Notebooks: ``notebook``
158160
* Powerpacks: ``powerpack``
159161
* Reference Tables: ``reference-table``
@@ -177,6 +179,10 @@ def update_restriction_policy(
177179
- Supported Relations
178180
* - Dashboards
179181
- ``viewer`` , ``editor``
182+
* - Integration Accounts
183+
- ``viewer`` , ``editor``
184+
* - Integration Webhooks
185+
- ``viewer`` , ``editor``
180186
* - Notebooks
181187
- ``viewer`` , ``editor``
182188
* - Powerpacks
@@ -205,7 +211,7 @@ def update_restriction_policy(
205211
- ``viewer`` , ``editor``
206212
207213
208-
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group``.
214+
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``integration-account`` , ``integration-webhook`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group``.
209215
:type resource_id: str
210216
:param body: Restriction policy payload
211217
:type body: RestrictionPolicyUpdateRequest

src/datadog_api_client/v2/model/application_security_waf_custom_rule_tags_category.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ class ApplicationSecurityWafCustomRuleTagsCategory(ModelSimple):
1616
"""
1717
The category of the WAF Rule, can be either `business_logic`, `attack_attempt` or `security_response`.
1818
19-
:param value: Must be one of ["attack_attempt", "business_logic", "security_responses"].
19+
:param value: Must be one of ["attack_attempt", "business_logic", "security_response"].
2020
:type value: str
2121
"""
2222

2323
allowed_values = {
2424
"attack_attempt",
2525
"business_logic",
26-
"security_responses",
26+
"security_response",
2727
}
2828
ATTACK_ATTEMPT: ClassVar["ApplicationSecurityWafCustomRuleTagsCategory"]
2929
BUSINESS_LOGIC: ClassVar["ApplicationSecurityWafCustomRuleTagsCategory"]
30-
SECURITY_RESPONSES: ClassVar["ApplicationSecurityWafCustomRuleTagsCategory"]
30+
SECURITY_RESPONSE: ClassVar["ApplicationSecurityWafCustomRuleTagsCategory"]
3131

3232
@cached_property
3333
def openapi_types(_):
@@ -42,6 +42,6 @@ def openapi_types(_):
4242
ApplicationSecurityWafCustomRuleTagsCategory.BUSINESS_LOGIC = ApplicationSecurityWafCustomRuleTagsCategory(
4343
"business_logic"
4444
)
45-
ApplicationSecurityWafCustomRuleTagsCategory.SECURITY_RESPONSES = ApplicationSecurityWafCustomRuleTagsCategory(
46-
"security_responses"
45+
ApplicationSecurityWafCustomRuleTagsCategory.SECURITY_RESPONSE = ApplicationSecurityWafCustomRuleTagsCategory(
46+
"security_response"
4747
)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-01-06T22:02:35.383Z
1+
2025-03-26T20:24:59.622Z
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/v2/cassettes/test_scenarios/test_create_a_new_action_connection_returns_successfully_created_action_connection_response.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
interactions:
22
- request:
33
body: '{"data":{"attributes":{"integration":{"credentials":{"account_id":"123456789123","role":"MyRoleUpdated","type":"AWSAssumeRole"},"type":"AWS"},"name":"Cassette
4-
Connection DELETE_ME"},"type":"action_connection"}}'
4+
Connection testcreateanewactionconnectionreturnssuccessfullycreatedactionconnectionresponse1743020699"},"type":"action_connection"}}'
55
headers:
66
accept:
77
- application/json
@@ -11,8 +11,8 @@ interactions:
1111
uri: https://api.datadoghq.com/api/v2/actions/connections
1212
response:
1313
body:
14-
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
15-
Connection DELETE_ME"}}}'
14+
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
15+
Connection testcreateanewactionconnectionreturnssuccessfullycreatedactionconnectionresponse1743020699"}}}'
1616
headers:
1717
content-type:
1818
- application/vnd.api+json
@@ -25,7 +25,7 @@ interactions:
2525
accept:
2626
- '*/*'
2727
method: DELETE
28-
uri: https://api.datadoghq.com/api/v2/actions/connections/db41b6cb-ef93-45bd-9857-548e9474737c
28+
uri: https://api.datadoghq.com/api/v2/actions/connections/67aa2f61-266d-48d1-a1ee-cf7c3acc6b20
2929
response:
3030
body:
3131
string: ''

0 commit comments

Comments
 (0)