Skip to content

Commit

Permalink
Merge pull request #88 from devopsarr/feature/separate-notifications
Browse files Browse the repository at this point in the history
feat: separate notifications
  • Loading branch information
Fuochi authored Dec 9, 2022
2 parents 463a6a7 + fc2ca35 commit c874433
Show file tree
Hide file tree
Showing 112 changed files with 11,230 additions and 131 deletions.
18 changes: 9 additions & 9 deletions docs/data-sources/notification.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ data "radarr_notification" "example" {
- `auth_user` (String) Auth user.
- `author` (String) Author.
- `avatar` (String) Avatar.
- `bcc` (String) Bcc.
- `bcc` (Set of String) Bcc.
- `bot_token` (String) Bot token.
- `cc` (String) Cc.
- `cc` (Set of String) Cc.
- `channel` (String) Channel.
- `channel_tags` (Set of String) Channel tags.
- `chat_id` (String) Chat ID.
Expand All @@ -48,22 +48,22 @@ data "radarr_notification" "example" {
- `config_contract` (String) Notification configuration template.
- `consumer_key` (String) Consumer key.
- `consumer_secret` (String) Consumer secret.
- `device_ids` (Set of Number) Device IDs.
- `device_ids` (Set of String) Device IDs.
- `device_names` (String) Device names.
- `devices` (Set of String) Devices.
- `direct_message` (Boolean) Direct message flag.
- `display_time` (String) Display time.
- `display_time` (Number) Display time.
- `event` (String) Event.
- `expire` (Number) Expire.
- `expires` (String) Expires.
- `field_tags` (Set of String) Devices.
- `field_tags` (Set of String) Specific tags.
- `from` (String) From.
- `grab_fields` (Number) Grab fields. `0` Overview, `1` Rating, `2` Genres, `3` Quality, `4` Group, `5` Size, `6` Links, `7` Release, `8` Poster, `9` Fanart, `10` CustomFormats, `11` CustomFormatScore.
- `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, `10` CustomFormats, `11` CustomFormatScore.
- `host` (String) Host.
- `icon` (String) Icon.
- `id` (Number) Notification ID.
- `implementation` (String) Notification implementation name.
- `import_fields` (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.
- `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.
Expand Down Expand Up @@ -98,9 +98,9 @@ data "radarr_notification" "example" {
- `sign_in` (String) Sign in.
- `sound` (String) Sound.
- `tags` (Set of Number) List of associated tags.
- `to` (String) To.
- `to` (Set of String) To.
- `token` (String) Token.
- `topics` (Set of String) Devices.
- `topics` (Set of String) Topics.
- `update_library` (Boolean) Update library flag.
- `url` (String) URL.
- `use_eu_endpoint` (Boolean) Use EU endpoint flag.
Expand Down
18 changes: 9 additions & 9 deletions docs/data-sources/notifications.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ Read-Only:
- `auth_user` (String) Auth user.
- `author` (String) Author.
- `avatar` (String) Avatar.
- `bcc` (String) Bcc.
- `bcc` (Set of String) Bcc.
- `bot_token` (String) Bot token.
- `cc` (String) Cc.
- `cc` (Set of String) Cc.
- `channel` (String) Channel.
- `channel_tags` (Set of String) Channel tags.
- `chat_id` (String) Chat ID.
Expand All @@ -51,22 +51,22 @@ Read-Only:
- `config_contract` (String) Notification configuration template.
- `consumer_key` (String) Consumer key.
- `consumer_secret` (String) Consumer secret.
- `device_ids` (Set of Number) Device IDs.
- `device_ids` (Set of String) Device IDs.
- `device_names` (String) Device names.
- `devices` (Set of String) Devices.
- `direct_message` (Boolean) Direct message flag.
- `display_time` (String) Display time.
- `display_time` (Number) Display time.
- `event` (String) Event.
- `expire` (Number) Expire.
- `expires` (String) Expires.
- `field_tags` (Set of String) Devices.
- `field_tags` (Set of String) Specific tags.
- `from` (String) From.
- `grab_fields` (Number) Grab fields. `0` Overview, `1` Rating, `2` Genres, `3` Quality, `4` Group, `5` Size, `6` Links, `7` Release, `8` Poster, `9` Fanart, `10` CustomFormats, `11` CustomFormatScore.
- `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, `10` CustomFormats, `11` CustomFormatScore.
- `host` (String) Host.
- `icon` (String) Icon.
- `id` (Number) Notification ID.
- `implementation` (String) Notification implementation name.
- `import_fields` (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.
- `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.
Expand Down Expand Up @@ -102,9 +102,9 @@ Read-Only:
- `sign_in` (String) Sign in.
- `sound` (String) Sound.
- `tags` (Set of Number) List of associated tags.
- `to` (String) To.
- `to` (Set of String) To.
- `token` (String) Token.
- `topics` (Set of String) Devices.
- `topics` (Set of String) Topics.
- `update_library` (Boolean) Update library flag.
- `url` (String) URL.
- `use_eu_endpoint` (Boolean) Use EU endpoint flag.
Expand Down
18 changes: 9 additions & 9 deletions docs/resources/notification.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,30 +69,30 @@ resource "radarr_notification" "example" {
- `auth_user` (String) Auth user.
- `author` (String) Author.
- `avatar` (String) Avatar.
- `bcc` (String) Bcc.
- `bcc` (Set of String) Bcc.
- `bot_token` (String) Bot token.
- `cc` (String) Cc.
- `cc` (Set of String) Cc.
- `channel` (String) Channel.
- `channel_tags` (Set of String) Channel tags.
- `chat_id` (String) Chat ID.
- `clean_library` (Boolean) Clean library flag.
- `click_url` (String) Click URL.
- `consumer_key` (String) Consumer key.
- `consumer_secret` (String) Consumer secret.
- `device_ids` (Set of Number) Device IDs.
- `device_ids` (Set of String) Device IDs.
- `device_names` (String) Device names.
- `devices` (Set of String) Devices.
- `direct_message` (Boolean) Direct message flag.
- `display_time` (String) Display time.
- `display_time` (Number) Display time.
- `event` (String) Event.
- `expire` (Number) Expire.
- `expires` (String) Expires.
- `field_tags` (Set of String) Devices.
- `field_tags` (Set of String) Specific tags.
- `from` (String) From.
- `grab_fields` (Number) Grab fields. `0` Overview, `1` Rating, `2` Genres, `3` Quality, `4` Group, `5` Size, `6` Links, `7` Release, `8` Poster, `9` Fanart, `10` CustomFormats, `11` CustomFormatScore.
- `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.
- `host` (String) Host.
- `icon` (String) Icon.
- `import_fields` (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.
- `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.
- `instance_name` (String) Instance name.
- `key` (String) Key.
- `map_from` (String) Map From.
Expand All @@ -116,9 +116,9 @@ resource "radarr_notification" "example" {
- `sign_in` (String) Sign in.
- `sound` (String) Sound.
- `tags` (Set of Number) List of associated tags.
- `to` (String) To.
- `to` (Set of String) To.
- `token` (String) Token.
- `topics` (Set of String) Devices.
- `topics` (Set of String) Topics.
- `update_library` (Boolean) Update library flag.
- `url` (String) URL.
- `use_eu_endpoint` (Boolean) Use EU endpoint flag.
Expand Down
69 changes: 69 additions & 0 deletions docs/resources/notification_boxcar.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "radarr_notification_boxcar Resource - terraform-provider-radarr"
subcategory: "Notifications"
description: |-
Notification Boxcar resource.
For more information refer to Notification https://wiki.servarr.com/radarr/settings#connect and Boxcar https://wiki.servarr.com/radarr/supported#boxcar.
---

# radarr_notification_boxcar (Resource)

<!-- subcategory:Notifications -->Notification Boxcar resource.
For more information refer to [Notification](https://wiki.servarr.com/radarr/settings#connect) and [Boxcar](https://wiki.servarr.com/radarr/supported#boxcar).

## Example Usage

```terraform
resource "radarr_notification_boxcar" "example" {
on_grab = false
on_download = true
on_upgrade = true
on_movie_added = false
on_movie_delete = false
on_movie_file_delete = false
on_movie_file_delete_for_upgrade = true
on_health_issue = false
on_application_update = false
include_health_warnings = false
name = "Example"
token = "Token"
}
```

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

### Required

- `include_health_warnings` (Boolean) Include health warnings.
- `name` (String) NotificationBoxcar 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.
- `token` (String, Sensitive) Token.

### Optional

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

### Read-Only

- `id` (Number) Notification ID.

## Import

Import is supported using the following syntax:

```shell
# import using the API/UI ID
terraform import radarr_notification_boxcar.example 1
```
79 changes: 79 additions & 0 deletions docs/resources/notification_discord.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "radarr_notification_discord Resource - terraform-provider-radarr"
subcategory: "Notifications"
description: |-
Notification Discord resource.
For more information refer to Notification https://wiki.servarr.com/radarr/settings#connect and Discord https://wiki.servarr.com/radarr/supported#discord.
---

# radarr_notification_discord (Resource)

<!-- subcategory:Notifications -->Notification Discord resource.
For more information refer to [Notification](https://wiki.servarr.com/radarr/settings#connect) and [Discord](https://wiki.servarr.com/radarr/supported#discord).

## Example Usage

```terraform
resource "radarr_notification_discord" "example" {
on_grab = false
on_download = true
on_upgrade = true
on_rename = false
on_movie_added = false
on_movie_delete = false
on_movie_file_delete = false
on_movie_file_delete_for_upgrade = true
on_health_issue = false
on_application_update = false
include_health_warnings = false
name = "Example"
web_hook_url = "http://discord-web-hook.com"
username = "User"
avatar = "https://i.imgur.com/oBPXx0D.png"
grab_fields = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
import_fields = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
}
```

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

### 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

- `author` (String) Author.
- `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.
- `tags` (Set of Number) List of associated tags.
- `username` (String) Username.

### Read-Only

- `id` (Number) Notification ID.

## Import

Import is supported using the following syntax:

```shell
# import using the API/UI ID
terraform import radarr_notification_discord.example 1
```
80 changes: 80 additions & 0 deletions docs/resources/notification_email.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "radarr_notification_email Resource - terraform-provider-radarr"
subcategory: "Notifications"
description: |-
Notification Email resource.
For more information refer to Notification https://wiki.servarr.com/radarr/settings#connect and Email https://wiki.servarr.com/radarr/supported#email.
---

# radarr_notification_email (Resource)

<!-- subcategory:Notifications -->Notification Email resource.
For more information refer to [Notification](https://wiki.servarr.com/radarr/settings#connect) and [Email](https://wiki.servarr.com/radarr/supported#email).

## Example Usage

```terraform
resource "radarr_notification_email" "example" {
on_grab = false
on_download = true
on_upgrade = true
on_movie_added = false
on_movie_delete = false
on_movie_file_delete = false
on_movie_file_delete_for_upgrade = true
on_health_issue = false
on_application_update = false
include_health_warnings = false
name = "Example"
server = "http://email-server.net"
port = 587
from = "[email protected]"
to = ["[email protected]", "[email protected]"]
}
```

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

### 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.
- `password` (String, Sensitive) Password.
- `port` (Number) Port.
- `require_encryption` (Boolean) Require encryption flag.
- `tags` (Set of Number) List of associated tags.
- `username` (String) Username.

### Read-Only

- `id` (Number) Notification ID.

## Import

Import is supported using the following syntax:

```shell
# import using the API/UI ID
terraform import radarr_notification_email.example 1
```
Loading

0 comments on commit c874433

Please sign in to comment.