Files
plexgo/models/sdkerrors/getbutlertasks.go

91 lines
2.0 KiB
Go

// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
package sdkerrors
import (
"encoding/json"
"net/http"
)
type GetButlerTasksButlerErrors struct {
Code *int `json:"code,omitempty"`
Message *string `json:"message,omitempty"`
Status *int `json:"status,omitempty"`
}
func (g *GetButlerTasksButlerErrors) GetCode() *int {
if g == nil {
return nil
}
return g.Code
}
func (g *GetButlerTasksButlerErrors) GetMessage() *string {
if g == nil {
return nil
}
return g.Message
}
func (g *GetButlerTasksButlerErrors) GetStatus() *int {
if g == nil {
return nil
}
return g.Status
}
// GetButlerTasksUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
type GetButlerTasksUnauthorized struct {
Errors []GetButlerTasksButlerErrors `json:"errors,omitempty"`
// Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response `json:"-"`
}
var _ error = &GetButlerTasksUnauthorized{}
func (e *GetButlerTasksUnauthorized) Error() string {
data, _ := json.Marshal(e)
return string(data)
}
type GetButlerTasksErrors struct {
Code *int `json:"code,omitempty"`
Message *string `json:"message,omitempty"`
Status *int `json:"status,omitempty"`
}
func (g *GetButlerTasksErrors) GetCode() *int {
if g == nil {
return nil
}
return g.Code
}
func (g *GetButlerTasksErrors) GetMessage() *string {
if g == nil {
return nil
}
return g.Message
}
func (g *GetButlerTasksErrors) GetStatus() *int {
if g == nil {
return nil
}
return g.Status
}
// GetButlerTasksBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly.
type GetButlerTasksBadRequest struct {
Errors []GetButlerTasksErrors `json:"errors,omitempty"`
// Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response `json:"-"`
}
var _ error = &GetButlerTasksBadRequest{}
func (e *GetButlerTasksBadRequest) Error() string {
data, _ := json.Marshal(e)
return string(data)
}