files.com 1.0.61 → 1.0.66
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/behavior.md +1 -1
- data/docs/bundle.md +24 -16
- data/docs/notification.md +5 -1
- data/docs/site.md +8 -0
- data/docs/sso_strategy.md +4 -4
- data/docs/user.md +1 -1
- data/lib/files.com/models/behavior.rb +3 -2
- data/lib/files.com/models/bundle.rb +49 -37
- data/lib/files.com/models/notification.rb +3 -0
- data/lib/files.com/models/site.rb +12 -0
- data/lib/files.com/models/sso_strategy.rb +10 -10
- 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: 7e4a2bc035d0e4d4e0f653c54d0b5e78a6b10a2976ae0d002dd88ce76b55c414
|
4
|
+
data.tar.gz: 3d8337b9ee382d61c0d63a279b25cccc72e785c52af0e99604e2171ce659eafa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3035d31c71891d53be25324ac06d26d92ecced24ab73574cbb2b73786b3f25666d07a06d6589a1363daf289d87dea93c3f2dabfd05ac652d061050d18974da25
|
7
|
+
data.tar.gz: d6fcd3f9394bf481cb94dfddbcc0c92a3e5cb68c6673632dff2a4557f1fe396206a563fba5b38ad53798d14479ec3453c6e9b84b17f205d8cbcc8ea60d01ae23
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.66
|
data/docs/behavior.md
CHANGED
@@ -60,7 +60,7 @@ Files::Behavior.list_for(path,
|
|
60
60
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
61
61
|
* `action` (string): Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
|
62
62
|
* `path` (string): Required - Path to operate on.
|
63
|
-
* `recursive` (string): Show behaviors
|
63
|
+
* `recursive` (string): Show behaviors above this path?
|
64
64
|
* `behavior` (string): If set only shows folder behaviors matching this behavior type.
|
65
65
|
|
66
66
|
|
data/docs/bundle.md
CHANGED
@@ -4,33 +4,35 @@
|
|
4
4
|
|
5
5
|
```
|
6
6
|
{
|
7
|
-
"id": 1,
|
8
7
|
"code": "abc123",
|
9
|
-
"
|
8
|
+
"url": "https://subdomain.files.com/f/12345678",
|
10
9
|
"description": "The public description of the bundle.",
|
10
|
+
"password_protected": true,
|
11
|
+
"require_registration": true,
|
12
|
+
"id": 1,
|
13
|
+
"created_at": "2000-01-01T01:00:00Z",
|
11
14
|
"expires_at": "2000-01-01T01:00:00Z",
|
12
|
-
"paths": [
|
13
|
-
|
14
|
-
],
|
15
15
|
"note": "The internal note on the bundle.",
|
16
|
-
"password_protected": true,
|
17
|
-
"url": "https://subdomain.files.com/f/12345678",
|
18
16
|
"user_id": 1,
|
19
|
-
"username": "user"
|
17
|
+
"username": "user",
|
18
|
+
"paths": [
|
19
|
+
|
20
|
+
]
|
20
21
|
}
|
21
22
|
```
|
22
23
|
|
23
|
-
* `id` (int64): Bundle ID
|
24
24
|
* `code` (string): Bundle code. This code forms the end part of the Public URL.
|
25
|
-
* `
|
25
|
+
* `url` (string): Public URL of Share Link
|
26
26
|
* `description` (string): Public description
|
27
|
+
* `password_protected` (boolean): Is this bundle password protected?
|
28
|
+
* `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
|
29
|
+
* `id` (int64): Bundle ID
|
30
|
+
* `created_at` (date-time): Bundle created at date/time
|
27
31
|
* `expires_at` (date-time): Bundle expiration date/time
|
28
|
-
* `paths` (array): A list of paths in this bundle
|
29
32
|
* `note` (string): Bundle internal note
|
30
|
-
* `password_protected` (boolean): Is this bundle password protected?
|
31
|
-
* `url` (string): Public URL of Share Link
|
32
33
|
* `user_id` (int64): Bundle creator user ID
|
33
34
|
* `username` (string): Bundle creator username
|
35
|
+
* `paths` (array): A list of paths in this bundle
|
34
36
|
* `password` (string): Password for this bundle.
|
35
37
|
|
36
38
|
|
@@ -79,7 +81,8 @@ Files::Bundle.create(
|
|
79
81
|
expires_at: "2000-01-01T01:00:00Z",
|
80
82
|
description: "The public description of the bundle.",
|
81
83
|
note: "The internal note on the bundle.",
|
82
|
-
code: "abc123"
|
84
|
+
code: "abc123",
|
85
|
+
require_registration: true
|
83
86
|
)
|
84
87
|
```
|
85
88
|
|
@@ -92,6 +95,7 @@ Files::Bundle.create(
|
|
92
95
|
* `description` (string): Public description
|
93
96
|
* `note` (string): Bundle internal note
|
94
97
|
* `code` (string): Bundle code. This code forms the end part of the Public URL.
|
98
|
+
* `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
|
95
99
|
|
96
100
|
|
97
101
|
---
|
@@ -122,7 +126,8 @@ Files::Bundle.update(id,
|
|
122
126
|
expires_at: "2000-01-01T01:00:00Z",
|
123
127
|
description: "The public description of the bundle.",
|
124
128
|
note: "The internal note on the bundle.",
|
125
|
-
code: "abc123"
|
129
|
+
code: "abc123",
|
130
|
+
require_registration: true
|
126
131
|
)
|
127
132
|
```
|
128
133
|
|
@@ -134,6 +139,7 @@ Files::Bundle.update(id,
|
|
134
139
|
* `description` (string): Public description
|
135
140
|
* `note` (string): Bundle internal note
|
136
141
|
* `code` (string): Bundle code. This code forms the end part of the Public URL.
|
142
|
+
* `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
|
137
143
|
|
138
144
|
|
139
145
|
---
|
@@ -181,7 +187,8 @@ bundle.update(
|
|
181
187
|
expires_at: "2000-01-01T01:00:00Z",
|
182
188
|
description: "The public description of the bundle.",
|
183
189
|
note: "The internal note on the bundle.",
|
184
|
-
code: "abc123"
|
190
|
+
code: "abc123",
|
191
|
+
require_registration: true
|
185
192
|
)
|
186
193
|
```
|
187
194
|
|
@@ -193,6 +200,7 @@ bundle.update(
|
|
193
200
|
* `description` (string): Public description
|
194
201
|
* `note` (string): Bundle internal note
|
195
202
|
* `code` (string): Bundle code. This code forms the end part of the Public URL.
|
203
|
+
* `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
|
196
204
|
|
197
205
|
|
198
206
|
---
|
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/sso_strategy.md
CHANGED
@@ -19,6 +19,8 @@
|
|
19
19
|
"subdomain": "my-site",
|
20
20
|
"provision_users": true,
|
21
21
|
"provision_groups": true,
|
22
|
+
"deprovision_users": true,
|
23
|
+
"deprovision_groups": true,
|
22
24
|
"provision_group_default": "Employees",
|
23
25
|
"provision_group_exclusion": "Employees",
|
24
26
|
"provision_group_inclusion": "Employees",
|
@@ -26,10 +28,8 @@
|
|
26
28
|
"provision_attachments_permission": true,
|
27
29
|
"provision_dav_permission": true,
|
28
30
|
"provision_ftp_permission": true,
|
29
|
-
"provision_group_action": "disabled",
|
30
31
|
"provision_sftp_permission": true,
|
31
32
|
"provision_time_zone": "Eastern Time (US & Canada)",
|
32
|
-
"provision_user_action": "disabled",
|
33
33
|
"ldap_base_dn": "",
|
34
34
|
"ldap_domain": "mysite.com",
|
35
35
|
"enabled": true,
|
@@ -59,6 +59,8 @@
|
|
59
59
|
* `subdomain` (string): Subdomain
|
60
60
|
* `provision_users` (boolean): Auto-provision users?
|
61
61
|
* `provision_groups` (boolean): Auto-provision group membership based on group memberships on the SSO side?
|
62
|
+
* `deprovision_users` (boolean): Auto-deprovision users?
|
63
|
+
* `deprovision_groups` (boolean): Auto-deprovision group membership based on group memberships on the SSO side?
|
62
64
|
* `provision_group_default` (string): Comma-separated list of group names for groups to automatically add all auto-provisioned users to.
|
63
65
|
* `provision_group_exclusion` (string): Comma-separated list of group names for groups (with optional wildcards) that will be excluded from auto-provisioning.
|
64
66
|
* `provision_group_inclusion` (string): Comma-separated list of group names for groups (with optional wildcards) that will be auto-provisioned.
|
@@ -66,10 +68,8 @@
|
|
66
68
|
* `provision_attachments_permission` (boolean): Auto-provisioned users get Sharing permission?
|
67
69
|
* `provision_dav_permission` (boolean): Auto-provisioned users get WebDAV permission?
|
68
70
|
* `provision_ftp_permission` (boolean): Auto-provisioned users get FTP permission?
|
69
|
-
* `provision_group_action` (string): Should we sync groups from this strategy?
|
70
71
|
* `provision_sftp_permission` (boolean): Auto-provisioned users get SFTP permission?
|
71
72
|
* `provision_time_zone` (string): Default time zone for auto provisioned users.
|
72
|
-
* `provision_user_action` (string): Should we sync users from this strategy?
|
73
73
|
* `ldap_base_dn` (string): Base DN for looking up users in LDAP server
|
74
74
|
* `ldap_domain` (string): Domain name that will be appended to LDAP usernames
|
75
75
|
* `enabled` (boolean): Is strategy enabled?
|
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.
|
@@ -123,7 +123,7 @@ module Files
|
|
123
123
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
124
124
|
# action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
|
125
125
|
# path (required) - string - Path to operate on.
|
126
|
-
# recursive - string - Show behaviors
|
126
|
+
# recursive - string - Show behaviors above this path?
|
127
127
|
# behavior - string - If set only shows folder behaviors matching this behavior type.
|
128
128
|
def self.list_for(path, params = {}, options = {})
|
129
129
|
params ||= {}
|
@@ -191,8 +191,9 @@ module Files
|
|
191
191
|
def self.update(id, params = {}, options = {})
|
192
192
|
params ||= {}
|
193
193
|
params[:id] = id
|
194
|
-
raise InvalidParameterError.new("Bad parameter: id must be
|
194
|
+
raise InvalidParameterError.new("Bad parameter: id must be one of String, Integer, Hash") if params.dig(:id) and [String, Integer, Hash].none? { |klass| params.dig(:id).is_a?(klass) }
|
195
195
|
raise InvalidParameterError.new("Bad parameter: value must be an String") if params.dig(:value) and !params.dig(:value).is_a?(String)
|
196
|
+
raise InvalidParameterError.new("Bad parameter: attachment_file must be one of String, Integer, Hash") if params.dig(:attachment_file) and [String, Integer, Hash].none? { |klass| params.dig(:attachment_file).is_a?(klass) }
|
196
197
|
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
197
198
|
|
198
199
|
response, options = Api.send_request("/behaviors/#{params[:id]}", :patch, params, options)
|
@@ -9,15 +9,6 @@ module Files
|
|
9
9
|
@options = options || {}
|
10
10
|
end
|
11
11
|
|
12
|
-
# int64 - Bundle ID
|
13
|
-
def id
|
14
|
-
@attributes[:id]
|
15
|
-
end
|
16
|
-
|
17
|
-
def id=(value)
|
18
|
-
@attributes[:id] = value
|
19
|
-
end
|
20
|
-
|
21
12
|
# string - Bundle code. This code forms the end part of the Public URL.
|
22
13
|
def code
|
23
14
|
@attributes[:code]
|
@@ -27,9 +18,13 @@ module Files
|
|
27
18
|
@attributes[:code] = value
|
28
19
|
end
|
29
20
|
|
30
|
-
#
|
31
|
-
def
|
32
|
-
@attributes[:
|
21
|
+
# string - Public URL of Share Link
|
22
|
+
def url
|
23
|
+
@attributes[:url]
|
24
|
+
end
|
25
|
+
|
26
|
+
def url=(value)
|
27
|
+
@attributes[:url] = value
|
33
28
|
end
|
34
29
|
|
35
30
|
# string - Public description
|
@@ -41,49 +36,54 @@ module Files
|
|
41
36
|
@attributes[:description] = value
|
42
37
|
end
|
43
38
|
|
44
|
-
#
|
45
|
-
def
|
46
|
-
@attributes[:
|
39
|
+
# boolean - Is this bundle password protected?
|
40
|
+
def password_protected
|
41
|
+
@attributes[:password_protected]
|
47
42
|
end
|
48
43
|
|
49
|
-
def
|
50
|
-
@attributes[:
|
44
|
+
def password_protected=(value)
|
45
|
+
@attributes[:password_protected] = value
|
51
46
|
end
|
52
47
|
|
53
|
-
#
|
54
|
-
def
|
55
|
-
@attributes[:
|
48
|
+
# boolean - Show a registration page that captures the downloader's name and email address?
|
49
|
+
def require_registration
|
50
|
+
@attributes[:require_registration]
|
56
51
|
end
|
57
52
|
|
58
|
-
def
|
59
|
-
@attributes[:
|
53
|
+
def require_registration=(value)
|
54
|
+
@attributes[:require_registration] = value
|
60
55
|
end
|
61
56
|
|
62
|
-
#
|
63
|
-
def
|
64
|
-
@attributes[:
|
57
|
+
# int64 - Bundle ID
|
58
|
+
def id
|
59
|
+
@attributes[:id]
|
65
60
|
end
|
66
61
|
|
67
|
-
def
|
68
|
-
@attributes[:
|
62
|
+
def id=(value)
|
63
|
+
@attributes[:id] = value
|
69
64
|
end
|
70
65
|
|
71
|
-
#
|
72
|
-
def
|
73
|
-
@attributes[:
|
66
|
+
# date-time - Bundle created at date/time
|
67
|
+
def created_at
|
68
|
+
@attributes[:created_at]
|
74
69
|
end
|
75
70
|
|
76
|
-
|
77
|
-
|
71
|
+
# date-time - Bundle expiration date/time
|
72
|
+
def expires_at
|
73
|
+
@attributes[:expires_at]
|
78
74
|
end
|
79
75
|
|
80
|
-
|
81
|
-
|
82
|
-
@attributes[:url]
|
76
|
+
def expires_at=(value)
|
77
|
+
@attributes[:expires_at] = value
|
83
78
|
end
|
84
79
|
|
85
|
-
|
86
|
-
|
80
|
+
# string - Bundle internal note
|
81
|
+
def note
|
82
|
+
@attributes[:note]
|
83
|
+
end
|
84
|
+
|
85
|
+
def note=(value)
|
86
|
+
@attributes[:note] = value
|
87
87
|
end
|
88
88
|
|
89
89
|
# int64 - Bundle creator user ID
|
@@ -104,6 +104,15 @@ module Files
|
|
104
104
|
@attributes[:username] = value
|
105
105
|
end
|
106
106
|
|
107
|
+
# array - A list of paths in this bundle
|
108
|
+
def paths
|
109
|
+
@attributes[:paths]
|
110
|
+
end
|
111
|
+
|
112
|
+
def paths=(value)
|
113
|
+
@attributes[:paths] = value
|
114
|
+
end
|
115
|
+
|
107
116
|
# string - Password for this bundle.
|
108
117
|
def password
|
109
118
|
@attributes[:password]
|
@@ -137,6 +146,7 @@ module Files
|
|
137
146
|
# description - string - Public description
|
138
147
|
# note - string - Bundle internal note
|
139
148
|
# code - string - Bundle code. This code forms the end part of the Public URL.
|
149
|
+
# require_registration - boolean - Show a registration page that captures the downloader's name and email address?
|
140
150
|
def update(params = {})
|
141
151
|
params ||= {}
|
142
152
|
params[:id] = @attributes[:id]
|
@@ -217,6 +227,7 @@ module Files
|
|
217
227
|
# description - string - Public description
|
218
228
|
# note - string - Bundle internal note
|
219
229
|
# code - string - Bundle code. This code forms the end part of the Public URL.
|
230
|
+
# require_registration - boolean - Show a registration page that captures the downloader's name and email address?
|
220
231
|
def self.create(params = {}, options = {})
|
221
232
|
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params.dig(:user_id) and !params.dig(:user_id).is_a?(Integer)
|
222
233
|
raise InvalidParameterError.new("Bad parameter: paths must be an Array") if params.dig(:paths) and !params.dig(:paths).is_a?(Array)
|
@@ -255,6 +266,7 @@ module Files
|
|
255
266
|
# description - string - Public description
|
256
267
|
# note - string - Bundle internal note
|
257
268
|
# code - string - Bundle code. This code forms the end part of the Public URL.
|
269
|
+
# require_registration - boolean - Show a registration page that captures the downloader's name and email address?
|
258
270
|
def self.update(id, params = {}, options = {})
|
259
271
|
params ||= {}
|
260
272
|
params[:id] = id
|
@@ -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?
|
@@ -84,6 +84,16 @@ module Files
|
|
84
84
|
@attributes[:provision_groups]
|
85
85
|
end
|
86
86
|
|
87
|
+
# boolean - Auto-deprovision users?
|
88
|
+
def deprovision_users
|
89
|
+
@attributes[:deprovision_users]
|
90
|
+
end
|
91
|
+
|
92
|
+
# boolean - Auto-deprovision group membership based on group memberships on the SSO side?
|
93
|
+
def deprovision_groups
|
94
|
+
@attributes[:deprovision_groups]
|
95
|
+
end
|
96
|
+
|
87
97
|
# string - Comma-separated list of group names for groups to automatically add all auto-provisioned users to.
|
88
98
|
def provision_group_default
|
89
99
|
@attributes[:provision_group_default]
|
@@ -119,11 +129,6 @@ module Files
|
|
119
129
|
@attributes[:provision_ftp_permission]
|
120
130
|
end
|
121
131
|
|
122
|
-
# string - Should we sync groups from this strategy?
|
123
|
-
def provision_group_action
|
124
|
-
@attributes[:provision_group_action]
|
125
|
-
end
|
126
|
-
|
127
132
|
# boolean - Auto-provisioned users get SFTP permission?
|
128
133
|
def provision_sftp_permission
|
129
134
|
@attributes[:provision_sftp_permission]
|
@@ -134,11 +139,6 @@ module Files
|
|
134
139
|
@attributes[:provision_time_zone]
|
135
140
|
end
|
136
141
|
|
137
|
-
# string - Should we sync users from this strategy?
|
138
|
-
def provision_user_action
|
139
|
-
@attributes[:provision_user_action]
|
140
|
-
end
|
141
|
-
|
142
142
|
# string - Base DN for looking up users in LDAP server
|
143
143
|
def ldap_base_dn
|
144
144
|
@attributes[:ldap_base_dn]
|
@@ -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.66
|
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-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|