From 153417f3054fc51d6478b95578344ad903b8d37a Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 10 Feb 2026 10:38:32 +0000 Subject: [PATCH] Regenerate client from commit 795b9a0 of spec repo --- .generator/schemas/v2/openapi.yaml | 4 ++ ...ervabilityPipelineMemoryBufferOptions.java | 37 ++++++++++++++++++- ...bilityPipelineMemoryBufferSizeOptions.java | 37 ++++++++++++++++++- 3 files changed, 74 insertions(+), 4 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 181237b18fc..7af5b68e563 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -40833,6 +40833,8 @@ 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. @@ -40844,6 +40846,8 @@ components: type: integer type: $ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType' + when_full: + $ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull' type: object ObservabilityPipelineMetadataEntry: description: A custom metadata entry. diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineMemoryBufferOptions.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineMemoryBufferOptions.java index f78d253a091..2eb6c01f571 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineMemoryBufferOptions.java +++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineMemoryBufferOptions.java @@ -19,7 +19,8 @@ /** Options for configuring a memory buffer by byte size. */ @JsonPropertyOrder({ ObservabilityPipelineMemoryBufferOptions.JSON_PROPERTY_MAX_SIZE, - ObservabilityPipelineMemoryBufferOptions.JSON_PROPERTY_TYPE + ObservabilityPipelineMemoryBufferOptions.JSON_PROPERTY_TYPE, + ObservabilityPipelineMemoryBufferOptions.JSON_PROPERTY_WHEN_FULL }) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") @@ -32,6 +33,10 @@ 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; @@ -79,6 +84,32 @@ 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. @@ -138,6 +169,7 @@ 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); @@ -145,7 +177,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(maxSize, type, additionalProperties); + return Objects.hash(maxSize, type, whenFull, additionalProperties); } @Override @@ -154,6 +186,7 @@ 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"); diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineMemoryBufferSizeOptions.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineMemoryBufferSizeOptions.java index 22dc94686e2..390278052cf 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineMemoryBufferSizeOptions.java +++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineMemoryBufferSizeOptions.java @@ -19,7 +19,8 @@ /** Options for configuring a memory buffer by queue length. */ @JsonPropertyOrder({ ObservabilityPipelineMemoryBufferSizeOptions.JSON_PROPERTY_MAX_EVENTS, - ObservabilityPipelineMemoryBufferSizeOptions.JSON_PROPERTY_TYPE + ObservabilityPipelineMemoryBufferSizeOptions.JSON_PROPERTY_TYPE, + ObservabilityPipelineMemoryBufferSizeOptions.JSON_PROPERTY_WHEN_FULL }) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") @@ -32,6 +33,10 @@ 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; @@ -79,6 +84,32 @@ 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. @@ -139,6 +170,7 @@ 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); @@ -146,7 +178,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(maxEvents, type, additionalProperties); + return Objects.hash(maxEvents, type, whenFull, additionalProperties); } @Override @@ -155,6 +187,7 @@ 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");