diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 78d7e42b5b1..d61bcbbab2b 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -15786,6 +15786,8 @@ components: $ref: "#/components/schemas/LogQueryDefinition" deprecated: true description: Deprecated - Use `queries` and `formulas` instead. + sort: + $ref: "#/components/schemas/WidgetSortBy" style: $ref: "#/components/schemas/WidgetStyle" type: object @@ -20475,6 +20477,10 @@ components: type: array response_format: $ref: "#/components/schemas/FormulaAndFunctionResponseFormat" + sort: + $ref: "#/components/schemas/WidgetSortBy" + style: + $ref: "#/components/schemas/WidgetRequestStyle" type: object UsageAnalyzedLogsHour: description: The number of analyzed logs for each hour for a given organization. diff --git a/src/main/java/com/datadog/api/client/v1/model/SunburstWidgetRequest.java b/src/main/java/com/datadog/api/client/v1/model/SunburstWidgetRequest.java index 2e77ff0d158..29624ef9bbd 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SunburstWidgetRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/SunburstWidgetRequest.java @@ -33,6 +33,7 @@ SunburstWidgetRequest.JSON_PROPERTY_RESPONSE_FORMAT, SunburstWidgetRequest.JSON_PROPERTY_RUM_QUERY, SunburstWidgetRequest.JSON_PROPERTY_SECURITY_QUERY, + SunburstWidgetRequest.JSON_PROPERTY_SORT, SunburstWidgetRequest.JSON_PROPERTY_STYLE }) @jakarta.annotation.Generated( @@ -78,6 +79,9 @@ public class SunburstWidgetRequest { public static final String JSON_PROPERTY_SECURITY_QUERY = "security_query"; private LogQueryDefinition securityQuery; + public static final String JSON_PROPERTY_SORT = "sort"; + private WidgetSortBy sort; + public static final String JSON_PROPERTY_STYLE = "style"; private WidgetStyle style; @@ -395,6 +399,28 @@ public void setSecurityQuery(LogQueryDefinition securityQuery) { this.securityQuery = securityQuery; } + public SunburstWidgetRequest sort(WidgetSortBy sort) { + this.sort = sort; + this.unparsed |= sort.unparsed; + return this; + } + + /** + * The controls for sorting the widget. + * + * @return sort + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SORT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public WidgetSortBy getSort() { + return sort; + } + + public void setSort(WidgetSortBy sort) { + this.sort = sort; + } + public SunburstWidgetRequest style(WidgetStyle style) { this.style = style; this.unparsed |= style.unparsed; @@ -486,6 +512,7 @@ public boolean equals(Object o) { && Objects.equals(this.responseFormat, sunburstWidgetRequest.responseFormat) && Objects.equals(this.rumQuery, sunburstWidgetRequest.rumQuery) && Objects.equals(this.securityQuery, sunburstWidgetRequest.securityQuery) + && Objects.equals(this.sort, sunburstWidgetRequest.sort) && Objects.equals(this.style, sunburstWidgetRequest.style) && Objects.equals(this.additionalProperties, sunburstWidgetRequest.additionalProperties); } @@ -506,6 +533,7 @@ public int hashCode() { responseFormat, rumQuery, securityQuery, + sort, style, additionalProperties); } @@ -529,6 +557,7 @@ public String toString() { sb.append(" responseFormat: ").append(toIndentedString(responseFormat)).append("\n"); sb.append(" rumQuery: ").append(toIndentedString(rumQuery)).append("\n"); sb.append(" securityQuery: ").append(toIndentedString(securityQuery)).append("\n"); + sb.append(" sort: ").append(toIndentedString(sort)).append("\n"); sb.append(" style: ").append(toIndentedString(style)).append("\n"); sb.append(" additionalProperties: ") .append(toIndentedString(additionalProperties)) diff --git a/src/main/java/com/datadog/api/client/v1/model/TreeMapWidgetRequest.java b/src/main/java/com/datadog/api/client/v1/model/TreeMapWidgetRequest.java index 19e04fd5343..c22019b6a00 100644 --- a/src/main/java/com/datadog/api/client/v1/model/TreeMapWidgetRequest.java +++ b/src/main/java/com/datadog/api/client/v1/model/TreeMapWidgetRequest.java @@ -23,7 +23,9 @@ TreeMapWidgetRequest.JSON_PROPERTY_FORMULAS, TreeMapWidgetRequest.JSON_PROPERTY_Q, TreeMapWidgetRequest.JSON_PROPERTY_QUERIES, - TreeMapWidgetRequest.JSON_PROPERTY_RESPONSE_FORMAT + TreeMapWidgetRequest.JSON_PROPERTY_RESPONSE_FORMAT, + TreeMapWidgetRequest.JSON_PROPERTY_SORT, + TreeMapWidgetRequest.JSON_PROPERTY_STYLE }) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") @@ -41,6 +43,12 @@ public class TreeMapWidgetRequest { public static final String JSON_PROPERTY_RESPONSE_FORMAT = "response_format"; private FormulaAndFunctionResponseFormat responseFormat; + public static final String JSON_PROPERTY_SORT = "sort"; + private WidgetSortBy sort; + + public static final String JSON_PROPERTY_STYLE = "style"; + private WidgetRequestStyle style; + public TreeMapWidgetRequest formulas(List formulas) { this.formulas = formulas; for (WidgetFormula item : formulas) { @@ -158,6 +166,50 @@ public void setResponseFormat(FormulaAndFunctionResponseFormat responseFormat) { this.responseFormat = responseFormat; } + public TreeMapWidgetRequest sort(WidgetSortBy sort) { + this.sort = sort; + this.unparsed |= sort.unparsed; + return this; + } + + /** + * The controls for sorting the widget. + * + * @return sort + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SORT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public WidgetSortBy getSort() { + return sort; + } + + public void setSort(WidgetSortBy sort) { + this.sort = sort; + } + + public TreeMapWidgetRequest style(WidgetRequestStyle style) { + this.style = style; + this.unparsed |= style.unparsed; + return this; + } + + /** + * Define request widget style. + * + * @return style + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_STYLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public WidgetRequestStyle getStyle() { + return style; + } + + public void setStyle(WidgetRequestStyle style) { + this.style = style; + } + /** * A container for additional, undeclared properties. This is a holder for any undeclared * properties as specified with the 'additionalProperties' keyword in the OAS document. @@ -218,12 +270,14 @@ public boolean equals(Object o) { && Objects.equals(this.q, treeMapWidgetRequest.q) && Objects.equals(this.queries, treeMapWidgetRequest.queries) && Objects.equals(this.responseFormat, treeMapWidgetRequest.responseFormat) + && Objects.equals(this.sort, treeMapWidgetRequest.sort) + && Objects.equals(this.style, treeMapWidgetRequest.style) && Objects.equals(this.additionalProperties, treeMapWidgetRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(formulas, q, queries, responseFormat, additionalProperties); + return Objects.hash(formulas, q, queries, responseFormat, sort, style, additionalProperties); } @Override @@ -234,6 +288,8 @@ public String toString() { sb.append(" q: ").append(toIndentedString(q)).append("\n"); sb.append(" queries: ").append(toIndentedString(queries)).append("\n"); sb.append(" responseFormat: ").append(toIndentedString(responseFormat)).append("\n"); + sb.append(" sort: ").append(toIndentedString(sort)).append("\n"); + sb.append(" style: ").append(toIndentedString(style)).append("\n"); sb.append(" additionalProperties: ") .append(toIndentedString(additionalProperties)) .append("\n");