Skip to content
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
64 changes: 64 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19559,6 +19559,8 @@ components:
CloudWorkloadSecurityAgentRuleAction:
description: "The action the rule can perform if triggered"
properties:
coredump:
$ref: "#/components/schemas/CloudWorkloadSecurityAgentRuleActionCoreDump"
disabled:
description: "Whether the action is disabled"
example: false
Expand All @@ -19570,17 +19572,51 @@ components:
$ref: "#/components/schemas/CloudWorkloadSecurityAgentRuleActionHash"
kill:
$ref: "#/components/schemas/CloudWorkloadSecurityAgentRuleKill"
log:
$ref: "#/components/schemas/CloudWorkloadSecurityAgentRuleActionLog"
metadata:
$ref: "#/components/schemas/CloudWorkloadSecurityAgentRuleActionMetadata"
network_filter:
$ref: "#/components/schemas/CloudWorkloadSecurityAgentRuleActionNetworkFilter"
set:
$ref: "#/components/schemas/CloudWorkloadSecurityAgentRuleActionSet"
type: object
CloudWorkloadSecurityAgentRuleActionCoreDump:
description: "The core dump action applied on the process matching the rule."
properties:
dentry:
description: "Whether the directory entry information is included in the core dump."
type: boolean
mount:
description: "Whether the mount information is included in the core dump."
type: boolean
no_compression:
description: "Whether the core dump is left uncompressed."
type: boolean
process:
description: "Whether the process memory is included in the core dump."
type: boolean
type: object
CloudWorkloadSecurityAgentRuleActionHash:
description: "Hash file specified by the field attribute"
properties:
field:
description: "The field of the hash action"
type: string
max_file_size:
description: "The maximum size of the files to hash, in bytes."
format: int64
type: integer
type: object
CloudWorkloadSecurityAgentRuleActionLog:
description: "The log action applied when the rule is triggered."
properties:
level:
description: "The level of the log action."
type: string
message:
description: "The message of the log action."
type: string
type: object
CloudWorkloadSecurityAgentRuleActionMetadata:
description: "The metadata action applied on the scope matching the rule"
Expand All @@ -19595,6 +19631,19 @@ components:
description: "The short image of the metadata action"
type: string
type: object
CloudWorkloadSecurityAgentRuleActionNetworkFilter:
description: "The network filter action applied on the network traffic matching the rule."
properties:
filter:
description: "The filter expression of the network filter action."
type: string
policy:
description: "The policy of the network filter action."
type: string
scope:
description: "The scope of the network filter action."
type: string
type: object
CloudWorkloadSecurityAgentRuleActionSet:
description: "The set action applied on the scope matching the rule"
properties:
Expand All @@ -19616,9 +19665,15 @@ components:
name:
description: "The name of the set action"
type: string
private:
description: "Whether the value of the set action is private."
type: boolean
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 Expand Up @@ -19873,6 +19928,15 @@ components:
CloudWorkloadSecurityAgentRuleKill:
description: "Kill system call applied on the container matching the rule"
properties:
disable_container_disarmer:
description: "Whether the automatic container safeguard of the kill action is disabled."
type: boolean
disable_executable_disarmer:
description: "Whether the automatic executable safeguard of the kill action is disabled."
type: boolean
scope:
description: "The scope of the kill action."
type: string
signal:
description: "Supported signals for the kill system call"
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,23 @@

