// 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 RefreshSectionsMetadataGlobals 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 RefreshSectionsMetadataGlobals) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(r, "", false) } func (r *RefreshSectionsMetadataGlobals) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &r, "", false, nil); err != nil { return err } return nil } func (r *RefreshSectionsMetadataGlobals) GetAccepts() *components.Accepts { if r == nil { return nil } return r.Accepts } func (r *RefreshSectionsMetadataGlobals) GetClientIdentifier() *string { if r == nil { return nil } return r.ClientIdentifier } func (r *RefreshSectionsMetadataGlobals) GetProduct() *string { if r == nil { return nil } return r.Product } func (r *RefreshSectionsMetadataGlobals) GetVersion() *string { if r == nil { return nil } return r.Version } func (r *RefreshSectionsMetadataGlobals) GetPlatform() *string { if r == nil { return nil } return r.Platform } func (r *RefreshSectionsMetadataGlobals) GetPlatformVersion() *string { if r == nil { return nil } return r.PlatformVersion } func (r *RefreshSectionsMetadataGlobals) GetDevice() *string { if r == nil { return nil } return r.Device } func (r *RefreshSectionsMetadataGlobals) GetModel() *string { if r == nil { return nil } return r.Model } func (r *RefreshSectionsMetadataGlobals) GetDeviceVendor() *string { if r == nil { return nil } return r.DeviceVendor } func (r *RefreshSectionsMetadataGlobals) GetDeviceName() *string { if r == nil { return nil } return r.DeviceName } func (r *RefreshSectionsMetadataGlobals) GetMarketplace() *string { if r == nil { return nil } return r.Marketplace } type RefreshSectionsMetadataRequest 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"` // Force refresh of metadata Force *bool `queryParam:"style=form,explode=true,name=force"` } func (r RefreshSectionsMetadataRequest) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(r, "", false) } func (r *RefreshSectionsMetadataRequest) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &r, "", false, nil); err != nil { return err } return nil } func (r *RefreshSectionsMetadataRequest) GetAccepts() *components.Accepts { if r == nil { return nil } return r.Accepts } func (r *RefreshSectionsMetadataRequest) GetClientIdentifier() *string { if r == nil { return nil } return r.ClientIdentifier } func (r *RefreshSectionsMetadataRequest) GetProduct() *string { if r == nil { return nil } return r.Product } func (r *RefreshSectionsMetadataRequest) GetVersion() *string { if r == nil { return nil } return r.Version } func (r *RefreshSectionsMetadataRequest) GetPlatform() *string { if r == nil { return nil } return r.Platform } func (r *RefreshSectionsMetadataRequest) GetPlatformVersion() *string { if r == nil { return nil } return r.PlatformVersion } func (r *RefreshSectionsMetadataRequest) GetDevice() *string { if r == nil { return nil } return r.Device } func (r *RefreshSectionsMetadataRequest) GetModel() *string { if r == nil { return nil } return r.Model } func (r *RefreshSectionsMetadataRequest) GetDeviceVendor() *string { if r == nil { return nil } return r.DeviceVendor } func (r *RefreshSectionsMetadataRequest) GetDeviceName() *string { if r == nil { return nil } return r.DeviceName } func (r *RefreshSectionsMetadataRequest) GetMarketplace() *string { if r == nil { return nil } return r.Marketplace } func (r *RefreshSectionsMetadataRequest) GetForce() *bool { if r == nil { return nil } return r.Force } type RefreshSectionsMetadataResponse 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 } func (r *RefreshSectionsMetadataResponse) GetContentType() string { if r == nil { return "" } return r.ContentType } func (r *RefreshSectionsMetadataResponse) GetStatusCode() int { if r == nil { return 0 } return r.StatusCode } func (r *RefreshSectionsMetadataResponse) GetRawResponse() *http.Response { if r == nil { return nil } return r.RawResponse }