Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Security Monitoring Suppressions - Make expiration date nullable in update payload #1849

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
3 changes: 3 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from datadog_api_client.model_utils import (
ModelNormal,
cached_property,
none_type,
unset,
UnsetType,
)
Expand All @@ -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,),
Expand All @@ -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,
Expand All @@ -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
Expand Down
Loading