From 696dc3780844d7eec56d452e8b269ce479568dca Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 21 Jul 2026 16:03:07 +0000 Subject: [PATCH] Regenerate client from commit a590106 of spec repo --- .generator/schemas/v2/openapi.yaml | 129 ------ api/datadog/configuration.go | 43 -- api/datadogV2/api_case_management.go | 371 ------------------ .../api_case_management_attribute.go | 11 - api/datadogV2/api_case_management_type.go | 11 - .../UpdateCustomAttributeConfig.go | 1 - .../v2/case-management-type/UpdateCaseType.go | 1 - .../v2/case-management/AddCaseInsights.go | 1 - examples/v2/case-management/AggregateCases.go | 1 - .../v2/case-management/BulkUpdateCases.go | 1 - examples/v2/case-management/CountCases.go | 1 - .../CreateCaseAutomationRule.go | 1 - .../v2/case-management/CreateCaseJiraIssue.go | 1 - examples/v2/case-management/CreateCaseLink.go | 1 - .../v2/case-management/CreateCaseNotebook.go | 1 - .../CreateCaseServiceNowTicket.go | 1 - examples/v2/case-management/CreateCaseView.go | 1 - .../CreateMaintenanceWindow.go | 1 - .../DeleteCaseAutomationRule.go | 1 - examples/v2/case-management/DeleteCaseLink.go | 1 - examples/v2/case-management/DeleteCaseView.go | 1 - .../DeleteMaintenanceWindow.go | 1 - .../DisableCaseAutomationRule.go | 1 - .../EnableCaseAutomationRule.go | 1 - .../v2/case-management/FavoriteCaseProject.go | 1 - .../case-management/GetCaseAutomationRule.go | 1 - examples/v2/case-management/GetCaseView.go | 1 - examples/v2/case-management/LinkIncident.go | 1 - .../v2/case-management/LinkJiraIssueToCase.go | 1 - .../ListCaseAutomationRules.go | 1 - examples/v2/case-management/ListCaseLinks.go | 1 - .../v2/case-management/ListCaseTimeline.go | 1 - examples/v2/case-management/ListCaseViews.go | 1 - .../v2/case-management/ListCaseWatchers.go | 1 - .../case-management/ListMaintenanceWindows.go | 1 - .../ListUserCaseProjectFavorites.go | 1 - .../v2/case-management/MoveCaseToProject.go | 1 - .../v2/case-management/RemoveCaseInsights.go | 1 - .../case-management/UnfavoriteCaseProject.go | 1 - .../v2/case-management/UnlinkJiraIssue.go | 1 - examples/v2/case-management/UnwatchCase.go | 1 - .../UpdateCaseAutomationRule.go | 1 - .../v2/case-management/UpdateCaseComment.go | 1 - .../v2/case-management/UpdateCaseDueDate.go | 1 - .../UpdateCaseResolvedReason.go | 1 - examples/v2/case-management/UpdateCaseView.go | 1 - .../UpdateMaintenanceWindow.go | 1 - examples/v2/case-management/WatchCase.go | 1 - .../features/v2/case_management.feature | 369 ++++++----------- .../v2/case_management_attribute.feature | 9 +- .../features/v2/case_management_type.feature | 9 +- 51 files changed, 129 insertions(+), 866 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index bed8d511840..590f5d3c1ff 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -121702,9 +121702,6 @@ paths: summary: Aggregate cases tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/cases/bulk: post: description: Applies a single action (such as changing priority, status, assignment, or archiving) to multiple cases at once. The list of case IDs and the action type with its payload are specified in the request body. @@ -121749,9 +121746,6 @@ paths: summary: Bulk update cases tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/cases/count: get: description: Returns case counts, optionally grouped by one or more fields (for example, status, priority). Supports a query filter to narrow the scope. @@ -121814,9 +121808,6 @@ paths: summary: Count cases tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/cases/link: get: description: Returns all links associated with a case. Links define relationships (for example, BLOCKS) between cases. Requires entity_type and entity_id query parameters. @@ -121880,9 +121871,6 @@ paths: summary: List case links tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). post: description: Creates a directional link between two cases (for example, case A blocks case B). The parent and child cases and their relationship type must be specified. operationId: CreateCaseLink @@ -121941,9 +121929,6 @@ paths: summary: Create a case link tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/cases/link/{link_id}: delete: description: Deletes an existing link between cases by link ID. @@ -121971,9 +121956,6 @@ paths: summary: Delete a case link tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/cases/projects: get: description: >- @@ -122100,9 +122082,6 @@ paths: summary: List project favorites tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/cases/projects/{project_id}: delete: description: Remove a project using the project's `id`. @@ -122249,9 +122228,6 @@ paths: summary: Unfavorite a project tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). post: description: Marks a case project as a favorite for the current authenticated user. operationId: FavoriteCaseProject @@ -122278,9 +122254,6 @@ paths: summary: Favorite a project tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/cases/projects/{project_id}/notification_rules: get: description: >- @@ -122542,9 +122515,6 @@ paths: summary: List automation rules tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). post: description: Creates an automation rule for a project. The rule defines a trigger event (for example, case created, status transitioned) and an action to execute. operationId: CreateCaseAutomationRule @@ -122618,9 +122588,6 @@ paths: summary: Create an automation rule tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/cases/projects/{project_id}/rules/{rule_id}: delete: description: Permanently deletes an automation rule from a project. @@ -122651,9 +122618,6 @@ paths: summary: Delete an automation rule tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). get: description: Returns a single automation rule identified by its UUID, including its trigger, action, and current state (enabled/disabled). operationId: GetCaseAutomationRule @@ -122707,9 +122671,6 @@ paths: summary: Get an automation rule tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). put: description: Updates the trigger, action, name, or state of an existing automation rule. operationId: UpdateCaseAutomationRule @@ -122784,9 +122745,6 @@ paths: summary: Update an automation rule tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/cases/projects/{project_id}/rules/{rule_id}/disable: post: description: Disables an automation rule so it no longer triggers on case events. The rule configuration is preserved. @@ -122841,9 +122799,6 @@ paths: summary: Disable an automation rule tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/cases/projects/{project_id}/rules/{rule_id}/enable: post: description: Enables a previously disabled automation rule so it triggers on matching case events. @@ -122898,9 +122853,6 @@ paths: summary: Enable an automation rule tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/cases/types: get: description: Get all case types @@ -123085,9 +123037,6 @@ paths: summary: Update a case type tags: - Case Management Type - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/cases/types/{case_type_id}/custom_attributes: get: description: Get all custom attribute config of case type @@ -123261,9 +123210,6 @@ paths: summary: Update custom attribute config tags: - Case Management Attribute - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/cases/views: get: description: Returns all saved case views for a given project. Views are saved search queries that allow quick access to filtered lists of cases. @@ -123311,9 +123257,6 @@ paths: summary: List case views tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). post: description: Creates a new saved case view with a name, filter query, and associated project. Optionally, a notification rule can be linked to the view. operationId: CreateCaseView @@ -123368,9 +123311,6 @@ paths: summary: Create a case view tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/cases/views/{view_id}: delete: description: Permanently deletes a saved case view. @@ -123398,9 +123338,6 @@ paths: summary: Delete a case view tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). get: description: Returns a single saved case view identified by its UUID, including its query, associated project, and timestamps. operationId: GetCaseView @@ -123441,9 +123378,6 @@ paths: summary: Get a case view tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). put: description: Updates the name, query, or notification rule of an existing case view. operationId: UpdateCaseView @@ -123498,9 +123432,6 @@ paths: summary: Update a case view tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/cases/{case_id}: get: description: >- @@ -123860,9 +123791,6 @@ paths: summary: Update case comment tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/cases/{case_id}/custom_attributes/{custom_attribute_key}: delete: description: Delete custom attribute from case @@ -124102,9 +124030,6 @@ paths: summary: Update case due date tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/cases/{case_id}/insights: delete: description: Removes one or more previously added insights from a case by specifying their type and resource identifier in the request body. @@ -124187,9 +124112,6 @@ paths: summary: Remove insights from a case tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). put: description: >- Adds one or more insights to a case. Insights are references to related Datadog resources (such as monitors, security signals, incidents, or error tracking issues) that provide investigative context. Up to 100 insights can be added per request. Each insight requires a type (see `CaseInsightType` for allowed values), a ref (URL path to the resource), and a resource_id. @@ -124272,9 +124194,6 @@ paths: summary: Add insights to a case tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/cases/{case_id}/priority: post: description: Update case priority @@ -124409,9 +124328,6 @@ paths: summary: Link incident to case tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/cases/{case_id}/relationships/jira_issues: delete: description: Remove the link between a Jira issue and a case @@ -124455,9 +124371,6 @@ paths: summary: Remove Jira issue link from case tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). patch: description: Link an existing Jira issue to a case operationId: LinkJiraIssueToCase @@ -124520,9 +124433,6 @@ paths: summary: Link existing Jira issue to case tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). post: description: Create a new Jira issue and link it to a case operationId: CreateCaseJiraIssue @@ -124582,9 +124492,6 @@ paths: summary: Create Jira issue for case tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/cases/{case_id}/relationships/notebook: post: description: Create a new investigation notebook and link it to a case @@ -124640,9 +124547,6 @@ paths: summary: Create investigation notebook for case tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/cases/{case_id}/relationships/project: patch: description: Update the project associated with a case @@ -124714,9 +124618,6 @@ paths: summary: Update case project tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/cases/{case_id}/relationships/servicenow_tickets: post: description: Create a new ServiceNow incident ticket and link it to a case @@ -124775,9 +124676,6 @@ paths: summary: Create ServiceNow ticket for case tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/cases/{case_id}/resolved_reason: post: description: Sets the resolved reason for a security case (for example, FALSE_POSITIVE, TRUE_POSITIVE). Applicable to security-type cases. @@ -124841,9 +124739,6 @@ paths: summary: Update case resolved reason tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/cases/{case_id}/status: post: description: Update case status @@ -124973,9 +124868,6 @@ paths: summary: Get case timeline tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/cases/{case_id}/title: post: description: Update case title @@ -125203,9 +125095,6 @@ paths: summary: List case watchers tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/cases/{case_id}/watchers/{user_uuid}: delete: description: Removes a user from the watchers list of a case. The user no longer receives notifications about updates to the case. @@ -125234,9 +125123,6 @@ paths: summary: Unwatch a case tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). post: description: Adds a user (identified by their UUID) as a watcher of a case. The user receives notifications about subsequent updates to the case. operationId: WatchCase @@ -125264,9 +125150,6 @@ paths: summary: Watch a case tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/catalog/entity: get: description: Get a list of entities from Software Catalog. @@ -158333,9 +158216,6 @@ paths: summary: List maintenance windows tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). post: description: Creates a maintenance window for event management cases with a name, case filter query, and time range (start and end). operationId: CreateMaintenanceWindow @@ -158392,9 +158272,6 @@ paths: summary: Create a maintenance window tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/maintenance_windows/{maintenance_window_id}: delete: description: Permanently deletes a maintenance window. @@ -158422,9 +158299,6 @@ paths: summary: Delete a maintenance window tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). put: description: Updates the name, query, start time, or end time of an existing maintenance window. operationId: UpdateMaintenanceWindow @@ -158483,9 +158357,6 @@ paths: summary: Update a maintenance window tags: - Case Management - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/metrics: get: description: |- diff --git a/api/datadog/configuration.go b/api/datadog/configuration.go index 3541f99f004..cb8a866d8e3 100644 --- a/api/datadog/configuration.go +++ b/api/datadog/configuration.go @@ -763,49 +763,6 @@ func NewConfiguration() *Configuration { "v2.GetInvestigation": false, "v2.ListInvestigations": false, "v2.TriggerInvestigation": false, - "v2.AddCaseInsights": false, - "v2.AggregateCases": false, - "v2.BulkUpdateCases": false, - "v2.CountCases": false, - "v2.CreateCaseAutomationRule": false, - "v2.CreateCaseJiraIssue": false, - "v2.CreateCaseLink": false, - "v2.CreateCaseNotebook": false, - "v2.CreateCaseServiceNowTicket": false, - "v2.CreateCaseView": false, - "v2.CreateMaintenanceWindow": false, - "v2.DeleteCaseAutomationRule": false, - "v2.DeleteCaseLink": false, - "v2.DeleteCaseView": false, - "v2.DeleteMaintenanceWindow": false, - "v2.DisableCaseAutomationRule": false, - "v2.EnableCaseAutomationRule": false, - "v2.FavoriteCaseProject": false, - "v2.GetCaseAutomationRule": false, - "v2.GetCaseView": false, - "v2.LinkIncident": false, - "v2.LinkJiraIssueToCase": false, - "v2.ListCaseAutomationRules": false, - "v2.ListCaseLinks": false, - "v2.ListCaseTimeline": false, - "v2.ListCaseViews": false, - "v2.ListCaseWatchers": false, - "v2.ListMaintenanceWindows": false, - "v2.ListUserCaseProjectFavorites": false, - "v2.MoveCaseToProject": false, - "v2.RemoveCaseInsights": false, - "v2.UnfavoriteCaseProject": false, - "v2.UnlinkJiraIssue": false, - "v2.UnwatchCase": false, - "v2.UpdateCaseAutomationRule": false, - "v2.UpdateCaseComment": false, - "v2.UpdateCaseDueDate": false, - "v2.UpdateCaseResolvedReason": false, - "v2.UpdateCaseView": false, - "v2.UpdateMaintenanceWindow": false, - "v2.WatchCase": false, - "v2.UpdateCaseType": false, - "v2.UpdateCustomAttributeConfig": false, "v2.CreateChangeRequest": false, "v2.CreateChangeRequestBranch": false, "v2.DeleteChangeRequestDecision": false, diff --git a/api/datadogV2/api_case_management.go b/api/datadogV2/api_case_management.go index 891dec96366..aaecc4edc67 100644 --- a/api/datadogV2/api_case_management.go +++ b/api/datadogV2/api_case_management.go @@ -6,8 +6,6 @@ package datadogV2 import ( _context "context" - _fmt "fmt" - _log "log" _nethttp "net/http" _neturl "net/url" @@ -26,15 +24,6 @@ func (a *CaseManagementApi) AddCaseInsights(ctx _context.Context, caseId string, localVarReturnValue CaseResponse ) - operationId := "v2.AddCaseInsights" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.AddCaseInsights") if err != nil { return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -125,15 +114,6 @@ func (a *CaseManagementApi) AggregateCases(ctx _context.Context, body CaseAggreg localVarReturnValue CaseAggregateResponse ) - operationId := "v2.AggregateCases" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.AggregateCases") if err != nil { return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -375,15 +355,6 @@ func (a *CaseManagementApi) BulkUpdateCases(ctx _context.Context, body CaseBulkU localVarPostBody interface{} ) - operationId := "v2.BulkUpdateCases" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.BulkUpdateCases") if err != nil { return nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -575,15 +546,6 @@ func (a *CaseManagementApi) CountCases(ctx _context.Context, o ...CountCasesOpti optionalParams = o[0] } - operationId := "v2.CountCases" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.CountCases") if err != nil { return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -750,15 +712,6 @@ func (a *CaseManagementApi) CreateCaseAutomationRule(ctx _context.Context, proje localVarReturnValue AutomationRuleResponse ) - operationId := "v2.CreateCaseAutomationRule" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.CreateCaseAutomationRule") if err != nil { return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -839,15 +792,6 @@ func (a *CaseManagementApi) CreateCaseJiraIssue(ctx _context.Context, caseId str localVarPostBody interface{} ) - operationId := "v2.CreateCaseJiraIssue" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.CreateCaseJiraIssue") if err != nil { return nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -929,15 +873,6 @@ func (a *CaseManagementApi) CreateCaseLink(ctx _context.Context, body CaseLinkCr localVarReturnValue CaseLinkResponse ) - operationId := "v2.CreateCaseLink" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.CreateCaseLink") if err != nil { return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -1017,15 +952,6 @@ func (a *CaseManagementApi) CreateCaseNotebook(ctx _context.Context, caseId stri localVarPostBody interface{} ) - operationId := "v2.CreateCaseNotebook" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.CreateCaseNotebook") if err != nil { return nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -1106,15 +1032,6 @@ func (a *CaseManagementApi) CreateCaseServiceNowTicket(ctx _context.Context, cas localVarPostBody interface{} ) - operationId := "v2.CreateCaseServiceNowTicket" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.CreateCaseServiceNowTicket") if err != nil { return nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -1196,15 +1113,6 @@ func (a *CaseManagementApi) CreateCaseView(ctx _context.Context, body CaseViewCr localVarReturnValue CaseViewResponse ) - operationId := "v2.CreateCaseView" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.CreateCaseView") if err != nil { return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -1285,15 +1193,6 @@ func (a *CaseManagementApi) CreateMaintenanceWindow(ctx _context.Context, body M localVarReturnValue MaintenanceWindowResponse ) - operationId := "v2.CreateMaintenanceWindow" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.CreateMaintenanceWindow") if err != nil { return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -1534,15 +1433,6 @@ func (a *CaseManagementApi) DeleteCaseAutomationRule(ctx _context.Context, proje localVarPostBody interface{} ) - operationId := "v2.DeleteCaseAutomationRule" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.DeleteCaseAutomationRule") if err != nil { return nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -1760,15 +1650,6 @@ func (a *CaseManagementApi) DeleteCaseLink(ctx _context.Context, linkId string) localVarPostBody interface{} ) - operationId := "v2.DeleteCaseLink" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.DeleteCaseLink") if err != nil { return nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -1837,15 +1718,6 @@ func (a *CaseManagementApi) DeleteCaseView(ctx _context.Context, viewId string) localVarPostBody interface{} ) - operationId := "v2.DeleteCaseView" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.DeleteCaseView") if err != nil { return nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -1914,15 +1786,6 @@ func (a *CaseManagementApi) DeleteMaintenanceWindow(ctx _context.Context, mainte localVarPostBody interface{} ) - operationId := "v2.DeleteMaintenanceWindow" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.DeleteMaintenanceWindow") if err != nil { return nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -2129,15 +1992,6 @@ func (a *CaseManagementApi) DisableCaseAutomationRule(ctx _context.Context, proj localVarReturnValue AutomationRuleResponse ) - operationId := "v2.DisableCaseAutomationRule" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.DisableCaseAutomationRule") if err != nil { return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -2217,15 +2071,6 @@ func (a *CaseManagementApi) EnableCaseAutomationRule(ctx _context.Context, proje localVarReturnValue AutomationRuleResponse ) - operationId := "v2.EnableCaseAutomationRule" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.EnableCaseAutomationRule") if err != nil { return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -2304,15 +2149,6 @@ func (a *CaseManagementApi) FavoriteCaseProject(ctx _context.Context, projectId localVarPostBody interface{} ) - operationId := "v2.FavoriteCaseProject" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.FavoriteCaseProject") if err != nil { return nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -2460,15 +2296,6 @@ func (a *CaseManagementApi) GetCaseAutomationRule(ctx _context.Context, projectI localVarReturnValue AutomationRuleResponse ) - operationId := "v2.GetCaseAutomationRule" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.GetCaseAutomationRule") if err != nil { return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -2548,15 +2375,6 @@ func (a *CaseManagementApi) GetCaseView(ctx _context.Context, viewId string) (Ca localVarReturnValue CaseViewResponse ) - operationId := "v2.GetCaseView" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.GetCaseView") if err != nil { return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -2868,15 +2686,6 @@ func (a *CaseManagementApi) LinkIncident(ctx _context.Context, caseId string, bo localVarReturnValue CaseResponse ) - operationId := "v2.LinkIncident" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.LinkIncident") if err != nil { return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -2966,15 +2775,6 @@ func (a *CaseManagementApi) LinkJiraIssueToCase(ctx _context.Context, caseId str localVarPostBody interface{} ) - operationId := "v2.LinkJiraIssueToCase" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.LinkJiraIssueToCase") if err != nil { return nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -3056,15 +2856,6 @@ func (a *CaseManagementApi) ListCaseAutomationRules(ctx _context.Context, projec localVarReturnValue AutomationRulesResponse ) - operationId := "v2.ListCaseAutomationRules" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.ListCaseAutomationRules") if err != nil { return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -3168,15 +2959,6 @@ func (a *CaseManagementApi) ListCaseLinks(ctx _context.Context, entityType strin optionalParams = o[0] } - operationId := "v2.ListCaseLinks" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.ListCaseLinks") if err != nil { return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -3298,15 +3080,6 @@ func (a *CaseManagementApi) ListCaseTimeline(ctx _context.Context, caseId string optionalParams = o[0] } - operationId := "v2.ListCaseTimeline" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.ListCaseTimeline") if err != nil { return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -3394,15 +3167,6 @@ func (a *CaseManagementApi) ListCaseViews(ctx _context.Context, projectId string localVarReturnValue CaseViewsResponse ) - operationId := "v2.ListCaseViews" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.ListCaseViews") if err != nil { return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -3481,15 +3245,6 @@ func (a *CaseManagementApi) ListCaseWatchers(ctx _context.Context, caseId string localVarReturnValue CaseWatchersResponse ) - operationId := "v2.ListCaseWatchers" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.ListCaseWatchers") if err != nil { return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -3568,15 +3323,6 @@ func (a *CaseManagementApi) ListMaintenanceWindows(ctx _context.Context) (Mainte localVarReturnValue MaintenanceWindowsResponse ) - operationId := "v2.ListMaintenanceWindows" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.ListMaintenanceWindows") if err != nil { return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -3654,15 +3400,6 @@ func (a *CaseManagementApi) ListUserCaseProjectFavorites(ctx _context.Context) ( localVarReturnValue ProjectFavoritesResponse ) - operationId := "v2.ListUserCaseProjectFavorites" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.ListUserCaseProjectFavorites") if err != nil { return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -3740,15 +3477,6 @@ func (a *CaseManagementApi) MoveCaseToProject(ctx _context.Context, caseId strin localVarReturnValue CaseResponse ) - operationId := "v2.MoveCaseToProject" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.MoveCaseToProject") if err != nil { return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -3839,15 +3567,6 @@ func (a *CaseManagementApi) RemoveCaseInsights(ctx _context.Context, caseId stri localVarReturnValue CaseResponse ) - operationId := "v2.RemoveCaseInsights" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.RemoveCaseInsights") if err != nil { return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -4292,15 +4011,6 @@ func (a *CaseManagementApi) UnfavoriteCaseProject(ctx _context.Context, projectI localVarPostBody interface{} ) - operationId := "v2.UnfavoriteCaseProject" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.UnfavoriteCaseProject") if err != nil { return nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -4369,15 +4079,6 @@ func (a *CaseManagementApi) UnlinkJiraIssue(ctx _context.Context, caseId string) localVarPostBody interface{} ) - operationId := "v2.UnlinkJiraIssue" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.UnlinkJiraIssue") if err != nil { return nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -4455,15 +4156,6 @@ func (a *CaseManagementApi) UnwatchCase(ctx _context.Context, caseId string, use localVarPostBody interface{} ) - operationId := "v2.UnwatchCase" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.UnwatchCase") if err != nil { return nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -4615,15 +4307,6 @@ func (a *CaseManagementApi) UpdateCaseAutomationRule(ctx _context.Context, proje localVarReturnValue AutomationRuleResponse ) - operationId := "v2.UpdateCaseAutomationRule" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.UpdateCaseAutomationRule") if err != nil { return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -4705,15 +4388,6 @@ func (a *CaseManagementApi) UpdateCaseComment(ctx _context.Context, caseId strin localVarPostBody interface{} ) - operationId := "v2.UpdateCaseComment" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.UpdateCaseComment") if err != nil { return nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -4950,15 +4624,6 @@ func (a *CaseManagementApi) UpdateCaseDueDate(ctx _context.Context, caseId strin localVarReturnValue CaseResponse ) - operationId := "v2.UpdateCaseDueDate" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.UpdateCaseDueDate") if err != nil { return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -5040,15 +4705,6 @@ func (a *CaseManagementApi) UpdateCaseResolvedReason(ctx _context.Context, caseI localVarReturnValue CaseResponse ) - operationId := "v2.UpdateCaseResolvedReason" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.UpdateCaseResolvedReason") if err != nil { return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -5211,15 +4867,6 @@ func (a *CaseManagementApi) UpdateCaseView(ctx _context.Context, viewId string, localVarReturnValue CaseViewResponse ) - operationId := "v2.UpdateCaseView" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.UpdateCaseView") if err != nil { return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -5301,15 +4948,6 @@ func (a *CaseManagementApi) UpdateMaintenanceWindow(ctx _context.Context, mainte localVarReturnValue MaintenanceWindowResponse ) - operationId := "v2.UpdateMaintenanceWindow" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.UpdateMaintenanceWindow") if err != nil { return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -5705,15 +5343,6 @@ func (a *CaseManagementApi) WatchCase(ctx _context.Context, caseId string, userU localVarPostBody interface{} ) - operationId := "v2.WatchCase" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementApi.WatchCase") if err != nil { return nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} diff --git a/api/datadogV2/api_case_management_attribute.go b/api/datadogV2/api_case_management_attribute.go index f25d3039b4a..4e38c10542e 100644 --- a/api/datadogV2/api_case_management_attribute.go +++ b/api/datadogV2/api_case_management_attribute.go @@ -6,8 +6,6 @@ package datadogV2 import ( _context "context" - _fmt "fmt" - _log "log" _nethttp "net/http" _neturl "net/url" @@ -331,15 +329,6 @@ func (a *CaseManagementAttributeApi) UpdateCustomAttributeConfig(ctx _context.Co localVarReturnValue CustomAttributeConfigResponse ) - operationId := "v2.UpdateCustomAttributeConfig" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementAttributeApi.UpdateCustomAttributeConfig") if err != nil { return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} diff --git a/api/datadogV2/api_case_management_type.go b/api/datadogV2/api_case_management_type.go index 43af452d9d3..d86a4337871 100644 --- a/api/datadogV2/api_case_management_type.go +++ b/api/datadogV2/api_case_management_type.go @@ -6,8 +6,6 @@ package datadogV2 import ( _context "context" - _fmt "fmt" - _log "log" _nethttp "net/http" _neturl "net/url" @@ -251,15 +249,6 @@ func (a *CaseManagementTypeApi) UpdateCaseType(ctx _context.Context, caseTypeId localVarReturnValue CaseTypeResponse ) - operationId := "v2.UpdateCaseType" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CaseManagementTypeApi.UpdateCaseType") if err != nil { return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} diff --git a/examples/v2/case-management-attribute/UpdateCustomAttributeConfig.go b/examples/v2/case-management-attribute/UpdateCustomAttributeConfig.go index 08f1796c7ce..4d6f18799e7 100644 --- a/examples/v2/case-management-attribute/UpdateCustomAttributeConfig.go +++ b/examples/v2/case-management-attribute/UpdateCustomAttributeConfig.go @@ -32,7 +32,6 @@ func main() { } ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.UpdateCustomAttributeConfig", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementAttributeApi(apiClient) resp, r, err := api.UpdateCustomAttributeConfig(ctx, "case_type_id", "custom_attribute_id", body) diff --git a/examples/v2/case-management-type/UpdateCaseType.go b/examples/v2/case-management-type/UpdateCaseType.go index 2487e7cd11b..4c0dd905061 100644 --- a/examples/v2/case-management-type/UpdateCaseType.go +++ b/examples/v2/case-management-type/UpdateCaseType.go @@ -25,7 +25,6 @@ func main() { } ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.UpdateCaseType", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementTypeApi(apiClient) resp, r, err := api.UpdateCaseType(ctx, "case_type_id", body) diff --git a/examples/v2/case-management/AddCaseInsights.go b/examples/v2/case-management/AddCaseInsights.go index 357d70f6bf3..c3c8c84a421 100644 --- a/examples/v2/case-management/AddCaseInsights.go +++ b/examples/v2/case-management/AddCaseInsights.go @@ -29,7 +29,6 @@ func main() { } ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.AddCaseInsights", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) resp, r, err := api.AddCaseInsights(ctx, "case_id", body) diff --git a/examples/v2/case-management/AggregateCases.go b/examples/v2/case-management/AggregateCases.go index 1a059afca43..1d46c5d45ad 100644 --- a/examples/v2/case-management/AggregateCases.go +++ b/examples/v2/case-management/AggregateCases.go @@ -29,7 +29,6 @@ func main() { } ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.AggregateCases", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) resp, r, err := api.AggregateCases(ctx, body) diff --git a/examples/v2/case-management/BulkUpdateCases.go b/examples/v2/case-management/BulkUpdateCases.go index d0d74d451bc..becef90e29e 100644 --- a/examples/v2/case-management/BulkUpdateCases.go +++ b/examples/v2/case-management/BulkUpdateCases.go @@ -29,7 +29,6 @@ func main() { } ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.BulkUpdateCases", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) r, err := api.BulkUpdateCases(ctx, body) diff --git a/examples/v2/case-management/CountCases.go b/examples/v2/case-management/CountCases.go index 8991e3438f3..00161b5d964 100644 --- a/examples/v2/case-management/CountCases.go +++ b/examples/v2/case-management/CountCases.go @@ -15,7 +15,6 @@ import ( func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.CountCases", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) resp, r, err := api.CountCases(ctx, *datadogV2.NewCountCasesOptionalParameters()) diff --git a/examples/v2/case-management/CreateCaseAutomationRule.go b/examples/v2/case-management/CreateCaseAutomationRule.go index 1ec5ca6dad0..c56cd6b75f3 100644 --- a/examples/v2/case-management/CreateCaseAutomationRule.go +++ b/examples/v2/case-management/CreateCaseAutomationRule.go @@ -34,7 +34,6 @@ func main() { } ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.CreateCaseAutomationRule", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) resp, r, err := api.CreateCaseAutomationRule(ctx, "project_id", body) diff --git a/examples/v2/case-management/CreateCaseJiraIssue.go b/examples/v2/case-management/CreateCaseJiraIssue.go index c3d6afed297..6c89bf54def 100644 --- a/examples/v2/case-management/CreateCaseJiraIssue.go +++ b/examples/v2/case-management/CreateCaseJiraIssue.go @@ -25,7 +25,6 @@ func main() { } ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.CreateCaseJiraIssue", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) r, err := api.CreateCaseJiraIssue(ctx, "case_id", body) diff --git a/examples/v2/case-management/CreateCaseLink.go b/examples/v2/case-management/CreateCaseLink.go index 1a72f26e82b..3772899390f 100644 --- a/examples/v2/case-management/CreateCaseLink.go +++ b/examples/v2/case-management/CreateCaseLink.go @@ -27,7 +27,6 @@ func main() { } ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.CreateCaseLink", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) resp, r, err := api.CreateCaseLink(ctx, body) diff --git a/examples/v2/case-management/CreateCaseNotebook.go b/examples/v2/case-management/CreateCaseNotebook.go index ae8de7fc6bf..86315d9b106 100644 --- a/examples/v2/case-management/CreateCaseNotebook.go +++ b/examples/v2/case-management/CreateCaseNotebook.go @@ -19,7 +19,6 @@ func main() { } ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.CreateCaseNotebook", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) r, err := api.CreateCaseNotebook(ctx, "case_id", body) diff --git a/examples/v2/case-management/CreateCaseServiceNowTicket.go b/examples/v2/case-management/CreateCaseServiceNowTicket.go index 6b3ccc651a8..a3a053176b4 100644 --- a/examples/v2/case-management/CreateCaseServiceNowTicket.go +++ b/examples/v2/case-management/CreateCaseServiceNowTicket.go @@ -23,7 +23,6 @@ func main() { } ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.CreateCaseServiceNowTicket", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) r, err := api.CreateCaseServiceNowTicket(ctx, "case_id", body) diff --git a/examples/v2/case-management/CreateCaseView.go b/examples/v2/case-management/CreateCaseView.go index abff9dc8b0f..624b312eebb 100644 --- a/examples/v2/case-management/CreateCaseView.go +++ b/examples/v2/case-management/CreateCaseView.go @@ -25,7 +25,6 @@ func main() { } ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.CreateCaseView", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) resp, r, err := api.CreateCaseView(ctx, body) diff --git a/examples/v2/case-management/CreateMaintenanceWindow.go b/examples/v2/case-management/CreateMaintenanceWindow.go index ba496f9c67d..cf1e42c3641 100644 --- a/examples/v2/case-management/CreateMaintenanceWindow.go +++ b/examples/v2/case-management/CreateMaintenanceWindow.go @@ -27,7 +27,6 @@ func main() { } ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.CreateMaintenanceWindow", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) resp, r, err := api.CreateMaintenanceWindow(ctx, body) diff --git a/examples/v2/case-management/DeleteCaseAutomationRule.go b/examples/v2/case-management/DeleteCaseAutomationRule.go index f48bfd52a68..2298bf93f7a 100644 --- a/examples/v2/case-management/DeleteCaseAutomationRule.go +++ b/examples/v2/case-management/DeleteCaseAutomationRule.go @@ -14,7 +14,6 @@ import ( func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.DeleteCaseAutomationRule", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) r, err := api.DeleteCaseAutomationRule(ctx, "project_id", "rule_id") diff --git a/examples/v2/case-management/DeleteCaseLink.go b/examples/v2/case-management/DeleteCaseLink.go index 31c7ef4e94d..a8b80d4a08f 100644 --- a/examples/v2/case-management/DeleteCaseLink.go +++ b/examples/v2/case-management/DeleteCaseLink.go @@ -14,7 +14,6 @@ import ( func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.DeleteCaseLink", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) r, err := api.DeleteCaseLink(ctx, "804cd682-55f6-4541-ab00-b608b282ea7d") diff --git a/examples/v2/case-management/DeleteCaseView.go b/examples/v2/case-management/DeleteCaseView.go index 4f2f03bdfa8..9b09f0367f9 100644 --- a/examples/v2/case-management/DeleteCaseView.go +++ b/examples/v2/case-management/DeleteCaseView.go @@ -14,7 +14,6 @@ import ( func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.DeleteCaseView", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) r, err := api.DeleteCaseView(ctx, "view_id") diff --git a/examples/v2/case-management/DeleteMaintenanceWindow.go b/examples/v2/case-management/DeleteMaintenanceWindow.go index b75c9804c58..52a0f5b0bbc 100644 --- a/examples/v2/case-management/DeleteMaintenanceWindow.go +++ b/examples/v2/case-management/DeleteMaintenanceWindow.go @@ -14,7 +14,6 @@ import ( func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.DeleteMaintenanceWindow", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) r, err := api.DeleteMaintenanceWindow(ctx, "maintenance_window_id") diff --git a/examples/v2/case-management/DisableCaseAutomationRule.go b/examples/v2/case-management/DisableCaseAutomationRule.go index 3061464ec44..bd07e86e016 100644 --- a/examples/v2/case-management/DisableCaseAutomationRule.go +++ b/examples/v2/case-management/DisableCaseAutomationRule.go @@ -15,7 +15,6 @@ import ( func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.DisableCaseAutomationRule", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) resp, r, err := api.DisableCaseAutomationRule(ctx, "project_id", "rule_id") diff --git a/examples/v2/case-management/EnableCaseAutomationRule.go b/examples/v2/case-management/EnableCaseAutomationRule.go index 49d438af9ec..b8c9aad9856 100644 --- a/examples/v2/case-management/EnableCaseAutomationRule.go +++ b/examples/v2/case-management/EnableCaseAutomationRule.go @@ -15,7 +15,6 @@ import ( func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.EnableCaseAutomationRule", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) resp, r, err := api.EnableCaseAutomationRule(ctx, "project_id", "rule_id") diff --git a/examples/v2/case-management/FavoriteCaseProject.go b/examples/v2/case-management/FavoriteCaseProject.go index 8b85af4c416..5c704ca6a00 100644 --- a/examples/v2/case-management/FavoriteCaseProject.go +++ b/examples/v2/case-management/FavoriteCaseProject.go @@ -14,7 +14,6 @@ import ( func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.FavoriteCaseProject", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) r, err := api.FavoriteCaseProject(ctx, "project_id") diff --git a/examples/v2/case-management/GetCaseAutomationRule.go b/examples/v2/case-management/GetCaseAutomationRule.go index 2c2eb9ccb27..6a5d0d8b26b 100644 --- a/examples/v2/case-management/GetCaseAutomationRule.go +++ b/examples/v2/case-management/GetCaseAutomationRule.go @@ -15,7 +15,6 @@ import ( func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.GetCaseAutomationRule", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) resp, r, err := api.GetCaseAutomationRule(ctx, "project_id", "rule_id") diff --git a/examples/v2/case-management/GetCaseView.go b/examples/v2/case-management/GetCaseView.go index ca198618b52..5346ed33d66 100644 --- a/examples/v2/case-management/GetCaseView.go +++ b/examples/v2/case-management/GetCaseView.go @@ -15,7 +15,6 @@ import ( func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.GetCaseView", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) resp, r, err := api.GetCaseView(ctx, "view_id") diff --git a/examples/v2/case-management/LinkIncident.go b/examples/v2/case-management/LinkIncident.go index f128e21dcdf..8926b49ecf8 100644 --- a/examples/v2/case-management/LinkIncident.go +++ b/examples/v2/case-management/LinkIncident.go @@ -21,7 +21,6 @@ func main() { } ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.LinkIncident", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) resp, r, err := api.LinkIncident(ctx, "case_id", body) diff --git a/examples/v2/case-management/LinkJiraIssueToCase.go b/examples/v2/case-management/LinkJiraIssueToCase.go index b9ca8414843..25bec1ae990 100644 --- a/examples/v2/case-management/LinkJiraIssueToCase.go +++ b/examples/v2/case-management/LinkJiraIssueToCase.go @@ -22,7 +22,6 @@ func main() { } ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.LinkJiraIssueToCase", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) r, err := api.LinkJiraIssueToCase(ctx, "case_id", body) diff --git a/examples/v2/case-management/ListCaseAutomationRules.go b/examples/v2/case-management/ListCaseAutomationRules.go index 0f45f8ad4ab..324fa211203 100644 --- a/examples/v2/case-management/ListCaseAutomationRules.go +++ b/examples/v2/case-management/ListCaseAutomationRules.go @@ -15,7 +15,6 @@ import ( func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.ListCaseAutomationRules", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) resp, r, err := api.ListCaseAutomationRules(ctx, "project_id") diff --git a/examples/v2/case-management/ListCaseLinks.go b/examples/v2/case-management/ListCaseLinks.go index d9594ecbc90..cfad0b32a78 100644 --- a/examples/v2/case-management/ListCaseLinks.go +++ b/examples/v2/case-management/ListCaseLinks.go @@ -15,7 +15,6 @@ import ( func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.ListCaseLinks", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) resp, r, err := api.ListCaseLinks(ctx, "CASE", "bf0cbac6-4c16-4cfb-b6bf-ca5e0ec37a4f", *datadogV2.NewListCaseLinksOptionalParameters()) diff --git a/examples/v2/case-management/ListCaseTimeline.go b/examples/v2/case-management/ListCaseTimeline.go index bc556e97c86..9c1917f287f 100644 --- a/examples/v2/case-management/ListCaseTimeline.go +++ b/examples/v2/case-management/ListCaseTimeline.go @@ -15,7 +15,6 @@ import ( func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.ListCaseTimeline", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) resp, r, err := api.ListCaseTimeline(ctx, "case_id", *datadogV2.NewListCaseTimelineOptionalParameters()) diff --git a/examples/v2/case-management/ListCaseViews.go b/examples/v2/case-management/ListCaseViews.go index 5a5177c5d06..117b83486fe 100644 --- a/examples/v2/case-management/ListCaseViews.go +++ b/examples/v2/case-management/ListCaseViews.go @@ -15,7 +15,6 @@ import ( func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.ListCaseViews", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) resp, r, err := api.ListCaseViews(ctx, "project_id") diff --git a/examples/v2/case-management/ListCaseWatchers.go b/examples/v2/case-management/ListCaseWatchers.go index df666abf4cc..6c3fa02ef96 100644 --- a/examples/v2/case-management/ListCaseWatchers.go +++ b/examples/v2/case-management/ListCaseWatchers.go @@ -15,7 +15,6 @@ import ( func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.ListCaseWatchers", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) resp, r, err := api.ListCaseWatchers(ctx, "case_id") diff --git a/examples/v2/case-management/ListMaintenanceWindows.go b/examples/v2/case-management/ListMaintenanceWindows.go index 6e967acf797..92a13990e5c 100644 --- a/examples/v2/case-management/ListMaintenanceWindows.go +++ b/examples/v2/case-management/ListMaintenanceWindows.go @@ -15,7 +15,6 @@ import ( func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.ListMaintenanceWindows", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) resp, r, err := api.ListMaintenanceWindows(ctx) diff --git a/examples/v2/case-management/ListUserCaseProjectFavorites.go b/examples/v2/case-management/ListUserCaseProjectFavorites.go index ce9c66a3448..f0a11c853e0 100644 --- a/examples/v2/case-management/ListUserCaseProjectFavorites.go +++ b/examples/v2/case-management/ListUserCaseProjectFavorites.go @@ -15,7 +15,6 @@ import ( func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.ListUserCaseProjectFavorites", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) resp, r, err := api.ListUserCaseProjectFavorites(ctx) diff --git a/examples/v2/case-management/MoveCaseToProject.go b/examples/v2/case-management/MoveCaseToProject.go index 835a44a9728..8c8ea6d4392 100644 --- a/examples/v2/case-management/MoveCaseToProject.go +++ b/examples/v2/case-management/MoveCaseToProject.go @@ -21,7 +21,6 @@ func main() { } ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.MoveCaseToProject", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) resp, r, err := api.MoveCaseToProject(ctx, "case_id", body) diff --git a/examples/v2/case-management/RemoveCaseInsights.go b/examples/v2/case-management/RemoveCaseInsights.go index f46d6c5c77c..0a1f7e62c19 100644 --- a/examples/v2/case-management/RemoveCaseInsights.go +++ b/examples/v2/case-management/RemoveCaseInsights.go @@ -29,7 +29,6 @@ func main() { } ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.RemoveCaseInsights", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) resp, r, err := api.RemoveCaseInsights(ctx, "case_id", body) diff --git a/examples/v2/case-management/UnfavoriteCaseProject.go b/examples/v2/case-management/UnfavoriteCaseProject.go index 9e8eab56af3..31c6bd5df75 100644 --- a/examples/v2/case-management/UnfavoriteCaseProject.go +++ b/examples/v2/case-management/UnfavoriteCaseProject.go @@ -14,7 +14,6 @@ import ( func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.UnfavoriteCaseProject", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) r, err := api.UnfavoriteCaseProject(ctx, "project_id") diff --git a/examples/v2/case-management/UnlinkJiraIssue.go b/examples/v2/case-management/UnlinkJiraIssue.go index 1c324fee87c..1a6fd2cfff2 100644 --- a/examples/v2/case-management/UnlinkJiraIssue.go +++ b/examples/v2/case-management/UnlinkJiraIssue.go @@ -14,7 +14,6 @@ import ( func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.UnlinkJiraIssue", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) r, err := api.UnlinkJiraIssue(ctx, "case_id") diff --git a/examples/v2/case-management/UnwatchCase.go b/examples/v2/case-management/UnwatchCase.go index 25721595591..753c0e656fc 100644 --- a/examples/v2/case-management/UnwatchCase.go +++ b/examples/v2/case-management/UnwatchCase.go @@ -14,7 +14,6 @@ import ( func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.UnwatchCase", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) r, err := api.UnwatchCase(ctx, "case_id", "user_uuid") diff --git a/examples/v2/case-management/UpdateCaseAutomationRule.go b/examples/v2/case-management/UpdateCaseAutomationRule.go index 7a6fdab1855..be4fac7e478 100644 --- a/examples/v2/case-management/UpdateCaseAutomationRule.go +++ b/examples/v2/case-management/UpdateCaseAutomationRule.go @@ -34,7 +34,6 @@ func main() { } ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.UpdateCaseAutomationRule", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) resp, r, err := api.UpdateCaseAutomationRule(ctx, "project_id", "rule_id", body) diff --git a/examples/v2/case-management/UpdateCaseComment.go b/examples/v2/case-management/UpdateCaseComment.go index 67305d5ea6e..a46b02bb8bc 100644 --- a/examples/v2/case-management/UpdateCaseComment.go +++ b/examples/v2/case-management/UpdateCaseComment.go @@ -22,7 +22,6 @@ func main() { } ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.UpdateCaseComment", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) r, err := api.UpdateCaseComment(ctx, "case_id", "cell_id", body) diff --git a/examples/v2/case-management/UpdateCaseDueDate.go b/examples/v2/case-management/UpdateCaseDueDate.go index ec27a067b28..d15cd42a3a1 100644 --- a/examples/v2/case-management/UpdateCaseDueDate.go +++ b/examples/v2/case-management/UpdateCaseDueDate.go @@ -23,7 +23,6 @@ func main() { } ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.UpdateCaseDueDate", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) resp, r, err := api.UpdateCaseDueDate(ctx, "case_id", body) diff --git a/examples/v2/case-management/UpdateCaseResolvedReason.go b/examples/v2/case-management/UpdateCaseResolvedReason.go index a4fdbe88975..440d472d229 100644 --- a/examples/v2/case-management/UpdateCaseResolvedReason.go +++ b/examples/v2/case-management/UpdateCaseResolvedReason.go @@ -23,7 +23,6 @@ func main() { } ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.UpdateCaseResolvedReason", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) resp, r, err := api.UpdateCaseResolvedReason(ctx, "case_id", body) diff --git a/examples/v2/case-management/UpdateCaseView.go b/examples/v2/case-management/UpdateCaseView.go index de411d14e3e..fb8c0f9a1b3 100644 --- a/examples/v2/case-management/UpdateCaseView.go +++ b/examples/v2/case-management/UpdateCaseView.go @@ -21,7 +21,6 @@ func main() { } ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.UpdateCaseView", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) resp, r, err := api.UpdateCaseView(ctx, "view_id", body) diff --git a/examples/v2/case-management/UpdateMaintenanceWindow.go b/examples/v2/case-management/UpdateMaintenanceWindow.go index e985a6b8cc1..ceed81df9a5 100644 --- a/examples/v2/case-management/UpdateMaintenanceWindow.go +++ b/examples/v2/case-management/UpdateMaintenanceWindow.go @@ -21,7 +21,6 @@ func main() { } ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.UpdateMaintenanceWindow", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) resp, r, err := api.UpdateMaintenanceWindow(ctx, "maintenance_window_id", body) diff --git a/examples/v2/case-management/WatchCase.go b/examples/v2/case-management/WatchCase.go index 7adf43d88fc..9644922bf53 100644 --- a/examples/v2/case-management/WatchCase.go +++ b/examples/v2/case-management/WatchCase.go @@ -14,7 +14,6 @@ import ( func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.WatchCase", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewCaseManagementApi(apiClient) r, err := api.WatchCase(ctx, "case_id", "user_uuid") diff --git a/tests/scenarios/features/v2/case_management.feature b/tests/scenarios/features/v2/case_management.feature index 04f9d8e0698..8e2e9f6f6ad 100644 --- a/tests/scenarios/features/v2/case_management.feature +++ b/tests/scenarios/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/tests/scenarios/features/v2/case_management_attribute.feature b/tests/scenarios/features/v2/case_management_attribute.feature index 47806e809c0..b7e1006103b 100644 --- a/tests/scenarios/features/v2/case_management_attribute.feature +++ b/tests/scenarios/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/tests/scenarios/features/v2/case_management_type.feature b/tests/scenarios/features/v2/case_management_type.feature index 260ac3d3c42..6415083b699 100644 --- a/tests/scenarios/features/v2/case_management_type.feature +++ b/tests/scenarios/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