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