Skip to content

Commit 7f798b2

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit c162efd of spec repo (#3942)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 28d6577 commit 7f798b2

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33859,6 +33859,10 @@ components:
3385933859
DetachCaseRequestData:
3386033860
description: Data for detaching security findings from their case.
3386133861
properties:
33862+
id:
33863+
description: Unique identifier of the detachment request.
33864+
example: "c1234567-89ab-cdef-0123-456789abcdef"
33865+
type: string
3386233866
relationships:
3386333867
$ref: "#/components/schemas/DetachCaseRequestDataRelationships"
3386433868
type:
@@ -197222,6 +197226,7 @@ paths:
197222197226
default:
197223197227
value:
197224197228
data:
197229+
id: c1234567-89ab-cdef-0123-456789abcdef
197225197230
relationships:
197226197231
findings:
197227197232
data:

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,27 +27,38 @@ def openapi_types(_):
2727
from datadog_api_client.v2.model.case_data_type import CaseDataType
2828

2929
return {
30+
"id": (str,),
3031
"relationships": (DetachCaseRequestDataRelationships,),
3132
"type": (CaseDataType,),
3233
}
3334

3435
attribute_map = {
36+
"id": "id",
3537
"relationships": "relationships",
3638
"type": "type",
3739
}
3840

3941
def __init__(
40-
self_, type: CaseDataType, relationships: Union[DetachCaseRequestDataRelationships, UnsetType] = unset, **kwargs
42+
self_,
43+
type: CaseDataType,
44+
id: Union[str, UnsetType] = unset,
45+
relationships: Union[DetachCaseRequestDataRelationships, UnsetType] = unset,
46+
**kwargs,
4147
):
4248
"""
4349
Data for detaching security findings from their case.
4450
51+
:param id: Unique identifier of the detachment request.
52+
:type id: str, optional
53+
4554
:param relationships: Relationships detaching security findings from their case.
4655
:type relationships: DetachCaseRequestDataRelationships, optional
4756
4857
:param type: Cases resource type.
4958
:type type: CaseDataType
5059
"""
60+
if id is not unset:
61+
kwargs["id"] = id
5162
if relationships is not unset:
5263
kwargs["relationships"] = relationships
5364
super().__init__(kwargs)

0 commit comments

Comments
 (0)