diff --git a/docs/resources/indexer.md b/docs/resources/indexer.md index d01996df..7a22c6fa 100644 --- a/docs/resources/indexer.md +++ b/docs/resources/indexer.md @@ -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) -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. ## Example Usage diff --git a/docs/resources/notification.md b/docs/resources/notification.md index 9ccbcdc9..6880e7fd 100644 --- a/docs/resources/notification.md +++ b/docs/resources/notification.md @@ -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 @@ -93,6 +83,7 @@ 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. @@ -100,6 +91,15 @@ resource "radarr_notification" "example" { - `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. diff --git a/docs/resources/notification_boxcar.md b/docs/resources/notification_boxcar.md index 7ff6ee07..39a8d91d 100644 --- a/docs/resources/notification_boxcar.md +++ b/docs/resources/notification_boxcar.md @@ -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 diff --git a/docs/resources/notification_custom_script.md b/docs/resources/notification_custom_script.md index f60a4c3f..bd629c1e 100644 --- a/docs/resources/notification_custom_script.md +++ b/docs/resources/notification_custom_script.md @@ -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 diff --git a/docs/resources/notification_discord.md b/docs/resources/notification_discord.md index 26c3e3d0..6472590e 100644 --- a/docs/resources/notification_discord.md +++ b/docs/resources/notification_discord.md @@ -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 @@ -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. diff --git a/docs/resources/notification_email.md b/docs/resources/notification_email.md index 473e4a3c..1c17e355 100644 --- a/docs/resources/notification_email.md +++ b/docs/resources/notification_email.md @@ -42,17 +42,8 @@ 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. @@ -60,6 +51,15 @@ resource "radarr_notification_email" "example" { - `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. diff --git a/docs/resources/notification_emby.md b/docs/resources/notification_emby.md index 681416a3..f2873729 100644 --- a/docs/resources/notification_emby.md +++ b/docs/resources/notification_emby.md @@ -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. diff --git a/docs/resources/notification_gotify.md b/docs/resources/notification_gotify.md index 05ebe5cc..5deb5d7f 100644 --- a/docs/resources/notification_gotify.md +++ b/docs/resources/notification_gotify.md @@ -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. diff --git a/docs/resources/notification_join.md b/docs/resources/notification_join.md index 029ea7ca..04c9f8a9 100644 --- a/docs/resources/notification_join.md +++ b/docs/resources/notification_join.md @@ -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. diff --git a/docs/resources/notification_kodi.md b/docs/resources/notification_kodi.md index ef3cf0f7..7d3b22b9 100644 --- a/docs/resources/notification_kodi.md +++ b/docs/resources/notification_kodi.md @@ -44,18 +44,8 @@ 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 @@ -63,7 +53,17 @@ resource "radarr_notification_kodi" "example" { - `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. diff --git a/docs/resources/notification_mailgun.md b/docs/resources/notification_mailgun.md index 262b843a..73d08105 100644 --- a/docs/resources/notification_mailgun.md +++ b/docs/resources/notification_mailgun.md @@ -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. diff --git a/docs/resources/notification_notifiarr.md b/docs/resources/notification_notifiarr.md index f2aa5880..21d2c2cb 100644 --- a/docs/resources/notification_notifiarr.md +++ b/docs/resources/notification_notifiarr.md @@ -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 diff --git a/docs/resources/notification_ntfy.md b/docs/resources/notification_ntfy.md index 46fce6eb..0f464f50 100644 --- a/docs/resources/notification_ntfy.md +++ b/docs/resources/notification_ntfy.md @@ -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. diff --git a/docs/resources/notification_plex.md b/docs/resources/notification_plex.md index 20aa3820..159dad7c 100644 --- a/docs/resources/notification_plex.md +++ b/docs/resources/notification_plex.md @@ -40,18 +40,18 @@ resource "radarr_notification_plex" "example" { - `auth_token` (String, Sensitive) Auth Token. - `host` (String) Host. -- `include_health_warnings` (Boolean) Include health warnings. - `name` (String) NotificationPlex name. +- `on_movie_delete` (Boolean) On movie delete flag. + +### Optional + +- `include_health_warnings` (Boolean) Include health warnings. - `on_download` (Boolean) On download 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 - - `port` (Number) Port. - `tags` (Set of Number) List of associated tags. - `update_library` (Boolean) Update library flag. diff --git a/docs/resources/notification_prowl.md b/docs/resources/notification_prowl.md index eec51324..dad93445 100644 --- a/docs/resources/notification_prowl.md +++ b/docs/resources/notification_prowl.md @@ -40,20 +40,20 @@ resource "radarr_notification_prowl" "example" { ### Required - `api_key` (String, Sensitive) API key. -- `include_health_warnings` (Boolean) Include health warnings. - `name` (String) NotificationProwl name. +- `on_movie_delete` (Boolean) On movie delete flag. + +### 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. - -### Optional - - `priority` (Number) Priority.`-2` Very Low, `-1` Low, `0` Normal, `1` High, `2` Emergency. - `tags` (Set of Number) List of associated tags. diff --git a/docs/resources/notification_pushbullet.md b/docs/resources/notification_pushbullet.md index 5f22a123..8e8c4ba1 100644 --- a/docs/resources/notification_pushbullet.md +++ b/docs/resources/notification_pushbullet.md @@ -40,22 +40,22 @@ resource "radarr_notification_pushbullet" "example" { ### Required - `api_key` (String, Sensitive) API key. -- `include_health_warnings` (Boolean) Include health warnings. - `name` (String) NotificationPushbullet name. +- `on_movie_delete` (Boolean) On movie delete flag. + +### Optional + +- `channel_tags` (Set of String) List of channel tags. +- `device_ids` (Set of String) List of devices IDs. +- `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 - -- `channel_tags` (Set of String) List of channel tags. -- `device_ids` (Set of String) List of devices IDs. - `sender_id` (String) Sender ID. - `tags` (Set of Number) List of associated tags. diff --git a/docs/resources/notification_pushover.md b/docs/resources/notification_pushover.md index 64e54d06..bbcd4b80 100644 --- a/docs/resources/notification_pushover.md +++ b/docs/resources/notification_pushover.md @@ -40,22 +40,22 @@ resource "radarr_notification_join" "example" { ### Required - `api_key` (String, Sensitive) API key. -- `include_health_warnings` (Boolean) Include health warnings. - `name` (String) NotificationPushover name. +- `on_movie_delete` (Boolean) On movie delete flag. + +### Optional + +- `devices` (Set of String) List of devices. +- `expire` (Number) Expire. +- `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 - -- `devices` (Set of String) List of devices. -- `expire` (Number) Expire. - `priority` (Number) Priority. `-2` Silent, `-1` Quiet, `0` Normal, `1` High, `2` Emergency, `8` High. - `retry` (Number) Retry. - `sound` (String) Sound. diff --git a/docs/resources/notification_sendgrid.md b/docs/resources/notification_sendgrid.md index 9290e986..7914ff27 100644 --- a/docs/resources/notification_sendgrid.md +++ b/docs/resources/notification_sendgrid.md @@ -41,22 +41,22 @@ resource "radarr_notification_sendgrid" "example" { ### Required - `from` (String) From. -- `include_health_warnings` (Boolean) Include health warnings. - `name` (String) NotificationSendgrid 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. - `tags` (Set of Number) List of associated tags. ### Read-Only diff --git a/docs/resources/notification_simplepush.md b/docs/resources/notification_simplepush.md index b4f43fc1..844e4bd5 100644 --- a/docs/resources/notification_simplepush.md +++ b/docs/resources/notification_simplepush.md @@ -39,22 +39,22 @@ resource "radarr_notification_simplepush" "example" { ### Required -- `include_health_warnings` (Boolean) Include health warnings. - `key` (String, Sensitive) Key. - `name` (String) NotificationSimplepush name. +- `on_movie_delete` (Boolean) On movie delete flag. + +### Optional + +- `event` (String) Event. +- `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 - -- `event` (String) Event. - `tags` (Set of Number) List of associated tags. ### Read-Only diff --git a/docs/resources/notification_slack.md b/docs/resources/notification_slack.md index ddf9e99d..b38beed1 100644 --- a/docs/resources/notification_slack.md +++ b/docs/resources/notification_slack.md @@ -41,25 +41,25 @@ resource "radarr_notification_slack" "example" { ### Required -- `include_health_warnings` (Boolean) Include health warnings. - `name` (String) NotificationSlack name. +- `on_movie_delete` (Boolean) On movie delete flag. +- `username` (String) Username. +- `web_hook_url` (String) URL. + +### Optional + +- `channel` (String) Channel. +- `icon` (String) Icon. +- `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. -- `username` (String) Username. -- `web_hook_url` (String) URL. - -### Optional - -- `channel` (String) Channel. -- `icon` (String) Icon. - `tags` (Set of Number) List of associated tags. ### Read-Only diff --git a/docs/resources/notification_synology_indexer.md b/docs/resources/notification_synology_indexer.md index 24856bcd..f1880bab 100644 --- a/docs/resources/notification_synology_indexer.md +++ b/docs/resources/notification_synology_indexer.md @@ -36,18 +36,18 @@ resource "radarr_notification_synology_indexer" "example" { ### Required -- `include_health_warnings` (Boolean) Include health warnings. - `name` (String) NotificationSynology name. +- `on_movie_delete` (Boolean) On movie delete flag. + +### Optional + +- `include_health_warnings` (Boolean) Include health warnings. - `on_download` (Boolean) On download 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 - - `tags` (Set of Number) List of associated tags. - `update_library` (Boolean) Update library flag. diff --git a/docs/resources/notification_telegram.md b/docs/resources/notification_telegram.md index 471cf949..85ba60af 100644 --- a/docs/resources/notification_telegram.md +++ b/docs/resources/notification_telegram.md @@ -41,20 +41,20 @@ resource "radarr_notification_telegram" "example" { - `bot_token` (String, Sensitive) Bot token. - `chat_id` (String) Chat ID. -- `include_health_warnings` (Boolean) Include health warnings. - `name` (String) NotificationTelegram name. +- `on_movie_delete` (Boolean) On movie delete flag. + +### 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. - -### Optional - - `send_silently` (Boolean) Send silently flag. - `tags` (Set of Number) List of associated tags. diff --git a/docs/resources/notification_trakt.md b/docs/resources/notification_trakt.md index bd8f7c4a..8589e5ce 100644 --- a/docs/resources/notification_trakt.md +++ b/docs/resources/notification_trakt.md @@ -38,17 +38,17 @@ resource "radarr_notification_trakt" "example" { - `access_token` (String, Sensitive) Access Token. - `auth_user` (String) Auth user. -- `include_health_warnings` (Boolean) Include health warnings. - `name` (String) NotificationTrakt name. +- `on_movie_delete` (Boolean) On movie delete flag. + +### Optional + +- `include_health_warnings` (Boolean) Include health warnings. - `on_download` (Boolean) On download 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 - - `refresh_token` (String, Sensitive) Access Token. - `tags` (Set of Number) List of associated tags. diff --git a/docs/resources/notification_twitter.md b/docs/resources/notification_twitter.md index d130cb3f..b6bde51e 100644 --- a/docs/resources/notification_twitter.md +++ b/docs/resources/notification_twitter.md @@ -46,22 +46,22 @@ resource "radarr_notification_twitter" "example" { - `access_token_secret` (String, Sensitive) Access token secret. - `consumer_key` (String, Sensitive) Consumer Key. - `consumer_secret` (String, Sensitive) Consumer Secret. -- `include_health_warnings` (Boolean) Include health warnings. - `mention` (String) Mention. - `name` (String) NotificationTwitter name. +- `on_movie_delete` (Boolean) On movie delete flag. + +### Optional + +- `direct_message` (Boolean) Direct message flag. +- `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 - -- `direct_message` (Boolean) Direct message flag. - `tags` (Set of Number) List of associated tags. ### Read-Only diff --git a/docs/resources/notification_webhook.md b/docs/resources/notification_webhook.md index 2d916d56..fabe67ea 100644 --- a/docs/resources/notification_webhook.md +++ b/docs/resources/notification_webhook.md @@ -42,23 +42,23 @@ resource "radarr_notification_webhook" "example" { ### Required -- `include_health_warnings` (Boolean) Include health warnings. - `method` (Number) Method. `1` POST, `2` PUT. - `name` (String) NotificationWebhook name. +- `on_movie_delete` (Boolean) On movie delete flag. +- `url` (String) URL. + +### 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_rename` (Boolean) On rename flag. - `on_upgrade` (Boolean) On upgrade flag. -- `url` (String) URL. - -### Optional - - `password` (String) password. - `tags` (Set of Number) List of associated tags. - `username` (String) Username. diff --git a/internal/provider/indexer_resource.go b/internal/provider/indexer_resource.go index 4f6ad03f..cf54488e 100644 --- a/internal/provider/indexer_resource.go +++ b/internal/provider/indexer_resource.go @@ -89,7 +89,7 @@ func (r *IndexerResource) Metadata(ctx context.Context, req resource.MetadataReq func (r *IndexerResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { resp.Schema = schema.Schema{ - MarkdownDescription: "Indexer resource.\nFor more information refer to [Indexer](https://wiki.servarr.com/radarr/settings#indexers) documentation.", + MarkdownDescription: "Generic Indexer resource. When possible use a specific resource instead.\nFor more information refer to [Indexer](https://wiki.servarr.com/radarr/settings#indexers) documentation.", Attributes: map[string]schema.Attribute{ "enable_automatic_search": schema.BoolAttribute{ MarkdownDescription: "Enable automatic search flag.", diff --git a/internal/provider/notification_boxcar_resource.go b/internal/provider/notification_boxcar_resource.go index acd7d295..33fe4745 100644 --- a/internal/provider/notification_boxcar_resource.go +++ b/internal/provider/notification_boxcar_resource.go @@ -102,19 +102,23 @@ func (r *NotificationBoxcarResource) Schema(ctx context.Context, req resource.Sc Attributes: map[string]schema.Attribute{ "on_grab": schema.BoolAttribute{ MarkdownDescription: "On grab flag.", - Required: true, + Optional: true, + Computed: true, }, "on_download": schema.BoolAttribute{ MarkdownDescription: "On download flag.", - Required: true, + Optional: true, + Computed: true, }, "on_upgrade": schema.BoolAttribute{ MarkdownDescription: "On upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_added": schema.BoolAttribute{ MarkdownDescription: "On movie added flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_delete": schema.BoolAttribute{ MarkdownDescription: "On movie delete flag.", @@ -122,23 +126,28 @@ func (r *NotificationBoxcarResource) Schema(ctx context.Context, req resource.Sc }, "on_movie_file_delete": schema.BoolAttribute{ MarkdownDescription: "On movie file delete flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_file_delete_for_upgrade": schema.BoolAttribute{ MarkdownDescription: "On movie file delete for upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_health_issue": schema.BoolAttribute{ MarkdownDescription: "On health issue flag.", - Required: true, + Optional: true, + Computed: true, }, "on_application_update": schema.BoolAttribute{ MarkdownDescription: "On application update flag.", - Required: true, + Optional: true, + Computed: true, }, "include_health_warnings": schema.BoolAttribute{ MarkdownDescription: "Include health warnings.", - Required: true, + Optional: true, + Computed: true, }, "name": schema.StringAttribute{ MarkdownDescription: "NotificationBoxcar name.", diff --git a/internal/provider/notification_custom_script_resource.go b/internal/provider/notification_custom_script_resource.go index 78412140..c27b14a7 100644 --- a/internal/provider/notification_custom_script_resource.go +++ b/internal/provider/notification_custom_script_resource.go @@ -108,23 +108,28 @@ func (r *NotificationCustomScriptResource) Schema(ctx context.Context, req resou Attributes: map[string]schema.Attribute{ "on_grab": schema.BoolAttribute{ MarkdownDescription: "On grab flag.", - Required: true, + Optional: true, + Computed: true, }, "on_download": schema.BoolAttribute{ MarkdownDescription: "On download flag.", - Required: true, + Optional: true, + Computed: true, }, "on_upgrade": schema.BoolAttribute{ MarkdownDescription: "On upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_rename": schema.BoolAttribute{ MarkdownDescription: "On rename flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_added": schema.BoolAttribute{ MarkdownDescription: "On movie added flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_delete": schema.BoolAttribute{ MarkdownDescription: "On movie delete flag.", @@ -132,23 +137,28 @@ func (r *NotificationCustomScriptResource) Schema(ctx context.Context, req resou }, "on_movie_file_delete": schema.BoolAttribute{ MarkdownDescription: "On movie file delete flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_file_delete_for_upgrade": schema.BoolAttribute{ MarkdownDescription: "On movie file delete for upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_health_issue": schema.BoolAttribute{ MarkdownDescription: "On health issue flag.", - Required: true, + Optional: true, + Computed: true, }, "on_application_update": schema.BoolAttribute{ MarkdownDescription: "On application update flag.", - Required: true, + Optional: true, + Computed: true, }, "include_health_warnings": schema.BoolAttribute{ MarkdownDescription: "Include health warnings.", - Required: true, + Optional: true, + Computed: true, }, "name": schema.StringAttribute{ MarkdownDescription: "NotificationCustomScript name.", diff --git a/internal/provider/notification_discord_resource.go b/internal/provider/notification_discord_resource.go index 4ed99119..63235737 100644 --- a/internal/provider/notification_discord_resource.go +++ b/internal/provider/notification_discord_resource.go @@ -117,19 +117,23 @@ func (r *NotificationDiscordResource) Schema(ctx context.Context, req resource.S Attributes: map[string]schema.Attribute{ "on_grab": schema.BoolAttribute{ MarkdownDescription: "On grab flag.", - Required: true, + Optional: true, + Computed: true, }, "on_download": schema.BoolAttribute{ MarkdownDescription: "On download flag.", - Required: true, + Optional: true, + Computed: true, }, "on_upgrade": schema.BoolAttribute{ MarkdownDescription: "On upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_rename": schema.BoolAttribute{ MarkdownDescription: "On rename flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_delete": schema.BoolAttribute{ MarkdownDescription: "On movie delete flag.", @@ -137,23 +141,28 @@ func (r *NotificationDiscordResource) Schema(ctx context.Context, req resource.S }, "on_movie_file_delete": schema.BoolAttribute{ MarkdownDescription: "On movie file delete flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_file_delete_for_upgrade": schema.BoolAttribute{ MarkdownDescription: "On movie file delete for upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_health_issue": schema.BoolAttribute{ MarkdownDescription: "On health issue flag.", - Required: true, + Optional: true, + Computed: true, }, "on_application_update": schema.BoolAttribute{ MarkdownDescription: "On application update flag.", - Required: true, + Optional: true, + Computed: true, }, "include_health_warnings": schema.BoolAttribute{ MarkdownDescription: "Include health warnings.", - Required: true, + Optional: true, + Computed: true, }, "name": schema.StringAttribute{ MarkdownDescription: "NotificationDiscord name.", diff --git a/internal/provider/notification_email_resource.go b/internal/provider/notification_email_resource.go index 589e8166..2f8c8805 100644 --- a/internal/provider/notification_email_resource.go +++ b/internal/provider/notification_email_resource.go @@ -126,19 +126,23 @@ func (r *NotificationEmailResource) Schema(ctx context.Context, req resource.Sch Attributes: map[string]schema.Attribute{ "on_grab": schema.BoolAttribute{ MarkdownDescription: "On grab flag.", - Required: true, + Optional: true, + Computed: true, }, "on_download": schema.BoolAttribute{ MarkdownDescription: "On download flag.", - Required: true, + Optional: true, + Computed: true, }, "on_upgrade": schema.BoolAttribute{ MarkdownDescription: "On upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_added": schema.BoolAttribute{ MarkdownDescription: "On movie added flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_delete": schema.BoolAttribute{ MarkdownDescription: "On movie delete flag.", @@ -146,23 +150,28 @@ func (r *NotificationEmailResource) Schema(ctx context.Context, req resource.Sch }, "on_movie_file_delete": schema.BoolAttribute{ MarkdownDescription: "On movie file delete flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_file_delete_for_upgrade": schema.BoolAttribute{ MarkdownDescription: "On movie file delete for upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_health_issue": schema.BoolAttribute{ MarkdownDescription: "On health issue flag.", - Required: true, + Optional: true, + Computed: true, }, "on_application_update": schema.BoolAttribute{ MarkdownDescription: "On application update flag.", - Required: true, + Optional: true, + Computed: true, }, "include_health_warnings": schema.BoolAttribute{ MarkdownDescription: "Include health warnings.", - Required: true, + Optional: true, + Computed: true, }, "name": schema.StringAttribute{ MarkdownDescription: "NotificationEmail name.", diff --git a/internal/provider/notification_emby_resource.go b/internal/provider/notification_emby_resource.go index dcb23f34..ea8baedd 100644 --- a/internal/provider/notification_emby_resource.go +++ b/internal/provider/notification_emby_resource.go @@ -120,23 +120,28 @@ func (r *NotificationEmbyResource) Schema(ctx context.Context, req resource.Sche Attributes: map[string]schema.Attribute{ "on_grab": schema.BoolAttribute{ MarkdownDescription: "On grab flag.", - Required: true, + Optional: true, + Computed: true, }, "on_download": schema.BoolAttribute{ MarkdownDescription: "On download flag.", - Required: true, + Optional: true, + Computed: true, }, "on_upgrade": schema.BoolAttribute{ MarkdownDescription: "On upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_rename": schema.BoolAttribute{ MarkdownDescription: "On rename flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_added": schema.BoolAttribute{ MarkdownDescription: "On movie added flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_delete": schema.BoolAttribute{ MarkdownDescription: "On movie delete flag.", @@ -144,23 +149,28 @@ func (r *NotificationEmbyResource) Schema(ctx context.Context, req resource.Sche }, "on_movie_file_delete": schema.BoolAttribute{ MarkdownDescription: "On movie file delete flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_file_delete_for_upgrade": schema.BoolAttribute{ MarkdownDescription: "On movie file delete for upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_health_issue": schema.BoolAttribute{ MarkdownDescription: "On health issue flag.", - Required: true, + Optional: true, + Computed: true, }, "on_application_update": schema.BoolAttribute{ MarkdownDescription: "On application update flag.", - Required: true, + Optional: true, + Computed: true, }, "include_health_warnings": schema.BoolAttribute{ MarkdownDescription: "Include health warnings.", - Required: true, + Optional: true, + Computed: true, }, "name": schema.StringAttribute{ MarkdownDescription: "NotificationEmby name.", diff --git a/internal/provider/notification_gotify_resource.go b/internal/provider/notification_gotify_resource.go index 88ce8cd4..a2f51e60 100644 --- a/internal/provider/notification_gotify_resource.go +++ b/internal/provider/notification_gotify_resource.go @@ -110,19 +110,23 @@ func (r *NotificationGotifyResource) Schema(ctx context.Context, req resource.Sc Attributes: map[string]schema.Attribute{ "on_grab": schema.BoolAttribute{ MarkdownDescription: "On grab flag.", - Required: true, + Optional: true, + Computed: true, }, "on_download": schema.BoolAttribute{ MarkdownDescription: "On download flag.", - Required: true, + Optional: true, + Computed: true, }, "on_upgrade": schema.BoolAttribute{ MarkdownDescription: "On upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_added": schema.BoolAttribute{ MarkdownDescription: "On movie added flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_delete": schema.BoolAttribute{ MarkdownDescription: "On movie delete flag.", @@ -130,23 +134,28 @@ func (r *NotificationGotifyResource) Schema(ctx context.Context, req resource.Sc }, "on_movie_file_delete": schema.BoolAttribute{ MarkdownDescription: "On movie file delete flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_file_delete_for_upgrade": schema.BoolAttribute{ MarkdownDescription: "On movie file delete for upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_health_issue": schema.BoolAttribute{ MarkdownDescription: "On health issue flag.", - Required: true, + Optional: true, + Computed: true, }, "on_application_update": schema.BoolAttribute{ MarkdownDescription: "On application update flag.", - Required: true, + Optional: true, + Computed: true, }, "include_health_warnings": schema.BoolAttribute{ MarkdownDescription: "Include health warnings.", - Required: true, + Optional: true, + Computed: true, }, "name": schema.StringAttribute{ MarkdownDescription: "NotificationGotify name.", diff --git a/internal/provider/notification_join_resource.go b/internal/provider/notification_join_resource.go index bd273f55..e302c17b 100644 --- a/internal/provider/notification_join_resource.go +++ b/internal/provider/notification_join_resource.go @@ -110,19 +110,23 @@ func (r *NotificationJoinResource) Schema(ctx context.Context, req resource.Sche Attributes: map[string]schema.Attribute{ "on_grab": schema.BoolAttribute{ MarkdownDescription: "On grab flag.", - Required: true, + Optional: true, + Computed: true, }, "on_download": schema.BoolAttribute{ MarkdownDescription: "On download flag.", - Required: true, + Optional: true, + Computed: true, }, "on_upgrade": schema.BoolAttribute{ MarkdownDescription: "On upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_added": schema.BoolAttribute{ MarkdownDescription: "On movie added flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_delete": schema.BoolAttribute{ MarkdownDescription: "On movie delete flag.", @@ -130,23 +134,28 @@ func (r *NotificationJoinResource) Schema(ctx context.Context, req resource.Sche }, "on_movie_file_delete": schema.BoolAttribute{ MarkdownDescription: "On movie file delete flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_file_delete_for_upgrade": schema.BoolAttribute{ MarkdownDescription: "On movie file delete for upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_health_issue": schema.BoolAttribute{ MarkdownDescription: "On health issue flag.", - Required: true, + Optional: true, + Computed: true, }, "on_application_update": schema.BoolAttribute{ MarkdownDescription: "On application update flag.", - Required: true, + Optional: true, + Computed: true, }, "include_health_warnings": schema.BoolAttribute{ MarkdownDescription: "Include health warnings.", - Required: true, + Optional: true, + Computed: true, }, "name": schema.StringAttribute{ MarkdownDescription: "NotificationJoin name.", diff --git a/internal/provider/notification_kodi_resource.go b/internal/provider/notification_kodi_resource.go index bdfb1363..e8c4192f 100644 --- a/internal/provider/notification_kodi_resource.go +++ b/internal/provider/notification_kodi_resource.go @@ -132,23 +132,28 @@ func (r *NotificationKodiResource) Schema(ctx context.Context, req resource.Sche Attributes: map[string]schema.Attribute{ "on_grab": schema.BoolAttribute{ MarkdownDescription: "On grab flag.", - Required: true, + Optional: true, + Computed: true, }, "on_download": schema.BoolAttribute{ MarkdownDescription: "On download flag.", - Required: true, + Optional: true, + Computed: true, }, "on_upgrade": schema.BoolAttribute{ MarkdownDescription: "On upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_rename": schema.BoolAttribute{ MarkdownDescription: "On rename flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_added": schema.BoolAttribute{ MarkdownDescription: "On movie added flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_delete": schema.BoolAttribute{ MarkdownDescription: "On movie delete flag.", @@ -156,23 +161,28 @@ func (r *NotificationKodiResource) Schema(ctx context.Context, req resource.Sche }, "on_movie_file_delete": schema.BoolAttribute{ MarkdownDescription: "On movie file delete flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_file_delete_for_upgrade": schema.BoolAttribute{ MarkdownDescription: "On movie file delete for upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_health_issue": schema.BoolAttribute{ MarkdownDescription: "On health issue flag.", - Required: true, + Optional: true, + Computed: true, }, "on_application_update": schema.BoolAttribute{ MarkdownDescription: "On application update flag.", - Required: true, + Optional: true, + Computed: true, }, "include_health_warnings": schema.BoolAttribute{ MarkdownDescription: "Include health warnings.", - Required: true, + Optional: true, + Computed: true, }, "name": schema.StringAttribute{ MarkdownDescription: "NotificationKodi name.", diff --git a/internal/provider/notification_mailgun_resource.go b/internal/provider/notification_mailgun_resource.go index 29648a2e..8d83be5c 100644 --- a/internal/provider/notification_mailgun_resource.go +++ b/internal/provider/notification_mailgun_resource.go @@ -114,19 +114,23 @@ func (r *NotificationMailgunResource) Schema(ctx context.Context, req resource.S Attributes: map[string]schema.Attribute{ "on_grab": schema.BoolAttribute{ MarkdownDescription: "On grab flag.", - Required: true, + Optional: true, + Computed: true, }, "on_download": schema.BoolAttribute{ MarkdownDescription: "On download flag.", - Required: true, + Optional: true, + Computed: true, }, "on_upgrade": schema.BoolAttribute{ MarkdownDescription: "On upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_added": schema.BoolAttribute{ MarkdownDescription: "On movie added flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_delete": schema.BoolAttribute{ MarkdownDescription: "On movie delete flag.", @@ -134,23 +138,28 @@ func (r *NotificationMailgunResource) Schema(ctx context.Context, req resource.S }, "on_movie_file_delete": schema.BoolAttribute{ MarkdownDescription: "On movie file delete flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_file_delete_for_upgrade": schema.BoolAttribute{ MarkdownDescription: "On movie file delete for upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_health_issue": schema.BoolAttribute{ MarkdownDescription: "On health issue flag.", - Required: true, + Optional: true, + Computed: true, }, "on_application_update": schema.BoolAttribute{ MarkdownDescription: "On application update flag.", - Required: true, + Optional: true, + Computed: true, }, "include_health_warnings": schema.BoolAttribute{ MarkdownDescription: "Include health warnings.", - Required: true, + Optional: true, + Computed: true, }, "name": schema.StringAttribute{ MarkdownDescription: "NotificationMailgun name.", diff --git a/internal/provider/notification_notifiarr_resource.go b/internal/provider/notification_notifiarr_resource.go index e9cfe446..2e032583 100644 --- a/internal/provider/notification_notifiarr_resource.go +++ b/internal/provider/notification_notifiarr_resource.go @@ -105,19 +105,23 @@ func (r *NotificationNotifiarrResource) Schema(ctx context.Context, req resource Attributes: map[string]schema.Attribute{ "on_grab": schema.BoolAttribute{ MarkdownDescription: "On grab flag.", - Required: true, + Optional: true, + Computed: true, }, "on_download": schema.BoolAttribute{ MarkdownDescription: "On download flag.", - Required: true, + Optional: true, + Computed: true, }, "on_upgrade": schema.BoolAttribute{ MarkdownDescription: "On upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_added": schema.BoolAttribute{ MarkdownDescription: "On movie added flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_delete": schema.BoolAttribute{ MarkdownDescription: "On movie delete flag.", @@ -125,23 +129,28 @@ func (r *NotificationNotifiarrResource) Schema(ctx context.Context, req resource }, "on_movie_file_delete": schema.BoolAttribute{ MarkdownDescription: "On movie file delete flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_file_delete_for_upgrade": schema.BoolAttribute{ MarkdownDescription: "On movie file delete for upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_health_issue": schema.BoolAttribute{ MarkdownDescription: "On health issue flag.", - Required: true, + Optional: true, + Computed: true, }, "on_application_update": schema.BoolAttribute{ MarkdownDescription: "On application update flag.", - Required: true, + Optional: true, + Computed: true, }, "include_health_warnings": schema.BoolAttribute{ MarkdownDescription: "Include health warnings.", - Required: true, + Optional: true, + Computed: true, }, "name": schema.StringAttribute{ MarkdownDescription: "NotificationNotifiarr name.", diff --git a/internal/provider/notification_ntfy_resource.go b/internal/provider/notification_ntfy_resource.go index 273d3531..406e7c26 100644 --- a/internal/provider/notification_ntfy_resource.go +++ b/internal/provider/notification_ntfy_resource.go @@ -122,19 +122,23 @@ func (r *NotificationNtfyResource) Schema(ctx context.Context, req resource.Sche Attributes: map[string]schema.Attribute{ "on_grab": schema.BoolAttribute{ MarkdownDescription: "On grab flag.", - Required: true, + Optional: true, + Computed: true, }, "on_download": schema.BoolAttribute{ MarkdownDescription: "On download flag.", - Required: true, + Optional: true, + Computed: true, }, "on_upgrade": schema.BoolAttribute{ MarkdownDescription: "On upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_added": schema.BoolAttribute{ MarkdownDescription: "On movie added flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_delete": schema.BoolAttribute{ MarkdownDescription: "On movie delete flag.", @@ -142,23 +146,28 @@ func (r *NotificationNtfyResource) Schema(ctx context.Context, req resource.Sche }, "on_movie_file_delete": schema.BoolAttribute{ MarkdownDescription: "On movie file delete flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_file_delete_for_upgrade": schema.BoolAttribute{ MarkdownDescription: "On movie file delete for upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_health_issue": schema.BoolAttribute{ MarkdownDescription: "On health issue flag.", - Required: true, + Optional: true, + Computed: true, }, "on_application_update": schema.BoolAttribute{ MarkdownDescription: "On application update flag.", - Required: true, + Optional: true, + Computed: true, }, "include_health_warnings": schema.BoolAttribute{ MarkdownDescription: "Include health warnings.", - Required: true, + Optional: true, + Computed: true, }, "name": schema.StringAttribute{ MarkdownDescription: "NotificationNtfy name.", diff --git a/internal/provider/notification_plex_resource.go b/internal/provider/notification_plex_resource.go index d7b73568..c679808b 100644 --- a/internal/provider/notification_plex_resource.go +++ b/internal/provider/notification_plex_resource.go @@ -108,19 +108,23 @@ func (r *NotificationPlexResource) Schema(ctx context.Context, req resource.Sche Attributes: map[string]schema.Attribute{ "on_download": schema.BoolAttribute{ MarkdownDescription: "On download flag.", - Required: true, + Optional: true, + Computed: true, }, "on_upgrade": schema.BoolAttribute{ MarkdownDescription: "On upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_rename": schema.BoolAttribute{ MarkdownDescription: "On rename flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_added": schema.BoolAttribute{ MarkdownDescription: "On movie added flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_delete": schema.BoolAttribute{ MarkdownDescription: "On movie delete flag.", @@ -128,15 +132,18 @@ func (r *NotificationPlexResource) Schema(ctx context.Context, req resource.Sche }, "on_movie_file_delete": schema.BoolAttribute{ MarkdownDescription: "On movie file delete flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_file_delete_for_upgrade": schema.BoolAttribute{ MarkdownDescription: "On movie file delete for upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "include_health_warnings": schema.BoolAttribute{ MarkdownDescription: "Include health warnings.", - Required: true, + Optional: true, + Computed: true, }, "name": schema.StringAttribute{ MarkdownDescription: "NotificationPlex name.", diff --git a/internal/provider/notification_prowl_resource.go b/internal/provider/notification_prowl_resource.go index 759ce947..9c9e3d22 100644 --- a/internal/provider/notification_prowl_resource.go +++ b/internal/provider/notification_prowl_resource.go @@ -107,19 +107,23 @@ func (r *NotificationProwlResource) Schema(ctx context.Context, req resource.Sch Attributes: map[string]schema.Attribute{ "on_grab": schema.BoolAttribute{ MarkdownDescription: "On grab flag.", - Required: true, + Optional: true, + Computed: true, }, "on_download": schema.BoolAttribute{ MarkdownDescription: "On download flag.", - Required: true, + Optional: true, + Computed: true, }, "on_upgrade": schema.BoolAttribute{ MarkdownDescription: "On upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_added": schema.BoolAttribute{ MarkdownDescription: "On movie added flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_delete": schema.BoolAttribute{ MarkdownDescription: "On movie delete flag.", @@ -127,23 +131,28 @@ func (r *NotificationProwlResource) Schema(ctx context.Context, req resource.Sch }, "on_movie_file_delete": schema.BoolAttribute{ MarkdownDescription: "On movie file delete flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_file_delete_for_upgrade": schema.BoolAttribute{ MarkdownDescription: "On movie file delete for upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_health_issue": schema.BoolAttribute{ MarkdownDescription: "On health issue flag.", - Required: true, + Optional: true, + Computed: true, }, "on_application_update": schema.BoolAttribute{ MarkdownDescription: "On application update flag.", - Required: true, + Optional: true, + Computed: true, }, "include_health_warnings": schema.BoolAttribute{ MarkdownDescription: "Include health warnings.", - Required: true, + Optional: true, + Computed: true, }, "name": schema.StringAttribute{ MarkdownDescription: "NotificationProwl name.", diff --git a/internal/provider/notification_pushbullet_resource.go b/internal/provider/notification_pushbullet_resource.go index 781e2401..4df940cb 100644 --- a/internal/provider/notification_pushbullet_resource.go +++ b/internal/provider/notification_pushbullet_resource.go @@ -111,19 +111,23 @@ func (r *NotificationPushbulletResource) Schema(ctx context.Context, req resourc Attributes: map[string]schema.Attribute{ "on_grab": schema.BoolAttribute{ MarkdownDescription: "On grab flag.", - Required: true, + Optional: true, + Computed: true, }, "on_download": schema.BoolAttribute{ MarkdownDescription: "On download flag.", - Required: true, + Optional: true, + Computed: true, }, "on_upgrade": schema.BoolAttribute{ MarkdownDescription: "On upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_added": schema.BoolAttribute{ MarkdownDescription: "On movie added flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_delete": schema.BoolAttribute{ MarkdownDescription: "On movie delete flag.", @@ -131,23 +135,28 @@ func (r *NotificationPushbulletResource) Schema(ctx context.Context, req resourc }, "on_movie_file_delete": schema.BoolAttribute{ MarkdownDescription: "On movie file delete flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_file_delete_for_upgrade": schema.BoolAttribute{ MarkdownDescription: "On movie file delete for upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_health_issue": schema.BoolAttribute{ MarkdownDescription: "On health issue flag.", - Required: true, + Optional: true, + Computed: true, }, "on_application_update": schema.BoolAttribute{ MarkdownDescription: "On application update flag.", - Required: true, + Optional: true, + Computed: true, }, "include_health_warnings": schema.BoolAttribute{ MarkdownDescription: "Include health warnings.", - Required: true, + Optional: true, + Computed: true, }, "name": schema.StringAttribute{ MarkdownDescription: "NotificationPushbullet name.", diff --git a/internal/provider/notification_pushover_resource.go b/internal/provider/notification_pushover_resource.go index 6f0ab231..77c4ee3e 100644 --- a/internal/provider/notification_pushover_resource.go +++ b/internal/provider/notification_pushover_resource.go @@ -122,19 +122,23 @@ func (r *NotificationPushoverResource) Schema(ctx context.Context, req resource. Attributes: map[string]schema.Attribute{ "on_grab": schema.BoolAttribute{ MarkdownDescription: "On grab flag.", - Required: true, + Optional: true, + Computed: true, }, "on_download": schema.BoolAttribute{ MarkdownDescription: "On download flag.", - Required: true, + Optional: true, + Computed: true, }, "on_upgrade": schema.BoolAttribute{ MarkdownDescription: "On upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_added": schema.BoolAttribute{ MarkdownDescription: "On movie added flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_delete": schema.BoolAttribute{ MarkdownDescription: "On movie delete flag.", @@ -142,23 +146,28 @@ func (r *NotificationPushoverResource) Schema(ctx context.Context, req resource. }, "on_movie_file_delete": schema.BoolAttribute{ MarkdownDescription: "On movie file delete flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_file_delete_for_upgrade": schema.BoolAttribute{ MarkdownDescription: "On movie file delete for upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_health_issue": schema.BoolAttribute{ MarkdownDescription: "On health issue flag.", - Required: true, + Optional: true, + Computed: true, }, "on_application_update": schema.BoolAttribute{ MarkdownDescription: "On application update flag.", - Required: true, + Optional: true, + Computed: true, }, "include_health_warnings": schema.BoolAttribute{ MarkdownDescription: "Include health warnings.", - Required: true, + Optional: true, + Computed: true, }, "name": schema.StringAttribute{ MarkdownDescription: "NotificationPushover name.", diff --git a/internal/provider/notification_resource.go b/internal/provider/notification_resource.go index a7042259..297c3b38 100644 --- a/internal/provider/notification_resource.go +++ b/internal/provider/notification_resource.go @@ -142,23 +142,28 @@ func (r *NotificationResource) Schema(ctx context.Context, req resource.SchemaRe Attributes: map[string]schema.Attribute{ "on_grab": schema.BoolAttribute{ MarkdownDescription: "On grab flag.", - Required: true, + Optional: true, + Computed: true, }, "on_download": schema.BoolAttribute{ MarkdownDescription: "On download flag.", - Required: true, + Optional: true, + Computed: true, }, "on_upgrade": schema.BoolAttribute{ MarkdownDescription: "On upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_rename": schema.BoolAttribute{ MarkdownDescription: "On rename flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_added": schema.BoolAttribute{ MarkdownDescription: "On movie added flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_delete": schema.BoolAttribute{ MarkdownDescription: "On movie delete flag.", @@ -166,23 +171,28 @@ func (r *NotificationResource) Schema(ctx context.Context, req resource.SchemaRe }, "on_movie_file_delete": schema.BoolAttribute{ MarkdownDescription: "On movie file delete flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_file_delete_for_upgrade": schema.BoolAttribute{ MarkdownDescription: "On movie file delete for upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_health_issue": schema.BoolAttribute{ MarkdownDescription: "On health issue flag.", - Required: true, + Optional: true, + Computed: true, }, "on_application_update": schema.BoolAttribute{ MarkdownDescription: "On application update flag.", - Required: true, + Optional: true, + Computed: true, }, "include_health_warnings": schema.BoolAttribute{ MarkdownDescription: "Include health warnings.", - Required: true, + Optional: true, + Computed: true, }, "config_contract": schema.StringAttribute{ MarkdownDescription: "Notification configuration template.", @@ -760,6 +770,8 @@ func (n *Notification) writeFields(ctx context.Context, fields []*starr.FieldOut if slices.Contains(notificationStringSliceFields, f.Name) || f.Name == "tags" { tools.WriteStringSliceField(ctx, f, n) + + continue } if slices.Contains(notificationIntSliceFields, f.Name) { diff --git a/internal/provider/notification_sendgrid_resource.go b/internal/provider/notification_sendgrid_resource.go index be9524d7..0082c446 100644 --- a/internal/provider/notification_sendgrid_resource.go +++ b/internal/provider/notification_sendgrid_resource.go @@ -108,19 +108,23 @@ func (r *NotificationSendgridResource) Schema(ctx context.Context, req resource. Attributes: map[string]schema.Attribute{ "on_grab": schema.BoolAttribute{ MarkdownDescription: "On grab flag.", - Required: true, + Optional: true, + Computed: true, }, "on_download": schema.BoolAttribute{ MarkdownDescription: "On download flag.", - Required: true, + Optional: true, + Computed: true, }, "on_upgrade": schema.BoolAttribute{ MarkdownDescription: "On upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_added": schema.BoolAttribute{ MarkdownDescription: "On movie added flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_delete": schema.BoolAttribute{ MarkdownDescription: "On movie delete flag.", @@ -128,23 +132,28 @@ func (r *NotificationSendgridResource) Schema(ctx context.Context, req resource. }, "on_movie_file_delete": schema.BoolAttribute{ MarkdownDescription: "On movie file delete flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_file_delete_for_upgrade": schema.BoolAttribute{ MarkdownDescription: "On movie file delete for upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_health_issue": schema.BoolAttribute{ MarkdownDescription: "On health issue flag.", - Required: true, + Optional: true, + Computed: true, }, "on_application_update": schema.BoolAttribute{ MarkdownDescription: "On application update flag.", - Required: true, + Optional: true, + Computed: true, }, "include_health_warnings": schema.BoolAttribute{ MarkdownDescription: "Include health warnings.", - Required: true, + Optional: true, + Computed: true, }, "name": schema.StringAttribute{ MarkdownDescription: "NotificationSendgrid name.", diff --git a/internal/provider/notification_simplepush_resource.go b/internal/provider/notification_simplepush_resource.go index 29d17cc2..bfddb95c 100644 --- a/internal/provider/notification_simplepush_resource.go +++ b/internal/provider/notification_simplepush_resource.go @@ -105,19 +105,23 @@ func (r *NotificationSimplepushResource) Schema(ctx context.Context, req resourc Attributes: map[string]schema.Attribute{ "on_grab": schema.BoolAttribute{ MarkdownDescription: "On grab flag.", - Required: true, + Optional: true, + Computed: true, }, "on_download": schema.BoolAttribute{ MarkdownDescription: "On download flag.", - Required: true, + Optional: true, + Computed: true, }, "on_upgrade": schema.BoolAttribute{ MarkdownDescription: "On upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_added": schema.BoolAttribute{ MarkdownDescription: "On movie added flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_delete": schema.BoolAttribute{ MarkdownDescription: "On movie delete flag.", @@ -125,23 +129,28 @@ func (r *NotificationSimplepushResource) Schema(ctx context.Context, req resourc }, "on_movie_file_delete": schema.BoolAttribute{ MarkdownDescription: "On movie file delete flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_file_delete_for_upgrade": schema.BoolAttribute{ MarkdownDescription: "On movie file delete for upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_health_issue": schema.BoolAttribute{ MarkdownDescription: "On health issue flag.", - Required: true, + Optional: true, + Computed: true, }, "on_application_update": schema.BoolAttribute{ MarkdownDescription: "On application update flag.", - Required: true, + Optional: true, + Computed: true, }, "include_health_warnings": schema.BoolAttribute{ MarkdownDescription: "Include health warnings.", - Required: true, + Optional: true, + Computed: true, }, "name": schema.StringAttribute{ MarkdownDescription: "NotificationSimplepush name.", diff --git a/internal/provider/notification_slack_resource.go b/internal/provider/notification_slack_resource.go index 6a38a1fa..6f8f999a 100644 --- a/internal/provider/notification_slack_resource.go +++ b/internal/provider/notification_slack_resource.go @@ -114,23 +114,28 @@ func (r *NotificationSlackResource) Schema(ctx context.Context, req resource.Sch Attributes: map[string]schema.Attribute{ "on_grab": schema.BoolAttribute{ MarkdownDescription: "On grab flag.", - Required: true, + Optional: true, + Computed: true, }, "on_download": schema.BoolAttribute{ MarkdownDescription: "On download flag.", - Required: true, + Optional: true, + Computed: true, }, "on_upgrade": schema.BoolAttribute{ MarkdownDescription: "On upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_rename": schema.BoolAttribute{ MarkdownDescription: "On rename flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_added": schema.BoolAttribute{ MarkdownDescription: "On movie added flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_delete": schema.BoolAttribute{ MarkdownDescription: "On movie delete flag.", @@ -138,23 +143,28 @@ func (r *NotificationSlackResource) Schema(ctx context.Context, req resource.Sch }, "on_movie_file_delete": schema.BoolAttribute{ MarkdownDescription: "On movie file delete flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_file_delete_for_upgrade": schema.BoolAttribute{ MarkdownDescription: "On movie file delete for upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_health_issue": schema.BoolAttribute{ MarkdownDescription: "On health issue flag.", - Required: true, + Optional: true, + Computed: true, }, "on_application_update": schema.BoolAttribute{ MarkdownDescription: "On application update flag.", - Required: true, + Optional: true, + Computed: true, }, "include_health_warnings": schema.BoolAttribute{ MarkdownDescription: "Include health warnings.", - Required: true, + Optional: true, + Computed: true, }, "name": schema.StringAttribute{ MarkdownDescription: "NotificationSlack name.", diff --git a/internal/provider/notification_synology_indexer_resource.go b/internal/provider/notification_synology_indexer_resource.go index 50b1f476..7562ab1e 100644 --- a/internal/provider/notification_synology_indexer_resource.go +++ b/internal/provider/notification_synology_indexer_resource.go @@ -96,19 +96,23 @@ func (r *NotificationSynologyResource) Schema(ctx context.Context, req resource. Attributes: map[string]schema.Attribute{ "on_download": schema.BoolAttribute{ MarkdownDescription: "On download flag.", - Required: true, + Optional: true, + Computed: true, }, "on_upgrade": schema.BoolAttribute{ MarkdownDescription: "On upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_rename": schema.BoolAttribute{ MarkdownDescription: "On rename flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_added": schema.BoolAttribute{ MarkdownDescription: "On movie added flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_delete": schema.BoolAttribute{ MarkdownDescription: "On movie delete flag.", @@ -116,15 +120,18 @@ func (r *NotificationSynologyResource) Schema(ctx context.Context, req resource. }, "on_movie_file_delete": schema.BoolAttribute{ MarkdownDescription: "On movie file delete flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_file_delete_for_upgrade": schema.BoolAttribute{ MarkdownDescription: "On movie file delete for upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "include_health_warnings": schema.BoolAttribute{ MarkdownDescription: "Include health warnings.", - Required: true, + Optional: true, + Computed: true, }, "name": schema.StringAttribute{ MarkdownDescription: "NotificationSynology name.", diff --git a/internal/provider/notification_telegram_resource.go b/internal/provider/notification_telegram_resource.go index e61f872e..cd66d401 100644 --- a/internal/provider/notification_telegram_resource.go +++ b/internal/provider/notification_telegram_resource.go @@ -108,19 +108,23 @@ func (r *NotificationTelegramResource) Schema(ctx context.Context, req resource. Attributes: map[string]schema.Attribute{ "on_grab": schema.BoolAttribute{ MarkdownDescription: "On grab flag.", - Required: true, + Optional: true, + Computed: true, }, "on_download": schema.BoolAttribute{ MarkdownDescription: "On download flag.", - Required: true, + Optional: true, + Computed: true, }, "on_upgrade": schema.BoolAttribute{ MarkdownDescription: "On upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_added": schema.BoolAttribute{ MarkdownDescription: "On movie added flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_delete": schema.BoolAttribute{ MarkdownDescription: "On movie delete flag.", @@ -128,23 +132,28 @@ func (r *NotificationTelegramResource) Schema(ctx context.Context, req resource. }, "on_movie_file_delete": schema.BoolAttribute{ MarkdownDescription: "On movie file delete flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_file_delete_for_upgrade": schema.BoolAttribute{ MarkdownDescription: "On movie file delete for upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_health_issue": schema.BoolAttribute{ MarkdownDescription: "On health issue flag.", - Required: true, + Optional: true, + Computed: true, }, "on_application_update": schema.BoolAttribute{ MarkdownDescription: "On application update flag.", - Required: true, + Optional: true, + Computed: true, }, "include_health_warnings": schema.BoolAttribute{ MarkdownDescription: "Include health warnings.", - Required: true, + Optional: true, + Computed: true, }, "name": schema.StringAttribute{ MarkdownDescription: "NotificationTelegram name.", diff --git a/internal/provider/notification_trakt_resource.go b/internal/provider/notification_trakt_resource.go index 93c14e3f..9de3b3e3 100644 --- a/internal/provider/notification_trakt_resource.go +++ b/internal/provider/notification_trakt_resource.go @@ -102,15 +102,18 @@ func (r *NotificationTraktResource) Schema(ctx context.Context, req resource.Sch Attributes: map[string]schema.Attribute{ "on_download": schema.BoolAttribute{ MarkdownDescription: "On download flag.", - Required: true, + Optional: true, + Computed: true, }, "on_upgrade": schema.BoolAttribute{ MarkdownDescription: "On upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_added": schema.BoolAttribute{ MarkdownDescription: "On movie added flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_delete": schema.BoolAttribute{ MarkdownDescription: "On movie delete flag.", @@ -118,15 +121,18 @@ func (r *NotificationTraktResource) Schema(ctx context.Context, req resource.Sch }, "on_movie_file_delete": schema.BoolAttribute{ MarkdownDescription: "On movie file delete flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_file_delete_for_upgrade": schema.BoolAttribute{ MarkdownDescription: "On movie file delete for upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "include_health_warnings": schema.BoolAttribute{ MarkdownDescription: "Include health warnings.", - Required: true, + Optional: true, + Computed: true, }, "name": schema.StringAttribute{ MarkdownDescription: "NotificationTrakt name.", diff --git a/internal/provider/notification_twitter_resource.go b/internal/provider/notification_twitter_resource.go index 454290ef..7318bfce 100644 --- a/internal/provider/notification_twitter_resource.go +++ b/internal/provider/notification_twitter_resource.go @@ -117,19 +117,23 @@ func (r *NotificationTwitterResource) Schema(ctx context.Context, req resource.S Attributes: map[string]schema.Attribute{ "on_grab": schema.BoolAttribute{ MarkdownDescription: "On grab flag.", - Required: true, + Optional: true, + Computed: true, }, "on_download": schema.BoolAttribute{ MarkdownDescription: "On download flag.", - Required: true, + Optional: true, + Computed: true, }, "on_upgrade": schema.BoolAttribute{ MarkdownDescription: "On upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_added": schema.BoolAttribute{ MarkdownDescription: "On movie added flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_delete": schema.BoolAttribute{ MarkdownDescription: "On movie delete flag.", @@ -137,23 +141,28 @@ func (r *NotificationTwitterResource) Schema(ctx context.Context, req resource.S }, "on_movie_file_delete": schema.BoolAttribute{ MarkdownDescription: "On movie file delete flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_file_delete_for_upgrade": schema.BoolAttribute{ MarkdownDescription: "On movie file delete for upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_health_issue": schema.BoolAttribute{ MarkdownDescription: "On health issue flag.", - Required: true, + Optional: true, + Computed: true, }, "on_application_update": schema.BoolAttribute{ MarkdownDescription: "On application update flag.", - Required: true, + Optional: true, + Computed: true, }, "include_health_warnings": schema.BoolAttribute{ MarkdownDescription: "Include health warnings.", - Required: true, + Optional: true, + Computed: true, }, "name": schema.StringAttribute{ MarkdownDescription: "NotificationTwitter name.", diff --git a/internal/provider/notification_webhook_resource.go b/internal/provider/notification_webhook_resource.go index 366c208c..897c4424 100644 --- a/internal/provider/notification_webhook_resource.go +++ b/internal/provider/notification_webhook_resource.go @@ -116,23 +116,28 @@ func (r *NotificationWebhookResource) Schema(ctx context.Context, req resource.S Attributes: map[string]schema.Attribute{ "on_grab": schema.BoolAttribute{ MarkdownDescription: "On grab flag.", - Required: true, + Optional: true, + Computed: true, }, "on_download": schema.BoolAttribute{ MarkdownDescription: "On download flag.", - Required: true, + Optional: true, + Computed: true, }, "on_upgrade": schema.BoolAttribute{ MarkdownDescription: "On upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_rename": schema.BoolAttribute{ MarkdownDescription: "On rename flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_added": schema.BoolAttribute{ MarkdownDescription: "On movie added flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_delete": schema.BoolAttribute{ MarkdownDescription: "On movie delete flag.", @@ -140,23 +145,28 @@ func (r *NotificationWebhookResource) Schema(ctx context.Context, req resource.S }, "on_movie_file_delete": schema.BoolAttribute{ MarkdownDescription: "On movie file delete flag.", - Required: true, + Optional: true, + Computed: true, }, "on_movie_file_delete_for_upgrade": schema.BoolAttribute{ MarkdownDescription: "On movie file delete for upgrade flag.", - Required: true, + Optional: true, + Computed: true, }, "on_health_issue": schema.BoolAttribute{ MarkdownDescription: "On health issue flag.", - Required: true, + Optional: true, + Computed: true, }, "on_application_update": schema.BoolAttribute{ MarkdownDescription: "On application update flag.", - Required: true, + Optional: true, + Computed: true, }, "include_health_warnings": schema.BoolAttribute{ MarkdownDescription: "Include health warnings.", - Required: true, + Optional: true, + Computed: true, }, "name": schema.StringAttribute{ MarkdownDescription: "NotificationWebhook name.",