Skip to content

Commit a5385ad

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 6b8994f of spec repo
1 parent 30fabd4 commit a5385ad

File tree

3 files changed

+39
-5
lines changed

3 files changed

+39
-5
lines changed

.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:46:06.984"
2+
"spec_repo_commit": "6b8994f",
3+
"generated": "2025-08-13 15:27:22.639"
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/datadogV1/model/model_geomap_widget_definition_view.rs

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ use std::fmt::{self, Formatter};
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]
1313
pub struct GeomapWidgetDefinitionView {
14-
/// The 2-letter ISO code of a country to focus the map on. Or `WORLD`.
14+
/// A custom extent of the map defined by an array of four numbers in the order `[minLongitude, minLatitude, maxLongitude, maxLatitude]`.
15+
#[serde(rename = "custom_extent")]
16+
pub custom_extent: Option<Vec<f64>>,
17+
/// The ISO code of a country, sub-division, or region to focus the map on. Or `WORLD`. Mutually exclusive with `custom_extent`.
1518
#[serde(rename = "focus")]
1619
pub focus: String,
1720
#[serde(flatten)]
@@ -24,12 +27,18 @@ pub struct GeomapWidgetDefinitionView {
2427
impl GeomapWidgetDefinitionView {
2528
pub fn new(focus: String) -> GeomapWidgetDefinitionView {
2629
GeomapWidgetDefinitionView {
30+
custom_extent: None,
2731
focus,
2832
additional_properties: std::collections::BTreeMap::new(),
2933
_unparsed: false,
3034
}
3135
}
3236

37+
pub fn custom_extent(mut self, value: Vec<f64>) -> Self {
38+
self.custom_extent = Some(value);
39+
self
40+
}
41+
3342
pub fn additional_properties(
3443
mut self,
3544
value: std::collections::BTreeMap<String, serde_json::Value>,
@@ -56,6 +65,7 @@ impl<'de> Deserialize<'de> for GeomapWidgetDefinitionView {
5665
where
5766
M: MapAccess<'a>,
5867
{
68+
let mut custom_extent: Option<Vec<f64>> = None;
5969
let mut focus: Option<String> = None;
6070
let mut additional_properties: std::collections::BTreeMap<
6171
String,
@@ -65,6 +75,13 @@ impl<'de> Deserialize<'de> for GeomapWidgetDefinitionView {
6575

6676
while let Some((k, v)) = map.next_entry::<String, serde_json::Value>()? {
6777
match k.as_str() {
78+
"custom_extent" => {
79+
if v.is_null() {
80+
continue;
81+
}
82+
custom_extent =
83+
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
84+
}
6885
"focus" => {
6986
focus = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
7087
}
@@ -78,6 +95,7 @@ impl<'de> Deserialize<'de> for GeomapWidgetDefinitionView {
7895
let focus = focus.ok_or_else(|| M::Error::missing_field("focus"))?;
7996

8097
let content = GeomapWidgetDefinitionView {
98+
custom_extent,
8199
focus,
82100
additional_properties,
83101
_unparsed,

0 commit comments

Comments
 (0)