diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index e24a358f1b..644e9ec592 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -19078,6 +19078,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 @@ -19144,6 +19149,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 @@ -19326,6 +19335,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 @@ -19382,6 +19394,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 diff --git a/src/datadog_api_client/v2/model/cloud_workload_security_agent_policy_attributes.py b/src/datadog_api_client/v2/model/cloud_workload_security_agent_policy_attributes.py index 19e4d1307a..e1867c070a 100644 --- a/src/datadog_api_client/v2/model/cloud_workload_security_agent_policy_attributes.py +++ b/src/datadog_api_client/v2/model/cloud_workload_security_agent_policy_attributes.py @@ -8,6 +8,7 @@ from datadog_api_client.model_utils import ( ModelNormal, cached_property, + none_type, unset, UnsetType, ) @@ -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,), @@ -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,), @@ -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", @@ -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", @@ -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, @@ -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, @@ -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 @@ -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 @@ -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: @@ -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: diff --git a/src/datadog_api_client/v2/model/cloud_workload_security_agent_rule_action.py b/src/datadog_api_client/v2/model/cloud_workload_security_agent_rule_action.py index f2b9292fe6..e64158236c 100644 --- a/src/datadog_api_client/v2/model/cloud_workload_security_agent_rule_action.py +++ b/src/datadog_api_client/v2/model/cloud_workload_security_agent_rule_action.py @@ -43,6 +43,7 @@ def openapi_types(_): ) return { + "disabled": (bool,), "filter": (str,), "hash": (CloudWorkloadSecurityAgentRuleActionHash,), "kill": (CloudWorkloadSecurityAgentRuleKill,), @@ -51,6 +52,7 @@ def openapi_types(_): } attribute_map = { + "disabled": "disabled", "filter": "filter", "hash": "hash", "kill": "kill", @@ -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, @@ -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 @@ -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: diff --git a/src/datadog_api_client/v2/model/cloud_workload_security_agent_rule_action_set.py b/src/datadog_api_client/v2/model/cloud_workload_security_agent_rule_action_set.py index ebd2fab36a..aadf5b47f2 100644 --- a/src/datadog_api_client/v2/model/cloud_workload_security_agent_rule_action_set.py +++ b/src/datadog_api_client/v2/model/cloud_workload_security_agent_rule_action_set.py @@ -34,6 +34,7 @@ def openapi_types(_): "inherited": (bool,), "name": (str,), "scope": (str,), + "scope_field": (str,), "size": (int,), "ttl": (int,), "value": (CloudWorkloadSecurityAgentRuleActionSetValue,), @@ -47,6 +48,7 @@ def openapi_types(_): "inherited": "inherited", "name": "name", "scope": "scope", + "scope_field": "scope_field", "size": "size", "ttl": "ttl", "value": "value", @@ -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, @@ -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 @@ -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: