// 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 DeleteLineupGlobals 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 (d DeleteLineupGlobals) MarshalJSON() ([]byte, error) {
	return utils.MarshalJSON(d, "", false)
}

func (d *DeleteLineupGlobals) UnmarshalJSON(data []byte) error {
	if err := utils.UnmarshalJSON(data, &d, "", false, nil); err != nil {
		return err
	}
	return nil
}

func (d *DeleteLineupGlobals) GetAccepts() *components.Accepts {
	if d == nil {
		return nil
	}
	return d.Accepts
}

func (d *DeleteLineupGlobals) GetClientIdentifier() *string {
	if d == nil {
		return nil
	}
	return d.ClientIdentifier
}

func (d *DeleteLineupGlobals) GetProduct() *string {
	if d == nil {
		return nil
	}
	return d.Product
}

func (d *DeleteLineupGlobals) GetVersion() *string {
	if d == nil {
		return nil
	}
	return d.Version
}

func (d *DeleteLineupGlobals) GetPlatform() *string {
	if d == nil {
		return nil
	}
	return d.Platform
}

func (d *DeleteLineupGlobals) GetPlatformVersion() *string {
	if d == nil {
		return nil
	}
	return d.PlatformVersion
}

func (d *DeleteLineupGlobals) GetDevice() *string {
	if d == nil {
		return nil
	}
	return d.Device
}

func (d *DeleteLineupGlobals) GetModel() *string {
	if d == nil {
		return nil
	}
	return d.Model
}

func (d *DeleteLineupGlobals) GetDeviceVendor() *string {
	if d == nil {
		return nil
	}
	return d.DeviceVendor
}

func (d *DeleteLineupGlobals) GetDeviceName() *string {
	if d == nil {
		return nil
	}
	return d.DeviceName
}

func (d *DeleteLineupGlobals) GetMarketplace() *string {
	if d == nil {
		return nil
	}
	return d.Marketplace
}

type DeleteLineupRequest 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 DVR.
	DvrID int64 `pathParam:"style=simple,explode=false,name=dvrId"`
	// The lineup to delete
	Lineup string `queryParam:"style=form,explode=true,name=lineup"`
}

func (d DeleteLineupRequest) MarshalJSON() ([]byte, error) {
	return utils.MarshalJSON(d, "", false)
}

func (d *DeleteLineupRequest) UnmarshalJSON(data []byte) error {
	if err := utils.UnmarshalJSON(data, &d, "", false, []string{"dvrId", "lineup"}); err != nil {
		return err
	}
	return nil
}

func (d *DeleteLineupRequest) GetAccepts() *components.Accepts {
	if d == nil {
		return nil
	}
	return d.Accepts
}

func (d *DeleteLineupRequest) GetClientIdentifier() *string {
	if d == nil {
		return nil
	}
	return d.ClientIdentifier
}

func (d *DeleteLineupRequest) GetProduct() *string {
	if d == nil {
		return nil
	}
	return d.Product
}

func (d *DeleteLineupRequest) GetVersion() *string {
	if d == nil {
		return nil
	}
	return d.Version
}

func (d *DeleteLineupRequest) GetPlatform() *string {
	if d == nil {
		return nil
	}
	return d.Platform
}

func (d *DeleteLineupRequest) GetPlatformVersion() *string {
	if d == nil {
		return nil
	}
	return d.PlatformVersion
}

func (d *DeleteLineupRequest) GetDevice() *string {
	if d == nil {
		return nil
	}
	return d.Device
}

func (d *DeleteLineupRequest) GetModel() *string {
	if d == nil {
		return nil
	}
	return d.Model
}

func (d *DeleteLineupRequest) GetDeviceVendor() *string {
	if d == nil {
		return nil
	}
	return d.DeviceVendor
}

func (d *DeleteLineupRequest) GetDeviceName() *string {
	if d == nil {
		return nil
	}
	return d.DeviceName
}

func (d *DeleteLineupRequest) GetMarketplace() *string {
	if d == nil {
		return nil
	}
	return d.Marketplace
}

