Skip to content

Commit 81ed5c8

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 6b8994f of spec repo
1 parent 19efe11 commit 81ed5c8

3 files changed

Lines changed: 65 additions & 8 deletions

File tree

.generated-info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"spec_repo_commit": "3a6cb30",
3-
"generated": "2025-08-12 15:42:33.726"
2+
"spec_repo_commit": "6b8994f",
3+
"generated": "2025-08-13 15:23:41.059"
44
}

.generator/schemas/v1/openapi.yaml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3446,9 +3446,25 @@ components:
34463446
example:
34473447
focus: WORLD
34483448
properties:
3449+
custom_extent:
3450+
description: A custom extent of the map defined by an array of four numbers
3451+
in the order `[minLongitude, minLatitude, maxLongitude, maxLatitude]`.
3452+
example:
3453+
- -30
3454+
- -40
3455+
- 40
3456+
- 30
3457+
items:
3458+
description: The longitudinal or latitudinal coordinates of the bounding
3459+
box.
3460+
format: double
3461+
type: number
3462+
maxItems: 4
3463+
minItems: 4
3464+
type: array
34493465
focus:
3450-
description: The 2-letter ISO code of a country to focus the map on. Or
3451-
`WORLD`.
3466+
description: The ISO code of a country, sub-division, or region to focus
3467+
the map on. Or `WORLD`. Mutually exclusive with `custom_extent`.
34523468
example: WORLD
34533469
type: string
34543470
required:

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

Lines changed: 45 additions & 4 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,13 +42,44 @@ 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;
4078
}
4179

4280
/**
43-
* The 2-letter ISO code of a country to focus the map on. Or <code>WORLD</code>.
81+
* The ISO code of a country, sub-division, or region to focus the map on. Or <code>WORLD</code>.
82+
* Mutually exclusive with <code>custom_extent</code>.
4483
*
4584
* @return focus
4685
*/
@@ -110,20 +149,22 @@ public boolean equals(Object o) {
110149
return false;
111150
}
112151
GeomapWidgetDefinitionView geomapWidgetDefinitionView = (GeomapWidgetDefinitionView) o;
113-
return Objects.equals(this.focus, geomapWidgetDefinitionView.focus)
152+
return Objects.equals(this.customExtent, geomapWidgetDefinitionView.customExtent)
153+
&& Objects.equals(this.focus, geomapWidgetDefinitionView.focus)
114154
&& Objects.equals(
115155
this.additionalProperties, geomapWidgetDefinitionView.additionalProperties);
116156
}
117157

118158
@Override
119159
public int hashCode() {
120-
return Objects.hash(focus, additionalProperties);
160+
return Objects.hash(customExtent, focus, additionalProperties);
121161
}
122162

123163
@Override
124164
public String toString() {
125165
StringBuilder sb = new StringBuilder();
126166
sb.append("class GeomapWidgetDefinitionView {\n");
167+
sb.append(" customExtent: ").append(toIndentedString(customExtent)).append("\n");
127168
sb.append(" focus: ").append(toIndentedString(focus)).append("\n");
128169
sb.append(" additionalProperties: ")
129170
.append(toIndentedString(additionalProperties))

0 commit comments

Comments
 (0)