Skip to content

Commit d050f1b

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit cb8281c of spec repo
1 parent 4fda9de commit d050f1b

8 files changed

Lines changed: 737 additions & 6 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49103,6 +49103,11 @@ components:
4910349103
name:
4910449104
description: Name of the permission.
4910549105
type: string
49106+
name_aliases:
49107+
description: List of alias names for the permission.
49108+
items:
49109+
type: string
49110+
type: array
4910649111
restricted:
4910749112
description: Whether or not the permission is restricted.
4910849113
type: boolean
@@ -54739,6 +54744,69 @@ components:
5473954744
type: string
5474054745
x-enum-varnames:
5474154746
- RULESET
54747+
RumCrossProductSampling:
54748+
description: 'Configuration for additional APM trace data retention for sessions
54749+
that match this retention filter.
54750+
54751+
When a session matches the filter and is retained (based on `sample_rate`),
54752+
you can configure
54753+
54754+
the percentage of retained sessions with ingested traces whose traces are
54755+
indexed.'
54756+
properties:
54757+
trace_enabled:
54758+
description: Indicates whether trace cross-product sampling is enabled.
54759+
If `false`, no traces are indexed regardless of `trace_sample_rate`.
54760+
example: true
54761+
type: boolean
54762+
trace_sample_rate:
54763+
description: 'The percentage (0-100) of retained sessions with ingested
54764+
traces whose traces are indexed.
54765+
54766+
For example, 25.0 means 25% of retained sessions with ingested traces
54767+
have their traces indexed.'
54768+
example: 25.0
54769+
format: double
54770+
maximum: 100
54771+
minimum: 0
54772+
type: number
54773+
type: object
54774+
RumCrossProductSamplingCreate:
54775+
description: Configuration for cross-product sampling when creating a retention
54776+
filter.
54777+
properties:
54778+
trace_enabled:
54779+
description: Indicates whether trace cross-product sampling is enabled.
54780+
example: true
54781+
type: boolean
54782+
trace_sample_rate:
54783+
description: The percentage (0-100) of retained sessions with ingested traces
54784+
whose traces are indexed.
54785+
example: 25.0
54786+
format: double
54787+
maximum: 100
54788+
minimum: 0
54789+
type: number
54790+
required:
54791+
- trace_sample_rate
54792+
type: object
54793+
RumCrossProductSamplingUpdate:
54794+
description: Configuration for cross-product sampling when updating a retention
54795+
filter. All fields are optional for partial updates.
54796+
properties:
54797+
trace_enabled:
54798+
description: Indicates whether trace cross-product sampling is enabled.
54799+
example: true
54800+
type: boolean
54801+
trace_sample_rate:
54802+
description: The percentage (0-100) of retained sessions with ingested traces
54803+
whose traces are indexed.
54804+
example: 25.0
54805+
format: double
54806+
maximum: 100
54807+
minimum: 0
54808+
type: number
54809+
type: object
5474254810
RumMetricCompute:
5474354811
description: The compute rule to compute the rum-based metric.
5474454812
properties:
@@ -55026,6 +55094,8 @@ components:
5502655094
RumRetentionFilterAttributes:
5502755095
description: The object describing attributes of a RUM retention filter.
5502855096
properties:
55097+
cross_product_sampling:
55098+
$ref: '#/components/schemas/RumCrossProductSampling'
5502955099
enabled:
5503055100
$ref: '#/components/schemas/RumRetentionFilterEnabled'
5503155101
event_type:
@@ -55040,6 +55110,8 @@ components:
5504055110
RumRetentionFilterCreateAttributes:
5504155111
description: The object describing attributes of a RUM retention filter to create.
5504255112
properties:
55113+
cross_product_sampling:
55114+
$ref: '#/components/schemas/RumCrossProductSamplingCreate'
5504355115
enabled:
5504455116
$ref: '#/components/schemas/RumRetentionFilterEnabled'
5504555117
event_type:
@@ -55141,6 +55213,8 @@ components:
5514155213
RumRetentionFilterUpdateAttributes:
5514255214
description: The object describing attributes of a RUM retention filter to update.
5514355215
properties:
55216+
cross_product_sampling:
55217+
$ref: '#/components/schemas/RumCrossProductSamplingUpdate'
5514455218
enabled:
5514555219
$ref: '#/components/schemas/RumRetentionFilterEnabled'
5514655220
event_type:

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

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
import com.fasterxml.jackson.annotation.JsonProperty;
1414
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
1515
import java.time.OffsetDateTime;
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