func (d *DeleteLineupRequest) GetDvrID() int64 {
	if d == nil {
		return 0
	}
	return d.DvrID
}

func (d *DeleteLineupRequest) GetLineup() string {
	if d == nil {
		return ""
	}
	return d.Lineup
}

// DeleteLineupDVRsMediaContainer - `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 DeleteLineupDVRsMediaContainer 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"`
	// A status indicator. If present and non-zero, indicates an error
	Status *int64 `json:"status,omitempty"`
}

func (d *DeleteLineupDVRsMediaContainer) GetIdentifier() *string {
	if d == nil {
		return nil
	}
	return d.Identifier
}

func (d *DeleteLineupDVRsMediaContainer) GetOffset() *int64 {
	if d == nil {
		return nil
	}
	return d.Offset
}

func (d *DeleteLineupDVRsMediaContainer) GetSize() *int64 {
	if d == nil {
		return nil
	}
	return d.Size
}

func (d *DeleteLineupDVRsMediaContainer) GetTotalSize() *int64 {
	if d == nil {
		return nil
	}
	return d.TotalSize
}

func (d *DeleteLineupDVRsMediaContainer) GetStatus() *int64 {
	if d == nil {
		return nil
	}
	return d.Status
}

type DeleteLineupDVR struct {
	Device   []components.Device `json:"Device,omitempty"`
	Key      *string             `json:"key,omitempty"`
	Language *string             `json:"language,omitempty"`
	Lineup   *string             `json:"lineup,omitempty"`
	UUID     *string             `json:"uuid,omitempty"`
}

func (d *DeleteLineupDVR) GetDevice() []components.Device {
	if d == nil {
		return nil
	}
	return d.Device
}

func (d *DeleteLineupDVR) GetKey() *string {
	if d == nil {
		return nil
	}
	return d.Key
}

func (d *DeleteLineupDVR) GetLanguage() *string {
	if d == nil {
		return nil
	}
	return d.Language
}

func (d *DeleteLineupDVR) GetLineup() *string {
	if d == nil {
		return nil
	}
	return d.Lineup
}

func (d *DeleteLineupDVR) GetUUID() *string {
	if d == nil {
		return nil
	}
	return d.UUID
}

type DeleteLineupMediaContainer struct {
	MediaContainer *DeleteLineupDVRsMediaContainer `json:"MediaContainer,omitempty"`
	Dvr            []DeleteLineupDVR               `json:"DVR,omitempty"`
}

func (d *DeleteLineupMediaContainer) GetMediaContainer() *DeleteLineupDVRsMediaContainer {
	if d == nil {
		return nil
	}
	return d.MediaContainer
}

func (d *DeleteLineupMediaContainer) GetDvr() []DeleteLineupDVR {
	if d == nil {
		return nil
	}
	return d.Dvr
}

// DeleteLineupResponseBody - OK
type DeleteLineupResponseBody struct {
	MediaContainer *DeleteLineupMediaContainer `json:"MediaContainer,omitempty"`
}

func (d *DeleteLineupResponseBody) GetMediaContainer() *DeleteLineupMediaContainer {
	if d == nil {
		return nil
	}
	return d.MediaContainer
}

type DeleteLineupResponse 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  *DeleteLineupResponseBody
	Headers map[string][]string
}

func (d *DeleteLineupResponse) GetContentType() string {
	if d == nil {
		return ""
	}
	return d.ContentType
}

func (d *DeleteLineupResponse) GetStatusCode() int {
	if d == nil {
		return 0
	}
	return d.StatusCode
}

func (d *DeleteLineupResponse) GetRawResponse() *http.Response {
	if d == nil {
		return nil
	}
	return d.RawResponse
}

func (d *DeleteLineupResponse) GetObject() *DeleteLineupResponseBody {
	if d == nil {
		return nil
	}
	return d.Object
}

func (d *DeleteLineupResponse) GetHeaders() map[string][]string {
	if d == nil {
		return map[string][]string{}
	}
	return d.Headers
}
