Skip to content

Commit 25d01de

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit ba47c96 of spec repo
1 parent 1d6c1d6 commit 25d01de

23 files changed

+2108
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 255 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5879,6 +5879,115 @@ components:
58795879
required:
58805880
- type
58815881
type: object
5882+
AzureScanOptions:
5883+
description: The definition of `AzureScanOptions` object.
5884+
example:
5885+
data:
5886+
attributes:
5887+
vuln_containers_os: true
5888+
vuln_host_os: true
5889+
id: 12345678-90ab-cdef-1234-567890abcdef
5890+
type: azure_scan_options
5891+
properties:
5892+
data:
5893+
$ref: '#/components/schemas/AzureScanOptionsData'
5894+
type: object
5895+
AzureScanOptionsArray:
5896+
description: The definition of `AzureScanOptionsArray` object.
5897+
example:
5898+
data:
5899+
- attributes:
5900+
vuln_containers_os: true
5901+
vuln_host_os: true
5902+
id: 12345678-90ab-cdef-1234-567890abcdef
5903+
type: azure_scan_options
5904+
properties:
5905+
data:
5906+
description: The `AzureScanOptionsArray` `data`.
5907+
items:
5908+
$ref: '#/components/schemas/AzureScanOptionsData'
5909+
type: array
5910+
required:
5911+
- data
5912+
type: object
5913+
AzureScanOptionsData:
5914+
description: The definition of `AzureScanOptionsData` object.
5915+
properties:
5916+
attributes:
5917+
$ref: '#/components/schemas/AzureScanOptionsDataAttributes'
5918+
id:
5919+
description: The `AzureScanOptionsData` `id`.
5920+
example: ''
5921+
type: string
5922+
type:
5923+
$ref: '#/components/schemas/AzureScanOptionsDataType'
5924+
required:
5925+
- type
5926+
- id
5927+
type: object
5928+
AzureScanOptionsDataAttributes:
5929+
description: The definition of `AzureScanOptionsDataAttributes` object.
5930+
properties:
5931+
vuln_containers_os:
5932+
description: The `attributes` `vuln_containers_os`.
5933+
type: boolean
5934+
vuln_host_os:
5935+
description: The `attributes` `vuln_host_os`.
5936+
type: boolean
5937+
type: object
5938+
AzureScanOptionsDataType:
5939+
default: azure_scan_options
5940+
description: The type of the resource. The value should always be `azure_scan_options`.
5941+
enum:
5942+
- azure_scan_options
5943+
example: azure_scan_options
5944+
type: string
5945+
x-enum-varnames:
5946+
- AZURE_SCAN_OPTIONS
5947+
AzureScanOptionsInputUpdate:
5948+
description: The definition of `AzureScanOptionsInputUpdate` object.
5949+
example:
5950+
data:
5951+
id: 12345678-90ab-cdef-1234-567890abcdef
5952+
type: azure_scan_options
5953+
properties:
5954+
data:
5955+
$ref: '#/components/schemas/AzureScanOptionsInputUpdateData'
5956+
type: object
5957+
AzureScanOptionsInputUpdateData:
5958+
description: The definition of `AzureScanOptionsInputUpdateData` object.
5959+
properties:
5960+
attributes:
5961+
$ref: '#/components/schemas/AzureScanOptionsInputUpdateDataAttributes'
5962+
id:
5963+
description: The `AzureScanOptionsInputUpdateData` `id`.
5964+
example: ''
5965+
type: string
5966+
type:
5967+
$ref: '#/components/schemas/AzureScanOptionsInputUpdateDataType'
5968+
required:
5969+
- type
5970+
- id
5971+
type: object
5972+
AzureScanOptionsInputUpdateDataAttributes:
5973+
description: The definition of `AzureScanOptionsInputUpdateDataAttributes` object.
5974+
properties:
5975+
vuln_containers_os:
5976+
description: The `attributes` `vuln_containers_os`.
5977+
type: boolean
5978+
vuln_host_os:
5979+
description: The `attributes` `vuln_host_os`.
5980+
type: boolean
5981+
type: object
5982+
AzureScanOptionsInputUpdateDataType:
5983+
default: azure_scan_options
5984+
description: Azure scan options resource type.
5985+
enum:
5986+
- azure_scan_options
5987+
example: azure_scan_options
5988+
type: string
5989+
x-enum-varnames:
5990+
- AZURE_SCAN_OPTIONS
58825991
AzureStorageDestination:
58835992
description: The `azure_storage` destination forwards logs to an Azure Blob
58845993
Storage container.
@@ -51570,6 +51679,11 @@ paths:
5157051679
$ref: '#/components/responses/NotAuthorizedResponse'
5157151680
'429':
5157251681
$ref: '#/components/responses/TooManyRequestsResponse'
51682+
security:
51683+
- apiKeyAuth: []
51684+
appKeyAuth: []
51685+
- AuthZ:
51686+
- security_monitoring_findings_read
5157351687
summary: List AWS Scan Options
5157451688
tags:
5157551689
- Agentless Scanning
@@ -51598,6 +51712,11 @@ paths:
5159851712
$ref: '#/components/responses/ConflictResponse'
5159951713
'429':
5160051714
$ref: '#/components/responses/TooManyRequestsResponse'
51715+
security:
51716+
- apiKeyAuth: []
51717+
appKeyAuth: []
51718+
- AuthZ:
51719+
- org_management
5160151720
summary: Post AWS Scan Options
5160251721
tags:
5160351722
- Agentless Scanning
@@ -51619,6 +51738,11 @@ paths:
5161951738
$ref: '#/components/responses/NotFoundResponse'
5162051739
'429':
5162151740
$ref: '#/components/responses/TooManyRequestsResponse'
51741+
security:
51742+
- apiKeyAuth: []
51743+
appKeyAuth: []
51744+
- AuthZ:
51745+
- org_management
5162251746
summary: Delete AWS Scan Options
5162351747
tags:
5162451748
- Agentless Scanning
@@ -51642,6 +51766,11 @@ paths:
5164251766
$ref: '#/components/responses/NotFoundResponse'
5164351767
'429':
5164451768
$ref: '#/components/responses/TooManyRequestsResponse'
51769+
security:
51770+
- apiKeyAuth: []
51771+
appKeyAuth: []
51772+
- AuthZ:
51773+
- security_monitoring_findings_read
5164551774
summary: Get AWS scan options
5164651775
tags:
5164751776
- Agentless Scanning
@@ -51668,10 +51797,121 @@ paths:
5166851797
$ref: '#/components/responses/NotFoundResponse'
5166951798
'429':
5167051799
$ref: '#/components/responses/TooManyRequestsResponse'
51800+
security:
51801+
- apiKeyAuth: []
51802+
appKeyAuth: []
51803+
- AuthZ:
51804+
- org_management
5167151805
summary: Patch AWS Scan Options
5167251806
tags:
5167351807
- Agentless Scanning
5167451808
x-codegen-request-body-name: body
51809+
/api/v2/agentless_scanning/accounts/azure:
51810+
get:
51811+
description: Fetches the scan options configured for Azure accounts.
51812+
operationId: ListAzureScanOptions
51813+
responses:
51814+
'200':
51815+
content:
51816+
application/json:
51817+
schema:
51818+
$ref: '#/components/schemas/AzureScanOptionsArray'
51819+
description: OK
51820+
'429':
51821+
$ref: '#/components/responses/TooManyRequestsResponse'
51822+
security:
51823+
- apiKeyAuth: []
51824+
appKeyAuth: []
51825+
- AuthZ:
51826+
- security_monitoring_findings_read
51827+
summary: List azure scan options
51828+
tags:
51829+
- Agentless Scanning
51830+
post:
51831+
description: Activate Agentless scan options for an Azure subscription.
51832+
operationId: CreateAzureScanOptions
51833+
requestBody:
51834+
content:
51835+
application/json:
51836+
schema:
51837+
$ref: '#/components/schemas/AzureScanOptions'
51838+
required: true
51839+
responses:
51840+
'201':
51841+
content:
51842+
application/json:
51843+
schema:
51844+
$ref: '#/components/schemas/AzureScanOptions'
51845+
description: Created
51846+
'429':
51847+
$ref: '#/components/responses/TooManyRequestsResponse'
51848+
security:
51849+
- apiKeyAuth: []
51850+
appKeyAuth: []
51851+
- AuthZ:
51852+
- org_management
51853+
summary: Create azure scan options
51854+
tags:
51855+
- Agentless Scanning
51856+
/api/v2/agentless_scanning/accounts/azure/{subscription_id}:
51857+
delete:
51858+
description: Delete Agentless scan options for an Azure subscription.
51859+
operationId: DeleteAzureScanOptions
51860+
parameters:
51861+
- description: The Azure subscription ID.
51862+
in: path
51863+
name: subscription_id
51864+
required: true
51865+
schema:
51866+
example: 12345678-90ab-cdef-1234-567890abcdef
51867+
type: string
51868+
responses:
51869+
'204':
51870+
description: No Content
51871+
'429':
51872+
$ref: '#/components/responses/TooManyRequestsResponse'
51873+
security:
51874+
- apiKeyAuth: []
51875+
appKeyAuth: []
51876+
- AuthZ:
51877+
- org_management
51878+
summary: Delete azure scan options
51879+
tags:
51880+
- Agentless Scanning
51881+
patch:
51882+
description: Update the Agentless scan options for an activated subscription.
51883+
operationId: UpdateAzureScanOptions
51884+
parameters:
51885+
- description: The Azure subscription ID.
51886+
in: path
51887+
name: subscription_id
51888+
required: true
51889+
schema:
51890+
example: 12345678-90ab-cdef-1234-567890abcdef
51891+
type: string
51892+
requestBody:
51893+
content:
51894+
application/json:
51895+
schema:
51896+
$ref: '#/components/schemas/AzureScanOptionsInputUpdate'
51897+
required: true
51898+
responses:
51899+
'200':
51900+
content:
51901+
application/json:
51902+
schema:
51903+
$ref: '#/components/schemas/AzureScanOptions'
51904+
description: OK
51905+
'429':
51906+
$ref: '#/components/responses/TooManyRequestsResponse'
51907+
security:
51908+
- apiKeyAuth: []
51909+
appKeyAuth: []
51910+
- AuthZ:
51911+
- org_management
51912+
summary: Update azure scan options
51913+
tags:
51914+
- Agentless Scanning
5167551915
/api/v2/agentless_scanning/ondemand/aws:
5167651916
get:
5167751917
description: Fetches the most recent 1000 AWS on demand tasks.
@@ -51687,6 +51927,11 @@ paths:
5168751927
$ref: '#/components/responses/NotAuthorizedResponse'
5168851928
'429':
5168951929
$ref: '#/components/responses/TooManyRequestsResponse'
51930+
security:
51931+
- apiKeyAuth: []
51932+
appKeyAuth: []
51933+
- AuthZ:
51934+
- security_monitoring_findings_read
5169051935
summary: Get AWS On Demand tasks
5169151936
tags:
5169251937
- Agentless Scanning
@@ -51719,6 +51964,11 @@ paths:
5171951964
$ref: '#/components/responses/NotAuthorizedResponse'
5172051965
'429':
5172151966
$ref: '#/components/responses/TooManyRequestsResponse'
51967+
security:
51968+
- apiKeyAuth: []
51969+
appKeyAuth: []
51970+
- AuthZ:
51971+
- org_management
5172251972
summary: Post an AWS on demand task
5172351973
tags:
5172451974
- Agentless Scanning
@@ -51748,6 +51998,11 @@ paths:
5174851998
$ref: '#/components/responses/NotFoundResponse'
5174951999
'429':
5175052000
$ref: '#/components/responses/TooManyRequestsResponse'
52001+
security:
52002+
- apiKeyAuth: []
52003+
appKeyAuth: []
52004+
- AuthZ:
52005+
- security_monitoring_findings_read
5175152006
summary: Get AWS On Demand task by id
5175252007
tags:
5175352008
- Agentless Scanning
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Create azure scan options returns "Created" response
2+
use datadog_api_client::datadog;
3+
use datadog_api_client::datadogV2::api_agentless_scanning::AgentlessScanningAPI;
4+
use datadog_api_client::datadogV2::model::AzureScanOptions;
5+
use datadog_api_client::datadogV2::model::AzureScanOptionsData;
6+
use datadog_api_client::datadogV2::model::AzureScanOptionsDataAttributes;
7+
use datadog_api_client::datadogV2::model::AzureScanOptionsDataType;
8+
9+
#[tokio::main]
10+
async fn main() {
11+
let body = AzureScanOptions::new().data(
12+
AzureScanOptionsData::new(
13+
"12345678-90ab-cdef-1234-567890abcdef".to_string(),
14+
AzureScanOptionsDataType::AZURE_SCAN_OPTIONS,
15+
)
16+
.attributes(
17+
AzureScanOptionsDataAttributes::new()
18+
.vuln_containers_os(true)
19+
.vuln_host_os(true),
20+
),
21+
);
22+
let configuration = datadog::Configuration::new();
23+
let api = AgentlessScanningAPI::with_config(configuration);
24+
let resp = api.create_azure_scan_options(body).await;
25+
if let Ok(value) = resp {
26+
println!("{:#?}", value);
27+
} else {
28+
println!("{:#?}", resp.unwrap_err());
29+
}
30+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Delete azure scan options returns "No Content" response
2+
use datadog_api_client::datadog;
3+
use datadog_api_client::datadogV2::api_agentless_scanning::AgentlessScanningAPI;
4+
5+
#[tokio::main]
6+
async fn main() {
7+
let configuration = datadog::Configuration::new();
8+
let api = AgentlessScanningAPI::with_config(configuration);
9+
let resp = api
10+
.delete_azure_scan_options("12345678-90ab-cdef-1234-567890abcdef".to_string())
11+
.await;
12+
if let Ok(value) = resp {
13+
println!("{:#?}", value);
14+
} else {
15+
println!("{:#?}", resp.unwrap_err());
16+
}
17+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// List azure scan options returns "OK" response
2+
use datadog_api_client::datadog;
3+
use datadog_api_client::datadogV2::api_agentless_scanning::AgentlessScanningAPI;
4+
5+
#[tokio::main]
6+
async fn main() {
7+
let configuration = datadog::Configuration::new();
8+
let api = AgentlessScanningAPI::with_config(configuration);
9+
let resp = api.list_azure_scan_options().await;
10+
if let Ok(value) = resp {
11+
println!("{:#?}", value);
12+
} else {
13+
println!("{:#?}", resp.unwrap_err());
14+
}
15+
}

0 commit comments

Comments
 (0)