From 75f0e0f9b545ad5a786d1763f980a04c6d818a37 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 22 Oct 2026 17:48:32 +0000 Subject: [PATCH] Regenerate client from commit cde1c1b of spec repo --- .generator/schemas/v2/openapi.yaml | 12 +++- ...nce_control_detection_assignment_source.py | 4 +- ...governance_control_detection_attributes.py | 60 +++++++++---------- 3 files changed, 44 insertions(+), 32 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index c680cd9d1d..a6b689f90e 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -56955,13 +56955,14 @@ components: - attributes type: object GovernanceControlDetectionAssignmentSource: - description: How the detection's current assignment was determined. Possible values are `auto_resolved`, `manual`, `reassigned`, and `cleared`. + description: How the detection's current assignment was determined. Possible values are `auto_resolved`, `manual`, `reassigned`, and `cleared`. `null` when not set. enum: - auto_resolved - manual - reassigned - cleared example: "manual" + nullable: true type: string x-enum-varnames: - AUTO_RESOLVED @@ -56974,10 +56975,12 @@ components: assigned_team: description: The identifier of the team the detection is assigned to, if any. example: "platform-security" + nullable: true type: string assigned_to: description: The identifier of the user the detection is assigned to, if any. example: "11111111-2222-3333-4444-555555555555" + nullable: true type: string assignment_source: $ref: "#/components/schemas/GovernanceControlDetectionAssignmentSource" @@ -57000,15 +57003,18 @@ components: display_name: description: The human-readable name of the detected resource. example: "CI Deploy Key" + nullable: true type: string exception_at: description: The date and time when the detection was marked as an exception, if applicable. example: "2024-03-05T09:00:00Z" format: date-time + nullable: true type: string exception_by: description: The identifier of the user who marked the detection as an exception, if applicable. example: "11111111-2222-3333-4444-555555555555" + nullable: true type: string metadata: description: Free-form metadata associated with the detection. @@ -57018,16 +57024,19 @@ components: description: The date and time after which the detection is scheduled to be mitigated, if applicable. example: "2024-03-15T00:00:00Z" format: date-time + nullable: true type: string mitigated_at: description: The date and time when the detection was mitigated, if applicable. example: "2024-03-10T15:30:00Z" format: date-time + nullable: true type: string priority: description: The priority of the detection, if set. example: 1 format: int64 + nullable: true type: integer resource_id: description: The identifier of the resource the detection applies to. @@ -57036,6 +57045,7 @@ components: resource_type: description: The type of resource the detection applies to, for example `api_key` or `dashboard`. example: "api_key" + nullable: true type: string state: $ref: "#/components/schemas/GovernanceControlDetectionState" diff --git a/src/datadog_api_client/v2/model/governance_control_detection_assignment_source.py b/src/datadog_api_client/v2/model/governance_control_detection_assignment_source.py index e346e378aa..28c43a32df 100644 --- a/src/datadog_api_client/v2/model/governance_control_detection_assignment_source.py +++ b/src/datadog_api_client/v2/model/governance_control_detection_assignment_source.py @@ -14,7 +14,7 @@ class GovernanceControlDetectionAssignmentSource(ModelSimple): """ - How the detection's current assignment was determined. Possible values are `auto_resolved`, `manual`, `reassigned`, and `cleared`. + How the detection's current assignment was determined. Possible values are `auto_resolved`, `manual`, `reassigned`, and `cleared`. `null` when not set. :param value: Must be one of ["auto_resolved", "manual", "reassigned", "cleared"]. :type value: str @@ -31,6 +31,8 @@ class GovernanceControlDetectionAssignmentSource(ModelSimple): REASSIGNED: ClassVar["GovernanceControlDetectionAssignmentSource"] CLEARED: ClassVar["GovernanceControlDetectionAssignmentSource"] + _nullable = True + @cached_property def openapi_types(_): return { diff --git a/src/datadog_api_client/v2/model/governance_control_detection_attributes.py b/src/datadog_api_client/v2/model/governance_control_detection_attributes.py index af3ceef07d..0ed83be430 100644 --- a/src/datadog_api_client/v2/model/governance_control_detection_attributes.py +++ b/src/datadog_api_client/v2/model/governance_control_detection_attributes.py @@ -33,15 +33,15 @@ def openapi_types(_): from datadog_api_client.v2.model.governance_control_detection_state import GovernanceControlDetectionState return { - "assigned_team": (str,), - "assigned_to": (str,), + "assigned_team": (str, none_type), + "assigned_to": (str, none_type), "assignment_source": (GovernanceControlDetectionAssignmentSource,), "control_id": (str,), "created_at": (datetime,), "detection_type": (str,), - "display_name": (str,), - "exception_at": (datetime,), - "exception_by": (str,), + "display_name": (str, none_type), + "exception_at": (datetime, none_type), + "exception_by": (str, none_type), "metadata": ( bool, date, @@ -54,11 +54,11 @@ def openapi_types(_): UUID, none_type, ), - "mitigate_after": (datetime,), - "mitigated_at": (datetime,), - "priority": (int,), + "mitigate_after": (datetime, none_type), + "mitigated_at": (datetime, none_type), + "priority": (int, none_type), "resource_id": (str,), - "resource_type": (str,), + "resource_type": (str, none_type), "state": (GovernanceControlDetectionState,), } @@ -83,35 +83,35 @@ def openapi_types(_): def __init__( self_, - assignment_source: GovernanceControlDetectionAssignmentSource, + assignment_source: Union[GovernanceControlDetectionAssignmentSource, none_type], control_id: str, created_at: datetime, detection_type: str, - display_name: str, - priority: int, + display_name: Union[str, none_type], + priority: Union[int, none_type], resource_id: str, - resource_type: str, + resource_type: Union[str, none_type], state: GovernanceControlDetectionState, - assigned_team: Union[str, UnsetType] = unset, - assigned_to: Union[str, UnsetType] = unset, - exception_at: Union[datetime, UnsetType] = unset, - exception_by: Union[str, UnsetType] = unset, + assigned_team: Union[str, none_type, UnsetType] = unset, + assigned_to: Union[str, none_type, UnsetType] = unset, + exception_at: Union[datetime, none_type, UnsetType] = unset, + exception_by: Union[str, none_type, UnsetType] = unset, metadata: Union[Any, UnsetType] = unset, - mitigate_after: Union[datetime, UnsetType] = unset, - mitigated_at: Union[datetime, UnsetType] = unset, + mitigate_after: Union[datetime, none_type, UnsetType] = unset, + mitigated_at: Union[datetime, none_type, UnsetType] = unset, **kwargs, ): """ The attributes of a governance control detection. :param assigned_team: The identifier of the team the detection is assigned to, if any. - :type assigned_team: str, optional + :type assigned_team: str, none_type, optional :param assigned_to: The identifier of the user the detection is assigned to, if any. - :type assigned_to: str, optional + :type assigned_to: str, none_type, optional - :param assignment_source: How the detection's current assignment was determined. Possible values are ``auto_resolved`` , ``manual`` , ``reassigned`` , and ``cleared``. - :type assignment_source: GovernanceControlDetectionAssignmentSource + :param assignment_source: How the detection's current assignment was determined. Possible values are ``auto_resolved`` , ``manual`` , ``reassigned`` , and ``cleared``. ``null`` when not set. + :type assignment_source: GovernanceControlDetectionAssignmentSource, none_type :param control_id: DEPRECATED: mirrors ``detection_type`` for backward compatibility; use ``detection_type`` instead. **Deprecated**. @@ -124,31 +124,31 @@ def __init__( :type detection_type: str :param display_name: The human-readable name of the detected resource. - :type display_name: str + :type display_name: str, none_type :param exception_at: The date and time when the detection was marked as an exception, if applicable. - :type exception_at: datetime, optional + :type exception_at: datetime, none_type, optional :param exception_by: The identifier of the user who marked the detection as an exception, if applicable. - :type exception_by: str, optional + :type exception_by: str, none_type, optional :param metadata: Free-form metadata associated with the detection. :type metadata: bool, date, datetime, dict, float, int, list, str, UUID, none_type, optional :param mitigate_after: The date and time after which the detection is scheduled to be mitigated, if applicable. - :type mitigate_after: datetime, optional + :type mitigate_after: datetime, none_type, optional :param mitigated_at: The date and time when the detection was mitigated, if applicable. - :type mitigated_at: datetime, optional + :type mitigated_at: datetime, none_type, optional :param priority: The priority of the detection, if set. - :type priority: int + :type priority: int, none_type :param resource_id: The identifier of the resource the detection applies to. :type resource_id: str :param resource_type: The type of resource the detection applies to, for example ``api_key`` or ``dashboard``. - :type resource_type: str + :type resource_type: str, none_type :param state: The current state of the detection. Possible values are ``active`` , ``exception`` , ``mitigated`` , ``inactive`` , ``obsolete`` , ``resolved_externally`` , and ``mitigation_in_progress``. :type state: GovernanceControlDetectionState