diff --git a/.apigentools-info b/.apigentools-info index 9da58c0b9f..1c54a489b1 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-01-24 20:59:43.240865", - "spec_repo_commit": "9d7a3d85" + "regenerated": "2024-01-25 15:52:49.056273", + "spec_repo_commit": "bdb7b215" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-01-24 20:59:43.256115", - "spec_repo_commit": "9d7a3d85" + "regenerated": "2024-01-25 15:52:49.073732", + "spec_repo_commit": "bdb7b215" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index fabb982d2a..1435ae14cb 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -16759,8 +16759,11 @@ components: expiration_date: description: A Unix millisecond timestamp giving an expiration date for the suppression rule. After this date, it won't suppress signals anymore. + If unset, the expiration date of the suppression rule is left untouched. + If set to `null`, the expiration date is removed. example: 1703187336000 format: int64 + nullable: true type: integer name: description: The name of the suppression rule. diff --git a/src/datadog_api_client/v2/model/security_monitoring_suppression_update_attributes.py b/src/datadog_api_client/v2/model/security_monitoring_suppression_update_attributes.py index 8f856e9e80..40da488a59 100644 --- a/src/datadog_api_client/v2/model/security_monitoring_suppression_update_attributes.py +++ b/src/datadog_api_client/v2/model/security_monitoring_suppression_update_attributes.py @@ -8,6 +8,7 @@ from datadog_api_client.model_utils import ( ModelNormal, cached_property, + none_type, unset, UnsetType, ) @@ -25,7 +26,7 @@ def openapi_types(_): return { "description": (str,), "enabled": (bool,), - "expiration_date": (int,), + "expiration_date": (int, none_type), "name": (str,), "rule_query": (str,), "suppression_query": (str,), @@ -46,7 +47,7 @@ def __init__( self_, description: Union[str, UnsetType] = unset, enabled: Union[bool, UnsetType] = unset, - expiration_date: Union[int, UnsetType] = unset, + expiration_date: Union[int, none_type, UnsetType] = unset, name: Union[str, UnsetType] = unset, rule_query: Union[str, UnsetType] = unset, suppression_query: Union[str, UnsetType] = unset, @@ -62,8 +63,8 @@ def __init__( :param enabled: Whether the suppression rule is enabled. :type enabled: bool, optional - :param expiration_date: A Unix millisecond timestamp giving an expiration date for the suppression rule. After this date, it won't suppress signals anymore. - :type expiration_date: int, optional + :param expiration_date: A Unix millisecond timestamp giving an expiration date for the suppression rule. After this date, it won't suppress signals anymore. If unset, the expiration date of the suppression rule is left untouched. If set to ``null`` , the expiration date is removed. + :type expiration_date: int, none_type, optional :param name: The name of the suppression rule. :type name: str, optional