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