files.com 1.0.114 → 1.0.115
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/notification.md +8 -0
- data/docs/user.md +1 -1
- data/lib/files.com/models/notification.rb +12 -0
- data/lib/files.com/models/user.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7031791026b107602d6b1c2f566d26e7281f8e718324a71be205246fe3f75de
|
4
|
+
data.tar.gz: 23a0c7636128c641964a9675f00d5e0dd1fda6026a5aa7e6d384b96356fc606c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96d1740aff82c409cf6b08c7f5fece8c23895b4a46778fb9270988fe440d1b9b7fa390b9b6e00c84baf9579afa3d8e3092846675a7d2e4c30bf89d334fe6b507
|
7
|
+
data.tar.gz: 4f5b9a1453b3e71eb4a8756fab2e4d990bd4aaaa92d462951441bada85935ba0d644a4c363ce18b2fc90d151000b45e71d83ead4aa84fc8a3f89039dad90f7d8
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.115
|
data/docs/notification.md
CHANGED
@@ -10,6 +10,7 @@
|
|
10
10
|
"group_name": "",
|
11
11
|
"notify_user_actions": true,
|
12
12
|
"notify_on_copy": true,
|
13
|
+
"recursive": true,
|
13
14
|
"send_interval": "fifteen_minutes",
|
14
15
|
"unsubscribed": true,
|
15
16
|
"unsubscribed_reason": "",
|
@@ -25,6 +26,7 @@
|
|
25
26
|
* `group_name` (string): Group name if applicable
|
26
27
|
* `notify_user_actions` (boolean): Trigger notification on notification user actions?
|
27
28
|
* `notify_on_copy` (boolean): Triggers notification when moving or copying files to this path
|
29
|
+
* `recursive` (boolean): Enable notifications for each subfolder in this path
|
28
30
|
* `send_interval` (string): The time interval that notifications are aggregated to
|
29
31
|
* `unsubscribed` (boolean): Is the user unsubscribed from this notification?
|
30
32
|
* `unsubscribed_reason` (string): The reason that the user unsubscribed
|
@@ -88,6 +90,7 @@ Files::Notification.create(
|
|
88
90
|
user_id: 1,
|
89
91
|
notify_on_copy: true,
|
90
92
|
notify_user_actions: true,
|
93
|
+
recursive: true,
|
91
94
|
send_interval: "daily",
|
92
95
|
group_id: 1,
|
93
96
|
username: "User"
|
@@ -99,6 +102,7 @@ Files::Notification.create(
|
|
99
102
|
* `user_id` (int64): The id of the user to notify. Provide `user_id`, `username` or `group_id`.
|
100
103
|
* `notify_on_copy` (boolean): If `true`, copying or moving resources into this path will trigger a notification, in addition to just uploads.
|
101
104
|
* `notify_user_actions` (boolean): If `true` actions initiated by the user will still result in a notification
|
105
|
+
* `recursive` (boolean): If `true`, enable notifications for each subfolder in this path
|
102
106
|
* `send_interval` (string): The time interval that notifications are aggregated by. Can be `five_minutes`, `fifteen_minutes`, `hourly`, or `daily`.
|
103
107
|
* `group_id` (int64): The ID of the group to notify. Provide `user_id`, `username` or `group_id`.
|
104
108
|
* `path` (string): Path
|
@@ -113,6 +117,7 @@ Files::Notification.create(
|
|
113
117
|
Files::Notification.update(id,
|
114
118
|
notify_on_copy: true,
|
115
119
|
notify_user_actions: true,
|
120
|
+
recursive: true,
|
116
121
|
send_interval: "daily"
|
117
122
|
)
|
118
123
|
```
|
@@ -122,6 +127,7 @@ Files::Notification.update(id,
|
|
122
127
|
* `id` (int64): Required - Notification ID.
|
123
128
|
* `notify_on_copy` (boolean): If `true`, copying or moving resources into this path will trigger a notification, in addition to just uploads.
|
124
129
|
* `notify_user_actions` (boolean): If `true` actions initiated by the user will still result in a notification
|
130
|
+
* `recursive` (boolean): If `true`, enable notifications for each subfolder in this path
|
125
131
|
* `send_interval` (string): The time interval that notifications are aggregated by. Can be `five_minutes`, `fifteen_minutes`, `hourly`, or `daily`.
|
126
132
|
|
127
133
|
|
@@ -148,6 +154,7 @@ notification = Files::Notification.list_for(path).first
|
|
148
154
|
notification.update(
|
149
155
|
notify_on_copy: true,
|
150
156
|
notify_user_actions: true,
|
157
|
+
recursive: true,
|
151
158
|
send_interval: "daily"
|
152
159
|
)
|
153
160
|
```
|
@@ -157,6 +164,7 @@ notification.update(
|
|
157
164
|
* `id` (int64): Required - Notification ID.
|
158
165
|
* `notify_on_copy` (boolean): If `true`, copying or moving resources into this path will trigger a notification, in addition to just uploads.
|
159
166
|
* `notify_user_actions` (boolean): If `true` actions initiated by the user will still result in a notification
|
167
|
+
* `recursive` (boolean): If `true`, enable notifications for each subfolder in this path
|
160
168
|
* `send_interval` (string): The time interval that notifications are aggregated by. Can be `five_minutes`, `fifteen_minutes`, `hourly`, or `daily`.
|
161
169
|
|
162
170
|
|
data/docs/user.md
CHANGED
@@ -89,7 +89,7 @@
|
|
89
89
|
* `public_keys_count` (int64): Number of public keys associated with this user
|
90
90
|
* `receive_admin_alerts` (boolean): Should the user receive admin alerts such a certificate expiration notifications and overages?
|
91
91
|
* `require_2fa` (boolean): Is 2fa required to sign in?
|
92
|
-
* `active_2fa` (boolean): Is 2fa
|
92
|
+
* `active_2fa` (boolean): Is 2fa active for the user?
|
93
93
|
* `require_password_change` (boolean): Is a password change required upon next user login?
|
94
94
|
* `restapi_permission` (boolean): Can this user access the REST API?
|
95
95
|
* `self_managed` (boolean): Does this user manage it's own credentials or is it a shared/bot user?
|
@@ -63,6 +63,15 @@ module Files
|
|
63
63
|
@attributes[:notify_on_copy] = value
|
64
64
|
end
|
65
65
|
|
66
|
+
# boolean - Enable notifications for each subfolder in this path
|
67
|
+
def recursive
|
68
|
+
@attributes[:recursive]
|
69
|
+
end
|
70
|
+
|
71
|
+
def recursive=(value)
|
72
|
+
@attributes[:recursive] = value
|
73
|
+
end
|
74
|
+
|
66
75
|
# string - The time interval that notifications are aggregated to
|
67
76
|
def send_interval
|
68
77
|
@attributes[:send_interval]
|
@@ -120,6 +129,7 @@ module Files
|
|
120
129
|
# Parameters:
|
121
130
|
# notify_on_copy - boolean - If `true`, copying or moving resources into this path will trigger a notification, in addition to just uploads.
|
122
131
|
# notify_user_actions - boolean - If `true` actions initiated by the user will still result in a notification
|
132
|
+
# recursive - boolean - If `true`, enable notifications for each subfolder in this path
|
123
133
|
# send_interval - string - The time interval that notifications are aggregated by. Can be `five_minutes`, `fifteen_minutes`, `hourly`, or `daily`.
|
124
134
|
def update(params = {})
|
125
135
|
params ||= {}
|
@@ -216,6 +226,7 @@ module Files
|
|
216
226
|
# user_id - int64 - The id of the user to notify. Provide `user_id`, `username` or `group_id`.
|
217
227
|
# notify_on_copy - boolean - If `true`, copying or moving resources into this path will trigger a notification, in addition to just uploads.
|
218
228
|
# notify_user_actions - boolean - If `true` actions initiated by the user will still result in a notification
|
229
|
+
# recursive - boolean - If `true`, enable notifications for each subfolder in this path
|
219
230
|
# send_interval - string - The time interval that notifications are aggregated by. Can be `five_minutes`, `fifteen_minutes`, `hourly`, or `daily`.
|
220
231
|
# group_id - int64 - The ID of the group to notify. Provide `user_id`, `username` or `group_id`.
|
221
232
|
# path - string - Path
|
@@ -234,6 +245,7 @@ module Files
|
|
234
245
|
# Parameters:
|
235
246
|
# notify_on_copy - boolean - If `true`, copying or moving resources into this path will trigger a notification, in addition to just uploads.
|
236
247
|
# notify_user_actions - boolean - If `true` actions initiated by the user will still result in a notification
|
248
|
+
# recursive - boolean - If `true`, enable notifications for each subfolder in this path
|
237
249
|
# send_interval - string - The time interval that notifications are aggregated by. Can be `five_minutes`, `fifteen_minutes`, `hourly`, or `daily`.
|
238
250
|
def self.update(id, params = {}, options = {})
|
239
251
|
params ||= {}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: files.com
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.115
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-09-
|
11
|
+
date: 2020-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|