Skip to content

Commit 47b696a

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 7291600 of spec repo
1 parent 192bab1 commit 47b696a

6 files changed

Lines changed: 8 additions & 40 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177876,9 +177876,6 @@ paths:
177876177876
permissions:
177877177877
- security_monitoring_findings_write
177878177878
- appsec_vm_write
177879-
x-unstable: |-
177880-
**Note**: This endpoint is in preview and is subject to change.
177881-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
177882177879
post:
177883177880
description: >-
177884177881
Create Linear issues for security findings.
@@ -177952,9 +177949,6 @@ paths:
177952177949
permissions:
177953177950
- security_monitoring_findings_write
177954177951
- appsec_vm_write
177955-
x-unstable: |-
177956-
**Note**: This endpoint is in preview and is subject to change.
177957-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
177958177952
/api/v2/security/findings/mute:
177959177953
patch:
177960177954
description: >-

examples/v2_security-monitoring_AttachLinearIssue.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ async fn main() {
3131
),
3232
LinearIssuesDataType::LINEAR_ISSUES,
3333
));
34-
let mut configuration = datadog::Configuration::new();
35-
configuration.set_unstable_operation_enabled("v2.AttachLinearIssue", true);
34+
let configuration = datadog::Configuration::new();
3635
let api = SecurityMonitoringAPI::with_config(configuration);
3736
let resp = api.attach_linear_issue(body).await;
3837
if let Ok(value) = resp {

examples/v2_security-monitoring_CreateLinearIssues.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ async fn main() {
3838
CaseManagementProjectDataType::PROJECTS,
3939
)),
4040
))]);
41-
let mut configuration = datadog::Configuration::new();
42-
configuration.set_unstable_operation_enabled("v2.CreateLinearIssues", true);
41+
let configuration = datadog::Configuration::new();
4342
let api = SecurityMonitoringAPI::with_config(configuration);
4443
let resp = api.create_linear_issues(body).await;
4544
if let Ok(value) = resp {

src/datadog/configuration.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,6 @@ impl Default for Configuration {
292292
("v2.list_aws_cloud_auth_persona_mappings".to_owned(), false),
293293
("v2.activate_content_pack".to_owned(), false),
294294
("v2.activate_integration".to_owned(), false),
295-
("v2.attach_linear_issue".to_owned(), false),
296295
(
297296
"v2.batch_get_security_monitoring_dataset_dependencies".to_owned(),
298297
false,
@@ -312,7 +311,6 @@ impl Default for Configuration {
312311
false,
313312
),
314313
("v2.create_io_c_triage_state".to_owned(), false),
315-
("v2.create_linear_issues".to_owned(), false),
316314
(
317315
"v2.create_sample_log_generation_subscription".to_owned(),
318316
false,

src/datadogV2/api/api_security_monitoring.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3595,14 +3595,6 @@ impl SecurityMonitoringAPI {
35953595
> {
35963596
let local_configuration = &self.config;
35973597
let operation_id = "v2.attach_linear_issue";
3598-
if local_configuration.is_unstable_operation_enabled(operation_id) {
3599-
warn!("Using unstable operation {operation_id}");
3600-
} else {
3601-
let local_error = datadog::UnstableOperationDisabledError {
3602-
msg: "Operation 'v2.attach_linear_issue' is not enabled".to_string(),
3603-
};
3604-
return Err(datadog::Error::UnstableOperationDisabledError(local_error));
3605-
}
36063598

36073599
let local_client = &self.client;
36083600

@@ -6738,14 +6730,6 @@ impl SecurityMonitoringAPI {
67386730
> {
67396731
let local_configuration = &self.config;
67406732
let operation_id = "v2.create_linear_issues";
6741-
if local_configuration.is_unstable_operation_enabled(operation_id) {
6742-
warn!("Using unstable operation {operation_id}");
6743-
} else {
6744-
let local_error = datadog::UnstableOperationDisabledError {
6745-
msg: "Operation 'v2.create_linear_issues' is not enabled".to_string(),
6746-
};
6747-
return Err(datadog::Error::UnstableOperationDisabledError(local_error));
6748-
}
67496733

67506734
let local_client = &self.client;
67516735

tests/scenarios/features/v2/security_monitoring.feature

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -140,24 +140,21 @@ Feature: Security Monitoring
140140

141141
@generated @skip @team:DataDog/k9-investigation
142142
Scenario: Attach security findings to a Linear issue returns "Bad Request" response
143-
Given operation "AttachLinearIssue" enabled
144-
And new "AttachLinearIssue" request
143+
Given new "AttachLinearIssue" request
145144
And body with value {"data": {"attributes": {"linear_issue_url": "https://linear.app/your-workspace/issue/ENG-123"}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}, "project": {"data": {"id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001", "type": "projects"}}}, "type": "linear_issues"}}
146145
When the request is sent
147146
Then the response status is 400 Bad Request
148147

149148
@generated @skip @team:DataDog/k9-investigation
150149
Scenario: Attach security findings to a Linear issue returns "Not Found" response
151-
Given operation "AttachLinearIssue" enabled
152-
And new "AttachLinearIssue" request
150+
Given new "AttachLinearIssue" request
153151
And body with value {"data": {"attributes": {"linear_issue_url": "https://linear.app/your-workspace/issue/ENG-123"}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}, "project": {"data": {"id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001", "type": "projects"}}}, "type": "linear_issues"}}
154152
When the request is sent
155153
Then the response status is 404 Not Found
156154

157155
@generated @skip @team:DataDog/k9-investigation
158156
Scenario: Attach security findings to a Linear issue returns "OK" response
159-
Given operation "AttachLinearIssue" enabled
160-
And new "AttachLinearIssue" request
157+
Given new "AttachLinearIssue" request
161158
And body with value {"data": {"attributes": {"linear_issue_url": "https://linear.app/your-workspace/issue/ENG-123"}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}, "project": {"data": {"id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001", "type": "projects"}}}, "type": "linear_issues"}}
162159
When the request is sent
163160
Then the response status is 200 OK
@@ -580,24 +577,21 @@ Feature: Security Monitoring
580577

581578
@generated @skip @team:DataDog/k9-investigation
582579
Scenario: Create Linear issues for security findings returns "Bad Request" response
583-
Given operation "CreateLinearIssues" enabled
584-
And new "CreateLinearIssues" request
580+
Given new "CreateLinearIssues" request
585581
And body with value {"data": [{"attributes": {"assignee_id": "f315bdaf-9ee7-4808-a9c1-99c15bf0f4d0", "description": "A description of the Linear issue.", "label_ids": ["a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d"], "linear_project_id": "d4c3b2a1-6f5e-8b7a-0d9c-2f1e4a3b6c5d", "priority": "NOT_DEFINED", "title": "A title for the Linear issue."}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}, "project": {"data": {"id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001", "type": "projects"}}}, "type": "linear_issues"}]}
586582
When the request is sent
587583
Then the response status is 400 Bad Request
588584

