provider

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2022 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(version string) func() provider.Provider

New returns the provider with a specific version.

Types

type AddSeriesOptions

type AddSeriesOptions struct {
	SearchForMissingEpisodes     types.Bool `tfsdk:"search_for_missing_episodes"`
	SearchForCutoffUnmetEpisodes types.Bool `tfsdk:"search_for_cutoff_unmet_episodes"`
	IgnoreEpisodesWithFiles      types.Bool `tfsdk:"ignore_episodes_with_files"`
	IgnoreEpisodesWithoutFiles   types.Bool `tfsdk:"ignore_episodes_without_files"`
}

AddSeriesOptions is used in series creation.

type DelayProfile

type DelayProfile struct {
	EnableUsenet           types.Bool   `tfsdk:"enable_usenet"`
	EnableTorrent          types.Bool   `tfsdk:"enable_torrent"`
	BypassIfHighestQuality types.Bool   `tfsdk:"bypass_if_highest_quality"`
	UsenetDelay            types.Int64  `tfsdk:"usenet_delay"`
	TorrentDelay           types.Int64  `tfsdk:"torrent_delay"`
	ID                     types.Int64  `tfsdk:"id"`
	Order                  types.Int64  `tfsdk:"order"`
	PreferredProtocol      types.String `tfsdk:"preferred_protocol"`
	Tags                   types.Set    `tfsdk:"tags"`
}

DelayProfile is the delay_profile resource.

type DelayProfiles

type DelayProfiles struct {
	ID            types.String `tfsdk:"id"`
	DelayProfiles types.Set    `tfsdk:"delay_profiles"`
}

TODO: remove ID once framework support tests without ID https://www.terraform.io/plugin/framework/acctests#implement-id-attribute DelayProfiles is a list of DelayProfile.

type Image

type Image struct {
	CoverType types.String `tfsdk:"cover_type"`
	URL       types.String `tfsdk:"url"`
	RemoteURL types.String `tfsdk:"remote_url"`
	Extension types.String `tfsdk:"extension"`
}

Image is part of Series.

type Indexer

type Indexer struct {
	EnableAutomaticSearch   types.Bool   `tfsdk:"enable_automatic_search"`
	EnableInteractiveSearch types.Bool   `tfsdk:"enable_interactive_search"`
	EnableRss               types.Bool   `tfsdk:"enable_rss"`
	Priority                types.Int64  `tfsdk:"priority"`
	DownloadClientID        types.Int64  `tfsdk:"download_client_id"`
	ID                      types.Int64  `tfsdk:"id"`
	ConfigContract          types.String `tfsdk:"config_contract"`
	Implementation          types.String `tfsdk:"implementation"`
	Name                    types.String `tfsdk:"name"`
	Protocol                types.String `tfsdk:"protocol"`
	Tags                    types.Set    `tfsdk:"tags"`
	// Fields values
	AllowZeroSize             types.Bool    `tfsdk:"allow_zero_size"`
	AnimeStandardFormatSearch types.Bool    `tfsdk:"anime_standard_format_search"`
	RankedOnly                types.Bool    `tfsdk:"ranked_only"`
	Delay                     types.Int64   `tfsdk:"delay"`
	MinimumSeeders            types.Int64   `tfsdk:"minimum_seeders"`
	SeasonPackSeedTime        types.Int64   `tfsdk:"season_pack_seed_time"`
	SeedTime                  types.Int64   `tfsdk:"seed_time"`
	SeedRatio                 types.Float64 `tfsdk:"seed_ratio"`
	AdditionalParameters      types.String  `tfsdk:"additional_parameters"`
	APIKey                    types.String  `tfsdk:"api_key"`
	APIPath                   types.String  `tfsdk:"api_path"`
	BaseURL                   types.String  `tfsdk:"base_url"`
	CaptchaToken              types.String  `tfsdk:"captcha_token"`
	Cookie                    types.String  `tfsdk:"cookie"`
	Passkey                   types.String  `tfsdk:"passkey"`
	Username                  types.String  `tfsdk:"username"`
	AnimeCategories           types.Set     `tfsdk:"anime_categories"`
	Categories                types.Set     `tfsdk:"categories"`
}

