Skip to content

Commit 9f82168

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 601229dc of spec repo
1 parent 6ffe35d commit 9f82168

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-19 07:26:20.419256",
8-
"spec_repo_commit": "5dd2cbe4"
7+
"regenerated": "2024-12-19 17:42:48.576224",
8+
"spec_repo_commit": "601229dc"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-12-19 07:26:20.435562",
13-
"spec_repo_commit": "5dd2cbe4"
12+
"regenerated": "2024-12-19 17:42:48.591690",
13+
"spec_repo_commit": "601229dc"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+209
Original file line numberDiff line numberDiff line change
@@ -7159,6 +7159,140 @@ components:
71597159
meta:
71607160
$ref: '#/components/schemas/CSMAgentsMetadata'
71617161
type: object
7162+
CsmCloudAccountsCoverageAnalysisAttributes:
7163+
description: CSM Cloud Accounts Coverage Analysis attributes.
7164+
properties:
7165+
aws_coverage:
7166+
$ref: '#/components/schemas/CsmCoverageAnalysis'
7167+
azure_coverage:
7168+
$ref: '#/components/schemas/CsmCoverageAnalysis'
7169+
gcp_coverage:
7170+
$ref: '#/components/schemas/CsmCoverageAnalysis'
7171+
org_id:
7172+
description: The ID of your organization.
7173+
example: 123456
7174+
format: int64
7175+
type: integer
7176+
total_coverage:
7177+
$ref: '#/components/schemas/CsmCoverageAnalysis'
7178+
type: object
7179+
CsmCloudAccountsCoverageAnalysisData:
7180+
description: CSM Cloud Accounts Coverage Analysis data.
7181+
properties:
7182+
attributes:
7183+
$ref: '#/components/schemas/CsmCloudAccountsCoverageAnalysisAttributes'
7184+
id:
7185+
description: The ID of your organization.
7186+
example: 66b3c6b5-5c9a-457e-b1c3-f247ca23afa3
7187+
type: string
7188+
type:
7189+
default: get_cloud_accounts_coverage_analysis_response_public_v0
7190+
description: The type of the resource. The value should always be `get_cloud_accounts_coverage_analysis_response_public_v0`.
7191+
example: get_cloud_accounts_coverage_analysis_response_public_v0
7192+
type: string
7193+
type: object
7194+
CsmCloudAccountsCoverageAnalysisResponse:
7195+
description: CSM Cloud Accounts Coverage Analysis response.
7196+
properties:
7197+
data:
7198+
$ref: '#/components/schemas/CsmCloudAccountsCoverageAnalysisData'
7199+
type: object
7200+
CsmCoverageAnalysis:
7201+
description: CSM Coverage Analysis.
7202+
properties:
7203+
configured_resources_count:
7204+
description: The number of fully configured resources.
7205+
example: 8
7206+
format: int64
7207+
type: integer
7208+
coverage:
7209+
description: The coverage percentage.
7210+
example: 0.8
7211+
format: double
7212+
type: number
7213+
partially_configured_resources_count:
7214+
description: The number of partially configured resources.
7215+
example: 0
7216+
format: int64
7217+
type: integer
7218+
total_resources_count:
7219+
description: The total number of resources.
7220+
example: 10
7221+
format: int64
7222+
type: integer
7223+
type: object
7224+
CsmHostsAndContainersCoverageAnalysisAttributes:
7225+
description: CSM Hosts and Containers Coverage Analysis attributes.
7226+
properties:
7227+
cspm_coverage:
7228+
$ref: '#/components/schemas/CsmCoverageAnalysis'
7229+
cws_coverage:
7230+
$ref: '#/components/schemas/CsmCoverageAnalysis'
7231+
org_id:
7232+
description: The ID of your organization.
7233+
example: 123456
7234+
format: int64
7235+
type: integer
7236+
total_coverage:
7237+
$ref: '#/components/schemas/CsmCoverageAnalysis'
7238+
vm_coverage:
7239+
$ref: '#/components/schemas/CsmCoverageAnalysis'
7240+
type: object
7241+
CsmHostsAndContainersCoverageAnalysisData:
7242+
description: CSM Hosts and Containers Coverage Analysis data.
7243+
properties:
7244+
attributes:
7245+
$ref: '#/components/schemas/CsmHostsAndContainersCoverageAnalysisAttributes'
7246+
id:
7247+
description: The ID of your organization.
7248+
example: 66b3c6b5-5c9a-457e-b1c3-f247ca23afa3
7249+
type: string
7250+
type:
7251+
default: get_hosts_and_containers_coverage_analysis_response_public_v0
7252+
description: The type of the resource. The value should always be `get_hosts_and_containers_coverage_analysis_response_public_v0`.
7253+
example: get_hosts_and_containers_coverage_analysis_response_public_v0
7254+
type: string
7255+
type: object
7256+
CsmHostsAndContainersCoverageAnalysisResponse:
7257+
description: CSM Hosts and Containers Coverage Analysis response.
7258+
properties:
7259+
data:
7260+
$ref: '#/components/schemas/CsmHostsAndContainersCoverageAnalysisData'
7261+
type: object
7262+
CsmServerlessCoverageAnalysisAttributes:
7263+
description: CSM Serverless Resources Coverage Analysis attributes.
7264+
properties:
7265+
cws_coverage:
7266+
$ref: '#/components/schemas/CsmCoverageAnalysis'
7267+
org_id:
7268+
description: The ID of your organization.
7269+
example: 123456
7270+
format: int64
7271+
type: integer
7272+
total_coverage:
7273+
$ref: '#/components/schemas/CsmCoverageAnalysis'
7274+
type: object
7275+
CsmServerlessCoverageAnalysisData:
7276+
description: CSM Serverless Resources Coverage Analysis data.
7277+
properties:
7278+
attributes:
7279+
$ref: '#/components/schemas/CsmServerlessCoverageAnalysisAttributes'
7280+
id:
7281+
description: The ID of your organization.
7282+
example: 66b3c6b5-5c9a-457e-b1c3-f247ca23afa3
7283+
type: string
7284+
type:
7285+
default: get_serverless_coverage_analysis_response_public_v0
7286+
description: The type of the resource. The value should always be `get_serverless_coverage_analysis_response_public_v0`.
7287+
example: get_serverless_coverage_analysis_response_public_v0
7288+
type: string
7289+
type: object
7290+
CsmServerlessCoverageAnalysisResponse:
7291+
description: CSM Serverless Resources Coverage Analysis response.
7292+
properties:
7293+
data:
7294+
$ref: '#/components/schemas/CsmServerlessCoverageAnalysisData'
7295+
type: object
71627296
CustomConnection:
71637297
description: The definition of `CustomConnection` object.
71647298
properties:
@@ -32844,6 +32978,72 @@ paths:
3284432978
summary: Get all CSM Agents
3284532979
tags:
3284632980
- CSM Agents
32981+
/api/v2/csm/onboarding/coverage_analysis/cloud_accounts:
32982+
get:
32983+
description: 'Get the CSM Coverage Analysis of your Cloud Accounts.
32984+
32985+
This is calculated based on the number of your Cloud Accounts that are
32986+
32987+
scanned for security issues.'
32988+
operationId: GetCSMCloudAccountsCoverageAnalysis
32989+
responses:
32990+
'200':
32991+
content:
32992+
application/json:
32993+
schema:
32994+
$ref: '#/components/schemas/CsmCloudAccountsCoverageAnalysisResponse'
32995+
description: OK
32996+
'403':
32997+
$ref: '#/components/responses/NotAuthorizedResponse'
32998+
'429':
32999+
$ref: '#/components/responses/TooManyRequestsResponse'
33000+
summary: Get the CSM Cloud Accounts Coverage Analysis
33001+
tags:
33002+
- CSM Coverage Analysis
33003+
/api/v2/csm/onboarding/coverage_analysis/hosts_and_containers:
33004+
get:
33005+
description: 'Get the CSM Coverage Analysis of your Hosts and Containers.
33006+
33007+
This is calculated based on the number of agents running on your Hosts
33008+
33009+
and Containers with CSM feature(s) enabled.'
33010+
operationId: GetCSMHostsAndContainersCoverageAnalysis
33011+
responses:
33012+
'200':
33013+
content:
33014+
application/json:
33015+
schema:
33016+
$ref: '#/components/schemas/CsmHostsAndContainersCoverageAnalysisResponse'
33017+
description: OK
33018+
'403':
33019+
$ref: '#/components/responses/NotAuthorizedResponse'
33020+
'429':
33021+
$ref: '#/components/responses/TooManyRequestsResponse'
33022+
summary: Get the CSM Hosts and Containers Coverage Analysis
33023+
tags:
33024+
- CSM Coverage Analysis
33025+
/api/v2/csm/onboarding/coverage_analysis/serverless:
33026+
get:
33027+
description: 'Get the CSM Coverage Analysis of your Serverless Resources.
33028+
33029+
This is calculated based on the number of agents running on your Serverless
33030+
33031+
Resources with CSM feature(s) enabled.'
33032+
operationId: GetCSMServerlessCoverageAnalysis
33033+
responses:
33034+
'200':
33035+
content:
33036+
application/json:
33037+
schema:
33038+
$ref: '#/components/schemas/CsmServerlessCoverageAnalysisResponse'
33039+
description: OK
33040+
'403':
33041+
$ref: '#/components/responses/NotAuthorizedResponse'
33042+
'429':
33043+
$ref: '#/components/responses/TooManyRequestsResponse'
33044+
summary: Get the CSM Serverless Coverage Analysis
33045+
tags:
33046+
- CSM Coverage Analysis
3284733047
/api/v2/csm/onboarding/serverless/agents:
3284833048
get:
3284933049
description: Get the list of all CSM Serverless Agents running on your hosts
@@ -46613,6 +46813,15 @@ tags:
4661346813

4661446814
Go to https://docs.datadoghq.com/security/cloud_security_management to learn more'
4661546815
name: CSM Agents
46816+
- description: 'Datadog Cloud Security Management (CSM) delivers real-time threat
46817+
detection
46818+
46819+
and continuous configuration audits across your entire cloud infrastructure,
46820+
46821+
all in a unified view for seamless collaboration and faster remediation.
46822+
46823+
Go to https://docs.datadoghq.com/security/cloud_security_management to learn more.'
46824+
name: CSM Coverage Analysis
4661646825
- description: Cloud Security Management Threats (CSM Threats) monitors file, network,
4661746826
and process activity across your environment to detect real-time threats to your
4661846827
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)