Skip to content

Commit cd63f36

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit fcf2546 of spec repo
1 parent e09f6f5 commit cd63f36

11 files changed

+192
-39
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 58 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29996,6 +29996,13 @@ components:
2999629996
Library:
2999729997
description: Vulnerability library.
2999829998
properties:
29999+
additional_names:
30000+
description: Related library or package names (such as child packages or
30001+
affected binary paths).
30002+
items:
30003+
example: linux-tools-common
30004+
type: string
30005+
type: array
2999930006
name:
3000030007
description: Vulnerability library name.
3000130008
example: linux-aws-5.15
@@ -57371,6 +57378,12 @@ components:
5737157378
type: array
5737257379
risks:
5737357380
$ref: '#/components/schemas/VulnerabilityRisks'
57381+
running_kernel:
57382+
description: "True if the vulnerability affects a package in the host\u2019s
57383+
running kernel, false if it affects a non-running kernel, and omit if
57384+
it is not kernel-related."
57385+
example: true
57386+
type: boolean
5737457387
status:
5737557388
$ref: '#/components/schemas/VulnerabilityStatus'
5737657389
title:
@@ -57431,10 +57444,15 @@ components:
5743157444
- RubyGems
5743257445
- Go
5743357446
- Packagist
57434-
- Ddeb
57447+
- Deb
5743557448
- Rpm
5743657449
- Apk
5743757450
- Windows
57451+
- Generic
57452+
- MacOs
57453+
- Oci
57454+
- BottleRocket
57455+
- None
5743857456
type: string
5743957457
x-enum-varnames:
5744057458
- PYPI
@@ -57444,10 +57462,15 @@ components:
5744457462
- RUBY_GEMS
5744557463
- GO
5744657464
- PACKAGIST
57447-
- D_DEB
57465+
- DEB
5744857466
- RPM
5744957467
- APK
5745057468
- WINDOWS
57469+
- GENERIC
57470+
- MAC_OS
57471+
- OCI
57472+
- BOTTLE_ROCKET
57473+
- NONE
5745157474
VulnerabilityRelationships:
5745257475
description: Related entities object.
5745357476
properties:
@@ -57548,12 +57571,14 @@ components:
5754857571
- IAST
5754957572
- SCA
5755057573
- Infra
57574+
- SAST
5755157575
example: SCA
5755257576
type: string
5755357577
x-enum-varnames:
5755457578
- IAST
5755557579
- SCA
5755657580
- INFRA
57581+
- SAST
5755757582
VulnerabilityType:
5755857583
description: The vulnerability type.
5755957584
enum:
@@ -80311,6 +80336,10 @@ paths:
8031180336
summary: List assets SBOMs
8031280337
tags:
8031380338
- Security Monitoring
80339+
x-permission:
80340+
operator: OR
80341+
permissions:
80342+
- appsec_vm_read
8031480343
x-unstable: '**Note**: This endpoint is a private preview.
8031580344

