Files
plexgo/models/sdkerrors/startalltasks.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 StartAllTasksButlerErrors struct {
Code *int `json:"code,omitempty"`
Message *string `json:"message,omitempty"`
Status *int `json:"status,omitempty"`
}
func (s *StartAllTasksButlerErrors) GetCode() *int {
if s == nil {
return nil
}
return s.Code
}
func (s *StartAllTasksButlerErrors) GetMessage() *string {
if s == nil {
return nil
}
return s.Message
}
func (s *StartAllTasksButlerErrors) GetStatus() *int {
if s == nil {
return nil
}
return s.Status
}
// StartAllTasksUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
type StartAllTasksUnauthorized struct {
Errors []StartAllTasksButlerErrors `json:"errors,omitempty"`
// Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response `json:"-"`
}
var _ error = &StartAllTasksUnauthorized{}
func (e *StartAllTasksUnauthorized) Error() string {
data, _ := json.Marshal(e)
return string(data)
}
type StartAllTasksErrors struct {
Code *int `json:"code,omitempty"`
Message *string `json:"message,omitempty"`
Status *int `json:"status,omitempty"`
}
func (s *StartAllTasksErrors) GetCode() *int {
if s == nil {
return nil
}
return s.Code
}
func (s *StartAllTasksErrors) GetMessage() *string {
if s == nil {
return nil
}
return s.Message
}
func (s *StartAllTasksErrors) GetStatus() *int {
if s == nil {
return nil
}
return s.Status
}
// StartAllTasksBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly.
type StartAllTasksBadRequest struct {
Errors []StartAllTasksErrors `json:"errors,omitempty"`
// Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response `json:"-"`
}
var _ error = &StartAllTasksBadRequest{}
func (e *StartAllTasksBadRequest) Error() string {
data, _ := json.Marshal(e)
return string(data)
}