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