// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package sdkerrors

import (
	"encoding/json"
	"net/http"
)

type GetServerResourcesErrors struct {
	Code    *int    `json:"code,omitempty"`
	Message *string `json:"message,omitempty"`
	Status  *int    `json:"status,omitempty"`
}

func (g *GetServerResourcesErrors) GetCode() *int {
	if g == nil {
		return nil
	}
	return g.Code
}

func (g *GetServerResourcesErrors) GetMessage() *string {
	if g == nil {
		return nil
	}
	return g.Message
}

func (g *GetServerResourcesErrors) GetStatus() *int {
	if g == nil {
		return nil
	}
	return g.Status
}

// GetServerResourcesUnauthorized - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
type GetServerResourcesUnauthorized struct {
	Errors []GetServerResourcesErrors `json:"errors,omitempty"`
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response `json:"-"`
}

var _ error = &GetServerResourcesUnauthorized{}

func (e *GetServerResourcesUnauthorized) Error() string {
	data, _ := json.Marshal(e)
	return string(data)
}
