@@ -11,6 +11,7 @@ package datadog
11
11
12
12
import (
13
13
"encoding/json"
14
+ "fmt"
14
15
)
15
16
16
17
// GetCreator returns the Creator field if non-nil, zero value otherwise.
@@ -6556,19 +6557,21 @@ func (s *Screenboard) SetTitle(v string) {
6556
6557
6557
6558
// GetWidth returns the Width field if non-nil, zero value otherwise.
6558
6559
func (s * Screenboard ) GetWidth () int {
6559
- if s == nil || s .Width == nil {
6560
+ num , err := s .Width .Int64 ()
6561
+ if err != nil || s == nil || s .Width == nil {
6560
6562
return 0
6561
6563
}
6562
- return * s . Width
6564
+ return int ( num )
6563
6565
}
6564
6566
6565
6567
// GetWidthOk returns a tuple with the Width field if it's non-nil, zero value otherwise
6566
6568
// and a boolean to check if the value has been set.
6567
6569
func (s * Screenboard ) GetWidthOk () (int , bool ) {
6568
- if s == nil || s .Width == nil {
6570
+ num , err := s .Width .Int64 ()
6571
+ if err != nil || s == nil || s .Width == nil {
6569
6572
return 0 , false
6570
6573
}
6571
- return * s . Width , true
6574
+ return int ( num ) , true
6572
6575
}
6573
6576
6574
6577
// HasWidth returns a boolean if a field has been set.
@@ -6582,7 +6585,8 @@ func (s *Screenboard) HasWidth() bool {
6582
6585
6583
6586
// SetWidth allocates a new s.Width and returns the pointer to it.
6584
6587
func (s * Screenboard ) SetWidth (v int ) {
6585
- s .Width = & v
6588
+ width := json .Number (fmt .Sprint (v ))
6589
+ s .Width = & width
6586
6590
}
6587
6591
6588
6592
// GetId returns the Id field if non-nil, zero value otherwise.
0 commit comments