Files
plexgo/models/sdkerrors/gettranscodesessions.go

91 lines
2.1 KiB
Go

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