Skip to content

Commit ae58ef7

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit c06a9618 of spec repo
1 parent d4f657a commit ae58ef7

File tree

3 files changed

+38
-4
lines changed

3 files changed

+38
-4
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:17.758022",
8-
"spec_repo_commit": "76086f13"
7+
"regenerated": "2025-06-26 20:42:28.809036",
8+
"spec_repo_commit": "c06a9618"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-26 17:56:17.774479",
13-
"spec_repo_commit": "76086f13"
12+
"regenerated": "2025-06-26 20:42:28.828192",
13+
"spec_repo_commit": "c06a9618"
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/datadogV1/model/model_geomap_widget_definition_view.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ use std::fmt::{self, Formatter};
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]
1313
pub struct GeomapWidgetDefinitionView {
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>>,
1417
/// The 2-letter ISO code of a country to focus the map on. Or `WORLD`.
1518
#[serde(rename = "focus")]
1619
pub focus: String,
@@ -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)