// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations import ( "net/http" ) type GetTasksButlerTask struct { // A user-friendly description of the task Description *string `json:"description,omitempty"` // Whether this task is enabled or not Enabled *bool `json:"enabled,omitempty"` // The interval (in days) of when this task is run. A value of 1 is run every day, 7 is every week, etc. Interval *int64 `json:"interval,omitempty"` // The name of the task Name *string `json:"name,omitempty"` // Indicates whether the timing of the task is randomized within the butler interval ScheduleRandomized *bool `json:"scheduleRandomized,omitempty"` // A user-friendly title of the task Title *string `json:"title,omitempty"` } func (g *GetTasksButlerTask) GetDescription() *string { if g == nil { return nil } return g.Description } func (g *GetTasksButlerTask) GetEnabled() *bool { if g == nil { return nil } return g.Enabled } func (g *GetTasksButlerTask) GetInterval() *int64 { if g == nil { return nil } return g.Interval } func (g *GetTasksButlerTask) GetName() *string { if g == nil { return nil } return g.Name } func (g *GetTasksButlerTask) GetScheduleRandomized() *bool { if g == nil { return nil } return g.ScheduleRandomized } func (g *GetTasksButlerTask) GetTitle() *string { if g == nil { return nil } return g.Title } type ButlerTasks struct { ButlerTask []GetTasksButlerTask `json:"ButlerTask,omitempty"` } func (b *ButlerTasks) GetButlerTask() []GetTasksButlerTask { if b == nil { return nil } return b.ButlerTask } // GetTasksResponseBody - Butler tasks type GetTasksResponseBody struct { ButlerTasks *ButlerTasks `json:"ButlerTasks,omitempty"` } func (g *GetTasksResponseBody) GetButlerTasks() *ButlerTasks { if g == nil { return nil } return g.ButlerTasks } type GetTasksResponse 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 // Butler tasks Object *GetTasksResponseBody } func (g *GetTasksResponse) GetContentType() string { if g == nil { return "" } return g.ContentType } func (g *GetTasksResponse) GetStatusCode() int { if g == nil { return 0 } return g.StatusCode } func (g *GetTasksResponse) GetRawResponse() *http.Response { if g == nil { return nil } return g.RawResponse } func (g *GetTasksResponse) GetObject() *GetTasksResponseBody { if g == nil { return nil } return g.Object }