Files
plexgo/models/sdkerrors/getpin.go

50 lines
977 B
Go

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