Skip to content

Add editable field to suppression rule #2021

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

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-08-21 16:52:47.024586",
"spec_repo_commit": "ffed3856"
"regenerated": "2024-08-21 17:41:03.044848",
"spec_repo_commit": "e8ef24a7"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-08-21 16:52:47.050568",
"spec_repo_commit": "ffed3856"
"regenerated": "2024-08-21 17:41:03.070369",
"spec_repo_commit": "e8ef24a7"
}
}
}
4 changes: 4 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19603,6 +19603,10 @@ components:
description: A description for the suppression rule.
example: This rule suppresses low-severity signals in staging environments.
type: string
editable:
description: Whether the suppression rule is editable.
example: true
type: boolean
enabled:
description: Whether the suppression rule is enabled.
example: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def openapi_types(_):
"creator": (SecurityMonitoringUser,),
"data_exclusion_query": (str,),
"description": (str,),
"editable": (bool,),
"enabled": (bool,),
"expiration_date": (int,),
"name": (str,),
Expand All @@ -48,6 +49,7 @@ def openapi_types(_):
"creator": "creator",
"data_exclusion_query": "data_exclusion_query",
"description": "description",
"editable": "editable",
"enabled": "enabled",
"expiration_date": "expiration_date",
"name": "name",
Expand All @@ -64,6 +66,7 @@ def __init__(
creator: Union[SecurityMonitoringUser, UnsetType] = unset,
data_exclusion_query: Union[str, UnsetType] = unset,
description: Union[str, UnsetType] = unset,
editable: Union[bool, UnsetType] = unset,
enabled: Union[bool, UnsetType] = unset,
expiration_date: Union[int, UnsetType] = unset,
name: Union[str, UnsetType] = unset,
Expand All @@ -89,6 +92,9 @@ def __init__(
:param description: A description for the suppression rule.
:type description: str, optional

:param editable: Whether the suppression rule is editable.
:type editable: bool, optional

:param enabled: Whether the suppression rule is enabled.
:type enabled: bool, optional

Expand Down Expand Up @@ -121,6 +127,8 @@ def __init__(
kwargs["data_exclusion_query"] = data_exclusion_query
if description is not unset:
kwargs["description"] = description
if editable is not unset:
kwargs["editable"] = editable
if enabled is not unset:
kwargs["enabled"] = enabled
if expiration_date is not unset:
Expand Down
Loading