Skip to content

Commit a159d93

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 3211ca1b of spec repo
1 parent 1a13175 commit a159d93

File tree

3 files changed

+46
-12
lines changed

3 files changed

+46
-12
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:18.417997",
8-
"spec_repo_commit": "76086f13"
7+
"regenerated": "2025-06-26 21:05:33.669388",
8+
"spec_repo_commit": "3211ca1b"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-26 17:56:18.433709",
13-
"spec_repo_commit": "76086f13"
12+
"regenerated": "2025-06-26 21:05:33.684429",
13+
"spec_repo_commit": "3211ca1b"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3439,13 +3439,28 @@ 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+
Mutually exclusive with `focus`.
3446+
example:
3447+
- -30
3448+
- -40
3449+
- 40
3450+
- 30
3451+
items:
3452+
description: The longitudinal or latitudinal coordinates of the bounding
3453+
box.
3454+
format: double
3455+
type: number
3456+
maxItems: 4
3457+
minItems: 4
3458+
type: array
34423459
focus:
34433460
description: The 2-letter ISO code of a country to focus the map on. Or
3444-
`WORLD`.
3461+
`WORLD`. Mutually exclusive with `custom_extent`.
34453462
example: WORLD
34463463
type: string
3447-
required:
3448-
- focus
34493464
type: object
34503465
GeomapWidgetRequest:
34513466
description: An updated geomap widget.

src/datadog_api_client/v1/model/geomap_widget_definition_view.py

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,50 @@
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__(
37+
self_, custom_extent: Union[List[float], UnsetType] = unset, focus: Union[str, UnsetType] = unset, **kwargs
38+
):
2539
"""
2640
The view of the world that the map should render.
2741
28-
:param focus: The 2-letter ISO code of a country to focus the map on. Or ``WORLD``.
29-
:type focus: str
42+
:param custom_extent: A custom extent of the map defined by an array of four numbers in the order ``[minLongitude, minLatitude, maxLongitude, maxLatitude]``. Mutually exclusive with ``focus``.
43+
:type custom_extent: [float], optional
44+
45+
:param focus: The 2-letter ISO code of a country to focus the map on. Or ``WORLD``. Mutually exclusive with ``custom_extent``.
46+
:type focus: str, optional
3047
"""
48+
if custom_extent is not unset:
49+
kwargs["custom_extent"] = custom_extent
50+
if focus is not unset:
51+
kwargs["focus"] = focus
3152
super().__init__(kwargs)
32-
33-
self_.focus = focus

0 commit comments

Comments
 (0)