Skip to content

Commit eb20773

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit ac5e3fc2 of spec repo
1 parent 4806569 commit eb20773

File tree

3 files changed

+38
-5
lines changed

3 files changed

+38
-5
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-18 13:32:33.091008",
8-
"spec_repo_commit": "5e49afe1"
7+
"regenerated": "2025-06-18 19:58:21.895997",
8+
"spec_repo_commit": "ac5e3fc2"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-18 13:32:33.105798",
13-
"spec_repo_commit": "5e49afe1"
12+
"regenerated": "2025-06-18 19:58:22.007751",
13+
"spec_repo_commit": "ac5e3fc2"
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/datadog_api_client/v1/model/geomap_widget_definition_view.py

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,48 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6+
from typing import List, Union
67

78
from datadog_api_client.model_utils import (
89
ModelNormal,
910
cached_property,
11+
unset,
12+
UnsetType,
1013
)
1114

1215

1316
class GeomapWidgetDefinitionView(ModelNormal):
17+
validations = {
18+
"custom_extent": {
19+
"max_items": 4,
20+
"min_items": 4,
21+
},
22+
}
23+
1424
@cached_property
1525
def openapi_types(_):
1626
return {
27+
"custom_extent": ([float],),
1728
"focus": (str,),
1829
}
1930

2031
attribute_map = {
32+
"custom_extent": "custom_extent",
2133
"focus": "focus",
2234
}
2335

24-
def __init__(self_, focus: str, **kwargs):
36+
def __init__(self_, focus: str, custom_extent: Union[List[float], UnsetType] = unset, **kwargs):
2537
"""
2638
The view of the world that the map should render.
2739
40+
:param custom_extent: A custom extent of the map defined by an array of four numbers in the order ``[minLongitude, minLatitude, maxLongitude, maxLatitude]``.
41+
:type custom_extent: [float], optional
42+
2843
:param focus: The 2-letter ISO code of a country to focus the map on. Or ``WORLD``.
2944
:type focus: str
3045
"""
46+
if custom_extent is not unset:
47+
kwargs["custom_extent"] = custom_extent
3148
super().__init__(kwargs)
3249

3350
self_.focus = focus

0 commit comments

Comments
 (0)