Skip to content
Open
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
15 changes: 15 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19045,6 +19045,11 @@ components:
format: int32
maximum: 2147483647
type: integer
contentPackUpdateAvailable:
description: "Whether a content pack update is available for the policy."
example: false
nullable: true
type: boolean
datadogManaged:
description: "Whether the policy is managed by Datadog"
example: false
Expand Down Expand Up @@ -19111,6 +19116,10 @@ components:
format: int32
maximum: 2147483647
type: integer
sourceDefaultPolicyId:
description: "The ID of the Datadog-managed default policy this policy is sourced from."
example: "threat-detection.policy"
type: string
updateDate:
description: "Timestamp in milliseconds when the policy was last updated"
example: 1624366480320
Expand Down Expand Up @@ -19293,6 +19302,9 @@ components:
CloudWorkloadSecurityAgentRuleAction:
description: "The action the rule can perform if triggered"
properties:
disabled:
description: "Whether the action is disabled."
type: boolean
filter:
description: "SECL expression used to target the container to apply the action on"
type: string
Expand Down Expand Up @@ -19349,6 +19361,9 @@ components:
scope:
description: "The scope of the set action."
type: string
scope_field:
description: "The scope field of the set action."
type: string
size:
description: "The size of the set action."
format: int64
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 Down Expand Up @@ -49,6 +50,7 @@ def openapi_types(_):