Indexer is the indexer resource.

type IndexerConfig

type IndexerConfig struct {
	ID              types.Int64 `tfsdk:"id"`
	MaximumSize     types.Int64 `tfsdk:"maximum_size"`
	MinimumAge      types.Int64 `tfsdk:"minimum_age"`
	Retention       types.Int64 `tfsdk:"retention"`
	RssSyncInterval types.Int64 `tfsdk:"rss_sync_interval"`
}

IndexerConfig is the IndexerConfig resource.

type Indexers

type Indexers struct {
	ID       types.String `tfsdk:"id"`
	Indexers types.Set    `tfsdk:"indexers"`
}

TODO: remove ID once framework support tests without ID https://www.terraform.io/plugin/framework/acctests#implement-id-attribute Indexers is a list of Indexer.

type LanguageProfile

type LanguageProfile struct {
	UpgradeAllowed types.Bool   `tfsdk:"upgrade_allowed"`
	ID             types.Int64  `tfsdk:"id"`
	Name           types.String `tfsdk:"name"`
	CutoffLanguage types.String `tfsdk:"cutoff_language"`
	Languages      types.Set    `tfsdk:"languages"`
}

LanguageProfile is the language_profile resource.

type LanguageProfiles

type LanguageProfiles struct {
	ID               types.String `tfsdk:"id"`
	LanguageProfiles types.Set    `tfsdk:"language_profiles"`
}

TODO: remove ID once framework support tests without ID https://www.terraform.io/plugin/framework/acctests#implement-id-attribute LanguageProfiles is a list of LanguageProfile.

type MediaManagement

type MediaManagement struct {
	UnmonitorPreviousEpisodes types.Bool   `tfsdk:"unmonitor_previous_episodes"`
	HardlinksCopy             types.Bool   `tfsdk:"hardlinks_copy"`
	CreateEmptyFolders        types.Bool   `tfsdk:"create_empty_folders"`
	DeleteEmptyFolders        types.Bool   `tfsdk:"delete_empty_folders"`
	EnableMediaInfo           types.Bool   `tfsdk:"enable_media_info"`
	ImportExtraFiles          types.Bool   `tfsdk:"import_extra_files"`
	SetPermissions            types.Bool   `tfsdk:"set_permissions"`
	SkipFreeSpaceCheck        types.Bool   `tfsdk:"skip_free_space_check"`
	ID                        types.Int64  `tfsdk:"id"`
	MinimumFreeSpace          types.Int64  `tfsdk:"minimum_free_space"`
	RecycleBinDays            types.Int64  `tfsdk:"recycle_bin_days"`
	ChmodFolder               types.String `tfsdk:"chmod_folder"`
	ChownGroup                types.String `tfsdk:"chown_group"`
	DownloadPropersRepacks    types.String `tfsdk:"download_propers_repacks"`
	EpisodeTitleRequired      types.String `tfsdk:"episode_title_required"`
	ExtraFileExtensions       types.String `tfsdk:"extra_file_extensions"`
	FileDate                  types.String `tfsdk:"file_date"`
	RecycleBinPath            types.String `tfsdk:"recycle_bin_path"`
	RescanAfterRefresh        types.String `tfsdk:"rescan_after_refresh"`
}

MediaManagement is the MediaManagement resource.

type Naming

type Naming struct {
	RenameEpisodes           types.Bool   `tfsdk:"rename_episodes"`
	ReplaceIllegalCharacters types.Bool   `tfsdk:"replace_illegal_characters"`
	ID                       types.Int64  `tfsdk:"id"`
	MultiEpisodeStyle        types.Int64  `tfsdk:"multi_episode_style"`
	DailyEpisodeFormat       types.String `tfsdk:"daily_episode_format"`
	AnimeEpisodeFormat       types.String `tfsdk:"anime_episode_format"`
	SeriesFolderFormat       types.String `tfsdk:"series_folder_format"`
	SeasonFolderFormat       types.String `tfsdk:"season_folder_format"`
	SpecialsFolderFormat     types.String `tfsdk:"specials_folder_format"`
	StandardEpisodeFormat    types.String `tfsdk:"standard_episode_format"`
}

