Skip to content

Commit 2493331

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
ACCESS-2490: Updating documentation with required scope (#1973)
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 b5d1fd9 commit 2493331

File tree

41 files changed

+2047
-2748
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+2047
-2748
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": "2024-05-15 14:46:59.394168",
8-
"spec_repo_commit": "4e2ffe7b"
7+
"regenerated": "2024-05-17 20:25:23.098750",
8+
"spec_repo_commit": "77064b00"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-05-15 14:46:59.412619",
13-
"spec_repo_commit": "4e2ffe7b"
12+
"regenerated": "2024-05-17 20:25:23.116461",
13+
"spec_repo_commit": "77064b00"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34134,6 +34134,11 @@ paths:
3413434134
$ref: '#/components/responses/SpansUnprocessableEntityResponse'
3413534135
'429':
3413634136
$ref: '#/components/responses/SpansTooManyRequestsResponse'
34137+
security:
34138+
- apiKeyAuth: []
34139+
appKeyAuth: []
34140+
- AuthZ:
34141+
- apm_read
3413734142
summary: Get a list of spans
3413834143
tags:
3413934144
- Spans
@@ -34177,6 +34182,11 @@ paths:
3417734182
$ref: '#/components/responses/SpansUnprocessableEntityResponse'
3417834183
'429':
3417934184
$ref: '#/components/responses/SpansTooManyRequestsResponse'
34185+
security:
34186+
- apiKeyAuth: []
34187+
appKeyAuth: []
34188+
- AuthZ:
34189+
- apm_read
3418034190
summary: Search spans
3418134191
tags:
3418234192
- Spans

src/datadog_api_client/v2/api/spans_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def __init__(self, api_client=None):
5555
self._list_spans_endpoint = _Endpoint(
5656
settings={
5757
"response_type": (SpansListResponse,),
58-
"auth": ["apiKeyAuth", "appKeyAuth"],
58+
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
5959
"endpoint_path": "/api/v2/spans/events/search",
6060
"operation_id": "list_spans",
6161
"http_method": "POST",
@@ -75,7 +75,7 @@ def __init__(self, api_client=None):
7575
self._list_spans_get_endpoint = _Endpoint(
7676
settings={
7777
"response_type": (SpansListResponse,),
78-
"auth": ["apiKeyAuth", "appKeyAuth"],
78+
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
7979
"endpoint_path": "/api/v2/spans/events",
8080
"operation_id": "list_spans_get",
8181
"http_method": "GET",
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-04-23T17:57:45.044Z
1+
2024-03-08T14:19:03.967Z

tests/v2/cassettes/test_scenarios/test_create_a_cloud_workload_security_agent_rule_returns_bad_request_response.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
interactions:
22
- request:
33
body: '{"data":{"attributes":{"description":"Test Agent rule","enabled":true,"expression":"open.file.path
4-
= sh","name":"testcreateacloudworkloadsecurityagentrulereturnsbadrequestresponse1713895065"},"type":"agent_rule"}}'
4+
= sh","name":"testcreateacloudworkloadsecurityagentrulereturnsbadrequestresponse1709907543"},"type":"agent_rule"}}'
55
headers:
66
accept:
77
- application/json
@@ -12,7 +12,7 @@ interactions:
1212
response:
1313
body:
1414
string: '{"errors":["input_validation_error(Field ''expression'' is invalid:
15-
rule `testcreateacloudworkloadsecurityagentrulereturnsbadrequestresponse1713895065`
15+
rule `testcreateacloudworkloadsecurityagentrulereturnsbadrequestresponse1709907543`
1616
error: syntax error `1:18: unexpected token \"sh\" (expected \"~\")`)"]}
1717
1818
'
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-04-23T17:57:45.232Z
1+
2024-03-08T14:19:04.358Z

tests/v2/cassettes/test_scenarios/test_create_a_cloud_workload_security_agent_rule_returns_ok_response.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
interactions:
22
- request:
33
body: '{"data":{"attributes":{"description":"Test Agent rule","enabled":true,"expression":"exec.file.name
4-
== \"sh\"","name":"testcreateacloudworkloadsecurityagentrulereturnsokresponse1713895065"},"type":"agent_rule"}}'
4+
== \"sh\"","name":"testcreateacloudworkloadsecurityagentrulereturnsokresponse1709907544"},"type":"agent_rule"}}'
55
headers:
66
accept:
77
- application/json
@@ -11,9 +11,11 @@ interactions:
1111
uri: https://api.datadoghq.com/api/v2/security_monitoring/cloud_workload_security/agent_rules
1212
response:
1313
body:
14-
string: '{"data":{"id":"igj-qzb-9eq","attributes":{"version":1,"name":"testcreateacloudworkloadsecurityagentrulereturnsokresponse1713895065","description":"Test
15-
Agent rule","expression":"exec.file.name == \"sh\"","category":"Process Activity","creationAuthorUuId":"3ad549bf-eba0-11e9-a77a-0705486660d0","creationDate":1713895065356,"updateAuthorUuId":"3ad549bf-eba0-11e9-a77a-0705486660d0","updateDate":1713895065356,"filters":["os
16-
== \"linux\""],"actions":[],"agentConstraint":"","enabled":true,"defaultRule":false,"creator":{"name":null,"handle":"[email protected]"},"updater":{"name":null,"handle":"[email protected]"}},"type":"agent_rule"}}
14+
string: '{"data":{"id":"svr-luf-gzy","attributes":{"version":1,"name":"testcreateacloudworkloadsecurityagentrulereturnsokresponse1709907544","description":"Test
15+
Agent rule","expression":"exec.file.name == \"sh\"","category":"Process Activity","creationAuthorUuId":"cc32ddea-b5e4-11ec-93be-da7ad0900002","creationDate":1709907544744,"updateAuthorUuId":"cc32ddea-b5e4-11ec-93be-da7ad0900002","updateDate":1709907544744,"filters":["os
16+
== \"linux\""],"actions":[],"agentConstraint":"","enabled":true,"defaultRule":false,"creator":{"name":"Malo
17+
Le Goff","handle":"[email protected]"},"updater":{"name":"Malo Le
18+
Goff","handle":"[email protected]"}},"type":"agent_rule"}}
1719
1820
'
1921
headers:
@@ -28,7 +30,7 @@ interactions:
2830
accept:
2931
- '*/*'
3032
method: DELETE
31-
uri: https://api.datadoghq.com/api/v2/security_monitoring/cloud_workload_security/agent_rules/igj-qzb-9eq
33+
uri: https://api.datadoghq.com/api/v2/security_monitoring/cloud_workload_security/agent_rules/svr-luf-gzy
3234
response:
3335
body:
3436
string: ''
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-04-23T17:57:44.167Z
1+
2024-03-28T13:57:47.808Z

tests/v2/cassettes/test_scenarios/test_create_a_csm_threats_agent_rule_returns_bad_request_response.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
interactions:
22
- request:
33
body: '{"data":{"attributes":{"description":"My Agent rule","enabled":true,"expression":"exec.file.name
4-
== sh","name":"testcreateacsmthreatsagentrulereturnsbadrequestresponse1713895064"},"type":"agent_rule"}}'
4+
== sh","name":"testcreateacsmthreatsagentrulereturnsbadrequestresponse1711634267"},"type":"agent_rule"}}'
55
headers:
66
accept:
77
- application/json
@@ -12,7 +12,7 @@ interactions:
1212
response:
1313
body:
1414
string: '{"errors":["input_validation_error(Field ''expression'' is invalid:
15-
rule `testcreateacsmthreatsagentrulereturnsbadrequestresponse1713895064` error:
15+
rule `testcreateacsmthreatsagentrulereturnsbadrequestresponse1711634267` error:
1616
rule compilation error: field `sh` not found)"]}'
1717
headers:
1818
content-type:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-04-23T17:57:44.371Z
1+
2024-03-28T13:57:48.169Z

0 commit comments

Comments
 (0)