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
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.5",
"regenerated": "2023-07-11 16:39:23.599213",
"spec_repo_commit": "824086bb"
"regenerated": "2023-07-13 19:08:16.170880",
"spec_repo_commit": "9ad4f63e"
},
"v2": {
"apigentools_version": "1.6.5",
"regenerated": "2023-07-11 16:39:23.611735",
"spec_repo_commit": "824086bb"
"regenerated": "2023-07-13 19:08:16.193816",
"spec_repo_commit": "9ad4f63e"
}
}
}
16 changes: 16 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2756,10 +2756,17 @@ components:
CloudWorkloadSecurityAgentRuleAttributes:
description: A Cloud Workload Security Agent rule returned by the API.
properties:
agentConstraint:
description: The version of the agent.
type: string
category:
description: The category of the Agent rule.
example: Process Activity
type: string
creationAuthorUuId:
description: The ID of the user who created the rule.
example: e51c9744-d158-11ec-ad23-da7ad0900002
type: string
creationDate:
description: When the Agent rule was created, timestamp in milliseconds.
example: 1624366480320
Expand Down Expand Up @@ -2787,6 +2794,15 @@ components:
description: The name of the Agent rule.
example: my_agent_rule
type: string
updateAuthorUuId:
description: The ID of the user who updated the rule.
example: e51c9744-d158-11ec-ad23-da7ad0900002
type: string
updateDate:
description: Timestamp in milliseconds when the Agent rule was last updated.
example: 1624366480320
format: int64
type: integer
updatedAt:
description: When the Agent rule was last updated, timestamp in milliseconds.
example: 1624366480320
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,18 @@

