Skip to content

Commit e8a146c

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Workflow Automation - Add allowedValues to InputSchemaParameters (#3480)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 5a89c40 commit e8a146c

File tree

4 files changed

+73
-76
lines changed

4 files changed

+73
-76
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31064,6 +31064,11 @@ components:
3106431064
InputSchemaParameters:
3106531065
description: The definition of `InputSchemaParameters` object.
3106631066
properties:
31067+
allowExtraValues:
31068+
description: The `InputSchemaParameters` `allowExtraValues`.
31069+
type: boolean
31070+
allowedValues:
31071+
description: The `InputSchemaParameters` `allowedValues`.
3106731072
defaultValue:
3106831073
description: The `InputSchemaParameters` `defaultValue`.
3106931074
description:
@@ -40869,8 +40874,6 @@ components:
4086940874
type: integer
4087040875
type:
4087140876
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType'
40872-
when_full:
40873-
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull'
4087440877
type: object
4087540878
ObservabilityPipelineMemoryBufferSizeOptions:
4087640879
description: Options for configuring a memory buffer by queue length.
@@ -40882,8 +40885,6 @@ components:
4088240885
type: integer
4088340886
type:
4088440887
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType'
40885-
when_full:
40886-
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull'
4088740888
type: object
4088840889
ObservabilityPipelineMetadataEntry:
4088940890
description: A custom metadata entry.

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

Lines changed: 64 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
/** The definition of <code>InputSchemaParameters</code> object. */
2121
@JsonPropertyOrder({
22+
InputSchemaParameters.JSON_PROPERTY_ALLOW_EXTRA_VALUES,
23+
InputSchemaParameters.JSON_PROPERTY_ALLOWED_VALUES,
2224
InputSchemaParameters.JSON_PROPERTY_DEFAULT_VALUE,
2325
InputSchemaParameters.JSON_PROPERTY_DESCRIPTION,
2426
InputSchemaParameters.JSON_PROPERTY_LABEL,
@@ -29,6 +31,12 @@
2931
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
3032
public class InputSchemaParameters {
3133
@JsonIgnore public boolean unparsed = false;
34+
public static final String JSON_PROPERTY_ALLOW_EXTRA_VALUES = "allowExtraValues";
35+
private Boolean allowExtraValues;
36+
37+
public static final String JSON_PROPERTY_ALLOWED_VALUES = "allowedValues";
38+
private Object allowedValues = null;
39+
3240
public static final String JSON_PROPERTY_DEFAULT_VALUE = "defaultValue";
3341
private Object defaultValue = null;
3442

@@ -55,6 +63,48 @@ public InputSchemaParameters(
5563
this.unparsed |= !type.isValid();
5664
}
5765

66+
public InputSchemaParameters allowExtraValues(Boolean allowExtraValues) {
67+
this.allowExtraValues = allowExtraValues;
68+
return this;
69+
}
70+
71+
/**
72+
* The <code>InputSchemaParameters</code> <code>allowExtraValues</code>.
73+
*
74+
* @return allowExtraValues
75+
*/
76+
@jakarta.annotation.Nullable
77+
@JsonProperty(JSON_PROPERTY_ALLOW_EXTRA_VALUES)
78+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
79+
public Boolean getAllowExtraValues() {
80+
return allowExtraValues;
81+
}
82+
83+
public void setAllowExtraValues(Boolean allowExtraValues) {
84+
this.allowExtraValues = allowExtraValues;
85+
}
86+
87+
public InputSchemaParameters allowedValues(Object allowedValues) {
88+
this.allowedValues = allowedValues;
89+
return this;
90+
}
91+
92+
/**
93+
* The <code>InputSchemaParameters</code> <code>allowedValues</code>.
94+
*
95+
* @return allowedValues
96+
*/
97+
@jakarta.annotation.Nullable
98+
@JsonProperty(JSON_PROPERTY_ALLOWED_VALUES)
99+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
100+
public Object getAllowedValues() {
101+
return allowedValues;
102+
}
103+
104+
public void setAllowedValues(Object allowedValues) {
105+
this.allowedValues = allowedValues;
106+
}
107+
58108
public InputSchemaParameters defaultValue(Object defaultValue) {
59109
this.defaultValue = defaultValue;
60110
return this;
@@ -218,7 +268,9 @@ public boolean equals(Object o) {
218268
return false;
219269
}
220270
InputSchemaParameters inputSchemaParameters = (InputSchemaParameters) o;
221-
return Objects.equals(this.defaultValue, inputSchemaParameters.defaultValue)
271+
return Objects.equals(this.allowExtraValues, inputSchemaParameters.allowExtraValues)
272+
&& Objects.equals(this.allowedValues, inputSchemaParameters.allowedValues)
273+
&& Objects.equals(this.defaultValue, inputSchemaParameters.defaultValue)
222274
&& Objects.equals(this.description, inputSchemaParameters.description)
223275
&& Objects.equals(this.label, inputSchemaParameters.label)
224276
&& Objects.equals(this.name, inputSchemaParameters.name)
@@ -228,13 +280,23 @@ public boolean equals(Object o) {
228280

229281
@Override
230282
public int hashCode() {
231-
return Objects.hash(defaultValue, description, label, name, type, additionalProperties);
283+
return Objects.hash(
284+
allowExtraValues,
285+
allowedValues,
286+
defaultValue,
287+
description,
288+
label,
289+
name,
290+
type,
291+
additionalProperties);
232292
}
233293

234294
@Override
235295
public String toString() {
236296
StringBuilder sb = new StringBuilder();
237297
sb.append("class InputSchemaParameters {\n");
298+
sb.append(" allowExtraValues: ").append(toIndentedString(allowExtraValues)).append("\n");
299+
sb.append(" allowedValues: ").append(toIndentedString(allowedValues)).append("\n");
238300
sb.append(" defaultValue: ").append(toIndentedString(defaultValue)).append("\n");
239301
sb.append(" description: ").append(toIndentedString(description)).append("\n");
240302
sb.append(" label: ").append(toIndentedString(label)).append("\n");

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

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

36-
public static final String JSON_PROPERTY_WHEN_FULL = "when_full";
37-
private ObservabilityPipelineBufferOptionsWhenFull whenFull =
38-
ObservabilityPipelineBufferOptionsWhenFull.BLOCK;
39-
4035
public ObservabilityPipelineMemoryBufferOptions maxSize(Long maxSize) {
4136
this.maxSize = maxSize;
4237
return this;
@@ -84,32 +79,6 @@ public void setType(ObservabilityPipelineBufferOptionsMemoryType type) {
8479
this.type = type;
8580
}
8681

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-
11382
/**
11483
* A container for additional, undeclared properties. This is a holder for any undeclared
11584
* properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -169,15 +138,14 @@ public boolean equals(Object o) {
169138
(ObservabilityPipelineMemoryBufferOptions) o;
170139
return Objects.equals(this.maxSize, observabilityPipelineMemoryBufferOptions.maxSize)
171140
&& Objects.equals(this.type, observabilityPipelineMemoryBufferOptions.type)
172-
&& Objects.equals(this.whenFull, observabilityPipelineMemoryBufferOptions.whenFull)
173141
&& Objects.equals(
174142
this.additionalProperties,
175143
observabilityPipelineMemoryBufferOptions.additionalProperties);
176144
}
177145

178146
@Override
179147
public int hashCode() {
180-
return Objects.hash(maxSize, type, whenFull, additionalProperties);
148+
return Objects.hash(maxSize, type, additionalProperties);
181149
}
182150

183151
@Override
@@ -186,7 +154,6 @@ public String toString() {
186154
sb.append("class ObservabilityPipelineMemoryBufferOptions {\n");
187155
sb.append(" maxSize: ").append(toIndentedString(maxSize)).append("\n");
188156
sb.append(" type: ").append(toIndentedString(type)).append("\n");
189-
sb.append(" whenFull: ").append(toIndentedString(whenFull)).append("\n");
190157
sb.append(" additionalProperties: ")
191158
.append(toIndentedString(additionalProperties))
192159
.append("\n");

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

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

36-
public static final String JSON_PROPERTY_WHEN_FULL = "when_full";
37-
private ObservabilityPipelineBufferOptionsWhenFull whenFull =
38-
ObservabilityPipelineBufferOptionsWhenFull.BLOCK;
39-
4035
public ObservabilityPipelineMemoryBufferSizeOptions maxEvents(Long maxEvents) {
4136
this.maxEvents = maxEvents;
4237
return this;
@@ -84,32 +79,6 @@ public void setType(ObservabilityPipelineBufferOptionsMemoryType type) {
8479
this.type = type;
8580
}
8681

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-
11382
/**
11483
* A container for additional, undeclared properties. This is a holder for any undeclared
11584
* properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -170,15 +139,14 @@ public boolean equals(Object o) {
170139
(ObservabilityPipelineMemoryBufferSizeOptions) o;
171140
return Objects.equals(this.maxEvents, observabilityPipelineMemoryBufferSizeOptions.maxEvents)
172141
&& Objects.equals(this.type, observabilityPipelineMemoryBufferSizeOptions.type)
173-
&& Objects.equals(this.whenFull, observabilityPipelineMemoryBufferSizeOptions.whenFull)
174142
&& Objects.equals(
175143
this.additionalProperties,
176144
observabilityPipelineMemoryBufferSizeOptions.additionalProperties);
177145
}
178146

179147
@Override
180148
public int hashCode() {
181-
return Objects.hash(maxEvents, type, whenFull, additionalProperties);
149+
return Objects.hash(maxEvents, type, additionalProperties);
182150
}
183151

184152
@Override
@@ -187,7 +155,6 @@ public String toString() {
187155
sb.append("class ObservabilityPipelineMemoryBufferSizeOptions {\n");
188156
sb.append(" maxEvents: ").append(toIndentedString(maxEvents)).append("\n");
189157
sb.append(" type: ").append(toIndentedString(type)).append("\n");
190-
sb.append(" whenFull: ").append(toIndentedString(whenFull)).append("\n");
191158
sb.append(" additionalProperties: ")
192159
.append(toIndentedString(additionalProperties))
193160
.append("\n");

0 commit comments

Comments
 (0)