mirror of
https://github.com/LukeHagar/plexgo.git
synced 2025-12-06 04:20:46 +00:00
94 lines
2.0 KiB
Go
94 lines
2.0 KiB
Go
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
|
|
package operations
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
type GetServerIdentityMediaContainer struct {
|
|
Size *float64 `json:"size,omitempty"`
|
|
Claimed *bool `json:"claimed,omitempty"`
|
|
MachineIdentifier *string `json:"machineIdentifier,omitempty"`
|
|
Version *string `json:"version,omitempty"`
|
|
}
|
|
|
|
func (g *GetServerIdentityMediaContainer) GetSize() *float64 {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Size
|
|
}
|
|
|
|
func (g *GetServerIdentityMediaContainer) GetClaimed() *bool {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Claimed
|
|
}
|
|
|
|
func (g *GetServerIdentityMediaContainer) GetMachineIdentifier() *string {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.MachineIdentifier
|
|
}
|
|
|
|
func (g *GetServerIdentityMediaContainer) GetVersion() *string {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Version
|
|
}
|
|
|
|
// GetServerIdentityResponseBody - The Server Identity information
|
|
type GetServerIdentityResponseBody struct {
|
|
MediaContainer *GetServerIdentityMediaContainer `json:"MediaContainer,omitempty"`
|
|
}
|
|
|
|
func (g *GetServerIdentityResponseBody) GetMediaContainer() *GetServerIdentityMediaContainer {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.MediaContainer
|
|
}
|
|
|
|
type GetServerIdentityResponse 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
|
|
// The Server Identity information
|
|
Object *GetServerIdentityResponseBody
|
|
}
|
|
|
|
func (g *GetServerIdentityResponse) GetContentType() string {
|
|
if g == nil {
|
|
return ""
|
|
}
|
|
return g.ContentType
|
|
}
|
|
|
|
func (g *GetServerIdentityResponse) GetStatusCode() int {
|
|
if g == nil {
|
|
return 0
|
|
}
|
|
return g.StatusCode
|
|
}
|
|
|
|
func (g *GetServerIdentityResponse) GetRawResponse() *http.Response {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.RawResponse
|
|
}
|
|
|
|
func (g *GetServerIdentityResponse) GetObject() *GetServerIdentityResponseBody {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Object
|
|
}
|