Skip to content

Commit 5e8ac13

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 546fde5 of spec repo
1 parent 4895fb3 commit 5e8ac13

File tree

3 files changed

+39
-6
lines changed

3 files changed

+39
-6
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": "d02c8a3",
3-
"generated": "2025-08-08 12:07:20.979"
2+
"spec_repo_commit": "546fde5",
3+
"generated": "2025-08-08 19:31:48.290"
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/datadog_api_client/v1/model/geomap_widget_definition_view.py

Lines changed: 19 additions & 2 deletions
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
28-
:param focus: The 2-letter ISO code of a country to focus the map on. Or ``WORLD``.
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+
43+
:param focus: The ISO code of a country, sub-division, or region to focus the map on. Or ``WORLD``. Mutually exclusive with ``custom_extent``.
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)