Skip to content

Commit dd6f675

Browse files
committed
Add Get Widgets Method to Screenboard
1 parent 5d72a83 commit dd6f675

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

datadog-accessors.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6523,6 +6523,23 @@ func (s *Screenboard) SetWidth(v int) {
65236523
s.Width = &v
65246524
}
65256525

6526+
// GetWidgets returns the []Widget field if non-nil, zero value otherwise.
6527+
func (s *Screenboard) GetWidgets() []Widget {
6528+
if s == nil || s.Widgets == nil {
6529+
return []Widget{}
6530+
}
6531+
return s.Widgets
6532+
}
6533+
6534+
// GetWidgetsByOk returns a tuple with the []Widget field if it's non-nil, zero value otherwise
6535+
// and a boolean to check if the value has been set.
6536+
func (s *Screenboard) GetWidgetsByOk() ([]Widget, bool) {
6537+
if s == nil || s.Widgets == nil {
6538+
return []Widget{}, false
6539+
}
6540+
return s.Widgets, true
6541+
}
6542+
65266543
// GetId returns the Id field if non-nil, zero value otherwise.
65276544
func (s *ScreenboardLite) GetId() int {
65286545
if s == nil || s.Id == nil {

0 commit comments

Comments
 (0)