Skip to content

Commit 6f313d2

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit f38eab6 of spec repo
1 parent 8b6e2d5 commit 6f313d2

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79838,6 +79838,9 @@ paths:
7983879838
permissions:
7983979839
- security_monitoring_findings_write
7984079840
- appsec_vm_write
79841+
x-unstable: '**Note**: This endpoint is in beta and is subject to change.
79842+
79843+
Please check the documentation regularly for updates.'
7984179844
post:
7984279845
description: Create Jira issues for security findings. This operation creates
7984379846
a case in Datadog and a Jira issue linked to that case for bidirectional sync
@@ -79878,6 +79881,9 @@ paths:
7987879881
permissions:
7987979882
- security_monitoring_findings_write
7988079883
- appsec_vm_write
79884+
x-unstable: '**Note**: This endpoint is in beta and is subject to change.
79885+
79886+
Please check the documentation regularly for updates.'
7988179887
/api/v2/security/sboms:
7988279888
get:
7988379889
description: 'Get a list of assets SBOMs for an organization.

src/datadog/configuration.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,10 @@ impl Default for Configuration {
141141
("v2.get_open_api".to_owned(), false),
142142
("v2.list_apis".to_owned(), false),
143143
("v2.update_open_api".to_owned(), false),
144+
("v2.attach_jira_issue".to_owned(), false),
144145
("v2.cancel_threat_hunting_job".to_owned(), false),
145146
("v2.convert_job_result_to_signal".to_owned(), false),
147+
("v2.create_jira_issues".to_owned(), false),
146148
("v2.delete_threat_hunting_job".to_owned(), false),
147149
("v2.get_finding".to_owned(), false),
148150
("v2.get_rule_version_history".to_owned(), false),

src/datadogV2/api/api_security_monitoring.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1870,6 +1870,14 @@ impl SecurityMonitoringAPI {
18701870
> {
18711871
let local_configuration = &self.config;
18721872
let operation_id = "v2.attach_jira_issue";
1873+
if local_configuration.is_unstable_operation_enabled(operation_id) {
1874+
warn!("Using unstable operation {operation_id}");
1875+
} else {
1876+
let local_error = datadog::UnstableOperationDisabledError {
1877+
msg: "Operation 'v2.attach_jira_issue' is not enabled".to_string(),
1878+
};
1879+
return Err(datadog::Error::UnstableOperationDisabledError(local_error));
1880+
}
18731881

18741882
let local_client = &self.client;
18751883

@@ -2861,6 +2869,14 @@ impl SecurityMonitoringAPI {
28612869
> {
28622870
let local_configuration = &self.config;
28632871
let operation_id = "v2.create_jira_issues";
2872+
if local_configuration.is_unstable_operation_enabled(operation_id) {
2873+
warn!("Using unstable operation {operation_id}");
2874+
} else {
2875+
let local_error = datadog::UnstableOperationDisabledError {
2876+
msg: "Operation 'v2.create_jira_issues' is not enabled".to_string(),
2877+
};
2878+
return Err(datadog::Error::UnstableOperationDisabledError(local_error));
2879+
}
28642880

28652881
let local_client = &self.client;
28662882

0 commit comments

Comments
 (0)