Skip to content

Commit 8d6da1a

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 4c33d00e of spec repo
1 parent 1d5288a commit 8d6da1a

18 files changed

+2691
-4
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
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-17 15:51:05.988918",
8-
"spec_repo_commit": "b82d3677"
7+
"regenerated": "2024-12-18 15:33:10.599271",
8+
"spec_repo_commit": "4c33d00e"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-12-17 15:51:06.004049",
13-
"spec_repo_commit": "b82d3677"
12+
"regenerated": "2024-12-18 15:33:10.615547",
13+
"spec_repo_commit": "4c33d00e"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 209 additions & 0 deletions
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 Organization ID.
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 Organization ID.
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 Organization ID.
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:
@@ -32790,6 +32924,72 @@ paths:
3279032924
summary: Get all CSM Agents
3279132925
tags:
3279232926
- CSM Agents
32927+
/api/v2/csm/onboarding/coverage_analysis/cloud_accounts:
32928+
get:
32929+
description: 'Get the CSM Coverage Analysis of your Cloud Accounts.
32930+
32931+
This is calculated based on the number of your Cloud Accounts that are
32932+
32933+
scanned for security issues.'
32934+
operationId: GetCSMCloudAccountsCoverageAnalysis
32935+
responses:
32936+
'200':
32937+
content:
32938+
application/json:
32939+
schema:
32940+
$ref: '#/components/schemas/CsmCloudAccountsCoverageAnalysisResponse'
32941+
description: OK
32942+
'403':
32943+
$ref: '#/components/responses/NotAuthorizedResponse'
32944+
'429':
32945+
$ref: '#/components/responses/TooManyRequestsResponse'
32946+
summary: Get the CSM Cloud Accounts Coverage Analysis
32947+
tags:
32948+
- CSM Coverage Analysis
32949+
/api/v2/csm/onboarding/coverage_analysis/hosts_and_containers:
32950+
get:
32951+
description: 'Get the CSM Coverage Analysis of your Hosts and Containers.
32952+
32953+
This is calculated based on the number of agents running on your Hosts
32954+
32955+
and Containers with CSM feature(s) enabled.'
32956+
operationId: GetCSMHostsAndContainersCoverageAnalysis
32957+
responses:
32958+
'200':
32959+
content:
32960+
application/json:
32961+
schema:
32962+
$ref: '#/components/schemas/CsmHostsAndContainersCoverageAnalysisResponse'
32963+
description: OK
32964+
'403':
32965+
$ref: '#/components/responses/NotAuthorizedResponse'
32966+
'429':
32967+
$ref: '#/components/responses/TooManyRequestsResponse'
32968+
summary: Get the CSM Hosts and Containers Coverage Analysis
32969+
tags:
32970+
- CSM Coverage Analysis
32971+
/api/v2/csm/onboarding/coverage_analysis/serverless:
32972+
get:
32973+
description: 'Get the CSM Coverage Analysis of your Serverless Resources.
32974+
32975+
This is calculated based on the number of agents running on your Serverless
32976+
32977+
Resources with CSM feature(s) enabled.'
32978+
operationId: GetCSMServerlessCoverageAnalysis
32979+
responses:
32980+
'200':
32981+
content:
32982+
application/json:
32983+
schema:
32984+
$ref: '#/components/schemas/CsmServerlessCoverageAnalysisResponse'
32985+
description: OK
32986+
'403':
32987+
$ref: '#/components/responses/NotAuthorizedResponse'
32988+
'429':
32989+
$ref: '#/components/responses/TooManyRequestsResponse'
32990+
summary: Get the CSM Serverless Coverage Analysis
32991+
tags:
32992+
- CSM Coverage Analysis
3279332993
/api/v2/csm/onboarding/serverless/agents:
3279432994
get:
3279532995
description: Get the list of all CSM Serverless Agents running on your hosts
@@ -46559,6 +46759,15 @@ tags:
4655946759

