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