Skip to content

Commit

Permalink
feat: add import list trakt user resource
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuochi committed Jan 26, 2023
1 parent a64e56b commit fba8af7
Show file tree
Hide file tree
Showing 7 changed files with 525 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/resources/import_list_trakt_popular.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ resource "radarr_import_list_trakt_popular" "example" {
- `search_on_add` (Boolean) Search on add flag.
- `tags` (Set of Number) List of associated tags.
- `trakt_additional_parameters` (String) Trakt additional parameters.
- `trakt_list_type` (Number) Trakt list type.
- `trakt_list_type` (Number) Trakt list type.`0` Trending, `1` Popular, `2` Anticipated, `3` BoxOffice, `4` TopWatchedByWeek, `5` TopWatchedByMonth, `6` TopWatchedByYear, `7` TopWatchedByAllTime, `8` RecommendedByWeek, `9` RecommendedByMonth, `10` RecommendedByYear, `10` RecommendedByAllTime.
- `years` (String) Years.

### Read-Only
Expand Down
72 changes: 72 additions & 0 deletions docs/resources/import_list_trakt_user.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_import_list_trakt_user Resource - terraform-provider-radarr"
subcategory: "Import Lists"
description: |-
Import List Trakt User resource.
For more information refer to Import List https://wiki.servarr.com/radarr/settings#import-lists and Trakt User https://wiki.servarr.com/radarr/supported#traktuserimport.
---

# radarr_import_list_trakt_user (Resource)

<!-- subcategory:Import Lists -->Import List Trakt User resource.
For more information refer to [Import List](https://wiki.servarr.com/radarr/settings#import-lists) and [Trakt User](https://wiki.servarr.com/radarr/supported#traktuserimport).

## Example Usage

```terraform
resource "radarr_import_list_trakt_user" "example" {
enabled = true
enable_auto = false
search_on_add = false
root_folder_path = "/config"
monitor = "none"
minimum_availability = "tba"
quality_profile_id = 1
name = "Example"
auth_user = "User1"
access_token = "Token"
trakt_list_type = 0
limit = 100
}
```

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

### Required

- `access_token` (String, Sensitive) Access token.
- `auth_user` (String) Auth user.
- `limit` (Number) limit.
- `minimum_availability` (String) Minimum availability.
- `monitor` (String) Should monitor.
- `name` (String) Import List name.
- `quality_profile_id` (Number) Quality profile ID.
- `root_folder_path` (String) Root folder path.

### Optional

- `enable_auto` (Boolean) Enable automatic add flag.
- `enabled` (Boolean) Enabled flag.
- `expires` (String) Expires.
- `list_order` (Number) List order.
- `refresh_token` (String, Sensitive) Refresh token.
- `search_on_add` (Boolean) Search on add flag.
- `tags` (Set of Number) List of associated tags.
- `trakt_additional_parameters` (String) Trakt additional parameters.
- `trakt_list_type` (Number) Trakt list type.`0` UserWatchList, `1` UserWatchedList, `2` UserCollectionList.
- `username` (String) Username.

### Read-Only

- `id` (Number) Import List ID.

## Import

Import is supported using the following syntax:

```shell
# import using the API/UI ID
terraform import radarr_import_list_trakt_user.example 1
```
2 changes: 2 additions & 0 deletions examples/resources/radarr_import_list_trakt_user/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_import_list_trakt_user.example 1
14 changes: 14 additions & 0 deletions examples/resources/radarr_import_list_trakt_user/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
resource "radarr_import_list_trakt_user" "example" {
enabled = true
enable_auto = false
search_on_add = false
root_folder_path = "/config"
monitor = "none"
minimum_availability = "tba"
quality_profile_id = 1
name = "Example"
auth_user = "User1"
access_token = "Token"
trakt_list_type = 0
limit = 100
}
Loading

0 comments on commit fba8af7

Please sign in to comment.