mirror of
https://github.com/LukeHagar/plexgo.git
synced 2025-12-06 12:37:46 +00:00
91 lines
1.9 KiB
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 StopTaskButlerErrors struct {
|
|
Code *int `json:"code,omitempty"`
|
|
Message *string `json:"message,omitempty"`
|
|
Status *int `json:"status,omitempty"`
|
|
}
|
|
|
|
func (s *StopTaskButlerErrors) GetCode() *int {
|
|
if s == nil {
|
|
return nil
|
|
}
|
|
return s.Code
|
|
}
|
|
|
|
func (s *StopTaskButlerErrors) GetMessage() *string {
|
|
if s == nil {
|
|
return nil
|
|
}
|
|
return s.Message
|
|
}
|
|
|
|
func (s *StopTaskButlerErrors) GetStatus() *int {
|
|
if s == nil {
|
|
return nil
|
|
}
|
|
return s.Status
|
|
}
|
|
|
|
// StopTaskUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
type StopTaskUnauthorized struct {
|
|
Errors []StopTaskButlerErrors `json:"errors,omitempty"`
|
|
// Raw HTTP response; suitable for custom response parsing
|
|
RawResponse *http.Response `json:"-"`
|
|
}
|
|
|
|
var _ error = &StopTaskUnauthorized{}
|
|
|
|
func (e *StopTaskUnauthorized) Error() string {
|
|
data, _ := json.Marshal(e)
|
|
return string(data)
|
|
}
|
|
|
|
type StopTaskErrors struct {
|
|
Code *int `json:"code,omitempty"`
|
|
Message *string `json:"message,omitempty"`
|
|
Status *int `json:"status,omitempty"`
|
|
}
|
|
|
|
func (s *StopTaskErrors) GetCode() *int {
|
|
if s == nil {
|
|
return nil
|
|
}
|
|
return s.Code
|
|
}
|
|
|
|
func (s *StopTaskErrors) GetMessage() *string {
|
|
if s == nil {
|
|
return nil
|
|
}
|
|
return s.Message
|
|
}
|
|
|
|
func (s *StopTaskErrors) GetStatus() *int {
|
|
if s == nil {
|
|
return nil
|
|
}
|
|
return s.Status
|
|
}
|
|
|
|
// StopTaskBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
type StopTaskBadRequest struct {
|
|
Errors []StopTaskErrors `json:"errors,omitempty"`
|
|
// Raw HTTP response; suitable for custom response parsing
|
|
RawResponse *http.Response `json:"-"`
|
|
}
|
|
|
|
var _ error = &StopTaskBadRequest{}
|
|
|
|
func (e *StopTaskBadRequest) Error() string {
|
|
data, _ := json.Marshal(e)
|
|
return string(data)
|
|
}
|