mirror of
https://github.com/LukeHagar/plexgo.git
synced 2025-12-06 04:20:46 +00:00
129 lines
2.5 KiB
Go
129 lines
2.5 KiB
Go
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
|
|
package operations
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
type GetServerListServer struct {
|
|
Name *string `json:"name,omitempty"`
|
|
Host *string `json:"host,omitempty"`
|
|
Address *string `json:"address,omitempty"`
|
|
Port *float64 `json:"port,omitempty"`
|
|
MachineIdentifier *string `json:"machineIdentifier,omitempty"`
|
|
Version *string `json:"version,omitempty"`
|
|
}
|
|
|
|
func (g *GetServerListServer) GetName() *string {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Name
|
|
}
|
|
|
|
func (g *GetServerListServer) GetHost() *string {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Host
|
|
}
|
|
|
|
func (g *GetServerListServer) GetAddress() *string {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Address
|
|
}
|
|
|
|
func (g *GetServerListServer) GetPort() *float64 {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Port
|
|
}
|
|
|
|
func (g *GetServerListServer) GetMachineIdentifier() *string {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.MachineIdentifier
|
|
}
|
|
|
|
func (g *GetServerListServer) GetVersion() *string {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Version
|
|
}
|
|
|
|
type GetServerListMediaContainer struct {
|
|
Size *float64 `json:"size,omitempty"`
|
|
Server []GetServerListServer `json:"Server,omitempty"`
|
|
}
|
|
|
|
func (g *GetServerListMediaContainer) GetSize() *float64 {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Size
|
|
}
|
|
|
|
func (g *GetServerListMediaContainer) GetServer() []GetServerListServer {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Server
|
|
}
|
|
|
|
// GetServerListResponseBody - List of Servers
|
|
type GetServerListResponseBody struct {
|
|
MediaContainer *GetServerListMediaContainer `json:"MediaContainer,omitempty"`
|
|
}
|
|
|
|
func (g *GetServerListResponseBody) GetMediaContainer() *GetServerListMediaContainer {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.MediaContainer
|
|
}
|
|
|
|
type GetServerListResponse struct {
|
|
// HTTP response content type for this operation
|
|
ContentType string
|
|
// HTTP response status code for this operation
|
|
StatusCode int
|
|
// Raw HTTP response; suitable for custom response parsing
|
|
RawResponse *http.Response
|
|
// List of Servers
|
|
Object *GetServerListResponseBody
|
|
}
|
|
|
|
func (g *GetServerListResponse) GetContentType() string {
|
|
if g == nil {
|
|
return ""
|
|
}
|
|
return g.ContentType
|
|
}
|
|
|
|
func (g *GetServerListResponse) GetStatusCode() int {
|
|
if g == nil {
|
|
return 0
|
|
}
|
|
return g.StatusCode
|
|
}
|
|
|
|
func (g *GetServerListResponse) GetRawResponse() *http.Response {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.RawResponse
|
|
}
|
|
|
|
func (g *GetServerListResponse) GetObject() *GetServerListResponseBody {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Object
|
|
}
|