Skip to content

Commit

Permalink
feat: make notification flags optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuochi committed Dec 15, 2022
1 parent b393cad commit 419b9c6
Show file tree
Hide file tree
Showing 50 changed files with 599 additions and 382 deletions.
4 changes: 2 additions & 2 deletions docs/resources/indexer.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
page_title: "radarr_indexer Resource - terraform-provider-radarr"
subcategory: "Indexers"
description: |-
Indexer resource.
Generic Indexer resource. When possible use a specific resource instead.
For more information refer to Indexer https://wiki.servarr.com/radarr/settings#indexers documentation.
---

# radarr_indexer (Resource)

<!-- subcategory:Indexers -->Indexer resource.
<!-- subcategory:Indexers -->Generic Indexer resource. When possible use a specific resource instead.
For more information refer to [Indexer](https://wiki.servarr.com/radarr/settings#indexers) documentation.

## Example Usage
Expand Down
20 changes: 10 additions & 10 deletions docs/resources/notification.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,8 @@ resource "radarr_notification" "example" {

- `config_contract` (String) Notification configuration template.
- `implementation` (String) Notification implementation name.
- `include_health_warnings` (Boolean) Include health warnings.
- `name` (String) Notification name.
- `on_application_update` (Boolean) On application update flag.
- `on_download` (Boolean) On download flag.
- `on_grab` (Boolean) On grab flag.
- `on_health_issue` (Boolean) On health issue flag.
- `on_movie_added` (Boolean) On movie added flag.
- `on_movie_delete` (Boolean) On movie delete flag.
- `on_movie_file_delete` (Boolean) On movie file delete flag.
- `on_movie_file_delete_for_upgrade` (Boolean) On movie file delete for upgrade flag.
- `on_rename` (Boolean) On rename flag.
- `on_upgrade` (Boolean) On upgrade flag.

### Optional

Expand Down Expand Up @@ -93,13 +83,23 @@ resource "radarr_notification" "example" {
- `host` (String) Host.
- `icon` (String) Icon.
- `import_fields` (Set of Number) Import fields. `0` Overview, `1` Rating, `2` Genres, `3` Quality, `4` Codecs, `5` Group, `6` Size, `7` Languages, `8` Subtitles, `9` Links, `10` Release, `11` Poster, `12` Fanart.
- `include_health_warnings` (Boolean) Include health warnings.
- `instance_name` (String) Instance name.
- `key` (String) Key.
- `map_from` (String) Map From.
- `map_to` (String) Map To.
- `mention` (String) Mention.
- `method` (Number) Method. `1` POST, `2` PUT.
- `notify` (Boolean) Notify flag.
- `on_application_update` (Boolean) On application update flag.
- `on_download` (Boolean) On download flag.
- `on_grab` (Boolean) On grab flag.
- `on_health_issue` (Boolean) On health issue flag.
- `on_movie_added` (Boolean) On movie added flag.
- `on_movie_file_delete` (Boolean) On movie file delete flag.
- `on_movie_file_delete_for_upgrade` (Boolean) On movie file delete for upgrade flag.
- `on_rename` (Boolean) On rename flag.
- `on_upgrade` (Boolean) On upgrade flag.
- `password` (String) password.
- `path` (String) Path.
- `port` (Number) Port.
Expand Down
12 changes: 6 additions & 6 deletions docs/resources/notification_boxcar.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,21 @@ resource "radarr_notification_boxcar" "example" {

### Required

- `include_health_warnings` (Boolean) Include health warnings.
- `name` (String) NotificationBoxcar name.
- `on_movie_delete` (Boolean) On movie delete flag.
- `token` (String, Sensitive) Token.

### Optional

- `include_health_warnings` (Boolean) Include health warnings.
- `on_application_update` (Boolean) On application update flag.
- `on_download` (Boolean) On download flag.
- `on_grab` (Boolean) On grab flag.
- `on_health_issue` (Boolean) On health issue flag.
- `on_movie_added` (Boolean) On movie added flag.
- `on_movie_delete` (Boolean) On movie delete flag.
- `on_movie_file_delete` (Boolean) On movie file delete flag.
- `on_movie_file_delete_for_upgrade` (Boolean) On movie file delete for upgrade flag.
- `on_upgrade` (Boolean) On upgrade flag.
- `token` (String, Sensitive) Token.

### Optional

- `tags` (Set of Number) List of associated tags.

### Read-Only
Expand Down
14 changes: 7 additions & 7 deletions docs/resources/notification_custom_script.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,23 +39,23 @@ resource "radarr_notification_custom_script" "example" {

### Required

- `include_health_warnings` (Boolean) Include health warnings.
- `name` (String) NotificationCustomScript name.
- `on_movie_delete` (Boolean) On movie delete flag.
- `path` (String) Path.

### Optional

- `arguments` (String) Arguments.
- `include_health_warnings` (Boolean) Include health warnings.
- `on_application_update` (Boolean) On application update flag.
- `on_download` (Boolean) On download flag.
- `on_grab` (Boolean) On grab flag.
- `on_health_issue` (Boolean) On health issue flag.
- `on_movie_added` (Boolean) On movie added flag.
- `on_movie_delete` (Boolean) On movie delete flag.
- `on_movie_file_delete` (Boolean) On movie file delete flag.
- `on_movie_file_delete_for_upgrade` (Boolean) On movie file delete for upgrade flag.
- `on_rename` (Boolean) On rename flag.
- `on_upgrade` (Boolean) On upgrade flag.
- `path` (String) Path.

### Optional

- `arguments` (String) Arguments.
- `tags` (Set of Number) List of associated tags.

### Read-Only
Expand Down
18 changes: 9 additions & 9 deletions docs/resources/notification_discord.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,8 @@ resource "radarr_notification_discord" "example" {

### Required

- `include_health_warnings` (Boolean) Include health warnings.
- `name` (String) NotificationDiscord name.
- `on_application_update` (Boolean) On application update flag.
- `on_download` (Boolean) On download flag.
- `on_grab` (Boolean) On grab flag.
- `on_health_issue` (Boolean) On health issue flag.
- `on_movie_delete` (Boolean) On movie delete flag.
- `on_movie_file_delete` (Boolean) On movie file delete flag.
- `on_movie_file_delete_for_upgrade` (Boolean) On movie file delete for upgrade flag.
- `on_rename` (Boolean) On rename flag.
- `on_upgrade` (Boolean) On upgrade flag.
- `web_hook_url` (String) Web hook URL.

### Optional
Expand All @@ -62,6 +53,15 @@ resource "radarr_notification_discord" "example" {
- `avatar` (String) Avatar.
- `grab_fields` (Set of Number) Grab fields. `0` Overview, `1` Rating, `2` Genres, `3` Quality, `4` Group, `5` Size, `6` Links, `7` Release, `8` Poster, `9` Fanart.
- `import_fields` (Set of Number) Import fields. `0` Overview, `1` Rating, `2` Genres, `3` Quality, `4` Codecs, `5` Group, `6` Size, `7` Languages, `8` Subtitles, `9` Links, `10` Release, `11` Poster, `12` Fanart.
- `include_health_warnings` (Boolean) Include health warnings.
- `on_application_update` (Boolean) On application update flag.
- `on_download` (Boolean) On download flag.
- `on_grab` (Boolean) On grab flag.
- `on_health_issue` (Boolean) On health issue flag.
- `on_movie_file_delete` (Boolean) On movie file delete flag.
- `on_movie_file_delete_for_upgrade` (Boolean) On movie file delete for upgrade flag.
- `on_rename` (Boolean) On rename flag.
- `on_upgrade` (Boolean) On upgrade flag.
- `tags` (Set of Number) List of associated tags.
- `username` (String) Username.

Expand Down
18 changes: 9 additions & 9 deletions docs/resources/notification_email.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,24 +42,24 @@ resource "radarr_notification_email" "example" {
### Required

- `from` (String) From.
- `include_health_warnings` (Boolean) Include health warnings.
- `name` (String) NotificationEmail name.
- `on_application_update` (Boolean) On application update flag.
- `on_download` (Boolean) On download flag.
- `on_grab` (Boolean) On grab flag.
- `on_health_issue` (Boolean) On health issue flag.
- `on_movie_added` (Boolean) On movie added flag.
- `on_movie_delete` (Boolean) On movie delete flag.
- `on_movie_file_delete` (Boolean) On movie file delete flag.
- `on_movie_file_delete_for_upgrade` (Boolean) On movie file delete for upgrade flag.
- `on_upgrade` (Boolean) On upgrade flag.
- `server` (String) Server.
- `to` (Set of String) To.

### Optional

- `bcc` (Set of String) Bcc.
- `cc` (Set of String) Cc.
- `include_health_warnings` (Boolean) Include health warnings.
- `on_application_update` (Boolean) On application update flag.
- `on_download` (Boolean) On download flag.
- `on_grab` (Boolean) On grab flag.
- `on_health_issue` (Boolean) On health issue flag.
- `on_movie_added` (Boolean) On movie added flag.
- `on_movie_file_delete` (Boolean) On movie file delete flag.
- `on_movie_file_delete_for_upgrade` (Boolean) On movie file delete for upgrade flag.
- `on_upgrade` (Boolean) On upgrade flag.
- `password` (String, Sensitive) Password.
- `port` (Number) Port.
- `require_encryption` (Boolean) Require encryption flag.
Expand Down
12 changes: 6 additions & 6 deletions docs/resources/notification_emby.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,22 @@ resource "radarr_notification_emby" "example" {

- `api_key` (String, Sensitive) API key.
- `host` (String) Host.
- `include_health_warnings` (Boolean) Include health warnings.
- `name` (String) NotificationEmby name.
- `on_movie_delete` (Boolean) On movie delete flag.

### Optional

- `include_health_warnings` (Boolean) Include health warnings.
- `notify` (Boolean) Notify flag.
- `on_application_update` (Boolean) On application update flag.
- `on_download` (Boolean) On download flag.
- `on_grab` (Boolean) On grab flag.
- `on_health_issue` (Boolean) On health issue flag.
- `on_movie_added` (Boolean) On movie added flag.
- `on_movie_delete` (Boolean) On movie delete flag.
- `on_movie_file_delete` (Boolean) On movie file delete flag.
- `on_movie_file_delete_for_upgrade` (Boolean) On movie file delete for upgrade flag.
- `on_rename` (Boolean) On rename flag.
- `on_upgrade` (Boolean) On upgrade flag.

### Optional

- `notify` (Boolean) Notify flag.
- `port` (Number) Port.
- `tags` (Set of Number) List of associated tags.
- `update_library` (Boolean) Update library flag.
Expand Down
12 changes: 6 additions & 6 deletions docs/resources/notification_gotify.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,21 +41,21 @@ resource "radarr_notification_gotify" "example" {
### Required

- `app_token` (String, Sensitive) App token.
- `include_health_warnings` (Boolean) Include health warnings.
- `name` (String) NotificationGotify name.
- `on_movie_delete` (Boolean) On movie delete flag.
- `server` (String) Server.

### Optional

- `include_health_warnings` (Boolean) Include health warnings.
- `on_application_update` (Boolean) On application update flag.
- `on_download` (Boolean) On download flag.
- `on_grab` (Boolean) On grab flag.
- `on_health_issue` (Boolean) On health issue flag.
- `on_movie_added` (Boolean) On movie added flag.
- `on_movie_delete` (Boolean) On movie delete flag.
- `on_movie_file_delete` (Boolean) On movie file delete flag.
- `on_movie_file_delete_for_upgrade` (Boolean) On movie file delete for upgrade flag.
- `on_upgrade` (Boolean) On upgrade flag.
- `server` (String) Server.

### Optional

- `priority` (Number) Priority. `0` Min, `2` Low, `5` Normal, `8` High.
- `tags` (Set of Number) List of associated tags.

Expand Down
14 changes: 7 additions & 7 deletions docs/resources/notification_join.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,22 @@ resource "radarr_notification_join" "example" {

### Required

- `include_health_warnings` (Boolean) Include health warnings.
- `name` (String) NotificationJoin name.
- `on_movie_delete` (Boolean) On movie delete flag.

### Optional

- `api_key` (String, Sensitive) API key.
- `device_names` (String) Device names. Comma separated list.
- `include_health_warnings` (Boolean) Include health warnings.
- `on_application_update` (Boolean) On application update flag.
- `on_download` (Boolean) On download flag.
- `on_grab` (Boolean) On grab flag.
- `on_health_issue` (Boolean) On health issue flag.
- `on_movie_added` (Boolean) On movie added flag.
- `on_movie_delete` (Boolean) On movie delete flag.
- `on_movie_file_delete` (Boolean) On movie file delete flag.
- `on_movie_file_delete_for_upgrade` (Boolean) On movie file delete for upgrade flag.
- `on_upgrade` (Boolean) On upgrade flag.

### Optional

- `api_key` (String, Sensitive) API key.
- `device_names` (String) Device names. Comma separated list.
- `priority` (Number) Priority. `-2` Silent, `-1` Quiet, `0` Normal, `1` High, `2` Emergency.
- `tags` (Set of Number) List of associated tags.

Expand Down
20 changes: 10 additions & 10 deletions docs/resources/notification_kodi.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,26 +44,26 @@ resource "radarr_notification_kodi" "example" {
### Required

- `host` (String) Host.
- `include_health_warnings` (Boolean) Include health warnings.
- `name` (String) NotificationKodi name.
- `on_application_update` (Boolean) On application update flag.
- `on_download` (Boolean) On download flag.
- `on_grab` (Boolean) On grab flag.
- `on_health_issue` (Boolean) On health issue flag.
- `on_movie_added` (Boolean) On movie added flag.
- `on_movie_delete` (Boolean) On movie delete flag.
- `on_movie_file_delete` (Boolean) On movie file delete flag.
- `on_movie_file_delete_for_upgrade` (Boolean) On movie file delete for upgrade flag.
- `on_rename` (Boolean) On rename flag.
- `on_upgrade` (Boolean) On upgrade flag.
- `port` (Number) Port.

### Optional

- `always_update` (Boolean) Always update flag.
- `clean_library` (Boolean) Clean library flag.
- `display_time` (Number) Display time.
- `include_health_warnings` (Boolean) Include health warnings.
- `notify` (Boolean) Notification flag.
- `on_application_update` (Boolean) On application update flag.
- `on_download` (Boolean) On download flag.
- `on_grab` (Boolean) On grab flag.
- `on_health_issue` (Boolean) On health issue flag.
- `on_movie_added` (Boolean) On movie added flag.
- `on_movie_file_delete` (Boolean) On movie file delete flag.
- `on_movie_file_delete_for_upgrade` (Boolean) On movie file delete for upgrade flag.
- `on_rename` (Boolean) On rename flag.
- `on_upgrade` (Boolean) On upgrade flag.
- `password` (String, Sensitive) Password.
- `tags` (Set of Number) List of associated tags.
- `update_library` (Boolean) Update library flag.
Expand Down
14 changes: 7 additions & 7 deletions docs/resources/notification_mailgun.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,22 @@ resource "radarr_notification_mailgun" "example" {
### Required

- `from` (String) From.
- `include_health_warnings` (Boolean) Include health warnings.
- `name` (String) NotificationMailgun name.
- `on_movie_delete` (Boolean) On movie delete flag.
- `recipients` (Set of String) Recipients.

### Optional

- `api_key` (String, Sensitive) API key.
- `include_health_warnings` (Boolean) Include health warnings.
- `on_application_update` (Boolean) On application update flag.
- `on_download` (Boolean) On download flag.
- `on_grab` (Boolean) On grab flag.
- `on_health_issue` (Boolean) On health issue flag.
- `on_movie_added` (Boolean) On movie added flag.
- `on_movie_delete` (Boolean) On movie delete flag.
- `on_movie_file_delete` (Boolean) On movie file delete flag.
- `on_movie_file_delete_for_upgrade` (Boolean) On movie file delete for upgrade flag.
- `on_upgrade` (Boolean) On upgrade flag.
- `recipients` (Set of String) Recipients.

### Optional

- `api_key` (String, Sensitive) API key.
- `sender_domain` (String) Sender domain.
- `tags` (Set of Number) List of associated tags.
- `use_eu_endpoint` (Boolean) Use EU endpoint flag.
Expand Down
12 changes: 6 additions & 6 deletions docs/resources/notification_notifiarr.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,21 @@ resource "radarr_notification_notifiarr" "example" {
### Required

- `api_key` (String, Sensitive) API key.
- `include_health_warnings` (Boolean) Include health warnings.
- `name` (String) NotificationNotifiarr name.
- `on_movie_delete` (Boolean) On movie delete flag.

### Optional

- `include_health_warnings` (Boolean) Include health warnings.
- `instance_name` (String) Instance Name.
- `on_application_update` (Boolean) On application update flag.
- `on_download` (Boolean) On download flag.
- `on_grab` (Boolean) On grab flag.
- `on_health_issue` (Boolean) On health issue flag.
- `on_movie_added` (Boolean) On movie added flag.
- `on_movie_delete` (Boolean) On movie delete flag.
- `on_movie_file_delete` (Boolean) On movie file delete flag.
- `on_movie_file_delete_for_upgrade` (Boolean) On movie file delete for upgrade flag.
- `on_upgrade` (Boolean) On upgrade flag.

### Optional

- `instance_name` (String) Instance Name.
- `tags` (Set of Number) List of associated tags.

### Read-Only
Expand Down
16 changes: 8 additions & 8 deletions docs/resources/notification_ntfy.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,23 +43,23 @@ resource "radarr_notification_ntfy" "example" {

### Required

- `include_health_warnings` (Boolean) Include health warnings.
- `name` (String) NotificationNtfy name.
- `on_movie_delete` (Boolean) On movie delete flag.
- `topics` (Set of String) Topics.

### Optional

- `click_url` (String) Click URL.
- `field_tags` (Set of String) Tags and emojis.
- `include_health_warnings` (Boolean) Include health warnings.
- `on_application_update` (Boolean) On application update flag.
- `on_download` (Boolean) On download flag.
- `on_grab` (Boolean) On grab flag.
- `on_health_issue` (Boolean) On health issue flag.
- `on_movie_added` (Boolean) On movie added flag.
- `on_movie_delete` (Boolean) On movie delete flag.
- `on_movie_file_delete` (Boolean) On movie file delete flag.
- `on_movie_file_delete_for_upgrade` (Boolean) On movie file delete for upgrade flag.
- `on_upgrade` (Boolean) On upgrade flag.
- `topics` (Set of String) Topics.

### Optional

- `click_url` (String) Click URL.
- `field_tags` (Set of String) Tags and emojis.
- `password` (String, Sensitive) Password.
- `priority` (Number) Priority. `1` Min, `2` Low, `3` Default, `4` High, `5` Max.
- `server_url` (String) Server URL.
Expand Down
Loading

0 comments on commit 419b9c6

Please sign in to comment.