Skip to content

Commit 45464ce

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit c3f76df of spec repo
1 parent b532d69 commit 45464ce

4 files changed

Lines changed: 28 additions & 5 deletions

File tree

‎.generator/schemas/v2/openapi.yaml‎

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120888,7 +120888,12 @@ components:
120888120888
format: uuid
120889120889
type: string
120890120890
fields:
120891-
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).
120891+
description: |-
120892+
Target-specific fields of the ticket to create.
120893+
120894+
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).
120895+
120896+
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).
120892120897
example:
120893120898
labels:
120894120899
- security
@@ -120925,7 +120930,12 @@ components:
120925120930
example: "Daily ticket creation limit exceeded"
120926120931
type: string
120927120932
fields:
120928-
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).
120933+
description: |-
120934+
Target-specific fields of the ticket to create.
120935+
120936+
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).
120937+
120938+
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).
120929120939
example:
120930120940
labels:
120931120941
- security
@@ -121123,11 +121133,13 @@ components:
121123121133
enum:
121124121134
- jira
121125121135
- case_management
121136+
- linear
121126121137
example: jira
121127121138
type: string
121128121139
x-enum-varnames:
121129121140
- JIRA
121130121141
- CASE_MANAGEMENT
121142+
- LINEAR
121131121143
TimeAggregation:
121132121144
description: |-
121133121145
Time aggregation period (in seconds) is used to aggregate the results of the notification rule evaluation.

‎src/datadog_api_client/v2/model/ticket_creation_rule_action.py‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ def __init__(
6161
:param assignee_id: The UUID of the default assignee for created tickets.
6262
:type assignee_id: UUID, optional
6363
64-
:param fields: 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>`_.
64+
:param fields: Target-specific fields of the ticket to create.
65+
66+
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>`_.
67+
68+
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).
6569
:type fields: dict, optional
6670
6771
: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.

‎src/datadog_api_client/v2/model/ticket_creation_rule_action_response.py‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,11 @@ def __init__(
6767
:param auto_disabled_reason: The reason the rule was automatically disabled by the system due to a ticketing integration error.
6868
:type auto_disabled_reason: str, optional
6969
70-
:param fields: 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>`_.
70+
:param fields: Target-specific fields of the ticket to create.
71+
72+
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>`_.
73+
74+
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).
7175
:type fields: dict, optional
7276
7377
: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.

‎src/datadog_api_client/v2/model/ticket_creation_target.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,18 @@ class TicketCreationTarget(ModelSimple):
1616
"""
1717
The ticketing system to create tickets in.
1818
19-
:param value: Must be one of ["jira", "case_management"].
19+
:param value: Must be one of ["jira", "case_management", "linear"].
2020
:type value: str
2121
"""
2222

2323
allowed_values = {
2424
"jira",
2525
"case_management",
26+
"linear",
2627
}
2728
JIRA: ClassVar["TicketCreationTarget"]
2829
CASE_MANAGEMENT: ClassVar["TicketCreationTarget"]
30+
LINEAR: ClassVar["TicketCreationTarget"]
2931

3032
@cached_property
3133
def openapi_types(_):
@@ -36,3 +38,4 @@ def openapi_types(_):
3638

3739
TicketCreationTarget.JIRA = TicketCreationTarget("jira")
3840
TicketCreationTarget.CASE_MANAGEMENT = TicketCreationTarget("case_management")
41+
TicketCreationTarget.LINEAR = TicketCreationTarget("linear")

0 commit comments

Comments
 (0)