Skip to content

Commit 0beebb2

Browse files
dd-octo-sts[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit e5e13bd of spec repo (#4297)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 26e564a commit 0beebb2

38 files changed

Lines changed: 1544 additions & 24 deletions

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

Lines changed: 308 additions & 9 deletions
Large diffs are not rendered by default.

‎src/datadog_api_client/v2/api/error_tracking_api.py‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,11 +194,12 @@ def get_issue(
194194
"""Get the details of an error tracking issue.
195195
196196
Retrieve the full details for a specific error tracking issue, including attributes and relationships.
197+
Returns 403 if the caller lacks the ``error_tracking_read`` permission or does not have access to the issue's data.
197198
198199
:param issue_id: The identifier of the issue.
199200
:type issue_id: str
200-
:param include: Comma-separated list of relationship objects that should be included in the response.
201-
Possible values are ``assignee`` , ``case`` , ``team_owners`` , and ``samples``.
201+
:param include: Comma-separated list of relationship objects that should be included in the response. Possible values are ``assignee`` , ``bits_investigation`` , ``case`` , ``pull_requests`` , ``samples`` , ``team_owners`` , and ``watches``.
202+
Values must not contain spaces. ``case`` and ``assignee`` return nothing, without an error, if the caller lacks the ``cases_read`` permission.
202203
:type include: [GetIssueIncludeQueryParameterItem], optional
203204
:param filter_samples_biases: Comma-separated list of biases used to pick the samples returned with ``include=samples``.
204205
Requires ``include=samples``. Defaults to all biases.
@@ -228,7 +229,7 @@ def search_issues(
228229
229230
:param body: Search issues request payload.
230231
:type body: IssuesSearchRequest
231-
:param include: Comma-separated list of relationship objects that should be included in the response. Possible values are ``issue`` , ``issue.assignee`` , ``issue.case`` , and ``issue.team_owners``.
232+
:param include: Comma-separated list of relationship objects that should be included in the response. Possible values are ``issue`` , ``issue.assignee`` , ``issue.bits_investigation`` , ``issue.case`` , ``issue.impacted_sessions`` , ``issue.impacted_users`` , ``issue.pull_requests`` , ``issue.team_owners`` , and ``issue.watches``.
232233
:type include: [SearchIssuesIncludeQueryParameterItem], optional
233234
:rtype: IssuesSearchResponse
234235
"""

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

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,26 @@ class GetIssueIncludeQueryParameterItem(ModelSimple):
1616
"""
1717
Relationship object that should be included in the response.
1818
19-
:param value: Must be one of ["assignee", "case", "team_owners", "samples"].
19+
:param value: Must be one of ["assignee", "bits_investigation", "case", "pull_requests", "samples", "team_owners", "watches"].
2020
:type value: str
2121
"""
2222

2323
allowed_values = {
2424
"assignee",
25+
"bits_investigation",
2526
"case",
26-
"team_owners",
27+
"pull_requests",
2728
"samples",
29+
"team_owners",
30+
"watches",
2831
}
2932
ASSIGNEE: ClassVar["GetIssueIncludeQueryParameterItem"]
33+
BITS_INVESTIGATION: ClassVar["GetIssueIncludeQueryParameterItem"]
3034
CASE: ClassVar["GetIssueIncludeQueryParameterItem"]
31-
TEAM_OWNERS: ClassVar["GetIssueIncludeQueryParameterItem"]
35+
PULL_REQUESTS: ClassVar["GetIssueIncludeQueryParameterItem"]
3236
SAMPLES: ClassVar["GetIssueIncludeQueryParameterItem"]
37+
TEAM_OWNERS: ClassVar["GetIssueIncludeQueryParameterItem"]
38+
WATCHES: ClassVar["GetIssueIncludeQueryParameterItem"]
3339

3440
@cached_property
3541
def openapi_types(_):
@@ -39,6 +45,9 @@ def openapi_types(_):
3945

4046

4147
GetIssueIncludeQueryParameterItem.ASSIGNEE = GetIssueIncludeQueryParameterItem("assignee")
48+
GetIssueIncludeQueryParameterItem.BITS_INVESTIGATION = GetIssueIncludeQueryParameterItem("bits_investigation")
4249
GetIssueIncludeQueryParameterItem.CASE = GetIssueIncludeQueryParameterItem("case")
43-
GetIssueIncludeQueryParameterItem.TEAM_OWNERS = GetIssueIncludeQueryParameterItem("team_owners")
50+
GetIssueIncludeQueryParameterItem.PULL_REQUESTS = GetIssueIncludeQueryParameterItem("pull_requests")
4451
GetIssueIncludeQueryParameterItem.SAMPLES = GetIssueIncludeQueryParameterItem("samples")
52+
GetIssueIncludeQueryParameterItem.TEAM_OWNERS = GetIssueIncludeQueryParameterItem("team_owners")
53+
GetIssueIncludeQueryParameterItem.WATCHES = GetIssueIncludeQueryParameterItem("watches")

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def __init__(
5757
:param id: Issue identifier.
5858
:type id: str
5959
60-
:param relationships: Relationship between the issue and an assignee, case and/or teams.
60+
:param relationships: Relationship between the issue and other resources, such as an assignee, case, teams, pull requests, watches, samples, or a Bits AI investigation.
6161
:type relationships: IssueRelationships, optional
6262
6363
:param type: Type of the object.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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 TYPE_CHECKING
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
)
12+
13+
14+
if TYPE_CHECKING:
15+
from datadog_api_client.v2.model.issue_bits_investigation_type import IssueBitsInvestigationType
16+
17+
18+
class IssueBitsInvestigationReference(ModelNormal):
19+
@cached_property
20+
def openapi_types(_):
21+
from datadog_api_client.v2.model.issue_bits_investigation_type import IssueBitsInvestigationType
22+
23+
return {
24+
"id": (str,),
25+
"type": (IssueBitsInvestigationType,),
26+
}
27+
28+
attribute_map = {
29+
"id": "id",
30+
"type": "type",
31+
}
32+
33+
def __init__(self_, id: str, type: IssueBitsInvestigationType, **kwargs):
34+
"""
35+
The Bits AI investigation linked to the issue.
36+
37+
:param id: Bits AI investigation identifier.
38+
:type id: str
39+
40+
:param type: Type of the object.
41+
:type type: IssueBitsInvestigationType
42+
"""
43+
super().__init__(kwargs)
44+
45+
self_.id = id
46+
self_.type = type
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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 TYPE_CHECKING
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
)
12+
13+
14+
if TYPE_CHECKING:
15+
from datadog_api_client.v2.model.issue_bits_investigation_reference import IssueBitsInvestigationReference
16+
17+
18+
class IssueBitsInvestigationRelationship(ModelNormal):
19+
@cached_property
20+
def openapi_types(_):
21+
from datadog_api_client.v2.model.issue_bits_investigation_reference import IssueBitsInvestigationReference
22+
23+
return {
24+
"data": (IssueBitsInvestigationReference,),
25+
}
26+
27+
attribute_map = {
28+
"data": "data",
29+
}
30+
31+
def __init__(self_, data: IssueBitsInvestigationReference, **kwargs):
32+
"""
33+
Bits AI investigation linked to the issue, returned when ``bits_investigation`` is requested
34+
in the ``include`` query parameter.
35+
36+
:param data: The Bits AI investigation linked to the issue.
37+
:type data: IssueBitsInvestigationReference
38+
"""
39+
super().__init__(kwargs)
40+
41+
self_.data = data
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
7+
from datadog_api_client.model_utils import (
8+
ModelSimple,
9+
cached_property,
10+
)
11+
12+
from typing import ClassVar
13+
14+
15+
class IssueBitsInvestigationType(ModelSimple):
16+
"""
17+
Type of the object.
18+
19+
:param value: If omitted defaults to "bits_investigation". Must be one of ["bits_investigation"].
20+
:type value: str
21+
"""
22+
23+
allowed_values = {
24+
"bits_investigation",
25+
}
26+
BITS_INVESTIGATION: ClassVar["IssueBitsInvestigationType"]
27+
28+
@cached_property
29+
def openapi_types(_):
30+
return {
31+
"value": (str,),
32+
}
33+
34+
35+
IssueBitsInvestigationType.BITS_INVESTIGATION = IssueBitsInvestigationType("bits_investigation")

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from datadog_api_client.v2.model.issue_case_linear_issue import IssueCaseLinearIssue
2121
from datadog_api_client.v2.model.case_priority import CasePriority
2222
from datadog_api_client.v2.model.case_status import CaseStatus
23+
from datadog_api_client.v2.model.case_status_group import CaseStatusGroup
2324

2425

2526
class IssueCaseAttributes(ModelNormal):
@@ -30,6 +31,7 @@ def openapi_types(_):
3031
from datadog_api_client.v2.model.issue_case_linear_issue import IssueCaseLinearIssue
3132
from datadog_api_client.v2.model.case_priority import CasePriority
3233
from datadog_api_client.v2.model.case_status import CaseStatus
34+
from datadog_api_client.v2.model.case_status_group import CaseStatusGroup
3335

3436
return {
3537
"archived_at": (datetime,),
@@ -45,6 +47,8 @@ def openapi_types(_):
4547
"modified_at": (datetime,),
4648
"priority": (CasePriority,),
4749
"status": (CaseStatus,),
50+
"status_group": (CaseStatusGroup,),
51+
"status_name": (str,),
4852
"title": (str,),
4953
"type": (str,),
5054
}
@@ -63,6 +67,8 @@ def openapi_types(_):
6367
"modified_at": "modified_at",
6468
"priority": "priority",
6569
"status": "status",
70+
"status_group": "status_group",
71+
"status_name": "status_name",
6672
"title": "title",
6773
"type": "type",
6874
}
@@ -82,6 +88,8 @@ def __init__(
8288
modified_at: Union[datetime, UnsetType] = unset,
8389
priority: Union[CasePriority, UnsetType] = unset,
8490
status: Union[CaseStatus, UnsetType] = unset,
91+
status_group: Union[CaseStatusGroup, UnsetType] = unset,
92+
status_name: Union[str, UnsetType] = unset,
8593
title: Union[str, UnsetType] = unset,
8694
type: Union[str, UnsetType] = unset,
8795
**kwargs,
@@ -128,6 +136,12 @@ def __init__(
128136
:param status: Deprecated way of representing the work item status, which only supports OPEN, IN_PROGRESS, and CLOSED statuses. Use ``status_name`` instead. **Deprecated**.
129137
:type status: CaseStatus, optional
130138
139+
:param status_group: Status group of the work item.
140+
:type status_group: CaseStatusGroup, optional
141+
142+
:param status_name: Status of the work item. Must be one of the existing statuses for the work item's type.
143+
:type status_name: str, optional
144+
131145
:param title: Title of the case.
132146
:type title: str, optional
133147
@@ -160,6 +174,10 @@ def __init__(
160174
kwargs["priority"] = priority
161175
if status is not unset:
162176
kwargs["status"] = status
177+
if status_group is not unset:
178+
kwargs["status_group"] = status_group
179+
if status_name is not unset:
180+
kwargs["status_name"] = status_name
163181
if title is not unset:
164182
kwargs["title"] = title
165183
if type is not unset:

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,17 @@ def _composed_schemas(_):
4141
from datadog_api_client.v2.model.issue_case import IssueCase
4242
from datadog_api_client.v2.model.issue_user import IssueUser
4343
from datadog_api_client.v2.model.issue_team import IssueTeam
44+
from datadog_api_client.v2.model.issue_pull_request import IssuePullRequest
45+
from datadog_api_client.v2.model.issue_watch import IssueWatch
4446
from datadog_api_client.v2.model.issue_sample import IssueSample
4547

4648
return {
4749
"oneOf": [
4850
IssueCase,
4951
IssueUser,
5052
IssueTeam,
53+
IssuePullRequest,
54+
IssueWatch,
5155
IssueSample,
5256
],
5357
}

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class IssueLanguage(ModelSimple):
1616
"""
1717
Programming language associated with the issue.
1818
19-
:param value: Must be one of ["BRIGHTSCRIPT", "C", "C_PLUS_PLUS", "C_SHARP", "CLOJURE", "DOT_NET", "ELIXIR", "ERLANG", "GO", "GROOVY", "HASKELL", "HCL", "JAVA", "JAVASCRIPT", "JVM", "KOTLIN", "OBJECTIVE_C", "PERL", "PHP", "PYTHON", "RUBY", "RUST", "SCALA", "SWIFT", "TERRAFORM", "TYPESCRIPT", "UNKNOWN"].
19+
:param value: Must be one of ["BRIGHTSCRIPT", "C", "C_PLUS_PLUS", "C_SHARP", "CLOJURE", "DOT_NET", "ELIXIR", "ERLANG", "GO", "GROOVY", "HASKELL", "HCL", "JAVA", "JAVASCRIPT", "JVM", "KOTLIN", "OBJECTIVE_C", "PERL", "PHP", "PYTHON", "RUBY", "RUST", "SCALA", "SWIFT", "TERRAFORM", "TF", "TYPESCRIPT", "UNKNOWN"].
2020
:type value: str
2121
"""
2222

@@ -46,6 +46,7 @@ class IssueLanguage(ModelSimple):
4646
"SCALA",
4747
"SWIFT",
4848
"TERRAFORM",
49+
"TF",
4950
"TYPESCRIPT",
5051
"UNKNOWN",
5152
}
@@ -74,6 +75,7 @@ class IssueLanguage(ModelSimple):
7475
SCALA: ClassVar["IssueLanguage"]
7576
SWIFT: ClassVar["IssueLanguage"]
7677
TERRAFORM: ClassVar["IssueLanguage"]
78+
TF: ClassVar["IssueLanguage"]
7779
TYPESCRIPT: ClassVar["IssueLanguage"]
7880
UNKNOWN: ClassVar["IssueLanguage"]
7981

@@ -109,5 +111,6 @@ def openapi_types(_):
109111
IssueLanguage.SCALA = IssueLanguage("SCALA")
110112
IssueLanguage.SWIFT = IssueLanguage("SWIFT")
111113
IssueLanguage.TERRAFORM = IssueLanguage("TERRAFORM")
114+
IssueLanguage.TF = IssueLanguage("TF")
112115
IssueLanguage.TYPESCRIPT = IssueLanguage("TYPESCRIPT")
113116
IssueLanguage.UNKNOWN = IssueLanguage("UNKNOWN")

0 commit comments

Comments
 (0)