Skip to content

Commit 83ab8af

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 0a8cf618 of spec repo
1 parent 91ed0a3 commit 83ab8af

File tree

3 files changed

+48
-5
lines changed

3 files changed

+48
-5
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-05 09:49:42.393551",
8-
"spec_repo_commit": "faa72400"
7+
"regenerated": "2025-06-05 19:53:59.295955",
8+
"spec_repo_commit": "0a8cf618"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-05 09:49:42.410269",
13-
"spec_repo_commit": "faa72400"
12+
"regenerated": "2025-06-05 19:53:59.313568",
13+
"spec_repo_commit": "0a8cf618"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3439,6 +3439,22 @@ 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+
example:
3446+
- -50
3447+
- -50
3448+
- 50
3449+
- 50
3450+
items:
3451+
description: The longitudinal or latitudinal coordinates of the bounding
3452+
box.
3453+
format: double
3454+
type: number
3455+
maxItems: 4
3456+
minItems: 4
3457+
type: array
34423458
focus:
34433459
description: The 2-letter ISO code of a country to focus the map on. Or
34443460
`WORLD`.

lib/datadog_api_client/v1/models/geomap_widget_definition_view.rb

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ module DatadogAPIClient::V1
2121
class GeomapWidgetDefinitionView
2222
include BaseGenericModel
2323

24+
# A custom extent of the map defined by an array of four numbers in the order `[minLongitude, minLatitude, maxLongitude, maxLatitude]`.
25+
attr_reader :custom_extent
26+
2427
# The 2-letter ISO code of a country to focus the map on. Or `WORLD`.
2528
attr_reader :focus
2629

@@ -30,6 +33,7 @@ class GeomapWidgetDefinitionView
3033
# @!visibility private
3134
def self.attribute_map
3235
{
36+
:'custom_extent' => :'custom_extent',
3337
:'focus' => :'focus'
3438
}
3539
end
@@ -38,6 +42,7 @@ def self.attribute_map
3842
# @!visibility private
3943
def self.openapi_types
4044
{
45+
:'custom_extent' => :'Array<Float>',
4146
:'focus' => :'String'
4247
}
4348
end
@@ -60,6 +65,12 @@ def initialize(attributes = {})
6065
end
6166
}
6267

68+
if attributes.key?(:'custom_extent')
69+
if (value = attributes[:'custom_extent']).is_a?(Array)
70+
self.custom_extent = value
71+
end
72+
end
73+
6374
if attributes.key?(:'focus')
6475
self.focus = attributes[:'focus']
6576
end
@@ -69,10 +80,25 @@ def initialize(attributes = {})
6980
# @return true if the model is valid
7081
# @!visibility private
7182
def valid?
83+
return false if !@custom_extent.nil? && @custom_extent.length > 4
84+
return false if !@custom_extent.nil? && @custom_extent.length < 4
7285
return false if @focus.nil?
7386
true
7487
end
7588

89+
# Custom attribute writer method with validation
90+
# @param custom_extent [Object] Object to be assigned
91+
# @!visibility private
92+
def custom_extent=(custom_extent)
93+
if !custom_extent.nil? && custom_extent.length > 4
94+
fail ArgumentError, 'invalid value for "custom_extent", number of items must be less than or equal to 4.'
95+
end
96+
if !custom_extent.nil? && custom_extent.length < 4
97+
fail ArgumentError, 'invalid value for "custom_extent", number of items must be greater than or equal to 4.'
98+
end
99+
@custom_extent = custom_extent
100+
end
101+
76102
# Custom attribute writer method with validation
77103
# @param focus [Object] Object to be assigned
78104
# @!visibility private
@@ -109,6 +135,7 @@ def to_hash
109135
def ==(o)
110136
return true if self.equal?(o)
111137
self.class == o.class &&
138+
custom_extent == o.custom_extent &&
112139
focus == o.focus &&
113140
additional_properties == o.additional_properties
114141
end
@@ -117,7 +144,7 @@ def ==(o)
117144
# @return [Integer] Hash code
118145
# @!visibility private
119146
def hash
120-
[focus, additional_properties].hash
147+
[custom_extent, focus, additional_properties].hash
121148
end
122149
end
123150
end

0 commit comments

Comments
 (0)