589585
@generated @skip @team:DataDog/k9-investigation
590586
Scenario: Create Linear issues for security findings returns "Created" response
591-
Given operation "CreateLinearIssues" enabled
592-
And new "CreateLinearIssues" request
587+
Given new "CreateLinearIssues" request
593588
And body with value {"data": [{"attributes": {"assignee_id": "f315bdaf-9ee7-4808-a9c1-99c15bf0f4d0", "description": "A description of the Linear issue.", "label_ids": ["a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d"], "linear_project_id": "d4c3b2a1-6f5e-8b7a-0d9c-2f1e4a3b6c5d", "priority": "NOT_DEFINED", "title": "A title for the Linear issue."}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}, "project": {"data": {"id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001", "type": "projects"}}}, "type": "linear_issues"}]}
594589
When the request is sent
595590
Then the response status is 201 Created
596591

597592
@generated @skip @team:DataDog/k9-investigation
598593
Scenario: Create Linear issues for security findings returns "Not Found" response
599-
Given operation "CreateLinearIssues" enabled
600-
And new "CreateLinearIssues" request
594+
Given new "CreateLinearIssues" request
601595
And body with value {"data": [{"attributes": {"assignee_id": "f315bdaf-9ee7-4808-a9c1-99c15bf0f4d0", "description": "A description of the Linear issue.", "label_ids": ["a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d"], "linear_project_id": "d4c3b2a1-6f5e-8b7a-0d9c-2f1e4a3b6c5d", "priority": "NOT_DEFINED", "title": "A title for the Linear issue."}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}, "project": {"data": {"id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001", "type": "projects"}}}, "type": "linear_issues"}]}
602596
When the request is sent
603597
Then the response status is 404 Not Found

0 commit comments

Comments
 (0)