// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations import ( "net/http" ) type ButlerTask struct { Name *string `json:"name,omitempty"` Interval *float64 `json:"interval,omitempty"` ScheduleRandomized *bool `json:"scheduleRandomized,omitempty"` Enabled *bool `json:"enabled,omitempty"` Title *string `json:"title,omitempty"` Description *string `json:"description,omitempty"` } func (o *ButlerTask) GetName() *string { if o == nil { return nil } return o.Name } func (o *ButlerTask) GetInterval() *float64 { if o == nil { return nil } return o.Interval } func (o *ButlerTask) GetScheduleRandomized() *bool { if o == nil { return nil } return o.ScheduleRandomized } func (o *ButlerTask) GetEnabled() *bool { if o == nil { return nil } return o.Enabled } func (o *ButlerTask) GetTitle() *string { if o == nil { return nil } return o.Title } func (o *ButlerTask) GetDescription() *string { if o == nil { return nil } return o.Description } type ButlerTasks struct { ButlerTask []ButlerTask `json:"ButlerTask,omitempty"` } func (o *ButlerTasks) GetButlerTask() []ButlerTask { if o == nil { return nil } return o.ButlerTask } // GetButlerTasksResponseBody - All butler tasks type GetButlerTasksResponseBody struct { ButlerTasks *ButlerTasks `json:"ButlerTasks,omitempty"` } func (o *GetButlerTasksResponseBody) GetButlerTasks() *ButlerTasks { if o == nil { return nil } return o.ButlerTasks } type GetButlerTasksResponse struct { // HTTP response content type for this operation ContentType string // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing RawResponse *http.Response // All butler tasks Object *GetButlerTasksResponseBody } func (o *GetButlerTasksResponse) GetContentType() string { if o == nil { return "" } return o.ContentType } func (o *GetButlerTasksResponse) GetStatusCode() int { if o == nil { return 0 } return o.StatusCode } func (o *GetButlerTasksResponse) GetRawResponse() *http.Response { if o == nil { return nil } return o.RawResponse } func (o *GetButlerTasksResponse) GetObject() *GetButlerTasksResponseBody { if o == nil { return nil } return o.Object }