Skip to content

Commit b927fc4

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 0632dc58 of spec repo
1 parent 35628c1 commit b927fc4

File tree

43 files changed

+1124
-23
lines changed

Some content is hidden

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

43 files changed

+1124
-23
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-02-28 17:49:27.289434",
8-
"spec_repo_commit": "59e6a448"
7+
"regenerated": "2025-03-01 19:50:55.366020",
8+
"spec_repo_commit": "0632dc58"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-02-28 17:49:27.303661",
13-
"spec_repo_commit": "59e6a448"
12+
"regenerated": "2025-03-01 19:50:55.380977",
13+
"spec_repo_commit": "0632dc58"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 165 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,14 @@ components:
162162
required: true
163163
schema:
164164
type: string
165+
AwsAccountId:
166+
description: The ID of an AWS account.
167+
example: '123456789012'
168+
in: path
169+
name: account_id
170+
required: true
171+
schema:
172+
type: string
165173
CaseIDPathParameter:
166174
description: Case's UUID or key
167175
example: f98a5a5b-e0ff-45d4-b2f5-afe6e74de504
@@ -1742,6 +1750,10 @@ components:
17421750
type: string
17431751
type: array
17441752
type: object
1753+
AccountId:
1754+
description: The ID of the AWS account.
1755+
example: '184366314700'
1756+
type: string
17451757
ActionConnectionAttributes:
17461758
description: The definition of `ActionConnectionAttributes` object.
17471759
properties:
@@ -2879,6 +2891,10 @@ components:
28792891
type: string
28802892
x-enum-varnames:
28812893
- AUTHN_MAPPINGS
2894+
AwsAccountId:
2895+
description: The ID of an AWS account.
2896+
example: '123456789012'
2897+
type: string
28822898
AwsCURConfig:
28832899
description: AWS CUR config.
28842900
properties:
@@ -3104,6 +3120,28 @@ components:
31043120
example: true
31053121
type: boolean
31063122
type: object
3123+
AwsScanOptionsCreateData:
3124+
description: Object for the scan options of a single AWS account.
3125+
properties:
3126+
attributes:
3127+
$ref: '#/components/schemas/AwsScanOptionsAttributes'
3128+
id:
3129+
$ref: '#/components/schemas/AwsAccountId'
3130+
type:
3131+
$ref: '#/components/schemas/AwsScanOptionsType'
3132+
required:
3133+
- id
3134+
- attributes
3135+
- type
3136+
type: object
3137+
AwsScanOptionsCreateRequest:
3138+
description: Request object that includes the scan options to create.
3139+
properties:
3140+
data:
3141+
$ref: '#/components/schemas/AwsScanOptionsCreateData'
3142+
required:
3143+
- data
3144+
type: object
31073145
AwsScanOptionsData:
31083146
description: Single AWS Scan Options entry.
31093147
properties:
@@ -3116,7 +3154,7 @@ components:
31163154
type:
31173155
$ref: '#/components/schemas/AwsScanOptionsType'
31183156
type: object
3119-
AwsScanOptionsResponse:
3157+
AwsScanOptionsListResponse:
31203158
description: Response object that includes a list of AWS scan options.
31213159
properties:
31223160
data:
@@ -3125,6 +3163,12 @@ components:
31253163
$ref: '#/components/schemas/AwsScanOptionsData'
31263164
type: array
31273165
type: object
3166+
AwsScanOptionsResponse:
3167+
description: Response object that includes the scan options of an AWS account.
3168+
properties:
3169+
data:
3170+
$ref: '#/components/schemas/AwsScanOptionsData'
3171+
type: object
31283172
AwsScanOptionsType:
31293173
default: aws_scan_options
31303174
description: The type of the resource. The value should always be `aws_scan_options`.
@@ -3134,6 +3178,48 @@ components:
31343178
type: string
31353179
x-enum-varnames:
31363180
- AWS_SCAN_OPTIONS
3181+
AwsScanOptionsUpdateAttributes:
3182+
description: Attributes for the AWS scan options to update.
3183+
properties:
3184+
lambda:
3185+
description: Indicates if scanning of Lambda functions is enabled.
3186+
example: true
3187+
type: boolean
3188+
sensitive_data:
3189+
description: Indicates if scanning for sensitive data is enabled.
3190+
example: false
3191+
type: boolean
3192+
vuln_containers_os:
3193+
description: Indicates if scanning for vulnerabilities in containers is
3194+
enabled.
3195+
example: true
3196+
type: boolean
3197+
vuln_host_os:
3198+
description: Indicates if scanning for vulnerabilities in hosts is enabled.
3199+
example: true
3200+
type: boolean
3201+
type: object
3202+
AwsScanOptionsUpdateData:
3203+
description: Object for the scan options of a single AWS account.
3204+
properties:
3205+
attributes:
3206+
$ref: '#/components/schemas/AwsScanOptionsUpdateAttributes'
3207+
id:
3208+
$ref: '#/components/schemas/AccountId'
3209+
type:
3210+
$ref: '#/components/schemas/AwsScanOptionsType'
3211+
required:
3212+
- attributes
3213+
- type
3214+
type: object
3215+
AwsScanOptionsUpdateRequest:
3216+
description: Request object that includes the scan options to update.
3217+
properties:
3218+
data:
3219+
$ref: '#/components/schemas/AwsScanOptionsUpdateData'
3220+
required:
3221+
- data
3222+
type: object
31373223
AzureUCConfig:
31383224
description: Azure config.
31393225
properties:
@@ -32639,7 +32725,7 @@ paths:
3263932725
content:
3264032726
application/json:
3264132727
schema:
32642-
$ref: '#/components/schemas/AwsScanOptionsResponse'
32728+
$ref: '#/components/schemas/AwsScanOptionsListResponse'
3264332729
description: OK
3264432730
'403':
3264532731
$ref: '#/components/responses/NotAuthorizedResponse'
@@ -32648,6 +32734,82 @@ paths:
3264832734
summary: Get AWS Scan Options
3264932735
tags:
3265032736
- Agentless Scanning
32737+
post:
32738+
description: Activate Agentless scan options for an AWS account.
32739+
operationId: CreateAwsScanOptions
32740+
requestBody:
32741+
content:
32742+
application/json:
32743+
schema:
32744+
$ref: '#/components/schemas/AwsScanOptionsCreateRequest'
32745+
description: The definition of the new scan options.
32746+
required: true
32747+
responses:
32748+
'201':
32749+
content:
32750+
application/json:
32751+
schema:
32752+
$ref: '#/components/schemas/AwsScanOptionsResponse'
32753+
description: Agentless scan options enabled successfully.
32754+
'400':
32755+
$ref: '#/components/responses/BadRequestResponse'
32756+
'403':
32757+
$ref: '#/components/responses/NotAuthorizedResponse'
32758+
'409':
32759+
$ref: '#/components/responses/ConflictResponse'
32760+
'429':
32761+
$ref: '#/components/responses/TooManyRequestsResponse'
32762+
summary: Post AWS Scan Options
32763+
tags:
32764+
- Agentless Scanning
32765+
x-codegen-request-body-name: body
32766+
/api/v2/agentless_scanning/accounts/aws/{account_id}:
32767+
delete:
32768+
description: Delete Agentless scan options for an AWS account.
32769+
operationId: DeleteAwsScanOptions
32770+
parameters:
32771+
- $ref: '#/components/parameters/AwsAccountId'
32772+
responses:
32773+
'204':
32774+
description: No Content
32775+
'400':
32776+
$ref: '#/components/responses/BadRequestResponse'
32777+
'403':
32778+
$ref: '#/components/responses/NotAuthorizedResponse'
32779+
'404':
32780+
$ref: '#/components/responses/NotFoundResponse'
32781+
'429':
32782+
$ref: '#/components/responses/TooManyRequestsResponse'
32783+
summary: Delete AWS Scan Options
32784+
tags:
32785+
- Agentless Scanning
32786+
patch:
32787+
description: Update the Agentless scan options for an activated account.
32788+
operationId: UpdateAwsScanOptions
32789+
parameters:
32790+
- $ref: '#/components/parameters/AwsAccountId'
32791+
requestBody:
32792+
content:
32793+
application/json:
32794+
schema:
32795+
$ref: '#/components/schemas/AwsScanOptionsUpdateRequest'
32796+
description: New definition of the scan options.
32797+
required: true
32798+
responses:
32799+
'204':
32800+
description: No Content
32801+
'400':
32802+
$ref: '#/components/responses/BadRequestResponse'
32803+
'403':
32804+
$ref: '#/components/responses/NotAuthorizedResponse'
32805+
'404':
32806+
$ref: '#/components/responses/NotFoundResponse'
32807+
'429':
32808+
$ref: '#/components/responses/TooManyRequestsResponse'
32809+
summary: Patch AWS Scan Options
32810+
tags:
32811+
- Agentless Scanning
32812+
x-codegen-request-body-name: body
3265132813
/api/v2/api_keys:
3265232814
get:
3265332815
description: List all API keys available for your account.
@@ -51408,7 +51570,7 @@ tags:
5140851570
- description: "Datadog Agentless Scanning provides visibility into risks and vulnerabilities\nwithin
5140951571
your hosts, running containers, and serverless functions\u2014all without\nrequiring
5141051572
teams to install Agents on every host or where Agents cannot be installed.\nGo
51411-
to https://www.datadoghq.com/blog/agentless-scanning/ to learn more"
51573+
to https://www.datadoghq.com/blog/agentless-scanning/ to learn more."
5141251574
name: Agentless Scanning
5141351575
- description: Datadog App Builder provides a low-code solution to rapidly develop
5141451576
and integrate secure, customized applications into your monitoring stack that

