Skip to content

Commit b241182

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 4c23ac63 of spec repo
1 parent 0b8ef10 commit b241182

28 files changed

+2392
-4
lines changed

.apigentools-info

+4-4
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-12-26 16:01:43.230022",
8-
"spec_repo_commit": "f2e98b01"
7+
"regenerated": "2025-01-02 14:22:35.139525",
8+
"spec_repo_commit": "4c23ac63"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-12-26 16:01:43.244935",
13-
"spec_repo_commit": "f2e98b01"
12+
"regenerated": "2025-01-02 14:22:35.154535",
13+
"spec_repo_commit": "4c23ac63"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+209
Original file line numberDiff line numberDiff line change
@@ -7340,6 +7340,140 @@ components:
73407340
meta:
73417341
$ref: '#/components/schemas/CSMAgentsMetadata'
73427342
type: object
7343+
CsmCloudAccountsCoverageAnalysisAttributes:
7344+
description: CSM Cloud Accounts Coverage Analysis attributes.
7345+
properties:
7346+
aws_coverage:
7347+
$ref: '#/components/schemas/CsmCoverageAnalysis'
7348+
azure_coverage:
7349+
$ref: '#/components/schemas/CsmCoverageAnalysis'
7350+
gcp_coverage:
7351+
$ref: '#/components/schemas/CsmCoverageAnalysis'
7352+
org_id:
7353+
description: The ID of your organization.
7354+
example: 123456
7355+
format: int64
7356+
type: integer
7357+
total_coverage:
7358+
$ref: '#/components/schemas/CsmCoverageAnalysis'
7359+
type: object
7360+
CsmCloudAccountsCoverageAnalysisData:
7361+
description: CSM Cloud Accounts Coverage Analysis data.
7362+
properties:
7363+
attributes:
7364+
$ref: '#/components/schemas/CsmCloudAccountsCoverageAnalysisAttributes'
7365+
id:
7366+
description: The ID of your organization.
7367+
example: 66b3c6b5-5c9a-457e-b1c3-f247ca23afa3
7368+
type: string
7369+
type:
7370+
default: get_cloud_accounts_coverage_analysis_response_public_v0
7371+
description: The type of the resource. The value should always be `get_cloud_accounts_coverage_analysis_response_public_v0`.
7372+
example: get_cloud_accounts_coverage_analysis_response_public_v0
7373+
type: string
7374+
type: object
7375+
CsmCloudAccountsCoverageAnalysisResponse:
7376+
description: CSM Cloud Accounts Coverage Analysis response.
7377+
properties:
7378+
data:
7379+
$ref: '#/components/schemas/CsmCloudAccountsCoverageAnalysisData'
7380+
type: object
7381+
CsmCoverageAnalysis:
7382+
description: CSM Coverage Analysis.
7383+
properties:
7384+
configured_resources_count:
7385+
description: The number of fully configured resources.
7386+
example: 8
7387+
format: int64
7388+
type: integer
7389+
coverage:
7390+
description: The coverage percentage.
7391+
example: 0.8
7392+
format: double
7393+
type: number
7394+
partially_configured_resources_count:
7395+
description: The number of partially configured resources.
7396+
example: 0
7397+
format: int64
7398+
type: integer
7399+
total_resources_count:
7400+
description: The total number of resources.
7401+
example: 10
7402+
format: int64
7403+
type: integer
7404+
type: object
7405+
CsmHostsAndContainersCoverageAnalysisAttributes:
7406+
description: CSM Hosts and Containers Coverage Analysis attributes.
7407+
properties:
7408+
cspm_coverage:
7409+
$ref: '#/components/schemas/CsmCoverageAnalysis'
7410+
cws_coverage:
7411+
$ref: '#/components/schemas/CsmCoverageAnalysis'
7412+
org_id:
7413+
description: The ID of your organization.
7414+
example: 123456
7415+
format: int64
7416+
type: integer
7417+
total_coverage:
7418+
$ref: '#/components/schemas/CsmCoverageAnalysis'
7419+
vm_coverage:
7420+
$ref: '#/components/schemas/CsmCoverageAnalysis'
7421+
type: object
7422+
CsmHostsAndContainersCoverageAnalysisData:
7423+
description: CSM Hosts and Containers Coverage Analysis data.
7424+
properties:
7425+
attributes:
7426+
$ref: '#/components/schemas/CsmHostsAndContainersCoverageAnalysisAttributes'
7427+
id:
7428+
description: The ID of your organization.
7429+
example: 66b3c6b5-5c9a-457e-b1c3-f247ca23afa3
7430+
type: string
7431+
type:
7432+
default: get_hosts_and_containers_coverage_analysis_response_public_v0
7433+
description: The type of the resource. The value should always be `get_hosts_and_containers_coverage_analysis_response_public_v0`.
7434+
example: get_hosts_and_containers_coverage_analysis_response_public_v0
7435+
type: string
7436+
type: object
7437+
CsmHostsAndContainersCoverageAnalysisResponse:
7438+
description: CSM Hosts and Containers Coverage Analysis response.
7439+
properties:
7440+
data:
7441+
$ref: '#/components/schemas/CsmHostsAndContainersCoverageAnalysisData'
7442+
type: object
7443+
CsmServerlessCoverageAnalysisAttributes:
7444+
description: CSM Serverless Resources Coverage Analysis attributes.
7445+
properties:
7446+
cws_coverage:
7447+
$ref: '#/components/schemas/CsmCoverageAnalysis'
7448+
org_id:
7449+
description: The ID of your organization.
7450+
example: 123456
7451+
format: int64
7452+
type: integer
7453+
total_coverage:
7454+
$ref: '#/components/schemas/CsmCoverageAnalysis'
7455+
type: object
7456+
CsmServerlessCoverageAnalysisData:
7457+
description: CSM Serverless Resources Coverage Analysis data.
7458+
properties:
7459+
attributes:
7460+
$ref: '#/components/schemas/CsmServerlessCoverageAnalysisAttributes'
7461+
id:
7462+
description: The ID of your organization.
7463+
example: 66b3c6b5-5c9a-457e-b1c3-f247ca23afa3
7464+
type: string
7465+
type:
7466+
default: get_serverless_coverage_analysis_response_public_v0
7467+
description: The type of the resource. The value should always be `get_serverless_coverage_analysis_response_public_v0`.
7468+
example: get_serverless_coverage_analysis_response_public_v0
7469+
type: string
7470+
type: object
7471+
CsmServerlessCoverageAnalysisResponse:
7472+
description: CSM Serverless Resources Coverage Analysis response.
7473+
properties:
7474+
data:
7475+
$ref: '#/components/schemas/CsmServerlessCoverageAnalysisData'
7476+
type: object
73437477
CustomConnection:
73447478
description: The definition of `CustomConnection` object.
73457479
properties:
@@ -33589,6 +33723,72 @@ paths:
3358933723
summary: Get all CSM Agents
3359033724
tags:
3359133725
- CSM Agents
33726+
/api/v2/csm/onboarding/coverage_analysis/cloud_accounts:
33727+
get:
33728+
description: 'Get the CSM Coverage Analysis of your Cloud Accounts.
33729+
33730+
This is calculated based on the number of your Cloud Accounts that are
33731+
33732+
scanned for security issues.'
33733+
operationId: GetCSMCloudAccountsCoverageAnalysis
33734+
responses:
33735+
'200':
33736+
content:
33737+
application/json:
33738+
schema:
33739+
$ref: '#/components/schemas/CsmCloudAccountsCoverageAnalysisResponse'
33740+
description: OK
33741+
'403':
33742+
$ref: '#/components/responses/NotAuthorizedResponse'
33743+
'429':
33744+
$ref: '#/components/responses/TooManyRequestsResponse'
33745+
summary: Get the CSM Cloud Accounts Coverage Analysis
33746+
tags:
33747+
- CSM Coverage Analysis
33748+
/api/v2/csm/onboarding/coverage_analysis/hosts_and_containers:
33749+
get:
33750+
description: 'Get the CSM Coverage Analysis of your Hosts and Containers.
33751+
33752+
This is calculated based on the number of agents running on your Hosts
33753+
33754+
and Containers with CSM feature(s) enabled.'
33755+
operationId: GetCSMHostsAndContainersCoverageAnalysis
33756+
responses:
33757+
'200':
33758+
content:
33759+
application/json:
33760+
schema:
33761+
$ref: '#/components/schemas/CsmHostsAndContainersCoverageAnalysisResponse'
33762+
description: OK
33763+
'403':
33764+
$ref: '#/components/responses/NotAuthorizedResponse'
33765+
'429':
33766+
$ref: '#/components/responses/TooManyRequestsResponse'
33767+
summary: Get the CSM Hosts and Containers Coverage Analysis
33768+
tags:
33769+
- CSM Coverage Analysis
33770+
/api/v2/csm/onboarding/coverage_analysis/serverless:
33771+
get:
33772+
description: 'Get the CSM Coverage Analysis of your Serverless Resources.
33773+
33774+
This is calculated based on the number of agents running on your Serverless
33775+
33776+
Resources with CSM feature(s) enabled.'
33777+
operationId: GetCSMServerlessCoverageAnalysis
33778+
responses:
33779+
'200':
33780+
content:
33781+
application/json:
33782+
schema:
33783+
$ref: '#/components/schemas/CsmServerlessCoverageAnalysisResponse'
33784+
description: OK
33785+
'403':
33786+
$ref: '#/components/responses/NotAuthorizedResponse'
33787+
'429':
33788+
$ref: '#/components/responses/TooManyRequestsResponse'
33789+
summary: Get the CSM Serverless Coverage Analysis
33790+
tags:
33791+
- CSM Coverage Analysis
3359233792
/api/v2/csm/onboarding/serverless/agents:
3359333793
get:
3359433794
description: Get the list of all CSM Serverless Agents running on your hosts
@@ -47920,6 +48120,15 @@ tags:
4792048120

