Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
587 changes: 292 additions & 295 deletions .generator/schemas/v2/openapi.yaml

Large diffs are not rendered by default.

228 changes: 113 additions & 115 deletions src/datadog_api_client/v2/api/case_management_api.py

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions src/datadog_api_client/v2/api/case_management_attribute_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

class CaseManagementAttributeApi:
"""
View and configure custom attributes within Case Management. See the `Case Management page <https://docs.datadoghq.com/service_management/case_management/>`_ for more information.
View and configure custom attributes within Work Management. See the `Work Management page <https://docs.datadoghq.com/incident_response/work_management/>`_ for more information.
"""

def __init__(self, api_client=None):
Expand Down Expand Up @@ -156,9 +156,9 @@ def create_custom_attribute_config(
) -> CustomAttributeConfigResponse:
"""Create custom attribute config for a case type.

Create custom attribute config for a case type
Create a custom attribute configuration for a work item type.

:param case_type_id: The UUID of the case type.
:param case_type_id: The UUID of the work item type.
:type case_type_id: str
:param body: Custom attribute config payload
:type body: CustomAttributeConfigCreateRequest
Expand All @@ -180,9 +180,9 @@ def delete_custom_attribute_config(

Delete custom attribute config

:param case_type_id: The UUID of the case type.
:param case_type_id: The UUID of the work item type.
:type case_type_id: str
:param custom_attribute_id: Case Custom attribute's UUID
:param custom_attribute_id: Work item custom attribute's UUID.
:type custom_attribute_id: str
:rtype: None
"""
Expand All @@ -199,9 +199,9 @@ def get_all_custom_attribute_configs_by_case_type(
) -> CustomAttributeConfigsResponse:
"""Get all custom attributes config of case type.

Get all custom attribute config of case type
Get custom attribute configurations for a work item type.

:param case_type_id: The UUID of the case type.
:param case_type_id: The UUID of the work item type.
:type case_type_id: str
:rtype: CustomAttributeConfigsResponse
"""
Expand Down Expand Up @@ -230,11 +230,11 @@ def update_custom_attribute_config(
) -> CustomAttributeConfigResponse:
"""Update custom attribute config.

Updates the display name, description, type, or options of an existing custom attribute configuration for a case type.
Updates the display name, description, type, or options of an existing custom attribute configuration for a work item type.

:param case_type_id: The UUID of the case type.
:param case_type_id: The UUID of the work item type.
:type case_type_id: str
:param custom_attribute_id: Case Custom attribute's UUID
:param custom_attribute_id: Work item custom attribute's UUID.
:type custom_attribute_id: str
:param body: Custom attribute config payload.
:type body: CustomAttributeConfigUpdateRequest
Expand Down
18 changes: 9 additions & 9 deletions src/datadog_api_client/v2/api/case_management_type_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

class CaseManagementTypeApi:
"""
View and configure case types within Case Management. See the `Case Management page <https://docs.datadoghq.com/service_management/case_management/>`_ for more information.
View and configure work item types within Work Management. See the `Work Management page <https://docs.datadoghq.com/incident_response/work_management/>`_ for more information.
"""

def __init__(self, api_client=None):
Expand Down Expand Up @@ -114,9 +114,9 @@ def create_case_type(
) -> CaseTypeResponse:
"""Create a case type.

Create a Case Type
Create a work item type.

:param body: Case type payload
:param body: Work item type payload
:type body: CaseTypeCreateRequest
:rtype: CaseTypeResponse
"""
Expand All @@ -131,9 +131,9 @@ def delete_case_type(
) -> None:
"""Delete a case type.

Delete a case type
Delete a work item type

:param case_type_id: The UUID of the case type.
:param case_type_id: The UUID of the work item type.
:type case_type_id: str
:rtype: None
"""
Expand All @@ -147,7 +147,7 @@ def get_all_case_types(
) -> CaseTypesResponse:
"""Get all case types.

Get all case types
Get all work item types

:rtype: CaseTypesResponse
"""
Expand All @@ -161,11 +161,11 @@ def update_case_type(
) -> CaseTypeResponse:
"""Update a case type.

Updates the name, emoji, or description of an existing case type.
Updates the name, emoji, or description of an existing work item type.

:param case_type_id: The UUID of the case type.
:param case_type_id: The UUID of the work item type.
:type case_type_id: str
:param body: Case type payload.
:param body: Work item type payload.
:type body: CaseTypeUpdateRequest
:rtype: CaseTypeResponse
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(
**kwargs,
):
"""
Auto-close inactive cases settings.
Auto-close inactive work items settings.

:param enabled: Whether auto-close is enabled.
:type enabled: bool, optional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ def openapi_types(_):

def __init__(self_, auto_transition_assigned_cases_on_self_assigned: Union[bool, UnsetType] = unset, **kwargs):
"""
Auto-transition assigned cases settings.
Auto-transition assigned work items settings.

