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
5 changes: 5 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8650,6 +8650,11 @@ components:
CloudWorkloadSecurityAgentRuleActionHash:
additionalProperties: {}
description: An empty object indicating the hash action
properties:
field:
description: Event field to use for the hash computation.
example: process.file
type: string
type: object
CloudWorkloadSecurityAgentRuleActionMetadata:
description: The metadata action applied on the scope matching the rule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,34 @@
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations

from typing import Union

from datadog_api_client.model_utils import (
ModelNormal,
cached_property,
unset,
UnsetType,
)


class CloudWorkloadSecurityAgentRuleActionHash(ModelNormal):
def __init__(self_, **kwargs):
@cached_property
def openapi_types(_):
return {
"field": (str,),
}

attribute_map = {
"field": "field",
}

def __init__(self_, field: Union[str, UnsetType] = unset, **kwargs):
"""
An empty object indicating the hash action

:param field: Event field to use for the hash computation.
:type field: str, optional
"""
if field is not unset:
kwargs["field"] = field
super().__init__(kwargs)
Loading