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