diff --git a/.apigentools-info b/.apigentools-info index 5055abec4b9..14231871d91 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-10-04 10:38:19.185228", - "spec_repo_commit": "7a63d530" + "regenerated": "2024-10-04 13:48:04.846310", + "spec_repo_commit": "7679754f" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-10-04 10:38:19.200021", - "spec_repo_commit": "7a63d530" + "regenerated": "2024-10-04 13:48:04.862359", + "spec_repo_commit": "7679754f" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 7bdcbc0abc4..29e93dcdc3b 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -22548,18 +22548,18 @@ components: type: integer x: description: The position of the widget on the x (horizontal) axis. Should - be a non-negative integer. + be a non-negative number. example: 0 - format: int64 + format: double minimum: 0 - type: integer + type: number y: description: The position of the widget on the y (vertical) axis. Should - be a non-negative integer. + be a non-negative number. example: 0 - format: int64 + format: double minimum: 0 - type: integer + type: number required: - x - y diff --git a/api/datadogV1/model_widget_layout.go b/api/datadogV1/model_widget_layout.go index 364d98c9544..bcfefc29daf 100644 --- a/api/datadogV1/model_widget_layout.go +++ b/api/datadogV1/model_widget_layout.go @@ -19,10 +19,10 @@ type WidgetLayout struct { IsColumnBreak *bool `json:"is_column_break,omitempty"` // The width of the widget. Should be a non-negative integer. Width int64 `json:"width"` - // The position of the widget on the x (horizontal) axis. Should be a non-negative integer. - X int64 `json:"x"` - // The position of the widget on the y (vertical) axis. Should be a non-negative integer. - Y int64 `json:"y"` + // The position of the widget on the x (horizontal) axis. Should be a non-negative number. + X float64 `json:"x"` + // The position of the widget on the y (vertical) axis. Should be a non-negative number. + Y float64 `json:"y"` // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct UnparsedObject map[string]interface{} `json:"-"` AdditionalProperties map[string]interface{} `json:"-"` @@ -32,7 +32,7 @@ type WidgetLayout struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed. -func NewWidgetLayout(height int64, width int64, x int64, y int64) *WidgetLayout { +func NewWidgetLayout(height int64, width int64, x float64, y float64) *WidgetLayout { this := WidgetLayout{} this.Height = height this.Width = width @@ -124,9 +124,9 @@ func (o *WidgetLayout) SetWidth(v int64) { } // GetX returns the X field value. -func (o *WidgetLayout) GetX() int64 { +func (o *WidgetLayout) GetX() float64 { if o == nil { - var ret int64 + var ret float64 return ret } return o.X @@ -134,7 +134,7 @@ func (o *WidgetLayout) GetX() int64 { // GetXOk returns a tuple with the X field value // and a boolean to check if the value has been set. -func (o *WidgetLayout) GetXOk() (*int64, bool) { +func (o *WidgetLayout) GetXOk() (*float64, bool) { if o == nil { return nil, false } @@ -142,14 +142,14 @@ func (o *WidgetLayout) GetXOk() (*int64, bool) { } // SetX sets field value. -func (o *WidgetLayout) SetX(v int64) { +func (o *WidgetLayout) SetX(v float64) { o.X = v } // GetY returns the Y field value. -func (o *WidgetLayout) GetY() int64 { +func (o *WidgetLayout) GetY() float64 { if o == nil { - var ret int64 + var ret float64 return ret } return o.Y @@ -157,7 +157,7 @@ func (o *WidgetLayout) GetY() int64 { // GetYOk returns a tuple with the Y field value // and a boolean to check if the value has been set. -func (o *WidgetLayout) GetYOk() (*int64, bool) { +func (o *WidgetLayout) GetYOk() (*float64, bool) { if o == nil { return nil, false } @@ -165,7 +165,7 @@ func (o *WidgetLayout) GetYOk() (*int64, bool) { } // SetY sets field value. -func (o *WidgetLayout) SetY(v int64) { +func (o *WidgetLayout) SetY(v float64) { o.Y = v } @@ -192,11 +192,11 @@ func (o WidgetLayout) MarshalJSON() ([]byte, error) { // UnmarshalJSON deserializes the given payload. func (o *WidgetLayout) UnmarshalJSON(bytes []byte) (err error) { all := struct { - Height *int64 `json:"height"` - IsColumnBreak *bool `json:"is_column_break,omitempty"` - Width *int64 `json:"width"` - X *int64 `json:"x"` - Y *int64 `json:"y"` + Height *int64 `json:"height"` + IsColumnBreak *bool `json:"is_column_break,omitempty"` + Width *int64 `json:"width"` + X *float64 `json:"x"` + Y *float64 `json:"y"` }{} if err = datadog.Unmarshal(bytes, &all); err != nil { return datadog.Unmarshal(bytes, &o.UnparsedObject)