Skip to content

Commit c4bbf2d

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit b8f8eb97 of spec repo
1 parent ce0d147 commit c4bbf2d

File tree

3 files changed

+63
-7
lines changed

3 files changed

+63
-7
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-06-06 14:53:22.185897",
8-
"spec_repo_commit": "e591d5d4"
7+
"regenerated": "2025-06-06 17:05:54.567011",
8+
"spec_repo_commit": "b8f8eb97"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-06 14:53:22.203481",
13-
"spec_repo_commit": "e591d5d4"
12+
"regenerated": "2025-06-06 17:05:54.582587",
13+
"spec_repo_commit": "b8f8eb97"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3439,6 +3439,22 @@ components:
34393439
example:
34403440
focus: WORLD
34413441
properties:
3442+
custom_extent:
3443+
description: A custom extent of the map defined by an array of four numbers
3444+
in the order `[minLongitude, minLatitude, maxLongitude, maxLatitude]`.
3445+
example:
3446+
- -30
3447+
- -40
3448+
- 40
3449+
- 30
3450+
items:
3451+
description: The longitudinal or latitudinal coordinates of the bounding
3452+
box.
3453+
format: double
3454+
type: number
3455+
maxItems: 4
3456+
minItems: 4
3457+
type: array
34423458
focus:
34433459
description: The 2-letter ISO code of a country to focus the map on. Or
34443460
`WORLD`.

src/main/java/com/datadog/api/client/v1/model/GeomapWidgetDefinitionView.java

Lines changed: 43 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,24 @@
1313
import com.fasterxml.jackson.annotation.JsonInclude;
1414
import com.fasterxml.jackson.annotation.JsonProperty;
1515
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
16+
import java.util.ArrayList;
1617
import java.util.HashMap;
18+
import java.util.List;
1719
import java.util.Map;
1820
import java.util.Objects;
1921

2022
/** The view of the world that the map should render. */
21-
@JsonPropertyOrder({GeomapWidgetDefinitionView.JSON_PROPERTY_FOCUS})
23+
@JsonPropertyOrder({
24+
GeomapWidgetDefinitionView.JSON_PROPERTY_CUSTOM_EXTENT,
25+
GeomapWidgetDefinitionView.JSON_PROPERTY_FOCUS
26+
})
2227
@jakarta.annotation.Generated(
2328
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
2429
public class GeomapWidgetDefinitionView {
2530
@JsonIgnore public boolean unparsed = false;
31+
public static final String JSON_PROPERTY_CUSTOM_EXTENT = "custom_extent";
32+
private List<Double> customExtent = null;
33+
2634
public static final String JSON_PROPERTY_FOCUS = "focus";
2735
private String focus;
2836

@@ -34,6 +42,36 @@ public GeomapWidgetDefinitionView(
3442
this.focus = focus;
3543
}
3644

45+
public GeomapWidgetDefinitionView customExtent(List<Double> customExtent) {
46+
this.customExtent = customExtent;
47+
return this;
48+
}
49+
50+
public GeomapWidgetDefinitionView addCustomExtentItem(Double customExtentItem) {
51+
if (this.customExtent == null) {
52+
this.customExtent = new ArrayList<>();
53+
}
54+
this.customExtent.add(customExtentItem);
55+
return this;
56+
}
57+
58+
/**
59+
* A custom extent of the map defined by an array of four numbers in the order <code>
60+
* [minLongitude, minLatitude, maxLongitude, maxLatitude]</code>.
61+
*
62+
* @return customExtent
63+
*/
64+
@jakarta.annotation.Nullable
65+
@JsonProperty(JSON_PROPERTY_CUSTOM_EXTENT)
66+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
67+
public List<Double> getCustomExtent() {
68+
return customExtent;
69+
}
70+
71+
public void setCustomExtent(List<Double> customExtent) {
72+
this.customExtent = customExtent;
73+
}
74+
3775
public GeomapWidgetDefinitionView focus(String focus) {
3876
this.focus = focus;
3977
return this;
@@ -110,20 +148,22 @@ public boolean equals(Object o) {
110148
return false;
111149
}
112150
GeomapWidgetDefinitionView geomapWidgetDefinitionView = (GeomapWidgetDefinitionView) o;
113-
return Objects.equals(this.focus, geomapWidgetDefinitionView.focus)
151+
return Objects.equals(this.customExtent, geomapWidgetDefinitionView.customExtent)
152+
&& Objects.equals(this.focus, geomapWidgetDefinitionView.focus)
114153
&& Objects.equals(
115154
this.additionalProperties, geomapWidgetDefinitionView.additionalProperties);
116155
}
117156

118157
@Override
119158
public int hashCode() {
120-
return Objects.hash(focus, additionalProperties);
159+
return Objects.hash(customExtent, focus, additionalProperties);
121160
}
122161

123162
@Override
124163
public String toString() {
125164
StringBuilder sb = new StringBuilder();
126165
sb.append("class GeomapWidgetDefinitionView {\n");
166+
sb.append(" customExtent: ").append(toIndentedString(customExtent)).append("\n");
127167
sb.append(" focus: ").append(toIndentedString(focus)).append("\n");
128168
sb.append(" additionalProperties: ")
129169
.append(toIndentedString(additionalProperties))

0 commit comments

Comments
 (0)