mirror of
https://github.com/LukeHagar/plexgo.git
synced 2025-12-06 04:20:46 +00:00
121 lines
2.3 KiB
Go
121 lines
2.3 KiB
Go
// 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 (b *ButlerTask) GetName() *string {
|
|
if b == nil {
|
|
return nil
|
|
}
|
|
return b.Name
|
|
}
|
|
|
|
func (b *ButlerTask) GetInterval() *float64 {
|
|
if b == nil {
|
|
return nil
|
|
}
|
|
return b.Interval
|
|
}
|
|
|
|
func (b *ButlerTask) GetScheduleRandomized() *bool {
|
|
if b == nil {
|
|
return nil
|
|
}
|
|
return b.ScheduleRandomized
|
|
}
|
|
|
|
func (b *ButlerTask) GetEnabled() *bool {
|
|
if b == nil {
|
|
return nil
|
|
}
|
|
return b.Enabled
|
|
}
|
|
|
|
func (b *ButlerTask) GetTitle() *string {
|
|
if b == nil {
|
|
return nil
|
|
}
|
|
return b.Title
|
|
}
|
|
|
|
func (b *ButlerTask) GetDescription() *string {
|
|
if b == nil {
|
|
return nil
|
|
}
|
|
return b.Description
|
|
}
|
|
|
|
type ButlerTasks struct {
|
|
ButlerTask []ButlerTask `json:"ButlerTask,omitempty"`
|
|
}
|
|
|
|
func (b *ButlerTasks) GetButlerTask() []ButlerTask {
|
|
if b == nil {
|
|
return nil
|
|
}
|
|
return b.ButlerTask
|
|
}
|
|
|
|
// GetButlerTasksResponseBody - All butler tasks
|
|
type GetButlerTasksResponseBody struct {
|
|
ButlerTasks *ButlerTasks `json:"ButlerTasks,omitempty"`
|
|
}
|
|
|
|
func (g *GetButlerTasksResponseBody) GetButlerTasks() *ButlerTasks {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.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 (g *GetButlerTasksResponse) GetContentType() string {
|
|
if g == nil {
|
|
return ""
|
|
}
|
|
return g.ContentType
|
|
}
|
|
|
|
func (g *GetButlerTasksResponse) GetStatusCode() int {
|
|
if g == nil {
|
|
return 0
|
|
}
|
|
return g.StatusCode
|
|
}
|
|
|
|
func (g *GetButlerTasksResponse) GetRawResponse() *http.Response {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.RawResponse
|
|
}
|
|
|
|
func (g *GetButlerTasksResponse) GetObject() *GetButlerTasksResponseBody {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Object
|
|
}
|