From 9c30880a943a9ec8dd3ad043b8c092a553a45c4b Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 31 Jul 2026 12:27:12 +0000 Subject: [PATCH] Regenerate client from commit cdbb6f8 of spec repo --- .generator/schemas/v2/openapi.yaml | 72 +++++++++---------- features/v2/case_management.feature | 12 ++-- .../v2/models/automation_rule_action.rb | 2 +- .../v2/models/automation_rule_action_data.rb | 6 +- .../v2/models/automation_rule_action_type.rb | 6 +- .../v2/models/automation_rule_trigger.rb | 2 +- .../v2/models/automation_rule_trigger_data.rb | 12 ++-- .../v2/models/automation_rule_trigger_type.rb | 12 ++-- 8 files changed, 62 insertions(+), 62 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 0f86b6106238..c129375f915a 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -11907,22 +11907,22 @@ components: description: Configuration for the action to execute, dependent on the action type. properties: agent_type: - description: The type of AI agent to assign. Required when the action type is `assign_agent`. + description: The type of AI agent to assign. Required when the action type is `ASSIGN_AGENT`. type: string assigned_agent_id: - description: The identifier of the AI agent to assign to the case. Required when the action type is `assign_agent`. + description: The identifier of the AI agent to assign to the case. Required when the action type is `ASSIGN_AGENT`. type: string handle: - description: The handle of the Datadog workflow to execute. Required when the action type is `execute_workflow`. + description: The handle of the Datadog workflow to execute. Required when the action type is `EXECUTE_WORKFLOW`. example: "workflow-handle-123" type: string type: object AutomationRuleActionType: - description: The type of automated action to perform when the rule triggers. `execute_workflow` runs a Datadog workflow; `assign_agent` assigns an AI agent to the case. + description: The type of automated action to perform when the rule triggers. `EXECUTE_WORKFLOW` runs a Datadog workflow; `ASSIGN_AGENT` assigns an AI agent to the case. enum: - - execute_workflow - - assign_agent - example: execute_workflow + - EXECUTE_WORKFLOW + - ASSIGN_AGENT + example: EXECUTE_WORKFLOW type: string x-enum-varnames: - EXECUTE_WORKFLOW @@ -12081,34 +12081,34 @@ components: - type type: object AutomationRuleTriggerData: - description: Additional configuration for the trigger, dependent on the trigger type. For `status_transitioned` triggers, specify `from_status_name` and `to_status_name`. For `attribute_value_changed` triggers, specify `field` and `change_type`. + description: Additional configuration for the trigger, dependent on the trigger type. For `STATUS_TRANSITIONED` triggers, specify `from_status_name` and `to_status_name`. For `ATTRIBUTE_VALUE_CHANGED` triggers, specify `field` and `change_type`. properties: approval_type: - description: The approval outcome to match. Used with `case_review_approved` triggers. + description: The approval outcome to match. Used with `CASE_REVIEW_APPROVED` triggers. type: string change_type: - description: "The kind of attribute change to match. Allowed values: `VALUE_ADDED`, `VALUE_DELETED`, `ANY_CHANGES`. Used with `attribute_value_changed` triggers." + description: "The kind of attribute change to match. Allowed values: `VALUE_ADDED`, `VALUE_DELETED`, `ANY_CHANGES`. Used with `ATTRIBUTE_VALUE_CHANGED` triggers." type: string field: - description: The case attribute field name to monitor for changes. Used with `attribute_value_changed` triggers. + description: The case attribute field name to monitor for changes. Used with `ATTRIBUTE_VALUE_CHANGED` triggers. type: string from_status_name: - description: The originating status name. Used with `status_transitioned` triggers to match transitions from this status. + description: The originating status name. Used with `STATUS_TRANSITIONED` triggers to match transitions from this status. type: string to_status_name: - description: The destination status name. Used with `status_transitioned` triggers to match transitions to this status. + description: The destination status name. Used with `STATUS_TRANSITIONED` triggers to match transitions to this status. type: string type: object AutomationRuleTriggerType: description: The case event that activates the automation rule. enum: - - case_created - - status_transitioned - - attribute_value_changed - - event_correlation_signal_correlated - - case_review_approved - - comment_added - example: case_created + - CASE_CREATED + - STATUS_TRANSITIONED + - ATTRIBUTE_VALUE_CHANGED + - EVENT_CORRELATION_SIGNAL_CORRELATED + - CASE_REVIEW_APPROVED + - COMMENT_ADDED + example: CASE_CREATED type: string x-enum-varnames: - CASE_CREATED @@ -125895,12 +125895,12 @@ paths: action: data: handle: workflow-handle-123 - type: execute_workflow + type: EXECUTE_WORKFLOW created_at: "2024-01-01T00:00:00.000Z" name: Auto-assign workflow state: ENABLED trigger: - type: case_created + type: CASE_CREATED id: e6773723-fe58-49ff-9975-dff00f14e28d type: rule schema: @@ -125946,11 +125946,11 @@ paths: action: data: handle: workflow-handle-123 - type: execute_workflow + type: EXECUTE_WORKFLOW name: Auto-assign workflow state: ENABLED trigger: - type: case_created + type: CASE_CREATED type: rule schema: $ref: "#/components/schemas/AutomationRuleCreateRequest" @@ -125968,12 +125968,12 @@ paths: action: data: handle: workflow-handle-123 - type: execute_workflow + type: EXECUTE_WORKFLOW created_at: "2024-01-01T00:00:00.000Z" name: Auto-assign workflow state: ENABLED trigger: - type: case_created + type: CASE_CREATED id: e6773723-fe58-49ff-9975-dff00f14e28d type: rule schema: @@ -126051,12 +126051,12 @@ paths: action: data: handle: workflow-handle-123 - type: execute_workflow + type: EXECUTE_WORKFLOW created_at: "2024-01-01T00:00:00.000Z" name: Auto-assign workflow state: ENABLED trigger: - type: case_created + type: CASE_CREATED id: e6773723-fe58-49ff-9975-dff00f14e28d type: rule schema: @@ -126103,11 +126103,11 @@ paths: action: data: handle: workflow-handle-123 - type: execute_workflow + type: EXECUTE_WORKFLOW name: Auto-assign workflow state: ENABLED trigger: - type: case_created + type: CASE_CREATED type: rule schema: $ref: "#/components/schemas/AutomationRuleUpdateRequest" @@ -126125,12 +126125,12 @@ paths: action: data: handle: workflow-handle-123 - type: execute_workflow + type: EXECUTE_WORKFLOW created_at: "2024-01-01T00:00:00.000Z" name: Auto-assign workflow state: ENABLED trigger: - type: case_created + type: CASE_CREATED id: e6773723-fe58-49ff-9975-dff00f14e28d type: rule schema: @@ -126179,12 +126179,12 @@ paths: action: data: handle: workflow-handle-123 - type: execute_workflow + type: EXECUTE_WORKFLOW created_at: "2024-01-01T00:00:00.000Z" name: Auto-assign workflow state: DISABLED trigger: - type: case_created + type: CASE_CREATED id: e6773723-fe58-49ff-9975-dff00f14e28d type: rule schema: @@ -126233,12 +126233,12 @@ paths: action: data: handle: workflow-handle-123 - type: execute_workflow + type: EXECUTE_WORKFLOW created_at: "2024-01-01T00:00:00.000Z" name: Auto-assign workflow state: ENABLED trigger: - type: case_created + type: CASE_CREATED id: e6773723-fe58-49ff-9975-dff00f14e28d type: rule schema: diff --git a/features/v2/case_management.feature b/features/v2/case_management.feature index 8e2e9f6f6ad9..f34e59ada60b 100644 --- a/features/v2/case_management.feature +++ b/features/v2/case_management.feature @@ -360,7 +360,7 @@ Feature: Case Management Scenario: Create an automation rule returns "Bad Request" response 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"}} + 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 Then the response status is 400 Bad Request @@ -368,7 +368,7 @@ Feature: Case Management Scenario: Create an automation rule returns "Created" response 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"}} + 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 Then the response status is 201 Created @@ -376,7 +376,7 @@ Feature: Case Management Scenario: Create an automation rule returns "Not Found" response 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"}} + 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 Then the response status is 404 Not Found @@ -1233,7 +1233,7 @@ Feature: Case Management 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"}} + 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 Then the response status is 400 Bad Request @@ -1242,7 +1242,7 @@ Feature: Case Management 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"}} + 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 Then the response status is 404 Not Found @@ -1251,7 +1251,7 @@ Feature: Case Management 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"}} + 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 Then the response status is 200 OK diff --git a/lib/datadog_api_client/v2/models/automation_rule_action.rb b/lib/datadog_api_client/v2/models/automation_rule_action.rb index 848f56aba009..c7faced5c993 100644 --- a/lib/datadog_api_client/v2/models/automation_rule_action.rb +++ b/lib/datadog_api_client/v2/models/automation_rule_action.rb @@ -24,7 +24,7 @@ class AutomationRuleAction # Configuration for the action to execute, dependent on the action type. attr_reader :data - # The type of automated action to perform when the rule triggers. `execute_workflow` runs a Datadog workflow; `assign_agent` assigns an AI agent to the case. + # The type of automated action to perform when the rule triggers. `EXECUTE_WORKFLOW` runs a Datadog workflow; `ASSIGN_AGENT` assigns an AI agent to the case. attr_reader :type attr_accessor :additional_properties diff --git a/lib/datadog_api_client/v2/models/automation_rule_action_data.rb b/lib/datadog_api_client/v2/models/automation_rule_action_data.rb index bba353dd8c2a..3866c8c44036 100644 --- a/lib/datadog_api_client/v2/models/automation_rule_action_data.rb +++ b/lib/datadog_api_client/v2/models/automation_rule_action_data.rb @@ -21,13 +21,13 @@ module DatadogAPIClient::V2 class AutomationRuleActionData include BaseGenericModel - # The type of AI agent to assign. Required when the action type is `assign_agent`. + # The type of AI agent to assign. Required when the action type is `ASSIGN_AGENT`. attr_accessor :agent_type - # The identifier of the AI agent to assign to the case. Required when the action type is `assign_agent`. + # The identifier of the AI agent to assign to the case. Required when the action type is `ASSIGN_AGENT`. attr_accessor :assigned_agent_id - # The handle of the Datadog workflow to execute. Required when the action type is `execute_workflow`. + # The handle of the Datadog workflow to execute. Required when the action type is `EXECUTE_WORKFLOW`. attr_accessor :handle attr_accessor :additional_properties diff --git a/lib/datadog_api_client/v2/models/automation_rule_action_type.rb b/lib/datadog_api_client/v2/models/automation_rule_action_type.rb index 70178e9c576c..88284205f6c9 100644 --- a/lib/datadog_api_client/v2/models/automation_rule_action_type.rb +++ b/lib/datadog_api_client/v2/models/automation_rule_action_type.rb @@ -17,11 +17,11 @@ require 'time' module DatadogAPIClient::V2 - # The type of automated action to perform when the rule triggers. `execute_workflow` runs a Datadog workflow; `assign_agent` assigns an AI agent to the case. + # The type of automated action to perform when the rule triggers. `EXECUTE_WORKFLOW` runs a Datadog workflow; `ASSIGN_AGENT` assigns an AI agent to the case. class AutomationRuleActionType include BaseEnumModel - EXECUTE_WORKFLOW = "execute_workflow".freeze - ASSIGN_AGENT = "assign_agent".freeze + EXECUTE_WORKFLOW = "EXECUTE_WORKFLOW".freeze + ASSIGN_AGENT = "ASSIGN_AGENT".freeze end end diff --git a/lib/datadog_api_client/v2/models/automation_rule_trigger.rb b/lib/datadog_api_client/v2/models/automation_rule_trigger.rb index bf66472cf8e4..4fd575dab0eb 100644 --- a/lib/datadog_api_client/v2/models/automation_rule_trigger.rb +++ b/lib/datadog_api_client/v2/models/automation_rule_trigger.rb @@ -21,7 +21,7 @@ module DatadogAPIClient::V2 class AutomationRuleTrigger include BaseGenericModel - # Additional configuration for the trigger, dependent on the trigger type. For `status_transitioned` triggers, specify `from_status_name` and `to_status_name`. For `attribute_value_changed` triggers, specify `field` and `change_type`. + # Additional configuration for the trigger, dependent on the trigger type. For `STATUS_TRANSITIONED` triggers, specify `from_status_name` and `to_status_name`. For `ATTRIBUTE_VALUE_CHANGED` triggers, specify `field` and `change_type`. attr_accessor :data # The case event that activates the automation rule. diff --git a/lib/datadog_api_client/v2/models/automation_rule_trigger_data.rb b/lib/datadog_api_client/v2/models/automation_rule_trigger_data.rb index 275963aa19c5..238081179b97 100644 --- a/lib/datadog_api_client/v2/models/automation_rule_trigger_data.rb +++ b/lib/datadog_api_client/v2/models/automation_rule_trigger_data.rb @@ -17,23 +17,23 @@ require 'time' module DatadogAPIClient::V2 - # Additional configuration for the trigger, dependent on the trigger type. For `status_transitioned` triggers, specify `from_status_name` and `to_status_name`. For `attribute_value_changed` triggers, specify `field` and `change_type`. + # Additional configuration for the trigger, dependent on the trigger type. For `STATUS_TRANSITIONED` triggers, specify `from_status_name` and `to_status_name`. For `ATTRIBUTE_VALUE_CHANGED` triggers, specify `field` and `change_type`. class AutomationRuleTriggerData include BaseGenericModel - # The approval outcome to match. Used with `case_review_approved` triggers. + # The approval outcome to match. Used with `CASE_REVIEW_APPROVED` triggers. attr_accessor :approval_type - # The kind of attribute change to match. Allowed values: `VALUE_ADDED`, `VALUE_DELETED`, `ANY_CHANGES`. Used with `attribute_value_changed` triggers. + # The kind of attribute change to match. Allowed values: `VALUE_ADDED`, `VALUE_DELETED`, `ANY_CHANGES`. Used with `ATTRIBUTE_VALUE_CHANGED` triggers. attr_accessor :change_type - # The case attribute field name to monitor for changes. Used with `attribute_value_changed` triggers. + # The case attribute field name to monitor for changes. Used with `ATTRIBUTE_VALUE_CHANGED` triggers. attr_accessor :field - # The originating status name. Used with `status_transitioned` triggers to match transitions from this status. + # The originating status name. Used with `STATUS_TRANSITIONED` triggers to match transitions from this status. attr_accessor :from_status_name - # The destination status name. Used with `status_transitioned` triggers to match transitions to this status. + # The destination status name. Used with `STATUS_TRANSITIONED` triggers to match transitions to this status. attr_accessor :to_status_name attr_accessor :additional_properties diff --git a/lib/datadog_api_client/v2/models/automation_rule_trigger_type.rb b/lib/datadog_api_client/v2/models/automation_rule_trigger_type.rb index f3809f5b34a8..cdf9b0a670fe 100644 --- a/lib/datadog_api_client/v2/models/automation_rule_trigger_type.rb +++ b/lib/datadog_api_client/v2/models/automation_rule_trigger_type.rb @@ -21,11 +21,11 @@ module DatadogAPIClient::V2 class AutomationRuleTriggerType include BaseEnumModel - CASE_CREATED = "case_created".freeze - STATUS_TRANSITIONED = "status_transitioned".freeze - ATTRIBUTE_VALUE_CHANGED = "attribute_value_changed".freeze - EVENT_CORRELATION_SIGNAL_CORRELATED = "event_correlation_signal_correlated".freeze - CASE_REVIEW_APPROVED = "case_review_approved".freeze - COMMENT_ADDED = "comment_added".freeze + CASE_CREATED = "CASE_CREATED".freeze + STATUS_TRANSITIONED = "STATUS_TRANSITIONED".freeze + ATTRIBUTE_VALUE_CHANGED = "ATTRIBUTE_VALUE_CHANGED".freeze + EVENT_CORRELATION_SIGNAL_CORRELATED = "EVENT_CORRELATION_SIGNAL_CORRELATED".freeze + CASE_REVIEW_APPROVED = "CASE_REVIEW_APPROVED".freeze + COMMENT_ADDED = "COMMENT_ADDED".freeze end end