// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. package operations import ( "net/http" ) type GetServerIdentityErrors struct { Code *float64 `json:"code,omitempty"` Message *string `json:"message,omitempty"` Status *float64 `json:"status,omitempty"` } func (o *GetServerIdentityErrors) GetCode() *float64 { if o == nil { return nil } return o.Code } func (o *GetServerIdentityErrors) GetMessage() *string { if o == nil { return nil } return o.Message } func (o *GetServerIdentityErrors) GetStatus() *float64 { if o == nil { return nil } return o.Status } // GetServerIdentityServerResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query. type GetServerIdentityServerResponseBody struct { Errors []GetServerIdentityErrors `json:"errors,omitempty"` } func (o *GetServerIdentityServerResponseBody) GetErrors() []GetServerIdentityErrors { if o == nil { return nil } return o.Errors } type GetServerIdentityMediaContainer struct { Size *float64 `json:"size,omitempty"` Claimed *bool `json:"claimed,omitempty"` MachineIdentifier *string `json:"machineIdentifier,omitempty"` Version *string `json:"version,omitempty"` } func (o *GetServerIdentityMediaContainer) GetSize() *float64 { if o == nil { return nil } return o.Size } func (o *GetServerIdentityMediaContainer) GetClaimed() *bool { if o == nil { return nil } return o.Claimed } func (o *GetServerIdentityMediaContainer) GetMachineIdentifier() *string { if o == nil { return nil } return o.MachineIdentifier } func (o *GetServerIdentityMediaContainer) GetVersion() *string { if o == nil { return nil } return o.Version } // GetServerIdentityResponseBody - The Transcode Sessions type GetServerIdentityResponseBody struct { MediaContainer *GetServerIdentityMediaContainer `json:"MediaContainer,omitempty"` } func (o *GetServerIdentityResponseBody) GetMediaContainer() *GetServerIdentityMediaContainer { if o == nil { return nil } return o.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 Transcode Sessions TwoHundredApplicationJSONObject *GetServerIdentityResponseBody // Unauthorized - Returned if the X-Plex-Token is missing from the header or query. FourHundredAndOneApplicationJSONObject *GetServerIdentityServerResponseBody } func (o *GetServerIdentityResponse) GetContentType() string { if o == nil { return "" } return o.ContentType } func (o *GetServerIdentityResponse) GetStatusCode() int { if o == nil { return 0 } return o.StatusCode } func (o *GetServerIdentityResponse) GetRawResponse() *http.Response { if o == nil { return nil } return o.RawResponse } func (o *GetServerIdentityResponse) GetTwoHundredApplicationJSONObject() *GetServerIdentityResponseBody { if o == nil { return nil } return o.TwoHundredApplicationJSONObject } func (o *GetServerIdentityResponse) GetFourHundredAndOneApplicationJSONObject() *GetServerIdentityServerResponseBody { if o == nil { return nil } return o.FourHundredAndOneApplicationJSONObject }