Files
plexgo/models/sdkerrors/getdevices.go
2024-09-09 18:15:22 +00:00

91 lines
1.9 KiB
Go

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