8031680345
If you are interested in accessing this API, [fill out this form](https://forms.gle/kMYC1sDr6WDUBDsx9).'
@@ -80382,6 +80411,10 @@ paths:
8038280411
summary: Get SBOM
8038380412
tags:
8038480413
- Security Monitoring
80414+
x-permission:
80415+
operator: OR
80416+
permissions:
80417+
- appsec_vm_read
8038580418
x-unstable: '**Note**: This endpoint is a private preview.
8038680419

8038780420
If you are interested in accessing this API, [fill out this form](https://forms.gle/kMYC1sDr6WDUBDsx9).'
@@ -80496,6 +80529,10 @@ paths:
8049680529
summary: List scanned assets metadata
8049780530
tags:
8049880531
- Security Monitoring
80532+
x-permission:
80533+
operator: OR
80534+
permissions:
80535+
- appsec_vm_read
8049980536
x-unstable: '**Note**: This endpoint is a private preview.
8050080537

8050180538
If you are interested in accessing this API, [fill out this form](https://forms.gle/kMYC1sDr6WDUBDsx9).'
@@ -80924,6 +80961,14 @@ paths:
8092480961
required: false
8092580962
schema:
8092680963
type: string
80964+
- description: Filter for whether the vulnerability affects a running kernel
80965+
(for vulnerabilities related to a `Host` asset).
80966+
example: true
80967+
in: query
80968+
name: filter[running_kernel]
80969+
required: false
80970+
schema:
80971+
type: boolean
8092780972
- description: Filter by asset name. This field supports the usage of wildcards
8092880973
(*).
8092980974
example: datadog-agent
@@ -81067,6 +81112,10 @@ paths:
8106781112
summary: List vulnerabilities
8106881113
tags:
8106981114
- Security Monitoring
81115+
x-permission:
81116+
operator: OR
81117+
permissions:
81118+
- appsec_vm_read
8107081119
x-unstable: '**Note**: This endpoint is a private preview.
8107181120

8107281121
If you are interested in accessing this API, [fill out this form](https://forms.gle/kMYC1sDr6WDUBDsx9).'
@@ -81425,6 +81474,10 @@ paths:
8142581474
summary: List vulnerable assets
8142681475
tags:
8142781476
- Security Monitoring
81477+
x-permission:
81478+
operator: OR
81479+
permissions:
81480+
- appsec_vm_read
8142881481
x-unstable: '**Note**: This endpoint is a private preview.
8142981482

8143081483
If you are interested in accessing this API, [fill out this form](https://forms.gle/kMYC1sDr6WDUBDsx9).'
@@ -84562,8 +84615,8 @@ paths:
8456284615
x-unstable: '**Note**: This endpoint may be subject to changes.'
8456384616
/api/v2/static-analysis/secrets/rules:
8456484617
get:
84565-
description: Returns list of Secrets rules with ID, Pattern, Description, Priority,
84566-
and SDS ID
84618+
description: Returns a list of Secrets rules with ID, Pattern, Description,
84619+
Priority, and SDS ID.
8456784620
operationId: GetSecretsRules
8456884621
responses:
8456984622
'200':
@@ -84579,7 +84632,7 @@ paths:
8457984632
appKeyAuth: []
8458084633
- AuthZ:
8458184634
- code_analysis_read
84582-
summary: Returns list of Secrets rules
84635+
summary: Returns a list of Secrets rules
8458384636
tags:
8458484637
- Security Monitoring
8458584638
x-unstable: '**Note**: This endpoint may be subject to changes.'

examples/v2/security-monitoring/GetSecretsRules.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Returns list of Secrets rules returns "OK" response
1+
// Returns a list of Secrets rules returns "OK" response
22

33
import com.datadog.api.client.ApiClient;
44
import com.datadog.api.client.ApiException;

src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4879,7 +4879,7 @@ public CompletableFuture<ApiResponse<GetSBOMResponse>> getSBOMWithHttpInfoAsync(
48794879
}
48804880

48814881
/**
4882-
* Returns list of Secrets rules.
4882+
* Returns a list of Secrets rules.
48834883
*
48844884
* <p>See {@link #getSecretsRulesWithHttpInfo}.
48854885
*
@@ -4891,7 +4891,7 @@ public SecretRuleArray getSecretsRules() throws ApiException {
48914891
}
48924892

48934893
/**
4894-
* Returns list of Secrets rules.
4894+
* Returns a list of Secrets rules.
48954895
*
48964896
* <p>See {@link #getSecretsRulesWithHttpInfoAsync}.
48974897
*
@@ -4906,7 +4906,7 @@ public CompletableFuture<SecretRuleArray> getSecretsRulesAsync() {
49064906
}
49074907

49084908
/**
4909-
* Returns list of Secrets rules with ID, Pattern, Description, Priority, and SDS ID
4909+
* Returns a list of Secrets rules with ID, Pattern, Description, Priority, and SDS ID.
49104910
*
49114911
* @return ApiResponse&lt;SecretRuleArray&gt;
49124912
* @throws ApiException if fails to make API call
@@ -4953,7 +4953,7 @@ public ApiResponse<SecretRuleArray> getSecretsRulesWithHttpInfo() throws ApiExce
49534953
}
49544954

49554955
/**
4956-
* Returns list of Secrets rules.
4956+
* Returns a list of Secrets rules.
49574957
*
49584958
* <p>See {@link #getSecretsRulesWithHttpInfo}.
49594959
*
@@ -9689,6 +9689,7 @@ public static class ListVulnerabilitiesOptionalParameters {
96899689
private Boolean filterFixAvailable;
96909690
private String filterRepoDigests;
96919691
private String filterOrigin;
9692+
private Boolean filterRunningKernel;
96929693
private String filterAssetName;
96939694
private AssetType filterAssetType;
96949695
private String filterAssetVersionFirst;
@@ -10022,6 +10023,18 @@ public ListVulnerabilitiesOptionalParameters filterOrigin(String filterOrigin) {
1002210023
return this;
1002310024
}
1002410025

10026+
/**
10027+
* Set filterRunningKernel.
10028+
*
10029+
* @param filterRunningKernel Filter for whether the vulnerability affects a running kernel (for
10030+
* vulnerabilities related to a <code>Host</code> asset). (optional)
10031+
* @return ListVulnerabilitiesOptionalParameters
10032+
*/
10033+
public ListVulnerabilitiesOptionalParameters filterRunningKernel(Boolean filterRunningKernel) {
10034+
this.filterRunningKernel = filterRunningKernel;
10035+
return this;
10036+
}
10037+
1002510038
/**
1002610039
* Set filterAssetName.
1002710040
*
@@ -10431,6 +10444,7 @@ public ApiResponse<ListVulnerabilitiesResponse> listVulnerabilitiesWithHttpInfo(
1043110444
Boolean filterFixAvailable = parameters.filterFixAvailable;
1043210445
String filterRepoDigests = parameters.filterRepoDigests;
1043310446
String filterOrigin = parameters.filterOrigin;
10447+
Boolean filterRunningKernel = parameters.filterRunningKernel;
1043410448
String filterAssetName = parameters.filterAssetName;
1043510449
AssetType filterAssetType = parameters.filterAssetType;
1043610450
String filterAssetVersionFirst = parameters.filterAssetVersionFirst;
@@ -10506,6 +10520,8 @@ public ApiResponse<ListVulnerabilitiesResponse> listVulnerabilitiesWithHttpInfo(
1050610520
localVarQueryParams.addAll(
1050710521
apiClient.parameterToPairs("", "filter[repo_digests]", filterRepoDigests));
1050810522
localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[origin]", filterOrigin));
10523+
localVarQueryParams.addAll(
10524+
apiClient.parameterToPairs("", "filter[running_kernel]", filterRunningKernel));
1050910525
localVarQueryParams.addAll(
1051010526
apiClient.parameterToPairs("", "filter[asset.name]", filterAssetName));
1051110527
localVarQueryParams.addAll(
@@ -10617,6 +10633,7 @@ public ApiResponse<ListVulnerabilitiesResponse> listVulnerabilitiesWithHttpInfo(
1061710633
Boolean filterFixAvailable = parameters.filterFixAvailable;
1061810634
String filterRepoDigests = parameters.filterRepoDigests;
1061910635
String filterOrigin = parameters.filterOrigin;
10636+
Boolean filterRunningKernel = parameters.filterRunningKernel;
1062010637
String filterAssetName = parameters.filterAssetName;
1062110638
AssetType filterAssetType = parameters.filterAssetType;
1062210639
String filterAssetVersionFirst = parameters.filterAssetVersionFirst;
@@ -10692,6 +10709,8 @@ public ApiResponse<ListVulnerabilitiesResponse> listVulnerabilitiesWithHttpInfo(
1069210709
localVarQueryParams.addAll(
1069310710
apiClient.parameterToPairs("", "filter[repo_digests]", filterRepoDigests));
1069410711
localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[origin]", filterOrigin));
10712+
localVarQueryParams.addAll(
10713+
apiClient.parameterToPairs("", "filter[running_kernel]", filterRunningKernel));
1069510714
localVarQueryParams.addAll(
1069610715
apiClient.parameterToPairs("", "filter[asset.name]", filterAssetName));
1069710716
localVarQueryParams.addAll(

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

Lines changed: 43 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,25 @@
1313
import com.fasterxml.jackson.annotation.JsonInclude;
1414
import com.fasterxml.jackson.annotation.JsonProperty;
1515
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
16+
import java.util.ArrayList;
1617
import java.util.HashMap;
18+
import java.util.List;
1719
import java.util.Map;
1820
import java.util.Objects;
1921

2022
/** Vulnerability library. */
21-
@JsonPropertyOrder({Library.JSON_PROPERTY_NAME, Library.JSON_PROPERTY_VERSION})
23+
@JsonPropertyOrder({
24+
Library.JSON_PROPERTY_ADDITIONAL_NAMES,
25+
Library.JSON_PROPERTY_NAME,
26+
Library.JSON_PROPERTY_VERSION
27+
})
2228
@jakarta.annotation.Generated(
2329
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
2430
public class Library {
2531
@JsonIgnore public boolean unparsed = false;
32+
public static final String JSON_PROPERTY_ADDITIONAL_NAMES = "additional_names";
33+
private List<String> additionalNames = null;
34+
2635
public static final String JSON_PROPERTY_NAME = "name";
2736
private String name;
2837

@@ -36,6 +45,35 @@ public Library(@JsonProperty(required = true, value = JSON_PROPERTY_NAME) String
3645
this.name = name;
3746
}
3847

48+
public Library additionalNames(List<String> additionalNames) {
49+
this.additionalNames = additionalNames;
50+
return this;
51+
}
52+
53+
public Library addAdditionalNamesItem(String additionalNamesItem) {
54+
if (this.additionalNames == null) {
55+
this.additionalNames = new ArrayList<>();
56+
}
57+
this.additionalNames.add(additionalNamesItem);
58+
return this;
59+
}
60+
61+
/**
62+
* Related library or package names (such as child packages or affected binary paths).
63+
*
64+
* @return additionalNames
65+
*/
66+
@jakarta.annotation.Nullable
67+
@JsonProperty(JSON_PROPERTY_ADDITIONAL_NAMES)
68+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
69+
public List<String> getAdditionalNames() {
70+
return additionalNames;
71+
}
72+
73+
public void setAdditionalNames(List<String> additionalNames) {
74+
this.additionalNames = additionalNames;
75+
}
76+
3977
public Library name(String name) {
4078
this.name = name;
4179
return this;
@@ -133,20 +171,22 @@ public boolean equals(Object o) {
133171
return false;
134172
}
135173
Library library = (Library) o;
136-
return Objects.equals(this.name, library.name)
174+
return Objects.equals(this.additionalNames, library.additionalNames)
175+
&& Objects.equals(this.name, library.name)
137176
&& Objects.equals(this.version, library.version)
138177
&& Objects.equals(this.additionalProperties, library.additionalProperties);
139178
}
140179

141180
@Override
142181
public int hashCode() {
143-
return Objects.hash(name, version, additionalProperties);
182+
return Objects.hash(additionalNames, name, version, additionalProperties);
144183
}
145184

146185
@Override
147186
public String toString() {
148187
StringBuilder sb = new StringBuilder();
149188
sb.append("class Library {\n");
189+
sb.append(" additionalNames: ").append(toIndentedString(additionalNames)).append("\n");
150190
sb.append(" name: ").append(toIndentedString(name)).append("\n");
151191
sb.append(" version: ").append(toIndentedString(version)).append("\n");
152192
sb.append(" additionalProperties: ")

0 commit comments

Comments
 (0)