From eaa05b28dbe86a77fc8f58ddb05d0237567bf221 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 31 Jul 2026 12:27:38 +0000 Subject: [PATCH] Regenerate client from commit cdbb6f8 of spec repo --- .generator/schemas/v2/openapi.yaml | 72 +++++++++---------- .../v2/model/automation_rule_action.py | 2 +- .../v2/model/automation_rule_action_data.py | 6 +- .../v2/model/automation_rule_action_type.py | 12 ++-- .../v2/model/automation_rule_trigger.py | 2 +- .../v2/model/automation_rule_trigger_data.py | 12 ++-- .../v2/model/automation_rule_trigger_type.py | 26 +++---- tests/v2/features/case_management.feature | 12 ++-- 8 files changed, 72 insertions(+), 72 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 0f86b61062..c129375f91 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/src/datadog_api_client/v2/model/automation_rule_action.py b/src/datadog_api_client/v2/model/automation_rule_action.py index 7fc86c6976..d8e2463c33 100644 --- a/src/datadog_api_client/v2/model/automation_rule_action.py +++ b/src/datadog_api_client/v2/model/automation_rule_action.py @@ -39,7 +39,7 @@ def __init__(self_, data: AutomationRuleActionData, type: AutomationRuleActionTy :param data: Configuration for the action to execute, dependent on the action type. :type data: AutomationRuleActionData - :param type: 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. + :param type: 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. :type type: AutomationRuleActionType """ super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/automation_rule_action_data.py b/src/datadog_api_client/v2/model/automation_rule_action_data.py index 9efb2dd3af..187d4483d5 100644 --- a/src/datadog_api_client/v2/model/automation_rule_action_data.py +++ b/src/datadog_api_client/v2/model/automation_rule_action_data.py @@ -38,13 +38,13 @@ def __init__( """ Configuration for the action to execute, dependent on the action type. - :param agent_type: The type of AI agent to assign. Required when the action type is ``assign_agent``. + :param agent_type: The type of AI agent to assign. Required when the action type is ``ASSIGN_AGENT``. :type agent_type: str, optional - :param assigned_agent_id: The identifier of the AI agent to assign to the case. Required when the action type is ``assign_agent``. + :param assigned_agent_id: The identifier of the AI agent to assign to the case. Required when the action type is ``ASSIGN_AGENT``. :type assigned_agent_id: str, optional - :param handle: The handle of the Datadog workflow to execute. Required when the action type is ``execute_workflow``. + :param handle: The handle of the Datadog workflow to execute. Required when the action type is ``EXECUTE_WORKFLOW``. :type handle: str, optional """ if agent_type is not unset: diff --git a/src/datadog_api_client/v2/model/automation_rule_action_type.py b/src/datadog_api_client/v2/model/automation_rule_action_type.py index 3997357739..4204881e9e 100644 --- a/src/datadog_api_client/v2/model/automation_rule_action_type.py +++ b/src/datadog_api_client/v2/model/automation_rule_action_type.py @@ -14,15 +14,15 @@ class AutomationRuleActionType(ModelSimple): """ - 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. - :param value: Must be one of ["execute_workflow", "assign_agent"]. + :param value: Must be one of ["EXECUTE_WORKFLOW", "ASSIGN_AGENT"]. :type value: str """ allowed_values = { - "execute_workflow", - "assign_agent", + "EXECUTE_WORKFLOW", + "ASSIGN_AGENT", } EXECUTE_WORKFLOW: ClassVar["AutomationRuleActionType"] ASSIGN_AGENT: ClassVar["AutomationRuleActionType"] @@ -34,5 +34,5 @@ def openapi_types(_): } -AutomationRuleActionType.EXECUTE_WORKFLOW = AutomationRuleActionType("execute_workflow") -AutomationRuleActionType.ASSIGN_AGENT = AutomationRuleActionType("assign_agent") +AutomationRuleActionType.EXECUTE_WORKFLOW = AutomationRuleActionType("EXECUTE_WORKFLOW") +AutomationRuleActionType.ASSIGN_AGENT = AutomationRuleActionType("ASSIGN_AGENT") diff --git a/src/datadog_api_client/v2/model/automation_rule_trigger.py b/src/datadog_api_client/v2/model/automation_rule_trigger.py index 1f64b30de8..ef451a6b98 100644 --- a/src/datadog_api_client/v2/model/automation_rule_trigger.py +++ b/src/datadog_api_client/v2/model/automation_rule_trigger.py @@ -40,7 +40,7 @@ def __init__( """ Defines when the rule activates. Combines a trigger type (the case event to listen for) with optional trigger data (conditions that narrow when the trigger fires). - :param data: 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``. + :param data: 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``. :type data: AutomationRuleTriggerData, optional :param type: The case event that activates the automation rule. diff --git a/src/datadog_api_client/v2/model/automation_rule_trigger_data.py b/src/datadog_api_client/v2/model/automation_rule_trigger_data.py index 1da875f6c6..a92ed4713f 100644 --- a/src/datadog_api_client/v2/model/automation_rule_trigger_data.py +++ b/src/datadog_api_client/v2/model/automation_rule_trigger_data.py @@ -42,21 +42,21 @@ def __init__( **kwargs, ): """ - 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``. - :param approval_type: The approval outcome to match. Used with ``case_review_approved`` triggers. + :param approval_type: The approval outcome to match. Used with ``CASE_REVIEW_APPROVED`` triggers. :type approval_type: str, optional - :param change_type: The kind of attribute change to match. Allowed values: ``VALUE_ADDED`` , ``VALUE_DELETED`` , ``ANY_CHANGES``. Used with ``attribute_value_changed`` triggers. + :param change_type: The kind of attribute change to match. Allowed values: ``VALUE_ADDED`` , ``VALUE_DELETED`` , ``ANY_CHANGES``. Used with ``ATTRIBUTE_VALUE_CHANGED`` triggers. :type change_type: str, optional - :param field: The case attribute field name to monitor for changes. Used with ``attribute_value_changed`` triggers. + :param field: The case attribute field name to monitor for changes. Used with ``ATTRIBUTE_VALUE_CHANGED`` triggers. :type field: str, optional - :param from_status_name: The originating status name. Used with ``status_transitioned`` triggers to match transitions from this status. + :param from_status_name: The originating status name. Used with ``STATUS_TRANSITIONED`` triggers to match transitions from this status. :type from_status_name: str, optional - :param to_status_name: The destination status name. Used with ``status_transitioned`` triggers to match transitions to this status. + :param to_status_name: The destination status name. Used with ``STATUS_TRANSITIONED`` triggers to match transitions to this status. :type to_status_name: str, optional """ if approval_type is not unset: diff --git a/src/datadog_api_client/v2/model/automation_rule_trigger_type.py b/src/datadog_api_client/v2/model/automation_rule_trigger_type.py index 4e8b4c3039..264b4fa722 100644 --- a/src/datadog_api_client/v2/model/automation_rule_trigger_type.py +++ b/src/datadog_api_client/v2/model/automation_rule_trigger_type.py @@ -16,17 +16,17 @@ class AutomationRuleTriggerType(ModelSimple): """ The case event that activates the automation rule. - :param value: Must be one of ["case_created", "status_transitioned", "attribute_value_changed", "event_correlation_signal_correlated", "case_review_approved", "comment_added"]. + :param value: Must be one of ["CASE_CREATED", "STATUS_TRANSITIONED", "ATTRIBUTE_VALUE_CHANGED", "EVENT_CORRELATION_SIGNAL_CORRELATED", "CASE_REVIEW_APPROVED", "COMMENT_ADDED"]. :type value: str """ allowed_values = { - "case_created", - "status_transitioned", - "attribute_value_changed", - "event_correlation_signal_correlated", - "case_review_approved", - "comment_added", + "CASE_CREATED", + "STATUS_TRANSITIONED", + "ATTRIBUTE_VALUE_CHANGED", + "EVENT_CORRELATION_SIGNAL_CORRELATED", + "CASE_REVIEW_APPROVED", + "COMMENT_ADDED", } CASE_CREATED: ClassVar["AutomationRuleTriggerType"] STATUS_TRANSITIONED: ClassVar["AutomationRuleTriggerType"] @@ -42,11 +42,11 @@ def openapi_types(_): } -AutomationRuleTriggerType.CASE_CREATED = AutomationRuleTriggerType("case_created") -AutomationRuleTriggerType.STATUS_TRANSITIONED = AutomationRuleTriggerType("status_transitioned") -AutomationRuleTriggerType.ATTRIBUTE_VALUE_CHANGED = AutomationRuleTriggerType("attribute_value_changed") +AutomationRuleTriggerType.CASE_CREATED = AutomationRuleTriggerType("CASE_CREATED") +AutomationRuleTriggerType.STATUS_TRANSITIONED = AutomationRuleTriggerType("STATUS_TRANSITIONED") +AutomationRuleTriggerType.ATTRIBUTE_VALUE_CHANGED = AutomationRuleTriggerType("ATTRIBUTE_VALUE_CHANGED") AutomationRuleTriggerType.EVENT_CORRELATION_SIGNAL_CORRELATED = AutomationRuleTriggerType( - "event_correlation_signal_correlated" + "EVENT_CORRELATION_SIGNAL_CORRELATED" ) -AutomationRuleTriggerType.CASE_REVIEW_APPROVED = AutomationRuleTriggerType("case_review_approved") -AutomationRuleTriggerType.COMMENT_ADDED = AutomationRuleTriggerType("comment_added") +AutomationRuleTriggerType.CASE_REVIEW_APPROVED = AutomationRuleTriggerType("CASE_REVIEW_APPROVED") +AutomationRuleTriggerType.COMMENT_ADDED = AutomationRuleTriggerType("COMMENT_ADDED") diff --git a/tests/v2/features/case_management.feature b/tests/v2/features/case_management.feature index 8e2e9f6f6a..f34e59ada6 100644 --- a/tests/v2/features/case_management.feature +++ b/tests/v2/features/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