Skip to content
Merged
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
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.5",
"regenerated": "2023-08-03 15:19:26.436178",
"spec_repo_commit": "200d56a1"
"regenerated": "2023-08-03 18:00:12.583242",
"spec_repo_commit": "b1453658"
},
"v2": {
"apigentools_version": "1.6.5",
"regenerated": "2023-08-03 15:19:26.452453",
"spec_repo_commit": "200d56a1"
"regenerated": "2023-08-03 18:00:12.596668",
"spec_repo_commit": "b1453658"
}
}
}
9 changes: 9 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3605,6 +3605,15 @@ components:
maximum: 5
readOnly: true
type: integer
tags:
description: List of team names representing ownership of a dashboard.
items:
description: The name of a Datadog team, formatted as `team:<name>`
type: string
maxItems: 5
nullable: true
readOnly: true
type: array
title:
description: Title of the dashboard.
readOnly: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import java.time.OffsetDateTime;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import org.openapitools.jackson.nullable.JsonNullable;
Expand All @@ -31,6 +32,7 @@
DashboardListItem.JSON_PROPERTY_IS_SHARED,
DashboardListItem.JSON_PROPERTY_MODIFIED,
DashboardListItem.JSON_PROPERTY_POPULARITY,
DashboardListItem.JSON_PROPERTY_TAGS,
DashboardListItem.JSON_PROPERTY_TITLE,
DashboardListItem.JSON_PROPERTY_TYPE,
DashboardListItem.JSON_PROPERTY_URL
Expand Down Expand Up @@ -69,6 +71,9 @@ public class DashboardListItem {
public static final String JSON_PROPERTY_POPULARITY = "popularity";
private Integer popularity;

public static final String JSON_PROPERTY_TAGS = "tags";
private JsonNullable<List<String>> tags = JsonNullable.<List<String>>undefined();

public static final String JSON_PROPERTY_TITLE = "title";
private String title;

Expand Down Expand Up @@ -255,6 +260,32 @@ public Integer getPopularity() {
return popularity;
}

/**
* List of team names representing ownership of a dashboard.
*
* @return tags
*/
@jakarta.annotation.Nullable
@JsonIgnore
public List<String> getTags() {

if (tags == null) {
tags = JsonNullable.<List<String>>undefined();
}
return tags.orElse(null);
}

@JsonProperty(JSON_PROPERTY_TAGS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable<List<String>> getTags_JsonNullable() {
return tags;
}

@JsonProperty(JSON_PROPERTY_TAGS)
private void setTags_JsonNullable(JsonNullable<List<String>> tags) {
this.tags = tags;
}

/**
* Title of the dashboard.
*
Expand Down Expand Up @@ -369,6 +400,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.isShared, dashboardListItem.isShared)
&& Objects.equals(this.modified, dashboardListItem.modified)
&& Objects.equals(this.popularity, dashboardListItem.popularity)
&& Objects.equals(this.tags, dashboardListItem.tags)
&& Objects.equals(this.title, dashboardListItem.title)
&& Objects.equals(this.type, dashboardListItem.type)
&& Objects.equals(this.url, dashboardListItem.url)
Expand All @@ -388,6 +420,7 @@ public int hashCode() {
isShared,
modified,
popularity,
tags,
title,
type,
url,
Expand All @@ -408,6 +441,7 @@ public String toString() {
sb.append(" isShared: ").append(toIndentedString(isShared)).append("\n");
sb.append(" modified: ").append(toIndentedString(modified)).append("\n");
sb.append(" popularity: ").append(toIndentedString(popularity)).append("\n");
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
sb.append(" title: ").append(toIndentedString(title)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" url: ").append(toIndentedString(url)).append("\n");
Expand Down