Skip to content

Commit 6eb6ad5

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit c06a9618 of spec repo
1 parent 413fb07 commit 6eb6ad5

File tree

3 files changed

+57
-6
lines changed

3 files changed

+57
-6
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-26 17:56:23.043504",
8-
"spec_repo_commit": "76086f13"
7+
"regenerated": "2025-06-26 20:42:33.176304",
8+
"spec_repo_commit": "c06a9618"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-26 17:56:23.062756",
13-
"spec_repo_commit": "76086f13"
12+
"regenerated": "2025-06-26 20:42:33.193106",
13+
"spec_repo_commit": "c06a9618"
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+
- -30
3447+
- -40
3448+
- 40
3449+
- 30
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`.

api/datadogV1/model_geomap_widget_definition_view.go

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import (
1212

1313
// GeomapWidgetDefinitionView The view of the world that the map should render.
1414
type GeomapWidgetDefinitionView struct {
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"`
1517
// The 2-letter ISO code of a country to focus the map on. Or `WORLD`.
1618
Focus string `json:"focus"`
1719
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
@@ -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)