Files
plexgo/models/sdkerrors/stopalltasks.go

91 lines
1.9 KiB
Go

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