Skip to content

Commit

Permalink
feat: add download client flood resource
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuochi committed Dec 8, 2022
1 parent 200d7ab commit 593bad5
Show file tree
Hide file tree
Showing 7 changed files with 567 additions and 1 deletion.
72 changes: 72 additions & 0 deletions docs/resources/download_client_flood.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "radarr_download_client_flood Resource - terraform-provider-radarr"
subcategory: "Download Clients"
description: |-
Download Client Flood resource.
For more information refer to Download Client https://wiki.servarr.com/radarr/settings#download-clients and Flood https://wiki.servarr.com/radarr/supported#flood.
---

# radarr_download_client_flood (Resource)

<!-- subcategory:Download Clients -->Download Client Flood resource.
For more information refer to [Download Client](https://wiki.servarr.com/radarr/settings#download-clients) and [Flood](https://wiki.servarr.com/radarr/supported#flood).

## Example Usage

```terraform
resource "radarr_download_client_flood" "example" {
enable = true
priority = 1
name = "Example"
host = "flood"
url_base = "/flood/"
port = 9091
add_paused = true
additional_tags = [0, 1]
field_tags = ["radarr"]
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `name` (String) Download Client name.

### Optional

- `add_paused` (Boolean) Add paused flag.
- `additional_tags` (Set of Number) Additional tags, `0` TitleSlug, `1` Quality, `2` Language, `3` ReleaseGroup, `4` Year, `5` Indexer, `6` Network.
- `destination` (String) Destination.
- `enable` (Boolean) Enable flag.
- `field_tags` (Set of String) Field tags.
- `host` (String) host.
- `movie_category` (String) TV category.
- `movie_directory` (String) TV directory.
- `older_movie_priority` (Number) Older TV priority. `0` Last, `1` First.
- `password` (String, Sensitive) Password.
- `port` (Number) Port.
- `post_import_tags` (Set of String) Post import tags.
- `priority` (Number) Priority.
- `recent_movie_priority` (Number) Recent TV priority. `0` Last, `1` First.
- `remove_completed_downloads` (Boolean) Remove completed downloads flag.
- `remove_failed_downloads` (Boolean) Remove failed downloads flag.
- `tags` (Set of Number) List of associated tags.
- `url_base` (String) Base URL.
- `use_ssl` (Boolean) Use SSL flag.
- `username` (String) Username.

### Read-Only

- `id` (Number) Download Client ID.

## Import

Import is supported using the following syntax:

```shell
# import using the API/UI ID
terraform import radarr_download_client_flood.example 1
```
2 changes: 2 additions & 0 deletions examples/resources/radarr_download_client_flood/import.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# import using the API/UI ID
terraform import radarr_download_client_flood.example 1
11 changes: 11 additions & 0 deletions examples/resources/radarr_download_client_flood/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
resource "radarr_download_client_flood" "example" {
enable = true
priority = 1
name = "Example"
host = "flood"
url_base = "/flood/"
port = 9091
add_paused = true
additional_tags = [0, 1]
field_tags = ["radarr"]
}
Loading

0 comments on commit 593bad5

Please sign in to comment.