Skip to content

Commit

Permalink
feat: add download client utorrent resource
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuochi committed Dec 8, 2022
1 parent 73176e3 commit be1a82c
Show file tree
Hide file tree
Showing 6 changed files with 529 additions and 0 deletions.
67 changes: 67 additions & 0 deletions docs/resources/download_client_utorrent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "radarr_download_client_utorrent Resource - terraform-provider-radarr"
subcategory: "Download Clients"
description: |-
Download Client uTorrent resource.
For more information refer to Download Client https://wiki.servarr.com/radarr/settings#download-clients and uTorrent https://wiki.servarr.com/radarr/supported#utorrent.
---

# radarr_download_client_utorrent (Resource)

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

## Example Usage

```terraform
resource "radarr_download_client_utorrent" "example" {
enable = true
priority = 1
name = "Example"
host = "utorrent"
url_base = "/utorrent/"
port = 9091
movie_category = "tv-radarr"
}
```

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

### Required

- `name` (String) Download Client name.

### Optional

- `enable` (Boolean) Enable flag.
- `host` (String) host.
- `intial_state` (Number) Initial state, with Stop support. `0` Start, `1` ForceStart, `2` Pause, `3` Stop.
- `movie_category` (String) TV category.
- `movie_directory` (String) TV directory.
- `movie_imported_category` (String) TV imported category.
- `older_movie_priority` (Number) Older TV priority. `0` Last, `1` First.
- `password` (String, Sensitive) Password.
- `port` (Number) Port.
- `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_utorrent.example 1
```
2 changes: 2 additions & 0 deletions examples/resources/radarr_download_client_utorrent/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_utorrent.example 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
resource "radarr_download_client_utorrent" "example" {
enable = true
priority = 1
name = "Example"
host = "utorrent"
url_base = "/utorrent/"
port = 9091
movie_category = "tv-radarr"
}
Loading

0 comments on commit be1a82c

Please sign in to comment.