Files
plexgo/models/sdkerrors/getrefreshlibrarymetadata.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 (g *GetRefreshLibraryMetadataLibraryErrors) GetCode() *int {
if g == nil {
return nil
}
return g.Code
}
func (g *GetRefreshLibraryMetadataLibraryErrors) GetMessage() *string {
if g == nil {
return nil
}
return g.Message
}
func (g *GetRefreshLibraryMetadataLibraryErrors) GetStatus() *int {
if g == nil {
return nil
}
return g.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 (g *GetRefreshLibraryMetadataErrors) GetCode() *int {
if g == nil {
return nil
}
return g.Code
}
func (g *GetRefreshLibraryMetadataErrors) GetMessage() *string {
if g == nil {
return nil
}
return g.Message
}
func (g *GetRefreshLibraryMetadataErrors) GetStatus() *int {
if g == nil {
return nil
}
return g.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)
}