Skip to content

Commit a51a1d1

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit bc53c28f of spec repo
1 parent a416a5e commit a51a1d1

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": "2025-01-02 14:39:39.408081",
8-
"spec_repo_commit": "b4e964b3"
7+
"regenerated": "2025-01-02 15:18:13.286523",
8+
"spec_repo_commit": "bc53c28f"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-01-02 14:39:39.423099",
13-
"spec_repo_commit": "b4e964b3"
12+
"regenerated": "2025-01-02 15:18:13.301242",
13+
"spec_repo_commit": "bc53c28f"
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:
@@ -33610,6 +33744,72 @@ paths:
3361033744
summary: Get all CSM Agents
3361133745
tags:
3361233746
- CSM Agents
33747+
/api/v2/csm/onboarding/coverage_analysis/cloud_accounts:
33748+
get:
33749+
description: 'Get the CSM Coverage Analysis of your Cloud Accounts.
33750+
33751+
This is calculated based on the number of your Cloud Accounts that are
33752+
33753+
scanned for security issues.'
33754+
operationId: GetCSMCloudAccountsCoverageAnalysis
33755+
responses:
33756+
'200':
33757+
content:
33758+
application/json:
33759+
schema:
33760+
$ref: '#/components/schemas/CsmCloudAccountsCoverageAnalysisResponse'
33761+
description: OK
33762+
'403':
33763+
$ref: '#/components/responses/NotAuthorizedResponse'
33764+
'429':
33765+
$ref: '#/components/responses/TooManyRequestsResponse'
33766+
summary: Get the CSM Cloud Accounts Coverage Analysis
33767+
tags:
33768+
- CSM Coverage Analysis
33769+
/api/v2/csm/onboarding/coverage_analysis/hosts_and_containers:
33770+
get:
33771+
description: 'Get the CSM Coverage Analysis of your Hosts and Containers.
33772+
33773+
This is calculated based on the number of agents running on your Hosts
33774+
33775+
and Containers with CSM feature(s) enabled.'
33776+
operationId: GetCSMHostsAndContainersCoverageAnalysis
33777+
responses:
33778+
'200':
33779+
content:
33780+
application/json:
33781+
schema:
33782+
$ref: '#/components/schemas/CsmHostsAndContainersCoverageAnalysisResponse'
33783+
description: OK
33784+
'403':
33785+
$ref: '#/components/responses/NotAuthorizedResponse'
33786+
'429':
33787+
$ref: '#/components/responses/TooManyRequestsResponse'
33788+
summary: Get the CSM Hosts and Containers Coverage Analysis
33789+
tags:
33790+
- CSM Coverage Analysis
33791+
/api/v2/csm/onboarding/coverage_analysis/serverless:
33792+
get:
33793+
description: 'Get the CSM Coverage Analysis of your Serverless Resources.
33794+
33795+
This is calculated based on the number of agents running on your Serverless
33796+
33797+
Resources with CSM feature(s) enabled.'
33798+
operationId: GetCSMServerlessCoverageAnalysis
33799+
responses:
33800+
'200':
33801+
content:
33802+
application/json:
33803+
schema:
33804+
$ref: '#/components/schemas/CsmServerlessCoverageAnalysisResponse'
33805+
description: OK
33806+
'403':
33807+
$ref: '#/components/responses/NotAuthorizedResponse'
33808+
'429':
33809+
$ref: '#/components/responses/TooManyRequestsResponse'
33810+
summary: Get the CSM Serverless Coverage Analysis
33811+
tags:
33812+
- CSM Coverage Analysis
3361333813
/api/v2/csm/onboarding/serverless/agents:
3361433814
get:
3361533815
description: Get the list of all CSM Serverless Agents running on your hosts
@@ -47941,6 +48141,15 @@ tags:
4794148141

4794248142
Go to https://docs.datadoghq.com/security/cloud_security_management to learn more'
4794348143
name: CSM Agents
48144+
- description: 'Datadog Cloud Security Management (CSM) delivers real-time threat
48145+
detection
48146+
48147+
and continuous configuration audits across your entire cloud infrastructure,
48148+
48149+
all in a unified view for seamless collaboration and faster remediation.
48150+
48151+
Go to https://docs.datadoghq.com/security/cloud_security_management to learn more.'
48152+
name: CSM Coverage Analysis
4794448153
- description: Cloud Security Management Threats (CSM Threats) monitors file, network,
4794548154
and process activity across your environment to detect real-time threats to your
4794648155
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)