Skip to content

Commit dde009a

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add compliance_host to Agentless Scanning scan options (#3761)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent ad787dd commit dde009a

15 files changed

Lines changed: 251 additions & 22 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7731,6 +7731,10 @@ components:
77317731
AwsScanOptionsAttributes:
77327732
description: Attributes for the AWS scan options.
77337733
properties:
7734+
compliance_host:
7735+
description: Indicates whether host compliance scanning is enabled.
7736+
example: false
7737+
type: boolean
77347738
lambda:
77357739
description: Indicates if scanning of Lambda functions is enabled.
77367740
example: true
@@ -7751,6 +7755,10 @@ components:
77517755
AwsScanOptionsCreateAttributes:
77527756
description: Attributes for the AWS scan options to create.
77537757
properties:
7758+
compliance_host:
7759+
description: Indicates whether host compliance scanning is enabled.
7760+
example: false
7761+
type: boolean
77547762
lambda:
77557763
description: Indicates if scanning of Lambda functions is enabled.
77567764
example: true
@@ -7768,6 +7776,7 @@ components:
77687776
example: true
77697777
type: boolean
77707778
required:
7779+
- compliance_host
77717780
- lambda
77727781
- sensitive_data
77737782
- vuln_containers_os
@@ -7833,6 +7842,10 @@ components:
78337842
AwsScanOptionsUpdateAttributes:
78347843
description: Attributes for the AWS scan options to update.
78357844
properties:
7845+
compliance_host:
7846+
description: Indicates whether host compliance scanning is enabled.
7847+
example: false
7848+
type: boolean
78367849
lambda:
78377850
description: Indicates if scanning of Lambda functions is enabled.
78387851
example: true
@@ -7914,6 +7927,7 @@ components:
79147927
example:
79157928
data:
79167929
attributes:
7930+
compliance_host: false
79177931
vuln_containers_os: true
79187932
vuln_host_os: true
79197933
id: 12345678-90ab-cdef-1234-567890abcdef
@@ -7927,6 +7941,7 @@ components:
79277941
example:
79287942
data:
79297943
- attributes:
7944+
compliance_host: false
79307945
vuln_containers_os: true
79317946
vuln_host_os: true
79327947
id: 12345678-90ab-cdef-1234-567890abcdef
@@ -7958,6 +7973,9 @@ components:
79587973
AzureScanOptionsDataAttributes:
79597974
description: Attributes for Azure scan options configuration.
79607975
properties:
7976+
compliance_host:
7977+
description: Indicates whether host compliance scanning is enabled.
7978+
type: boolean
79617979
vuln_containers_os:
79627980
description: Indicates if scanning for vulnerabilities in containers is enabled.
79637981
type: boolean
@@ -8002,6 +8020,9 @@ components:
80028020
AzureScanOptionsInputUpdateDataAttributes:
80038021
description: Attributes for updating Azure scan options configuration.
80048022
properties:
8023+
compliance_host:
8024+
description: Indicates whether host compliance scanning is enabled.
8025+
type: boolean
80058026
vuln_containers_os:
80068027
description: Indicates if scanning for vulnerabilities in containers is enabled.
80078028
type: boolean
@@ -30081,6 +30102,7 @@ components:
3008130102
example:
3008230103
data:
3008330104
attributes:
30105+
compliance_host: false
3008430106
vuln_containers_os: true
3008530107
vuln_host_os: true
3008630108
id: company-project-id
@@ -30094,6 +30116,7 @@ components:
3009430116
example:
3009530117
data:
3009630118
- attributes:
30119+
compliance_host: false
3009730120
vuln_containers_os: true
3009830121
vuln_host_os: true
3009930122
id: company-project-id
@@ -30125,6 +30148,9 @@ components:
3012530148
GcpScanOptionsDataAttributes:
3012630149
description: Attributes for GCP scan options configuration.
3012730150
properties:
30151+
compliance_host:
30152+
description: Indicates whether host compliance scanning is enabled.
30153+
type: boolean
3012830154
vuln_containers_os:
3012930155
description: Indicates if scanning for vulnerabilities in containers is enabled.
3013030156
type: boolean
@@ -30169,6 +30195,9 @@ components:
3016930195
GcpScanOptionsInputUpdateDataAttributes:
3017030196
description: Attributes for updating GCP scan options configuration.
3017130197
properties:
30198+
compliance_host:
30199+
description: Indicates whether host compliance scanning is enabled.
30200+
type: boolean
3017230201
vuln_containers_os:
3017330202
description: Indicates if scanning for vulnerabilities in containers is enabled.
3017430203
type: boolean
@@ -86264,6 +86293,7 @@ paths:
8626486293
value:
8626586294
data:
8626686295
attributes:
86296+
compliance_host: false
8626786297
lambda: true
8626886298
sensitive_data: false
8626986299
vuln_containers_os: true
@@ -86383,6 +86413,7 @@ paths:
8638386413
value:
8638486414
data:
8638586415
attributes:
86416+
compliance_host: false
8638686417
lambda: true
8638786418
sensitive_data: false
8638886419
vuln_containers_os: true
@@ -86453,6 +86484,7 @@ paths:
8645386484
value:
8645486485
data:
8645586486
attributes:
86487+
compliance_host: false
8645686488
vuln_containers_os: true
8645786489
vuln_host_os: true
8645886490
id: 12345678-90ab-cdef-1234-567890abcdef
@@ -86647,6 +86679,7 @@ paths:
8664786679
value:
8664886680
data:
8664986681
attributes:
86682+
compliance_host: false
8665086683
vuln_containers_os: true
8665186684
vuln_host_os: true
8665286685
id: company-project-id

examples/v2/agentless-scanning/CreateAwsScanOptions.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public static void main(String[] args) {
2222
.type(AwsScanOptionsType.AWS_SCAN_OPTIONS)
2323
.attributes(
2424
new AwsScanOptionsCreateAttributes()
25+
.complianceHost(true)
2526
.lambda(true)
2627
.sensitiveData(false)
2728
.vulnContainersOs(true)

src/main/java/com/datadog/api/client/v2/model/AwsScanOptionsAttributes.java

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
/** Attributes for the AWS scan options. */
2020
@JsonPropertyOrder({
21+
AwsScanOptionsAttributes.JSON_PROPERTY_COMPLIANCE_HOST,
2122
AwsScanOptionsAttributes.JSON_PROPERTY_LAMBDA,
2223
AwsScanOptionsAttributes.JSON_PROPERTY_SENSITIVE_DATA,
2324
AwsScanOptionsAttributes.JSON_PROPERTY_VULN_CONTAINERS_OS,
@@ -27,6 +28,9 @@
2728
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
2829
public class AwsScanOptionsAttributes {
2930
@JsonIgnore public boolean unparsed = false;
31+
public static final String JSON_PROPERTY_COMPLIANCE_HOST = "compliance_host";
32+
private Boolean complianceHost;
33+
3034
public static final String JSON_PROPERTY_LAMBDA = "lambda";
3135
private Boolean lambda;
3236

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

46+
public AwsScanOptionsAttributes complianceHost(Boolean complianceHost) {
47+
this.complianceHost = complianceHost;
48+
return this;
49+
}
50+
51+
/**
52+
* Indicates whether host compliance scanning is enabled.
53+
*
54+
* @return complianceHost
55+
*/
56+
@jakarta.annotation.Nullable
57+
@JsonProperty(JSON_PROPERTY_COMPLIANCE_HOST)
58+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
59+
public Boolean getComplianceHost() {
60+
return complianceHost;
61+
}
62+
63+
public void setComplianceHost(Boolean complianceHost) {
64+
this.complianceHost = complianceHost;
65+
}
66+
4267
public AwsScanOptionsAttributes lambda(Boolean lambda) {
4368
this.lambda = lambda;
4469
return this;
@@ -179,7 +204,8 @@ public boolean equals(Object o) {
179204
return false;
180205
}
181206
AwsScanOptionsAttributes awsScanOptionsAttributes = (AwsScanOptionsAttributes) o;
182-
return Objects.equals(this.lambda, awsScanOptionsAttributes.lambda)
207+
return Objects.equals(this.complianceHost, awsScanOptionsAttributes.complianceHost)
208+
&& Objects.equals(this.lambda, awsScanOptionsAttributes.lambda)
183209
&& Objects.equals(this.sensitiveData, awsScanOptionsAttributes.sensitiveData)
184210
&& Objects.equals(this.vulnContainersOs, awsScanOptionsAttributes.vulnContainersOs)
185211
&& Objects.equals(this.vulnHostOs, awsScanOptionsAttributes.vulnHostOs)
@@ -188,13 +214,15 @@ public boolean equals(Object o) {
188214

189215
@Override
190216
public int hashCode() {
191-
return Objects.hash(lambda, sensitiveData, vulnContainersOs, vulnHostOs, additionalProperties);
217+
return Objects.hash(
218+
complianceHost, lambda, sensitiveData, vulnContainersOs, vulnHostOs, additionalProperties);
192219
}
193220

194221
@Override
195222
public String toString() {
196223
StringBuilder sb = new StringBuilder();
197224
sb.append("class AwsScanOptionsAttributes {\n");
225+
sb.append(" complianceHost: ").append(toIndentedString(complianceHost)).append("\n");
198226
sb.append(" lambda: ").append(toIndentedString(lambda)).append("\n");
199227
sb.append(" sensitiveData: ").append(toIndentedString(sensitiveData)).append("\n");
200228
sb.append(" vulnContainersOs: ").append(toIndentedString(vulnContainersOs)).append("\n");

src/main/java/com/datadog/api/client/v2/model/AwsScanOptionsCreateAttributes.java

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
/** Attributes for the AWS scan options to create. */
2121
@JsonPropertyOrder({
22+
AwsScanOptionsCreateAttributes.JSON_PROPERTY_COMPLIANCE_HOST,
2223
AwsScanOptionsCreateAttributes.JSON_PROPERTY_LAMBDA,
2324
AwsScanOptionsCreateAttributes.JSON_PROPERTY_SENSITIVE_DATA,
2425
AwsScanOptionsCreateAttributes.JSON_PROPERTY_VULN_CONTAINERS_OS,
@@ -28,6 +29,9 @@
2829
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
2930
public class AwsScanOptionsCreateAttributes {
3031
@JsonIgnore public boolean unparsed = false;
32+
public static final String JSON_PROPERTY_COMPLIANCE_HOST = "compliance_host";
33+
private Boolean complianceHost;
34+
3135
public static final String JSON_PROPERTY_LAMBDA = "lambda";
3236
private Boolean lambda;
3337

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

4549
@JsonCreator
4650
public AwsScanOptionsCreateAttributes(
51+
@JsonProperty(required = true, value = JSON_PROPERTY_COMPLIANCE_HOST) Boolean complianceHost,
4752
@JsonProperty(required = true, value = JSON_PROPERTY_LAMBDA) Boolean lambda,
4853
@JsonProperty(required = true, value = JSON_PROPERTY_SENSITIVE_DATA) Boolean sensitiveData,
4954
@JsonProperty(required = true, value = JSON_PROPERTY_VULN_CONTAINERS_OS)
5055
Boolean vulnContainersOs,
5156
@JsonProperty(required = true, value = JSON_PROPERTY_VULN_HOST_OS) Boolean vulnHostOs) {
57+
this.complianceHost = complianceHost;
5258
this.lambda = lambda;
5359
this.sensitiveData = sensitiveData;
5460
this.vulnContainersOs = vulnContainersOs;
5561
this.vulnHostOs = vulnHostOs;
5662
}
5763

64+
public AwsScanOptionsCreateAttributes complianceHost(Boolean complianceHost) {
65+
this.complianceHost = complianceHost;
66+
return this;
67+
}
68+
69+
/**
70+
* Indicates whether host compliance scanning is enabled.
71+
*
72+
* @return complianceHost
73+
*/
74+
@JsonProperty(JSON_PROPERTY_COMPLIANCE_HOST)
75+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
76+
public Boolean getComplianceHost() {
77+
return complianceHost;
78+
}
79+
80+
public void setComplianceHost(Boolean complianceHost) {
81+
this.complianceHost = complianceHost;
82+
}
83+
5884
public AwsScanOptionsCreateAttributes lambda(Boolean lambda) {
5985
this.lambda = lambda;
6086
return this;
@@ -192,7 +218,8 @@ public boolean equals(Object o) {
192218
}
193219
AwsScanOptionsCreateAttributes awsScanOptionsCreateAttributes =
194220
(AwsScanOptionsCreateAttributes) o;
195-
return Objects.equals(this.lambda, awsScanOptionsCreateAttributes.lambda)
221+
return Objects.equals(this.complianceHost, awsScanOptionsCreateAttributes.complianceHost)
222+
&& Objects.equals(this.lambda, awsScanOptionsCreateAttributes.lambda)
196223
&& Objects.equals(this.sensitiveData, awsScanOptionsCreateAttributes.sensitiveData)
197224
&& Objects.equals(this.vulnContainersOs, awsScanOptionsCreateAttributes.vulnContainersOs)
198225
&& Objects.equals(this.vulnHostOs, awsScanOptionsCreateAttributes.vulnHostOs)
@@ -202,13 +229,15 @@ public boolean equals(Object o) {
202229

203230
@Override
204231
public int hashCode() {
205-
return Objects.hash(lambda, sensitiveData, vulnContainersOs, vulnHostOs, additionalProperties);
232+
return Objects.hash(
233+
complianceHost, lambda, sensitiveData, vulnContainersOs, vulnHostOs, additionalProperties);
206234
}
207235

208236
@Override
209237
public String toString() {
210238
StringBuilder sb = new StringBuilder();
211239
sb.append("class AwsScanOptionsCreateAttributes {\n");
240+
sb.append(" complianceHost: ").append(toIndentedString(complianceHost)).append("\n");
212241
sb.append(" lambda: ").append(toIndentedString(lambda)).append("\n");
213242
sb.append(" sensitiveData: ").append(toIndentedString(sensitiveData)).append("\n");
214243
sb.append(" vulnContainersOs: ").append(toIndentedString(vulnContainersOs)).append("\n");

src/main/java/com/datadog/api/client/v2/model/AwsScanOptionsUpdateAttributes.java

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
/** Attributes for the AWS scan options to update. */
2020
@JsonPropertyOrder({
21+
AwsScanOptionsUpdateAttributes.JSON_PROPERTY_COMPLIANCE_HOST,
2122
AwsScanOptionsUpdateAttributes.JSON_PROPERTY_LAMBDA,
2223
AwsScanOptionsUpdateAttributes.JSON_PROPERTY_SENSITIVE_DATA,
2324
AwsScanOptionsUpdateAttributes.JSON_PROPERTY_VULN_CONTAINERS_OS,
@@ -27,6 +28,9 @@
2728
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
2829
public class AwsScanOptionsUpdateAttributes {
2930
@JsonIgnore public boolean unparsed = false;
31+
public static final String JSON_PROPERTY_COMPLIANCE_HOST = "compliance_host";
32+
private Boolean complianceHost;
33+
3034
public static final String JSON_PROPERTY_LAMBDA = "lambda";
3135
private Boolean lambda;
3236

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

46+
public AwsScanOptionsUpdateAttributes complianceHost(Boolean complianceHost) {
47+
this.complianceHost = complianceHost;
48+
return this;
49+
}
50+
51+
/**
52+
* Indicates whether host compliance scanning is enabled.
53+
*
54+
* @return complianceHost
55+
*/
56+
@jakarta.annotation.Nullable
57+
@JsonProperty(JSON_PROPERTY_COMPLIANCE_HOST)
58+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
59+
public Boolean getComplianceHost() {
60+
return complianceHost;
61+
}
62+
63+
public void setComplianceHost(Boolean complianceHost) {
64+
this.complianceHost = complianceHost;
65+
}
66+
4267
public AwsScanOptionsUpdateAttributes lambda(Boolean lambda) {
4368
this.lambda = lambda;
4469
return this;
@@ -180,7 +205,8 @@ public boolean equals(Object o) {
180205
}
181206
AwsScanOptionsUpdateAttributes awsScanOptionsUpdateAttributes =
182207
(AwsScanOptionsUpdateAttributes) o;
183-
return Objects.equals(this.lambda, awsScanOptionsUpdateAttributes.lambda)
208+
return Objects.equals(this.complianceHost, awsScanOptionsUpdateAttributes.complianceHost)
209+
&& Objects.equals(this.lambda, awsScanOptionsUpdateAttributes.lambda)
184210
&& Objects.equals(this.sensitiveData, awsScanOptionsUpdateAttributes.sensitiveData)
185211
&& Objects.equals(this.vulnContainersOs, awsScanOptionsUpdateAttributes.vulnContainersOs)
186212
&& Objects.equals(this.vulnHostOs, awsScanOptionsUpdateAttributes.vulnHostOs)
@@ -190,13 +216,15 @@ public boolean equals(Object o) {
190216

191217
@Override
192218
public int hashCode() {
193-
return Objects.hash(lambda, sensitiveData, vulnContainersOs, vulnHostOs, additionalProperties);
219+
return Objects.hash(
220+
complianceHost, lambda, sensitiveData, vulnContainersOs, vulnHostOs, additionalProperties);
194221
}
195222

196223
@Override
197224
public String toString() {
198225
StringBuilder sb = new StringBuilder();
199226
sb.append("class AwsScanOptionsUpdateAttributes {\n");
227+
sb.append(" complianceHost: ").append(toIndentedString(complianceHost)).append("\n");
200228
sb.append(" lambda: ").append(toIndentedString(lambda)).append("\n");
201229
sb.append(" sensitiveData: ").append(toIndentedString(sensitiveData)).append("\n");
202230
sb.append(" vulnContainersOs: ").append(toIndentedString(vulnContainersOs)).append("\n");

0 commit comments

Comments
 (0)