From 45464cecd9aa51a4e46cd320850eb4008587e5e4 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 10 Sep 2026 17:22:26 +0000 Subject: [PATCH] Regenerate client from commit c3f76df of spec repo --- .generator/schemas/v2/openapi.yaml | 16 ++++++++++++++-- .../v2/model/ticket_creation_rule_action.py | 6 +++++- .../ticket_creation_rule_action_response.py | 6 +++++- .../v2/model/ticket_creation_target.py | 5 ++++- 4 files changed, 28 insertions(+), 5 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 4e7be20f13..c8e6800c4b 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -120888,7 +120888,12 @@ components: format: uuid type: string fields: - description: Custom fields of the Jira issue to create. For the list of available fields, see [Jira documentation](https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issues/#api-rest-api-2-issue-createmeta-projectidorkey-issuetypes-issuetypeid-get). + description: |- + Target-specific fields of the ticket to create. + + For `target: jira`, the custom fields of the Jira issue. For the list of available fields, see [Jira documentation](https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issues/#api-rest-api-2-issue-createmeta-projectidorkey-issuetypes-issuetypeid-get). + + For `target: linear`, the optional keys `linear_project_id` (string, the identifier of the Linear project the issue is created in) and `linear_label_ids` (array of strings, the identifiers of the Linear labels applied to the issue). example: labels: - security @@ -120925,7 +120930,12 @@ components: example: "Daily ticket creation limit exceeded" type: string fields: - description: Custom fields of the Jira issue to create. For the list of available fields, see [Jira documentation](https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issues/#api-rest-api-2-issue-createmeta-projectidorkey-issuetypes-issuetypeid-get). + description: |- + Target-specific fields of the ticket to create. + + For `target: jira`, the custom fields of the Jira issue. For the list of available fields, see [Jira documentation](https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issues/#api-rest-api-2-issue-createmeta-projectidorkey-issuetypes-issuetypeid-get). + + For `target: linear`, the optional keys `linear_project_id` (string, the identifier of the Linear project the issue is created in) and `linear_label_ids` (array of strings, the identifiers of the Linear labels applied to the issue). example: labels: - security @@ -121123,11 +121133,13 @@ components: enum: - jira - case_management + - linear example: jira type: string x-enum-varnames: - JIRA - CASE_MANAGEMENT + - LINEAR TimeAggregation: description: |- Time aggregation period (in seconds) is used to aggregate the results of the notification rule evaluation. diff --git a/src/datadog_api_client/v2/model/ticket_creation_rule_action.py b/src/datadog_api_client/v2/model/ticket_creation_rule_action.py index 73d4f18f8a..63bd23f3f4 100644 --- a/src/datadog_api_client/v2/model/ticket_creation_rule_action.py +++ b/src/datadog_api_client/v2/model/ticket_creation_rule_action.py @@ -61,7 +61,11 @@ def __init__( :param assignee_id: The UUID of the default assignee for created tickets. :type assignee_id: UUID, optional - :param fields: Custom fields of the Jira issue to create. For the list of available fields, see `Jira documentation `_. + :param fields: Target-specific fields of the ticket to create. + + For ``target: jira`` , the custom fields of the Jira issue. For the list of available fields, see `Jira documentation `_. + + For ``target: linear`` , the optional keys ``linear_project_id`` (string, the identifier of the Linear project the issue is created in) and ``linear_label_ids`` (array of strings, the identifiers of the Linear labels applied to the issue). :type fields: dict, optional :param max_tickets_per_day: The maximum number of tickets the rule may create per day. If exceeded, one final ticket will be created, explaining the limit was hit and link back to the responsible rule. diff --git a/src/datadog_api_client/v2/model/ticket_creation_rule_action_response.py b/src/datadog_api_client/v2/model/ticket_creation_rule_action_response.py index 6b1f32f64c..ab68a1724f 100644 --- a/src/datadog_api_client/v2/model/ticket_creation_rule_action_response.py +++ b/src/datadog_api_client/v2/model/ticket_creation_rule_action_response.py @@ -67,7 +67,11 @@ def __init__( :param auto_disabled_reason: The reason the rule was automatically disabled by the system due to a ticketing integration error. :type auto_disabled_reason: str, optional - :param fields: Custom fields of the Jira issue to create. For the list of available fields, see `Jira documentation `_. + :param fields: Target-specific fields of the ticket to create. + + For ``target: jira`` , the custom fields of the Jira issue. For the list of available fields, see `Jira documentation `_. + + For ``target: linear`` , the optional keys ``linear_project_id`` (string, the identifier of the Linear project the issue is created in) and ``linear_label_ids`` (array of strings, the identifiers of the Linear labels applied to the issue). :type fields: dict, optional :param max_tickets_per_day: The maximum number of tickets the rule may create per day. If exceeded, one final ticket will be created, explaining the limit was hit and link back to the responsible rule. diff --git a/src/datadog_api_client/v2/model/ticket_creation_target.py b/src/datadog_api_client/v2/model/ticket_creation_target.py index cccffe441a..75d87e2e00 100644 --- a/src/datadog_api_client/v2/model/ticket_creation_target.py +++ b/src/datadog_api_client/v2/model/ticket_creation_target.py @@ -16,16 +16,18 @@ class TicketCreationTarget(ModelSimple): """ The ticketing system to create tickets in. - :param value: Must be one of ["jira", "case_management"]. + :param value: Must be one of ["jira", "case_management", "linear"]. :type value: str """ allowed_values = { "jira", "case_management", + "linear", } JIRA: ClassVar["TicketCreationTarget"] CASE_MANAGEMENT: ClassVar["TicketCreationTarget"] + LINEAR: ClassVar["TicketCreationTarget"] @cached_property def openapi_types(_): @@ -36,3 +38,4 @@ def openapi_types(_): TicketCreationTarget.JIRA = TicketCreationTarget("jira") TicketCreationTarget.CASE_MANAGEMENT = TicketCreationTarget("case_management") +TicketCreationTarget.LINEAR = TicketCreationTarget("linear")