:param auto_transition_assigned_cases_on_self_assigned: Whether to auto-transition cases when self-assigned.
:param auto_transition_assigned_cases_on_self_assigned: Whether to auto-transition work items when self-assigned.
:type auto_transition_assigned_cases_on_self_assigned: bool, optional
"""
if auto_transition_assigned_cases_on_self_assigned is not unset:
Expand Down
4 changes: 2 additions & 2 deletions src/datadog_api_client/v2/model/automation_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def __init__(
**kwargs,
):
"""
An automation rule that executes an action (such as running a Datadog workflow or assigning an AI agent) when a specified case event occurs within a project.
An automation rule that executes an action (such as running a Datadog workflow or assigning an AI agent) when a specified work item event occurs within a project.

:param attributes: Core attributes of an automation rule, including its name, trigger condition, action to execute, and current state.
:type attributes: AutomationRuleAttributes
Expand All @@ -60,7 +60,7 @@ def __init__(
:param relationships: Related resources for the automation rule, including the users who created and last modified it.
:type relationships: AutomationRuleRelationships, optional

:param type: JSON:API resource type for case automation rules.
:param type: JSON:API resource type for work item automation rules.
:type type: CaseAutomationRuleResourceType
"""
if relationships is not unset:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 work item.
:type type: AutomationRuleActionType
"""
super().__init__(kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(
: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 work item. 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``.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

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 work item.

:param value: Must be one of ["EXECUTE_WORKFLOW", "ASSIGN_AGENT"].
:type value: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ def __init__(
:param name: A human-readable name for the automation rule, used to identify the rule in the UI and API responses.
:type name: str

:param state: Whether the automation rule is active. Enabled rules trigger on matching case events; disabled rules are inactive but preserve their configuration.
:param state: Whether the automation rule is active. Enabled rules trigger on matching work item events; disabled rules are inactive but preserve their configuration.
:type state: CaseAutomationRuleState

:param trigger: 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 trigger: Defines when the rule activates. Combines a trigger type (the work item event to listen for) with optional trigger data (conditions that narrow when the trigger fires).
:type trigger: AutomationRuleTrigger
"""
if modified_at is not unset:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(self_, attributes: AutomationRuleCreateAttributes, type: CaseAutoma
:param attributes: Attributes required to create an automation rule.
:type attributes: AutomationRuleCreateAttributes

:param type: JSON:API resource type for case automation rules.
:param type: JSON:API resource type for work item automation rules.
:type type: CaseAutomationRuleResourceType
"""
super().__init__(kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ def __init__(
:param name: Name of the automation rule.
:type name: str

:param state: Whether the automation rule is active. Enabled rules trigger on matching case events; disabled rules are inactive but preserve their configuration.
:param state: Whether the automation rule is active. Enabled rules trigger on matching work item events; disabled rules are inactive but preserve their configuration.
:type state: CaseAutomationRuleState, optional

:param trigger: 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 trigger: Defines when the rule activates. Combines a trigger type (the work item event to listen for) with optional trigger data (conditions that narrow when the trigger fires).
:type trigger: AutomationRuleTrigger
"""
if state is not unset:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(self_, data: AutomationRule, **kwargs):
"""
Response containing a single automation rule.

:param data: An automation rule that executes an action (such as running a Datadog workflow or assigning an AI agent) when a specified case event occurs within a project.
:param data: An automation rule that executes an action (such as running a Datadog workflow or assigning an AI agent) when a specified work item event occurs within a project.
:type data: AutomationRule
"""
super().__init__(kwargs)
Expand Down
4 changes: 2 additions & 2 deletions src/datadog_api_client/v2/model/automation_rule_trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ def __init__(
self_, type: AutomationRuleTriggerType, data: Union[AutomationRuleTriggerData, UnsetType] = unset, **kwargs
):
"""
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).
Defines when the rule activates. Combines a trigger type (the work item 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``.
:type data: AutomationRuleTriggerData, optional

:param type: The case event that activates the automation rule.
:param type: The work item event that activates the automation rule.
:type type: AutomationRuleTriggerType
"""
if data is not unset:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def __init__(
: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 work item 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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class AutomationRuleTriggerType(ModelSimple):
"""
The case event that activates the automation rule.
The work item 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"].
:type value: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __init__(
:param attributes: Attributes required to create an automation rule.
:type attributes: AutomationRuleCreateAttributes, optional

:param type: JSON:API resource type for case automation rules.
:param type: JSON:API resource type for work item automation rules.
:type type: CaseAutomationRuleResourceType
"""
if attributes is not unset:
Expand Down
10 changes: 5 additions & 5 deletions src/datadog_api_client/v2/model/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,18 @@ def __init__(
**kwargs,
):
"""
A case
A work item

:param attributes: Case resource attributes
:param attributes: Work item resource attributes
:type attributes: CaseAttributes

:param id: Case's identifier
:param id: Work item's identifier
:type id: str

:param relationships: Resources related to a case
:param relationships: Resources related to a work item
:type relationships: CaseRelationships, optional

:param type: JSON:API resource type for cases.
:param type: JSON:API resource type for work items.
:type type: CaseResourceType
"""
if relationships is not unset:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class Case3rdPartyTicketStatus(ModelSimple):
"""
Case status
Work item status

:param value: If omitted defaults to "IN_PROGRESS". Must be one of ["IN_PROGRESS", "COMPLETED", "FAILED"].
:type value: str
Expand Down
2 changes: 1 addition & 1 deletion src/datadog_api_client/v2/model/case_aggregate_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def __init__(self_, group: str, value: List[float], **kwargs):
:param group: The value of the field being grouped on (for example, ``OPEN`` when grouping by status).
:type group: str

:param value: The count of cases in this group.
:param value: The count of work items in this group.
:type value: [float]
"""
super().__init__(kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def openapi_types(_):

def __init__(self_, groups: List[str], limit: int, **kwargs):
"""
Configuration for grouping aggregated results by one or more case fields.
Configuration for grouping aggregated results by one or more work item fields.

:param groups: Fields to group by.
:type groups: [str]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def openapi_types(_):

def __init__(self_, data: CaseAggregateRequestData, **kwargs):
"""
Request payload for aggregating case counts with grouping. Use this to get faceted breakdowns of cases (for example, count of cases grouped by priority and status).
Request payload for aggregating work item counts with grouping. Use this to get faceted breakdowns of work items (for example, count of work items grouped by priority and status).

:param data: Data object wrapping the aggregation query type and attributes.
:type data: CaseAggregateRequestData
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ def __init__(self_, group_by: CaseAggregateGroupBy, query_filter: str, **kwargs)
"""
Attributes for the aggregation request, including the search query and grouping configuration.

:param group_by: Configuration for grouping aggregated results by one or more case fields.
:param group_by: Configuration for grouping aggregated results by one or more work item fields.
:type group_by: CaseAggregateGroupBy

:param query_filter: A search query to filter which cases are included in the aggregation. Uses the same syntax as the Case Management search bar.
:param query_filter: A search query to filter which work items are included in the aggregation. Uses the same syntax as the Work Management search bar.
:type query_filter: str
"""
super().__init__(kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(self_, attributes: CaseAggregateRequestAttributes, type: CaseAggreg
:param attributes: Attributes for the aggregation request, including the search query and grouping configuration.
:type attributes: CaseAggregateRequestAttributes

:param type: JSON:API resource type for case aggregation requests.
:param type: JSON:API resource type for work item aggregation requests.
:type type: CaseAggregateResourceType
"""
super().__init__(kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class CaseAggregateResourceType(ModelSimple):
"""
JSON:API resource type for case aggregation requests.
JSON:API resource type for work item aggregation requests.

:param value: If omitted defaults to "aggregate". Must be one of ["aggregate"].
:type value: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def openapi_types(_):

def __init__(self_, data: CaseAggregateResponseData, **kwargs):
"""
Response containing aggregated case counts grouped by the requested fields.
Response containing aggregated work item counts grouped by the requested fields.

:param data: Data object containing the aggregation results, including total count and per-group breakdowns.
:type data: CaseAggregateResponseData
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(self_, groups: List[CaseAggregateGroup], total: float, **kwargs):
:param groups: Aggregated groups.
:type groups: [CaseAggregateGroup]

:param total: Total count of aggregated cases.
:param total: Total count of aggregated work items.
:type total: float
"""
super().__init__(kwargs)
Expand Down
6 changes: 3 additions & 3 deletions src/datadog_api_client/v2/model/case_assign.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ def openapi_types(_):

def __init__(self_, attributes: CaseAssignAttributes, type: CaseResourceType, **kwargs):
"""
Case assign
Work item assign

:param attributes: Case assign attributes
:param attributes: Work item assign attributes
:type attributes: CaseAssignAttributes

:param type: JSON:API resource type for cases.
:param type: JSON:API resource type for work items.
:type type: CaseResourceType
"""
super().__init__(kwargs)
Expand Down
Loading
Loading