Skip to content

Commit 6059d0e

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 3211ca1b of spec repo
1 parent 0ba89bd commit 6059d0e

File tree

3 files changed

+67
-18
lines changed

3 files changed

+67
-18
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-26 17:56:33.436535",
8-
"spec_repo_commit": "76086f13"
7+
"regenerated": "2025-06-26 21:05:33.429451",
8+
"spec_repo_commit": "3211ca1b"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-26 17:56:33.454744",
13-
"spec_repo_commit": "76086f13"
12+
"regenerated": "2025-06-26 21:05:33.445773",
13+
"spec_repo_commit": "3211ca1b"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3439,13 +3439,28 @@ 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+
Mutually exclusive with `focus`.
3446+
example:
3447+
- -30
3448+
- -40
3449+
- 40
3450+
- 30
3451+
items:
3452+
description: The longitudinal or latitudinal coordinates of the bounding
3453+
box.
3454+
format: double
3455+
type: number
3456+
maxItems: 4
3457+
minItems: 4
3458+
type: array
34423459
focus:
34433460
description: The 2-letter ISO code of a country to focus the map on. Or
3444-
`WORLD`.
3461+
`WORLD`. Mutually exclusive with `custom_extent`.
34453462
example: WORLD
34463463
type: string
3447-
required:
3448-
- focus
34493464
type: object
34503465
GeomapWidgetRequest:
34513466
description: An updated geomap widget.

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

Lines changed: 45 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,60 @@
88

99
import com.fasterxml.jackson.annotation.JsonAnyGetter;
1010
import com.fasterxml.jackson.annotation.JsonAnySetter;
11-
import com.fasterxml.jackson.annotation.JsonCreator;
1211
import com.fasterxml.jackson.annotation.JsonIgnore;
1312
import com.fasterxml.jackson.annotation.JsonInclude;
1413
import com.fasterxml.jackson.annotation.JsonProperty;
1514
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
15+
import java.util.ArrayList;
1616
import java.util.HashMap;
17+
import java.util.List;
1718
import java.util.Map;
1819
import java.util.Objects;
1920

2021
/** The view of the world that the map should render. */
21-
@JsonPropertyOrder({GeomapWidgetDefinitionView.JSON_PROPERTY_FOCUS})
22+
@JsonPropertyOrder({
23+
GeomapWidgetDefinitionView.JSON_PROPERTY_CUSTOM_EXTENT,
24+
GeomapWidgetDefinitionView.JSON_PROPERTY_FOCUS
25+
})
2226
@jakarta.annotation.Generated(
2327
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
2428
public class GeomapWidgetDefinitionView {
2529
@JsonIgnore public boolean unparsed = false;
30+
public static final String JSON_PROPERTY_CUSTOM_EXTENT = "custom_extent";
31+
private List<Double> customExtent = null;
32+
2633
public static final String JSON_PROPERTY_FOCUS = "focus";
2734
private String focus;
2835

29-
public GeomapWidgetDefinitionView() {}
36+
public GeomapWidgetDefinitionView customExtent(List<Double> customExtent) {
37+
this.customExtent = customExtent;
38+
return this;
39+
}
3040

31-
@JsonCreator
32-
public GeomapWidgetDefinitionView(
33-
@JsonProperty(required = true, value = JSON_PROPERTY_FOCUS) String focus) {
34-
this.focus = focus;
41+
public GeomapWidgetDefinitionView addCustomExtentItem(Double customExtentItem) {
42+
if (this.customExtent == null) {
43+
this.customExtent = new ArrayList<>();
44+
}
45+
this.customExtent.add(customExtentItem);
46+
return this;
47+
}
48+
49+
/**
50+
* A custom extent of the map defined by an array of four numbers in the order <code>
51+
* [minLongitude, minLatitude, maxLongitude, maxLatitude]</code>. Mutually exclusive with <code>
52+
* focus</code>.
53+
*
54+
* @return customExtent
55+
*/
56+
@jakarta.annotation.Nullable
57+
@JsonProperty(JSON_PROPERTY_CUSTOM_EXTENT)
58+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
59+
public List<Double> getCustomExtent() {
60+
return customExtent;
61+
}
62+
63+
public void setCustomExtent(List<Double> customExtent) {
64+
this.customExtent = customExtent;
3565
}
3666

3767
public GeomapWidgetDefinitionView focus(String focus) {
@@ -40,12 +70,14 @@ public GeomapWidgetDefinitionView focus(String focus) {
4070
}
4171

4272
/**
43-
* The 2-letter ISO code of a country to focus the map on. Or <code>WORLD</code>.
73+
* The 2-letter ISO code of a country to focus the map on. Or <code>WORLD</code>. Mutually
74+
* exclusive with <code>custom_extent</code>.
4475
*
4576
* @return focus
4677
*/
78+
@jakarta.annotation.Nullable
4779
@JsonProperty(JSON_PROPERTY_FOCUS)
48-
@JsonInclude(value = JsonInclude.Include.ALWAYS)
80+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
4981
public String getFocus() {
5082
return focus;
5183
}
@@ -110,20 +142,22 @@ public boolean equals(Object o) {
110142
return false;
111143
}
112144
GeomapWidgetDefinitionView geomapWidgetDefinitionView = (GeomapWidgetDefinitionView) o;
113-
return Objects.equals(this.focus, geomapWidgetDefinitionView.focus)
145+
return Objects.equals(this.customExtent, geomapWidgetDefinitionView.customExtent)
146+
&& Objects.equals(this.focus, geomapWidgetDefinitionView.focus)
114147
&& Objects.equals(
115148
this.additionalProperties, geomapWidgetDefinitionView.additionalProperties);
116149
}
117150

118151
@Override
119152
public int hashCode() {
120-
return Objects.hash(focus, additionalProperties);
153+
return Objects.hash(customExtent, focus, additionalProperties);
121154
}
122155

123156
@Override
124157
public String toString() {
125158
StringBuilder sb = new StringBuilder();
126159
sb.append("class GeomapWidgetDefinitionView {\n");
160+
sb.append(" customExtent: ").append(toIndentedString(customExtent)).append("\n");
127161
sb.append(" focus: ").append(toIndentedString(focus)).append("\n");
128162
sb.append(" additionalProperties: ")
129163
.append(toIndentedString(additionalProperties))

0 commit comments

Comments
 (0)