mirror of
https://github.com/LukeHagar/plexgo.git
synced 2025-12-07 20:47:49 +00:00
50 lines
981 B
Go
50 lines
981 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
|
|
}
|
|
|
|
// 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)
|
|
}
|