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

91 lines
2.0 KiB
Go

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