Skip to content

Commit e2b2570

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Security Monitoring Suppressions - Make expiration date nullable in update payload (#1849)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 516e24a commit e2b2570

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2024-01-24 20:59:43.240865",
8-
"spec_repo_commit": "9d7a3d85"
7+
"regenerated": "2024-01-25 15:52:49.056273",
8+
"spec_repo_commit": "bdb7b215"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-01-24 20:59:43.256115",
13-
"spec_repo_commit": "9d7a3d85"
12+
"regenerated": "2024-01-25 15:52:49.073732",
13+
"spec_repo_commit": "bdb7b215"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16759,8 +16759,11 @@ components:
1675916759
expiration_date:
1676016760
description: A Unix millisecond timestamp giving an expiration date for
1676116761
the suppression rule. After this date, it won't suppress signals anymore.
16762+
If unset, the expiration date of the suppression rule is left untouched.
16763+
If set to `null`, the expiration date is removed.
1676216764
example: 1703187336000
1676316765
format: int64
16766+
nullable: true
1676416767
type: integer
1676516768
name:
1676616769
description: The name of the suppression rule.

src/datadog_api_client/v2/model/security_monitoring_suppression_update_attributes.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from datadog_api_client.model_utils import (
99
ModelNormal,
1010
cached_property,
11+
none_type,
1112
unset,
1213
UnsetType,
1314
)
@@ -25,7 +26,7 @@ def openapi_types(_):
2526
return {
2627
"description": (str,),
2728
"enabled": (bool,),
28-
"expiration_date": (int,),
29+
"expiration_date": (int, none_type),
2930
"name": (str,),
3031
"rule_query": (str,),
3132
"suppression_query": (str,),
@@ -46,7 +47,7 @@ def __init__(
4647
self_,
4748
description: Union[str, UnsetType] = unset,
4849
enabled: Union[bool, UnsetType] = unset,
49-
expiration_date: Union[int, UnsetType] = unset,
50+
expiration_date: Union[int, none_type, UnsetType] = unset,
5051
name: Union[str, UnsetType] = unset,
5152
rule_query: Union[str, UnsetType] = unset,
5253
suppression_query: Union[str, UnsetType] = unset,
@@ -62,8 +63,8 @@ def __init__(
6263
:param enabled: Whether the suppression rule is enabled.
6364
:type enabled: bool, optional
6465
65-
:param expiration_date: A Unix millisecond timestamp giving an expiration date for the suppression rule. After this date, it won't suppress signals anymore.
66-
:type expiration_date: int, optional
66+
: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.
67+
:type expiration_date: int, none_type, optional
6768
6869
:param name: The name of the suppression rule.
6970
:type name: str, optional

0 commit comments

Comments
 (0)