diff --git a/.generated-info b/.generated-info index 7267d84800..ff3976e6b6 100644 --- a/.generated-info +++ b/.generated-info @@ -1,4 +1,4 @@ { - "spec_repo_commit": "3a6cb30", - "generated": "2025-08-12 15:41:29.674" + "spec_repo_commit": "6b8994f", + "generated": "2025-08-13 15:22:27.709" } diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index f6e0e21ed7..88a12de4fc 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -3446,9 +3446,25 @@ components: example: focus: WORLD properties: + custom_extent: + description: A custom extent of the map defined by an array of four numbers + in the order `[minLongitude, minLatitude, maxLongitude, maxLatitude]`. + example: + - -30 + - -40 + - 40 + - 30 + items: + description: The longitudinal or latitudinal coordinates of the bounding + box. + format: double + type: number + maxItems: 4 + minItems: 4 + type: array focus: - description: The 2-letter ISO code of a country to focus the map on. Or - `WORLD`. + description: The ISO code of a country, sub-division, or region to focus + the map on. Or `WORLD`. Mutually exclusive with `custom_extent`. example: WORLD type: string required: diff --git a/src/datadog_api_client/v1/model/geomap_widget_definition_view.py b/src/datadog_api_client/v1/model/geomap_widget_definition_view.py index da0d9b6936..3f3a3f7d8d 100644 --- a/src/datadog_api_client/v1/model/geomap_widget_definition_view.py +++ b/src/datadog_api_client/v1/model/geomap_widget_definition_view.py @@ -3,31 +3,48 @@ # Copyright 2019-Present Datadog, Inc. from __future__ import annotations +from typing import List, Union from datadog_api_client.model_utils import ( ModelNormal, cached_property, + unset, + UnsetType, ) class GeomapWidgetDefinitionView(ModelNormal): + validations = { + "custom_extent": { + "max_items": 4, + "min_items": 4, + }, + } + @cached_property def openapi_types(_): return { + "custom_extent": ([float],), "focus": (str,), } attribute_map = { + "custom_extent": "custom_extent", "focus": "focus", } - def __init__(self_, focus: str, **kwargs): + def __init__(self_, focus: str, custom_extent: Union[List[float], UnsetType] = unset, **kwargs): """ The view of the world that the map should render. - :param focus: The 2-letter ISO code of a country to focus the map on. Or ``WORLD``. + :param custom_extent: A custom extent of the map defined by an array of four numbers in the order ``[minLongitude, minLatitude, maxLongitude, maxLatitude]``. + :type custom_extent: [float], optional + + :param focus: The ISO code of a country, sub-division, or region to focus the map on. Or ``WORLD``. Mutually exclusive with ``custom_extent``. :type focus: str """ + if custom_extent is not unset: + kwargs["custom_extent"] = custom_extent super().__init__(kwargs) self_.focus = focus