Skip to content

Commit bcc258a

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 6b8994f of spec repo
1 parent 8d2477b commit bcc258a

File tree

3 files changed

+58
-7
lines changed

3 files changed

+58
-7
lines changed

.generated-info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"spec_repo_commit": "3a6cb30",
3-
"generated": "2025-08-12 15:42:59.495"
2+
"spec_repo_commit": "6b8994f",
3+
"generated": "2025-08-13 15:23:37.731"
44
}

.generator/schemas/v1/openapi.yaml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3446,9 +3446,25 @@ components:
34463446
example:
34473447
focus: WORLD
34483448
properties:
3449+
custom_extent:
3450+
description: A custom extent of the map defined by an array of four numbers
3451+
in the order `[minLongitude, minLatitude, maxLongitude, maxLatitude]`.
3452+
example:
3453+
- -30
3454+
- -40
3455+
- 40
3456+
- 30
3457+
items:
3458+
description: The longitudinal or latitudinal coordinates of the bounding
3459+
box.
3460+
format: double
3461+
type: number
3462+
maxItems: 4
3463+
minItems: 4
3464+
type: array
34493465
focus:
3450-
description: The 2-letter ISO code of a country to focus the map on. Or
3451-
`WORLD`.
3466+
description: The ISO code of a country, sub-division, or region to focus
3467+
the map on. Or `WORLD`. Mutually exclusive with `custom_extent`.
34523468
example: WORLD
34533469
type: string
34543470
required:

api/datadogV1/model_geomap_widget_definition_view.go

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ import (
1212

1313
// GeomapWidgetDefinitionView The view of the world that the map should render.
1414
type GeomapWidgetDefinitionView struct {
15-
// The 2-letter ISO code of a country to focus the map on. Or `WORLD`.
15+
// A custom extent of the map defined by an array of four numbers in the order `[minLongitude, minLatitude, maxLongitude, maxLatitude]`.
16+
CustomExtent []float64 `json:"custom_extent,omitempty"`
17+
// The ISO code of a country, sub-division, or region to focus the map on. Or `WORLD`. Mutually exclusive with `custom_extent`.
1618
Focus string `json:"focus"`
1719
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
1820
UnparsedObject map[string]interface{} `json:"-"`
@@ -37,6 +39,34 @@ func NewGeomapWidgetDefinitionViewWithDefaults() *GeomapWidgetDefinitionView {
3739
return &this
3840
}
3941

42+
// GetCustomExtent returns the CustomExtent field value if set, zero value otherwise.
43+
func (o *GeomapWidgetDefinitionView) GetCustomExtent() []float64 {
44+
if o == nil || o.CustomExtent == nil {
45+
var ret []float64
46+
return ret
47+
}
48+
return o.CustomExtent
49+
}
50+
51+
// GetCustomExtentOk returns a tuple with the CustomExtent field value if set, nil otherwise
52+
// and a boolean to check if the value has been set.
53+
func (o *GeomapWidgetDefinitionView) GetCustomExtentOk() (*[]float64, bool) {
54+
if o == nil || o.CustomExtent == nil {
55+
return nil, false
56+
}
57+
return &o.CustomExtent, true
58+
}
59+
60+
// HasCustomExtent returns a boolean if a field has been set.
61+
func (o *GeomapWidgetDefinitionView) HasCustomExtent() bool {
62+
return o != nil && o.CustomExtent != nil
63+
}
64+
65+
// SetCustomExtent gets a reference to the given []float64 and assigns it to the CustomExtent field.
66+
func (o *GeomapWidgetDefinitionView) SetCustomExtent(v []float64) {
67+
o.CustomExtent = v
68+
}
69+
4070
// GetFocus returns the Focus field value.
4171
func (o *GeomapWidgetDefinitionView) GetFocus() string {
4272
if o == nil {
@@ -66,6 +96,9 @@ func (o GeomapWidgetDefinitionView) MarshalJSON() ([]byte, error) {
6696
if o.UnparsedObject != nil {
6797
return datadog.Marshal(o.UnparsedObject)
6898
}
99+
if o.CustomExtent != nil {
100+
toSerialize["custom_extent"] = o.CustomExtent
101+
}
69102
toSerialize["focus"] = o.Focus
70103

71104
for key, value := range o.AdditionalProperties {
@@ -77,7 +110,8 @@ func (o GeomapWidgetDefinitionView) MarshalJSON() ([]byte, error) {
77110
// UnmarshalJSON deserializes the given payload.
78111
func (o *GeomapWidgetDefinitionView) UnmarshalJSON(bytes []byte) (err error) {
79112
all := struct {
80-
Focus *string `json:"focus"`
113+
CustomExtent []float64 `json:"custom_extent,omitempty"`
114+
Focus *string `json:"focus"`
81115
}{}
82116
if err = datadog.Unmarshal(bytes, &all); err != nil {
83117
return datadog.Unmarshal(bytes, &o.UnparsedObject)
@@ -87,10 +121,11 @@ func (o *GeomapWidgetDefinitionView) UnmarshalJSON(bytes []byte) (err error) {
87121
}
88122
additionalProperties := make(map[string]interface{})
89123
if err = datadog.Unmarshal(bytes, &additionalProperties); err == nil {
90-
datadog.DeleteKeys(additionalProperties, &[]string{"focus"})
124+
datadog.DeleteKeys(additionalProperties, &[]string{"custom_extent", "focus"})
91125
} else {
92126
return err
93127
}
128+
o.CustomExtent = all.CustomExtent
94129
o.Focus = *all.Focus
95130

96131
if len(additionalProperties) > 0 {

0 commit comments

Comments
 (0)