@@ -665,6 +665,10 @@ func (a *MonitorsApi) GetMonitorNotificationRule(ctx _context.Context, ruleId st
665665
666666// GetMonitorNotificationRulesOptionalParameters holds optional parameters for GetMonitorNotificationRules.
667667type GetMonitorNotificationRulesOptionalParameters struct {
668+ Page * int32
669+ PerPage * int32
670+ Sort * string
671+ Filters * string
668672 Include * string
669673}
670674
@@ -674,6 +678,30 @@ func NewGetMonitorNotificationRulesOptionalParameters() *GetMonitorNotificationR
674678 return & this
675679}
676680
681+ // WithPage sets the corresponding parameter name and returns the struct.
682+ func (r * GetMonitorNotificationRulesOptionalParameters ) WithPage (page int32 ) * GetMonitorNotificationRulesOptionalParameters {
683+ r .Page = & page
684+ return r
685+ }
686+
687+ // WithPerPage sets the corresponding parameter name and returns the struct.
688+ func (r * GetMonitorNotificationRulesOptionalParameters ) WithPerPage (perPage int32 ) * GetMonitorNotificationRulesOptionalParameters {
689+ r .PerPage = & perPage
690+ return r
691+ }
692+
693+ // WithSort sets the corresponding parameter name and returns the struct.
694+ func (r * GetMonitorNotificationRulesOptionalParameters ) WithSort (sort string ) * GetMonitorNotificationRulesOptionalParameters {
695+ r .Sort = & sort
696+ return r
697+ }
698+
699+ // WithFilters sets the corresponding parameter name and returns the struct.
700+ func (r * GetMonitorNotificationRulesOptionalParameters ) WithFilters (filters string ) * GetMonitorNotificationRulesOptionalParameters {
701+ r .Filters = & filters
702+ return r
703+ }
704+
677705// WithInclude sets the corresponding parameter name and returns the struct.
678706func (r * GetMonitorNotificationRulesOptionalParameters ) WithInclude (include string ) * GetMonitorNotificationRulesOptionalParameters {
679707 r .Include = & include
@@ -707,6 +735,18 @@ func (a *MonitorsApi) GetMonitorNotificationRules(ctx _context.Context, o ...Get
707735 localVarHeaderParams := make (map [string ]string )
708736 localVarQueryParams := _neturl.Values {}
709737 localVarFormParams := _neturl.Values {}
738+ if optionalParams .Page != nil {
739+ localVarQueryParams .Add ("page" , datadog .ParameterToString (* optionalParams .Page , "" ))
740+ }
741+ if optionalParams .PerPage != nil {
742+ localVarQueryParams .Add ("per_page" , datadog .ParameterToString (* optionalParams .PerPage , "" ))
743+ }
744+ if optionalParams .Sort != nil {
745+ localVarQueryParams .Add ("sort" , datadog .ParameterToString (* optionalParams .Sort , "" ))
746+ }
747+ if optionalParams .Filters != nil {
748+ localVarQueryParams .Add ("filters" , datadog .ParameterToString (* optionalParams .Filters , "" ))
749+ }
710750 if optionalParams .Include != nil {
711751 localVarQueryParams .Add ("include" , datadog .ParameterToString (* optionalParams .Include , "" ))
712752 }
0 commit comments