return {
"blocking_rules_count": (int,),
"content_pack_update_available": (bool, none_type),
"datadog_managed": (bool,),
"description": (str,),
"disabled_rules_count": (int,),
Expand All @@ -62,6 +64,7 @@ def openapi_types(_):
"policy_version": (str,),
"priority": (int,),
"rule_count": (int,),
"source_default_policy_id": (str,),
"update_date": (int,),
"updated_at": (int,),
"updater": (CloudWorkloadSecurityAgentPolicyUpdaterAttributes,),
Expand All @@ -70,6 +73,7 @@ def openapi_types(_):

attribute_map = {
"blocking_rules_count": "blockingRulesCount",
"content_pack_update_available": "contentPackUpdateAvailable",
"datadog_managed": "datadogManaged",
"description": "description",
"disabled_rules_count": "disabledRulesCount",
Expand All @@ -83,6 +87,7 @@ def openapi_types(_):
"policy_version": "policyVersion",
"priority": "priority",
"rule_count": "ruleCount",
"source_default_policy_id": "sourceDefaultPolicyId",
"update_date": "updateDate",
"updated_at": "updatedAt",
"updater": "updater",
Expand All @@ -92,6 +97,7 @@ def openapi_types(_):
def __init__(
self_,
blocking_rules_count: Union[int, UnsetType] = unset,
content_pack_update_available: Union[bool, none_type, UnsetType] = unset,
datadog_managed: Union[bool, UnsetType] = unset,
description: Union[str, UnsetType] = unset,
disabled_rules_count: Union[int, UnsetType] = unset,
Expand All @@ -105,6 +111,7 @@ def __init__(
policy_version: Union[str, UnsetType] = unset,
priority: Union[int, UnsetType] = unset,
rule_count: Union[int, UnsetType] = unset,
source_default_policy_id: Union[str, UnsetType] = unset,
update_date: Union[int, UnsetType] = unset,
updated_at: Union[int, UnsetType] = unset,
updater: Union[CloudWorkloadSecurityAgentPolicyUpdaterAttributes, UnsetType] = unset,
Expand All @@ -117,6 +124,9 @@ def __init__(
:param blocking_rules_count: The number of rules with the blocking feature in this policy
:type blocking_rules_count: int, optional

:param content_pack_update_available: Whether a content pack update is available for the policy.
:type content_pack_update_available: bool, none_type, optional

:param datadog_managed: Whether the policy is managed by Datadog
:type datadog_managed: bool, optional

Expand Down Expand Up @@ -156,6 +166,9 @@ def __init__(
:param rule_count: The number of rules in this policy
:type rule_count: int, optional

:param source_default_policy_id: The ID of the Datadog-managed default policy this policy is sourced from.
:type source_default_policy_id: str, optional

:param update_date: Timestamp in milliseconds when the policy was last updated
:type update_date: int, optional

Expand All @@ -170,6 +183,8 @@ def __init__(
"""
if blocking_rules_count is not unset:
kwargs["blocking_rules_count"] = blocking_rules_count
if content_pack_update_available is not unset:
kwargs["content_pack_update_available"] = content_pack_update_available
if datadog_managed is not unset:
kwargs["datadog_managed"] = datadog_managed
if description is not unset:
Expand All @@ -196,6 +211,8 @@ def __init__(
kwargs["priority"] = priority
if rule_count is not unset:
kwargs["rule_count"] = rule_count
if source_default_policy_id is not unset:
kwargs["source_default_policy_id"] = source_default_policy_id
if update_date is not unset:
kwargs["update_date"] = update_date
if updated_at is not unset:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def openapi_types(_):
)

return {
"disabled": (bool,),
"filter": (str,),
"hash": (CloudWorkloadSecurityAgentRuleActionHash,),
"kill": (CloudWorkloadSecurityAgentRuleKill,),
Expand All @@ -51,6 +52,7 @@ def openapi_types(_):
}

attribute_map = {
"disabled": "disabled",
"filter": "filter",
"hash": "hash",
"kill": "kill",
Expand All @@ -60,6 +62,7 @@ def openapi_types(_):

def __init__(
self_,
disabled: Union[bool, UnsetType] = unset,
filter: Union[str, UnsetType] = unset,
hash: Union[CloudWorkloadSecurityAgentRuleActionHash, UnsetType] = unset,
kill: Union[CloudWorkloadSecurityAgentRuleKill, UnsetType] = unset,
Expand All @@ -70,6 +73,9 @@ def __init__(
"""
The action the rule can perform if triggered

:param disabled: Whether the action is disabled.
:type disabled: bool, optional

:param filter: SECL expression used to target the container to apply the action on
:type filter: str, optional

Expand All @@ -85,6 +91,8 @@ def __init__(
:param set: The set action applied on the scope matching the rule
:type set: CloudWorkloadSecurityAgentRuleActionSet, optional
"""
if disabled is not unset:
kwargs["disabled"] = disabled
if filter is not unset:
kwargs["filter"] = filter
if hash is not unset:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def openapi_types(_):
"inherited": (bool,),
"name": (str,),
"scope": (str,),
"scope_field": (str,),
"size": (int,),
"ttl": (int,),
"value": (CloudWorkloadSecurityAgentRuleActionSetValue,),
Expand All @@ -47,6 +48,7 @@ def openapi_types(_):
"inherited": "inherited",
"name": "name",
"scope": "scope",
"scope_field": "scope_field",
"size": "size",
"ttl": "ttl",
"value": "value",
Expand All @@ -61,6 +63,7 @@ def __init__(
inherited: Union[bool, UnsetType] = unset,
name: Union[str, UnsetType] = unset,
scope: Union[str, UnsetType] = unset,
scope_field: Union[str, UnsetType] = unset,
size: Union[int, UnsetType] = unset,
ttl: Union[int, UnsetType] = unset,
value: Union[CloudWorkloadSecurityAgentRuleActionSetValue, str, int, bool, UnsetType] = unset,
Expand Down Expand Up @@ -90,6 +93,9 @@ def __init__(
:param scope: The scope of the set action.
:type scope: str, optional

:param scope_field: The scope field of the set action.
:type scope_field: str, optional

:param size: The size of the set action.
:type size: int, optional

Expand All @@ -113,6 +119,8 @@ def __init__(
kwargs["name"] = name
if scope is not unset:
kwargs["scope"] = scope
if scope_field is not unset:
kwargs["scope_field"] = scope_field
if size is not unset:
kwargs["size"] = size
if ttl is not unset:
Expand Down
Loading