@@ -25,6 +27,7 @@
2527
PermissionAttributes.JSON_PROPERTY_DISPLAY_TYPE,
2628
PermissionAttributes.JSON_PROPERTY_GROUP_NAME,
2729
PermissionAttributes.JSON_PROPERTY_NAME,
30+
PermissionAttributes.JSON_PROPERTY_NAME_ALIASES,
2831
PermissionAttributes.JSON_PROPERTY_RESTRICTED
2932
})
3033
@jakarta.annotation.Generated(
@@ -49,6 +52,9 @@ public class PermissionAttributes {
4952
public static final String JSON_PROPERTY_NAME = "name";
5053
private String name;
5154

55+
public static final String JSON_PROPERTY_NAME_ALIASES = "name_aliases";
56+
private List<String> nameAliases = null;
57+
5258
public static final String JSON_PROPERTY_RESTRICTED = "restricted";
5359
private Boolean restricted;
5460

@@ -178,6 +184,35 @@ public void setName(String name) {
178184
this.name = name;
179185
}
180186

187+
public PermissionAttributes nameAliases(List<String> nameAliases) {
188+
this.nameAliases = nameAliases;
189+
return this;
190+
}
191+
192+
public PermissionAttributes addNameAliasesItem(String nameAliasesItem) {
193+
if (this.nameAliases == null) {
194+
this.nameAliases = new ArrayList<>();
195+
}
196+
this.nameAliases.add(nameAliasesItem);
197+
return this;
198+
}
199+
200+
/**
201+
* List of alias names for the permission.
202+
*
203+
* @return nameAliases
204+
*/
205+
@jakarta.annotation.Nullable
206+
@JsonProperty(JSON_PROPERTY_NAME_ALIASES)
207+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
208+
public List<String> getNameAliases() {
209+
return nameAliases;
210+
}
211+
212+
public void setNameAliases(List<String> nameAliases) {
213+
this.nameAliases = nameAliases;
214+
}
215+
181216
public PermissionAttributes restricted(Boolean restricted) {
182217
this.restricted = restricted;
183218
return this;
@@ -261,6 +296,7 @@ public boolean equals(Object o) {
261296
&& Objects.equals(this.displayType, permissionAttributes.displayType)
262297
&& Objects.equals(this.groupName, permissionAttributes.groupName)
263298
&& Objects.equals(this.name, permissionAttributes.name)
299+
&& Objects.equals(this.nameAliases, permissionAttributes.nameAliases)
264300
&& Objects.equals(this.restricted, permissionAttributes.restricted)
265301
&& Objects.equals(this.additionalProperties, permissionAttributes.additionalProperties);
266302
}
@@ -274,6 +310,7 @@ public int hashCode() {
274310
displayType,
275311
groupName,
276312
name,
313+
nameAliases,
277314
restricted,
278315
additionalProperties);
279316
}
@@ -288,6 +325,7 @@ public String toString() {
288325
sb.append(" displayType: ").append(toIndentedString(displayType)).append("\n");
289326
sb.append(" groupName: ").append(toIndentedString(groupName)).append("\n");
290327
sb.append(" name: ").append(toIndentedString(name)).append("\n");
328+
sb.append(" nameAliases: ").append(toIndentedString(nameAliases)).append("\n");
291329
sb.append(" restricted: ").append(toIndentedString(restricted)).append("\n");
292330
sb.append(" additionalProperties: ")
293331
.append(toIndentedString(additionalProperties))
Lines changed: 172 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,172 @@
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+
/**
20+
* Configuration for additional APM trace data retention for sessions that match this retention
21+
* filter. When a session matches the filter and is retained (based on <code>sample_rate</code>),
22+
* you can configure the percentage of retained sessions with ingested traces whose traces are
23+
* indexed.
24+
*/
25+
@JsonPropertyOrder({
26+
RumCrossProductSampling.JSON_PROPERTY_TRACE_ENABLED,
27+
RumCrossProductSampling.JSON_PROPERTY_TRACE_SAMPLE_RATE
28+
})
29+
@jakarta.annotation.Generated(
30+
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
31+
public class RumCrossProductSampling {
32+
@JsonIgnore public boolean unparsed = false;
33+
public static final String JSON_PROPERTY_TRACE_ENABLED = "trace_enabled";
34+
private Boolean traceEnabled;
35+
36+
public static final String JSON_PROPERTY_TRACE_SAMPLE_RATE = "trace_sample_rate";
37+
private Double traceSampleRate;
38+
39+
public RumCrossProductSampling traceEnabled(Boolean traceEnabled) {
40+
this.traceEnabled = traceEnabled;
41+
return this;
42+
}
43+
44+
/**
45+
* Indicates whether trace cross-product sampling is enabled. If <code>false</code>, no traces are
46+
* indexed regardless of <code>trace_sample_rate</code>.
47+
*
48+
* @return traceEnabled
49+
*/
50+
@jakarta.annotation.Nullable
51+
@JsonProperty(JSON_PROPERTY_TRACE_ENABLED)
52+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
53+
public Boolean getTraceEnabled() {
54+
return traceEnabled;
55+
}
56+
57+
public void setTraceEnabled(Boolean traceEnabled) {
58+
this.traceEnabled = traceEnabled;
59+
}
60+
61+
public RumCrossProductSampling traceSampleRate(Double traceSampleRate) {
62+
this.traceSampleRate = traceSampleRate;
63+
return this;
64+
}
65+
66+
/**
67+
* The percentage (0-100) of retained sessions with ingested traces whose traces are indexed. For
68+
* example, 25.0 means 25% of retained sessions with ingested traces have their traces indexed.
69+
* minimum: 0 maximum: 100
70+
*
71+
* @return traceSampleRate
72+
*/
73+
@jakarta.annotation.Nullable
74+
@JsonProperty(JSON_PROPERTY_TRACE_SAMPLE_RATE)
75+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
76+
public Double getTraceSampleRate() {
77+
return traceSampleRate;
78+
}
79+
80+
public void setTraceSampleRate(Double traceSampleRate) {
81+
this.traceSampleRate = traceSampleRate;
82+
}
83+
84+
/**
85+
* A container for additional, undeclared properties. This is a holder for any undeclared
86+
* properties as specified with the 'additionalProperties' keyword in the OAS document.
87+
*/
88+
private Map<String, Object> additionalProperties;
89+
90+
/**
91+
* Set the additional (undeclared) property with the specified name and value. If the property
92+
* does not already exist, create it otherwise replace it.
93+
*
94+
* @param key The arbitrary key to set
95+
* @param value The associated value
96+
* @return RumCrossProductSampling
97+
*/
98+
@JsonAnySetter
99+
public RumCrossProductSampling putAdditionalProperty(String key, Object value) {
100+
if (this.additionalProperties == null) {
101+
this.additionalProperties = new HashMap<String, Object>();
102+
}
103+
this.additionalProperties.put(key, value);
104+
return this;
105+
}
106+
107+
/**
108+
* Return the additional (undeclared) property.
109+
*
110+
* @return The additional properties
111+
*/
112+
@JsonAnyGetter
113+
public Map<String, Object> getAdditionalProperties() {
114+
return additionalProperties;
115+
}
116+
117+
/**
118+
* Return the additional (undeclared) property with the specified name.
119+
*
120+
* @param key The arbitrary key to get
121+
* @return The specific additional property for the given key
122+
*/
123+
public Object getAdditionalProperty(String key) {
124+
if (this.additionalProperties == null) {
125+
return null;
126+
}
127+
return this.additionalProperties.get(key);
128+
}
129+
130+
/** Return true if this RumCrossProductSampling object is equal to o. */
131+
@Override
132+
public boolean equals(Object o) {
133+
if (this == o) {
134+
return true;
135+
}
136+
if (o == null || getClass() != o.getClass()) {
137+
return false;
138+
}
139+
RumCrossProductSampling rumCrossProductSampling = (RumCrossProductSampling) o;
140+
return Objects.equals(this.traceEnabled, rumCrossProductSampling.traceEnabled)
141+
&& Objects.equals(this.traceSampleRate, rumCrossProductSampling.traceSampleRate)
142+
&& Objects.equals(this.additionalProperties, rumCrossProductSampling.additionalProperties);
143+
}
144+
145+
@Override
146+
public int hashCode() {
147+
return Objects.hash(traceEnabled, traceSampleRate, additionalProperties);
148+
}
149+
150+
@Override
151+
public String toString() {
152+
StringBuilder sb = new StringBuilder();
153+
sb.append("class RumCrossProductSampling {\n");
154+
sb.append(" traceEnabled: ").append(toIndentedString(traceEnabled)).append("\n");
155+
sb.append(" traceSampleRate: ").append(toIndentedString(traceSampleRate)).append("\n");
156+
sb.append(" additionalProperties: ")
157+
.append(toIndentedString(additionalProperties))
158+
.append("\n");
159+
sb.append('}');
160+
return sb.toString();
161+
}
162+
163+
/**
164+
* Convert the given object to string with each line indented by 4 spaces (except the first line).
165+
*/
166+
private String toIndentedString(Object o) {
167+
if (o == null) {
168+
return "null";
169+
}
170+
return o.toString().replace("\n", "\n ");
171+
}
172+
}

0 commit comments

Comments
 (0)