mirror of
https://github.com/LukeHagar/plexgo.git
synced 2025-12-06 04:20:46 +00:00
91 lines
2.3 KiB
Go
91 lines
2.3 KiB
Go
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
|
|
package sdkerrors
|
|
|
|
import (
|
|
"encoding/json"
|
|
"net/http"
|
|
)
|
|
|
|
type GetSourceConnectionInformationAuthenticationErrors struct {
|
|
Code *int `json:"code,omitempty"`
|
|
Message *string `json:"message,omitempty"`
|
|
Status *int `json:"status,omitempty"`
|
|
}
|
|
|
|
func (g *GetSourceConnectionInformationAuthenticationErrors) GetCode() *int {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Code
|
|
}
|
|
|
|
func (g *GetSourceConnectionInformationAuthenticationErrors) GetMessage() *string {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Message
|
|
}
|
|
|
|
func (g *GetSourceConnectionInformationAuthenticationErrors) GetStatus() *int {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Status
|
|
}
|
|
|
|
// GetSourceConnectionInformationUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
type GetSourceConnectionInformationUnauthorized struct {
|
|
Errors []GetSourceConnectionInformationAuthenticationErrors `json:"errors,omitempty"`
|
|
// Raw HTTP response; suitable for custom response parsing
|
|
RawResponse *http.Response `json:"-"`
|
|
}
|
|
|
|
var _ error = &GetSourceConnectionInformationUnauthorized{}
|
|
|
|
func (e *GetSourceConnectionInformationUnauthorized) Error() string {
|
|
data, _ := json.Marshal(e)
|
|
return string(data)
|
|
}
|
|
|
|
type GetSourceConnectionInformationErrors struct {
|
|
Code *int `json:"code,omitempty"`
|
|
Message *string `json:"message,omitempty"`
|
|
Status *int `json:"status,omitempty"`
|
|
}
|
|
|
|
func (g *GetSourceConnectionInformationErrors) GetCode() *int {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Code
|
|
}
|
|
|
|
func (g *GetSourceConnectionInformationErrors) GetMessage() *string {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Message
|
|
}
|
|
|
|
func (g *GetSourceConnectionInformationErrors) GetStatus() *int {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Status
|
|
}
|
|
|
|
// GetSourceConnectionInformationBadRequest - Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
type GetSourceConnectionInformationBadRequest struct {
|
|
Errors []GetSourceConnectionInformationErrors `json:"errors,omitempty"`
|
|
// Raw HTTP response; suitable for custom response parsing
|
|
RawResponse *http.Response `json:"-"`
|
|
}
|
|
|
|
var _ error = &GetSourceConnectionInformationBadRequest{}
|
|
|
|
func (e *GetSourceConnectionInformationBadRequest) Error() string {
|
|
data, _ := json.Marshal(e)
|
|
return string(data)
|
|
}
|