// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations import ( "github.com/LukeHagar/plexgo/internal/utils" "github.com/LukeHagar/plexgo/models/components" "net/http" ) type RemoveDeviceGlobals struct { // Indicates the client accepts the indicated media types Accepts *components.Accepts `default:"application/xml" header:"style=simple,explode=false,name=accepts"` // An opaque identifier unique to the client ClientIdentifier *string `header:"style=simple,explode=false,name=X-Plex-Client-Identifier"` // The name of the client product Product *string `header:"style=simple,explode=false,name=X-Plex-Product"` // The version of the client application Version *string `header:"style=simple,explode=false,name=X-Plex-Version"` // The platform of the client Platform *string `header:"style=simple,explode=false,name=X-Plex-Platform"` // The version of the platform PlatformVersion *string `header:"style=simple,explode=false,name=X-Plex-Platform-Version"` // A relatively friendly name for the client device Device *string `header:"style=simple,explode=false,name=X-Plex-Device"` // A potentially less friendly identifier for the device model Model *string `header:"style=simple,explode=false,name=X-Plex-Model"` // The device vendor DeviceVendor *string `header:"style=simple,explode=false,name=X-Plex-Device-Vendor"` // A friendly name for the client DeviceName *string `header:"style=simple,explode=false,name=X-Plex-Device-Name"` // The marketplace on which the client application is distributed Marketplace *string `header:"style=simple,explode=false,name=X-Plex-Marketplace"` } func (r RemoveDeviceGlobals) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(r, "", false) } func (r *RemoveDeviceGlobals) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &r, "", false, nil); err != nil { return err } return nil } func (r *RemoveDeviceGlobals) GetAccepts() *components.Accepts { if r == nil { return nil } return r.Accepts } func (r *RemoveDeviceGlobals) GetClientIdentifier() *string { if r == nil { return nil } return r.ClientIdentifier } func (r *RemoveDeviceGlobals) GetProduct() *string { if r == nil { return nil } return r.Product } func (r *RemoveDeviceGlobals) GetVersion() *string { if r == nil { return nil } return r.Version } func (r *RemoveDeviceGlobals) GetPlatform() *string { if r == nil { return nil } return r.Platform } func (r *RemoveDeviceGlobals) GetPlatformVersion() *string { if r == nil { return nil } return r.PlatformVersion } func (r *RemoveDeviceGlobals) GetDevice() *string { if r == nil { return nil } return r.Device } func (r *RemoveDeviceGlobals) GetModel() *string { if r == nil { return nil } return r.Model } func (r *RemoveDeviceGlobals) GetDeviceVendor() *string { if r == nil { return nil } return r.DeviceVendor } func (r *RemoveDeviceGlobals) GetDeviceName() *string { if r == nil { return nil } return r.DeviceName } func (r *RemoveDeviceGlobals) GetMarketplace() *string { if r == nil { return nil } return r.Marketplace } type RemoveDeviceRequest struct { // Indicates the client accepts the indicated media types Accepts *components.Accepts `default:"application/xml" header:"style=simple,explode=false,name=accepts"` // An opaque identifier unique to the client ClientIdentifier *string `header:"style=simple,explode=false,name=X-Plex-Client-Identifier"` // The name of the client product Product *string `header:"style=simple,explode=false,name=X-Plex-Product"` // The version of the client application Version *string `header:"style=simple,explode=false,name=X-Plex-Version"` // The platform of the client Platform *string `header:"style=simple,explode=false,name=X-Plex-Platform"` // The version of the platform PlatformVersion *string `header:"style=simple,explode=false,name=X-Plex-Platform-Version"` // A relatively friendly name for the client device Device *string `header:"style=simple,explode=false,name=X-Plex-Device"` // A potentially less friendly identifier for the device model Model *string `header:"style=simple,explode=false,name=X-Plex-Model"` // The device vendor DeviceVendor *string `header:"style=simple,explode=false,name=X-Plex-Device-Vendor"` // A friendly name for the client DeviceName *string `header:"style=simple,explode=false,name=X-Plex-Device-Name"` // The marketplace on which the client application is distributed Marketplace *string `header:"style=simple,explode=false,name=X-Plex-Marketplace"` // The ID of the device. DeviceID int64 `pathParam:"style=simple,explode=false,name=deviceId"` } func (r RemoveDeviceRequest) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(r, "", false) } func (r *RemoveDeviceRequest) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &r, "", false, []string{"deviceId"}); err != nil { return err } return nil } func (r *RemoveDeviceRequest) GetAccepts() *components.Accepts { if r == nil { return nil } return r.Accepts } func (r *RemoveDeviceRequest) GetClientIdentifier() *string { if r == nil { return nil } return r.ClientIdentifier } func (r *RemoveDeviceRequest) GetProduct() *string { if r == nil { return nil } return r.Product } func (r *RemoveDeviceRequest) GetVersion() *string { if r == nil { return nil } return r.Version } func (r *RemoveDeviceRequest) GetPlatform() *string { if r == nil { return nil } return r.Platform } func (r *RemoveDeviceRequest) GetPlatformVersion() *string { if r == nil { return nil } return r.PlatformVersion } func (r *RemoveDeviceRequest) GetDevice() *string { if r == nil { return nil } return r.Device } func (r *RemoveDeviceRequest) GetModel() *string { if r == nil { return nil } return r.Model } func (r *RemoveDeviceRequest) GetDeviceVendor() *string { if r == nil { return nil } return r.DeviceVendor } func (r *RemoveDeviceRequest) GetDeviceName() *string { if r == nil { return nil } return r.DeviceName } func (r *RemoveDeviceRequest) GetMarketplace() *string { if r == nil { return nil } return r.Marketplace } func (r *RemoveDeviceRequest) GetDeviceID() int64 { if r == nil { return 0 } return r.DeviceID } // RemoveDeviceMediaContainer - `MediaContainer` is the root element of most Plex API responses. It serves as a generic container for various types of content (Metadata, Hubs, Directories, etc.) and includes pagination information (offset, size, totalSize) when applicable. // Common attributes: - identifier: Unique identifier for this container - size: Number of items in this response page - totalSize: Total number of items available (for pagination) - offset: Starting index of this page (for pagination) // The container often "hoists" common attributes from its children. For example, if all tracks in a container share the same album title, the `parentTitle` attribute may appear on the MediaContainer rather than being repeated on each track. type RemoveDeviceMediaContainer struct { Identifier *string `json:"identifier,omitempty"` // The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header. // Offset *int64 `json:"offset,omitempty"` Size *int64 `json:"size,omitempty"` // The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header. // TotalSize *int64 `json:"totalSize,omitempty"` Message *string `json:"message,omitempty"` Status *int64 `json:"status,omitempty"` } func (r *RemoveDeviceMediaContainer) GetIdentifier() *string { if r == nil { return nil } return r.Identifier } func (r *RemoveDeviceMediaContainer) GetOffset() *int64 { if r == nil { return nil } return r.Offset } func (r *RemoveDeviceMediaContainer) GetSize() *int64 { if r == nil { return nil } return r.Size } func (r *RemoveDeviceMediaContainer) GetTotalSize() *int64 { if r == nil { return nil } return r.TotalSize } func (r *RemoveDeviceMediaContainer) GetMessage() *string { if r == nil { return nil } return r.Message } func (r *RemoveDeviceMediaContainer) GetStatus() *int64 { if r == nil { return nil } return r.Status } // RemoveDeviceResponseBody - OK type RemoveDeviceResponseBody struct { MediaContainer *RemoveDeviceMediaContainer `json:"MediaContainer,omitempty"` } func (r *RemoveDeviceResponseBody) GetMediaContainer() *RemoveDeviceMediaContainer { if r == nil { return nil } return r.MediaContainer } type RemoveDeviceResponse 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 // OK Object *RemoveDeviceResponseBody Headers map[string][]string } func (r *RemoveDeviceResponse) GetContentType() string { if r == nil { return "" } return r.ContentType } func (r *RemoveDeviceResponse) GetStatusCode() int { if r == nil { return 0 } return r.StatusCode } func (r *RemoveDeviceResponse) GetRawResponse() *http.Response { if r == nil { return nil } return r.RawResponse } func (r *RemoveDeviceResponse) GetObject() *RemoveDeviceResponseBody { if r == nil { return nil } return r.Object } func (r *RemoveDeviceResponse) GetHeaders() map[string][]string { if r == nil { return map[string][]string{} } return r.Headers }