From 41e6a1dc4616617e26bec40779f99e4fdc198877 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Mon, 19 Apr 2021 09:23:17 +0000 Subject: [PATCH] Regenerate client from commit 2c91a1d of spec repo --- .apigentools-info | 8 +-- api_docs/v1/GroupWidgetDefinition.md | 2 + .../client/model/GroupWidgetDefinition.java | 60 ++++++++++++++++++- src/main/java/com/datadog/api/v1/openapi.yaml | 5 ++ 4 files changed, 69 insertions(+), 6 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 73e47cb53c2..85bb4e7829b 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.4.1.dev6", - "regenerated": "2021-04-16 12:34:54.000831", - "spec_repo_commit": "9149cd6" + "regenerated": "2021-04-19 09:22:27.725723", + "spec_repo_commit": "2c91a1d" }, "v2": { "apigentools_version": "1.4.1.dev6", - "regenerated": "2021-04-16 12:35:39.842689", - "spec_repo_commit": "9149cd6" + "regenerated": "2021-04-19 09:23:15.510895", + "spec_repo_commit": "2c91a1d" } } } \ No newline at end of file diff --git a/api_docs/v1/GroupWidgetDefinition.md b/api_docs/v1/GroupWidgetDefinition.md index 6c47f59d785..1bd197f733b 100644 --- a/api_docs/v1/GroupWidgetDefinition.md +++ b/api_docs/v1/GroupWidgetDefinition.md @@ -8,8 +8,10 @@ The groups widget allows you to keep similar graphs together on your timeboard. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**backgroundColor** | **String** | Background color of the group title. | [optional] **layoutType** | **WidgetLayoutType** | | **title** | **String** | Title of the widget. | [optional] +**titleAlign** | **WidgetTextAlign** | | [optional] **type** | **GroupWidgetDefinitionType** | | **widgets** | [**List<Widget>**](Widget.md) | List of widget groups. | diff --git a/src/main/java/com/datadog/api/v1/client/model/GroupWidgetDefinition.java b/src/main/java/com/datadog/api/v1/client/model/GroupWidgetDefinition.java index c2f2070bdae..99d46f45db0 100644 --- a/src/main/java/com/datadog/api/v1/client/model/GroupWidgetDefinition.java +++ b/src/main/java/com/datadog/api/v1/client/model/GroupWidgetDefinition.java @@ -28,25 +28,55 @@ "The groups widget allows you to keep similar graphs together on your timeboard. Each" + " group has a custom header, can hold one to many graphs, and is collapsible.") @JsonPropertyOrder({ + GroupWidgetDefinition.JSON_PROPERTY_BACKGROUND_COLOR, GroupWidgetDefinition.JSON_PROPERTY_LAYOUT_TYPE, GroupWidgetDefinition.JSON_PROPERTY_TITLE, + GroupWidgetDefinition.JSON_PROPERTY_TITLE_ALIGN, GroupWidgetDefinition.JSON_PROPERTY_TYPE, GroupWidgetDefinition.JSON_PROPERTY_WIDGETS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class GroupWidgetDefinition { + public static final String JSON_PROPERTY_BACKGROUND_COLOR = "background_color"; + private String backgroundColor; + public static final String JSON_PROPERTY_LAYOUT_TYPE = "layout_type"; private WidgetLayoutType layoutType; public static final String JSON_PROPERTY_TITLE = "title"; private String title; + public static final String JSON_PROPERTY_TITLE_ALIGN = "title_align"; + private WidgetTextAlign titleAlign; + public static final String JSON_PROPERTY_TYPE = "type"; private GroupWidgetDefinitionType type = GroupWidgetDefinitionType.GROUP; public static final String JSON_PROPERTY_WIDGETS = "widgets"; private List widgets = new ArrayList<>(); + public GroupWidgetDefinition backgroundColor(String backgroundColor) { + this.backgroundColor = backgroundColor; + return this; + } + + /** + * Background color of the group title. + * + * @return backgroundColor + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "Background color of the group title.") + @JsonProperty(JSON_PROPERTY_BACKGROUND_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBackgroundColor() { + return backgroundColor; + } + + public void setBackgroundColor(String backgroundColor) { + this.backgroundColor = backgroundColor; + } + public GroupWidgetDefinition layoutType(WidgetLayoutType layoutType) { this.layoutType = layoutType; return this; @@ -90,6 +120,28 @@ public void setTitle(String title) { this.title = title; } + public GroupWidgetDefinition titleAlign(WidgetTextAlign titleAlign) { + this.titleAlign = titleAlign; + return this; + } + + /** + * Get titleAlign + * + * @return titleAlign + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TITLE_ALIGN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public WidgetTextAlign getTitleAlign() { + return titleAlign; + } + + public void setTitleAlign(WidgetTextAlign titleAlign) { + this.titleAlign = titleAlign; + } + public GroupWidgetDefinition type(GroupWidgetDefinitionType type) { this.type = type; return this; @@ -151,23 +203,27 @@ public boolean equals(Object o) { return false; } GroupWidgetDefinition groupWidgetDefinition = (GroupWidgetDefinition) o; - return Objects.equals(this.layoutType, groupWidgetDefinition.layoutType) + return Objects.equals(this.backgroundColor, groupWidgetDefinition.backgroundColor) + && Objects.equals(this.layoutType, groupWidgetDefinition.layoutType) && Objects.equals(this.title, groupWidgetDefinition.title) + && Objects.equals(this.titleAlign, groupWidgetDefinition.titleAlign) && Objects.equals(this.type, groupWidgetDefinition.type) && Objects.equals(this.widgets, groupWidgetDefinition.widgets); } @Override public int hashCode() { - return Objects.hash(layoutType, title, type, widgets); + return Objects.hash(backgroundColor, layoutType, title, titleAlign, type, widgets); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GroupWidgetDefinition {\n"); + sb.append(" backgroundColor: ").append(toIndentedString(backgroundColor)).append("\n"); sb.append(" layoutType: ").append(toIndentedString(layoutType)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" titleAlign: ").append(toIndentedString(titleAlign)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" widgets: ").append(toIndentedString(widgets)).append("\n"); sb.append("}"); diff --git a/src/main/java/com/datadog/api/v1/openapi.yaml b/src/main/java/com/datadog/api/v1/openapi.yaml index 5bdd7f3e97a..0bcbf8c691c 100644 --- a/src/main/java/com/datadog/api/v1/openapi.yaml +++ b/src/main/java/com/datadog/api/v1/openapi.yaml @@ -2242,11 +2242,16 @@ components: your timeboard. Each group has a custom header, can hold one to many graphs, and is collapsible. properties: + background_color: + description: Background color of the group title. + type: string layout_type: $ref: '#/components/schemas/WidgetLayoutType' title: description: Title of the widget. type: string + title_align: + $ref: '#/components/schemas/WidgetTextAlign' type: $ref: '#/components/schemas/GroupWidgetDefinitionType' widgets: