Skip to content

Commit b140b52

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit bb4e49d of spec repo (#3637)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 1e3faaa commit b140b52

8 files changed

Lines changed: 238 additions & 0 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44193,6 +44193,8 @@ components:
4419344193
description: Key of the case.
4419444194
example: "ET-123"
4419544195
type: string
44196+
linear_issue:
44197+
$ref: "#/components/schemas/IssueCaseLinearIssue"
4419644198
modified_at:
4419744199
description: Timestamp of when the case was last modified.
4419844200
example: "2025-01-01T00:00:00Z"
@@ -44230,6 +44232,10 @@ components:
4423044232
IssueCaseJiraIssue:
4423144233
description: Jira issue of the case.
4423244234
properties:
44235+
error_message:
44236+
description: Error message set when the Jira issue creation fails.
44237+
example: ""
44238+
type: string
4423344239
result:
4423444240
$ref: "#/components/schemas/IssueCaseJiraIssueResult"
4423544241
status:
@@ -44240,6 +44246,10 @@ components:
4424044246
IssueCaseJiraIssueResult:
4424144247
description: Contains the identifiers and URL for a successfully created Jira issue.
4424244248
properties:
44249+
account_id:
44250+
description: Jira account identifier.
44251+
example: "abcd1234-5678-90ab-cdef-1234567890ab"
44252+
type: string
4424344253
issue_id:
4424444254
description: Jira issue identifier.
4424544255
example: "1904866"
@@ -44252,11 +44262,53 @@ components:
4425244262
description: Jira issue URL.
4425344263
example: "https://your-jira-instance.atlassian.net/browse/ET-123"
4425444264
type: string
44265+
project_id:
44266+
description: Jira project identifier.
44267+
example: "10001"
44268+
type: string
4425544269
project_key:
4425644270
description: Jira project key.
4425744271
example: "ET"
4425844272
type: string
4425944273
type: object
44274+
IssueCaseLinearIssue:
44275+
description: Linear issue of the case.
44276+
properties:
44277+
error_message:
44278+
description: Error message set when the Linear issue creation fails.
44279+
example: ""
44280+
type: string
44281+
result:
44282+
$ref: "#/components/schemas/IssueCaseLinearIssueResult"
44283+
status:
44284+
description: Creation status of the Linear issue.
44285+
example: "COMPLETED"
44286+
type: string
44287+
type: object
44288+
IssueCaseLinearIssueResult:
44289+
description: Contains the identifiers and URL for a successfully created Linear issue.
44290+
properties:
44291+
account_id:
44292+
description: Linear account identifier.
44293+
example: "abcd1234-5678-90ab-cdef-1234567890ab"
44294+
type: string
44295+
issue_id:
44296+
description: Linear issue identifier.
44297+
example: "a1b2c3d4-5678-90ab-cdef-1234567890ab"
44298+
type: string
44299+
issue_key:
44300+
description: Linear issue key.
44301+
example: "ENG-123"
44302+
type: string
44303+
issue_url:
44304+
description: Linear issue URL.
44305+
example: "https://linear.app/your-workspace/issue/ENG-123"
44306+
type: string
44307+
team_id:
44308+
description: Linear team identifier.
44309+
example: "f1e2d3c4-5678-90ab-cdef-1234567890ab"
44310+
type: string
44311+
type: object
4426044312
IssueCaseReference:
4426144313
description: The case the issue is attached to.
4426244314
properties:

docs/datadog_api_client.v2.model.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18176,6 +18176,20 @@ datadog\_api\_client.v2.model.issue\_case\_jira\_issue\_result module
1817618176
:members:
1817718177
:show-inheritance:
1817818178

18179+
datadog\_api\_client.v2.model.issue\_case\_linear\_issue module
18180+
---------------------------------------------------------------
18181+
18182+
.. automodule:: datadog_api_client.v2.model.issue_case_linear_issue
18183+
:members:
18184+
:show-inheritance:
18185+
18186+
datadog\_api\_client.v2.model.issue\_case\_linear\_issue\_result module
18187+
-----------------------------------------------------------------------
18188+
18189+
.. automodule:: datadog_api_client.v2.model.issue_case_linear_issue_result
18190+
:members:
18191+
:show-inheritance:
18192+
1817918193
datadog\_api\_client.v2.model.issue\_case\_reference module
1818018194
-----------------------------------------------------------
1818118195

src/datadog_api_client/v2/model/issue_case_attributes.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
if TYPE_CHECKING:
1818
from datadog_api_client.v2.model.issue_case_insight import IssueCaseInsight
1919
from datadog_api_client.v2.model.issue_case_jira_issue import IssueCaseJiraIssue
20+
from datadog_api_client.v2.model.issue_case_linear_issue import IssueCaseLinearIssue
2021
from datadog_api_client.v2.model.case_priority import CasePriority
2122
from datadog_api_client.v2.model.case_status import CaseStatus
2223

@@ -26,6 +27,7 @@ class IssueCaseAttributes(ModelNormal):
2627
def openapi_types(_):
2728
from datadog_api_client.v2.model.issue_case_insight import IssueCaseInsight
2829
from datadog_api_client.v2.model.issue_case_jira_issue import IssueCaseJiraIssue
30+
from datadog_api_client.v2.model.issue_case_linear_issue import IssueCaseLinearIssue
2931
from datadog_api_client.v2.model.case_priority import CasePriority
3032
from datadog_api_client.v2.model.case_status import CaseStatus
3133

@@ -39,6 +41,7 @@ def openapi_types(_):
3941
"insights": ([IssueCaseInsight],),
4042
"jira_issue": (IssueCaseJiraIssue,),
4143
"key": (str,),
44+
"linear_issue": (IssueCaseLinearIssue,),
4245
"modified_at": (datetime,),
4346
"priority": (CasePriority,),
4447
"status": (CaseStatus,),
@@ -56,6 +59,7 @@ def openapi_types(_):
5659
"insights": "insights",
5760
"jira_issue": "jira_issue",
5861
"key": "key",
62+
"linear_issue": "linear_issue",
5963
"modified_at": "modified_at",
6064
"priority": "priority",
6165
"status": "status",
@@ -74,6 +78,7 @@ def __init__(
7478
insights: Union[List[IssueCaseInsight], UnsetType] = unset,
7579
jira_issue: Union[IssueCaseJiraIssue, UnsetType] = unset,
7680
key: Union[str, UnsetType] = unset,
81+
linear_issue: Union[IssueCaseLinearIssue, UnsetType] = unset,
7782
modified_at: Union[datetime, UnsetType] = unset,
7883
priority: Union[CasePriority, UnsetType] = unset,
7984
status: Union[CaseStatus, UnsetType] = unset,
@@ -111,6 +116,9 @@ def __init__(
111116
:param key: Key of the case.
112117
:type key: str, optional
113118
119+
:param linear_issue: Linear issue of the case.
120+
:type linear_issue: IssueCaseLinearIssue, optional
121+
114122
:param modified_at: Timestamp of when the case was last modified.
115123
:type modified_at: datetime, optional
116124
@@ -144,6 +152,8 @@ def __init__(
144152
kwargs["jira_issue"] = jira_issue
145153
if key is not unset:
146154
kwargs["key"] = key
155+
if linear_issue is not unset:
156+
kwargs["linear_issue"] = linear_issue
147157
if modified_at is not unset:
148158
kwargs["modified_at"] = modified_at
149159
if priority is not unset:

src/datadog_api_client/v2/model/issue_case_jira_issue.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,30 +23,38 @@ def openapi_types(_):
2323
from datadog_api_client.v2.model.issue_case_jira_issue_result import IssueCaseJiraIssueResult
2424

2525
return {
26+
"error_message": (str,),
2627
"result": (IssueCaseJiraIssueResult,),
2728
"status": (str,),
2829
}
2930

3031
attribute_map = {
32+
"error_message": "error_message",
3133
"result": "result",
3234
"status": "status",
3335
}
3436

3537
def __init__(
3638
self_,
39+
error_message: Union[str, UnsetType] = unset,
3740
result: Union[IssueCaseJiraIssueResult, UnsetType] = unset,
3841
status: Union[str, UnsetType] = unset,
3942
**kwargs,
4043
):
4144
"""
4245
Jira issue of the case.
4346
47+
:param error_message: Error message set when the Jira issue creation fails.
48+
:type error_message: str, optional
49+
4450
:param result: Contains the identifiers and URL for a successfully created Jira issue.
4551
:type result: IssueCaseJiraIssueResult, optional
4652
4753
:param status: Creation status of the Jira issue.
4854
:type status: str, optional
4955
"""
56+
if error_message is not unset:
57+
kwargs["error_message"] = error_message
5058
if result is not unset:
5159
kwargs["result"] = result
5260
if status is not unset:

src/datadog_api_client/v2/model/issue_case_jira_issue_result.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,30 +17,39 @@ class IssueCaseJiraIssueResult(ModelNormal):
1717
@cached_property
1818
def openapi_types(_):
1919
return {
20+
"account_id": (str,),
2021
"issue_id": (str,),
2122
"issue_key": (str,),
2223
"issue_url": (str,),
24+
"project_id": (str,),
2325
"project_key": (str,),
2426
}
2527

2628
attribute_map = {
29+
"account_id": "account_id",
2730
"issue_id": "issue_id",
2831
"issue_key": "issue_key",
2932
"issue_url": "issue_url",
33+
"project_id": "project_id",
3034
"project_key": "project_key",
3135
}
3236

3337
def __init__(
3438
self_,
39+
account_id: Union[str, UnsetType] = unset,
3540
issue_id: Union[str, UnsetType] = unset,
3641
issue_key: Union[str, UnsetType] = unset,
3742
issue_url: Union[str, UnsetType] = unset,
43+
project_id: Union[str, UnsetType] = unset,
3844
project_key: Union[str, UnsetType] = unset,
3945
**kwargs,
4046
):
4147
"""
4248
Contains the identifiers and URL for a successfully created Jira issue.
4349
50+
:param account_id: Jira account identifier.
51+
:type account_id: str, optional
52+
4453
:param issue_id: Jira issue identifier.
4554
:type issue_id: str, optional
4655
@@ -50,15 +59,22 @@ def __init__(
5059
:param issue_url: Jira issue URL.
5160
:type issue_url: str, optional
5261
62+
:param project_id: Jira project identifier.
63+
:type project_id: str, optional
64+
5365
:param project_key: Jira project key.
5466
:type project_key: str, optional
5567
"""
68+
if account_id is not unset:
69+
kwargs["account_id"] = account_id
5670
if issue_id is not unset:
5771
kwargs["issue_id"] = issue_id
5872
if issue_key is not unset:
5973
kwargs["issue_key"] = issue_key
6074
if issue_url is not unset:
6175
kwargs["issue_url"] = issue_url
76+
if project_id is not unset:
77+
kwargs["project_id"] = project_id
6278
if project_key is not unset:
6379
kwargs["project_key"] = project_key
6480
super().__init__(kwargs)
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
from typing import Union, TYPE_CHECKING
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
unset,
12+
UnsetType,
13+
)
14+
15+
16+
if TYPE_CHECKING:
17+
from datadog_api_client.v2.model.issue_case_linear_issue_result import IssueCaseLinearIssueResult
18+
19+
20+
class IssueCaseLinearIssue(ModelNormal):
21+
@cached_property
22+
def openapi_types(_):
23+
from datadog_api_client.v2.model.issue_case_linear_issue_result import IssueCaseLinearIssueResult
24+
25+
return {
26+
"error_message": (str,),
27+
"result": (IssueCaseLinearIssueResult,),
28+
"status": (str,),
29+
}
30+
31+
attribute_map = {
32+
"error_message": "error_message",
33+
"result": "result",
34+
"status": "status",
35+
}
36+
37+
def __init__(
38+
self_,
39+
error_message: Union[str, UnsetType] = unset,
40+
result: Union[IssueCaseLinearIssueResult, UnsetType] = unset,
41+
status: Union[str, UnsetType] = unset,
42+
**kwargs,
43+
):
44+
"""
45+
Linear issue of the case.
46+
47+
:param error_message: Error message set when the Linear issue creation fails.
48+
:type error_message: str, optional
49+
50+
:param result: Contains the identifiers and URL for a successfully created Linear issue.
51+
:type result: IssueCaseLinearIssueResult, optional
52+
53+
:param status: Creation status of the Linear issue.
54+
:type status: str, optional
55+
"""
56+
if error_message is not unset:
57+
kwargs["error_message"] = error_message
58+
if result is not unset:
59+
kwargs["result"] = result
60+
if status is not unset:
61+
kwargs["status"] = status
62+
super().__init__(kwargs)

0 commit comments

Comments
 (0)