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