Skip to content

Commit 339f9a0

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 11be32b of spec repo (#3589)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 1a4f7b7 commit 339f9a0

6 files changed

Lines changed: 6 additions & 38 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179988,9 +179988,6 @@ paths:
179988179988
permissions:
179989179989
- security_monitoring_findings_write
179990179990
- appsec_vm_write
179991-
x-unstable: |-
179992-
**Note**: This endpoint is in preview and is subject to change.
179993-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
179994179991
post:
179995179992
description: >-
179996179993
Create Linear issues for security findings.
@@ -180064,9 +180061,6 @@ paths:
180064180061
permissions:
180065180062
- security_monitoring_findings_write
180066180063
- appsec_vm_write
180067-
x-unstable: |-
180068-
**Note**: This endpoint is in preview and is subject to change.
180069-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
180070180064
/api/v2/security/findings/mute:
180071180065
patch:
180072180066
description: >-

examples/v2/security-monitoring/AttachLinearIssue.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# Attach security findings to a Linear issue returns "OK" response
22

33
require "datadog_api_client"
4-
DatadogAPIClient.configure do |config|
5-
config.unstable_operations["v2.attach_linear_issue".to_sym] = true
6-
end
74
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
85

96
body = DatadogAPIClient::V2::AttachLinearIssueRequest.new({

examples/v2/security-monitoring/CreateLinearIssues.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# Create Linear issues for security findings returns "Created" response
22

33
require "datadog_api_client"
4-
DatadogAPIClient.configure do |config|
5-
config.unstable_operations["v2.create_linear_issues".to_sym] = true
6-
end
74
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
85

96
body = DatadogAPIClient::V2::CreateLinearIssueRequestArray.new({

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

lib/datadog_api_client/configuration.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,15 +304,13 @@ def initialize
304304
"v2.list_aws_cloud_auth_persona_mappings": false,
305305
"v2.activate_content_pack": false,
306306
"v2.activate_integration": false,
307-
"v2.attach_linear_issue": false,
308307
"v2.batch_get_security_monitoring_dataset_dependencies": false,
309308
"v2.bulk_create_sample_log_generation_subscriptions": false,
310309
"v2.bulk_export_security_monitoring_terraform_resources": false,
311310
"v2.cancel_historical_job": false,
312311
"v2.convert_job_result_to_signal": false,
313312
"v2.convert_security_monitoring_terraform_resource": false,
314313
"v2.create_io_c_triage_state": false,
315-
"v2.create_linear_issues": false,
316314
"v2.create_sample_log_generation_subscription": false,
317315
"v2.create_security_findings_automation_due_date_rule": false,
318316
"v2.create_security_findings_automation_mute_rule": false,

lib/datadog_api_client/v2/api/security_monitoring_api.rb

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -330,12 +330,6 @@ def attach_linear_issue(body, opts = {})
330330
# @param opts [Hash] the optional parameters
331331
# @return [Array<(FindingCaseResponse, Integer, Hash)>] FindingCaseResponse data, response status code and response headers
332332
def attach_linear_issue_with_http_info(body, opts = {})
333-
unstable_enabled = @api_client.config.unstable_operations["v2.attach_linear_issue".to_sym]
334-
if unstable_enabled
335-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.attach_linear_issue")
336-
else
337-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.attach_linear_issue"))
338-
end
339333

340334
if @api_client.config.debugging
341335
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.attach_linear_issue ...'
@@ -1774,12 +1768,6 @@ def create_linear_issues(body, opts = {})
17741768
# @param opts [Hash] the optional parameters
17751769
# @return [Array<(FindingCaseResponseArray, Integer, Hash)>] FindingCaseResponseArray data, response status code and response headers
17761770
def create_linear_issues_with_http_info(body, opts = {})
1777-
unstable_enabled = @api_client.config.unstable_operations["v2.create_linear_issues".to_sym]
1778-
if unstable_enabled
1779-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_linear_issues")
1780-
else
1781-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_linear_issues"))
1782-
end
17831771

17841772
if @api_client.config.debugging
17851773
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.create_linear_issues ...'

0 commit comments

Comments
 (0)