diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 680f08792e5b..90e1196820ee 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -121701,9 +121701,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. @@ -121748,9 +121745,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. @@ -121813,9 +121807,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. @@ -121879,9 +121870,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 @@ -121940,9 +121928,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. @@ -121970,9 +121955,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: >- @@ -122099,9 +122081,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`. @@ -122248,9 +122227,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 @@ -122277,9 +122253,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: >- @@ -122541,9 +122514,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 @@ -122617,9 +122587,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. @@ -122650,9 +122617,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 @@ -122706,9 +122670,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 @@ -122783,9 +122744,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. @@ -122840,9 +122798,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. @@ -122897,9 +122852,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 @@ -123084,9 +123036,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 @@ -123260,9 +123209,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. @@ -123310,9 +123256,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 @@ -123367,9 +123310,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. @@ -123397,9 +123337,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 @@ -123440,9 +123377,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 @@ -123497,9 +123431,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: >- @@ -123859,9 +123790,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 @@ -124101,9 +124029,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. @@ -124186,9 +124111,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. @@ -124271,9 +124193,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 @@ -124408,9 +124327,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 @@ -124454,9 +124370,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 @@ -124519,9 +124432,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 @@ -124581,9 +124491,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 @@ -124639,9 +124546,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 @@ -124713,9 +124617,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 @@ -124774,9 +124675,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. @@ -124840,9 +124738,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 @@ -124972,9 +124867,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 @@ -125202,9 +125094,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. @@ -125233,9 +125122,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 @@ -125263,9 +125149,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. @@ -158323,9 +158206,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 @@ -158382,9 +158262,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. @@ -158412,9 +158289,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 @@ -158473,9 +158347,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/examples/v2/case-management-attribute/UpdateCustomAttributeConfig.rb b/examples/v2/case-management-attribute/UpdateCustomAttributeConfig.rb index 641b70d9362c..b7bfc552c588 100644 --- a/examples/v2/case-management-attribute/UpdateCustomAttributeConfig.rb +++ b/examples/v2/case-management-attribute/UpdateCustomAttributeConfig.rb @@ -1,9 +1,6 @@ # Update custom attribute config returns "OK" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.update_custom_attribute_config".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAttributeAPI.new body = DatadogAPIClient::V2::CustomAttributeConfigUpdateRequest.new({ diff --git a/examples/v2/case-management-type/UpdateCaseType.rb b/examples/v2/case-management-type/UpdateCaseType.rb index 0a63cc3bc2da..7ade1887ce5a 100644 --- a/examples/v2/case-management-type/UpdateCaseType.rb +++ b/examples/v2/case-management-type/UpdateCaseType.rb @@ -1,9 +1,6 @@ # Update a case type returns "OK" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.update_case_type".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementTypeAPI.new body = DatadogAPIClient::V2::CaseTypeUpdateRequest.new({ diff --git a/examples/v2/case-management/AddCaseInsights.rb b/examples/v2/case-management/AddCaseInsights.rb index eaaec5bf0760..53007c8ace9e 100644 --- a/examples/v2/case-management/AddCaseInsights.rb +++ b/examples/v2/case-management/AddCaseInsights.rb @@ -1,9 +1,6 @@ # Add insights to a case returns "OK" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.add_case_insights".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::CaseInsightsRequest.new({ diff --git a/examples/v2/case-management/AggregateCases.rb b/examples/v2/case-management/AggregateCases.rb index 937cb68545e0..ec6472986a15 100644 --- a/examples/v2/case-management/AggregateCases.rb +++ b/examples/v2/case-management/AggregateCases.rb @@ -1,9 +1,6 @@ # Aggregate cases returns "OK" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.aggregate_cases".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::CaseAggregateRequest.new({ diff --git a/examples/v2/case-management/BulkUpdateCases.rb b/examples/v2/case-management/BulkUpdateCases.rb index 47775076dbab..9f65e2515d0c 100644 --- a/examples/v2/case-management/BulkUpdateCases.rb +++ b/examples/v2/case-management/BulkUpdateCases.rb @@ -1,9 +1,6 @@ # Bulk update cases returns "OK" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.bulk_update_cases".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::CaseBulkUpdateRequest.new({ diff --git a/examples/v2/case-management/CountCases.rb b/examples/v2/case-management/CountCases.rb index 2a93c7f202ea..619e3f8bdbc2 100644 --- a/examples/v2/case-management/CountCases.rb +++ b/examples/v2/case-management/CountCases.rb @@ -1,8 +1,5 @@ # Count cases returns "OK" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.count_cases".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new p api_instance.count_cases() diff --git a/examples/v2/case-management/CreateCaseAutomationRule.rb b/examples/v2/case-management/CreateCaseAutomationRule.rb index 4df20a9a6199..df31904212bb 100644 --- a/examples/v2/case-management/CreateCaseAutomationRule.rb +++ b/examples/v2/case-management/CreateCaseAutomationRule.rb @@ -1,9 +1,6 @@ # Create an automation rule returns "Created" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.create_case_automation_rule".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::AutomationRuleCreateRequest.new({ diff --git a/examples/v2/case-management/CreateCaseJiraIssue.rb b/examples/v2/case-management/CreateCaseJiraIssue.rb index 3b4306bd32c4..18096e83f73d 100644 --- a/examples/v2/case-management/CreateCaseJiraIssue.rb +++ b/examples/v2/case-management/CreateCaseJiraIssue.rb @@ -1,9 +1,6 @@ # Create Jira issue for case returns "Accepted" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.create_case_jira_issue".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::JiraIssueCreateRequest.new({ diff --git a/examples/v2/case-management/CreateCaseLink.rb b/examples/v2/case-management/CreateCaseLink.rb index 63dad423c442..704ce2de5ded 100644 --- a/examples/v2/case-management/CreateCaseLink.rb +++ b/examples/v2/case-management/CreateCaseLink.rb @@ -1,9 +1,6 @@ # Create a case link returns "Created" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.create_case_link".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::CaseLinkCreateRequest.new({ diff --git a/examples/v2/case-management/CreateCaseNotebook.rb b/examples/v2/case-management/CreateCaseNotebook.rb index a67377a3cdd7..777637d68b99 100644 --- a/examples/v2/case-management/CreateCaseNotebook.rb +++ b/examples/v2/case-management/CreateCaseNotebook.rb @@ -1,9 +1,6 @@ # Create investigation notebook for case returns "No Content" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.create_case_notebook".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::NotebookCreateRequest.new({ diff --git a/examples/v2/case-management/CreateCaseServiceNowTicket.rb b/examples/v2/case-management/CreateCaseServiceNowTicket.rb index fa81c88259e1..97fd2a403801 100644 --- a/examples/v2/case-management/CreateCaseServiceNowTicket.rb +++ b/examples/v2/case-management/CreateCaseServiceNowTicket.rb @@ -1,9 +1,6 @@ # Create ServiceNow ticket for case returns "Accepted" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.create_case_service_now_ticket".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::ServiceNowTicketCreateRequest.new({ diff --git a/examples/v2/case-management/CreateCaseView.rb b/examples/v2/case-management/CreateCaseView.rb index d1c90d2e529b..9c250073b981 100644 --- a/examples/v2/case-management/CreateCaseView.rb +++ b/examples/v2/case-management/CreateCaseView.rb @@ -1,9 +1,6 @@ # Create a case view returns "Created" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.create_case_view".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::CaseViewCreateRequest.new({ diff --git a/examples/v2/case-management/CreateMaintenanceWindow.rb b/examples/v2/case-management/CreateMaintenanceWindow.rb index 95846eda3df9..257306790295 100644 --- a/examples/v2/case-management/CreateMaintenanceWindow.rb +++ b/examples/v2/case-management/CreateMaintenanceWindow.rb @@ -1,9 +1,6 @@ # Create a maintenance window returns "Created" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.create_maintenance_window".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::MaintenanceWindowCreateRequest.new({ diff --git a/examples/v2/case-management/DeleteCaseAutomationRule.rb b/examples/v2/case-management/DeleteCaseAutomationRule.rb index 363031e58ca3..ce8da7e978a4 100644 --- a/examples/v2/case-management/DeleteCaseAutomationRule.rb +++ b/examples/v2/case-management/DeleteCaseAutomationRule.rb @@ -1,8 +1,5 @@ # Delete an automation rule returns "No Content" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.delete_case_automation_rule".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new api_instance.delete_case_automation_rule("project_id", "rule_id") diff --git a/examples/v2/case-management/DeleteCaseLink.rb b/examples/v2/case-management/DeleteCaseLink.rb index f140dd39a298..99aea56c8e1d 100644 --- a/examples/v2/case-management/DeleteCaseLink.rb +++ b/examples/v2/case-management/DeleteCaseLink.rb @@ -1,8 +1,5 @@ # Delete a case link returns "No Content" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.delete_case_link".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new api_instance.delete_case_link("804cd682-55f6-4541-ab00-b608b282ea7d") diff --git a/examples/v2/case-management/DeleteCaseView.rb b/examples/v2/case-management/DeleteCaseView.rb index 4bf89a91cc67..6279729deb8e 100644 --- a/examples/v2/case-management/DeleteCaseView.rb +++ b/examples/v2/case-management/DeleteCaseView.rb @@ -1,8 +1,5 @@ # Delete a case view returns "No Content" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.delete_case_view".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new api_instance.delete_case_view("view_id") diff --git a/examples/v2/case-management/DeleteMaintenanceWindow.rb b/examples/v2/case-management/DeleteMaintenanceWindow.rb index 85cb4fbbaa11..f12ff15f1337 100644 --- a/examples/v2/case-management/DeleteMaintenanceWindow.rb +++ b/examples/v2/case-management/DeleteMaintenanceWindow.rb @@ -1,8 +1,5 @@ # Delete a maintenance window returns "No Content" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.delete_maintenance_window".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new api_instance.delete_maintenance_window("maintenance_window_id") diff --git a/examples/v2/case-management/DisableCaseAutomationRule.rb b/examples/v2/case-management/DisableCaseAutomationRule.rb index 160008e29c46..23ac5998ca27 100644 --- a/examples/v2/case-management/DisableCaseAutomationRule.rb +++ b/examples/v2/case-management/DisableCaseAutomationRule.rb @@ -1,8 +1,5 @@ # Disable an automation rule returns "OK" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.disable_case_automation_rule".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new p api_instance.disable_case_automation_rule("project_id", "rule_id") diff --git a/examples/v2/case-management/EnableCaseAutomationRule.rb b/examples/v2/case-management/EnableCaseAutomationRule.rb index 342ea386d886..ce29bad948d2 100644 --- a/examples/v2/case-management/EnableCaseAutomationRule.rb +++ b/examples/v2/case-management/EnableCaseAutomationRule.rb @@ -1,8 +1,5 @@ # Enable an automation rule returns "OK" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.enable_case_automation_rule".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new p api_instance.enable_case_automation_rule("project_id", "rule_id") diff --git a/examples/v2/case-management/FavoriteCaseProject.rb b/examples/v2/case-management/FavoriteCaseProject.rb index f534273accf0..47275787dcdf 100644 --- a/examples/v2/case-management/FavoriteCaseProject.rb +++ b/examples/v2/case-management/FavoriteCaseProject.rb @@ -1,8 +1,5 @@ # Favorite a project returns "No Content" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.favorite_case_project".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new api_instance.favorite_case_project("project_id") diff --git a/examples/v2/case-management/GetCaseAutomationRule.rb b/examples/v2/case-management/GetCaseAutomationRule.rb index e66cf32e78d1..c0369c72c49b 100644 --- a/examples/v2/case-management/GetCaseAutomationRule.rb +++ b/examples/v2/case-management/GetCaseAutomationRule.rb @@ -1,8 +1,5 @@ # Get an automation rule returns "OK" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.get_case_automation_rule".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new p api_instance.get_case_automation_rule("project_id", "rule_id") diff --git a/examples/v2/case-management/GetCaseView.rb b/examples/v2/case-management/GetCaseView.rb index 632c21fd9511..6ffc0485f932 100644 --- a/examples/v2/case-management/GetCaseView.rb +++ b/examples/v2/case-management/GetCaseView.rb @@ -1,8 +1,5 @@ # Get a case view returns "OK" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.get_case_view".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new p api_instance.get_case_view("view_id") diff --git a/examples/v2/case-management/LinkIncident.rb b/examples/v2/case-management/LinkIncident.rb index 2a913c1c4c7d..3228a278f285 100644 --- a/examples/v2/case-management/LinkIncident.rb +++ b/examples/v2/case-management/LinkIncident.rb @@ -1,9 +1,6 @@ # Link incident to case returns "Created" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.link_incident".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::RelationshipToIncidentRequest.new({ diff --git a/examples/v2/case-management/LinkJiraIssueToCase.rb b/examples/v2/case-management/LinkJiraIssueToCase.rb index ca4a9bc66810..7055ecebefa6 100644 --- a/examples/v2/case-management/LinkJiraIssueToCase.rb +++ b/examples/v2/case-management/LinkJiraIssueToCase.rb @@ -1,9 +1,6 @@ # Link existing Jira issue to case returns "No Content" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.link_jira_issue_to_case".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::JiraIssueLinkRequest.new({ diff --git a/examples/v2/case-management/ListCaseAutomationRules.rb b/examples/v2/case-management/ListCaseAutomationRules.rb index 648da95f8f4c..3f718dc8b573 100644 --- a/examples/v2/case-management/ListCaseAutomationRules.rb +++ b/examples/v2/case-management/ListCaseAutomationRules.rb @@ -1,8 +1,5 @@ # List automation rules returns "OK" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.list_case_automation_rules".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new p api_instance.list_case_automation_rules("project_id") diff --git a/examples/v2/case-management/ListCaseLinks.rb b/examples/v2/case-management/ListCaseLinks.rb index 0d74c08e6ed0..9022b9784c31 100644 --- a/examples/v2/case-management/ListCaseLinks.rb +++ b/examples/v2/case-management/ListCaseLinks.rb @@ -1,8 +1,5 @@ # List case links returns "OK" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.list_case_links".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new p api_instance.list_case_links("CASE", "bf0cbac6-4c16-4cfb-b6bf-ca5e0ec37a4f") diff --git a/examples/v2/case-management/ListCaseTimeline.rb b/examples/v2/case-management/ListCaseTimeline.rb index 00881e28694c..f84a6ca076d0 100644 --- a/examples/v2/case-management/ListCaseTimeline.rb +++ b/examples/v2/case-management/ListCaseTimeline.rb @@ -1,8 +1,5 @@ # Get case timeline returns "OK" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.list_case_timeline".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new p api_instance.list_case_timeline("case_id") diff --git a/examples/v2/case-management/ListCaseViews.rb b/examples/v2/case-management/ListCaseViews.rb index 83c0d0c6acc3..72240f5b6c3e 100644 --- a/examples/v2/case-management/ListCaseViews.rb +++ b/examples/v2/case-management/ListCaseViews.rb @@ -1,8 +1,5 @@ # List case views returns "OK" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.list_case_views".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new p api_instance.list_case_views("project_id") diff --git a/examples/v2/case-management/ListCaseWatchers.rb b/examples/v2/case-management/ListCaseWatchers.rb index 31f0f27ec425..ae4e0c800294 100644 --- a/examples/v2/case-management/ListCaseWatchers.rb +++ b/examples/v2/case-management/ListCaseWatchers.rb @@ -1,8 +1,5 @@ # List case watchers returns "OK" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.list_case_watchers".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new p api_instance.list_case_watchers("case_id") diff --git a/examples/v2/case-management/ListMaintenanceWindows.rb b/examples/v2/case-management/ListMaintenanceWindows.rb index 6aa842e0d150..090a0db548a4 100644 --- a/examples/v2/case-management/ListMaintenanceWindows.rb +++ b/examples/v2/case-management/ListMaintenanceWindows.rb @@ -1,8 +1,5 @@ # List maintenance windows returns "OK" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.list_maintenance_windows".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new p api_instance.list_maintenance_windows() diff --git a/examples/v2/case-management/ListUserCaseProjectFavorites.rb b/examples/v2/case-management/ListUserCaseProjectFavorites.rb index 0c3b8372a7d5..e85a7c14afb0 100644 --- a/examples/v2/case-management/ListUserCaseProjectFavorites.rb +++ b/examples/v2/case-management/ListUserCaseProjectFavorites.rb @@ -1,8 +1,5 @@ # List project favorites returns "OK" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.list_user_case_project_favorites".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new p api_instance.list_user_case_project_favorites() diff --git a/examples/v2/case-management/MoveCaseToProject.rb b/examples/v2/case-management/MoveCaseToProject.rb index 49aac1beb82b..7b716f908141 100644 --- a/examples/v2/case-management/MoveCaseToProject.rb +++ b/examples/v2/case-management/MoveCaseToProject.rb @@ -1,9 +1,6 @@ # Update case project returns "OK" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.move_case_to_project".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::ProjectRelationship.new({ diff --git a/examples/v2/case-management/RemoveCaseInsights.rb b/examples/v2/case-management/RemoveCaseInsights.rb index 2707ebb93d53..989e6bd42e00 100644 --- a/examples/v2/case-management/RemoveCaseInsights.rb +++ b/examples/v2/case-management/RemoveCaseInsights.rb @@ -1,9 +1,6 @@ # Remove insights from a case returns "OK" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.remove_case_insights".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::CaseInsightsRequest.new({ diff --git a/examples/v2/case-management/UnfavoriteCaseProject.rb b/examples/v2/case-management/UnfavoriteCaseProject.rb index 3403a0b5ddaf..055d14e0d88e 100644 --- a/examples/v2/case-management/UnfavoriteCaseProject.rb +++ b/examples/v2/case-management/UnfavoriteCaseProject.rb @@ -1,8 +1,5 @@ # Unfavorite a project returns "No Content" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.unfavorite_case_project".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new api_instance.unfavorite_case_project("project_id") diff --git a/examples/v2/case-management/UnlinkJiraIssue.rb b/examples/v2/case-management/UnlinkJiraIssue.rb index 617479693723..38808ca2d43d 100644 --- a/examples/v2/case-management/UnlinkJiraIssue.rb +++ b/examples/v2/case-management/UnlinkJiraIssue.rb @@ -1,8 +1,5 @@ # Remove Jira issue link from case returns "No Content" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.unlink_jira_issue".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new api_instance.unlink_jira_issue("case_id") diff --git a/examples/v2/case-management/UnwatchCase.rb b/examples/v2/case-management/UnwatchCase.rb index 905b370ac5f8..18280d80f6b0 100644 --- a/examples/v2/case-management/UnwatchCase.rb +++ b/examples/v2/case-management/UnwatchCase.rb @@ -1,8 +1,5 @@ # Unwatch a case returns "No Content" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.unwatch_case".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new api_instance.unwatch_case("case_id", "user_uuid") diff --git a/examples/v2/case-management/UpdateCaseAutomationRule.rb b/examples/v2/case-management/UpdateCaseAutomationRule.rb index b02f5b182e33..18789bc39e54 100644 --- a/examples/v2/case-management/UpdateCaseAutomationRule.rb +++ b/examples/v2/case-management/UpdateCaseAutomationRule.rb @@ -1,9 +1,6 @@ # Update an automation rule returns "OK" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.update_case_automation_rule".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::AutomationRuleUpdateRequest.new({ diff --git a/examples/v2/case-management/UpdateCaseComment.rb b/examples/v2/case-management/UpdateCaseComment.rb index b3509c72d093..560ce0fe671e 100644 --- a/examples/v2/case-management/UpdateCaseComment.rb +++ b/examples/v2/case-management/UpdateCaseComment.rb @@ -1,9 +1,6 @@ # Update case comment returns "OK" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.update_case_comment".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::CaseUpdateCommentRequest.new({ diff --git a/examples/v2/case-management/UpdateCaseDueDate.rb b/examples/v2/case-management/UpdateCaseDueDate.rb index c1dce3c5fc21..c32c39dda5ed 100644 --- a/examples/v2/case-management/UpdateCaseDueDate.rb +++ b/examples/v2/case-management/UpdateCaseDueDate.rb @@ -1,9 +1,6 @@ # Update case due date returns "OK" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.update_case_due_date".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::CaseUpdateDueDateRequest.new({ diff --git a/examples/v2/case-management/UpdateCaseResolvedReason.rb b/examples/v2/case-management/UpdateCaseResolvedReason.rb index ef98037a2d57..c671455632b2 100644 --- a/examples/v2/case-management/UpdateCaseResolvedReason.rb +++ b/examples/v2/case-management/UpdateCaseResolvedReason.rb @@ -1,9 +1,6 @@ # Update case resolved reason returns "OK" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.update_case_resolved_reason".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::CaseUpdateResolvedReasonRequest.new({ diff --git a/examples/v2/case-management/UpdateCaseView.rb b/examples/v2/case-management/UpdateCaseView.rb index 2395b959f12a..bd4c50acdc1f 100644 --- a/examples/v2/case-management/UpdateCaseView.rb +++ b/examples/v2/case-management/UpdateCaseView.rb @@ -1,9 +1,6 @@ # Update a case view returns "OK" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.update_case_view".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::CaseViewUpdateRequest.new({ diff --git a/examples/v2/case-management/UpdateMaintenanceWindow.rb b/examples/v2/case-management/UpdateMaintenanceWindow.rb index e0b6049d5051..a4cca74ea755 100644 --- a/examples/v2/case-management/UpdateMaintenanceWindow.rb +++ b/examples/v2/case-management/UpdateMaintenanceWindow.rb @@ -1,9 +1,6 @@ # Update a maintenance window returns "OK" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.update_maintenance_window".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::MaintenanceWindowUpdateRequest.new({ diff --git a/examples/v2/case-management/WatchCase.rb b/examples/v2/case-management/WatchCase.rb index 39f8e2f33793..0ad58b83c0ba 100644 --- a/examples/v2/case-management/WatchCase.rb +++ b/examples/v2/case-management/WatchCase.rb @@ -1,8 +1,5 @@ # Watch a case returns "Created" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.watch_case".to_sym] = true -end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new p api_instance.watch_case("case_id", "user_uuid") 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/lib/datadog_api_client/configuration.rb b/lib/datadog_api_client/configuration.rb index 2c5ef75a1d65..03e3dca8a1d1 100644 --- a/lib/datadog_api_client/configuration.rb +++ b/lib/datadog_api_client/configuration.rb @@ -292,49 +292,6 @@ def initialize "v2.get_investigation": false, "v2.list_investigations": false, "v2.trigger_investigation": false, - "v2.add_case_insights": false, - "v2.aggregate_cases": false, - "v2.bulk_update_cases": false, - "v2.count_cases": false, - "v2.create_case_automation_rule": false, - "v2.create_case_jira_issue": false, - "v2.create_case_link": false, - "v2.create_case_notebook": false, - "v2.create_case_service_now_ticket": false, - "v2.create_case_view": false, - "v2.create_maintenance_window": false, - "v2.delete_case_automation_rule": false, - "v2.delete_case_link": false, - "v2.delete_case_view": false, - "v2.delete_maintenance_window": false, - "v2.disable_case_automation_rule": false, - "v2.enable_case_automation_rule": false, - "v2.favorite_case_project": false, - "v2.get_case_automation_rule": false, - "v2.get_case_view": false, - "v2.link_incident": false, - "v2.link_jira_issue_to_case": false, - "v2.list_case_automation_rules": false, - "v2.list_case_links": false, - "v2.list_case_timeline": false, - "v2.list_case_views": false, - "v2.list_case_watchers": false, - "v2.list_maintenance_windows": false, - "v2.list_user_case_project_favorites": false, - "v2.move_case_to_project": false, - "v2.remove_case_insights": false, - "v2.unfavorite_case_project": false, - "v2.unlink_jira_issue": false, - "v2.unwatch_case": false, - "v2.update_case_automation_rule": false, - "v2.update_case_comment": false, - "v2.update_case_due_date": false, - "v2.update_case_resolved_reason": false, - "v2.update_case_view": false, - "v2.update_maintenance_window": false, - "v2.watch_case": false, - "v2.update_case_type": false, - "v2.update_custom_attribute_config": false, "v2.create_change_request": false, "v2.create_change_request_branch": false, "v2.delete_change_request_decision": false, diff --git a/lib/datadog_api_client/v2/api/case_management_api.rb b/lib/datadog_api_client/v2/api/case_management_api.rb index a6f79e505c2c..66fc8187a1e3 100644 --- a/lib/datadog_api_client/v2/api/case_management_api.rb +++ b/lib/datadog_api_client/v2/api/case_management_api.rb @@ -40,12 +40,6 @@ def add_case_insights(case_id, body, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(CaseResponse, Integer, Hash)>] CaseResponse data, response status code and response headers def add_case_insights_with_http_info(case_id, body, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.add_case_insights".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.add_case_insights") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.add_case_insights")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.add_case_insights ...' @@ -117,12 +111,6 @@ def aggregate_cases(body, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(CaseAggregateResponse, Integer, Hash)>] CaseAggregateResponse data, response status code and response headers def aggregate_cases_with_http_info(body, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.aggregate_cases".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.aggregate_cases") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.aggregate_cases")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.aggregate_cases ...' @@ -334,12 +322,6 @@ def bulk_update_cases(body, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def bulk_update_cases_with_http_info(body, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.bulk_update_cases".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.bulk_update_cases") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.bulk_update_cases")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.bulk_update_cases ...' @@ -481,12 +463,6 @@ def count_cases(opts = {}) # @option opts [Integer] :limit Maximum facet values to return. # @return [Array<(CaseCountResponse, Integer, Hash)>] CaseCountResponse data, response status code and response headers def count_cases_with_http_info(opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.count_cases".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.count_cases") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.count_cases")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.count_cases ...' @@ -619,12 +595,6 @@ def create_case_automation_rule(project_id, body, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(AutomationRuleResponse, Integer, Hash)>] AutomationRuleResponse data, response status code and response headers def create_case_automation_rule_with_http_info(project_id, body, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.create_case_automation_rule".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_case_automation_rule") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_case_automation_rule")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.create_case_automation_rule ...' @@ -697,12 +667,6 @@ def create_case_jira_issue(case_id, body, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def create_case_jira_issue_with_http_info(case_id, body, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.create_case_jira_issue".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_case_jira_issue") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_case_jira_issue")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.create_case_jira_issue ...' @@ -774,12 +738,6 @@ def create_case_link(body, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(CaseLinkResponse, Integer, Hash)>] CaseLinkResponse data, response status code and response headers def create_case_link_with_http_info(body, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.create_case_link".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_case_link") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_case_link")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.create_case_link ...' @@ -848,12 +806,6 @@ def create_case_notebook(case_id, body, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def create_case_notebook_with_http_info(case_id, body, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.create_case_notebook".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_case_notebook") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_case_notebook")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.create_case_notebook ...' @@ -926,12 +878,6 @@ def create_case_service_now_ticket(case_id, body, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def create_case_service_now_ticket_with_http_info(case_id, body, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.create_case_service_now_ticket".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_case_service_now_ticket") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_case_service_now_ticket")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.create_case_service_now_ticket ...' @@ -1003,12 +949,6 @@ def create_case_view(body, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(CaseViewResponse, Integer, Hash)>] CaseViewResponse data, response status code and response headers def create_case_view_with_http_info(body, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.create_case_view".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_case_view") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_case_view")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.create_case_view ...' @@ -1076,12 +1016,6 @@ def create_maintenance_window(body, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(MaintenanceWindowResponse, Integer, Hash)>] MaintenanceWindowResponse data, response status code and response headers def create_maintenance_window_with_http_info(body, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.create_maintenance_window".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_maintenance_window") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_maintenance_window")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.create_maintenance_window ...' @@ -1289,12 +1223,6 @@ def delete_case_automation_rule(project_id, rule_id, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_case_automation_rule_with_http_info(project_id, rule_id, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.delete_case_automation_rule".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_case_automation_rule") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.delete_case_automation_rule")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.delete_case_automation_rule ...' @@ -1504,12 +1432,6 @@ def delete_case_link(link_id, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_case_link_with_http_info(link_id, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.delete_case_link".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_case_link") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.delete_case_link")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.delete_case_link ...' @@ -1575,12 +1497,6 @@ def delete_case_view(view_id, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_case_view_with_http_info(view_id, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.delete_case_view".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_case_view") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.delete_case_view")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.delete_case_view ...' @@ -1646,12 +1562,6 @@ def delete_maintenance_window(maintenance_window_id, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_maintenance_window_with_http_info(maintenance_window_id, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.delete_maintenance_window".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_maintenance_window") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.delete_maintenance_window")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.delete_maintenance_window ...' @@ -1853,12 +1763,6 @@ def disable_case_automation_rule(project_id, rule_id, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(AutomationRuleResponse, Integer, Hash)>] AutomationRuleResponse data, response status code and response headers def disable_case_automation_rule_with_http_info(project_id, rule_id, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.disable_case_automation_rule".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.disable_case_automation_rule") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.disable_case_automation_rule")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.disable_case_automation_rule ...' @@ -1929,12 +1833,6 @@ def enable_case_automation_rule(project_id, rule_id, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(AutomationRuleResponse, Integer, Hash)>] AutomationRuleResponse data, response status code and response headers def enable_case_automation_rule_with_http_info(project_id, rule_id, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.enable_case_automation_rule".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.enable_case_automation_rule") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.enable_case_automation_rule")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.enable_case_automation_rule ...' @@ -2004,12 +1902,6 @@ def favorite_case_project(project_id, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def favorite_case_project_with_http_info(project_id, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.favorite_case_project".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.favorite_case_project") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.favorite_case_project")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.favorite_case_project ...' @@ -2141,12 +2033,6 @@ def get_case_automation_rule(project_id, rule_id, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(AutomationRuleResponse, Integer, Hash)>] AutomationRuleResponse data, response status code and response headers def get_case_automation_rule_with_http_info(project_id, rule_id, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.get_case_automation_rule".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_case_automation_rule") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_case_automation_rule")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.get_case_automation_rule ...' @@ -2216,12 +2102,6 @@ def get_case_view(view_id, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(CaseViewResponse, Integer, Hash)>] CaseViewResponse data, response status code and response headers def get_case_view_with_http_info(view_id, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.get_case_view".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_case_view") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_case_view")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.get_case_view ...' @@ -2478,12 +2358,6 @@ def link_incident(case_id, body, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(CaseResponse, Integer, Hash)>] CaseResponse data, response status code and response headers def link_incident_with_http_info(case_id, body, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.link_incident".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.link_incident") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.link_incident")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.link_incident ...' @@ -2556,12 +2430,6 @@ def link_jira_issue_to_case(case_id, body, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def link_jira_issue_to_case_with_http_info(case_id, body, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.link_jira_issue_to_case".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.link_jira_issue_to_case") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.link_jira_issue_to_case")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.link_jira_issue_to_case ...' @@ -2633,12 +2501,6 @@ def list_case_automation_rules(project_id, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(AutomationRulesResponse, Integer, Hash)>] AutomationRulesResponse data, response status code and response headers def list_case_automation_rules_with_http_info(project_id, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.list_case_automation_rules".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_case_automation_rules") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_case_automation_rules")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.list_case_automation_rules ...' @@ -2706,12 +2568,6 @@ def list_case_links(entity_type, entity_id, opts = {}) # @option opts [String] :relationship Optional filter to only return links of a specific relationship type (for example, `BLOCKS` or `CAUSES`). # @return [Array<(CaseLinksResponse, Integer, Hash)>] CaseLinksResponse data, response status code and response headers def list_case_links_with_http_info(entity_type, entity_id, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.list_case_links".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_case_links") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_case_links")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.list_case_links ...' @@ -2787,12 +2643,6 @@ def list_case_timeline(case_id, opts = {}) # @option opts [Boolean] :sort_ascending If `true`, returns timeline cells in chronological order (oldest first). Defaults to `false` (newest first). # @return [Array<(TimelineResponse, Integer, Hash)>] TimelineResponse data, response status code and response headers def list_case_timeline_with_http_info(case_id, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.list_case_timeline".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_case_timeline") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_case_timeline")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.list_case_timeline ...' @@ -2861,12 +2711,6 @@ def list_case_views(project_id, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(CaseViewsResponse, Integer, Hash)>] CaseViewsResponse data, response status code and response headers def list_case_views_with_http_info(project_id, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.list_case_views".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_case_views") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_case_views")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.list_case_views ...' @@ -2933,12 +2777,6 @@ def list_case_watchers(case_id, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(CaseWatchersResponse, Integer, Hash)>] CaseWatchersResponse data, response status code and response headers def list_case_watchers_with_http_info(case_id, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.list_case_watchers".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_case_watchers") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_case_watchers")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.list_case_watchers ...' @@ -3003,12 +2841,6 @@ def list_maintenance_windows(opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(MaintenanceWindowsResponse, Integer, Hash)>] MaintenanceWindowsResponse data, response status code and response headers def list_maintenance_windows_with_http_info(opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.list_maintenance_windows".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_maintenance_windows") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_maintenance_windows")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.list_maintenance_windows ...' @@ -3069,12 +2901,6 @@ def list_user_case_project_favorites(opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(ProjectFavoritesResponse, Integer, Hash)>] ProjectFavoritesResponse data, response status code and response headers def list_user_case_project_favorites_with_http_info(opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.list_user_case_project_favorites".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_user_case_project_favorites") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_user_case_project_favorites")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.list_user_case_project_favorites ...' @@ -3137,12 +2963,6 @@ def move_case_to_project(case_id, body, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(CaseResponse, Integer, Hash)>] CaseResponse data, response status code and response headers def move_case_to_project_with_http_info(case_id, body, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.move_case_to_project".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.move_case_to_project") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.move_case_to_project")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.move_case_to_project ...' @@ -3215,12 +3035,6 @@ def remove_case_insights(case_id, body, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(CaseResponse, Integer, Hash)>] CaseResponse data, response status code and response headers def remove_case_insights_with_http_info(case_id, body, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.remove_case_insights".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.remove_case_insights") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.remove_case_insights")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.remove_case_insights ...' @@ -3532,12 +3346,6 @@ def unfavorite_case_project(project_id, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def unfavorite_case_project_with_http_info(project_id, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.unfavorite_case_project".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.unfavorite_case_project") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.unfavorite_case_project")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.unfavorite_case_project ...' @@ -3603,12 +3411,6 @@ def unlink_jira_issue(case_id, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def unlink_jira_issue_with_http_info(case_id, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.unlink_jira_issue".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.unlink_jira_issue") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.unlink_jira_issue")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.unlink_jira_issue ...' @@ -3675,12 +3477,6 @@ def unwatch_case(case_id, user_uuid, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def unwatch_case_with_http_info(case_id, user_uuid, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.unwatch_case".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.unwatch_case") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.unwatch_case")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.unwatch_case ...' @@ -3824,12 +3620,6 @@ def update_case_automation_rule(project_id, rule_id, body, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(AutomationRuleResponse, Integer, Hash)>] AutomationRuleResponse data, response status code and response headers def update_case_automation_rule_with_http_info(project_id, rule_id, body, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.update_case_automation_rule".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.update_case_automation_rule") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.update_case_automation_rule")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.update_case_automation_rule ...' @@ -3907,12 +3697,6 @@ def update_case_comment(case_id, cell_id, body, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def update_case_comment_with_http_info(case_id, cell_id, body, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.update_case_comment".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.update_case_comment") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.update_case_comment")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.update_case_comment ...' @@ -4138,12 +3922,6 @@ def update_case_due_date(case_id, body, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(CaseResponse, Integer, Hash)>] CaseResponse data, response status code and response headers def update_case_due_date_with_http_info(case_id, body, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.update_case_due_date".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.update_case_due_date") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.update_case_due_date")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.update_case_due_date ...' @@ -4216,12 +3994,6 @@ def update_case_resolved_reason(case_id, body, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(CaseResponse, Integer, Hash)>] CaseResponse data, response status code and response headers def update_case_resolved_reason_with_http_info(case_id, body, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.update_case_resolved_reason".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.update_case_resolved_reason") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.update_case_resolved_reason")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.update_case_resolved_reason ...' @@ -4366,12 +4138,6 @@ def update_case_view(view_id, body, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(CaseViewResponse, Integer, Hash)>] CaseViewResponse data, response status code and response headers def update_case_view_with_http_info(view_id, body, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.update_case_view".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.update_case_view") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.update_case_view")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.update_case_view ...' @@ -4444,12 +4210,6 @@ def update_maintenance_window(maintenance_window_id, body, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(MaintenanceWindowResponse, Integer, Hash)>] MaintenanceWindowResponse data, response status code and response headers def update_maintenance_window_with_http_info(maintenance_window_id, body, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.update_maintenance_window".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.update_maintenance_window") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.update_maintenance_window")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.update_maintenance_window ...' @@ -4815,12 +4575,6 @@ def watch_case(case_id, user_uuid, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def watch_case_with_http_info(case_id, user_uuid, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.watch_case".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.watch_case") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.watch_case")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAPI.watch_case ...' diff --git a/lib/datadog_api_client/v2/api/case_management_attribute_api.rb b/lib/datadog_api_client/v2/api/case_management_attribute_api.rb index db843133689b..ff01ea691103 100644 --- a/lib/datadog_api_client/v2/api/case_management_attribute_api.rb +++ b/lib/datadog_api_client/v2/api/case_management_attribute_api.rb @@ -308,12 +308,6 @@ def update_custom_attribute_config(case_type_id, custom_attribute_id, body, opts # @param opts [Hash] the optional parameters # @return [Array<(CustomAttributeConfigResponse, Integer, Hash)>] CustomAttributeConfigResponse data, response status code and response headers def update_custom_attribute_config_with_http_info(case_type_id, custom_attribute_id, body, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.update_custom_attribute_config".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.update_custom_attribute_config") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.update_custom_attribute_config")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementAttributeAPI.update_custom_attribute_config ...' diff --git a/lib/datadog_api_client/v2/api/case_management_type_api.rb b/lib/datadog_api_client/v2/api/case_management_type_api.rb index 1aa1ac78a8fb..712b6d99b1d7 100644 --- a/lib/datadog_api_client/v2/api/case_management_type_api.rb +++ b/lib/datadog_api_client/v2/api/case_management_type_api.rb @@ -232,12 +232,6 @@ def update_case_type(case_type_id, body, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(CaseTypeResponse, Integer, Hash)>] CaseTypeResponse data, response status code and response headers def update_case_type_with_http_info(case_type_id, body, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.update_case_type".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.update_case_type") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.update_case_type")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CaseManagementTypeAPI.update_case_type ...'