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