mirror of
https://github.com/LukeHagar/plexgo.git
synced 2025-12-06 12:37:46 +00:00
91 lines
2.0 KiB
Go
91 lines
2.0 KiB
Go
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
|
|
package sdkerrors
|
|
|
|
import (
|
|
"encoding/json"
|
|
"net/http"
|
|
)
|
|
|
|
type GetServerCapabilitiesErrors struct {
|
|
Code *int64 `json:"code,omitempty"`
|
|
Message *string `json:"message,omitempty"`
|
|
Status *int64 `json:"status,omitempty"`
|
|
}
|
|
|
|
func (o *GetServerCapabilitiesErrors) GetCode() *int64 {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Code
|
|
}
|
|
|
|
func (o *GetServerCapabilitiesErrors) GetMessage() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Message
|
|
}
|
|
|
|
func (o *GetServerCapabilitiesErrors) GetStatus() *int64 {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Status
|
|
}
|
|
|
|
// GetServerCapabilitiesUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
type GetServerCapabilitiesUnauthorized struct {
|
|
Errors []GetServerCapabilitiesErrors `json:"errors,omitempty"`
|
|
// Raw HTTP response; suitable for custom response parsing
|
|
RawResponse *http.Response `json:"-"`
|
|
}
|
|
|
|
var _ error = &GetServerCapabilitiesUnauthorized{}
|
|
|
|
func (e *GetServerCapabilitiesUnauthorized) Error() string {
|
|
data, _ := json.Marshal(e)
|
|
return string(data)
|
|
}
|
|
|
|
type Errors struct {
|
|
Code *int64 `json:"code,omitempty"`
|
|
Message *string `json:"message,omitempty"`
|
|
Status *int64 `json:"status,omitempty"`
|
|
}
|
|
|
|
func (o *Errors) GetCode() *int64 {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Code
|
|
}
|
|
|
|
func (o *Errors) GetMessage() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Message
|
|
}
|
|
|
|
func (o *Errors) GetStatus() *int64 {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Status
|
|
}
|
|
|
|
// GetServerCapabilitiesBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
type GetServerCapabilitiesBadRequest struct {
|
|
Errors []Errors `json:"errors,omitempty"`
|
|
// Raw HTTP response; suitable for custom response parsing
|
|
RawResponse *http.Response `json:"-"`
|
|
}
|
|
|
|
var _ error = &GetServerCapabilitiesBadRequest{}
|
|
|
|
func (e *GetServerCapabilitiesBadRequest) Error() string {
|
|
data, _ := json.Marshal(e)
|
|
return string(data)
|
|
}
|