Skip to content

Commit 0b49ceb

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit fcf2546 of spec repo (#3313)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent cc15cdb commit 0b49ceb

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
@@ -29976,6 +29976,13 @@ components:
2997629976
Library:
2997729977
description: Vulnerability library.
2997829978
properties:
29979+
additional_names:
29980+
description: Related library or package names (such as child packages or
29981+
affected binary paths).
29982+
items:
29983+
example: linux-tools-common
29984+
type: string
29985+
type: array
2997929986
name:
2998029987
description: Vulnerability library name.
2998129988
example: linux-aws-5.15
@@ -57353,6 +57360,12 @@ components:
5735357360
type: array
5735457361
risks:
5735557362
$ref: '#/components/schemas/VulnerabilityRisks'
57363+
running_kernel:
57364+
description: "True if the vulnerability affects a package in the host\u2019s
57365+
running kernel, false if it affects a non-running kernel, and omit if
57366+
it is not kernel-related."
57367+
example: true
57368+
type: boolean
5735657369
status:
5735757370
$ref: '#/components/schemas/VulnerabilityStatus'
5735857371
title:
@@ -57413,10 +57426,15 @@ components:
5741357426
- RubyGems
5741457427
- Go
5741557428
- Packagist
57416-
- Ddeb
57429+
- Deb
5741757430
- Rpm
5741857431
- Apk
5741957432
- Windows
57433+
- Generic
57434+
- MacOs
57435+
- Oci
57436+
- BottleRocket
57437+
- None
5742057438
type: string
5742157439
x-enum-varnames:
5742257440
- PYPI
@@ -57426,10 +57444,15 @@ components:
5742657444
- RUBY_GEMS
5742757445
- GO
5742857446
- PACKAGIST
57429-
- D_DEB
57447+
- DEB
5743057448
- RPM
5743157449
- APK
5743257450
- WINDOWS
57451+
- GENERIC
57452+
- MAC_OS
57453+
- OCI
57454+
- BOTTLE_ROCKET
57455+
- NONE
5743357456
VulnerabilityRelationships:
5743457457
description: Related entities object.
5743557458
properties:
@@ -57530,12 +57553,14 @@ components:
5753057553
- IAST
5753157554
- SCA
5753257555
- Infra
57556+
- SAST
5753357557
example: SCA
5753457558
type: string
5753557559
x-enum-varnames:
5753657560
- IAST
5753757561
- SCA
5753857562
- INFRA
57563+
- SAST
5753957564
VulnerabilityType:
5754057565
description: The vulnerability type.
5754157566
enum:
@@ -80296,6 +80321,10 @@ paths:
8029680321
summary: List assets SBOMs
8029780322
tags:
8029880323
- Security Monitoring
80324+
x-permission:
80325+
operator: OR
80326+
permissions:
80327+
- appsec_vm_read
8029980328
x-unstable: '**Note**: This endpoint is a private preview.
8030080329

8030180330
If you are interested in accessing this API, [fill out this form](https://forms.gle/kMYC1sDr6WDUBDsx9).'
@@ -80367,6 +80396,10 @@ paths:
8036780396
summary: Get SBOM
8036880397
tags:
8036980398
- Security Monitoring
80399+
x-permission:
80400+
operator: OR
80401+
permissions:
80402+
- appsec_vm_read
8037080403
x-unstable: '**Note**: This endpoint is a private preview.
8037180404

8037280405
If you are interested in accessing this API, [fill out this form](https://forms.gle/kMYC1sDr6WDUBDsx9).'
@@ -80481,6 +80514,10 @@ paths:
8048180514
summary: List scanned assets metadata
8048280515
tags:
8048380516
- Security Monitoring
80517+
x-permission:
80518+
operator: OR
80519+
permissions:
80520+
- appsec_vm_read
8048480521
x-unstable: '**Note**: This endpoint is a private preview.
8048580522

8048680523
If you are interested in accessing this API, [fill out this form](https://forms.gle/kMYC1sDr6WDUBDsx9).'
@@ -80909,6 +80946,14 @@ paths:
8090980946
required: false
8091080947
schema:
8091180948
type: string
80949+
- description: Filter for whether the vulnerability affects a running kernel
80950+
(for vulnerabilities related to a `Host` asset).
80951+
example: true
80952+
in: query
80953+
name: filter[running_kernel]
80954+
required: false
80955+
schema:
80956+
type: boolean
8091280957
- description: Filter by asset name. This field supports the usage of wildcards
8091380958
(*).
8091480959
example: datadog-agent
@@ -81052,6 +81097,10 @@ paths:
8105281097
summary: List vulnerabilities
8105381098
tags:
8105481099
- Security Monitoring
81100+
x-permission:
81101+
operator: OR
81102+
permissions:
81103+
- appsec_vm_read
8105581104
x-unstable: '**Note**: This endpoint is a private preview.
8105681105

8105781106
If you are interested in accessing this API, [fill out this form](https://forms.gle/kMYC1sDr6WDUBDsx9).'
@@ -81410,6 +81459,10 @@ paths:
8141081459
summary: List vulnerable assets
8141181460
tags:
8141281461
- Security Monitoring
81462+
x-permission:
81463+
operator: OR
81464+
permissions:
81465+
- appsec_vm_read
8141381466
x-unstable: '**Note**: This endpoint is a private preview.
8141481467

8141581468
If you are interested in accessing this API, [fill out this form](https://forms.gle/kMYC1sDr6WDUBDsx9).'
@@ -84547,8 +84600,8 @@ paths:
8454784600
x-unstable: '**Note**: This endpoint may be subject to changes.'
8454884601
/api/v2/static-analysis/secrets/rules:
8454984602
get:
84550-
description: Returns list of Secrets rules with ID, Pattern, Description, Priority,
84551-
and SDS ID
84603+
description: Returns a list of Secrets rules with ID, Pattern, Description,
84604+
Priority, and SDS ID.
8455284605
operationId: GetSecretsRules
8455384606
responses:
8455484607
'200':
@@ -84564,7 +84617,7 @@ paths:
8456484617
appKeyAuth: []
8456584618
- AuthZ:
8456684619
- code_analysis_read
84567-
summary: Returns list of Secrets rules
84620+
summary: Returns a list of Secrets rules
8456884621
tags:
8456984622
- Security Monitoring
8457084623
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
@@ -4884,7 +4884,7 @@ public CompletableFuture<ApiResponse<GetSBOMResponse>> getSBOMWithHttpInfoAsync(
48844884
}
48854885

48864886
/**
4887-
* Returns list of Secrets rules.
4887+
* Returns a list of Secrets rules.
48884888
*
48894889
* <p>See {@link #getSecretsRulesWithHttpInfo}.
48904890
*
@@ -4896,7 +4896,7 @@ public SecretRuleArray getSecretsRules() throws ApiException {
48964896
}
48974897

48984898
/**
4899-
* Returns list of Secrets rules.
4899+
* Returns a list of Secrets rules.
49004900
*
49014901
* <p>See {@link #getSecretsRulesWithHttpInfoAsync}.
49024902
*
@@ -4911,7 +4911,7 @@ public CompletableFuture<SecretRuleArray> getSecretsRulesAsync() {
49114911
}
49124912

49134913
/**
4914-
* Returns list of Secrets rules with ID, Pattern, Description, Priority, and SDS ID
4914+
* Returns a list of Secrets rules with ID, Pattern, Description, Priority, and SDS ID.
49154915
*
49164916
* @return ApiResponse&lt;SecretRuleArray&gt;
49174917
* @throws ApiException if fails to make API call
@@ -4958,7 +4958,7 @@ public ApiResponse<SecretRuleArray> getSecretsRulesWithHttpInfo() throws ApiExce
49584958
}
49594959

49604960
/**
4961-
* Returns list of Secrets rules.
4961+
* Returns a list of Secrets rules.
49624962
*
49634963
* <p>See {@link #getSecretsRulesWithHttpInfo}.
49644964
*
@@ -9694,6 +9694,7 @@ public static class ListVulnerabilitiesOptionalParameters {
96949694
private Boolean filterFixAvailable;
96959695
private String filterRepoDigests;
96969696
private String filterOrigin;
9697+
private Boolean filterRunningKernel;
96979698
private String filterAssetName;
96989699
private AssetType filterAssetType;
96999700
private String filterAssetVersionFirst;
@@ -10027,6 +10028,18 @@ public ListVulnerabilitiesOptionalParameters filterOrigin(String filterOrigin) {
1002710028
return this;
1002810029
}
1002910030

10031+
/**
10032+
* Set filterRunningKernel.
10033+
*
10034+
* @param filterRunningKernel Filter for whether the vulnerability affects a running kernel (for
10035+
* vulnerabilities related to a <code>Host</code> asset). (optional)
10036+
* @return ListVulnerabilitiesOptionalParameters
10037+
*/
10038+
public ListVulnerabilitiesOptionalParameters filterRunningKernel(Boolean filterRunningKernel) {
10039+
this.filterRunningKernel = filterRunningKernel;
10040+
return this;
10041+
}
10042+
1003010043
/**
1003110044
* Set filterAssetName.
1003210045
*
@@ -10436,6 +10449,7 @@ public ApiResponse<ListVulnerabilitiesResponse> listVulnerabilitiesWithHttpInfo(
1043610449
Boolean filterFixAvailable = parameters.filterFixAvailable;
1043710450
String filterRepoDigests = parameters.filterRepoDigests;
1043810451
String filterOrigin = parameters.filterOrigin;
10452+
Boolean filterRunningKernel = parameters.filterRunningKernel;
1043910453
String filterAssetName = parameters.filterAssetName;
1044010454
AssetType filterAssetType = parameters.filterAssetType;
1044110455
String filterAssetVersionFirst = parameters.filterAssetVersionFirst;
@@ -10511,6 +10525,8 @@ public ApiResponse<ListVulnerabilitiesResponse> listVulnerabilitiesWithHttpInfo(
1051110525
localVarQueryParams.addAll(
1051210526
apiClient.parameterToPairs("", "filter[repo_digests]", filterRepoDigests));
1051310527
localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[origin]", filterOrigin));
10528+
localVarQueryParams.addAll(
10529+
apiClient.parameterToPairs("", "filter[running_kernel]", filterRunningKernel));
1051410530
localVarQueryParams.addAll(
1051510531
apiClient.parameterToPairs("", "filter[asset.name]", filterAssetName));
1051610532
localVarQueryParams.addAll(
@@ -10622,6 +10638,7 @@ public ApiResponse<ListVulnerabilitiesResponse> listVulnerabilitiesWithHttpInfo(
1062210638
Boolean filterFixAvailable = parameters.filterFixAvailable;
1062310639
String filterRepoDigests = parameters.filterRepoDigests;
1062410640
String filterOrigin = parameters.filterOrigin;
10641+
Boolean filterRunningKernel = parameters.filterRunningKernel;
1062510642
String filterAssetName = parameters.filterAssetName;
1062610643
AssetType filterAssetType = parameters.filterAssetType;
1062710644
String filterAssetVersionFirst = parameters.filterAssetVersionFirst;
@@ -10697,6 +10714,8 @@ public ApiResponse<ListVulnerabilitiesResponse> listVulnerabilitiesWithHttpInfo(
1069710714
localVarQueryParams.addAll(
1069810715
apiClient.parameterToPairs("", "filter[repo_digests]", filterRepoDigests));
1069910716
localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[origin]", filterOrigin));
10717+
localVarQueryParams.addAll(
10718+
apiClient.parameterToPairs("", "filter[running_kernel]", filterRunningKernel));
1070010719
localVarQueryParams.addAll(
1070110720
apiClient.parameterToPairs("", "filter[asset.name]", filterAssetName));
1070210721
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)