From 859f8eb390be9800a88b20b0197b1932f11237a8 Mon Sep 17 00:00:00 2001 From: "api-clients-generation-pipeline[bot]" <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Date: Fri, 27 Oct 2023 08:08:00 +0000 Subject: [PATCH] Fix SecurityMonitoringSignalAttribute field name (#1739) Co-authored-by: ci.datadog-api-spec --- .apigentools-info | 8 ++++---- .generator/schemas/v2/openapi.yaml | 2 +- .../model/security_monitoring_signal_attributes.py | 14 +++++++------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 5d99e4674c..864f2f3796 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2023-10-26 18:12:28.293778", - "spec_repo_commit": "d4ce0c7b" + "regenerated": "2023-10-27 07:36:48.282560", + "spec_repo_commit": "2204d6df" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2023-10-26 18:12:28.383428", - "spec_repo_commit": "d4ce0c7b" + "regenerated": "2023-10-27 07:36:48.296883", + "spec_repo_commit": "2204d6df" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 4d262aefae..1d01a42d6f 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -14072,7 +14072,7 @@ components: associated values.' properties: - attributes: + custom: additionalProperties: {} description: A JSON object of attributes in the security signal. example: diff --git a/src/datadog_api_client/v2/model/security_monitoring_signal_attributes.py b/src/datadog_api_client/v2/model/security_monitoring_signal_attributes.py index bf5a5123f2..725434693f 100644 --- a/src/datadog_api_client/v2/model/security_monitoring_signal_attributes.py +++ b/src/datadog_api_client/v2/model/security_monitoring_signal_attributes.py @@ -34,7 +34,7 @@ def additional_properties_type(_): @cached_property def openapi_types(_): return { - "attributes": ( + "custom": ( { str: ( bool, @@ -55,7 +55,7 @@ def openapi_types(_): } attribute_map = { - "attributes": "attributes", + "custom": "custom", "message": "message", "tags": "tags", "timestamp": "timestamp", @@ -63,7 +63,7 @@ def openapi_types(_): def __init__( self_, - attributes: Union[Dict[str, Any], UnsetType] = unset, + custom: Union[Dict[str, Any], UnsetType] = unset, message: Union[str, UnsetType] = unset, tags: Union[List[str], UnsetType] = unset, timestamp: Union[datetime, UnsetType] = unset, @@ -73,8 +73,8 @@ def __init__( The object containing all signal attributes and their associated values. - :param attributes: A JSON object of attributes in the security signal. - :type attributes: {str: (bool, date, datetime, dict, float, int, list, str, none_type,)}, optional + :param custom: A JSON object of attributes in the security signal. + :type custom: {str: (bool, date, datetime, dict, float, int, list, str, none_type,)}, optional :param message: The message in the security signal defined by the rule that generated the signal. :type message: str, optional @@ -85,8 +85,8 @@ def __init__( :param timestamp: The timestamp of the security signal. :type timestamp: datetime, optional """ - if attributes is not unset: - kwargs["attributes"] = attributes + if custom is not unset: + kwargs["custom"] = custom if message is not unset: kwargs["message"] = message if tags is not unset: