From 22d22d548317740da884807b0f3910f4649dc33b Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 26 Jun 2025 21:06:07 +0000 Subject: [PATCH] Regenerate client from commit 3211ca1b of spec repo --- .apigentools-info | 8 ++--- .generator/schemas/v1/openapi.yaml | 21 ++++++++++-- .../models/geomap_widget_definition_view.rb | 34 ++++++++++++++----- 3 files changed, 47 insertions(+), 16 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 1b7414f949e..7f7fb821715 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2025-06-26 17:56:17.204143", - "spec_repo_commit": "76086f13" + "regenerated": "2025-06-26 21:05:34.194849", + "spec_repo_commit": "3211ca1b" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2025-06-26 17:56:17.219918", - "spec_repo_commit": "76086f13" + "regenerated": "2025-06-26 21:05:34.211477", + "spec_repo_commit": "3211ca1b" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 3ff83bedc58..9c8dd33e03a 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -3439,13 +3439,28 @@ 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]`. + Mutually exclusive with `focus`. + 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`. + `WORLD`. Mutually exclusive with `custom_extent`. example: WORLD type: string - required: - - focus type: object GeomapWidgetRequest: description: An updated geomap widget. diff --git a/lib/datadog_api_client/v1/models/geomap_widget_definition_view.rb b/lib/datadog_api_client/v1/models/geomap_widget_definition_view.rb index 8f2b0676c7b..1f9df176498 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_definition_view.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_definition_view.rb @@ -21,8 +21,11 @@ module DatadogAPIClient::V1 class GeomapWidgetDefinitionView include BaseGenericModel - # The 2-letter ISO code of a country to focus the map on. Or `WORLD`. - attr_reader :focus + # A custom extent of the map defined by an array of four numbers in the order `[minLongitude, minLatitude, maxLongitude, maxLatitude]`. Mutually exclusive with `focus`. + attr_reader :custom_extent + + # The 2-letter ISO code of a country to focus the map on. Or `WORLD`. Mutually exclusive with `custom_extent`. + attr_accessor :focus attr_accessor :additional_properties @@ -30,6 +33,7 @@ class GeomapWidgetDefinitionView # @!visibility private def self.attribute_map { + :'custom_extent' => :'custom_extent', :'focus' => :'focus' } end @@ -38,6 +42,7 @@ def self.attribute_map # @!visibility private def self.openapi_types { + :'custom_extent' => :'Array', :'focus' => :'String' } end @@ -60,6 +65,12 @@ def initialize(attributes = {}) end } + if attributes.key?(:'custom_extent') + if (value = attributes[:'custom_extent']).is_a?(Array) + self.custom_extent = value + end + end + if attributes.key?(:'focus') self.focus = attributes[:'focus'] end @@ -69,18 +80,22 @@ def initialize(attributes = {}) # @return true if the model is valid # @!visibility private def valid? - return false if @focus.nil? + return false if !@custom_extent.nil? && @custom_extent.length > 4 + return false if !@custom_extent.nil? && @custom_extent.length < 4 true end # Custom attribute writer method with validation - # @param focus [Object] Object to be assigned + # @param custom_extent [Object] Object to be assigned # @!visibility private - def focus=(focus) - if focus.nil? - fail ArgumentError, 'invalid value for "focus", focus cannot be nil.' + def custom_extent=(custom_extent) + if !custom_extent.nil? && custom_extent.length > 4 + fail ArgumentError, 'invalid value for "custom_extent", number of items must be less than or equal to 4.' + end + if !custom_extent.nil? && custom_extent.length < 4 + fail ArgumentError, 'invalid value for "custom_extent", number of items must be greater than or equal to 4.' end - @focus = focus + @custom_extent = custom_extent end # Returns the object in the form of hash, with additionalProperties support. @@ -109,6 +124,7 @@ def to_hash def ==(o) return true if self.equal?(o) self.class == o.class && + custom_extent == o.custom_extent && focus == o.focus && additional_properties == o.additional_properties end @@ -117,7 +133,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [focus, additional_properties].hash + [custom_extent, focus, additional_properties].hash end end end