From 6bf74724f34e375664a5e8fd98286beac5de894c Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 11 Aug 2026 11:40:57 +0000 Subject: [PATCH] Regenerate client from commit 42916c1 of spec repo --- .generator/schemas/v1/openapi.yaml | 12 ++++++++ .generator/schemas/v2/openapi.yaml | 4 +-- examples/v1/logs-indexes/CreateLogsIndex.java | 1 + examples/v1/logs-indexes/UpdateLogsIndex.java | 1 + .../api/client/v1/model/LogsIndex.java | 29 +++++++++++++++++++ .../v1/model/LogsIndexUpdateRequest.java | 29 +++++++++++++++++++ .../api/client/v1/api/logs_indexes.feature | 10 +++---- 7 files changed, 79 insertions(+), 7 deletions(-) diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 7e53bd76546..8073a79c03a 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -7265,6 +7265,12 @@ components: maximum: 99.99 minimum: 50 type: number + description: + description: |- + A description of the index, to help explain its purpose or configuration to other users. + Maximum length of 250 characters. + example: "Contains logs matching the criteria defined by the filter." + type: string exclusion_filters: description: |- An array of exclusion objects. The logs are tested against the query of each filter, @@ -7339,6 +7345,12 @@ components: maximum: 99.99 minimum: 50 type: number + description: + description: |- + A description of the index, to help explain its purpose or configuration to other users. + Maximum length of 250 characters. + example: "Contains logs matching the criteria defined by the filter." + type: string disable_daily_limit: description: |- If true, sets the `daily_limit` value to null and the index is not limited on a daily basis (any diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index d3d0025738e..7afb2b537d2 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -185612,8 +185612,8 @@ paths: x-codegen-request-body-name: body x-sunset: "2026-04-01" x-unstable: |- - **Note**: This endpoint is deprecated. To update outcomes, use the - [Update Scorecard outcomes](https://docs.datadoghq.com/api/latest/scorecards/update-scorecard-outcomes/) endpoint. + **Note**: This endpoint is in Preview. + If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/scorecard/rules: get: description: Fetch all rules. diff --git a/examples/v1/logs-indexes/CreateLogsIndex.java b/examples/v1/logs-indexes/CreateLogsIndex.java index c9c4da3000f..03b383e9cdd 100644 --- a/examples/v1/logs-indexes/CreateLogsIndex.java +++ b/examples/v1/logs-indexes/CreateLogsIndex.java @@ -21,6 +21,7 @@ public static void main(String[] args) { .dailyLimit(300000000L) .dailyLimitReset(new LogsDailyLimitReset().resetTime("14:00").resetUtcOffset("+02:00")) .dailyLimitWarningThresholdPercentage(70.0) + .description("Contains logs matching the criteria defined by the filter.") .exclusionFilters( Collections.singletonList( new LogsExclusion() diff --git a/examples/v1/logs-indexes/UpdateLogsIndex.java b/examples/v1/logs-indexes/UpdateLogsIndex.java index 043c5973530..976447af873 100644 --- a/examples/v1/logs-indexes/UpdateLogsIndex.java +++ b/examples/v1/logs-indexes/UpdateLogsIndex.java @@ -22,6 +22,7 @@ public static void main(String[] args) { .dailyLimit(300000000L) .dailyLimitReset(new LogsDailyLimitReset().resetTime("14:00").resetUtcOffset("+02:00")) .dailyLimitWarningThresholdPercentage(70.0) + .description("Contains logs matching the criteria defined by the filter.") .disableDailyLimit(false) .exclusionFilters( Collections.singletonList( diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsIndex.java b/src/main/java/com/datadog/api/client/v1/model/LogsIndex.java index 43aa1df43b2..cb6a6ca27d2 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsIndex.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsIndex.java @@ -24,6 +24,7 @@ LogsIndex.JSON_PROPERTY_DAILY_LIMIT, LogsIndex.JSON_PROPERTY_DAILY_LIMIT_RESET, LogsIndex.JSON_PROPERTY_DAILY_LIMIT_WARNING_THRESHOLD_PERCENTAGE, + LogsIndex.JSON_PROPERTY_DESCRIPTION, LogsIndex.JSON_PROPERTY_EXCLUSION_FILTERS, LogsIndex.JSON_PROPERTY_FILTER, LogsIndex.JSON_PROPERTY_IS_RATE_LIMITED, @@ -46,6 +47,9 @@ public class LogsIndex { "daily_limit_warning_threshold_percentage"; private Double dailyLimitWarningThresholdPercentage; + public static final String JSON_PROPERTY_DESCRIPTION = "description"; + private String description; + public static final String JSON_PROPERTY_EXCLUSION_FILTERS = "exclusion_filters"; private List exclusionFilters = null; @@ -148,6 +152,28 @@ public void setDailyLimitWarningThresholdPercentage(Double dailyLimitWarningThre this.dailyLimitWarningThresholdPercentage = dailyLimitWarningThresholdPercentage; } + public LogsIndex description(String description) { + this.description = description; + return this; + } + + /** + * A description of the index, to help explain its purpose or configuration to other users. + * Maximum length of 250 characters. + * + * @return description + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + public LogsIndex exclusionFilters(List exclusionFilters) { this.exclusionFilters = exclusionFilters; if (exclusionFilters != null) { @@ -386,6 +412,7 @@ public boolean equals(Object o) { && Objects.equals( this.dailyLimitWarningThresholdPercentage, logsIndex.dailyLimitWarningThresholdPercentage) + && Objects.equals(this.description, logsIndex.description) && Objects.equals(this.exclusionFilters, logsIndex.exclusionFilters) && Objects.equals(this.filter, logsIndex.filter) && Objects.equals(this.isRateLimited, logsIndex.isRateLimited) @@ -402,6 +429,7 @@ public int hashCode() { dailyLimit, dailyLimitReset, dailyLimitWarningThresholdPercentage, + description, exclusionFilters, filter, isRateLimited, @@ -421,6 +449,7 @@ public String toString() { sb.append(" dailyLimitWarningThresholdPercentage: ") .append(toIndentedString(dailyLimitWarningThresholdPercentage)) .append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" exclusionFilters: ").append(toIndentedString(exclusionFilters)).append("\n"); sb.append(" filter: ").append(toIndentedString(filter)).append("\n"); sb.append(" isRateLimited: ").append(toIndentedString(isRateLimited)).append("\n"); diff --git a/src/main/java/com/datadog/api/client/v1/model/LogsIndexUpdateRequest.java b/src/main/java/com/datadog/api/client/v1/model/LogsIndexUpdateRequest.java index beaa8371edf..521e8cbe0c0 100644 --- a/src/main/java/com/datadog/api/client/v1/model/LogsIndexUpdateRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/LogsIndexUpdateRequest.java @@ -24,6 +24,7 @@ LogsIndexUpdateRequest.JSON_PROPERTY_DAILY_LIMIT, LogsIndexUpdateRequest.JSON_PROPERTY_DAILY_LIMIT_RESET, LogsIndexUpdateRequest.JSON_PROPERTY_DAILY_LIMIT_WARNING_THRESHOLD_PERCENTAGE, + LogsIndexUpdateRequest.JSON_PROPERTY_DESCRIPTION, LogsIndexUpdateRequest.JSON_PROPERTY_DISABLE_DAILY_LIMIT, LogsIndexUpdateRequest.JSON_PROPERTY_EXCLUSION_FILTERS, LogsIndexUpdateRequest.JSON_PROPERTY_FILTER, @@ -45,6 +46,9 @@ public class LogsIndexUpdateRequest { "daily_limit_warning_threshold_percentage"; private Double dailyLimitWarningThresholdPercentage; + public static final String JSON_PROPERTY_DESCRIPTION = "description"; + private String description; + public static final String JSON_PROPERTY_DISABLE_DAILY_LIMIT = "disable_daily_limit"; private Boolean disableDailyLimit; @@ -142,6 +146,28 @@ public void setDailyLimitWarningThresholdPercentage(Double dailyLimitWarningThre this.dailyLimitWarningThresholdPercentage = dailyLimitWarningThresholdPercentage; } + public LogsIndexUpdateRequest description(String description) { + this.description = description; + return this; + } + + /** + * A description of the index, to help explain its purpose or configuration to other users. + * Maximum length of 250 characters. + * + * @return description + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + public LogsIndexUpdateRequest disableDailyLimit(Boolean disableDailyLimit) { this.disableDailyLimit = disableDailyLimit; return this; @@ -376,6 +402,7 @@ public boolean equals(Object o) { && Objects.equals( this.dailyLimitWarningThresholdPercentage, logsIndexUpdateRequest.dailyLimitWarningThresholdPercentage) + && Objects.equals(this.description, logsIndexUpdateRequest.description) && Objects.equals(this.disableDailyLimit, logsIndexUpdateRequest.disableDailyLimit) && Objects.equals(this.exclusionFilters, logsIndexUpdateRequest.exclusionFilters) && Objects.equals(this.filter, logsIndexUpdateRequest.filter) @@ -392,6 +419,7 @@ public int hashCode() { dailyLimit, dailyLimitReset, dailyLimitWarningThresholdPercentage, + description, disableDailyLimit, exclusionFilters, filter, @@ -410,6 +438,7 @@ public String toString() { sb.append(" dailyLimitWarningThresholdPercentage: ") .append(toIndentedString(dailyLimitWarningThresholdPercentage)) .append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" disableDailyLimit: ").append(toIndentedString(disableDailyLimit)).append("\n"); sb.append(" exclusionFilters: ").append(toIndentedString(exclusionFilters)).append("\n"); sb.append(" filter: ").append(toIndentedString(filter)).append("\n"); diff --git a/src/test/resources/com/datadog/api/client/v1/api/logs_indexes.feature b/src/test/resources/com/datadog/api/client/v1/api/logs_indexes.feature index 4091527029b..d3f0b48fe15 100644 --- a/src/test/resources/com/datadog/api/client/v1/api/logs_indexes.feature +++ b/src/test/resources/com/datadog/api/client/v1/api/logs_indexes.feature @@ -11,21 +11,21 @@ Feature: Logs Indexes @generated @skip @team:DataDog/logs-backend @team:DataDog/logs-core Scenario: Create an index returns "Invalid Parameter Error" response Given new "CreateLogsIndex" request - And body with value {"daily_limit": 300000000, "daily_limit_reset": {"reset_time": "14:00", "reset_utc_offset": "+02:00"}, "daily_limit_warning_threshold_percentage": 70, "exclusion_filters": [{"filter": {"query": "*", "sample_attribute": "@ci.job_id", "sample_rate": 1.0}, "name": "payment"}], "filter": {"query": "source:python"}, "name": "main", "num_flex_logs_retention_days": 360, "num_retention_days": 15, "tags": ["team:backend", "env:production"]} + And body with value {"daily_limit": 300000000, "daily_limit_reset": {"reset_time": "14:00", "reset_utc_offset": "+02:00"}, "daily_limit_warning_threshold_percentage": 70, "description": "Contains logs matching the criteria defined by the filter.", "exclusion_filters": [{"filter": {"query": "*", "sample_attribute": "@ci.job_id", "sample_rate": 1.0}, "name": "payment"}], "filter": {"query": "source:python"}, "name": "main", "num_flex_logs_retention_days": 360, "num_retention_days": 15, "tags": ["team:backend", "env:production"]} When the request is sent Then the response status is 400 Invalid Parameter Error @generated @skip @team:DataDog/logs-backend @team:DataDog/logs-core Scenario: Create an index returns "OK" response Given new "CreateLogsIndex" request - And body with value {"daily_limit": 300000000, "daily_limit_reset": {"reset_time": "14:00", "reset_utc_offset": "+02:00"}, "daily_limit_warning_threshold_percentage": 70, "exclusion_filters": [{"filter": {"query": "*", "sample_attribute": "@ci.job_id", "sample_rate": 1.0}, "name": "payment"}], "filter": {"query": "source:python"}, "name": "main", "num_flex_logs_retention_days": 360, "num_retention_days": 15, "tags": ["team:backend", "env:production"]} + And body with value {"daily_limit": 300000000, "daily_limit_reset": {"reset_time": "14:00", "reset_utc_offset": "+02:00"}, "daily_limit_warning_threshold_percentage": 70, "description": "Contains logs matching the criteria defined by the filter.", "exclusion_filters": [{"filter": {"query": "*", "sample_attribute": "@ci.job_id", "sample_rate": 1.0}, "name": "payment"}], "filter": {"query": "source:python"}, "name": "main", "num_flex_logs_retention_days": 360, "num_retention_days": 15, "tags": ["team:backend", "env:production"]} When the request is sent Then the response status is 200 OK @generated @skip @team:DataDog/logs-backend @team:DataDog/logs-core Scenario: Create an index returns "Unprocessable Entity" response Given new "CreateLogsIndex" request - And body with value {"daily_limit": 300000000, "daily_limit_reset": {"reset_time": "14:00", "reset_utc_offset": "+02:00"}, "daily_limit_warning_threshold_percentage": 70, "exclusion_filters": [{"filter": {"query": "*", "sample_attribute": "@ci.job_id", "sample_rate": 1.0}, "name": "payment"}], "filter": {"query": "source:python"}, "name": "main", "num_flex_logs_retention_days": 360, "num_retention_days": 15, "tags": ["team:backend", "env:production"]} + And body with value {"daily_limit": 300000000, "daily_limit_reset": {"reset_time": "14:00", "reset_utc_offset": "+02:00"}, "daily_limit_warning_threshold_percentage": 70, "description": "Contains logs matching the criteria defined by the filter.", "exclusion_filters": [{"filter": {"query": "*", "sample_attribute": "@ci.job_id", "sample_rate": 1.0}, "name": "payment"}], "filter": {"query": "source:python"}, "name": "main", "num_flex_logs_retention_days": 360, "num_retention_days": 15, "tags": ["team:backend", "env:production"]} When the request is sent Then the response status is 422 Unprocessable Entity @@ -73,7 +73,7 @@ Feature: Logs Indexes Scenario: Update an index returns "Invalid Parameter Error" response Given new "UpdateLogsIndex" request And request contains "name" parameter from "REPLACE.ME" - And body with value {"daily_limit": 300000000, "daily_limit_reset": {"reset_time": "14:00", "reset_utc_offset": "+02:00"}, "daily_limit_warning_threshold_percentage": 70, "disable_daily_limit": false, "exclusion_filters": [{"filter": {"query": "*", "sample_attribute": "@ci.job_id", "sample_rate": 1.0}, "name": "payment"}], "filter": {"query": "source:python"}, "num_flex_logs_retention_days": 360, "num_retention_days": 15, "tags": ["team:backend", "env:production"]} + And body with value {"daily_limit": 300000000, "daily_limit_reset": {"reset_time": "14:00", "reset_utc_offset": "+02:00"}, "daily_limit_warning_threshold_percentage": 70, "description": "Contains logs matching the criteria defined by the filter.", "disable_daily_limit": false, "exclusion_filters": [{"filter": {"query": "*", "sample_attribute": "@ci.job_id", "sample_rate": 1.0}, "name": "payment"}], "filter": {"query": "source:python"}, "num_flex_logs_retention_days": 360, "num_retention_days": 15, "tags": ["team:backend", "env:production"]} When the request is sent Then the response status is 400 Invalid Parameter Error @@ -81,7 +81,7 @@ Feature: Logs Indexes Scenario: Update an index returns "OK" response Given new "UpdateLogsIndex" request And request contains "name" parameter from "REPLACE.ME" - And body with value {"daily_limit": 300000000, "daily_limit_reset": {"reset_time": "14:00", "reset_utc_offset": "+02:00"}, "daily_limit_warning_threshold_percentage": 70, "disable_daily_limit": false, "exclusion_filters": [{"filter": {"query": "*", "sample_attribute": "@ci.job_id", "sample_rate": 1.0}, "name": "payment"}], "filter": {"query": "source:python"}, "num_flex_logs_retention_days": 360, "num_retention_days": 15, "tags": ["team:backend", "env:production"]} + And body with value {"daily_limit": 300000000, "daily_limit_reset": {"reset_time": "14:00", "reset_utc_offset": "+02:00"}, "daily_limit_warning_threshold_percentage": 70, "description": "Contains logs matching the criteria defined by the filter.", "disable_daily_limit": false, "exclusion_filters": [{"filter": {"query": "*", "sample_attribute": "@ci.job_id", "sample_rate": 1.0}, "name": "payment"}], "filter": {"query": "source:python"}, "num_flex_logs_retention_days": 360, "num_retention_days": 15, "tags": ["team:backend", "env:production"]} When the request is sent Then the response status is 200 OK