Skip to content
Merged
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
317 changes: 308 additions & 9 deletions .generator/schemas/v2/openapi.yaml

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions src/datadog_api_client/v2/api/error_tracking_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,12 @@ def get_issue(
"""Get the details of an error tracking issue.

Retrieve the full details for a specific error tracking issue, including attributes and relationships.
Returns 403 if the caller lacks the ``error_tracking_read`` permission or does not have access to the issue's data.

:param issue_id: The identifier of the issue.
:type issue_id: str
:param include: Comma-separated list of relationship objects that should be included in the response.
Possible values are ``assignee`` , ``case`` , ``team_owners`` , and ``samples``.
: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``.
Values must not contain spaces. ``case`` and ``assignee`` return nothing, without an error, if the caller lacks the ``cases_read`` permission.
:type include: [GetIssueIncludeQueryParameterItem], optional
:param filter_samples_biases: Comma-separated list of biases used to pick the samples returned with ``include=samples``.
Requires ``include=samples``. Defaults to all biases.
Expand Down Expand Up @@ -228,7 +229,7 @@ def search_issues(

:param body: Search issues request payload.
:type body: IssuesSearchRequest
: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``.
: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``.
:type include: [SearchIssuesIncludeQueryParameterItem], optional
:rtype: IssuesSearchResponse
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,26 @@ class GetIssueIncludeQueryParameterItem(ModelSimple):
"""
Relationship object that should be included in the response.

:param value: Must be one of ["assignee", "case", "team_owners", "samples"].
:param value: Must be one of ["assignee", "bits_investigation", "case", "pull_requests", "samples", "team_owners", "watches"].
:type value: str
"""

allowed_values = {
"assignee",
"bits_investigation",
"case",
"team_owners",
"pull_requests",
"samples",
"team_owners",
"watches",
}
ASSIGNEE: ClassVar["GetIssueIncludeQueryParameterItem"]
BITS_INVESTIGATION: ClassVar["GetIssueIncludeQueryParameterItem"]
CASE: ClassVar["GetIssueIncludeQueryParameterItem"]
TEAM_OWNERS: ClassVar["GetIssueIncludeQueryParameterItem"]
PULL_REQUESTS: ClassVar["GetIssueIncludeQueryParameterItem"]
SAMPLES: ClassVar["GetIssueIncludeQueryParameterItem"]
TEAM_OWNERS: ClassVar["GetIssueIncludeQueryParameterItem"]
WATCHES: ClassVar["GetIssueIncludeQueryParameterItem"]

@cached_property
def openapi_types(_):
Expand All @@ -39,6 +45,9 @@ def openapi_types(_):


GetIssueIncludeQueryParameterItem.ASSIGNEE = GetIssueIncludeQueryParameterItem("assignee")
GetIssueIncludeQueryParameterItem.BITS_INVESTIGATION = GetIssueIncludeQueryParameterItem("bits_investigation")
GetIssueIncludeQueryParameterItem.CASE = GetIssueIncludeQueryParameterItem("case")
GetIssueIncludeQueryParameterItem.TEAM_OWNERS = GetIssueIncludeQueryParameterItem("team_owners")
GetIssueIncludeQueryParameterItem.PULL_REQUESTS = GetIssueIncludeQueryParameterItem("pull_requests")
GetIssueIncludeQueryParameterItem.SAMPLES = GetIssueIncludeQueryParameterItem("samples")
GetIssueIncludeQueryParameterItem.TEAM_OWNERS = GetIssueIncludeQueryParameterItem("team_owners")
GetIssueIncludeQueryParameterItem.WATCHES = GetIssueIncludeQueryParameterItem("watches")
2 changes: 1 addition & 1 deletion src/datadog_api_client/v2/model/issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def __init__(
:param id: Issue identifier.
:type id: str

:param relationships: Relationship between the issue and an assignee, case and/or teams.
:param relationships: Relationship between the issue and other resources, such as an assignee, case, teams, pull requests, watches, samples, or a Bits AI investigation.
:type relationships: IssueRelationships, optional

:param type: Type of the object.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations

from typing import TYPE_CHECKING

from datadog_api_client.model_utils import (
ModelNormal,
cached_property,
)


if TYPE_CHECKING:
from datadog_api_client.v2.model.issue_bits_investigation_type import IssueBitsInvestigationType


class IssueBitsInvestigationReference(ModelNormal):
@cached_property
def openapi_types(_):
from datadog_api_client.v2.model.issue_bits_investigation_type import IssueBitsInvestigationType

return {
"id": (str,),
"type": (IssueBitsInvestigationType,),
}

attribute_map = {
"id": "id",
"type": "type",
}

def __init__(self_, id: str, type: IssueBitsInvestigationType, **kwargs):
"""
The Bits AI investigation linked to the issue.

:param id: Bits AI investigation identifier.
:type id: str

:param type: Type of the object.
:type type: IssueBitsInvestigationType
"""
super().__init__(kwargs)

self_.id = id
self_.type = type
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations

from typing import TYPE_CHECKING

from datadog_api_client.model_utils import (
ModelNormal,
cached_property,
)


if TYPE_CHECKING:
from datadog_api_client.v2.model.issue_bits_investigation_reference import IssueBitsInvestigationReference


class IssueBitsInvestigationRelationship(ModelNormal):
@cached_property
def openapi_types(_):
from datadog_api_client.v2.model.issue_bits_investigation_reference import IssueBitsInvestigationReference

return {
"data": (IssueBitsInvestigationReference,),
}

attribute_map = {
"data": "data",
}

def __init__(self_, data: IssueBitsInvestigationReference, **kwargs):
"""
Bits AI investigation linked to the issue, returned when ``bits_investigation`` is requested
in the ``include`` query parameter.

:param data: The Bits AI investigation linked to the issue.
:type data: IssueBitsInvestigationReference
"""
super().__init__(kwargs)

self_.data = data
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations


from datadog_api_client.model_utils import (
ModelSimple,
cached_property,
)

from typing import ClassVar


class IssueBitsInvestigationType(ModelSimple):
"""
Type of the object.

:param value: If omitted defaults to "bits_investigation". Must be one of ["bits_investigation"].
:type value: str
"""

allowed_values = {
"bits_investigation",
}
BITS_INVESTIGATION: ClassVar["IssueBitsInvestigationType"]

@cached_property
def openapi_types(_):
return {
"value": (str,),
}


IssueBitsInvestigationType.BITS_INVESTIGATION = IssueBitsInvestigationType("bits_investigation")
18 changes: 18 additions & 0 deletions src/datadog_api_client/v2/model/issue_case_attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from datadog_api_client.v2.model.issue_case_linear_issue import IssueCaseLinearIssue
from datadog_api_client.v2.model.case_priority import CasePriority
from datadog_api_client.v2.model.case_status import CaseStatus
from datadog_api_client.v2.model.case_status_group import CaseStatusGroup


class IssueCaseAttributes(ModelNormal):
Expand All @@ -30,6 +31,7 @@ def openapi_types(_):
from datadog_api_client.v2.model.issue_case_linear_issue import IssueCaseLinearIssue
from datadog_api_client.v2.model.case_priority import CasePriority
from datadog_api_client.v2.model.case_status import CaseStatus
from datadog_api_client.v2.model.case_status_group import CaseStatusGroup

return {
"archived_at": (datetime,),
Expand All @@ -45,6 +47,8 @@ def openapi_types(_):
"modified_at": (datetime,),
"priority": (CasePriority,),
"status": (CaseStatus,),
"status_group": (CaseStatusGroup,),
"status_name": (str,),
"title": (str,),
"type": (str,),
}
Expand All @@ -63,6 +67,8 @@ def openapi_types(_):
"modified_at": "modified_at",
"priority": "priority",
"status": "status",
"status_group": "status_group",
"status_name": "status_name",
"title": "title",
"type": "type",
}
Expand All @@ -82,6 +88,8 @@ def __init__(
modified_at: Union[datetime, UnsetType] = unset,
priority: Union[CasePriority, UnsetType] = unset,
status: Union[CaseStatus, UnsetType] = unset,
status_group: Union[CaseStatusGroup, UnsetType] = unset,
status_name: Union[str, UnsetType] = unset,
title: Union[str, UnsetType] = unset,
type: Union[str, UnsetType] = unset,
**kwargs,
Expand Down Expand Up @@ -128,6 +136,12 @@ def __init__(
:param status: Deprecated way of representing the work item status, which only supports OPEN, IN_PROGRESS, and CLOSED statuses. Use ``status_name`` instead. **Deprecated**.
:type status: CaseStatus, optional

:param status_group: Status group of the work item.
:type status_group: CaseStatusGroup, optional

:param status_name: Status of the work item. Must be one of the existing statuses for the work item's type.
:type status_name: str, optional

:param title: Title of the case.
:type title: str, optional

Expand Down Expand Up @@ -160,6 +174,10 @@ def __init__(
kwargs["priority"] = priority
if status is not unset:
kwargs["status"] = status
if status_group is not unset:
kwargs["status_group"] = status_group
if status_name is not unset:
kwargs["status_name"] = status_name
if title is not unset:
kwargs["title"] = title
if type is not unset:
Expand Down
4 changes: 4 additions & 0 deletions src/datadog_api_client/v2/model/issue_included.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,17 @@ def _composed_schemas(_):
from datadog_api_client.v2.model.issue_case import IssueCase
from datadog_api_client.v2.model.issue_user import IssueUser
from datadog_api_client.v2.model.issue_team import IssueTeam
from datadog_api_client.v2.model.issue_pull_request import IssuePullRequest
from datadog_api_client.v2.model.issue_watch import IssueWatch
from datadog_api_client.v2.model.issue_sample import IssueSample

return {
"oneOf": [
IssueCase,
IssueUser,
IssueTeam,
IssuePullRequest,
IssueWatch,
IssueSample,
],
}
5 changes: 4 additions & 1 deletion src/datadog_api_client/v2/model/issue_language.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class IssueLanguage(ModelSimple):
"""
Programming language associated with the issue.

: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"].
: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"].
:type value: str
"""

Expand Down Expand Up @@ -46,6 +46,7 @@ class IssueLanguage(ModelSimple):
"SCALA",
"SWIFT",
"TERRAFORM",
"TF",
"TYPESCRIPT",
"UNKNOWN",
}
Expand Down Expand Up @@ -74,6 +75,7 @@ class IssueLanguage(ModelSimple):
SCALA: ClassVar["IssueLanguage"]
SWIFT: ClassVar["IssueLanguage"]
TERRAFORM: ClassVar["IssueLanguage"]
TF: ClassVar["IssueLanguage"]
TYPESCRIPT: ClassVar["IssueLanguage"]
UNKNOWN: ClassVar["IssueLanguage"]

Expand Down Expand Up @@ -109,5 +111,6 @@ def openapi_types(_):
IssueLanguage.SCALA = IssueLanguage("SCALA")
IssueLanguage.SWIFT = IssueLanguage("SWIFT")
IssueLanguage.TERRAFORM = IssueLanguage("TERRAFORM")
IssueLanguage.TF = IssueLanguage("TF")
IssueLanguage.TYPESCRIPT = IssueLanguage("TYPESCRIPT")
IssueLanguage.UNKNOWN = IssueLanguage("UNKNOWN")
5 changes: 4 additions & 1 deletion src/datadog_api_client/v2/model/issue_platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ class IssuePlatform(ModelSimple):
"""
Platform associated with the issue.

:param value: Must be one of ["ANDROID", "BACKEND", "BROWSER", "FLUTTER", "IOS", "REACT_NATIVE", "ROKU", "UNKNOWN"].
:param value: Must be one of ["ANDROID", "BACKEND", "BROWSER", "ELECTRON", "FLUTTER", "IOS", "REACT_NATIVE", "ROKU", "UNKNOWN"].
:type value: str
"""

allowed_values = {
"ANDROID",
"BACKEND",
"BROWSER",
"ELECTRON",
"FLUTTER",
"IOS",
"REACT_NATIVE",
Expand All @@ -33,6 +34,7 @@ class IssuePlatform(ModelSimple):
ANDROID: ClassVar["IssuePlatform"]
BACKEND: ClassVar["IssuePlatform"]
BROWSER: ClassVar["IssuePlatform"]
ELECTRON: ClassVar["IssuePlatform"]
FLUTTER: ClassVar["IssuePlatform"]
IOS: ClassVar["IssuePlatform"]
REACT_NATIVE: ClassVar["IssuePlatform"]
Expand All @@ -49,6 +51,7 @@ def openapi_types(_):
IssuePlatform.ANDROID = IssuePlatform("ANDROID")
IssuePlatform.BACKEND = IssuePlatform("BACKEND")
IssuePlatform.BROWSER = IssuePlatform("BROWSER")
IssuePlatform.ELECTRON = IssuePlatform("ELECTRON")
IssuePlatform.FLUTTER = IssuePlatform("FLUTTER")
IssuePlatform.IOS = IssuePlatform("IOS")
IssuePlatform.REACT_NATIVE = IssuePlatform("REACT_NATIVE")
Expand Down
Loading
Loading