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
33 changes: 33 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7731,6 +7731,10 @@ components:
AwsScanOptionsAttributes:
description: Attributes for the AWS scan options.
properties:
compliance_host:
description: Indicates whether host compliance scanning is enabled.
example: false
type: boolean
lambda:
description: Indicates if scanning of Lambda functions is enabled.
example: true
Expand All @@ -7751,6 +7755,10 @@ components:
AwsScanOptionsCreateAttributes:
description: Attributes for the AWS scan options to create.
properties:
compliance_host:
description: Indicates whether host compliance scanning is enabled.
example: false
type: boolean
lambda:
description: Indicates if scanning of Lambda functions is enabled.
example: true
Expand All @@ -7768,6 +7776,7 @@ components:
example: true
type: boolean
required:
- compliance_host
- lambda
- sensitive_data
- vuln_containers_os
Expand Down Expand Up @@ -7833,6 +7842,10 @@ components:
AwsScanOptionsUpdateAttributes:
description: Attributes for the AWS scan options to update.
properties:
compliance_host:
description: Indicates whether host compliance scanning is enabled.
example: false
type: boolean
lambda:
description: Indicates if scanning of Lambda functions is enabled.
example: true
Expand Down Expand Up @@ -7914,6 +7927,7 @@ components:
example:
data:
attributes:
compliance_host: false
vuln_containers_os: true
vuln_host_os: true
id: 12345678-90ab-cdef-1234-567890abcdef
Expand All @@ -7927,6 +7941,7 @@ components:
example:
data:
- attributes:
compliance_host: false
vuln_containers_os: true
vuln_host_os: true
id: 12345678-90ab-cdef-1234-567890abcdef
Expand Down Expand Up @@ -7958,6 +7973,9 @@ components:
AzureScanOptionsDataAttributes:
description: Attributes for Azure scan options configuration.
properties:
compliance_host:
description: Indicates whether host compliance scanning is enabled.
type: boolean
vuln_containers_os:
description: Indicates if scanning for vulnerabilities in containers is enabled.
type: boolean
Expand Down Expand Up @@ -8002,6 +8020,9 @@ components:
AzureScanOptionsInputUpdateDataAttributes:
description: Attributes for updating Azure scan options configuration.
properties:
compliance_host:
description: Indicates whether host compliance scanning is enabled.
type: boolean
vuln_containers_os:
description: Indicates if scanning for vulnerabilities in containers is enabled.
type: boolean
Expand Down Expand Up @@ -30081,6 +30102,7 @@ components:
example:
data:
attributes:
compliance_host: false
vuln_containers_os: true
vuln_host_os: true
id: company-project-id
Expand All @@ -30094,6 +30116,7 @@ components:
example:
data:
- attributes:
compliance_host: false
vuln_containers_os: true
vuln_host_os: true
id: company-project-id
Expand Down Expand Up @@ -30125,6 +30148,9 @@ components:
GcpScanOptionsDataAttributes:
description: Attributes for GCP scan options configuration.
properties:
compliance_host:
description: Indicates whether host compliance scanning is enabled.
type: boolean
vuln_containers_os:
description: Indicates if scanning for vulnerabilities in containers is enabled.
type: boolean
Expand Down Expand Up @@ -30169,6 +30195,9 @@ components:
GcpScanOptionsInputUpdateDataAttributes:
description: Attributes for updating GCP scan options configuration.
properties:
compliance_host:
description: Indicates whether host compliance scanning is enabled.
type: boolean
vuln_containers_os:
description: Indicates if scanning for vulnerabilities in containers is enabled.
type: boolean
Expand Down Expand Up @@ -85870,6 +85899,7 @@ paths:
value:
data:
attributes:
compliance_host: false
lambda: true
sensitive_data: false
vuln_containers_os: true
Expand Down Expand Up @@ -85967,6 +85997,7 @@ paths:
value:
data:
attributes:
compliance_host: false
lambda: true
sensitive_data: false
vuln_containers_os: true
Expand Down Expand Up @@ -86028,6 +86059,7 @@ paths:
value:
data:
attributes:
compliance_host: false
vuln_containers_os: true
vuln_host_os: true
id: 12345678-90ab-cdef-1234-567890abcdef
Expand Down Expand Up @@ -86186,6 +86218,7 @@ paths:
value:
data:
attributes:
compliance_host: false
vuln_containers_os: true
vuln_host_os: true
id: company-project-id
Expand Down
1 change: 1 addition & 0 deletions examples/v2/agentless-scanning/CreateAwsScanOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public static void main(String[] args) {
.type(AwsScanOptionsType.AWS_SCAN_OPTIONS)
.attributes(
new AwsScanOptionsCreateAttributes()
.complianceHost(true)
.lambda(true)
.sensitiveData(false)
.vulnContainersOs(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

/** Attributes for the AWS scan options. */
@JsonPropertyOrder({
AwsScanOptionsAttributes.JSON_PROPERTY_COMPLIANCE_HOST,
AwsScanOptionsAttributes.JSON_PROPERTY_LAMBDA,
AwsScanOptionsAttributes.JSON_PROPERTY_SENSITIVE_DATA,
AwsScanOptionsAttributes.JSON_PROPERTY_VULN_CONTAINERS_OS,
Expand All @@ -27,6 +28,9 @@
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class AwsScanOptionsAttributes {
@JsonIgnore public boolean unparsed = false;
public static final String JSON_PROPERTY_COMPLIANCE_HOST = "compliance_host";
private Boolean complianceHost;

public static final String JSON_PROPERTY_LAMBDA = "lambda";
private Boolean lambda;

Expand All @@ -39,6 +43,27 @@ public class AwsScanOptionsAttributes {
public static final String JSON_PROPERTY_VULN_HOST_OS = "vuln_host_os";
private Boolean vulnHostOs;

public AwsScanOptionsAttributes complianceHost(Boolean complianceHost) {
this.complianceHost = complianceHost;
return this;
}

/**
* Indicates whether host compliance scanning is enabled.
*
* @return complianceHost
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_COMPLIANCE_HOST)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getComplianceHost() {
return complianceHost;
}

public void setComplianceHost(Boolean complianceHost) {
this.complianceHost = complianceHost;
}

public AwsScanOptionsAttributes lambda(Boolean lambda) {
this.lambda = lambda;
return this;
Expand Down Expand Up @@ -179,7 +204,8 @@ public boolean equals(Object o) {
return false;
}
AwsScanOptionsAttributes awsScanOptionsAttributes = (AwsScanOptionsAttributes) o;
return Objects.equals(this.lambda, awsScanOptionsAttributes.lambda)
return Objects.equals(this.complianceHost, awsScanOptionsAttributes.complianceHost)
&& Objects.equals(this.lambda, awsScanOptionsAttributes.lambda)
&& Objects.equals(this.sensitiveData, awsScanOptionsAttributes.sensitiveData)
&& Objects.equals(this.vulnContainersOs, awsScanOptionsAttributes.vulnContainersOs)
&& Objects.equals(this.vulnHostOs, awsScanOptionsAttributes.vulnHostOs)
Expand All @@ -188,13 +214,15 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return Objects.hash(lambda, sensitiveData, vulnContainersOs, vulnHostOs, additionalProperties);
return Objects.hash(
complianceHost, lambda, sensitiveData, vulnContainersOs, vulnHostOs, additionalProperties);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AwsScanOptionsAttributes {\n");
sb.append(" complianceHost: ").append(toIndentedString(complianceHost)).append("\n");
sb.append(" lambda: ").append(toIndentedString(lambda)).append("\n");
sb.append(" sensitiveData: ").append(toIndentedString(sensitiveData)).append("\n");
sb.append(" vulnContainersOs: ").append(toIndentedString(vulnContainersOs)).append("\n");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

/** Attributes for the AWS scan options to create. */
@JsonPropertyOrder({
AwsScanOptionsCreateAttributes.JSON_PROPERTY_COMPLIANCE_HOST,
AwsScanOptionsCreateAttributes.JSON_PROPERTY_LAMBDA,
AwsScanOptionsCreateAttributes.JSON_PROPERTY_SENSITIVE_DATA,
AwsScanOptionsCreateAttributes.JSON_PROPERTY_VULN_CONTAINERS_OS,
Expand All @@ -28,6 +29,9 @@
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class AwsScanOptionsCreateAttributes {
@JsonIgnore public boolean unparsed = false;
public static final String JSON_PROPERTY_COMPLIANCE_HOST = "compliance_host";
private Boolean complianceHost;

public static final String JSON_PROPERTY_LAMBDA = "lambda";
private Boolean lambda;

Expand All @@ -44,17 +48,39 @@ public AwsScanOptionsCreateAttributes() {}

@JsonCreator
public AwsScanOptionsCreateAttributes(
@JsonProperty(required = true, value = JSON_PROPERTY_COMPLIANCE_HOST) Boolean complianceHost,
@JsonProperty(required = true, value = JSON_PROPERTY_LAMBDA) Boolean lambda,
@JsonProperty(required = true, value = JSON_PROPERTY_SENSITIVE_DATA) Boolean sensitiveData,
@JsonProperty(required = true, value = JSON_PROPERTY_VULN_CONTAINERS_OS)
Boolean vulnContainersOs,
@JsonProperty(required = true, value = JSON_PROPERTY_VULN_HOST_OS) Boolean vulnHostOs) {
this.complianceHost = complianceHost;
this.lambda = lambda;
this.sensitiveData = sensitiveData;
this.vulnContainersOs = vulnContainersOs;
this.vulnHostOs = vulnHostOs;
}

public AwsScanOptionsCreateAttributes complianceHost(Boolean complianceHost) {
this.complianceHost = complianceHost;
return this;
}

/**
* Indicates whether host compliance scanning is enabled.
*
* @return complianceHost
*/
@JsonProperty(JSON_PROPERTY_COMPLIANCE_HOST)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean getComplianceHost() {
return complianceHost;
}

public void setComplianceHost(Boolean complianceHost) {
this.complianceHost = complianceHost;
}

public AwsScanOptionsCreateAttributes lambda(Boolean lambda) {
this.lambda = lambda;
return this;
Expand Down Expand Up @@ -192,7 +218,8 @@ public boolean equals(Object o) {
}
AwsScanOptionsCreateAttributes awsScanOptionsCreateAttributes =
(AwsScanOptionsCreateAttributes) o;
return Objects.equals(this.lambda, awsScanOptionsCreateAttributes.lambda)
return Objects.equals(this.complianceHost, awsScanOptionsCreateAttributes.complianceHost)
&& Objects.equals(this.lambda, awsScanOptionsCreateAttributes.lambda)
&& Objects.equals(this.sensitiveData, awsScanOptionsCreateAttributes.sensitiveData)
&& Objects.equals(this.vulnContainersOs, awsScanOptionsCreateAttributes.vulnContainersOs)
&& Objects.equals(this.vulnHostOs, awsScanOptionsCreateAttributes.vulnHostOs)
Expand All @@ -202,13 +229,15 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return Objects.hash(lambda, sensitiveData, vulnContainersOs, vulnHostOs, additionalProperties);
return Objects.hash(
complianceHost, lambda, sensitiveData, vulnContainersOs, vulnHostOs, additionalProperties);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AwsScanOptionsCreateAttributes {\n");
sb.append(" complianceHost: ").append(toIndentedString(complianceHost)).append("\n");
sb.append(" lambda: ").append(toIndentedString(lambda)).append("\n");
sb.append(" sensitiveData: ").append(toIndentedString(sensitiveData)).append("\n");
sb.append(" vulnContainersOs: ").append(toIndentedString(vulnContainersOs)).append("\n");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

/** Attributes for the AWS scan options to update. */
@JsonPropertyOrder({
AwsScanOptionsUpdateAttributes.JSON_PROPERTY_COMPLIANCE_HOST,
AwsScanOptionsUpdateAttributes.JSON_PROPERTY_LAMBDA,
AwsScanOptionsUpdateAttributes.JSON_PROPERTY_SENSITIVE_DATA,
AwsScanOptionsUpdateAttributes.JSON_PROPERTY_VULN_CONTAINERS_OS,
Expand All @@ -27,6 +28,9 @@
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class AwsScanOptionsUpdateAttributes {
@JsonIgnore public boolean unparsed = false;
public static final String JSON_PROPERTY_COMPLIANCE_HOST = "compliance_host";
private Boolean complianceHost;

public static final String JSON_PROPERTY_LAMBDA = "lambda";
private Boolean lambda;

Expand All @@ -39,6 +43,27 @@ public class AwsScanOptionsUpdateAttributes {
public static final String JSON_PROPERTY_VULN_HOST_OS = "vuln_host_os";
private Boolean vulnHostOs;

public AwsScanOptionsUpdateAttributes complianceHost(Boolean complianceHost) {
this.complianceHost = complianceHost;
return this;
}

/**
* Indicates whether host compliance scanning is enabled.
*
* @return complianceHost
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_COMPLIANCE_HOST)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getComplianceHost() {
return complianceHost;
}

public void setComplianceHost(Boolean complianceHost) {
this.complianceHost = complianceHost;
}

public AwsScanOptionsUpdateAttributes lambda(Boolean lambda) {
this.lambda = lambda;
return this;
Expand Down Expand Up @@ -180,7 +205,8 @@ public boolean equals(Object o) {
}
AwsScanOptionsUpdateAttributes awsScanOptionsUpdateAttributes =
(AwsScanOptionsUpdateAttributes) o;
return Objects.equals(this.lambda, awsScanOptionsUpdateAttributes.lambda)
return Objects.equals(this.complianceHost, awsScanOptionsUpdateAttributes.complianceHost)
&& Objects.equals(this.lambda, awsScanOptionsUpdateAttributes.lambda)
&& Objects.equals(this.sensitiveData, awsScanOptionsUpdateAttributes.sensitiveData)
&& Objects.equals(this.vulnContainersOs, awsScanOptionsUpdateAttributes.vulnContainersOs)
&& Objects.equals(this.vulnHostOs, awsScanOptionsUpdateAttributes.vulnHostOs)
Expand All @@ -190,13 +216,15 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return Objects.hash(lambda, sensitiveData, vulnContainersOs, vulnHostOs, additionalProperties);
return Objects.hash(
complianceHost, lambda, sensitiveData, vulnContainersOs, vulnHostOs, additionalProperties);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AwsScanOptionsUpdateAttributes {\n");
sb.append(" complianceHost: ").append(toIndentedString(complianceHost)).append("\n");
sb.append(" lambda: ").append(toIndentedString(lambda)).append("\n");
sb.append(" sensitiveData: ").append(toIndentedString(sensitiveData)).append("\n");
sb.append(" vulnContainersOs: ").append(toIndentedString(vulnContainersOs)).append("\n");
Expand Down
Loading
Loading