Skip to content

Commit f44661f

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 0cec205 of spec repo
1 parent e8a146c commit f44661f

File tree

8 files changed

+315
-16
lines changed

8 files changed

+315
-16
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40874,6 +40874,8 @@ components:
4087440874
type: integer
4087540875
type:
4087640876
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType'
40877+
when_full:
40878+
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull'
4087740879
type: object
4087840880
ObservabilityPipelineMemoryBufferSizeOptions:
4087940881
description: Options for configuring a memory buffer by queue length.
@@ -40885,6 +40887,8 @@ components:
4088540887
type: integer
4088640888
type:
4088740889
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType'
40890+
when_full:
40891+
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull'
4088840892
type: object
4088940893
ObservabilityPipelineMetadataEntry:
4089040894
description: A custom metadata entry.
@@ -49367,6 +49371,18 @@ components:
4936749371
description: The name of the role. The name is neither unique nor a stable
4936849372
identifier of the role.
4936949373
type: string
49374+
receives_permissions_from:
49375+
description: 'Managed role from which this role automatically receives new
49376+
permissions as Datadog introduces new products and features.
49377+
49378+
Specify one of the following managed roles: "Datadog Admin Role", "Datadog
49379+
Standard Role", or "Datadog Read Only Role".
49380+
49381+
If not specified or set to an empty array, the role does not automatically
49382+
receive permissions from any managed role.'
49383+
items:
49384+
type: string
49385+
type: array
4937049386
user_count:
4937149387
description: Number of users with that role.
4937249388
format: int64
@@ -49392,6 +49408,18 @@ components:
4939249408
description: Name of the new role that is cloned.
4939349409
example: cloned-role
4939449410
type: string
49411+
receives_permissions_from:
49412+
description: 'Managed role from which this role automatically receives new
49413+
permissions as Datadog introduces new products and features.
49414+
49415+
Specify one of the following managed roles: "Datadog Admin Role", "Datadog
49416+
Standard Role", or "Datadog Read Only Role".
49417+
49418+
If not specified or set to an empty array, the role does not automatically
49419+
receive permissions from any managed role.'
49420+
items:
49421+
type: string
49422+
type: array
4939549423
required:
4939649424
- name
4939749425
type: object
@@ -49420,6 +49448,18 @@ components:
4942049448
description: Name of the role.
4942149449
example: developers
4942249450
type: string
49451+
receives_permissions_from:
49452+
description: 'Managed role from which this role automatically receives new
49453+
permissions as Datadog introduces new products and features.
49454+
49455+
Specify one of the following managed roles: "Datadog Admin Role", "Datadog
49456+
Standard Role", or "Datadog Read Only Role".
49457+
49458+
If not specified or set to an empty array, the role does not automatically
49459+
receive permissions from any managed role.'
49460+
items:
49461+
type: string
49462+
type: array
4942349463
required:
4942449464
- name
4942549465
type: object
@@ -49541,6 +49581,18 @@ components:
4954149581
name:
4954249582
description: Name of the role.
4954349583
type: string
49584+
receives_permissions_from:
49585+
description: 'Managed role from which this role automatically receives new
49586+
permissions as Datadog introduces new products and features.
49587+
49588+
Specify one of the following managed roles: "Datadog Admin Role", "Datadog
49589+
Standard Role", or "Datadog Read Only Role".
49590+
49591+
If not specified or set to an empty array, the role does not automatically
49592+
receive permissions from any managed role.'
49593+
items:
49594+
type: string
49595+
type: array
4954449596
user_count:
4954549597
description: The user count.
4954649598
format: int32
@@ -103866,7 +103918,12 @@ tags:
103866103918

103867103919
read access on a specific log index to a role can be done in Datadog from the
103868103920