/** The action the rule can perform if triggered */
@JsonPropertyOrder({
CloudWorkloadSecurityAgentRuleAction.JSON_PROPERTY_COREDUMP,
CloudWorkloadSecurityAgentRuleAction.JSON_PROPERTY_DISABLED,
CloudWorkloadSecurityAgentRuleAction.JSON_PROPERTY_FILTER,
CloudWorkloadSecurityAgentRuleAction.JSON_PROPERTY_HASH,
CloudWorkloadSecurityAgentRuleAction.JSON_PROPERTY_KILL,
CloudWorkloadSecurityAgentRuleAction.JSON_PROPERTY_LOG,
CloudWorkloadSecurityAgentRuleAction.JSON_PROPERTY_METADATA,
CloudWorkloadSecurityAgentRuleAction.JSON_PROPERTY_NETWORK_FILTER,
CloudWorkloadSecurityAgentRuleAction.JSON_PROPERTY_SET
})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class CloudWorkloadSecurityAgentRuleAction {
@JsonIgnore public boolean unparsed = false;
public static final String JSON_PROPERTY_COREDUMP = "coredump";
private CloudWorkloadSecurityAgentRuleActionCoreDump coredump;

public static final String JSON_PROPERTY_DISABLED = "disabled";
private Boolean disabled;

Expand All @@ -41,12 +47,44 @@ public class CloudWorkloadSecurityAgentRuleAction {
public static final String JSON_PROPERTY_KILL = "kill";
private CloudWorkloadSecurityAgentRuleKill kill;

public static final String JSON_PROPERTY_LOG = "log";
private CloudWorkloadSecurityAgentRuleActionLog log;

public static final String JSON_PROPERTY_METADATA = "metadata";
private CloudWorkloadSecurityAgentRuleActionMetadata metadata;

public static final String JSON_PROPERTY_NETWORK_FILTER = "network_filter";
private CloudWorkloadSecurityAgentRuleActionNetworkFilter networkFilter;

public static final String JSON_PROPERTY_SET = "set";
private CloudWorkloadSecurityAgentRuleActionSet set;

public CloudWorkloadSecurityAgentRuleAction coredump(
CloudWorkloadSecurityAgentRuleActionCoreDump coredump) {
this.coredump = coredump;
this.unparsed |= coredump.unparsed;
return this;
}

/**
* The core dump action applied on the process matching the rule.
*
* @return coredump
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_COREDUMP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public CloudWorkloadSecurityAgentRuleActionCoreDump getCoredump() {
return coredump;
}

public void setCoredump(CloudWorkloadSecurityAgentRuleActionCoreDump coredump) {
this.coredump = coredump;
if (coredump != null) {
this.unparsed |= coredump.unparsed;
}
}

public CloudWorkloadSecurityAgentRuleAction disabled(Boolean disabled) {
this.disabled = disabled;
return this;
Expand Down Expand Up @@ -139,6 +177,31 @@ public void setKill(CloudWorkloadSecurityAgentRuleKill kill) {
}
}

public CloudWorkloadSecurityAgentRuleAction log(CloudWorkloadSecurityAgentRuleActionLog log) {
this.log = log;
this.unparsed |= log.unparsed;
return this;
}

/**
* The log action applied when the rule is triggered.
*
* @return log
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_LOG)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public CloudWorkloadSecurityAgentRuleActionLog getLog() {
return log;
}

public void setLog(CloudWorkloadSecurityAgentRuleActionLog log) {
this.log = log;
if (log != null) {
this.unparsed |= log.unparsed;
}
}

public CloudWorkloadSecurityAgentRuleAction metadata(
CloudWorkloadSecurityAgentRuleActionMetadata metadata) {
this.metadata = metadata;
Expand All @@ -165,6 +228,32 @@ public void setMetadata(CloudWorkloadSecurityAgentRuleActionMetadata metadata) {
}
}

public CloudWorkloadSecurityAgentRuleAction networkFilter(
CloudWorkloadSecurityAgentRuleActionNetworkFilter networkFilter) {
this.networkFilter = networkFilter;
this.unparsed |= networkFilter.unparsed;
return this;
}

/**
* The network filter action applied on the network traffic matching the rule.
*
* @return networkFilter
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_NETWORK_FILTER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public CloudWorkloadSecurityAgentRuleActionNetworkFilter getNetworkFilter() {
return networkFilter;
}

public void setNetworkFilter(CloudWorkloadSecurityAgentRuleActionNetworkFilter networkFilter) {
this.networkFilter = networkFilter;
if (networkFilter != null) {
this.unparsed |= networkFilter.unparsed;
}
}

public CloudWorkloadSecurityAgentRuleAction set(CloudWorkloadSecurityAgentRuleActionSet set) {
this.set = set;
this.unparsed |= set.unparsed;
Expand Down Expand Up @@ -247,30 +336,46 @@ public boolean equals(Object o) {
}
CloudWorkloadSecurityAgentRuleAction cloudWorkloadSecurityAgentRuleAction =
(CloudWorkloadSecurityAgentRuleAction) o;
return Objects.equals(this.disabled, cloudWorkloadSecurityAgentRuleAction.disabled)
return Objects.equals(this.coredump, cloudWorkloadSecurityAgentRuleAction.coredump)
&& Objects.equals(this.disabled, cloudWorkloadSecurityAgentRuleAction.disabled)
&& Objects.equals(this.filter, cloudWorkloadSecurityAgentRuleAction.filter)
&& Objects.equals(this.hash, cloudWorkloadSecurityAgentRuleAction.hash)
&& Objects.equals(this.kill, cloudWorkloadSecurityAgentRuleAction.kill)
&& Objects.equals(this.log, cloudWorkloadSecurityAgentRuleAction.log)
&& Objects.equals(this.metadata, cloudWorkloadSecurityAgentRuleAction.metadata)
&& Objects.equals(this.networkFilter, cloudWorkloadSecurityAgentRuleAction.networkFilter)
&& Objects.equals(this.set, cloudWorkloadSecurityAgentRuleAction.set)
&& Objects.equals(
this.additionalProperties, cloudWorkloadSecurityAgentRuleAction.additionalProperties);
}

@Override
public int hashCode() {
return Objects.hash(disabled, filter, hash, kill, metadata, set, additionalProperties);
return Objects.hash(
coredump,
disabled,
filter,
hash,
kill,
log,
metadata,
networkFilter,
set,
additionalProperties);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CloudWorkloadSecurityAgentRuleAction {\n");
sb.append(" coredump: ").append(toIndentedString(coredump)).append("\n");
sb.append(" disabled: ").append(toIndentedString(disabled)).append("\n");
sb.append(" filter: ").append(toIndentedString(filter)).append("\n");
sb.append(" hash: ").append(toIndentedString(hash)).append("\n");
sb.append(" kill: ").append(toIndentedString(kill)).append("\n");
sb.append(" log: ").append(toIndentedString(log)).append("\n");
sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
sb.append(" networkFilter: ").append(toIndentedString(networkFilter)).append("\n");
sb.append(" set: ").append(toIndentedString(set)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
Expand Down
Loading
Loading