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