diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 9b5a962d17..4c530e2689 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -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: diff --git a/src/datadog_api_client/v2/model/detach_case_request_data.py b/src/datadog_api_client/v2/model/detach_case_request_data.py index 84244c5782..c016349cfe 100644 --- a/src/datadog_api_client/v2/model/detach_case_request_data.py +++ b/src/datadog_api_client/v2/model/detach_case_request_data.py @@ -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)