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

50 lines
980 B
Go

// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
package sdkerrors
import (
"encoding/json"
"net/http"
)
type GetPinErrors struct {
Code *int64 `json:"code,omitempty"`
Message *string `json:"message,omitempty"`
Status *int64 `json:"status,omitempty"`
}
func (o *GetPinErrors) GetCode() *int64 {
if o == nil {
return nil
}
return o.Code
}
func (o *GetPinErrors) GetMessage() *string {
if o == nil {
return nil
}
return o.Message
}
func (o *GetPinErrors) GetStatus() *int64 {
if o == nil {
return nil
}
return o.Status
}
// GetPinResponseBody - Bad Request response when the X-Plex-Client-Identifier is missing
type GetPinResponseBody struct {
Errors []GetPinErrors `json:"errors,omitempty"`
// Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response `json:"-"`
}
var _ error = &GetPinResponseBody{}
func (e *GetPinResponseBody) Error() string {
data, _ := json.Marshal(e)
return string(data)
}