-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regenerate client from commit 061160d5 of spec repo
- Loading branch information
ci.datadog-api-spec
committed
Dec 19, 2024
1 parent
e17558a
commit f2b2937
Showing
21 changed files
with
1,413 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
examples/v2/csm-coverage-analysis/GetCSMCloudAccountsCoverageAnalysis.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** | ||
* Get the CSM Cloud Accounts Coverage Analysis returns "OK" response | ||
*/ | ||
|
||
import { client, v2 } from "@datadog/datadog-api-client"; | ||
|
||
const configuration = client.createConfiguration(); | ||
const apiInstance = new v2.CSMCoverageAnalysisApi(configuration); | ||
|
||
apiInstance | ||
.getCSMCloudAccountsCoverageAnalysis() | ||
.then((data: v2.CsmCloudAccountsCoverageAnalysisResponse) => { | ||
console.log( | ||
"API called successfully. Returned data: " + JSON.stringify(data) | ||
); | ||
}) | ||
.catch((error: any) => console.error(error)); |
17 changes: 17 additions & 0 deletions
17
examples/v2/csm-coverage-analysis/GetCSMHostsAndContainersCoverageAnalysis.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** | ||
* Get the CSM Hosts and Containers Coverage Analysis returns "OK" response | ||
*/ | ||
|
||
import { client, v2 } from "@datadog/datadog-api-client"; | ||
|
||
const configuration = client.createConfiguration(); | ||
const apiInstance = new v2.CSMCoverageAnalysisApi(configuration); | ||
|
||
apiInstance | ||
.getCSMHostsAndContainersCoverageAnalysis() | ||
.then((data: v2.CsmHostsAndContainersCoverageAnalysisResponse) => { | ||
console.log( | ||
"API called successfully. Returned data: " + JSON.stringify(data) | ||
); | ||
}) | ||
.catch((error: any) => console.error(error)); |
17 changes: 17 additions & 0 deletions
17
examples/v2/csm-coverage-analysis/GetCSMServerlessCoverageAnalysis.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** | ||
* Get the CSM Serverless Coverage Analysis returns "OK" response | ||
*/ | ||
|
||
import { client, v2 } from "@datadog/datadog-api-client"; | ||
|
||
const configuration = client.createConfiguration(); | ||
const apiInstance = new v2.CSMCoverageAnalysisApi(configuration); | ||
|
||
apiInstance | ||
.getCSMServerlessCoverageAnalysis() | ||
.then((data: v2.CsmServerlessCoverageAnalysisResponse) => { | ||
console.log( | ||
"API called successfully. Returned data: " + JSON.stringify(data) | ||
); | ||
}) | ||
.catch((error: any) => console.error(error)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
@endpoint(csm-coverage-analysis) @endpoint(csm-coverage-analysis-v2) | ||
Feature: CSM Coverage Analysis | ||
Datadog Cloud Security Management (CSM) delivers real-time threat | ||
detection and continuous configuration audits across your entire cloud | ||
infrastructure, all in a unified view for seamless collaboration and | ||
faster remediation. Go to | ||
https://docs.datadoghq.com/security/cloud_security_management to learn | ||
more. | ||
|
||
Background: | ||
Given a valid "apiKeyAuth" key in the system | ||
And a valid "appKeyAuth" key in the system | ||
And an instance of "CSMCoverageAnalysis" API | ||
|
||
@team:DataDog/k9-cloud-security-platform | ||
Scenario: Get the CSM Cloud Accounts Coverage Analysis returns "OK" response | ||
Given new "GetCSMCloudAccountsCoverageAnalysis" request | ||
When the request is sent | ||
Then the response status is 200 OK | ||
|
||
@team:DataDog/k9-cloud-security-platform | ||
Scenario: Get the CSM Hosts and Containers Coverage Analysis returns "OK" response | ||
Given new "GetCSMHostsAndContainersCoverageAnalysis" request | ||
When the request is sent | ||
Then the response status is 200 OK | ||
|
||
@team:DataDog/k9-cloud-security-platform | ||
Scenario: Get the CSM Serverless Coverage Analysis returns "OK" response | ||
Given new "GetCSMServerlessCoverageAnalysis" request | ||
When the request is sent | ||
Then the response status is 200 OK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.