diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index bed8d5118405..590f5d3c1ff3 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -121702,9 +121702,6 @@ paths: summary: Aggregate cases tags: - Case Management - 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/cases/bulk: post: description: Applies a single action (such as changing priority, status, assignment, or archiving) to multiple cases at once. The list of case IDs and the action type with its payload are specified in the request body. @@ -121749,9 +121746,6 @@ paths: summary: Bulk update cases tags: - Case Management - 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/cases/count: get: description: Returns case counts, optionally grouped by one or more fields (for example, status, priority). Supports a query filter to narrow the scope. @@ -121814,9 +121808,6 @@ paths: summary: Count cases tags: - Case Management - 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/cases/link: get: description: Returns all links associated with a case. Links define relationships (for example, BLOCKS) between cases. Requires entity_type and entity_id query parameters. @@ -121880,9 +121871,6 @@ paths: summary: List case links tags: - Case Management - 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: Creates a directional link between two cases (for example, case A blocks case B). The parent and child cases and their relationship type must be specified. operationId: CreateCaseLink @@ -121941,9 +121929,6 @@ paths: summary: Create a case link tags: - Case Management - 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/cases/link/{link_id}: delete: description: Deletes an existing link between cases by link ID. @@ -121971,9 +121956,6 @@ paths: summary: Delete a case link tags: - Case Management - 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/cases/projects: get: description: >- @@ -122100,9 +122082,6 @@ paths: summary: List project favorites tags: - Case Management - 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/cases/projects/{project_id}: delete: description: Remove a project using the project's `id`. @@ -122249,9 +122228,6 @@ paths: summary: Unfavorite a project tags: - Case Management - 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: Marks a case project as a favorite for the current authenticated user. operationId: FavoriteCaseProject @@ -122278,9 +122254,6 @@ paths: summary: Favorite a project tags: - Case Management - 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/cases/projects/{project_id}/notification_rules: get: description: >- @@ -122542,9 +122515,6 @@ paths: summary: List automation rules tags: - Case Management - 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: Creates an automation rule for a project. The rule defines a trigger event (for example, case created, status transitioned) and an action to execute. operationId: CreateCaseAutomationRule @@ -122618,9 +122588,6 @@ paths: summary: Create an automation rule tags: - Case Management - 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/cases/projects/{project_id}/rules/{rule_id}: delete: description: Permanently deletes an automation rule from a project. @@ -122651,9 +122618,6 @@ paths: summary: Delete an automation rule tags: - Case Management - 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/). get: description: Returns a single automation rule identified by its UUID, including its trigger, action, and current state (enabled/disabled). operationId: GetCaseAutomationRule @@ -122707,9 +122671,6 @@ paths: summary: Get an automation rule tags: - Case Management - 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/). put: description: Updates the trigger, action, name, or state of an existing automation rule. operationId: UpdateCaseAutomationRule @@ -122784,9 +122745,6 @@ paths: summary: Update an automation rule tags: - Case Management - 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/cases/projects/{project_id}/rules/{rule_id}/disable: post: description: Disables an automation rule so it no longer triggers on case events. The rule configuration is preserved. @@ -122841,9 +122799,6 @@ paths: summary: Disable an automation rule tags: - Case Management - 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/cases/projects/{project_id}/rules/{rule_id}/enable: post: description: Enables a previously disabled automation rule so it triggers on matching case events. @@ -122898,9 +122853,6 @@ paths: summary: Enable an automation rule tags: - Case Management - 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/cases/types: get: description: Get all case types @@ -123085,9 +123037,6 @@ paths: summary: Update a case type tags: - Case Management Type - 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/cases/types/{case_type_id}/custom_attributes: get: description: Get all custom attribute config of case type @@ -123261,9 +123210,6 @@ paths: summary: Update custom attribute config tags: - Case Management Attribute - 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/cases/views: get: description: Returns all saved case views for a given project. Views are saved search queries that allow quick access to filtered lists of cases. @@ -123311,9 +123257,6 @@ paths: summary: List case views tags: - Case Management - 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: Creates a new saved case view with a name, filter query, and associated project. Optionally, a notification rule can be linked to the view. operationId: CreateCaseView @@ -123368,9 +123311,6 @@ paths: summary: Create a case view tags: - Case Management - 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/cases/views/{view_id}: delete: description: Permanently deletes a saved case view. @@ -123398,9 +123338,6 @@ paths: summary: Delete a case view tags: - Case Management - 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/). get: description: Returns a single saved case view identified by its UUID, including its query, associated project, and timestamps. operationId: GetCaseView @@ -123441,9 +123378,6 @@ paths: summary: Get a case view tags: - Case Management - 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/). put: description: Updates the name, query, or notification rule of an existing case view. operationId: UpdateCaseView @@ -123498,9 +123432,6 @@ paths: summary: Update a case view tags: - Case Management - 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/cases/{case_id}: get: description: >- @@ -123860,9 +123791,6 @@ paths: summary: Update case comment tags: - Case Management - 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/cases/{case_id}/custom_attributes/{custom_attribute_key}: delete: description: Delete custom attribute from case @@ -124102,9 +124030,6 @@ paths: summary: Update case due date tags: - Case Management - 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/cases/{case_id}/insights: delete: description: Removes one or more previously added insights from a case by specifying their type and resource identifier in the request body. @@ -124187,9 +124112,6 @@ paths: summary: Remove insights from a case tags: - Case Management - 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/). put: description: >- Adds one or more insights to a case. Insights are references to related Datadog resources (such as monitors, security signals, incidents, or error tracking issues) that provide investigative context. Up to 100 insights can be added per request. Each insight requires a type (see `CaseInsightType` for allowed values), a ref (URL path to the resource), and a resource_id. @@ -124272,9 +124194,6 @@ paths: summary: Add insights to a case tags: - Case Management - 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/cases/{case_id}/priority: post: description: Update case priority @@ -124409,9 +124328,6 @@ paths: summary: Link incident to case tags: - Case Management - 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/cases/{case_id}/relationships/jira_issues: delete: description: Remove the link between a Jira issue and a case @@ -124455,9 +124371,6 @@ paths: summary: Remove Jira issue link from case tags: - Case Management - 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/). patch: description: Link an existing Jira issue to a case operationId: LinkJiraIssueToCase @@ -124520,9 +124433,6 @@ paths: summary: Link existing Jira issue to case tags: - Case Management - 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 a new Jira issue and link it to a case operationId: CreateCaseJiraIssue @@ -124582,9 +124492,6 @@ paths: summary: Create Jira issue for case tags: - Case Management - 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/cases/{case_id}/relationships/notebook: post: description: Create a new investigation notebook and link it to a case @@ -124640,9 +124547,6 @@ paths: summary: Create investigation notebook for case tags: - Case Management - 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/cases/{case_id}/relationships/project: patch: description: Update the project associated with a case @@ -124714,9 +124618,6 @@ paths: summary: Update case project tags: - Case Management - 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/cases/{case_id}/relationships/servicenow_tickets: post: description: Create a new ServiceNow incident ticket and link it to a case @@ -124775,9 +124676,6 @@ paths: summary: Create ServiceNow ticket for case tags: - Case Management - 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/cases/{case_id}/resolved_reason: post: description: Sets the resolved reason for a security case (for example, FALSE_POSITIVE, TRUE_POSITIVE). Applicable to security-type cases. @@ -124841,9 +124739,6 @@ paths: summary: Update case resolved reason tags: - Case Management - 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/cases/{case_id}/status: post: description: Update case status @@ -124973,9 +124868,6 @@ paths: summary: Get case timeline tags: - Case Management - 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/cases/{case_id}/title: post: description: Update case title @@ -125203,9 +125095,6 @@ paths: summary: List case watchers tags: - Case Management - 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/cases/{case_id}/watchers/{user_uuid}: delete: description: Removes a user from the watchers list of a case. The user no longer receives notifications about updates to the case. @@ -125234,9 +125123,6 @@ paths: summary: Unwatch a case tags: - Case Management - 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: Adds a user (identified by their UUID) as a watcher of a case. The user receives notifications about subsequent updates to the case. operationId: WatchCase @@ -125264,9 +125150,6 @@ paths: summary: Watch a case tags: - Case Management - 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/catalog/entity: get: description: Get a list of entities from Software Catalog. @@ -158333,9 +158216,6 @@ paths: summary: List maintenance windows tags: - Case Management - 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: Creates a maintenance window for event management cases with a name, case filter query, and time range (start and end). operationId: CreateMaintenanceWindow @@ -158392,9 +158272,6 @@ paths: summary: Create a maintenance window tags: - Case Management - 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/maintenance_windows/{maintenance_window_id}: delete: description: Permanently deletes a maintenance window. @@ -158422,9 +158299,6 @@ paths: summary: Delete a maintenance window tags: - Case Management - 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/). put: description: Updates the name, query, start time, or end time of an existing maintenance window. operationId: UpdateMaintenanceWindow @@ -158483,9 +158357,6 @@ paths: summary: Update a maintenance window tags: - Case Management - 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/metrics: get: description: |- diff --git a/features/v2/case_management.feature b/features/v2/case_management.feature index 04f9d8e0698d..8e2e9f6f6ad9 100644 --- a/features/v2/case_management.feature +++ b/features/v2/case_management.feature @@ -12,8 +12,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Add insights to a case returns "Bad Request" response - Given operation "AddCaseInsights" enabled - And new "AddCaseInsights" request + Given new "AddCaseInsights" request And request contains "case_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"insights": [{"ref": "/monitors/12345?q=total", "resource_id": "12345", "type": "SECURITY_SIGNAL"}]}, "type": "case"}} When the request is sent @@ -21,8 +20,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Add insights to a case returns "Not Found" response - Given operation "AddCaseInsights" enabled - And new "AddCaseInsights" request + Given new "AddCaseInsights" request And request contains "case_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"insights": [{"ref": "/monitors/12345?q=total", "resource_id": "12345", "type": "SECURITY_SIGNAL"}]}, "type": "case"}} When the request is sent @@ -30,8 +28,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Add insights to a case returns "OK" response - Given operation "AddCaseInsights" enabled - And new "AddCaseInsights" request + Given new "AddCaseInsights" request And request contains "case_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"insights": [{"ref": "/monitors/12345?q=total", "resource_id": "12345", "type": "SECURITY_SIGNAL"}]}, "type": "case"}} When the request is sent @@ -39,24 +36,21 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Aggregate cases returns "Bad Request" response - Given operation "AggregateCases" enabled - And new "AggregateCases" request + Given new "AggregateCases" request And body with value {"data": {"attributes": {"group_by": {"groups": ["status"], "limit": 14}, "query_filter": "service:case-api"}, "type": "aggregate"}} When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/case-management Scenario: Aggregate cases returns "Not Found" response - Given operation "AggregateCases" enabled - And new "AggregateCases" request + Given new "AggregateCases" request And body with value {"data": {"attributes": {"group_by": {"groups": ["status"], "limit": 14}, "query_filter": "service:case-api"}, "type": "aggregate"}} When the request is sent Then the response status is 404 Not Found @generated @skip @team:DataDog/case-management Scenario: Aggregate cases returns "OK" response - Given operation "AggregateCases" enabled - And new "AggregateCases" request + Given new "AggregateCases" request And body with value {"data": {"attributes": {"group_by": {"groups": ["status"], "limit": 14}, "query_filter": "service:case-api"}, "type": "aggregate"}} When the request is sent Then the response status is 200 OK @@ -117,24 +111,21 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Bulk update cases returns "Bad Request" response - Given operation "BulkUpdateCases" enabled - And new "BulkUpdateCases" request + Given new "BulkUpdateCases" request And body with value {"data": {"attributes": {"case_ids": ["case-id-1", "case-id-2"], "payload": {"priority": "P1"}, "type": "priority"}, "type": "bulk"}} When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/case-management Scenario: Bulk update cases returns "Not Found" response - Given operation "BulkUpdateCases" enabled - And new "BulkUpdateCases" request + Given new "BulkUpdateCases" request And body with value {"data": {"attributes": {"case_ids": ["case-id-1", "case-id-2"], "payload": {"priority": "P1"}, "type": "priority"}, "type": "bulk"}} When the request is sent Then the response status is 404 Not Found @generated @skip @team:DataDog/case-management Scenario: Bulk update cases returns "OK" response - Given operation "BulkUpdateCases" enabled - And new "BulkUpdateCases" request + Given new "BulkUpdateCases" request And body with value {"data": {"attributes": {"case_ids": ["case-id-1", "case-id-2"], "payload": {"priority": "P1"}, "type": "priority"}, "type": "bulk"}} When the request is sent Then the response status is 200 OK @@ -167,29 +158,25 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Count cases returns "Bad Request" response - Given operation "CountCases" enabled - And new "CountCases" request + Given new "CountCases" request When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/case-management Scenario: Count cases returns "Not Found" response - Given operation "CountCases" enabled - And new "CountCases" request + Given new "CountCases" request When the request is sent Then the response status is 404 Not Found @generated @skip @team:DataDog/case-management Scenario: Count cases returns "OK" response - Given operation "CountCases" enabled - And new "CountCases" request + Given new "CountCases" request When the request is sent Then the response status is 200 OK @generated @skip @team:DataDog/case-management Scenario: Create Jira issue for case returns "Accepted" response - Given operation "CreateCaseJiraIssue" enabled - And new "CreateCaseJiraIssue" request + Given new "CreateCaseJiraIssue" request And request contains "case_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"fields": {}, "issue_type_id": "10001", "jira_account_id": "1234", "project_id": "5678"}, "type": "issues"}} When the request is sent @@ -197,8 +184,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Create Jira issue for case returns "Bad Request" response - Given operation "CreateCaseJiraIssue" enabled - And new "CreateCaseJiraIssue" request + Given new "CreateCaseJiraIssue" request And request contains "case_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"fields": {}, "issue_type_id": "10001", "jira_account_id": "1234", "project_id": "5678"}, "type": "issues"}} When the request is sent @@ -206,8 +192,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Create Jira issue for case returns "Not Found" response - Given operation "CreateCaseJiraIssue" enabled - And new "CreateCaseJiraIssue" request + Given new "CreateCaseJiraIssue" request And request contains "case_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"fields": {}, "issue_type_id": "10001", "jira_account_id": "1234", "project_id": "5678"}, "type": "issues"}} When the request is sent @@ -215,8 +200,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Create ServiceNow ticket for case returns "Accepted" response - Given operation "CreateCaseServiceNowTicket" enabled - And new "CreateCaseServiceNowTicket" request + Given new "CreateCaseServiceNowTicket" request And request contains "case_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"assignment_group": "IT Support", "instance_name": "my-instance"}, "type": "tickets"}} When the request is sent @@ -224,8 +208,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Create ServiceNow ticket for case returns "Bad Request" response - Given operation "CreateCaseServiceNowTicket" enabled - And new "CreateCaseServiceNowTicket" request + Given new "CreateCaseServiceNowTicket" request And request contains "case_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"assignment_group": "IT Support", "instance_name": "my-instance"}, "type": "tickets"}} When the request is sent @@ -233,8 +216,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Create ServiceNow ticket for case returns "Not Found" response - Given operation "CreateCaseServiceNowTicket" enabled - And new "CreateCaseServiceNowTicket" request + Given new "CreateCaseServiceNowTicket" request And request contains "case_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"assignment_group": "IT Support", "instance_name": "my-instance"}, "type": "tickets"}} When the request is sent @@ -242,24 +224,21 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Create a case link returns "Bad Request" response - Given operation "CreateCaseLink" enabled - And new "CreateCaseLink" request + Given new "CreateCaseLink" request And body with value {"data": {"attributes": {"child_entity_id": "4417921d-0866-4a38-822c-6f2a0f65f77d", "child_entity_type": "CASE", "parent_entity_id": "bf0cbac6-4c16-4cfb-b6bf-ca5e0ec37a4f", "parent_entity_type": "CASE", "relationship": "BLOCKS"}, "type": "link"}} When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/case-management Scenario: Create a case link returns "Created" response - Given operation "CreateCaseLink" enabled - And new "CreateCaseLink" request + Given new "CreateCaseLink" request And body with value {"data": {"attributes": {"child_entity_id": "4417921d-0866-4a38-822c-6f2a0f65f77d", "child_entity_type": "CASE", "parent_entity_id": "bf0cbac6-4c16-4cfb-b6bf-ca5e0ec37a4f", "parent_entity_type": "CASE", "relationship": "BLOCKS"}, "type": "link"}} When the request is sent Then the response status is 201 Created @generated @skip @team:DataDog/case-management Scenario: Create a case link returns "Not Found" response - Given operation "CreateCaseLink" enabled - And new "CreateCaseLink" request + Given new "CreateCaseLink" request And body with value {"data": {"attributes": {"child_entity_id": "4417921d-0866-4a38-822c-6f2a0f65f77d", "child_entity_type": "CASE", "parent_entity_id": "bf0cbac6-4c16-4cfb-b6bf-ca5e0ec37a4f", "parent_entity_type": "CASE", "relationship": "BLOCKS"}, "type": "link"}} When the request is sent Then the response status is 404 Not Found @@ -292,48 +271,42 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Create a case view returns "Bad Request" response - Given operation "CreateCaseView" enabled - And new "CreateCaseView" request + Given new "CreateCaseView" request And body with value {"data": {"attributes": {"name": "Open bugs", "project_id": "e555e290-ed65-49bd-ae18-8acbfcf18db7", "query": "status:open type:bug"}, "type": "view"}} When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/case-management Scenario: Create a case view returns "Created" response - Given operation "CreateCaseView" enabled - And new "CreateCaseView" request + Given new "CreateCaseView" request And body with value {"data": {"attributes": {"name": "Open bugs", "project_id": "e555e290-ed65-49bd-ae18-8acbfcf18db7", "query": "status:open type:bug"}, "type": "view"}} When the request is sent Then the response status is 201 Created @generated @skip @team:DataDog/case-management Scenario: Create a case view returns "Not Found" response - Given operation "CreateCaseView" enabled - And new "CreateCaseView" request + Given new "CreateCaseView" request And body with value {"data": {"attributes": {"name": "Open bugs", "project_id": "e555e290-ed65-49bd-ae18-8acbfcf18db7", "query": "status:open type:bug"}, "type": "view"}} When the request is sent Then the response status is 404 Not Found @generated @skip @team:DataDog/case-management Scenario: Create a maintenance window returns "Bad Request" response - Given operation "CreateMaintenanceWindow" enabled - And new "CreateMaintenanceWindow" request + Given new "CreateMaintenanceWindow" request And body with value {"data": {"attributes": {"end_at": "2026-06-01T06:00:00Z", "name": "Weekly maintenance", "query": "project:SEC", "start_at": "2026-06-01T00:00:00Z"}, "type": "maintenance_window"}} When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/case-management Scenario: Create a maintenance window returns "Created" response - Given operation "CreateMaintenanceWindow" enabled - And new "CreateMaintenanceWindow" request + Given new "CreateMaintenanceWindow" request And body with value {"data": {"attributes": {"end_at": "2026-06-01T06:00:00Z", "name": "Weekly maintenance", "query": "project:SEC", "start_at": "2026-06-01T00:00:00Z"}, "type": "maintenance_window"}} When the request is sent Then the response status is 201 Created @generated @skip @team:DataDog/case-management Scenario: Create a maintenance window returns "Not Found" response - Given operation "CreateMaintenanceWindow" enabled - And new "CreateMaintenanceWindow" request + Given new "CreateMaintenanceWindow" request And body with value {"data": {"attributes": {"end_at": "2026-06-01T06:00:00Z", "name": "Weekly maintenance", "query": "project:SEC", "start_at": "2026-06-01T00:00:00Z"}, "type": "maintenance_window"}} When the request is sent Then the response status is 404 Not Found @@ -385,8 +358,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Create an automation rule returns "Bad Request" response - Given operation "CreateCaseAutomationRule" enabled - And new "CreateCaseAutomationRule" request + Given new "CreateCaseAutomationRule" request And request contains "project_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"action": {"data": {"handle": "workflow-handle-123"}, "type": "execute_workflow"}, "name": "Auto-assign workflow", "state": "ENABLED", "trigger": {"data": {}, "type": "case_created"}}, "type": "rule"}} When the request is sent @@ -394,8 +366,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Create an automation rule returns "Created" response - Given operation "CreateCaseAutomationRule" enabled - And new "CreateCaseAutomationRule" request + Given new "CreateCaseAutomationRule" request And request contains "project_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"action": {"data": {"handle": "workflow-handle-123"}, "type": "execute_workflow"}, "name": "Auto-assign workflow", "state": "ENABLED", "trigger": {"data": {}, "type": "case_created"}}, "type": "rule"}} When the request is sent @@ -403,8 +374,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Create an automation rule returns "Not Found" response - Given operation "CreateCaseAutomationRule" enabled - And new "CreateCaseAutomationRule" request + Given new "CreateCaseAutomationRule" request And request contains "project_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"action": {"data": {"handle": "workflow-handle-123"}, "type": "execute_workflow"}, "name": "Auto-assign workflow", "state": "ENABLED", "trigger": {"data": {}, "type": "case_created"}}, "type": "rule"}} When the request is sent @@ -412,8 +382,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Create investigation notebook for case returns "Bad Request" response - Given operation "CreateCaseNotebook" enabled - And new "CreateCaseNotebook" request + Given new "CreateCaseNotebook" request And request contains "case_id" parameter from "REPLACE.ME" And body with value {"data": {"type": "notebook"}} When the request is sent @@ -421,8 +390,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Create investigation notebook for case returns "No Content" response - Given operation "CreateCaseNotebook" enabled - And new "CreateCaseNotebook" request + Given new "CreateCaseNotebook" request And request contains "case_id" parameter from "REPLACE.ME" And body with value {"data": {"type": "notebook"}} When the request is sent @@ -430,8 +398,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Create investigation notebook for case returns "Not Found" response - Given operation "CreateCaseNotebook" enabled - And new "CreateCaseNotebook" request + Given new "CreateCaseNotebook" request And request contains "case_id" parameter from "REPLACE.ME" And body with value {"data": {"type": "notebook"}} When the request is sent @@ -439,72 +406,63 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Delete a case link returns "Bad Request" response - Given operation "DeleteCaseLink" enabled - And new "DeleteCaseLink" request + Given new "DeleteCaseLink" request And request contains "link_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/case-management Scenario: Delete a case link returns "No Content" response - Given operation "DeleteCaseLink" enabled - And new "DeleteCaseLink" request + Given new "DeleteCaseLink" request And request contains "link_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 204 No Content @generated @skip @team:DataDog/case-management Scenario: Delete a case link returns "Not Found" response - Given operation "DeleteCaseLink" enabled - And new "DeleteCaseLink" request + Given new "DeleteCaseLink" request And request contains "link_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 404 Not Found @generated @skip @team:DataDog/case-management Scenario: Delete a case view returns "Bad Request" response - Given operation "DeleteCaseView" enabled - And new "DeleteCaseView" request + Given new "DeleteCaseView" request And request contains "view_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/case-management Scenario: Delete a case view returns "No Content" response - Given operation "DeleteCaseView" enabled - And new "DeleteCaseView" request + Given new "DeleteCaseView" request And request contains "view_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 204 No Content @generated @skip @team:DataDog/case-management Scenario: Delete a case view returns "Not Found" response - Given operation "DeleteCaseView" enabled - And new "DeleteCaseView" request + Given new "DeleteCaseView" request And request contains "view_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 404 Not Found @generated @skip @team:DataDog/case-management Scenario: Delete a maintenance window returns "Bad Request" response - Given operation "DeleteMaintenanceWindow" enabled - And new "DeleteMaintenanceWindow" request + Given new "DeleteMaintenanceWindow" request And request contains "maintenance_window_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/case-management Scenario: Delete a maintenance window returns "No Content" response - Given operation "DeleteMaintenanceWindow" enabled - And new "DeleteMaintenanceWindow" request + Given new "DeleteMaintenanceWindow" request And request contains "maintenance_window_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 204 No Content @generated @skip @team:DataDog/case-management Scenario: Delete a maintenance window returns "Not Found" response - Given operation "DeleteMaintenanceWindow" enabled - And new "DeleteMaintenanceWindow" request + Given new "DeleteMaintenanceWindow" request And request contains "maintenance_window_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 404 Not Found @@ -527,8 +485,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Delete an automation rule returns "No Content" response - Given operation "DeleteCaseAutomationRule" enabled - And new "DeleteCaseAutomationRule" request + Given new "DeleteCaseAutomationRule" request And request contains "project_id" parameter from "REPLACE.ME" And request contains "rule_id" parameter from "REPLACE.ME" When the request is sent @@ -536,8 +493,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Delete an automation rule returns "Not Found" response - Given operation "DeleteCaseAutomationRule" enabled - And new "DeleteCaseAutomationRule" request + Given new "DeleteCaseAutomationRule" request And request contains "project_id" parameter from "REPLACE.ME" And request contains "rule_id" parameter from "REPLACE.ME" When the request is sent @@ -593,8 +549,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Disable an automation rule returns "Bad Request" response - Given operation "DisableCaseAutomationRule" enabled - And new "DisableCaseAutomationRule" request + Given new "DisableCaseAutomationRule" request And request contains "project_id" parameter from "REPLACE.ME" And request contains "rule_id" parameter from "REPLACE.ME" When the request is sent @@ -602,8 +557,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Disable an automation rule returns "Not Found" response - Given operation "DisableCaseAutomationRule" enabled - And new "DisableCaseAutomationRule" request + Given new "DisableCaseAutomationRule" request And request contains "project_id" parameter from "REPLACE.ME" And request contains "rule_id" parameter from "REPLACE.ME" When the request is sent @@ -611,8 +565,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Disable an automation rule returns "OK" response - Given operation "DisableCaseAutomationRule" enabled - And new "DisableCaseAutomationRule" request + Given new "DisableCaseAutomationRule" request And request contains "project_id" parameter from "REPLACE.ME" And request contains "rule_id" parameter from "REPLACE.ME" When the request is sent @@ -620,8 +573,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Enable an automation rule returns "Bad Request" response - Given operation "EnableCaseAutomationRule" enabled - And new "EnableCaseAutomationRule" request + Given new "EnableCaseAutomationRule" request And request contains "project_id" parameter from "REPLACE.ME" And request contains "rule_id" parameter from "REPLACE.ME" When the request is sent @@ -629,8 +581,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Enable an automation rule returns "Not Found" response - Given operation "EnableCaseAutomationRule" enabled - And new "EnableCaseAutomationRule" request + Given new "EnableCaseAutomationRule" request And request contains "project_id" parameter from "REPLACE.ME" And request contains "rule_id" parameter from "REPLACE.ME" When the request is sent @@ -638,8 +589,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Enable an automation rule returns "OK" response - Given operation "EnableCaseAutomationRule" enabled - And new "EnableCaseAutomationRule" request + Given new "EnableCaseAutomationRule" request And request contains "project_id" parameter from "REPLACE.ME" And request contains "rule_id" parameter from "REPLACE.ME" When the request is sent @@ -647,48 +597,42 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Favorite a project returns "Bad Request" response - Given operation "FavoriteCaseProject" enabled - And new "FavoriteCaseProject" request + Given new "FavoriteCaseProject" request And request contains "project_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/case-management Scenario: Favorite a project returns "No Content" response - Given operation "FavoriteCaseProject" enabled - And new "FavoriteCaseProject" request + Given new "FavoriteCaseProject" request And request contains "project_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 204 No Content @generated @skip @team:DataDog/case-management Scenario: Favorite a project returns "Not Found" response - Given operation "FavoriteCaseProject" enabled - And new "FavoriteCaseProject" request + Given new "FavoriteCaseProject" request And request contains "project_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 404 Not Found @generated @skip @team:DataDog/case-management Scenario: Get a case view returns "Bad Request" response - Given operation "GetCaseView" enabled - And new "GetCaseView" request + Given new "GetCaseView" request And request contains "view_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/case-management Scenario: Get a case view returns "Not Found" response - Given operation "GetCaseView" enabled - And new "GetCaseView" request + Given new "GetCaseView" request And request contains "view_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 404 Not Found @generated @skip @team:DataDog/case-management Scenario: Get a case view returns "OK" response - Given operation "GetCaseView" enabled - And new "GetCaseView" request + Given new "GetCaseView" request And request contains "view_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 200 OK @@ -713,8 +657,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Get an automation rule returns "Bad Request" response - Given operation "GetCaseAutomationRule" enabled - And new "GetCaseAutomationRule" request + Given new "GetCaseAutomationRule" request And request contains "project_id" parameter from "REPLACE.ME" And request contains "rule_id" parameter from "REPLACE.ME" When the request is sent @@ -722,8 +665,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Get an automation rule returns "Not Found" response - Given operation "GetCaseAutomationRule" enabled - And new "GetCaseAutomationRule" request + Given new "GetCaseAutomationRule" request And request contains "project_id" parameter from "REPLACE.ME" And request contains "rule_id" parameter from "REPLACE.ME" When the request is sent @@ -731,8 +673,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Get an automation rule returns "OK" response - Given operation "GetCaseAutomationRule" enabled - And new "GetCaseAutomationRule" request + Given new "GetCaseAutomationRule" request And request contains "project_id" parameter from "REPLACE.ME" And request contains "rule_id" parameter from "REPLACE.ME" When the request is sent @@ -740,24 +681,21 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Get case timeline returns "Bad Request" response - Given operation "ListCaseTimeline" enabled - And new "ListCaseTimeline" request + Given new "ListCaseTimeline" request And request contains "case_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/case-management Scenario: Get case timeline returns "Not Found" response - Given operation "ListCaseTimeline" enabled - And new "ListCaseTimeline" request + Given new "ListCaseTimeline" request And request contains "case_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 404 Not Found @generated @skip @team:DataDog/case-management Scenario: Get case timeline returns "OK" response - Given operation "ListCaseTimeline" enabled - And new "ListCaseTimeline" request + Given new "ListCaseTimeline" request And request contains "case_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 200 OK @@ -829,8 +767,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Link existing Jira issue to case returns "Bad Request" response - Given operation "LinkJiraIssueToCase" enabled - And new "LinkJiraIssueToCase" request + Given new "LinkJiraIssueToCase" request And request contains "case_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"jira_issue_url": "https://jira.example.com/browse/PROJ-123"}, "type": "issues"}} When the request is sent @@ -838,8 +775,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Link existing Jira issue to case returns "Conflict" response - Given operation "LinkJiraIssueToCase" enabled - And new "LinkJiraIssueToCase" request + Given new "LinkJiraIssueToCase" request And request contains "case_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"jira_issue_url": "https://jira.example.com/browse/PROJ-123"}, "type": "issues"}} When the request is sent @@ -847,8 +783,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Link existing Jira issue to case returns "No Content" response - Given operation "LinkJiraIssueToCase" enabled - And new "LinkJiraIssueToCase" request + Given new "LinkJiraIssueToCase" request And request contains "case_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"jira_issue_url": "https://jira.example.com/browse/PROJ-123"}, "type": "issues"}} When the request is sent @@ -856,8 +791,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Link existing Jira issue to case returns "Not Found" response - Given operation "LinkJiraIssueToCase" enabled - And new "LinkJiraIssueToCase" request + Given new "LinkJiraIssueToCase" request And request contains "case_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"jira_issue_url": "https://jira.example.com/browse/PROJ-123"}, "type": "issues"}} When the request is sent @@ -865,8 +799,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Link incident to case returns "Bad Request" response - Given operation "LinkIncident" enabled - And new "LinkIncident" request + Given new "LinkIncident" request And request contains "case_id" parameter from "REPLACE.ME" And body with value {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "incidents"}} When the request is sent @@ -874,8 +807,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Link incident to case returns "Created" response - Given operation "LinkIncident" enabled - And new "LinkIncident" request + Given new "LinkIncident" request And request contains "case_id" parameter from "REPLACE.ME" And body with value {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "incidents"}} When the request is sent @@ -883,8 +815,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Link incident to case returns "Not Found" response - Given operation "LinkIncident" enabled - And new "LinkIncident" request + Given new "LinkIncident" request And request contains "case_id" parameter from "REPLACE.ME" And body with value {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "incidents"}} When the request is sent @@ -892,32 +823,28 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: List automation rules returns "Bad Request" response - Given operation "ListCaseAutomationRules" enabled - And new "ListCaseAutomationRules" request + Given new "ListCaseAutomationRules" request And request contains "project_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/case-management Scenario: List automation rules returns "Not Found" response - Given operation "ListCaseAutomationRules" enabled - And new "ListCaseAutomationRules" request + Given new "ListCaseAutomationRules" request And request contains "project_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 404 Not Found @generated @skip @team:DataDog/case-management Scenario: List automation rules returns "OK" response - Given operation "ListCaseAutomationRules" enabled - And new "ListCaseAutomationRules" request + Given new "ListCaseAutomationRules" request And request contains "project_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 200 OK @generated @skip @team:DataDog/case-management Scenario: List case links returns "Bad Request" response - Given operation "ListCaseLinks" enabled - And new "ListCaseLinks" request + Given new "ListCaseLinks" request And request contains "entity_type" parameter from "REPLACE.ME" And request contains "entity_id" parameter from "REPLACE.ME" When the request is sent @@ -925,8 +852,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: List case links returns "Not Found" response - Given operation "ListCaseLinks" enabled - And new "ListCaseLinks" request + Given new "ListCaseLinks" request And request contains "entity_type" parameter from "REPLACE.ME" And request contains "entity_id" parameter from "REPLACE.ME" When the request is sent @@ -934,8 +860,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: List case links returns "OK" response - Given operation "ListCaseLinks" enabled - And new "ListCaseLinks" request + Given new "ListCaseLinks" request And request contains "entity_type" parameter from "REPLACE.ME" And request contains "entity_id" parameter from "REPLACE.ME" When the request is sent @@ -943,114 +868,99 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: List case views returns "Bad Request" response - Given operation "ListCaseViews" enabled - And new "ListCaseViews" request + Given new "ListCaseViews" request And request contains "project_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/case-management Scenario: List case views returns "Not Found" response - Given operation "ListCaseViews" enabled - And new "ListCaseViews" request + Given new "ListCaseViews" request And request contains "project_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 404 Not Found @generated @skip @team:DataDog/case-management Scenario: List case views returns "OK" response - Given operation "ListCaseViews" enabled - And new "ListCaseViews" request + Given new "ListCaseViews" request And request contains "project_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 200 OK @generated @skip @team:DataDog/case-management Scenario: List case watchers returns "Bad Request" response - Given operation "ListCaseWatchers" enabled - And new "ListCaseWatchers" request + Given new "ListCaseWatchers" request And request contains "case_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/case-management Scenario: List case watchers returns "Not Found" response - Given operation "ListCaseWatchers" enabled - And new "ListCaseWatchers" request + Given new "ListCaseWatchers" request And request contains "case_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 404 Not Found @generated @skip @team:DataDog/case-management Scenario: List case watchers returns "OK" response - Given operation "ListCaseWatchers" enabled - And new "ListCaseWatchers" request + Given new "ListCaseWatchers" request And request contains "case_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 200 OK @generated @skip @team:DataDog/case-management Scenario: List maintenance windows returns "Bad Request" response - Given operation "ListMaintenanceWindows" enabled - And new "ListMaintenanceWindows" request + Given new "ListMaintenanceWindows" request When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/case-management Scenario: List maintenance windows returns "Not Found" response - Given operation "ListMaintenanceWindows" enabled - And new "ListMaintenanceWindows" request + Given new "ListMaintenanceWindows" request When the request is sent Then the response status is 404 Not Found @generated @skip @team:DataDog/case-management Scenario: List maintenance windows returns "OK" response - Given operation "ListMaintenanceWindows" enabled - And new "ListMaintenanceWindows" request + Given new "ListMaintenanceWindows" request When the request is sent Then the response status is 200 OK @generated @skip @team:DataDog/case-management Scenario: List project favorites returns "Bad Request" response - Given operation "ListUserCaseProjectFavorites" enabled - And new "ListUserCaseProjectFavorites" request + Given new "ListUserCaseProjectFavorites" request When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/case-management Scenario: List project favorites returns "Not Found" response - Given operation "ListUserCaseProjectFavorites" enabled - And new "ListUserCaseProjectFavorites" request + Given new "ListUserCaseProjectFavorites" request When the request is sent Then the response status is 404 Not Found @generated @skip @team:DataDog/case-management Scenario: List project favorites returns "OK" response - Given operation "ListUserCaseProjectFavorites" enabled - And new "ListUserCaseProjectFavorites" request + Given new "ListUserCaseProjectFavorites" request When the request is sent Then the response status is 200 OK @generated @skip @team:DataDog/case-management Scenario: Remove Jira issue link from case returns "Bad Request" response - Given operation "UnlinkJiraIssue" enabled - And new "UnlinkJiraIssue" request + Given new "UnlinkJiraIssue" request And request contains "case_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/case-management Scenario: Remove Jira issue link from case returns "No Content" response - Given operation "UnlinkJiraIssue" enabled - And new "UnlinkJiraIssue" request + Given new "UnlinkJiraIssue" request And request contains "case_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 204 No Content @generated @skip @team:DataDog/case-management Scenario: Remove Jira issue link from case returns "Not Found" response - Given operation "UnlinkJiraIssue" enabled - And new "UnlinkJiraIssue" request + Given new "UnlinkJiraIssue" request And request contains "case_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 404 Not Found @@ -1071,8 +981,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Remove insights from a case returns "Bad Request" response - Given operation "RemoveCaseInsights" enabled - And new "RemoveCaseInsights" request + Given new "RemoveCaseInsights" request And request contains "case_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"insights": [{"ref": "/monitors/12345?q=total", "resource_id": "12345", "type": "SECURITY_SIGNAL"}]}, "type": "case"}} When the request is sent @@ -1080,8 +989,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Remove insights from a case returns "Not Found" response - Given operation "RemoveCaseInsights" enabled - And new "RemoveCaseInsights" request + Given new "RemoveCaseInsights" request And request contains "case_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"insights": [{"ref": "/monitors/12345?q=total", "resource_id": "12345", "type": "SECURITY_SIGNAL"}]}, "type": "case"}} When the request is sent @@ -1089,8 +997,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Remove insights from a case returns "OK" response - Given operation "RemoveCaseInsights" enabled - And new "RemoveCaseInsights" request + Given new "RemoveCaseInsights" request And request contains "case_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"insights": [{"ref": "/monitors/12345?q=total", "resource_id": "12345", "type": "SECURITY_SIGNAL"}]}, "type": "case"}} When the request is sent @@ -1177,32 +1084,28 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Unfavorite a project returns "Bad Request" response - Given operation "UnfavoriteCaseProject" enabled - And new "UnfavoriteCaseProject" request + Given new "UnfavoriteCaseProject" request And request contains "project_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/case-management Scenario: Unfavorite a project returns "No Content" response - Given operation "UnfavoriteCaseProject" enabled - And new "UnfavoriteCaseProject" request + Given new "UnfavoriteCaseProject" request And request contains "project_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 204 No Content @generated @skip @team:DataDog/case-management Scenario: Unfavorite a project returns "Not Found" response - Given operation "UnfavoriteCaseProject" enabled - And new "UnfavoriteCaseProject" request + Given new "UnfavoriteCaseProject" request And request contains "project_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 404 Not Found @generated @skip @team:DataDog/case-management Scenario: Unwatch a case returns "Bad Request" response - Given operation "UnwatchCase" enabled - And new "UnwatchCase" request + Given new "UnwatchCase" request And request contains "case_id" parameter from "REPLACE.ME" And request contains "user_uuid" parameter from "REPLACE.ME" When the request is sent @@ -1210,8 +1113,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Unwatch a case returns "No Content" response - Given operation "UnwatchCase" enabled - And new "UnwatchCase" request + Given new "UnwatchCase" request And request contains "case_id" parameter from "REPLACE.ME" And request contains "user_uuid" parameter from "REPLACE.ME" When the request is sent @@ -1219,8 +1121,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Unwatch a case returns "Not Found" response - Given operation "UnwatchCase" enabled - And new "UnwatchCase" request + Given new "UnwatchCase" request And request contains "case_id" parameter from "REPLACE.ME" And request contains "user_uuid" parameter from "REPLACE.ME" When the request is sent @@ -1228,8 +1129,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Update a case view returns "Bad Request" response - Given operation "UpdateCaseView" enabled - And new "UpdateCaseView" request + Given new "UpdateCaseView" request And request contains "view_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {}, "type": "view"}} When the request is sent @@ -1237,8 +1137,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Update a case view returns "Not Found" response - Given operation "UpdateCaseView" enabled - And new "UpdateCaseView" request + Given new "UpdateCaseView" request And request contains "view_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {}, "type": "view"}} When the request is sent @@ -1246,8 +1145,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Update a case view returns "OK" response - Given operation "UpdateCaseView" enabled - And new "UpdateCaseView" request + Given new "UpdateCaseView" request And request contains "view_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {}, "type": "view"}} When the request is sent @@ -1255,8 +1153,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Update a maintenance window returns "Bad Request" response - Given operation "UpdateMaintenanceWindow" enabled - And new "UpdateMaintenanceWindow" request + Given new "UpdateMaintenanceWindow" request And request contains "maintenance_window_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {}, "type": "maintenance_window"}} When the request is sent @@ -1264,8 +1161,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Update a maintenance window returns "Not Found" response - Given operation "UpdateMaintenanceWindow" enabled - And new "UpdateMaintenanceWindow" request + Given new "UpdateMaintenanceWindow" request And request contains "maintenance_window_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {}, "type": "maintenance_window"}} When the request is sent @@ -1273,8 +1169,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Update a maintenance window returns "OK" response - Given operation "UpdateMaintenanceWindow" enabled - And new "UpdateMaintenanceWindow" request + Given new "UpdateMaintenanceWindow" request And request contains "maintenance_window_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {}, "type": "maintenance_window"}} When the request is sent @@ -1335,8 +1230,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Update an automation rule returns "Bad Request" response - Given operation "UpdateCaseAutomationRule" enabled - And new "UpdateCaseAutomationRule" request + Given new "UpdateCaseAutomationRule" request And request contains "project_id" parameter from "REPLACE.ME" And request contains "rule_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"action": {"data": {"handle": "workflow-handle-123"}, "type": "execute_workflow"}, "name": "Auto-assign workflow", "state": "ENABLED", "trigger": {"data": {}, "type": "case_created"}}, "type": "rule"}} @@ -1345,8 +1239,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Update an automation rule returns "Not Found" response - Given operation "UpdateCaseAutomationRule" enabled - And new "UpdateCaseAutomationRule" request + Given new "UpdateCaseAutomationRule" request And request contains "project_id" parameter from "REPLACE.ME" And request contains "rule_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"action": {"data": {"handle": "workflow-handle-123"}, "type": "execute_workflow"}, "name": "Auto-assign workflow", "state": "ENABLED", "trigger": {"data": {}, "type": "case_created"}}, "type": "rule"}} @@ -1355,8 +1248,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Update an automation rule returns "OK" response - Given operation "UpdateCaseAutomationRule" enabled - And new "UpdateCaseAutomationRule" request + Given new "UpdateCaseAutomationRule" request And request contains "project_id" parameter from "REPLACE.ME" And request contains "rule_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"action": {"data": {"handle": "workflow-handle-123"}, "type": "execute_workflow"}, "name": "Auto-assign workflow", "state": "ENABLED", "trigger": {"data": {}, "type": "case_created"}}, "type": "rule"}} @@ -1391,8 +1283,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Update case comment returns "Bad Request" response - Given operation "UpdateCaseComment" enabled - And new "UpdateCaseComment" request + Given new "UpdateCaseComment" request And request contains "case_id" parameter from "REPLACE.ME" And request contains "cell_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"comment": "Updated comment text"}, "type": "case"}} @@ -1401,8 +1292,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Update case comment returns "Not Found" response - Given operation "UpdateCaseComment" enabled - And new "UpdateCaseComment" request + Given new "UpdateCaseComment" request And request contains "case_id" parameter from "REPLACE.ME" And request contains "cell_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"comment": "Updated comment text"}, "type": "case"}} @@ -1411,8 +1301,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Update case comment returns "OK" response - Given operation "UpdateCaseComment" enabled - And new "UpdateCaseComment" request + Given new "UpdateCaseComment" request And request contains "case_id" parameter from "REPLACE.ME" And request contains "cell_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"comment": "Updated comment text"}, "type": "case"}} @@ -1481,8 +1370,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Update case due date returns "Bad Request" response - Given operation "UpdateCaseDueDate" enabled - And new "UpdateCaseDueDate" request + Given new "UpdateCaseDueDate" request And request contains "case_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"due_date": "2026-12-31"}, "type": "case"}} When the request is sent @@ -1490,8 +1378,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Update case due date returns "Not Found" response - Given operation "UpdateCaseDueDate" enabled - And new "UpdateCaseDueDate" request + Given new "UpdateCaseDueDate" request And request contains "case_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"due_date": "2026-12-31"}, "type": "case"}} When the request is sent @@ -1499,8 +1386,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Update case due date returns "OK" response - Given operation "UpdateCaseDueDate" enabled - And new "UpdateCaseDueDate" request + Given new "UpdateCaseDueDate" request And request contains "case_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"due_date": "2026-12-31"}, "type": "case"}} When the request is sent @@ -1535,8 +1421,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Update case project returns "Bad Request" response - Given operation "MoveCaseToProject" enabled - And new "MoveCaseToProject" request + Given new "MoveCaseToProject" request And request contains "case_id" parameter from "REPLACE.ME" And body with value {"data": {"id": "e555e290-ed65-49bd-ae18-8acbfcf18db7", "type": "project"}} When the request is sent @@ -1544,8 +1429,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Update case project returns "Not Found" response - Given operation "MoveCaseToProject" enabled - And new "MoveCaseToProject" request + Given new "MoveCaseToProject" request And request contains "case_id" parameter from "REPLACE.ME" And body with value {"data": {"id": "e555e290-ed65-49bd-ae18-8acbfcf18db7", "type": "project"}} When the request is sent @@ -1553,8 +1437,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Update case project returns "OK" response - Given operation "MoveCaseToProject" enabled - And new "MoveCaseToProject" request + Given new "MoveCaseToProject" request And request contains "case_id" parameter from "REPLACE.ME" And body with value {"data": {"id": "e555e290-ed65-49bd-ae18-8acbfcf18db7", "type": "project"}} When the request is sent @@ -1562,8 +1445,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Update case resolved reason returns "Bad Request" response - Given operation "UpdateCaseResolvedReason" enabled - And new "UpdateCaseResolvedReason" request + Given new "UpdateCaseResolvedReason" request And request contains "case_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"security_resolved_reason": "FALSE_POSITIVE"}, "type": "case"}} When the request is sent @@ -1571,8 +1453,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Update case resolved reason returns "Not Found" response - Given operation "UpdateCaseResolvedReason" enabled - And new "UpdateCaseResolvedReason" request + Given new "UpdateCaseResolvedReason" request And request contains "case_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"security_resolved_reason": "FALSE_POSITIVE"}, "type": "case"}} When the request is sent @@ -1580,8 +1461,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Update case resolved reason returns "OK" response - Given operation "UpdateCaseResolvedReason" enabled - And new "UpdateCaseResolvedReason" request + Given new "UpdateCaseResolvedReason" request And request contains "case_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"security_resolved_reason": "FALSE_POSITIVE"}, "type": "case"}} When the request is sent @@ -1642,8 +1522,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Watch a case returns "Bad Request" response - Given operation "WatchCase" enabled - And new "WatchCase" request + Given new "WatchCase" request And request contains "case_id" parameter from "REPLACE.ME" And request contains "user_uuid" parameter from "REPLACE.ME" When the request is sent @@ -1651,8 +1530,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Watch a case returns "Created" response - Given operation "WatchCase" enabled - And new "WatchCase" request + Given new "WatchCase" request And request contains "case_id" parameter from "REPLACE.ME" And request contains "user_uuid" parameter from "REPLACE.ME" When the request is sent @@ -1660,8 +1538,7 @@ Feature: Case Management @generated @skip @team:DataDog/case-management Scenario: Watch a case returns "Not Found" response - Given operation "WatchCase" enabled - And new "WatchCase" request + Given new "WatchCase" request And request contains "case_id" parameter from "REPLACE.ME" And request contains "user_uuid" parameter from "REPLACE.ME" When the request is sent diff --git a/features/v2/case_management_attribute.feature b/features/v2/case_management_attribute.feature index 47806e809c06..b7e1006103be 100644 --- a/features/v2/case_management_attribute.feature +++ b/features/v2/case_management_attribute.feature @@ -78,8 +78,7 @@ Feature: Case Management Attribute @generated @skip @team:DataDog/case-management Scenario: Update custom attribute config returns "Bad Request" response - Given operation "UpdateCustomAttributeConfig" enabled - And new "UpdateCustomAttributeConfig" request + Given new "UpdateCustomAttributeConfig" request And request contains "case_type_id" parameter from "REPLACE.ME" And request contains "custom_attribute_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"description": "Updated description.", "display_name": "AWS Region", "type": "NUMBER", "type_data": {"options": [{"value": "us-east-1"}]}}, "type": "custom_attribute"}} @@ -88,8 +87,7 @@ Feature: Case Management Attribute @generated @skip @team:DataDog/case-management Scenario: Update custom attribute config returns "Not Found" response - Given operation "UpdateCustomAttributeConfig" enabled - And new "UpdateCustomAttributeConfig" request + Given new "UpdateCustomAttributeConfig" request And request contains "case_type_id" parameter from "REPLACE.ME" And request contains "custom_attribute_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"description": "Updated description.", "display_name": "AWS Region", "type": "NUMBER", "type_data": {"options": [{"value": "us-east-1"}]}}, "type": "custom_attribute"}} @@ -98,8 +96,7 @@ Feature: Case Management Attribute @generated @skip @team:DataDog/case-management Scenario: Update custom attribute config returns "OK" response - Given operation "UpdateCustomAttributeConfig" enabled - And new "UpdateCustomAttributeConfig" request + Given new "UpdateCustomAttributeConfig" request And request contains "case_type_id" parameter from "REPLACE.ME" And request contains "custom_attribute_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"description": "Updated description.", "display_name": "AWS Region", "type": "NUMBER", "type_data": {"options": [{"value": "us-east-1"}]}}, "type": "custom_attribute"}} diff --git a/features/v2/case_management_type.feature b/features/v2/case_management_type.feature index 260ac3d3c42b..6415083b6990 100644 --- a/features/v2/case_management_type.feature +++ b/features/v2/case_management_type.feature @@ -47,8 +47,7 @@ Feature: Case Management Type @generated @skip @team:DataDog/case-management Scenario: Update a case type returns "Bad Request" response - Given operation "UpdateCaseType" enabled - And new "UpdateCaseType" request + Given new "UpdateCaseType" request And request contains "case_type_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"description": "Investigations done in case management", "emoji": "\ud83d\udd75\ud83c\udffb\u200d\u2642\ufe0f", "name": "Investigation"}, "type": "case_type"}} When the request is sent @@ -56,8 +55,7 @@ Feature: Case Management Type @generated @skip @team:DataDog/case-management Scenario: Update a case type returns "Not Found" response - Given operation "UpdateCaseType" enabled - And new "UpdateCaseType" request + Given new "UpdateCaseType" request And request contains "case_type_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"description": "Investigations done in case management", "emoji": "\ud83d\udd75\ud83c\udffb\u200d\u2642\ufe0f", "name": "Investigation"}, "type": "case_type"}} When the request is sent @@ -65,8 +63,7 @@ Feature: Case Management Type @generated @skip @team:DataDog/case-management Scenario: Update a case type returns "OK" response - Given operation "UpdateCaseType" enabled - And new "UpdateCaseType" request + Given new "UpdateCaseType" request And request contains "case_type_id" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"description": "Investigations done in case management", "emoji": "\ud83d\udd75\ud83c\udffb\u200d\u2642\ufe0f", "name": "Investigation"}, "type": "case_type"}} When the request is sent diff --git a/services/case_management/src/v2/CaseManagementApi.ts b/services/case_management/src/v2/CaseManagementApi.ts index 49f1af36ed7e..93efe539148c 100644 --- a/services/case_management/src/v2/CaseManagementApi.ts +++ b/services/case_management/src/v2/CaseManagementApi.ts @@ -96,12 +96,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if (!_config.unstableOperations["CaseManagementApi.v2.addCaseInsights"]) { - throw new Error( - "Unstable operation 'addCaseInsights' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.addCaseInsights'] = true`", - ); - } - // verify required parameter 'caseId' is not null or undefined if (caseId === null || caseId === undefined) { throw new RequiredError("caseId", "addCaseInsights"); @@ -161,12 +155,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if (!_config.unstableOperations["CaseManagementApi.v2.aggregateCases"]) { - throw new Error( - "Unstable operation 'aggregateCases' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.aggregateCases'] = true`", - ); - } - // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { throw new RequiredError("body", "aggregateCases"); @@ -338,12 +326,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if (!_config.unstableOperations["CaseManagementApi.v2.bulkUpdateCases"]) { - throw new Error( - "Unstable operation 'bulkUpdateCases' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.bulkUpdateCases'] = true`", - ); - } - // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { throw new RequiredError("body", "bulkUpdateCases"); @@ -456,12 +438,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if (!_config.unstableOperations["CaseManagementApi.v2.countCases"]) { - throw new Error( - "Unstable operation 'countCases' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.countCases'] = true`", - ); - } - // Path Params const localVarPath = "/api/v2/cases/count"; @@ -574,16 +550,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if ( - !_config.unstableOperations[ - "CaseManagementApi.v2.createCaseAutomationRule" - ] - ) { - throw new Error( - "Unstable operation 'createCaseAutomationRule' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.createCaseAutomationRule'] = true`", - ); - } - // verify required parameter 'projectId' is not null or undefined if (projectId === null || projectId === undefined) { throw new RequiredError("projectId", "createCaseAutomationRule"); @@ -644,14 +610,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if ( - !_config.unstableOperations["CaseManagementApi.v2.createCaseJiraIssue"] - ) { - throw new Error( - "Unstable operation 'createCaseJiraIssue' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.createCaseJiraIssue'] = true`", - ); - } - // verify required parameter 'caseId' is not null or undefined if (caseId === null || caseId === undefined) { throw new RequiredError("caseId", "createCaseJiraIssue"); @@ -712,12 +670,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if (!_config.unstableOperations["CaseManagementApi.v2.createCaseLink"]) { - throw new Error( - "Unstable operation 'createCaseLink' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.createCaseLink'] = true`", - ); - } - // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { throw new RequiredError("body", "createCaseLink"); @@ -770,14 +722,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if ( - !_config.unstableOperations["CaseManagementApi.v2.createCaseNotebook"] - ) { - throw new Error( - "Unstable operation 'createCaseNotebook' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.createCaseNotebook'] = true`", - ); - } - // verify required parameter 'caseId' is not null or undefined if (caseId === null || caseId === undefined) { throw new RequiredError("caseId", "createCaseNotebook"); @@ -839,16 +783,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if ( - !_config.unstableOperations[ - "CaseManagementApi.v2.createCaseServiceNowTicket" - ] - ) { - throw new Error( - "Unstable operation 'createCaseServiceNowTicket' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.createCaseServiceNowTicket'] = true`", - ); - } - // verify required parameter 'caseId' is not null or undefined if (caseId === null || caseId === undefined) { throw new RequiredError("caseId", "createCaseServiceNowTicket"); @@ -909,12 +843,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if (!_config.unstableOperations["CaseManagementApi.v2.createCaseView"]) { - throw new Error( - "Unstable operation 'createCaseView' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.createCaseView'] = true`", - ); - } - // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { throw new RequiredError("body", "createCaseView"); @@ -966,16 +894,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if ( - !_config.unstableOperations[ - "CaseManagementApi.v2.createMaintenanceWindow" - ] - ) { - throw new Error( - "Unstable operation 'createMaintenanceWindow' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.createMaintenanceWindow'] = true`", - ); - } - // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { throw new RequiredError("body", "createMaintenanceWindow"); @@ -1140,16 +1058,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if ( - !_config.unstableOperations[ - "CaseManagementApi.v2.deleteCaseAutomationRule" - ] - ) { - throw new Error( - "Unstable operation 'deleteCaseAutomationRule' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.deleteCaseAutomationRule'] = true`", - ); - } - // verify required parameter 'projectId' is not null or undefined if (projectId === null || projectId === undefined) { throw new RequiredError("projectId", "deleteCaseAutomationRule"); @@ -1305,12 +1213,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if (!_config.unstableOperations["CaseManagementApi.v2.deleteCaseLink"]) { - throw new Error( - "Unstable operation 'deleteCaseLink' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.deleteCaseLink'] = true`", - ); - } - // verify required parameter 'linkId' is not null or undefined if (linkId === null || linkId === undefined) { throw new RequiredError("linkId", "deleteCaseLink"); @@ -1356,12 +1258,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if (!_config.unstableOperations["CaseManagementApi.v2.deleteCaseView"]) { - throw new Error( - "Unstable operation 'deleteCaseView' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.deleteCaseView'] = true`", - ); - } - // verify required parameter 'viewId' is not null or undefined if (viewId === null || viewId === undefined) { throw new RequiredError("viewId", "deleteCaseView"); @@ -1407,16 +1303,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if ( - !_config.unstableOperations[ - "CaseManagementApi.v2.deleteMaintenanceWindow" - ] - ) { - throw new Error( - "Unstable operation 'deleteMaintenanceWindow' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.deleteMaintenanceWindow'] = true`", - ); - } - // verify required parameter 'maintenanceWindowId' is not null or undefined if (maintenanceWindowId === null || maintenanceWindowId === undefined) { throw new RequiredError("maintenanceWindowId", "deleteMaintenanceWindow"); @@ -1566,16 +1452,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if ( - !_config.unstableOperations[ - "CaseManagementApi.v2.disableCaseAutomationRule" - ] - ) { - throw new Error( - "Unstable operation 'disableCaseAutomationRule' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.disableCaseAutomationRule'] = true`", - ); - } - // verify required parameter 'projectId' is not null or undefined if (projectId === null || projectId === undefined) { throw new RequiredError("projectId", "disableCaseAutomationRule"); @@ -1627,16 +1503,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if ( - !_config.unstableOperations[ - "CaseManagementApi.v2.enableCaseAutomationRule" - ] - ) { - throw new Error( - "Unstable operation 'enableCaseAutomationRule' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.enableCaseAutomationRule'] = true`", - ); - } - // verify required parameter 'projectId' is not null or undefined if (projectId === null || projectId === undefined) { throw new RequiredError("projectId", "enableCaseAutomationRule"); @@ -1687,14 +1553,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if ( - !_config.unstableOperations["CaseManagementApi.v2.favoriteCaseProject"] - ) { - throw new Error( - "Unstable operation 'favoriteCaseProject' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.favoriteCaseProject'] = true`", - ); - } - // verify required parameter 'projectId' is not null or undefined if (projectId === null || projectId === undefined) { throw new RequiredError("projectId", "favoriteCaseProject"); @@ -1787,14 +1645,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if ( - !_config.unstableOperations["CaseManagementApi.v2.getCaseAutomationRule"] - ) { - throw new Error( - "Unstable operation 'getCaseAutomationRule' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.getCaseAutomationRule'] = true`", - ); - } - // verify required parameter 'projectId' is not null or undefined if (projectId === null || projectId === undefined) { throw new RequiredError("projectId", "getCaseAutomationRule"); @@ -1844,12 +1694,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if (!_config.unstableOperations["CaseManagementApi.v2.getCaseView"]) { - throw new Error( - "Unstable operation 'getCaseView' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.getCaseView'] = true`", - ); - } - // verify required parameter 'viewId' is not null or undefined if (viewId === null || viewId === undefined) { throw new RequiredError("viewId", "getCaseView"); @@ -2021,12 +1865,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if (!_config.unstableOperations["CaseManagementApi.v2.linkIncident"]) { - throw new Error( - "Unstable operation 'linkIncident' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.linkIncident'] = true`", - ); - } - // verify required parameter 'caseId' is not null or undefined if (caseId === null || caseId === undefined) { throw new RequiredError("caseId", "linkIncident"); @@ -2088,14 +1926,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if ( - !_config.unstableOperations["CaseManagementApi.v2.linkJiraIssueToCase"] - ) { - throw new Error( - "Unstable operation 'linkJiraIssueToCase' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.linkJiraIssueToCase'] = true`", - ); - } - // verify required parameter 'caseId' is not null or undefined if (caseId === null || caseId === undefined) { throw new RequiredError("caseId", "linkJiraIssueToCase"); @@ -2156,16 +1986,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if ( - !_config.unstableOperations[ - "CaseManagementApi.v2.listCaseAutomationRules" - ] - ) { - throw new Error( - "Unstable operation 'listCaseAutomationRules' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.listCaseAutomationRules'] = true`", - ); - } - // verify required parameter 'projectId' is not null or undefined if (projectId === null || projectId === undefined) { throw new RequiredError("projectId", "listCaseAutomationRules"); @@ -2213,12 +2033,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if (!_config.unstableOperations["CaseManagementApi.v2.listCaseLinks"]) { - throw new Error( - "Unstable operation 'listCaseLinks' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.listCaseLinks'] = true`", - ); - } - // verify required parameter 'entityType' is not null or undefined if (entityType === null || entityType === undefined) { throw new RequiredError("entityType", "listCaseLinks"); @@ -2292,12 +2106,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if (!_config.unstableOperations["CaseManagementApi.v2.listCaseTimeline"]) { - throw new Error( - "Unstable operation 'listCaseTimeline' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.listCaseTimeline'] = true`", - ); - } - // verify required parameter 'caseId' is not null or undefined if (caseId === null || caseId === undefined) { throw new RequiredError("caseId", "listCaseTimeline"); @@ -2366,12 +2174,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if (!_config.unstableOperations["CaseManagementApi.v2.listCaseViews"]) { - throw new Error( - "Unstable operation 'listCaseViews' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.listCaseViews'] = true`", - ); - } - // verify required parameter 'projectId' is not null or undefined if (projectId === null || projectId === undefined) { throw new RequiredError("projectId", "listCaseViews"); @@ -2423,12 +2225,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if (!_config.unstableOperations["CaseManagementApi.v2.listCaseWatchers"]) { - throw new Error( - "Unstable operation 'listCaseWatchers' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.listCaseWatchers'] = true`", - ); - } - // verify required parameter 'caseId' is not null or undefined if (caseId === null || caseId === undefined) { throw new RequiredError("caseId", "listCaseWatchers"); @@ -2473,14 +2269,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if ( - !_config.unstableOperations["CaseManagementApi.v2.listMaintenanceWindows"] - ) { - throw new Error( - "Unstable operation 'listMaintenanceWindows' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.listMaintenanceWindows'] = true`", - ); - } - // Path Params const localVarPath = "/api/v2/maintenance_windows"; @@ -2517,16 +2305,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if ( - !_config.unstableOperations[ - "CaseManagementApi.v2.listUserCaseProjectFavorites" - ] - ) { - throw new Error( - "Unstable operation 'listUserCaseProjectFavorites' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.listUserCaseProjectFavorites'] = true`", - ); - } - // Path Params const localVarPath = "/api/v2/cases/projects/favorites"; @@ -2565,12 +2343,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if (!_config.unstableOperations["CaseManagementApi.v2.moveCaseToProject"]) { - throw new Error( - "Unstable operation 'moveCaseToProject' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.moveCaseToProject'] = true`", - ); - } - // verify required parameter 'caseId' is not null or undefined if (caseId === null || caseId === undefined) { throw new RequiredError("caseId", "moveCaseToProject"); @@ -2632,14 +2404,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if ( - !_config.unstableOperations["CaseManagementApi.v2.removeCaseInsights"] - ) { - throw new Error( - "Unstable operation 'removeCaseInsights' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.removeCaseInsights'] = true`", - ); - } - // verify required parameter 'caseId' is not null or undefined if (caseId === null || caseId === undefined) { throw new RequiredError("caseId", "removeCaseInsights"); @@ -2897,14 +2661,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if ( - !_config.unstableOperations["CaseManagementApi.v2.unfavoriteCaseProject"] - ) { - throw new Error( - "Unstable operation 'unfavoriteCaseProject' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.unfavoriteCaseProject'] = true`", - ); - } - // verify required parameter 'projectId' is not null or undefined if (projectId === null || projectId === undefined) { throw new RequiredError("projectId", "unfavoriteCaseProject"); @@ -2951,12 +2707,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if (!_config.unstableOperations["CaseManagementApi.v2.unlinkJiraIssue"]) { - throw new Error( - "Unstable operation 'unlinkJiraIssue' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.unlinkJiraIssue'] = true`", - ); - } - // verify required parameter 'caseId' is not null or undefined if (caseId === null || caseId === undefined) { throw new RequiredError("caseId", "unlinkJiraIssue"); @@ -3004,12 +2754,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if (!_config.unstableOperations["CaseManagementApi.v2.unwatchCase"]) { - throw new Error( - "Unstable operation 'unwatchCase' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.unwatchCase'] = true`", - ); - } - // verify required parameter 'caseId' is not null or undefined if (caseId === null || caseId === undefined) { throw new RequiredError("caseId", "unwatchCase"); @@ -3121,16 +2865,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if ( - !_config.unstableOperations[ - "CaseManagementApi.v2.updateCaseAutomationRule" - ] - ) { - throw new Error( - "Unstable operation 'updateCaseAutomationRule' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.updateCaseAutomationRule'] = true`", - ); - } - // verify required parameter 'projectId' is not null or undefined if (projectId === null || projectId === undefined) { throw new RequiredError("projectId", "updateCaseAutomationRule"); @@ -3196,12 +2930,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if (!_config.unstableOperations["CaseManagementApi.v2.updateCaseComment"]) { - throw new Error( - "Unstable operation 'updateCaseComment' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.updateCaseComment'] = true`", - ); - } - // verify required parameter 'caseId' is not null or undefined if (caseId === null || caseId === undefined) { throw new RequiredError("caseId", "updateCaseComment"); @@ -3398,12 +3126,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if (!_config.unstableOperations["CaseManagementApi.v2.updateCaseDueDate"]) { - throw new Error( - "Unstable operation 'updateCaseDueDate' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.updateCaseDueDate'] = true`", - ); - } - // verify required parameter 'caseId' is not null or undefined if (caseId === null || caseId === undefined) { throw new RequiredError("caseId", "updateCaseDueDate"); @@ -3464,16 +3186,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if ( - !_config.unstableOperations[ - "CaseManagementApi.v2.updateCaseResolvedReason" - ] - ) { - throw new Error( - "Unstable operation 'updateCaseResolvedReason' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.updateCaseResolvedReason'] = true`", - ); - } - // verify required parameter 'caseId' is not null or undefined if (caseId === null || caseId === undefined) { throw new RequiredError("caseId", "updateCaseResolvedReason"); @@ -3594,12 +3306,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if (!_config.unstableOperations["CaseManagementApi.v2.updateCaseView"]) { - throw new Error( - "Unstable operation 'updateCaseView' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.updateCaseView'] = true`", - ); - } - // verify required parameter 'viewId' is not null or undefined if (viewId === null || viewId === undefined) { throw new RequiredError("viewId", "updateCaseView"); @@ -3660,16 +3366,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if ( - !_config.unstableOperations[ - "CaseManagementApi.v2.updateMaintenanceWindow" - ] - ) { - throw new Error( - "Unstable operation 'updateMaintenanceWindow' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.updateMaintenanceWindow'] = true`", - ); - } - // verify required parameter 'maintenanceWindowId' is not null or undefined if (maintenanceWindowId === null || maintenanceWindowId === undefined) { throw new RequiredError("maintenanceWindowId", "updateMaintenanceWindow"); @@ -3983,12 +3679,6 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if (!_config.unstableOperations["CaseManagementApi.v2.watchCase"]) { - throw new Error( - "Unstable operation 'watchCase' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementApi.v2.watchCase'] = true`", - ); - } - // verify required parameter 'caseId' is not null or undefined if (caseId === null || caseId === undefined) { throw new RequiredError("caseId", "watchCase"); diff --git a/services/case_management_attribute/src/v2/CaseManagementAttributeApi.ts b/services/case_management_attribute/src/v2/CaseManagementAttributeApi.ts index adc73eed2ed2..7a47b592c0ec 100644 --- a/services/case_management_attribute/src/v2/CaseManagementAttributeApi.ts +++ b/services/case_management_attribute/src/v2/CaseManagementAttributeApi.ts @@ -245,16 +245,6 @@ export class CaseManagementAttributeApiRequestFactory extends BaseAPIRequestFact ): Promise { const _config = _options || this.configuration; - if ( - !_config.unstableOperations[ - "CaseManagementAttributeApi.v2.updateCustomAttributeConfig" - ] - ) { - throw new Error( - "Unstable operation 'updateCustomAttributeConfig' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementAttributeApi.v2.updateCustomAttributeConfig'] = true`", - ); - } - // verify required parameter 'caseTypeId' is not null or undefined if (caseTypeId === null || caseTypeId === undefined) { throw new RequiredError("caseTypeId", "updateCustomAttributeConfig"); diff --git a/services/case_management_type/src/v2/CaseManagementTypeApi.ts b/services/case_management_type/src/v2/CaseManagementTypeApi.ts index 4b246aaddc48..b30183ce5b93 100644 --- a/services/case_management_type/src/v2/CaseManagementTypeApi.ts +++ b/services/case_management_type/src/v2/CaseManagementTypeApi.ts @@ -174,14 +174,6 @@ export class CaseManagementTypeApiRequestFactory extends BaseAPIRequestFactory { ): Promise { const _config = _options || this.configuration; - if ( - !_config.unstableOperations["CaseManagementTypeApi.v2.updateCaseType"] - ) { - throw new Error( - "Unstable operation 'updateCaseType' is disabled. Enable it by setting `configuration.unstableOperations['CaseManagementTypeApi.v2.updateCaseType'] = true`", - ); - } - // verify required parameter 'caseTypeId' is not null or undefined if (caseTypeId === null || caseTypeId === undefined) { throw new RequiredError("caseTypeId", "updateCaseType");