generated from hashicorp/terraform-provider-scaffolding-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add import list trakt user resource
- Loading branch information
Showing
7 changed files
with
525 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
14
examples/resources/radarr_import_list_trakt_user/resource.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
Oops, something went wrong.