diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 53a4ea6a1a..d92bb93db9 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -179962,9 +179962,6 @@ paths: permissions: - security_monitoring_findings_write - appsec_vm_write - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). post: description: >- Create Linear issues for security findings. @@ -180038,9 +180035,6 @@ paths: permissions: - security_monitoring_findings_write - appsec_vm_write - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/security/findings/mute: patch: description: >- diff --git a/examples/v2/security-monitoring/AttachLinearIssue.py b/examples/v2/security-monitoring/AttachLinearIssue.py index 68d5123d00..ac184a60ad 100644 --- a/examples/v2/security-monitoring/AttachLinearIssue.py +++ b/examples/v2/security-monitoring/AttachLinearIssue.py @@ -46,7 +46,6 @@ ) configuration = Configuration() -configuration.unstable_operations["attach_linear_issue"] = True with ApiClient(configuration) as api_client: api_instance = SecurityMonitoringApi(api_client) response = api_instance.attach_linear_issue(body=body) diff --git a/examples/v2/security-monitoring/CreateLinearIssues.py b/examples/v2/security-monitoring/CreateLinearIssues.py index fef00d5124..b4544debfd 100644 --- a/examples/v2/security-monitoring/CreateLinearIssues.py +++ b/examples/v2/security-monitoring/CreateLinearIssues.py @@ -56,7 +56,6 @@ ) configuration = Configuration() -configuration.unstable_operations["create_linear_issues"] = True with ApiClient(configuration) as api_client: api_instance = SecurityMonitoringApi(api_client) response = api_instance.create_linear_issues(body=body) diff --git a/src/datadog_api_client/configuration.py b/src/datadog_api_client/configuration.py index b6c6b761f1..fbb2249e6b 100644 --- a/src/datadog_api_client/configuration.py +++ b/src/datadog_api_client/configuration.py @@ -362,7 +362,6 @@ def __init__( "v2.list_aws_cloud_auth_persona_mappings": False, "v2.activate_content_pack": False, "v2.activate_integration": False, - "v2.attach_linear_issue": False, "v2.batch_get_security_monitoring_dataset_dependencies": False, "v2.bulk_create_sample_log_generation_subscriptions": False, "v2.bulk_export_security_monitoring_terraform_resources": False, @@ -370,7 +369,6 @@ def __init__( "v2.convert_job_result_to_signal": False, "v2.convert_security_monitoring_terraform_resource": False, "v2.create_io_c_triage_state": False, - "v2.create_linear_issues": False, "v2.create_sample_log_generation_subscription": False, "v2.create_security_findings_automation_due_date_rule": False, "v2.create_security_findings_automation_mute_rule": False, diff --git a/tests/v2/features/security_monitoring.feature b/tests/v2/features/security_monitoring.feature index c713293f46..10c4c66afa 100644 --- a/tests/v2/features/security_monitoring.feature +++ b/tests/v2/features/security_monitoring.feature @@ -140,24 +140,21 @@ Feature: Security Monitoring @generated @skip @team:DataDog/k9-investigation Scenario: Attach security findings to a Linear issue returns "Bad Request" response - Given operation "AttachLinearIssue" enabled - And new "AttachLinearIssue" request + Given new "AttachLinearIssue" request 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"}} When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/k9-investigation Scenario: Attach security findings to a Linear issue returns "Not Found" response - Given operation "AttachLinearIssue" enabled - And new "AttachLinearIssue" request + Given new "AttachLinearIssue" request 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"}} When the request is sent Then the response status is 404 Not Found @generated @skip @team:DataDog/k9-investigation Scenario: Attach security findings to a Linear issue returns "OK" response - Given operation "AttachLinearIssue" enabled - And new "AttachLinearIssue" request + Given new "AttachLinearIssue" request 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"}} When the request is sent Then the response status is 200 OK @@ -580,24 +577,21 @@ Feature: Security Monitoring @generated @skip @team:DataDog/k9-investigation Scenario: Create Linear issues for security findings returns "Bad Request" response - Given operation "CreateLinearIssues" enabled - And new "CreateLinearIssues" request + Given new "CreateLinearIssues" request 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"}]} When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/k9-investigation Scenario: Create Linear issues for security findings returns "Created" response - Given operation "CreateLinearIssues" enabled - And new "CreateLinearIssues" request + Given new "CreateLinearIssues" request 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"}]} When the request is sent Then the response status is 201 Created @generated @skip @team:DataDog/k9-investigation Scenario: Create Linear issues for security findings returns "Not Found" response - Given operation "CreateLinearIssues" enabled - And new "CreateLinearIssues" request + Given new "CreateLinearIssues" request 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"}]} When the request is sent Then the response status is 404 Not Found