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