Files
plexgo/models/sdkerrors/logmultiline.go

91 lines
1.9 KiB
Go

// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
package sdkerrors
import (
"encoding/json"
"net/http"
)
type LogMultiLineLogErrors struct {
Code *int `json:"code,omitempty"`
Message *string `json:"message,omitempty"`
Status *int `json:"status,omitempty"`
}
func (o *LogMultiLineLogErrors) GetCode() *int {
if o == nil {
return nil
}
return o.Code
}
func (o *LogMultiLineLogErrors) GetMessage() *string {
if o == nil {
return nil
}
return o.Message
}
func (o *LogMultiLineLogErrors) GetStatus() *int {
if o == nil {
return nil
}
return o.Status
}
// LogMultiLineUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
type LogMultiLineUnauthorized struct {
Errors []LogMultiLineLogErrors `json:"errors,omitempty"`
// Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response `json:"-"`
}
var _ error = &LogMultiLineUnauthorized{}
func (e *LogMultiLineUnauthorized) Error() string {
data, _ := json.Marshal(e)
return string(data)
}
type LogMultiLineErrors struct {
Code *int `json:"code,omitempty"`
Message *string `json:"message,omitempty"`
Status *int `json:"status,omitempty"`
}
func (o *LogMultiLineErrors) GetCode() *int {
if o == nil {
return nil
}
return o.Code
}
func (o *LogMultiLineErrors) GetMessage() *string {
if o == nil {
return nil
}
return o.Message
}
func (o *LogMultiLineErrors) GetStatus() *int {
if o == nil {
return nil
}
return o.Status
}
// LogMultiLineBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly.
type LogMultiLineBadRequest struct {
Errors []LogMultiLineErrors `json:"errors,omitempty"`
// Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response `json:"-"`
}
var _ error = &LogMultiLineBadRequest{}
func (e *LogMultiLineBadRequest) Error() string {
data, _ := json.Marshal(e)
return string(data)
}