// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations import ( "net/http" ) type GetMediaProvidersRequest struct { // An authentication token, obtained from plex.tv XPlexToken string `header:"style=simple,explode=false,name=X-Plex-Token"` } func (g *GetMediaProvidersRequest) GetXPlexToken() string { if g == nil { return "" } return g.XPlexToken } type Pivot struct { ID *string `json:"id,omitempty"` Key *string `json:"key,omitempty"` Type *string `json:"type,omitempty"` Title *string `json:"title,omitempty"` Context *string `json:"context,omitempty"` Symbol *string `json:"symbol,omitempty"` } func (p *Pivot) GetID() *string { if p == nil { return nil } return p.ID } func (p *Pivot) GetKey() *string { if p == nil { return nil } return p.Key } func (p *Pivot) GetType() *string { if p == nil { return nil } return p.Type } func (p *Pivot) GetTitle() *string { if p == nil { return nil } return p.Title } func (p *Pivot) GetContext() *string { if p == nil { return nil } return p.Context } func (p *Pivot) GetSymbol() *string { if p == nil { return nil } return p.Symbol } type GetMediaProvidersDirectory struct { HubKey *string `json:"hubKey,omitempty"` Title *string `json:"title,omitempty"` Agent *string `json:"agent,omitempty"` Language *string `json:"language,omitempty"` Refreshing *bool `json:"refreshing,omitempty"` Scanner *string `json:"scanner,omitempty"` UUID *string `json:"uuid,omitempty"` ID *string `json:"id,omitempty"` Key *string `json:"key,omitempty"` Type *string `json:"type,omitempty"` Subtype *string `json:"subtype,omitempty"` UpdatedAt *int64 `json:"updatedAt,omitempty"` ScannedAt *int64 `json:"scannedAt,omitempty"` Pivot []Pivot `json:"Pivot,omitempty"` } func (g *GetMediaProvidersDirectory) GetHubKey() *string { if g == nil { return nil } return g.HubKey } func (g *GetMediaProvidersDirectory) GetTitle() *string { if g == nil { return nil } return g.Title } func (g *GetMediaProvidersDirectory) GetAgent() *string { if g == nil { return nil } return g.Agent } func (g *GetMediaProvidersDirectory) GetLanguage() *string { if g == nil { return nil } return g.Language } func (g *GetMediaProvidersDirectory) GetRefreshing() *bool { if g == nil { return nil } return g.Refreshing } func (g *GetMediaProvidersDirectory) GetScanner() *string { if g == nil { return nil } return g.Scanner } func (g *GetMediaProvidersDirectory) GetUUID() *string { if g == nil { return nil } return g.UUID } func (g *GetMediaProvidersDirectory) GetID() *string { if g == nil { return nil } return g.ID } func (g *GetMediaProvidersDirectory) GetKey() *string { if g == nil { return nil } return g.Key } func (g *GetMediaProvidersDirectory) GetType() *string { if g == nil { return nil } return g.Type } func (g *GetMediaProvidersDirectory) GetSubtype() *string { if g == nil { return nil } return g.Subtype } func (g *GetMediaProvidersDirectory) GetUpdatedAt() *int64 { if g == nil { return nil } return g.UpdatedAt } func (g *GetMediaProvidersDirectory) GetScannedAt() *int64 { if g == nil { return nil } return g.ScannedAt } func (g *GetMediaProvidersDirectory) GetPivot() []Pivot { if g == nil { return nil } return g.Pivot } type Action struct { ID string `json:"id"` Key string `json:"key"` } func (a *Action) GetID() string { if a == nil { return "" } return a.ID } func (a *Action) GetKey() string { if a == nil { return "" } return a.Key } type Feature struct { Key *string `json:"key,omitempty"` Type string `json:"type"` Flavor *string `json:"flavor,omitempty"` ScrobbleKey *string `json:"scrobbleKey,omitempty"` UnscrobbleKey *string `json:"unscrobbleKey,omitempty"` Directory []GetMediaProvidersDirectory `json:"Directory,omitempty"` Action []Action `json:"Action,omitempty"` } func (f *Feature) GetKey() *string { if f == nil { return nil } return f.Key } func (f *Feature) GetType() string { if f == nil { return "" } return f.Type } func (f *Feature) GetFlavor() *string { if f == nil { return nil } return f.Flavor } func (f *Feature) GetScrobbleKey() *string { if f == nil { return nil } return f.ScrobbleKey } func (f *Feature) GetUnscrobbleKey() *string { if f == nil { return nil } return f.UnscrobbleKey } func (f *Feature) GetDirectory() []GetMediaProvidersDirectory { if f == nil { return nil } return f.Directory } func (f *Feature) GetAction() []Action { if f == nil { return nil } return f.Action } type MediaProvider struct { Identifier *string `json:"identifier,omitempty"` Title *string `json:"title,omitempty"` Types *string `json:"types,omitempty"` Protocols *string `json:"protocols,omitempty"` Feature []Feature `json:"Feature,omitempty"` } func (m *MediaProvider) GetIdentifier() *string { if m == nil { return nil } return m.Identifier } func (m *MediaProvider) GetTitle() *string { if m == nil { return nil } return m.Title } func (m *MediaProvider) GetTypes() *string { if m == nil { return nil } return m.Types } func (m *MediaProvider) GetProtocols() *string { if m == nil { return nil } return m.Protocols } func (m *MediaProvider) GetFeature() []Feature { if m == nil { return nil } return m.Feature } type GetMediaProvidersMediaContainer struct { Size *int64 `json:"size,omitempty"` AllowCameraUpload *bool `json:"allowCameraUpload,omitempty"` AllowChannelAccess *bool `json:"allowChannelAccess,omitempty"` AllowSharing *bool `json:"allowSharing,omitempty"` AllowSync *bool `json:"allowSync,omitempty"` AllowTuners *bool `json:"allowTuners,omitempty"` BackgroundProcessing *bool `json:"backgroundProcessing,omitempty"` Certificate *bool `json:"certificate,omitempty"` CompanionProxy *bool `json:"companionProxy,omitempty"` CountryCode *string `json:"countryCode,omitempty"` Diagnostics *string `json:"diagnostics,omitempty"` EventStream *bool `json:"eventStream,omitempty"` FriendlyName *string `json:"friendlyName,omitempty"` Livetv *int64 `json:"livetv,omitempty"` MachineIdentifier *string `json:"machineIdentifier,omitempty"` MusicAnalysis *int64 `json:"musicAnalysis,omitempty"` MyPlex *bool `json:"myPlex,omitempty"` MyPlexMappingState *string `json:"myPlexMappingState,omitempty"` MyPlexSigninState *string `json:"myPlexSigninState,omitempty"` MyPlexSubscription *bool `json:"myPlexSubscription,omitempty"` MyPlexUsername *string `json:"myPlexUsername,omitempty"` OfflineTranscode *int64 `json:"offlineTranscode,omitempty"` OwnerFeatures *string `json:"ownerFeatures,omitempty"` Platform *string `json:"platform,omitempty"` PlatformVersion *string `json:"platformVersion,omitempty"` PluginHost *bool `json:"pluginHost,omitempty"` PushNotifications *bool `json:"pushNotifications,omitempty"` ReadOnlyLibraries *bool `json:"readOnlyLibraries,omitempty"` StreamingBrainABRVersion *int64 `json:"streamingBrainABRVersion,omitempty"` StreamingBrainVersion *int64 `json:"streamingBrainVersion,omitempty"` Sync *bool `json:"sync,omitempty"` TranscoderActiveVideoSessions *int64 `json:"transcoderActiveVideoSessions,omitempty"` TranscoderAudio *bool `json:"transcoderAudio,omitempty"` TranscoderLyrics *bool `json:"transcoderLyrics,omitempty"` TranscoderSubtitles *bool `json:"transcoderSubtitles,omitempty"` TranscoderVideo *bool `json:"transcoderVideo,omitempty"` TranscoderVideoBitrates *string `json:"transcoderVideoBitrates,omitempty"` TranscoderVideoQualities *string `json:"transcoderVideoQualities,omitempty"` TranscoderVideoResolutions *string `json:"transcoderVideoResolutions,omitempty"` UpdatedAt *int64 `json:"updatedAt,omitempty"` Updater *bool `json:"updater,omitempty"` Version *string `json:"version,omitempty"` VoiceSearch *bool `json:"voiceSearch,omitempty"` MediaProvider []MediaProvider `json:"MediaProvider,omitempty"` } func (g *GetMediaProvidersMediaContainer) GetSize() *int64 { if g == nil { return nil } return g.Size } func (g *GetMediaProvidersMediaContainer) GetAllowCameraUpload() *bool { if g == nil { return nil } return g.AllowCameraUpload } func (g *GetMediaProvidersMediaContainer) GetAllowChannelAccess() *bool { if g == nil { return nil } return g.AllowChannelAccess } func (g *GetMediaProvidersMediaContainer) GetAllowSharing() *bool { if g == nil { return nil } return g.AllowSharing } func (g *GetMediaProvidersMediaContainer) GetAllowSync() *bool { if g == nil { return nil } return g.AllowSync } func (g *GetMediaProvidersMediaContainer) GetAllowTuners() *bool { if g == nil { return nil } return g.AllowTuners } func (g *GetMediaProvidersMediaContainer) GetBackgroundProcessing() *bool { if g == nil { return nil } return g.BackgroundProcessing } func (g *GetMediaProvidersMediaContainer) GetCertificate() *bool { if g == nil { return nil } return g.Certificate } func (g *GetMediaProvidersMediaContainer) GetCompanionProxy() *bool { if g == nil { return nil } return g.CompanionProxy } func (g *GetMediaProvidersMediaContainer) GetCountryCode() *string { if g == nil { return nil } return g.CountryCode } func (g *GetMediaProvidersMediaContainer) GetDiagnostics() *string { if g == nil { return nil } return g.Diagnostics } func (g *GetMediaProvidersMediaContainer) GetEventStream() *bool { if g == nil { return nil } return g.EventStream } func (g *GetMediaProvidersMediaContainer) GetFriendlyName() *string { if g == nil { return nil } return g.FriendlyName } func (g *GetMediaProvidersMediaContainer) GetLivetv() *int64 { if g == nil { return nil } return g.Livetv } func (g *GetMediaProvidersMediaContainer) GetMachineIdentifier() *string { if g == nil { return nil } return g.MachineIdentifier } func (g *GetMediaProvidersMediaContainer) GetMusicAnalysis() *int64 { if g == nil { return nil } return g.MusicAnalysis } func (g *GetMediaProvidersMediaContainer) GetMyPlex() *bool { if g == nil { return nil } return g.MyPlex } func (g *GetMediaProvidersMediaContainer) GetMyPlexMappingState() *string { if g == nil { return nil } return g.MyPlexMappingState } func (g *GetMediaProvidersMediaContainer) GetMyPlexSigninState() *string { if g == nil { return nil } return g.MyPlexSigninState } func (g *GetMediaProvidersMediaContainer) GetMyPlexSubscription() *bool { if g == nil { return nil } return g.MyPlexSubscription } func (g *GetMediaProvidersMediaContainer) GetMyPlexUsername() *string { if g == nil { return nil } return g.MyPlexUsername } func (g *GetMediaProvidersMediaContainer) GetOfflineTranscode() *int64 { if g == nil { return nil } return g.OfflineTranscode } func (g *GetMediaProvidersMediaContainer) GetOwnerFeatures() *string { if g == nil { return nil } return g.OwnerFeatures } func (g *GetMediaProvidersMediaContainer) GetPlatform() *string { if g == nil { return nil } return g.Platform } func (g *GetMediaProvidersMediaContainer) GetPlatformVersion() *string { if g == nil { return nil } return g.PlatformVersion } func (g *GetMediaProvidersMediaContainer) GetPluginHost() *bool { if g == nil { return nil } return g.PluginHost } func (g *GetMediaProvidersMediaContainer) GetPushNotifications() *bool { if g == nil { return nil } return g.PushNotifications } func (g *GetMediaProvidersMediaContainer) GetReadOnlyLibraries() *bool { if g == nil { return nil } return g.ReadOnlyLibraries } func (g *GetMediaProvidersMediaContainer) GetStreamingBrainABRVersion() *int64 { if g == nil { return nil } return g.StreamingBrainABRVersion } func (g *GetMediaProvidersMediaContainer) GetStreamingBrainVersion() *int64 { if g == nil { return nil } return g.StreamingBrainVersion } func (g *GetMediaProvidersMediaContainer) GetSync() *bool { if g == nil { return nil } return g.Sync } func (g *GetMediaProvidersMediaContainer) GetTranscoderActiveVideoSessions() *int64 { if g == nil { return nil } return g.TranscoderActiveVideoSessions } func (g *GetMediaProvidersMediaContainer) GetTranscoderAudio() *bool { if g == nil { return nil } return g.TranscoderAudio } func (g *GetMediaProvidersMediaContainer) GetTranscoderLyrics() *bool { if g == nil { return nil } return g.TranscoderLyrics } func (g *GetMediaProvidersMediaContainer) GetTranscoderSubtitles() *bool { if g == nil { return nil } return g.TranscoderSubtitles } func (g *GetMediaProvidersMediaContainer) GetTranscoderVideo() *bool { if g == nil { return nil } return g.TranscoderVideo } func (g *GetMediaProvidersMediaContainer) GetTranscoderVideoBitrates() *string { if g == nil { return nil } return g.TranscoderVideoBitrates } func (g *GetMediaProvidersMediaContainer) GetTranscoderVideoQualities() *string { if g == nil { return nil } return g.TranscoderVideoQualities } func (g *GetMediaProvidersMediaContainer) GetTranscoderVideoResolutions() *string { if g == nil { return nil } return g.TranscoderVideoResolutions } func (g *GetMediaProvidersMediaContainer) GetUpdatedAt() *int64 { if g == nil { return nil } return g.UpdatedAt } func (g *GetMediaProvidersMediaContainer) GetUpdater() *bool { if g == nil { return nil } return g.Updater } func (g *GetMediaProvidersMediaContainer) GetVersion() *string { if g == nil { return nil } return g.Version } func (g *GetMediaProvidersMediaContainer) GetVoiceSearch() *bool { if g == nil { return nil } return g.VoiceSearch } func (g *GetMediaProvidersMediaContainer) GetMediaProvider() []MediaProvider { if g == nil { return nil } return g.MediaProvider } // GetMediaProvidersResponseBody - Media providers and their features type GetMediaProvidersResponseBody struct { MediaContainer *GetMediaProvidersMediaContainer `json:"MediaContainer,omitempty"` } func (g *GetMediaProvidersResponseBody) GetMediaContainer() *GetMediaProvidersMediaContainer { if g == nil { return nil } return g.MediaContainer } type GetMediaProvidersResponse 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 // Media providers and their features Object *GetMediaProvidersResponseBody } func (g *GetMediaProvidersResponse) GetContentType() string { if g == nil { return "" } return g.ContentType } func (g *GetMediaProvidersResponse) GetStatusCode() int { if g == nil { return 0 } return g.StatusCode } func (g *GetMediaProvidersResponse) GetRawResponse() *http.Response { if g == nil { return nil } return g.RawResponse } func (g *GetMediaProvidersResponse) GetObject() *GetMediaProvidersResponseBody { if g == nil { return nil } return g.Object }