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