docs/datadog_api_client.v2.model.rst

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,13 +1110,34 @@ datadog\_api\_client.v2.model.aws\_scan\_options\_attributes module
11101110
:members:
11111111
:show-inheritance:
11121112

1113+
datadog\_api\_client.v2.model.aws\_scan\_options\_create\_data module
1114+
---------------------------------------------------------------------
1115+
1116+
.. automodule:: datadog_api_client.v2.model.aws_scan_options_create_data
1117+
:members:
1118+
:show-inheritance:
1119+
1120+
datadog\_api\_client.v2.model.aws\_scan\_options\_create\_request module
1121+
------------------------------------------------------------------------
1122+
1123+
.. automodule:: datadog_api_client.v2.model.aws_scan_options_create_request
1124+
:members:
1125+
:show-inheritance:
1126+
11131127
datadog\_api\_client.v2.model.aws\_scan\_options\_data module
11141128
-------------------------------------------------------------
11151129

11161130
.. automodule:: datadog_api_client.v2.model.aws_scan_options_data
11171131
:members:
11181132
:show-inheritance:
11191133

1134+
datadog\_api\_client.v2.model.aws\_scan\_options\_list\_response module
1135+
-----------------------------------------------------------------------
1136+
1137+
.. automodule:: datadog_api_client.v2.model.aws_scan_options_list_response
1138+
:members:
1139+
:show-inheritance:
1140+
11201141
datadog\_api\_client.v2.model.aws\_scan\_options\_response module
11211142
-----------------------------------------------------------------
11221143

@@ -1131,6 +1152,27 @@ datadog\_api\_client.v2.model.aws\_scan\_options\_type module
11311152
:members:
11321153
:show-inheritance:
11331154

1155+
datadog\_api\_client.v2.model.aws\_scan\_options\_update\_attributes module
1156+
---------------------------------------------------------------------------
1157+
1158+
.. automodule:: datadog_api_client.v2.model.aws_scan_options_update_attributes
1159+
:members:
1160+
:show-inheritance:
1161+
1162+
datadog\_api\_client.v2.model.aws\_scan\_options\_update\_data module
1163+
---------------------------------------------------------------------
1164+
1165+
.. automodule:: datadog_api_client.v2.model.aws_scan_options_update_data
1166+
:members:
1167+
:show-inheritance:
1168+
1169+
datadog\_api\_client.v2.model.aws\_scan\_options\_update\_request module
1170+
------------------------------------------------------------------------
1171+
1172+
.. automodule:: datadog_api_client.v2.model.aws_scan_options_update_request
1173+
:members:
1174+
:show-inheritance:
1175+
11341176
datadog\_api\_client.v2.model.aws\_traces\_config module
11351177
--------------------------------------------------------
11361178

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
"""
2+
Post AWS Scan Options returns "Agentless scan options enabled successfully." response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.agentless_scanning_api import AgentlessScanningApi
7+
from datadog_api_client.v2.model.aws_scan_options_attributes import AwsScanOptionsAttributes
8+
from datadog_api_client.v2.model.aws_scan_options_create_data import AwsScanOptionsCreateData
9+
from datadog_api_client.v2.model.aws_scan_options_create_request import AwsScanOptionsCreateRequest
10+
from datadog_api_client.v2.model.aws_scan_options_type import AwsScanOptionsType
11+
12+
body = AwsScanOptionsCreateRequest(
13+
data=AwsScanOptionsCreateData(
14+
id="000000000003",
15+
type=AwsScanOptionsType.AWS_SCAN_OPTIONS,
16+
attributes=AwsScanOptionsAttributes(
17+
_lambda=True,
18+
sensitive_data=False,
19+
vuln_containers_os=True,
20+
vuln_host_os=True,
21+
),
22+
),
23+
)
24+
25+
configuration = Configuration()
26+
with ApiClient(configuration) as api_client:
27+
api_instance = AgentlessScanningApi(api_client)
28+
response = api_instance.create_aws_scan_options(body=body)
29+
30+
print(response)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""
2+
Delete AWS Scan Options returns "No Content" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.agentless_scanning_api import AgentlessScanningApi
7+
8+
configuration = Configuration()
9+
with ApiClient(configuration) as api_client:
10+
api_instance = AgentlessScanningApi(api_client)
11+
api_instance.delete_aws_scan_options(
12+
account_id="account_id",
13+
)
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
"""
2+
Patch AWS Scan Options returns "No Content" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.agentless_scanning_api import AgentlessScanningApi
7+
from datadog_api_client.v2.model.aws_scan_options_type import AwsScanOptionsType
8+
from datadog_api_client.v2.model.aws_scan_options_update_attributes import AwsScanOptionsUpdateAttributes
9+
from datadog_api_client.v2.model.aws_scan_options_update_data import AwsScanOptionsUpdateData
10+
from datadog_api_client.v2.model.aws_scan_options_update_request import AwsScanOptionsUpdateRequest
11+
12+
body = AwsScanOptionsUpdateRequest(
13+
data=AwsScanOptionsUpdateData(
14+
type=AwsScanOptionsType.AWS_SCAN_OPTIONS,
15+
id="000000000002",
16+
attributes=AwsScanOptionsUpdateAttributes(
17+
vuln_host_os=True,
18+
vuln_containers_os=True,
19+
_lambda=False,
20+
),
21+
),
22+
)
23+
24+
configuration = Configuration()
25+
with ApiClient(configuration) as api_client:
26+
api_instance = AgentlessScanningApi(api_client)
27+
api_instance.update_aws_scan_options(account_id="000000000002", body=body)

0 commit comments

Comments
 (0)