files.com 1.0.64 → 1.0.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/notification.md +5 -1
- data/docs/site.md +8 -0
- data/docs/user.md +1 -1
- data/lib/files.com/models/notification.rb +3 -0
- data/lib/files.com/models/site.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: a8025a8623a1eeaee8f5a1d14abeb2ddee71ab8b25d0c049e1f452f9d1d36be9
|
4
|
+
data.tar.gz: 233fabd362482a798703dfc07204046994ba710e2b45854e7ddf6ec29fe6b44b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3240bee55e67353135fc32e81e386a33dad2a0a71071c620cf4c6e3b89ee1fd58c4a0ec6ce14040cfad2a537657bfa1e57a3410367aa6f06ce60e581d02a05c
|
7
|
+
data.tar.gz: 9d570738941bf471ad427f1c081f410eebc2a4a83e93715e0b09eaf25be82bca1c5e80e0bc515f3024aae6c30cb7e576d0c0e536eed9bc8f5e58642b55b50872
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.65
|
data/docs/notification.md
CHANGED
@@ -42,7 +42,9 @@ Files::Notification.list(
|
|
42
42
|
user_id: 1,
|
43
43
|
page: 1,
|
44
44
|
per_page: 1,
|
45
|
-
group_id: 1
|
45
|
+
group_id: 1,
|
46
|
+
path: "path",
|
47
|
+
include_ancestors: true
|
46
48
|
)
|
47
49
|
```
|
48
50
|
|
@@ -53,6 +55,8 @@ Files::Notification.list(
|
|
53
55
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
54
56
|
* `action` (string): Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
|
55
57
|
* `group_id` (int64): Show notifications for this Group ID.
|
58
|
+
* `path` (string): Show notifications for this Path.
|
59
|
+
* `include_ancestors` (boolean): If `include_ancestors` is `true` and `path` is specified, include notifications for any parent paths. Ignored if `path` is not specified.
|
56
60
|
|
57
61
|
|
58
62
|
---
|
data/docs/site.md
CHANGED
@@ -32,6 +32,8 @@
|
|
32
32
|
"disable_password_reset": true,
|
33
33
|
"domain": "my-custom-domain.com",
|
34
34
|
"email": "john.doe@files.com",
|
35
|
+
"non_sso_groups_allowed": true,
|
36
|
+
"non_sso_users_allowed": true,
|
35
37
|
"folder_permissions_groups_only": true,
|
36
38
|
"hipaa": true,
|
37
39
|
"icon128": "",
|
@@ -140,6 +142,8 @@
|
|
140
142
|
* `disable_password_reset` (boolean): Is password reset disabled?
|
141
143
|
* `domain` (string): Custom domain
|
142
144
|
* `email` (email): Main email for this site
|
145
|
+
* `non_sso_groups_allowed` (boolean): If true, groups can be manually created / modified / deleted by Site Admins. Otherwise, groups can only be managed via your SSO provider.
|
146
|
+
* `non_sso_users_allowed` (boolean): If true, users can be manually created / modified / deleted by Site Admins. Otherwise, users can only be managed via your SSO provider.
|
143
147
|
* `folder_permissions_groups_only` (boolean): If true, permissions for this site must be bound to a group (not a user). Otherwise, permissions must be bound to a user.
|
144
148
|
* `hipaa` (boolean): Is there a signed HIPAA BAA between Files.com and this site?
|
145
149
|
* `icon128`: Branded icon 128x128
|
@@ -289,6 +293,8 @@ Files::Site.update(
|
|
289
293
|
use_provided_modified_at: true,
|
290
294
|
custom_namespace: true,
|
291
295
|
disable_users_from_inactivity_period_days: 1,
|
296
|
+
non_sso_groups_allowed: true,
|
297
|
+
non_sso_users_allowed: true,
|
292
298
|
allowed_2fa_method_sms: true,
|
293
299
|
allowed_2fa_method_u2f: true,
|
294
300
|
allowed_2fa_method_totp: true,
|
@@ -377,6 +383,8 @@ Files::Site.update(
|
|
377
383
|
* `use_provided_modified_at` (boolean): Allow uploaders to set `provided_modified_at` for uploaded files?
|
378
384
|
* `custom_namespace` (boolean): Is this site using a custom namespace for users?
|
379
385
|
* `disable_users_from_inactivity_period_days` (int64): If greater than zero, users will unable to login if they do not show activity within this number of days.
|
386
|
+
* `non_sso_groups_allowed` (boolean): If true, groups can be manually created / modified / deleted by Site Admins. Otherwise, groups can only be managed via your SSO provider.
|
387
|
+
* `non_sso_users_allowed` (boolean): If true, users can be manually created / modified / deleted by Site Admins. Otherwise, users can only be managed via your SSO provider.
|
380
388
|
* `allowed_2fa_method_sms` (boolean): Is SMS two factor authentication allowed?
|
381
389
|
* `allowed_2fa_method_u2f` (boolean): Is U2F two factor authentication allowed?
|
382
390
|
* `allowed_2fa_method_totp` (boolean): Is TOTP two factor authentication allowed?
|
data/docs/user.md
CHANGED
@@ -93,7 +93,7 @@
|
|
93
93
|
* `ssl_required` (string): SSL required setting
|
94
94
|
* `sso_strategy_id` (int64): SSO (Single Sign On) strategy ID for the user, if applicable.
|
95
95
|
* `subscribe_to_newsletter` (boolean): Is the user subscribed to the newsletter?
|
96
|
-
* `externally_managed` (boolean): Is this user managed by
|
96
|
+
* `externally_managed` (boolean): Is this user managed by a SsoStrategy?
|
97
97
|
* `time_zone` (string): User time zone
|
98
98
|
* `type_of_2fa` (string): Type(s) of 2FA methods in use. Will be either `sms`, `totp`, `u2f`, `yubi`, or multiple values sorted alphabetically and joined by an underscore.
|
99
99
|
* `user_root` (string): Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set.) Note that this is not used for API, Desktop, or Web interface.
|
@@ -161,12 +161,15 @@ module Files
|
|
161
161
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
162
162
|
# action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
|
163
163
|
# group_id - int64 - Show notifications for this Group ID.
|
164
|
+
# path - string - Show notifications for this Path.
|
165
|
+
# include_ancestors - boolean - If `include_ancestors` is `true` and `path` is specified, include notifications for any parent paths. Ignored if `path` is not specified.
|
164
166
|
def self.list(params = {}, options = {})
|
165
167
|
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params.dig(:user_id) and !params.dig(:user_id).is_a?(Integer)
|
166
168
|
raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer)
|
167
169
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
|
168
170
|
raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
|
169
171
|
raise InvalidParameterError.new("Bad parameter: group_id must be an Integer") if params.dig(:group_id) and !params.dig(:group_id).is_a?(Integer)
|
172
|
+
raise InvalidParameterError.new("Bad parameter: path must be an String") if params.dig(:path) and !params.dig(:path).is_a?(String)
|
170
173
|
|
171
174
|
response, options = Api.send_request("/notifications", :get, params, options)
|
172
175
|
end
|
@@ -149,6 +149,16 @@ module Files
|
|
149
149
|
@attributes[:email]
|
150
150
|
end
|
151
151
|
|
152
|
+
# boolean - If true, groups can be manually created / modified / deleted by Site Admins. Otherwise, groups can only be managed via your SSO provider.
|
153
|
+
def non_sso_groups_allowed
|
154
|
+
@attributes[:non_sso_groups_allowed]
|
155
|
+
end
|
156
|
+
|
157
|
+
# boolean - If true, users can be manually created / modified / deleted by Site Admins. Otherwise, users can only be managed via your SSO provider.
|
158
|
+
def non_sso_users_allowed
|
159
|
+
@attributes[:non_sso_users_allowed]
|
160
|
+
end
|
161
|
+
|
152
162
|
# boolean - If true, permissions for this site must be bound to a group (not a user). Otherwise, permissions must be bound to a user.
|
153
163
|
def folder_permissions_groups_only
|
154
164
|
@attributes[:folder_permissions_groups_only]
|
@@ -593,6 +603,8 @@ module Files
|
|
593
603
|
# use_provided_modified_at - boolean - Allow uploaders to set `provided_modified_at` for uploaded files?
|
594
604
|
# custom_namespace - boolean - Is this site using a custom namespace for users?
|
595
605
|
# disable_users_from_inactivity_period_days - int64 - If greater than zero, users will unable to login if they do not show activity within this number of days.
|
606
|
+
# non_sso_groups_allowed - boolean - If true, groups can be manually created / modified / deleted by Site Admins. Otherwise, groups can only be managed via your SSO provider.
|
607
|
+
# non_sso_users_allowed - boolean - If true, users can be manually created / modified / deleted by Site Admins. Otherwise, users can only be managed via your SSO provider.
|
596
608
|
# allowed_2fa_method_sms - boolean - Is SMS two factor authentication allowed?
|
597
609
|
# allowed_2fa_method_u2f - boolean - Is U2F two factor authentication allowed?
|
598
610
|
# allowed_2fa_method_totp - boolean - Is TOTP two factor authentication allowed?
|
@@ -356,7 +356,7 @@ module Files
|
|
356
356
|
@attributes[:subscribe_to_newsletter] = value
|
357
357
|
end
|
358
358
|
|
359
|
-
# boolean - Is this user managed by
|
359
|
+
# boolean - Is this user managed by a SsoStrategy?
|
360
360
|
def externally_managed
|
361
361
|
@attributes[:externally_managed]
|
362
362
|
end
|
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.65
|
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-06-
|
11
|
+
date: 2020-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|