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