// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. package sdkerrors import ( "encoding/json" "net/http" ) type GetLibraryHubsErrors struct { Code *float64 `json:"code,omitempty"` Message *string `json:"message,omitempty"` Status *float64 `json:"status,omitempty"` } func (o *GetLibraryHubsErrors) GetCode() *float64 { 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() *float64 { if o == nil { return nil } return o.Status } // GetLibraryHubsResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. type GetLibraryHubsResponseBody struct { Errors []GetLibraryHubsErrors `json:"errors,omitempty"` // Raw HTTP response; suitable for custom response parsing RawResponse *http.Response `json:"-"` } var _ error = &GetLibraryHubsResponseBody{} func (e *GetLibraryHubsResponseBody) Error() string { data, _ := json.Marshal(e) return string(data) }