103869-
[Pipelines page](https://app.datadoghq.com/logs/pipelines).'
103921+
[Pipelines page](https://app.datadoghq.com/logs/pipelines).
103922+
103923+
103924+
Roles can also be managed in bulk through the Datadog UI, which provides
103925+
103926+
the capability to assign a single permission to multiple roles simultaneously.'
103870103927
name: Roles
103871103928
- description: Auto-generated tag Rum Audience Management
103872103929
name: Rum Audience Management

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

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
/** Options for configuring a memory buffer by byte size. */
2020
@JsonPropertyOrder({
2121
ObservabilityPipelineMemoryBufferOptions.JSON_PROPERTY_MAX_SIZE,
22-
ObservabilityPipelineMemoryBufferOptions.JSON_PROPERTY_TYPE
22+
ObservabilityPipelineMemoryBufferOptions.JSON_PROPERTY_TYPE,
23+
ObservabilityPipelineMemoryBufferOptions.JSON_PROPERTY_WHEN_FULL
2324
})
2425
@jakarta.annotation.Generated(
2526
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
@@ -32,6 +33,10 @@ public class ObservabilityPipelineMemoryBufferOptions {
3233
private ObservabilityPipelineBufferOptionsMemoryType type =
3334
ObservabilityPipelineBufferOptionsMemoryType.MEMORY;
3435

36+
public static final String JSON_PROPERTY_WHEN_FULL = "when_full";
37+
private ObservabilityPipelineBufferOptionsWhenFull whenFull =
38+
ObservabilityPipelineBufferOptionsWhenFull.BLOCK;
39+
3540
public ObservabilityPipelineMemoryBufferOptions maxSize(Long maxSize) {
3641
this.maxSize = maxSize;
3742
return this;
@@ -79,6 +84,32 @@ public void setType(ObservabilityPipelineBufferOptionsMemoryType type) {
7984
this.type = type;
8085
}
8186

87+
public ObservabilityPipelineMemoryBufferOptions whenFull(
88+
ObservabilityPipelineBufferOptionsWhenFull whenFull) {
89+
this.whenFull = whenFull;
90+
this.unparsed |= !whenFull.isValid();
91+
return this;
92+
}
93+
94+
/**
95+
* Behavior when the buffer is full (block and stop accepting new events, or drop new events)
96+
*
97+
* @return whenFull
98+
*/
99+
@jakarta.annotation.Nullable
100+
@JsonProperty(JSON_PROPERTY_WHEN_FULL)
101+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
102+
public ObservabilityPipelineBufferOptionsWhenFull getWhenFull() {
103+
return whenFull;
104+
}
105+
106+
public void setWhenFull(ObservabilityPipelineBufferOptionsWhenFull whenFull) {
107+
if (!whenFull.isValid()) {
108+
this.unparsed = true;
109+
}
110+
this.whenFull = whenFull;
111+
}
112+
82113
/**
83114
* A container for additional, undeclared properties. This is a holder for any undeclared
84115
* properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -138,14 +169,15 @@ public boolean equals(Object o) {
138169
(ObservabilityPipelineMemoryBufferOptions) o;
139170
return Objects.equals(this.maxSize, observabilityPipelineMemoryBufferOptions.maxSize)
140171
&& Objects.equals(this.type, observabilityPipelineMemoryBufferOptions.type)
172+
&& Objects.equals(this.whenFull, observabilityPipelineMemoryBufferOptions.whenFull)
141173
&& Objects.equals(
142174
this.additionalProperties,
143175
observabilityPipelineMemoryBufferOptions.additionalProperties);
144176
}
145177

146178
@Override
147179
public int hashCode() {
148-
return Objects.hash(maxSize, type, additionalProperties);
180+
return Objects.hash(maxSize, type, whenFull, additionalProperties);
149181
}
150182

151183
@Override
@@ -154,6 +186,7 @@ public String toString() {
154186
sb.append("class ObservabilityPipelineMemoryBufferOptions {\n");
155187
sb.append(" maxSize: ").append(toIndentedString(maxSize)).append("\n");
156188
sb.append(" type: ").append(toIndentedString(type)).append("\n");
189+
sb.append(" whenFull: ").append(toIndentedString(whenFull)).append("\n");
157190
sb.append(" additionalProperties: ")
158191
.append(toIndentedString(additionalProperties))
159192
.append("\n");

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

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
/** Options for configuring a memory buffer by queue length. */
2020
@JsonPropertyOrder({
2121
ObservabilityPipelineMemoryBufferSizeOptions.JSON_PROPERTY_MAX_EVENTS,
22-
ObservabilityPipelineMemoryBufferSizeOptions.JSON_PROPERTY_TYPE
22+
ObservabilityPipelineMemoryBufferSizeOptions.JSON_PROPERTY_TYPE,
23+
ObservabilityPipelineMemoryBufferSizeOptions.JSON_PROPERTY_WHEN_FULL
2324
})
2425
@jakarta.annotation.Generated(
2526
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
@@ -32,6 +33,10 @@ public class ObservabilityPipelineMemoryBufferSizeOptions {
3233
private ObservabilityPipelineBufferOptionsMemoryType type =
3334
ObservabilityPipelineBufferOptionsMemoryType.MEMORY;
3435

36+
public static final String JSON_PROPERTY_WHEN_FULL = "when_full";
37+
private ObservabilityPipelineBufferOptionsWhenFull whenFull =
38+
ObservabilityPipelineBufferOptionsWhenFull.BLOCK;
39+
3540
public ObservabilityPipelineMemoryBufferSizeOptions maxEvents(Long maxEvents) {
3641
this.maxEvents = maxEvents;
3742
return this;
@@ -79,6 +84,32 @@ public void setType(ObservabilityPipelineBufferOptionsMemoryType type) {
7984
this.type = type;
8085
}
8186

87+
public ObservabilityPipelineMemoryBufferSizeOptions whenFull(
88+
ObservabilityPipelineBufferOptionsWhenFull whenFull) {
89+
this.whenFull = whenFull;
90+
this.unparsed |= !whenFull.isValid();
91+
return this;
92+
}
93+
94+
/**
95+
* Behavior when the buffer is full (block and stop accepting new events, or drop new events)
96+
*
97+
* @return whenFull
98+
*/
99+
@jakarta.annotation.Nullable
100+
@JsonProperty(JSON_PROPERTY_WHEN_FULL)
101+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
102+
public ObservabilityPipelineBufferOptionsWhenFull getWhenFull() {
103+
return whenFull;
104+
}
105+
106+
public void setWhenFull(ObservabilityPipelineBufferOptionsWhenFull whenFull) {
107+
if (!whenFull.isValid()) {
108+
this.unparsed = true;
109+
}
110+
this.whenFull = whenFull;
111+
}
112+
82113
/**
83114
* A container for additional, undeclared properties. This is a holder for any undeclared
84115
* properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -139,14 +170,15 @@ public boolean equals(Object o) {
139170
(ObservabilityPipelineMemoryBufferSizeOptions) o;
140171
return Objects.equals(this.maxEvents, observabilityPipelineMemoryBufferSizeOptions.maxEvents)
141172
&& Objects.equals(this.type, observabilityPipelineMemoryBufferSizeOptions.type)
173+
&& Objects.equals(this.whenFull, observabilityPipelineMemoryBufferSizeOptions.whenFull)
142174
&& Objects.equals(
143175
this.additionalProperties,
144176
observabilityPipelineMemoryBufferSizeOptions.additionalProperties);
145177
}
146178

147179
@Override
148180
public int hashCode() {
149-
return Objects.hash(maxEvents, type, additionalProperties);
181+
return Objects.hash(maxEvents, type, whenFull, additionalProperties);
150182
}
151183

152184
@Override
@@ -155,6 +187,7 @@ public String toString() {
155187
sb.append("class ObservabilityPipelineMemoryBufferSizeOptions {\n");
156188
sb.append(" maxEvents: ").append(toIndentedString(maxEvents)).append("\n");
157189
sb.append(" type: ").append(toIndentedString(type)).append("\n");
190+
sb.append(" whenFull: ").append(toIndentedString(whenFull)).append("\n");
158191
sb.append(" additionalProperties: ")
159192
.append(toIndentedString(additionalProperties))
160193
.append("\n");

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

Lines changed: 44 additions & 1 deletion
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

@@ -22,6 +24,7 @@
2224
RoleAttributes.JSON_PROPERTY_CREATED_AT,
2325
RoleAttributes.JSON_PROPERTY_MODIFIED_AT,
2426
RoleAttributes.JSON_PROPERTY_NAME,
27+
RoleAttributes.JSON_PROPERTY_RECEIVES_PERMISSIONS_FROM,
2528
RoleAttributes.JSON_PROPERTY_USER_COUNT
2629
})
2730
@jakarta.annotation.Generated(
@@ -37,6 +40,9 @@ public class RoleAttributes {
3740
public static final String JSON_PROPERTY_NAME = "name";
3841
private String name;
3942

43+
public static final String JSON_PROPERTY_RECEIVES_PERMISSIONS_FROM = "receives_permissions_from";
44+
private List<String> receivesPermissionsFrom = null;
45+
4046
public static final String JSON_PROPERTY_USER_COUNT = "user_count";
4147
private Long userCount;
4248

@@ -85,6 +91,38 @@ public void setName(String name) {
8591
this.name = name;
8692
}
8793

94+
public RoleAttributes receivesPermissionsFrom(List<String> receivesPermissionsFrom) {
95+
this.receivesPermissionsFrom = receivesPermissionsFrom;
96+
return this;
97+
}
98+
99+
public RoleAttributes addReceivesPermissionsFromItem(String receivesPermissionsFromItem) {
100+
if (this.receivesPermissionsFrom == null) {
101+
this.receivesPermissionsFrom = new ArrayList<>();
102+
}
103+
this.receivesPermissionsFrom.add(receivesPermissionsFromItem);
104+
return this;
105+
}
106+
107+
/**
108+
* Managed role from which this role automatically receives new permissions as Datadog introduces
109+
* new products and features. Specify one of the following managed roles: "Datadog Admin Role",
110+
* "Datadog Standard Role", or "Datadog Read Only Role". If not specified or set to an empty
111+
* array, the role does not automatically receive permissions from any managed role.
112+
*
113+
* @return receivesPermissionsFrom
114+
*/
115+
@jakarta.annotation.Nullable
116+
@JsonProperty(JSON_PROPERTY_RECEIVES_PERMISSIONS_FROM)
117+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
118+
public List<String> getReceivesPermissionsFrom() {
119+
return receivesPermissionsFrom;
120+
}
121+
122+
public void setReceivesPermissionsFrom(List<String> receivesPermissionsFrom) {
123+
this.receivesPermissionsFrom = receivesPermissionsFrom;
124+
}
125+
88126
/**
89127
* Number of users with that role.
90128
*
@@ -156,13 +194,15 @@ public boolean equals(Object o) {
156194
return Objects.equals(this.createdAt, roleAttributes.createdAt)
157195
&& Objects.equals(this.modifiedAt, roleAttributes.modifiedAt)
158196
&& Objects.equals(this.name, roleAttributes.name)
197+
&& Objects.equals(this.receivesPermissionsFrom, roleAttributes.receivesPermissionsFrom)
159198
&& Objects.equals(this.userCount, roleAttributes.userCount)
160199
&& Objects.equals(this.additionalProperties, roleAttributes.additionalProperties);
161200
}
162201

163202
@Override
164203
public int hashCode() {
165-
return Objects.hash(createdAt, modifiedAt, name, userCount, additionalProperties);
204+
return Objects.hash(
205+
createdAt, modifiedAt, name, receivesPermissionsFrom, userCount, additionalProperties);
166206
}
167207

168208
@Override
@@ -172,6 +212,9 @@ public String toString() {
172212
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
173213
sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n");
174214
sb.append(" name: ").append(toIndentedString(name)).append("\n");
215+
sb.append(" receivesPermissionsFrom: ")
216+
.append(toIndentedString(receivesPermissionsFrom))
217+
.append("\n");
175218
sb.append(" userCount: ").append(toIndentedString(userCount)).append("\n");
176219
sb.append(" additionalProperties: ")
177220
.append(toIndentedString(additionalProperties))

0 commit comments

Comments
 (0)