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