4792148121
Go to https://docs.datadoghq.com/security/cloud_security_management to learn more'
4792248122
name: CSM Agents
48123+
- description: 'Datadog Cloud Security Management (CSM) delivers real-time threat
48124+
detection
48125+
48126+
and continuous configuration audits across your entire cloud infrastructure,
48127+
48128+
all in a unified view for seamless collaboration and faster remediation.
48129+
48130+
Go to https://docs.datadoghq.com/security/cloud_security_management to learn more.'
48131+
name: CSM Coverage Analysis
4792348132
- description: Cloud Security Management Threats (CSM Threats) monitors file, network,
4792448133
and process activity across your environment to detect real-time threats to your
4792548134
infrastructure. See [Cloud Security Management Threats](https://docs.datadoghq.com/security/threats/)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Get the CSM Cloud Accounts Coverage Analysis returns "OK" response
2+
use datadog_api_client::datadog;
3+
use datadog_api_client::datadogV2::api_csm_coverage_analysis::CSMCoverageAnalysisAPI;
4+
5+
#[tokio::main]
6+
async fn main() {
7+
let configuration = datadog::Configuration::new();
8+
let api = CSMCoverageAnalysisAPI::with_config(configuration);
9+
let resp = api.get_csm_cloud_accounts_coverage_analysis().await;
10+
if let Ok(value) = resp {
11+
println!("{:#?}", value);
12+
} else {
13+
println!("{:#?}", resp.unwrap_err());
14+
}
15+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Get the CSM Hosts and Containers Coverage Analysis returns "OK" response
2+
use datadog_api_client::datadog;
3+
use datadog_api_client::datadogV2::api_csm_coverage_analysis::CSMCoverageAnalysisAPI;
4+
5+
#[tokio::main]
6+
async fn main() {
7+
let configuration = datadog::Configuration::new();
8+
let api = CSMCoverageAnalysisAPI::with_config(configuration);
9+
let resp = api.get_csm_hosts_and_containers_coverage_analysis().await;
10+
if let Ok(value) = resp {
11+
println!("{:#?}", value);
12+
} else {
13+
println!("{:#?}", resp.unwrap_err());
14+
}
15+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Get the CSM Serverless Coverage Analysis returns "OK" response
2+
use datadog_api_client::datadog;
3+
use datadog_api_client::datadogV2::api_csm_coverage_analysis::CSMCoverageAnalysisAPI;
4+
5+
#[tokio::main]
6+
async fn main() {
7+
let configuration = datadog::Configuration::new();
8+
let api = CSMCoverageAnalysisAPI::with_config(configuration);
9+
let resp = api.get_csm_serverless_coverage_analysis().await;
10+
if let Ok(value) = resp {
11+
println!("{:#?}", value);
12+
} else {
13+
println!("{:#?}", resp.unwrap_err());
14+
}
15+
}

0 commit comments

Comments
 (0)