Skip to content

Commit 04929f4

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 9dd2b6ae of spec repo (#2087)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent e66524c commit 04929f4

File tree

12 files changed

+120
-106
lines changed

12 files changed

+120
-106
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-03-06 16:19:18.966965",
8-
"spec_repo_commit": "1a11ef53"
7+
"regenerated": "2025-03-06 17:12:13.825248",
8+
"spec_repo_commit": "9dd2b6ae"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-03-06 16:19:18.982431",
13-
"spec_repo_commit": "1a11ef53"
12+
"regenerated": "2025-03-06 17:12:13.840725",
13+
"spec_repo_commit": "9dd2b6ae"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4122,6 +4122,8 @@ components:
41224122
of EC2 instances, lambda functions, AMI, ECR, RDS and S3 buckets.
41234123
example: arn:aws:ec2:us-east-1:727000456123:instance/i-0eabb50529b67a1ba
41244124
type: string
4125+
required:
4126+
- arn
41254127
type: object
41264128
AwsOnDemandCreateData:
41274129
description: Object for a single AWS on demand task.
@@ -4219,6 +4221,11 @@ components:
42194221
description: Indicates if scanning for vulnerabilities in hosts is enabled.
42204222
example: true
42214223
type: boolean
4224+
required:
4225+
- lambda
4226+
- sensitive_data
4227+
- vuln_containers_os
4228+
- vuln_host_os
42224229
type: object
42234230
AwsScanOptionsCreateData:
42244231
description: Object for the scan options of a single AWS account.
@@ -33982,7 +33989,9 @@ paths:
3398233989
permissions:
3398333990
- security_monitoring_findings_read
3398433991
post:
33985-
description: Trigger the scan of an AWS resource with a high priority.
33992+
description: Trigger the scan of an AWS resource with a high priority. Agentless
33993+
scanning must be activated for the AWS account containing the resource to
33994+
scan.
3398633995
operationId: CreateAwsOnDemandTask
3398733996
requestBody:
3398833997
content:
@@ -34015,7 +34024,7 @@ paths:
3401534024
/api/v2/agentless_scanning/ondemand/aws/{task_id}:
3401634025
get:
3401734026
description: Fetch the data of a specific on demand task.
34018-
operationId: RetrieveAwsOnDemandTask
34027+
operationId: GetAwsOnDemandTask
3401934028
parameters:
3402034029
- $ref: '#/components/parameters/OnDemandTaskId'
3402134030
responses:
@@ -53068,8 +53077,9 @@ tags:
5306853077
name: Action Connection
5306953078
- description: "Datadog Agentless Scanning provides visibility into risks and vulnerabilities\nwithin
5307053079
your hosts, running containers, and serverless functions\u2014all without\nrequiring
53071-
teams to install Agents on every host or where Agents cannot be installed.\nGo
53072-
to https://www.datadoghq.com/blog/agentless-scanning/ to learn more."
53080+
teams to install Agents on every host or where Agents cannot be installed.\nAgentless
53081+
offers also Sensitive Data Scanning capabilities on your storage.\nGo to https://www.datadoghq.com/blog/agentless-scanning/
53082+
to learn more."
5307353083
name: Agentless Scanning
5307453084
- description: Datadog App Builder provides a low-code solution to rapidly develop
5307553085
and integrate secure, customized applications into your monitoring stack that
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2025-03-01T20:02:10.630Z"
1+
"2025-03-06T11:57:47.413Z"

cassettes/v2/Agentless-Scanning_730042230/Post-AWS-Scan-Options-returns-Conflict-response_195146875/recording.har

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"entries": [
1010
{
11-
"_id": "686a593a4dba37dee65ba2748ae8e100",
11+
"_id": "f65bb98057f25b92482f54c273127342",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 132,
15+
"bodySize": 155,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -32,7 +32,7 @@
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"lambda\":false,\"vuln_containers_os\":true,\"vuln_host_os\":true},\"id\":\"000000000002\",\"type\":\"aws_scan_options\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"lambda\":false,\"sensitive_data\":false,\"vuln_containers_os\":true,\"vuln_host_os\":true},\"id\":\"000000000002\",\"type\":\"aws_scan_options\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/agentless_scanning/accounts/aws"
@@ -57,8 +57,8 @@
5757
"status": 409,
5858
"statusText": "Conflict"
5959
},
60-
"startedDateTime": "2025-03-01T20:02:10.631Z",
61-
"time": 439
60+
"startedDateTime": "2025-03-06T11:57:47.621Z",
61+
"time": 339
6262
}
6363
],
6464
"pages": [],

