Skip to content

Commit f047baf

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit b1a1c000 of spec repo (#2893)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 0714d17 commit f047baf

26 files changed

+369
-139
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-06-17 14:55:54.549540",
8-
"spec_repo_commit": "b359fdcc"
7+
"regenerated": "2025-06-17 18:21:58.620175",
8+
"spec_repo_commit": "b1a1c000"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-17 14:55:54.565207",
13-
"spec_repo_commit": "b359fdcc"
12+
"regenerated": "2025-06-17 18:21:58.636299",
13+
"spec_repo_commit": "b1a1c000"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35002,6 +35002,11 @@ components:
3500235002
items:
3500335003
$ref: '#/components/schemas/SensitiveDataScannerProduct'
3500435004
type: array
35005+
samplings:
35006+
description: List of sampling rates per product type.
35007+
items:
35008+
$ref: '#/components/schemas/SensitiveDataScannerSamplings'
35009+
type: array
3500535010
type: object
3500635011
SensitiveDataScannerGroupCreate:
3500735012
description: Data related to the creation of a group.
@@ -35433,6 +35438,19 @@ components:
3543335438
meta:
3543435439
$ref: '#/components/schemas/SensitiveDataScannerMetaVersionOnly'
3543535440
type: object
35441+
SensitiveDataScannerSamplings:
35442+
description: Sampling configurations for the Scanning Group.
35443+
properties:
35444+
product:
35445+
$ref: '#/components/schemas/SensitiveDataScannerProduct'
35446+
rate:
35447+
description: Rate at which data in product type will be scanned, as a percentage.
35448+
example: 100.0
35449+
format: double
35450+
maximum: 100.0
35451+
minimum: 0.0
35452+
type: number
35453+
type: object
3543635454
SensitiveDataScannerStandardPattern:
3543735455
description: Data containing the standard pattern id.
3543835456
properties:

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

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
SensitiveDataScannerGroupAttributes.JSON_PROPERTY_FILTER,
2525
SensitiveDataScannerGroupAttributes.JSON_PROPERTY_IS_ENABLED,
2626
SensitiveDataScannerGroupAttributes.JSON_PROPERTY_NAME,
27-
SensitiveDataScannerGroupAttributes.JSON_PROPERTY_PRODUCT_LIST
27+
SensitiveDataScannerGroupAttributes.JSON_PROPERTY_PRODUCT_LIST,
28+
SensitiveDataScannerGroupAttributes.JSON_PROPERTY_SAMPLINGS
2829
})
2930
@jakarta.annotation.Generated(
3031
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
@@ -45,6 +46,9 @@ public class SensitiveDataScannerGroupAttributes {
4546
public static final String JSON_PROPERTY_PRODUCT_LIST = "product_list";
4647
private List<SensitiveDataScannerProduct> productList = null;
4748

49+
public static final String JSON_PROPERTY_SAMPLINGS = "samplings";
50+
private List<SensitiveDataScannerSamplings> samplings = null;
51+
4852
public SensitiveDataScannerGroupAttributes description(String description) {
4953
this.description = description;
5054
return this;
@@ -162,6 +166,41 @@ public void setProductList(List<SensitiveDataScannerProduct> productList) {
162166
this.productList = productList;
163167
}
164168

169+
public SensitiveDataScannerGroupAttributes samplings(
170+
List<SensitiveDataScannerSamplings> samplings) {
171+
this.samplings = samplings;
172+
for (SensitiveDataScannerSamplings item : samplings) {
173+
this.unparsed |= item.unparsed;
174+
}
175+
return this;
176+
}
177+
178+
public SensitiveDataScannerGroupAttributes addSamplingsItem(
179+
SensitiveDataScannerSamplings samplingsItem) {
180+
if (this.samplings == null) {
181+
this.samplings = new ArrayList<>();
182+
}
183+
this.samplings.add(samplingsItem);
184+
this.unparsed |= samplingsItem.unparsed;
185+
return this;
186+
}
187+
188+
/**
189+
* List of sampling rates per product type.
190+
*
191+
* @return samplings
192+
*/
193+
@jakarta.annotation.Nullable
194+
@JsonProperty(JSON_PROPERTY_SAMPLINGS)
195+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
196+
public List<SensitiveDataScannerSamplings> getSamplings() {
197+
return samplings;
198+
}
199+
200+
public void setSamplings(List<SensitiveDataScannerSamplings> samplings) {
201+
this.samplings = samplings;
202+
}
203+
165204
/**
166205
* A container for additional, undeclared properties. This is a holder for any undeclared
167206
* properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -224,13 +263,15 @@ public boolean equals(Object o) {
224263
&& Objects.equals(this.isEnabled, sensitiveDataScannerGroupAttributes.isEnabled)
225264
&& Objects.equals(this.name, sensitiveDataScannerGroupAttributes.name)
226265
&& Objects.equals(this.productList, sensitiveDataScannerGroupAttributes.productList)
266+
&& Objects.equals(this.samplings, sensitiveDataScannerGroupAttributes.samplings)
227267
&& Objects.equals(
228268
this.additionalProperties, sensitiveDataScannerGroupAttributes.additionalProperties);
229269
}
230270

231271
@Override
232272
public int hashCode() {
233-
return Objects.hash(description, filter, isEnabled, name, productList, additionalProperties);
273+
return Objects.hash(
274+
description, filter, isEnabled, name, productList, samplings, additionalProperties);
234275
}
235276

236277
@Override
@@ -242,6 +283,7 @@ public String toString() {
242283
sb.append(" isEnabled: ").append(toIndentedString(isEnabled)).append("\n");
243284
sb.append(" name: ").append(toIndentedString(name)).append("\n");
244285
sb.append(" productList: ").append(toIndentedString(productList)).append("\n");
286+
sb.append(" samplings: ").append(toIndentedString(samplings)).append("\n");
245287
sb.append(" additionalProperties: ")
246288
.append(toIndentedString(additionalProperties))
247289
.append("\n");
Lines changed: 170 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,170 @@
1+
/*
2+
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
3+
* This product includes software developed at Datadog (https://www.datadoghq.com/).
4+
* Copyright 2019-Present Datadog, Inc.
5+
*/
6+
7+
package com.datadog.api.client.v2.model;
8+
9+
import com.fasterxml.jackson.annotation.JsonAnyGetter;
10+
import com.fasterxml.jackson.annotation.JsonAnySetter;
11+
import com.fasterxml.jackson.annotation.JsonIgnore;
12+
import com.fasterxml.jackson.annotation.JsonInclude;
13+
import com.fasterxml.jackson.annotation.JsonProperty;
14+
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
15+
import java.util.HashMap;
16+
import java.util.Map;
17+
import java.util.Objects;
18+
19+
/** Sampling configurations for the Scanning Group. */
20+
@JsonPropertyOrder({
21+
SensitiveDataScannerSamplings.JSON_PROPERTY_PRODUCT,
22+
SensitiveDataScannerSamplings.JSON_PROPERTY_RATE
23+
})
24+
@jakarta.annotation.Generated(
25+
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
26+
public class SensitiveDataScannerSamplings {
27+
@JsonIgnore public boolean unparsed = false;
28+
public static final String JSON_PROPERTY_PRODUCT = "product";
29+
private SensitiveDataScannerProduct product = SensitiveDataScannerProduct.LOGS;
30+
31+
public static final String JSON_PROPERTY_RATE = "rate";
32+
private Double rate;
33+
34+
public SensitiveDataScannerSamplings product(SensitiveDataScannerProduct product) {
35+
this.product = product;
36+
this.unparsed |= !product.isValid();
37+
return this;
38+
}
39+
40+
/**
41+
* Datadog product onto which Sensitive Data Scanner can be activated.
42+
*
43+
* @return product
44+
*/
45+
@jakarta.annotation.Nullable
46+
@JsonProperty(JSON_PROPERTY_PRODUCT)
47+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
48+
public SensitiveDataScannerProduct getProduct() {
49+
return product;
50+
}
51+
52+
public void setProduct(SensitiveDataScannerProduct product) {
53+
if (!product.isValid()) {
54+
this.unparsed = true;
55+
}
56+
this.product = product;
57+
}
58+
59+
public SensitiveDataScannerSamplings rate(Double rate) {
60+
this.rate = rate;
61+
return this;
62+
}
63+
64+
/**
65+
* Rate at which data in product type will be scanned, as a percentage. minimum: 0.0 maximum:
66+
* 100.0
67+
*
68+
* @return rate
69+
*/
70+
@jakarta.annotation.Nullable
71+
@JsonProperty(JSON_PROPERTY_RATE)
72+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
73+
public Double getRate() {
74+
return rate;
75+
}
76+
77+
public void setRate(Double rate) {
78+
this.rate = rate;
79+
}
80+
81+
/**
82+
* A container for additional, undeclared properties. This is a holder for any undeclared
83+
* properties as specified with the 'additionalProperties' keyword in the OAS document.
84+
*/
85+
private Map<String, Object> additionalProperties;
86+
87+
/**
88+
* Set the additional (undeclared) property with the specified name and value. If the property
89+
* does not already exist, create it otherwise replace it.
90+
*
91+
* @param key The arbitrary key to set
92+
* @param value The associated value
93+
* @return SensitiveDataScannerSamplings
94+
*/
95+
@JsonAnySetter
96+
public SensitiveDataScannerSamplings putAdditionalProperty(String key, Object value) {
97+
if (this.additionalProperties == null) {
98+
this.additionalProperties = new HashMap<String, Object>();
99+
}
100+
this.additionalProperties.put(key, value);
101+
return this;
102+
}
103+
104+
/**
105+
* Return the additional (undeclared) property.
106+
*
107+
* @return The additional properties
108+
*/
109+
@JsonAnyGetter
110+
public Map<String, Object> getAdditionalProperties() {
111+
return additionalProperties;
112+
}
113+
114+
/**
115+
* Return the additional (undeclared) property with the specified name.
116+
*
117+
* @param key The arbitrary key to get
118+
* @return The specific additional property for the given key
119+
*/
120+
public Object getAdditionalProperty(String key) {
121+
if (this.additionalProperties == null) {
122+
return null;
123+
}
124+
return this.additionalProperties.get(key);
125+
}
126+
127+
/** Return true if this SensitiveDataScannerSamplings object is equal to o. */
128+
@Override
129+
public boolean equals(Object o) {
130+
if (this == o) {
131+
return true;
132+
}
133+
if (o == null || getClass() != o.getClass()) {
134+
return false;
135+
}
136+
SensitiveDataScannerSamplings sensitiveDataScannerSamplings = (SensitiveDataScannerSamplings) o;
137+
return Objects.equals(this.product, sensitiveDataScannerSamplings.product)
138+
&& Objects.equals(this.rate, sensitiveDataScannerSamplings.rate)
139+
&& Objects.equals(
140+
this.additionalProperties, sensitiveDataScannerSamplings.additionalProperties);
141+
}
142+
143+
@Override
144+
public int hashCode() {
145+
return Objects.hash(product, rate, additionalProperties);
146+
}
147+
148+
@Override
149+
public String toString() {
150+
StringBuilder sb = new StringBuilder();
151+
sb.append("class SensitiveDataScannerSamplings {\n");
152+
sb.append(" product: ").append(toIndentedString(product)).append("\n");
153+
sb.append(" rate: ").append(toIndentedString(rate)).append("\n");
154+
sb.append(" additionalProperties: ")
155+
.append(toIndentedString(additionalProperties))
156+
.append("\n");
157+
sb.append('}');
158+
return sb.toString();
159+
}
160+
161+
/**
162+
* Convert the given object to string with each line indented by 4 spaces (except the first line).
163+
*/
164+
private String toIndentedString(Object o) {
165+
if (o == null) {
166+
return "null";
167+
}
168+
return o.toString().replace("\n", "\n ");
169+
}
170+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022-12-15T14:50:52.745Z
1+
2025-05-30T17:17:05.785Z

src/test/resources/cassettes/features/v2/Create_Scanning_Rule_returns_Bad_Request_response.json

Lines changed: 9 additions & 9 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-01-04T13:51:03.802Z
1+
2025-05-30T17:17:07.743Z

src/test/resources/cassettes/features/v2/Create_Scanning_Rule_returns_OK_response.json

Lines changed: 13 additions & 13 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022-12-09T09:52:52.562Z
1+
2025-05-30T17:17:09.412Z

src/test/resources/cassettes/features/v2/Delete_Scanning_Group_returns_OK_response.json

Lines changed: 10 additions & 10 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)