Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31064,6 +31064,11 @@ components:
InputSchemaParameters:
description: The definition of `InputSchemaParameters` object.
properties:
allowExtraValues:
description: The `InputSchemaParameters` `allowExtraValues`.
type: boolean
allowedValues:
description: The `InputSchemaParameters` `allowedValues`.
defaultValue:
description: The `InputSchemaParameters` `defaultValue`.
description:
Expand Down Expand Up @@ -40869,8 +40874,6 @@ components:
type: integer
type:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType'
when_full:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull'
type: object
ObservabilityPipelineMemoryBufferSizeOptions:
description: Options for configuring a memory buffer by queue length.
Expand All @@ -40882,8 +40885,6 @@ components:
type: integer
type:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType'
when_full:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull'
type: object
ObservabilityPipelineMetadataEntry:
description: A custom metadata entry.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

/** The definition of <code>InputSchemaParameters</code> object. */
@JsonPropertyOrder({
InputSchemaParameters.JSON_PROPERTY_ALLOW_EXTRA_VALUES,
InputSchemaParameters.JSON_PROPERTY_ALLOWED_VALUES,
InputSchemaParameters.JSON_PROPERTY_DEFAULT_VALUE,
InputSchemaParameters.JSON_PROPERTY_DESCRIPTION,
InputSchemaParameters.JSON_PROPERTY_LABEL,
Expand All @@ -29,6 +31,12 @@
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class InputSchemaParameters {
@JsonIgnore public boolean unparsed = false;
public static final String JSON_PROPERTY_ALLOW_EXTRA_VALUES = "allowExtraValues";
private Boolean allowExtraValues;

public static final String JSON_PROPERTY_ALLOWED_VALUES = "allowedValues";
private Object allowedValues = null;

public static final String JSON_PROPERTY_DEFAULT_VALUE = "defaultValue";
private Object defaultValue = null;

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

public InputSchemaParameters allowExtraValues(Boolean allowExtraValues) {
this.allowExtraValues = allowExtraValues;
return this;
}

/**
* The <code>InputSchemaParameters</code> <code>allowExtraValues</code>.
*
* @return allowExtraValues
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ALLOW_EXTRA_VALUES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getAllowExtraValues() {
return allowExtraValues;
}

public void setAllowExtraValues(Boolean allowExtraValues) {
this.allowExtraValues = allowExtraValues;
}

public InputSchemaParameters allowedValues(Object allowedValues) {
this.allowedValues = allowedValues;
return this;
}

/**
* The <code>InputSchemaParameters</code> <code>allowedValues</code>.
*
* @return allowedValues
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ALLOWED_VALUES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Object getAllowedValues() {
return allowedValues;
}

public void setAllowedValues(Object allowedValues) {
this.allowedValues = allowedValues;
}

public InputSchemaParameters defaultValue(Object defaultValue) {
this.defaultValue = defaultValue;
return this;
Expand Down Expand Up @@ -218,7 +268,9 @@ public boolean equals(Object o) {
return false;
}
InputSchemaParameters inputSchemaParameters = (InputSchemaParameters) o;
return Objects.equals(this.defaultValue, inputSchemaParameters.defaultValue)
return Objects.equals(this.allowExtraValues, inputSchemaParameters.allowExtraValues)
&& Objects.equals(this.allowedValues, inputSchemaParameters.allowedValues)
&& Objects.equals(this.defaultValue, inputSchemaParameters.defaultValue)
&& Objects.equals(this.description, inputSchemaParameters.description)
&& Objects.equals(this.label, inputSchemaParameters.label)
&& Objects.equals(this.name, inputSchemaParameters.name)
Expand All @@ -228,13 +280,23 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return Objects.hash(defaultValue, description, label, name, type, additionalProperties);
return Objects.hash(
allowExtraValues,
allowedValues,
defaultValue,
description,
label,
name,
type,
additionalProperties);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class InputSchemaParameters {\n");
sb.append(" allowExtraValues: ").append(toIndentedString(allowExtraValues)).append("\n");
sb.append(" allowedValues: ").append(toIndentedString(allowedValues)).append("\n");
sb.append(" defaultValue: ").append(toIndentedString(defaultValue)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" label: ").append(toIndentedString(label)).append("\n");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
/** Options for configuring a memory buffer by byte size. */
@JsonPropertyOrder({
ObservabilityPipelineMemoryBufferOptions.JSON_PROPERTY_MAX_SIZE,
ObservabilityPipelineMemoryBufferOptions.JSON_PROPERTY_TYPE,
ObservabilityPipelineMemoryBufferOptions.JSON_PROPERTY_WHEN_FULL
ObservabilityPipelineMemoryBufferOptions.JSON_PROPERTY_TYPE
})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
Expand All @@ -33,10 +32,6 @@ public class ObservabilityPipelineMemoryBufferOptions {
private ObservabilityPipelineBufferOptionsMemoryType type =
ObservabilityPipelineBufferOptionsMemoryType.MEMORY;

public static final String JSON_PROPERTY_WHEN_FULL = "when_full";
private ObservabilityPipelineBufferOptionsWhenFull whenFull =
ObservabilityPipelineBufferOptionsWhenFull.BLOCK;

public ObservabilityPipelineMemoryBufferOptions maxSize(Long maxSize) {
this.maxSize = maxSize;
return this;
Expand Down Expand Up @@ -84,32 +79,6 @@ public void setType(ObservabilityPipelineBufferOptionsMemoryType type) {
this.type = type;
}

public ObservabilityPipelineMemoryBufferOptions whenFull(
ObservabilityPipelineBufferOptionsWhenFull whenFull) {
this.whenFull = whenFull;
this.unparsed |= !whenFull.isValid();
return this;
}

/**
* Behavior when the buffer is full (block and stop accepting new events, or drop new events)
*
* @return whenFull
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_WHEN_FULL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public ObservabilityPipelineBufferOptionsWhenFull getWhenFull() {
return whenFull;
}

public void setWhenFull(ObservabilityPipelineBufferOptionsWhenFull whenFull) {
if (!whenFull.isValid()) {
this.unparsed = true;
}
this.whenFull = whenFull;
}

/**
* A container for additional, undeclared properties. This is a holder for any undeclared
* properties as specified with the 'additionalProperties' keyword in the OAS document.
Expand Down Expand Up @@ -169,15 +138,14 @@ public boolean equals(Object o) {
(ObservabilityPipelineMemoryBufferOptions) o;
return Objects.equals(this.maxSize, observabilityPipelineMemoryBufferOptions.maxSize)
&& Objects.equals(this.type, observabilityPipelineMemoryBufferOptions.type)
&& Objects.equals(this.whenFull, observabilityPipelineMemoryBufferOptions.whenFull)
&& Objects.equals(
this.additionalProperties,
observabilityPipelineMemoryBufferOptions.additionalProperties);
}

@Override
public int hashCode() {
return Objects.hash(maxSize, type, whenFull, additionalProperties);
return Objects.hash(maxSize, type, additionalProperties);
}

@Override
Expand All @@ -186,7 +154,6 @@ public String toString() {
sb.append("class ObservabilityPipelineMemoryBufferOptions {\n");
sb.append(" maxSize: ").append(toIndentedString(maxSize)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" whenFull: ").append(toIndentedString(whenFull)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
.append("\n");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
/** Options for configuring a memory buffer by queue length. */
@JsonPropertyOrder({
ObservabilityPipelineMemoryBufferSizeOptions.JSON_PROPERTY_MAX_EVENTS,
ObservabilityPipelineMemoryBufferSizeOptions.JSON_PROPERTY_TYPE,
ObservabilityPipelineMemoryBufferSizeOptions.JSON_PROPERTY_WHEN_FULL
ObservabilityPipelineMemoryBufferSizeOptions.JSON_PROPERTY_TYPE
})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
Expand All @@ -33,10 +32,6 @@ public class ObservabilityPipelineMemoryBufferSizeOptions {
private ObservabilityPipelineBufferOptionsMemoryType type =
ObservabilityPipelineBufferOptionsMemoryType.MEMORY;

public static final String JSON_PROPERTY_WHEN_FULL = "when_full";
private ObservabilityPipelineBufferOptionsWhenFull whenFull =
ObservabilityPipelineBufferOptionsWhenFull.BLOCK;

public ObservabilityPipelineMemoryBufferSizeOptions maxEvents(Long maxEvents) {
this.maxEvents = maxEvents;
return this;
Expand Down Expand Up @@ -84,32 +79,6 @@ public void setType(ObservabilityPipelineBufferOptionsMemoryType type) {
this.type = type;
}

public ObservabilityPipelineMemoryBufferSizeOptions whenFull(
ObservabilityPipelineBufferOptionsWhenFull whenFull) {
this.whenFull = whenFull;
this.unparsed |= !whenFull.isValid();
return this;
}

/**
* Behavior when the buffer is full (block and stop accepting new events, or drop new events)
*
* @return whenFull
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_WHEN_FULL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public ObservabilityPipelineBufferOptionsWhenFull getWhenFull() {
return whenFull;
}

public void setWhenFull(ObservabilityPipelineBufferOptionsWhenFull whenFull) {
if (!whenFull.isValid()) {
this.unparsed = true;
}
this.whenFull = whenFull;
}

/**
* A container for additional, undeclared properties. This is a holder for any undeclared
* properties as specified with the 'additionalProperties' keyword in the OAS document.
Expand Down Expand Up @@ -170,15 +139,14 @@ public boolean equals(Object o) {
(ObservabilityPipelineMemoryBufferSizeOptions) o;
return Objects.equals(this.maxEvents, observabilityPipelineMemoryBufferSizeOptions.maxEvents)
&& Objects.equals(this.type, observabilityPipelineMemoryBufferSizeOptions.type)
&& Objects.equals(this.whenFull, observabilityPipelineMemoryBufferSizeOptions.whenFull)
&& Objects.equals(
this.additionalProperties,
observabilityPipelineMemoryBufferSizeOptions.additionalProperties);
}

@Override
public int hashCode() {
return Objects.hash(maxEvents, type, whenFull, additionalProperties);
return Objects.hash(maxEvents, type, additionalProperties);
}

@Override
Expand All @@ -187,7 +155,6 @@ public String toString() {
sb.append("class ObservabilityPipelineMemoryBufferSizeOptions {\n");
sb.append(" maxEvents: ").append(toIndentedString(maxEvents)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" whenFull: ").append(toIndentedString(whenFull)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
.append("\n");
Expand Down
Loading