/** A Cloud Workload Security Agent rule returned by the API. */
@JsonPropertyOrder({
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_AGENT_CONSTRAINT,
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_CATEGORY,
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_CREATION_AUTHOR_UU_ID,
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_CREATION_DATE,
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_CREATOR,
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_DEFAULT_RULE,
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_DESCRIPTION,
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_ENABLED,
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_EXPRESSION,
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_NAME,
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_UPDATE_AUTHOR_UU_ID,
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_UPDATE_DATE,
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_UPDATED_AT,
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_UPDATER,
CloudWorkloadSecurityAgentRuleAttributes.JSON_PROPERTY_VERSION
Expand All @@ -34,9 +38,15 @@
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class CloudWorkloadSecurityAgentRuleAttributes {
@JsonIgnore public boolean unparsed = false;
public static final String JSON_PROPERTY_AGENT_CONSTRAINT = "agentConstraint";
private String agentConstraint;

public static final String JSON_PROPERTY_CATEGORY = "category";
private String category;

public static final String JSON_PROPERTY_CREATION_AUTHOR_UU_ID = "creationAuthorUuId";
private String creationAuthorUuId;

public static final String JSON_PROPERTY_CREATION_DATE = "creationDate";
private Long creationDate;

Expand All @@ -58,6 +68,12 @@ public class CloudWorkloadSecurityAgentRuleAttributes {
public static final String JSON_PROPERTY_NAME = "name";
private String name;

public static final String JSON_PROPERTY_UPDATE_AUTHOR_UU_ID = "updateAuthorUuId";
private String updateAuthorUuId;

public static final String JSON_PROPERTY_UPDATE_DATE = "updateDate";
private Long updateDate;

public static final String JSON_PROPERTY_UPDATED_AT = "updatedAt";
private Long updatedAt;

Expand All @@ -67,6 +83,27 @@ public class CloudWorkloadSecurityAgentRuleAttributes {
public static final String JSON_PROPERTY_VERSION = "version";
private Long version;

public CloudWorkloadSecurityAgentRuleAttributes agentConstraint(String agentConstraint) {
this.agentConstraint = agentConstraint;
return this;
}

/**
* The version of the agent.
*
* @return agentConstraint
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_AGENT_CONSTRAINT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getAgentConstraint() {
return agentConstraint;
}

public void setAgentConstraint(String agentConstraint) {
this.agentConstraint = agentConstraint;
}

public CloudWorkloadSecurityAgentRuleAttributes category(String category) {
this.category = category;
return this;
Expand All @@ -88,6 +125,27 @@ public void setCategory(String category) {
this.category = category;
}

public CloudWorkloadSecurityAgentRuleAttributes creationAuthorUuId(String creationAuthorUuId) {
this.creationAuthorUuId = creationAuthorUuId;
return this;
}

/**
* The ID of the user who created the rule.
*
* @return creationAuthorUuId
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_CREATION_AUTHOR_UU_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCreationAuthorUuId() {
return creationAuthorUuId;
}

public void setCreationAuthorUuId(String creationAuthorUuId) {
this.creationAuthorUuId = creationAuthorUuId;
}

public CloudWorkloadSecurityAgentRuleAttributes creationDate(Long creationDate) {
this.creationDate = creationDate;
return this;
Expand Down Expand Up @@ -237,6 +295,48 @@ public void setName(String name) {
this.name = name;
}

public CloudWorkloadSecurityAgentRuleAttributes updateAuthorUuId(String updateAuthorUuId) {
this.updateAuthorUuId = updateAuthorUuId;
return this;
}

/**
* The ID of the user who updated the rule.
*
* @return updateAuthorUuId
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_UPDATE_AUTHOR_UU_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getUpdateAuthorUuId() {
return updateAuthorUuId;
}

public void setUpdateAuthorUuId(String updateAuthorUuId) {
this.updateAuthorUuId = updateAuthorUuId;
}

public CloudWorkloadSecurityAgentRuleAttributes updateDate(Long updateDate) {
this.updateDate = updateDate;
return this;
}

/**
* Timestamp in milliseconds when the Agent rule was last updated.
*
* @return updateDate
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_UPDATE_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getUpdateDate() {
return updateDate;
}

public void setUpdateDate(Long updateDate) {
this.updateDate = updateDate;
}

public CloudWorkloadSecurityAgentRuleAttributes updatedAt(Long updatedAt) {
this.updatedAt = updatedAt;
return this;
Expand Down Expand Up @@ -359,14 +459,21 @@ public boolean equals(Object o) {
}
CloudWorkloadSecurityAgentRuleAttributes cloudWorkloadSecurityAgentRuleAttributes =
(CloudWorkloadSecurityAgentRuleAttributes) o;
return Objects.equals(this.category, cloudWorkloadSecurityAgentRuleAttributes.category)
return Objects.equals(
this.agentConstraint, cloudWorkloadSecurityAgentRuleAttributes.agentConstraint)
&& Objects.equals(this.category, cloudWorkloadSecurityAgentRuleAttributes.category)
&& Objects.equals(
this.creationAuthorUuId, cloudWorkloadSecurityAgentRuleAttributes.creationAuthorUuId)
&& Objects.equals(this.creationDate, cloudWorkloadSecurityAgentRuleAttributes.creationDate)
&& Objects.equals(this.creator, cloudWorkloadSecurityAgentRuleAttributes.creator)
&& Objects.equals(this.defaultRule, cloudWorkloadSecurityAgentRuleAttributes.defaultRule)
&& Objects.equals(this.description, cloudWorkloadSecurityAgentRuleAttributes.description)
&& Objects.equals(this.enabled, cloudWorkloadSecurityAgentRuleAttributes.enabled)
&& Objects.equals(this.expression, cloudWorkloadSecurityAgentRuleAttributes.expression)
&& Objects.equals(this.name, cloudWorkloadSecurityAgentRuleAttributes.name)
&& Objects.equals(
this.updateAuthorUuId, cloudWorkloadSecurityAgentRuleAttributes.updateAuthorUuId)
&& Objects.equals(this.updateDate, cloudWorkloadSecurityAgentRuleAttributes.updateDate)
&& Objects.equals(this.updatedAt, cloudWorkloadSecurityAgentRuleAttributes.updatedAt)
&& Objects.equals(this.updater, cloudWorkloadSecurityAgentRuleAttributes.updater)
&& Objects.equals(this.version, cloudWorkloadSecurityAgentRuleAttributes.version)
Expand All @@ -378,14 +485,18 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
return Objects.hash(
agentConstraint,
category,
creationAuthorUuId,
creationDate,
creator,
defaultRule,
description,
enabled,
expression,
name,
updateAuthorUuId,
updateDate,
updatedAt,
updater,
version,
Expand All @@ -396,14 +507,18 @@ public int hashCode() {
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CloudWorkloadSecurityAgentRuleAttributes {\n");
sb.append(" agentConstraint: ").append(toIndentedString(agentConstraint)).append("\n");
sb.append(" category: ").append(toIndentedString(category)).append("\n");
sb.append(" creationAuthorUuId: ").append(toIndentedString(creationAuthorUuId)).append("\n");
sb.append(" creationDate: ").append(toIndentedString(creationDate)).append("\n");
sb.append(" creator: ").append(toIndentedString(creator)).append("\n");
sb.append(" defaultRule: ").append(toIndentedString(defaultRule)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
sb.append(" expression: ").append(toIndentedString(expression)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" updateAuthorUuId: ").append(toIndentedString(updateAuthorUuId)).append("\n");
sb.append(" updateDate: ").append(toIndentedString(updateDate)).append("\n");
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
sb.append(" updater: ").append(toIndentedString(updater)).append("\n");
sb.append(" version: ").append(toIndentedString(version)).append("\n");
Expand Down