examples/v2/agentless-scanning/RetrieveAwsOnDemandTask.ts renamed to examples/v2/agentless-scanning/GetAwsOnDemandTask.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ import { client, v2 } from "@datadog/datadog-api-client";
77
const configuration = client.createConfiguration();
88
const apiInstance = new v2.AgentlessScanningApi(configuration);
99

10-
const params: v2.AgentlessScanningApiRetrieveAwsOnDemandTaskRequest = {
10+
const params: v2.AgentlessScanningApiGetAwsOnDemandTaskRequest = {
1111
taskId: "63d6b4f5-e5d0-4d90-824a-9580f05f026a",
1212
};
1313

1414
apiInstance
15-
.retrieveAwsOnDemandTask(params)
15+
.getAwsOnDemandTask(params)
1616
.then((data: v2.AwsOnDemandResponse) => {
1717
console.log(
1818
"API called successfully. Returned data: " + JSON.stringify(data)

features/support/scenarios_model_mapping.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2376,7 +2376,7 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = {
23762376
},
23772377
"operationResponseType": "AwsOnDemandResponse",
23782378
},
2379-
"v2.RetrieveAwsOnDemandTask": {
2379+
"v2.GetAwsOnDemandTask": {
23802380
"taskId": {
23812381
"type": "string",
23822382
"format": "",

features/v2/agentless_scanning.feature

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ Feature: Agentless Scanning
33
Datadog Agentless Scanning provides visibility into risks and
44
vulnerabilities within your hosts, running containers, and serverless
55
functions—all without requiring teams to install Agents on every host or
6-
where Agents cannot be installed. Go to
6+
where Agents cannot be installed. Agentless offers also Sensitive Data
7+
Scanning capabilities on your storage. Go to
78
https://www.datadoghq.com/blog/agentless-scanning/ to learn more.
89

910
Background:
@@ -34,21 +35,21 @@ Feature: Agentless Scanning
3435

3536
@team:DataDog/k9-agentless
3637
Scenario: Get AWS On Demand task by id returns "Bad Request" response
37-
Given new "RetrieveAwsOnDemandTask" request
38+
Given new "GetAwsOnDemandTask" request
3839
And request contains "task_id" parameter with value "invalid-uuid"
3940
When the request is sent
4041
Then the response status is 400 Bad Request
4142

4243
@team:DataDog/k9-agentless
4344
Scenario: Get AWS On Demand task by id returns "Not Found" response
44-
Given new "RetrieveAwsOnDemandTask" request
45+
Given new "GetAwsOnDemandTask" request
4546
And request contains "task_id" parameter with value "00000000-0000-0000-824a-000000000000"
4647
When the request is sent
4748
Then the response status is 404 Not Found
4849

4950
@team:DataDog/k9-agentless
5051
Scenario: Get AWS On Demand task by id returns "OK." response
51-
Given new "RetrieveAwsOnDemandTask" request
52+
Given new "GetAwsOnDemandTask" request
5253
And request contains "task_id" parameter with value "63d6b4f5-e5d0-4d90-824a-9580f05f026a"
5354
When the request is sent
5455
Then the response status is 200 OK
@@ -115,7 +116,7 @@ Feature: Agentless Scanning
115116
@team:DataDog/k9-agentless
116117
Scenario: Post AWS Scan Options returns "Conflict" response
117118
Given new "CreateAwsScanOptions" request
118-
And body with value {"data":{"type":"aws_scan_options","id":"000000000002","attributes":{"vuln_host_os":true,"vuln_containers_os":true,"lambda":false}}}
119+
And body with value {"data":{"type":"aws_scan_options","id":"000000000002","attributes":{"vuln_host_os":true,"vuln_containers_os":true,"sensitive_data":false,"lambda":false}}}
119120
When the request is sent
120121
Then the response status is 409 Conflict
121122

features/v2/undo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"type": "idempotent"
7474
}
7575
},
76-
"RetrieveAwsOnDemandTask": {
76+
"GetAwsOnDemandTask": {
7777
"tag": "Agentless Scanning",
7878
"undo": {
7979
"type": "safe"

0 commit comments

Comments
 (0)