4656046760
Go to https://docs.datadoghq.com/security/cloud_security_management to learn more'
4656146761
name: CSM Agents
46762+
- description: 'Datadog Cloud Security Management (CSM) delivers real-time threat
46763+
detection
46764+
46765+
and continuous configuration audits across your entire cloud infrastructure,
46766+
46767+
all in a unified view for seamless collaboration and faster remediation.
46768+
46769+
Go to https://docs.datadoghq.com/security/cloud_security_management to learn more'
46770+
name: CSM Coverage Analysis
4656246771
- description: Cloud Security Management Threats (CSM Threats) monitors file, network,
4656346772
and process activity across your environment to detect real-time threats to your
4656446773
infrastructure. See [Cloud Security Management Threats](https://docs.datadoghq.com/security/threats/)
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// Get the CSM Cloud Accounts Coverage Analysis returns "OK" response
2+
3+
import com.datadog.api.client.ApiClient;
4+
import com.datadog.api.client.ApiException;
5+
import com.datadog.api.client.v2.api.CsmCoverageAnalysisApi;
6+
import com.datadog.api.client.v2.model.CsmCloudAccountsCoverageAnalysisResponse;
7+
8+
public class Example {
9+
public static void main(String[] args) {
10+
ApiClient defaultClient = ApiClient.getDefaultApiClient();
11+
CsmCoverageAnalysisApi apiInstance = new CsmCoverageAnalysisApi(defaultClient);
12+
13+
try {
14+
CsmCloudAccountsCoverageAnalysisResponse result =
15+
apiInstance.getCSMCloudAccountsCoverageAnalysis();
16+
System.out.println(result);
17+
} catch (ApiException e) {
18+
System.err.println(
19+
"Exception when calling CsmCoverageAnalysisApi#getCSMCloudAccountsCoverageAnalysis");
20+
System.err.println("Status code: " + e.getCode());
21+
System.err.println("Reason: " + e.getResponseBody());
22+
System.err.println("Response headers: " + e.getResponseHeaders());
23+
e.printStackTrace();
24+
}
25+
}
26+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// Get the CSM Hosts and Containers Coverage Analysis returns "OK" response
2+
3+
import com.datadog.api.client.ApiClient;
4+
import com.datadog.api.client.ApiException;
5+
import com.datadog.api.client.v2.api.CsmCoverageAnalysisApi;
6+
import com.datadog.api.client.v2.model.CsmHostsAndContainersCoverageAnalysisResponse;
7+
8+
public class Example {
9+
public static void main(String[] args) {
10+
ApiClient defaultClient = ApiClient.getDefaultApiClient();
11+
CsmCoverageAnalysisApi apiInstance = new CsmCoverageAnalysisApi(defaultClient);
12+
13+
try {
14+
CsmHostsAndContainersCoverageAnalysisResponse result =
15+
apiInstance.getCSMHostsAndContainersCoverageAnalysis();
16+
System.out.println(result);
17+
} catch (ApiException e) {
18+
System.err.println(
19+
"Exception when calling CsmCoverageAnalysisApi#getCSMHostsAndContainersCoverageAnalysis");
20+
System.err.println("Status code: " + e.getCode());
21+
System.err.println("Reason: " + e.getResponseBody());
22+
System.err.println("Response headers: " + e.getResponseHeaders());
23+
e.printStackTrace();
24+
}
25+
}
26+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Get the CSM Serverless Coverage Analysis returns "OK" response
2+
3+
import com.datadog.api.client.ApiClient;
4+
import com.datadog.api.client.ApiException;
5+
import com.datadog.api.client.v2.api.CsmCoverageAnalysisApi;
6+
import com.datadog.api.client.v2.model.CsmServerlessCoverageAnalysisResponse;
7+
8+
public class Example {
9+
public static void main(String[] args) {
10+
ApiClient defaultClient = ApiClient.getDefaultApiClient();
11+
CsmCoverageAnalysisApi apiInstance = new CsmCoverageAnalysisApi(defaultClient);
12+
13+
try {
14+
CsmServerlessCoverageAnalysisResponse result = apiInstance.getCSMServerlessCoverageAnalysis();
15+
System.out.println(result);
16+
} catch (ApiException e) {
17+
System.err.println(
18+
"Exception when calling CsmCoverageAnalysisApi#getCSMServerlessCoverageAnalysis");
19+
System.err.println("Status code: " + e.getCode());
20+
System.err.println("Reason: " + e.getResponseBody());
21+
System.err.println("Response headers: " + e.getResponseHeaders());
22+
e.printStackTrace();
23+
}
24+
}
25+
}

0 commit comments

Comments
 (0)