diff --git a/.apigentools-info b/.apigentools-info index 55616e50fd..6b2919ec10 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2025-06-06 14:53:22.275829", - "spec_repo_commit": "e591d5d4" + "regenerated": "2025-06-06 17:05:55.639965", + "spec_repo_commit": "b8f8eb97" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2025-06-06 14:53:22.290847", - "spec_repo_commit": "e591d5d4" + "regenerated": "2025-06-06 17:05:55.654783", + "spec_repo_commit": "b8f8eb97" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 1ad9e34e1c..0617e7f372 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -3439,6 +3439,22 @@ 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`. 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..e5e188f16e 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 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 2-letter ISO code of a country to focus the map on. Or ``WORLD``. :type focus: str """ + if custom_extent is not unset: + kwargs["custom_extent"] = custom_extent super().__init__(kwargs) self_.focus = focus