Skip to content
Open
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
4 changes: 4 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33763,6 +33763,10 @@ components:
DetachCaseRequestData:
description: Data for detaching security findings from their case.
properties:
id:
description: Unique identifier of the case.
example: "c1234567-89ab-cdef-0123-456789abcdef"
type: string
relationships:
$ref: "#/components/schemas/DetachCaseRequestDataRelationships"
type:
Expand Down
13 changes: 12 additions & 1 deletion src/datadog_api_client/v2/model/detach_case_request_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,27 +27,38 @@ def openapi_types(_):
from datadog_api_client.v2.model.case_data_type import CaseDataType

return {
"id": (str,),
"relationships": (DetachCaseRequestDataRelationships,),
"type": (CaseDataType,),
}

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

def __init__(
self_, type: CaseDataType, relationships: Union[DetachCaseRequestDataRelationships, UnsetType] = unset, **kwargs
self_,
type: CaseDataType,
id: Union[str, UnsetType] = unset,
relationships: Union[DetachCaseRequestDataRelationships, UnsetType] = unset,
**kwargs,
):
"""
Data for detaching security findings from their case.

:param id: Unique identifier of the case.
:type id: str, optional

:param relationships: Relationships detaching security findings from their case.
:type relationships: DetachCaseRequestDataRelationships, optional

:param type: Cases resource type.
:type type: CaseDataType
"""
if id is not unset:
kwargs["id"] = id
if relationships is not unset:
kwargs["relationships"] = relationships
super().__init__(kwargs)
Expand Down
Loading