Naming is the Naming resource.

type Path

type Path struct {
	Name types.String `tfsdk:"name"`
	Path types.String `tfsdk:"path"`
}

Path part of RootFolder.

type Quality

type Quality struct {
	ID         types.Int64  `tfsdk:"id"`
	Resolution types.Int64  `tfsdk:"resolution"`
	Name       types.String `tfsdk:"name"`
	Source     types.String `tfsdk:"source"`
}

Quality is part of QualityGroup.

type QualityGroup

type QualityGroup struct {
	ID        types.Int64  `tfsdk:"id"`
	Name      types.String `tfsdk:"name"`
	Qualities types.Set    `tfsdk:"qualities"`
}

QualityGroup is part of QualityProfile.

type QualityProfile

type QualityProfile struct {
	UpgradeAllowed types.Bool   `tfsdk:"upgrade_allowed"`
	ID             types.Int64  `tfsdk:"id"`
	Cutoff         types.Int64  `tfsdk:"cutoff"`
	Name           types.String `tfsdk:"name"`
	QualityGroups  types.Set    `tfsdk:"quality_groups"`
}

QualityProfile is the quality_profile resource.

type QualityProfiles

type QualityProfiles struct {
	ID              types.String `tfsdk:"id"`
	QualityProfiles types.Set    `tfsdk:"quality_profiles"`
}

TODO: remove ID once framework support tests without ID https://www.terraform.io/plugin/framework/acctests#implement-id-attribute QualityProfiles is a list of QualityProfile.

type RootFolder

type RootFolder struct {
	Accessible      types.Bool   `tfsdk:"accessible"`
	ID              types.Int64  `tfsdk:"id"`
	Path            types.String `tfsdk:"path"`
	UnmappedFolders types.Set    `tfsdk:"unmapped_folders"`
}

RootFolder is the RootFolder resource.

type RootFolders

type RootFolders struct {
	ID          types.String `tfsdk:"id"`
	RootFolders types.Set    `tfsdk:"root_folders"`
}

TODO: remove ID once framework support tests without ID https://www.terraform.io/plugin/framework/acctests#implement-id-attribute QualityProfiles is a list of QualityProfile.

type Season

type Season struct {
	Monitored    types.Bool  `tfsdk:"monitored"`
	SeasonNumber types.Int64 `tfsdk:"season_number"`
}

Season is part of Series.

type Series

type Series struct {
	Monitored         types.Bool   `tfsdk:"monitored"`
	SeasonFolder      types.Bool   `tfsdk:"season_folder"`
	UseSceneNumbering types.Bool   `tfsdk:"use_scene_numbering"`
	ID                types.Int64  `tfsdk:"id"`
	LanguageProfileID types.Int64  `tfsdk:"language_profile_id"`
	QualityProfileID  types.Int64  `tfsdk:"quality_profile_id"`
	TvdbID            types.Int64  `tfsdk:"tvdb_id"`
	Path              types.String `tfsdk:"path"`
	Title             types.String `tfsdk:"title"`
	TitleSlug         types.String `tfsdk:"title_slug"`
	RootFolderPath    types.String `tfsdk:"root_folder_path"`
	Tags              types.Set    `tfsdk:"tags"`
}

Series is the series resource.

type SeriesList

type SeriesList struct {
	ID     types.String `tfsdk:"id"`
	Series types.Set    `tfsdk:"series"`
}

TODO: remove ID once framework support tests without ID https://www.terraform.io/plugin/framework/acctests#implement-id-attribute QualityProfiles is a list of QualityProfile.

type Tag

type Tag struct {
	ID    types.Int64  `tfsdk:"id"`
	Label types.String `tfsdk:"label"`
}

Tag is the tag resource.

type Tags

type Tags struct {
	ID   types.String `tfsdk:"id"`
	Tags types.Set    `tfsdk:"tags"`
}

TODO: remove ID once framework support tests without ID https://www.terraform.io/plugin/framework/acctests#implement-id-attribute Tags is a list of Tag.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL