Skip to content

Commit d33bd50

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 9fb1936 of spec repo
1 parent 099c66e commit d33bd50

22 files changed

+1872
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 307 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20305,6 +20305,115 @@ components:
2030520305
required:
2030620306
- data
2030720307
type: object
20308+
GcpScanOptions:
20309+
description: The definition of `GcpScanOptions` object.
20310+
example:
20311+
data:
20312+
attributes:
20313+
vuln_containers_os: true
20314+
vuln_host_os: true
20315+
id: company-project-id
20316+
type: gcp_scan_options
20317+
properties:
20318+
data:
20319+
$ref: '#/components/schemas/GcpScanOptionsData'
20320+
type: object
20321+
GcpScanOptionsArray:
20322+
description: The definition of `GcpScanOptionsArray` object.
20323+
example:
20324+
data:
20325+
- attributes:
20326+
vuln_containers_os: true
20327+
vuln_host_os: true
20328+
id: company-project-id
20329+
type: gcp_scan_options
20330+
properties:
20331+
data:
20332+
description: The `GcpScanOptionsArray` `data`.
20333+
items:
20334+
$ref: '#/components/schemas/GcpScanOptionsData'
20335+
type: array
20336+
required:
20337+
- data
20338+
type: object
20339+
GcpScanOptionsData:
20340+
description: The definition of `GcpScanOptionsData` object.
20341+
properties:
20342+
attributes:
20343+
$ref: '#/components/schemas/GcpScanOptionsDataAttributes'
20344+
id:
20345+
description: The `GcpScanOptionsData` `id`.
20346+
example: ''
20347+
type: string
20348+
type:
20349+
$ref: '#/components/schemas/GcpScanOptionsDataType'
20350+
required:
20351+
- type
20352+
- id
20353+
type: object
20354+
GcpScanOptionsDataAttributes:
20355+
description: The definition of `GcpScanOptionsDataAttributes` object.
20356+
properties:
20357+
vuln_containers_os:
20358+
description: The `attributes` `vuln_containers_os`.
20359+
type: boolean
20360+
vuln_host_os:
20361+
description: The `attributes` `vuln_host_os`.
20362+
type: boolean
20363+
type: object
20364+
GcpScanOptionsDataType:
20365+
default: gcp_scan_options
20366+
description: Gcp scan options resource type.
20367+
enum:
20368+
- gcp_scan_options
20369+
example: gcp_scan_options
20370+
type: string
20371+
x-enum-varnames:
20372+
- GCP_SCAN_OPTIONS
20373+
GcpScanOptionsInputUpdate:
20374+
description: The definition of `GcpScanOptionsInputUpdate` object.
20375+
example:
20376+
data:
20377+
id: company-project-id
20378+
type: gcp_scan_options
20379+
properties:
20380+
data:
20381+
$ref: '#/components/schemas/GcpScanOptionsInputUpdateData'
20382+
type: object
20383+
GcpScanOptionsInputUpdateData:
20384+
description: The definition of `GcpScanOptionsInputUpdateData` object.
20385+
properties:
20386+
attributes:
20387+
$ref: '#/components/schemas/GcpScanOptionsInputUpdateDataAttributes'
20388+
id:
20389+
description: The `GcpScanOptionsInputUpdateData` `id`.
20390+
example: ''
20391+
type: string
20392+
type:
20393+
$ref: '#/components/schemas/GcpScanOptionsInputUpdateDataType'
20394+
required:
20395+
- type
20396+
- id
20397+
type: object
20398+
GcpScanOptionsInputUpdateDataAttributes:
20399+
description: The definition of `GcpScanOptionsInputUpdateDataAttributes` object.
20400+
properties:
20401+
vuln_containers_os:
20402+
description: The `attributes` `vuln_containers_os`.
20403+
type: boolean
20404+
vuln_host_os:
20405+
description: The `attributes` `vuln_host_os`.
20406+
type: boolean
20407+
type: object
20408+
GcpScanOptionsInputUpdateDataType:
20409+
default: gcp_scan_options
20410+
description: Gcp scan options resource type.
20411+
enum:
20412+
- gcp_scan_options
20413+
example: gcp_scan_options
20414+
type: string
20415+
x-enum-varnames:
20416+
- GCP_SCAN_OPTIONS
2030820417
GcpUcConfigResponse:
2030920418
description: The definition of `GcpUcConfigResponse` object.
2031020419
example:
@@ -53009,6 +53118,40 @@ paths:
5300953118
summary: Delete azure scan options
5301053119
tags:
5301153120
- Agentless Scanning
53121+
get:
53122+
description: Fetches the Agentless scan options for an activated subscription.
53123+
operationId: GetAzureScanOptions
53124+
parameters:
53125+
- description: The Azure subscription ID.
53126+
in: path
53127+
name: subscription_id
53128+
required: true
53129+
schema:
53130+
example: 12345678-90ab-cdef-1234-567890abcdef
53131+
type: string
53132+
responses:
53133+
'200':
53134+
content:
53135+
application/json:
53136+
schema:
53137+
$ref: '#/components/schemas/AzureScanOptions'
53138+
description: OK
53139+
'400':
53140+
$ref: '#/components/responses/BadRequestResponse'
53141+
'403':
53142+
$ref: '#/components/responses/NotAuthorizedResponse'
53143+
'404':
53144+
$ref: '#/components/responses/NotFoundResponse'
53145+
'429':
53146+
$ref: '#/components/responses/TooManyRequestsResponse'
53147+
security:
53148+
- apiKeyAuth: []
53149+
appKeyAuth: []
53150+
- AuthZ:
53151+
- security_monitoring_findings_read
53152+
summary: Get Azure scan options
53153+
tags:
53154+
- Agentless Scanning
5301253155
patch:
5301353156
description: Update the Agentless scan options for an activated subscription.
5301453157
operationId: UpdateAzureScanOptions
@@ -53043,6 +53186,170 @@ paths:
5304353186
summary: Update azure scan options
5304453187
tags:
5304553188
- Agentless Scanning
53189+
/api/v2/agentless_scanning/accounts/gcp:
53190+
get:
53191+
description: Fetches the scan options configured for GCP projects.
53192+
operationId: ListGcpScanOptions
53193+
responses:
53194+
'200':
53195+
content:
53196+
application/json:
53197+
schema:
53198+
$ref: '#/components/schemas/GcpScanOptionsArray'
53199+
description: OK
53200+
'403':
53201+
$ref: '#/components/responses/NotAuthorizedResponse'
53202+
'429':
53203+
$ref: '#/components/responses/TooManyRequestsResponse'
53204+
security:
53205+
- apiKeyAuth: []
53206+
appKeyAuth: []
53207+
- AuthZ:
53208+
- security_monitoring_findings_read
53209+
summary: List GCP Scan Options
53210+
tags:
53211+
- Agentless Scanning
53212+
post:
53213+
description: Activate Agentless scan options for a GCP project.
53214+
operationId: CreateGcpScanOptions
53215+
requestBody:
53216+
content:
53217+
application/json:
53218+
schema:
53219+
$ref: '#/components/schemas/GcpScanOptions'
53220+
description: The definition of the new scan options.
53221+
required: true
53222+
responses:
53223+
'201':
53224+
content:
53225+
application/json:
53226+
schema:
53227+
$ref: '#/components/schemas/GcpScanOptions'
53228+
description: Agentless scan options enabled successfully.
53229+
'400':
53230+
$ref: '#/components/responses/BadRequestResponse'
53231+
'403':
53232+
$ref: '#/components/responses/NotAuthorizedResponse'
53233+
'409':
53234+
$ref: '#/components/responses/ConflictResponse'
53235+
'429':
53236+
$ref: '#/components/responses/TooManyRequestsResponse'
53237+
security:
53238+
- apiKeyAuth: []
53239+
appKeyAuth: []
53240+
- AuthZ:
53241+
- org_management
53242+
summary: Post GCP Scan Options
53243+
tags:
53244+
- Agentless Scanning
53245+
x-codegen-request-body-name: body
53246+
/api/v2/agentless_scanning/accounts/gcp/{project_id}:
53247+
delete:
53248+
description: Delete Agentless scan options for a GCP project.
53249+
operationId: DeleteGcpScanOptions
53250+
parameters:
53251+
- description: The GCP project ID.
53252+
in: path
53253+
name: project_id
53254+
required: true
53255+
schema:
53256+
example: company-project-id
53257+
type: string
53258+
responses:
53259+
'204':
53260+
description: No Content
53261+
'400':
53262+
$ref: '#/components/responses/BadRequestResponse'
53263+
'403':
53264+
$ref: '#/components/responses/NotAuthorizedResponse'
53265+
'404':
53266+
$ref: '#/components/responses/NotFoundResponse'
53267+
'429':
53268+
$ref: '#/components/responses/TooManyRequestsResponse'
53269+
security:
53270+
- apiKeyAuth: []
53271+
appKeyAuth: []
53272+
- AuthZ:
53273+
- org_management
53274+
summary: Delete GCP Scan Options
53275+
tags:
53276+
- Agentless Scanning
53277+
get:
53278+
description: Fetches the Agentless scan options for an activated project.
53279+
operationId: GetGcpScanOptions
53280+
parameters:
53281+
- description: The GCP project ID.
53282+
in: path
53283+
name: project_id
53284+
required: true
53285+
schema:
53286+
example: company-project-id
53287+
type: string
53288+
responses:
53289+
'200':
53290+
content:
53291+
application/json:
53292+
schema:
53293+
$ref: '#/components/schemas/GcpScanOptions'
53294+
description: OK
53295+
'400':
53296+
$ref: '#/components/responses/BadRequestResponse'
53297+
'403':
53298+
$ref: '#/components/responses/NotAuthorizedResponse'
53299+
'404':
53300+
$ref: '#/components/responses/NotFoundResponse'
53301+
'429':
53302+
$ref: '#/components/responses/TooManyRequestsResponse'
53303+
security:
53304+
- apiKeyAuth: []
53305+
appKeyAuth: []
53306+
- AuthZ:
53307+
- security_monitoring_findings_read
53308+
summary: Get GCP scan options
53309+
tags:
53310+
- Agentless Scanning
53311+
patch:
53312+
description: Update the Agentless scan options for an activated project.
53313+
operationId: UpdateGcpScanOptions
53314+
parameters:
53315+
- description: The GCP project ID.
53316+
in: path
53317+
name: project_id
53318+
required: true
53319+
schema:
53320+
example: company-project-id
53321+
type: string
53322+
requestBody:
53323+
content:
53324+
application/json:
53325+
schema:
53326+
$ref: '#/components/schemas/GcpScanOptionsInputUpdate'
53327+
description: New definition of the scan options.
53328+
required: true
53329+
responses:
53330+
'200':
53331+
content:
53332+
application/json:
53333+
schema:
53334+
$ref: '#/components/schemas/GcpScanOptions'
53335+
description: OK
53336+
'400':
53337+
$ref: '#/components/responses/BadRequestResponse'
53338+
'403':
53339+
$ref: '#/components/responses/NotAuthorizedResponse'
53340+
'404':
53341+
$ref: '#/components/responses/NotFoundResponse'
53342+
'429':
53343+
$ref: '#/components/responses/TooManyRequestsResponse'
53344+
security:
53345+
- apiKeyAuth: []
53346+
appKeyAuth: []
53347+
- AuthZ:
53348+
- org_management
53349+
summary: Patch GCP Scan Options
53350+
tags:
53351+
- Agentless Scanning
53352+
x-codegen-request-body-name: body
5304653353
/api/v2/agentless_scanning/ondemand/aws:
5304753354
get:
5304853355
description: Fetches the most recent 1000 AWS on demand tasks.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Post GCP Scan Options returns "Agentless scan options enabled successfully." response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::AgentlessScanningAPI.new
5+
6+
body = DatadogAPIClient::V2::GcpScanOptions.new({
7+
data: DatadogAPIClient::V2::GcpScanOptionsData.new({
8+
id: "new-project",
9+
type: DatadogAPIClient::V2::GcpScanOptionsDataType::GCP_SCAN_OPTIONS,
10+
attributes: DatadogAPIClient::V2::GcpScanOptionsDataAttributes.new({
11+
vuln_host_os: true,
12+
vuln_containers_os: true,
13+
}),
14+
}),
15+
})
16+
p api_instance.create_gcp_scan_options(body)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Delete GCP Scan Options returns "No Content" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::AgentlessScanningAPI.new
5+
api_instance.delete_gcp_scan_options("company-project-id")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Get Azure scan options returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::AgentlessScanningAPI.new
5+
p api_instance.get_azure_scan_options("12345678-90ab-cdef-1234-567890abcdef")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Get GCP scan options returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::AgentlessScanningAPI.new
5+
p api_instance.get_gcp_scan_options("api-spec-test")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# List GCP Scan Options returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::AgentlessScanningAPI.new
5+
p api_instance.list_gcp_scan_options()
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Patch GCP Scan Options returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::AgentlessScanningAPI.new
5+
6+
body = DatadogAPIClient::V2::GcpScanOptionsInputUpdate.new({
7+
data: DatadogAPIClient::V2::GcpScanOptionsInputUpdateData.new({
8+
id: "api-spec-test",
9+
type: DatadogAPIClient::V2::GcpScanOptionsInputUpdateDataType::GCP_SCAN_OPTIONS,
10+
attributes: DatadogAPIClient::V2::GcpScanOptionsInputUpdateDataAttributes.new({
11+
vuln_containers_os: false,
12+
}),
13+
}),
14+
})
15+
p api_instance.update_gcp_scan_options("api-spec-test", body)

0 commit comments

Comments
 (0)