files.com 1.0.60 → 1.0.65
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/api_key.md +4 -2
- data/docs/as2_key.md +4 -2
- data/docs/automation.md +4 -2
- data/docs/behavior.md +5 -3
- data/docs/bundle.md +6 -3
- data/docs/file.md +6 -3
- data/docs/file_action.md +6 -3
- data/docs/file_comment.md +4 -2
- data/docs/file_comment_reaction.md +2 -1
- data/docs/group.md +4 -2
- data/docs/group_user.md +4 -2
- data/docs/history_export.md +2 -1
- data/docs/lock.md +2 -1
- data/docs/message.md +4 -2
- data/docs/message_comment.md +4 -2
- data/docs/message_comment_reaction.md +2 -1
- data/docs/message_reaction.md +2 -1
- data/docs/notification.md +9 -3
- data/docs/project.md +4 -2
- data/docs/public_key.md +4 -2
- data/docs/remote_server.md +4 -2
- data/docs/request.md +2 -1
- data/docs/site.md +8 -0
- data/docs/sso_strategy.md +4 -4
- data/docs/style.md +4 -2
- data/docs/user.md +11 -6
- data/lib/files.com/models/behavior.rb +3 -2
- 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: 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/api_key.md
CHANGED
@@ -158,7 +158,8 @@ Files::ApiKey.delete(id)
|
|
158
158
|
## Update Api Key
|
159
159
|
|
160
160
|
```
|
161
|
-
api_key = Files::ApiKey.
|
161
|
+
api_key = Files::ApiKey.list_for(path).first
|
162
|
+
|
162
163
|
api_key.update(
|
163
164
|
name: "My Key",
|
164
165
|
permission_set: "full",
|
@@ -179,7 +180,8 @@ api_key.update(
|
|
179
180
|
## Delete Api Key
|
180
181
|
|
181
182
|
```
|
182
|
-
api_key = Files::ApiKey.
|
183
|
+
api_key = Files::ApiKey.list_for(path).first
|
184
|
+
|
183
185
|
api_key.delete
|
184
186
|
```
|
185
187
|
|
data/docs/as2_key.md
CHANGED
@@ -105,7 +105,8 @@ Files::As2Key.delete(id)
|
|
105
105
|
## Update As2 Key
|
106
106
|
|
107
107
|
```
|
108
|
-
as2_key = Files::As2Key.
|
108
|
+
as2_key = Files::As2Key.list_for(path).first
|
109
|
+
|
109
110
|
as2_key.update(
|
110
111
|
as2_partnership_name: "Test"
|
111
112
|
)
|
@@ -122,7 +123,8 @@ as2_key.update(
|
|
122
123
|
## Delete As2 Key
|
123
124
|
|
124
125
|
```
|
125
|
-
as2_key = Files::As2Key.
|
126
|
+
as2_key = Files::As2Key.list_for(path).first
|
127
|
+
|
126
128
|
as2_key.delete
|
127
129
|
```
|
128
130
|
|
data/docs/automation.md
CHANGED
@@ -143,7 +143,8 @@ Files::Automation.delete(id)
|
|
143
143
|
## Update Automation
|
144
144
|
|
145
145
|
```
|
146
|
-
automation = Files::Automation.
|
146
|
+
automation = Files::Automation.list_for(path).first
|
147
|
+
|
147
148
|
automation.update(
|
148
149
|
automation: "create_folder",
|
149
150
|
source: "source",
|
@@ -171,7 +172,8 @@ automation.update(
|
|
171
172
|
## Delete Automation
|
172
173
|
|
173
174
|
```
|
174
|
-
automation = Files::Automation.
|
175
|
+
automation = Files::Automation.list_for(path).first
|
176
|
+
|
175
177
|
automation.delete
|
176
178
|
```
|
177
179
|
|
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
|
|
@@ -151,7 +151,8 @@ Files::Behavior.delete(id)
|
|
151
151
|
## Update Behavior
|
152
152
|
|
153
153
|
```
|
154
|
-
behavior = Files::Behavior.
|
154
|
+
behavior = Files::Behavior.list_for(path).first
|
155
|
+
|
155
156
|
behavior.update(
|
156
157
|
value: "{\"method\": \"GET\"}"
|
157
158
|
)
|
@@ -169,7 +170,8 @@ behavior.update(
|
|
169
170
|
## Delete Behavior
|
170
171
|
|
171
172
|
```
|
172
|
-
behavior = Files::Behavior.
|
173
|
+
behavior = Files::Behavior.list_for(path).first
|
174
|
+
|
173
175
|
behavior.delete
|
174
176
|
```
|
175
177
|
|
data/docs/bundle.md
CHANGED
@@ -154,7 +154,8 @@ Files::Bundle.delete(id)
|
|
154
154
|
## Send email(s) with a link to bundle
|
155
155
|
|
156
156
|
```
|
157
|
-
bundle = Files::Bundle.
|
157
|
+
bundle = Files::Bundle.list_for(path).first
|
158
|
+
|
158
159
|
bundle.share(
|
159
160
|
to: ["johndoe@gmail.com"],
|
160
161
|
note: "Just a note."
|
@@ -173,7 +174,8 @@ bundle.share(
|
|
173
174
|
## Update Bundle
|
174
175
|
|
175
176
|
```
|
176
|
-
bundle = Files::Bundle.
|
177
|
+
bundle = Files::Bundle.list_for(path).first
|
178
|
+
|
177
179
|
bundle.update(
|
178
180
|
password: "Password",
|
179
181
|
expires_at: "2000-01-01T01:00:00Z",
|
@@ -198,7 +200,8 @@ bundle.update(
|
|
198
200
|
## Delete Bundle
|
199
201
|
|
200
202
|
```
|
201
|
-
bundle = Files::Bundle.
|
203
|
+
bundle = Files::Bundle.list_for(path).first
|
204
|
+
|
202
205
|
bundle.delete
|
203
206
|
```
|
204
207
|
|
data/docs/file.md
CHANGED
@@ -150,7 +150,8 @@ Files::File.delete(path,
|
|
150
150
|
## Download file
|
151
151
|
|
152
152
|
```
|
153
|
-
file = Files::File.
|
153
|
+
file = Files::File.list_for(path).first
|
154
|
+
|
154
155
|
file.download(
|
155
156
|
id: 1,
|
156
157
|
with_previews: true,
|
@@ -172,7 +173,8 @@ file.download(
|
|
172
173
|
## Update file/folder metadata
|
173
174
|
|
174
175
|
```
|
175
|
-
file = Files::File.
|
176
|
+
file = Files::File.list_for(path).first
|
177
|
+
|
176
178
|
file.update(
|
177
179
|
provided_mtime: "2000-01-01T01:00:00Z",
|
178
180
|
priority_color: "red"
|
@@ -191,7 +193,8 @@ file.update(
|
|
191
193
|
## Delete file/folder
|
192
194
|
|
193
195
|
```
|
194
|
-
file = Files::File.
|
196
|
+
file = Files::File.list_for(path).first
|
197
|
+
|
195
198
|
file.delete(
|
196
199
|
recursive: true
|
197
200
|
)
|
data/docs/file_action.md
CHANGED
@@ -63,7 +63,8 @@ Files::FileAction.begin_upload(path,
|
|
63
63
|
## Copy file/folder
|
64
64
|
|
65
65
|
```
|
66
|
-
file_action = Files::FileAction.
|
66
|
+
file_action = Files::FileAction.list_for(path).first
|
67
|
+
|
67
68
|
file_action.copy(
|
68
69
|
destination: "destination"
|
69
70
|
)
|
@@ -80,7 +81,8 @@ file_action.copy(
|
|
80
81
|
## Move file/folder
|
81
82
|
|
82
83
|
```
|
83
|
-
file_action = Files::FileAction.
|
84
|
+
file_action = Files::FileAction.list_for(path).first
|
85
|
+
|
84
86
|
file_action.move(
|
85
87
|
destination: "destination"
|
86
88
|
)
|
@@ -97,7 +99,8 @@ file_action.move(
|
|
97
99
|
## Begin file upload
|
98
100
|
|
99
101
|
```
|
100
|
-
file_action = Files::FileAction.
|
102
|
+
file_action = Files::FileAction.list_for(path).first
|
103
|
+
|
101
104
|
file_action.begin_upload(
|
102
105
|
mkdir_parents: true,
|
103
106
|
part: 1,
|
data/docs/file_comment.md
CHANGED
@@ -88,7 +88,8 @@ Files::FileComment.delete(id)
|
|
88
88
|
## Update File Comment
|
89
89
|
|
90
90
|
```
|
91
|
-
file_comment = Files::FileComment.
|
91
|
+
file_comment = Files::FileComment.list_for(path).first
|
92
|
+
|
92
93
|
file_comment.update(
|
93
94
|
body: "body"
|
94
95
|
)
|
@@ -105,7 +106,8 @@ file_comment.update(
|
|
105
106
|
## Delete File Comment
|
106
107
|
|
107
108
|
```
|
108
|
-
file_comment = Files::FileComment.
|
109
|
+
file_comment = Files::FileComment.list_for(path).first
|
110
|
+
|
109
111
|
file_comment.delete
|
110
112
|
```
|
111
113
|
|
@@ -52,7 +52,8 @@ Files::FileCommentReaction.delete(id)
|
|
52
52
|
## Delete File Comment Reaction
|
53
53
|
|
54
54
|
```
|
55
|
-
file_comment_reaction = Files::FileCommentReaction.
|
55
|
+
file_comment_reaction = Files::FileCommentReaction.list_for(path).first
|
56
|
+
|
56
57
|
file_comment_reaction.delete
|
57
58
|
```
|
58
59
|
|
data/docs/group.md
CHANGED
@@ -114,7 +114,8 @@ Files::Group.delete(id)
|
|
114
114
|
## Update Group
|
115
115
|
|
116
116
|
```
|
117
|
-
group = Files::Group.
|
117
|
+
group = Files::Group.list_for(path).first
|
118
|
+
|
118
119
|
group.update(
|
119
120
|
name: "owners"
|
120
121
|
)
|
@@ -134,7 +135,8 @@ group.update(
|
|
134
135
|
## Delete Group
|
135
136
|
|
136
137
|
```
|
137
|
-
group = Files::Group.
|
138
|
+
group = Files::Group.list_for(path).first
|
139
|
+
|
138
140
|
group.delete
|
139
141
|
```
|
140
142
|
|
data/docs/group_user.md
CHANGED
@@ -81,7 +81,8 @@ Files::GroupUser.delete(id)
|
|
81
81
|
## Update Group User
|
82
82
|
|
83
83
|
```
|
84
|
-
group_user = Files::GroupUser.
|
84
|
+
group_user = Files::GroupUser.list_for(path).first
|
85
|
+
|
85
86
|
group_user.update(
|
86
87
|
group_id: 1,
|
87
88
|
user_id: 1,
|
@@ -102,7 +103,8 @@ group_user.update(
|
|
102
103
|
## Delete Group User
|
103
104
|
|
104
105
|
```
|
105
|
-
group_user = Files::GroupUser.
|
106
|
+
group_user = Files::GroupUser.list_for(path).first
|
107
|
+
|
106
108
|
group_user.delete
|
107
109
|
```
|
108
110
|
|
data/docs/history_export.md
CHANGED
data/docs/lock.md
CHANGED
data/docs/message.md
CHANGED
@@ -115,7 +115,8 @@ Files::Message.delete(id)
|
|
115
115
|
## Update Message
|
116
116
|
|
117
117
|
```
|
118
|
-
message = Files::Message.
|
118
|
+
message = Files::Message.list_for(path).first
|
119
|
+
|
119
120
|
message.update(
|
120
121
|
project_id: 1,
|
121
122
|
subject: "subject",
|
@@ -136,7 +137,8 @@ message.update(
|
|
136
137
|
## Delete Message
|
137
138
|
|
138
139
|
```
|
139
|
-
message = Files::Message.
|
140
|
+
message = Files::Message.list_for(path).first
|
141
|
+
|
140
142
|
message.delete
|
141
143
|
```
|
142
144
|
|
data/docs/message_comment.md
CHANGED
@@ -104,7 +104,8 @@ Files::MessageComment.delete(id)
|
|
104
104
|
## Update Message Comment
|
105
105
|
|
106
106
|
```
|
107
|
-
message_comment = Files::MessageComment.
|
107
|
+
message_comment = Files::MessageComment.list_for(path).first
|
108
|
+
|
108
109
|
message_comment.update(
|
109
110
|
body: "body"
|
110
111
|
)
|
@@ -121,7 +122,8 @@ message_comment.update(
|
|
121
122
|
## Delete Message Comment
|
122
123
|
|
123
124
|
```
|
124
|
-
message_comment = Files::MessageComment.
|
125
|
+
message_comment = Files::MessageComment.list_for(path).first
|
126
|
+
|
125
127
|
message_comment.delete
|
126
128
|
```
|
127
129
|
|
@@ -84,7 +84,8 @@ Files::MessageCommentReaction.delete(id)
|
|
84
84
|
## Delete Message Comment Reaction
|
85
85
|
|
86
86
|
```
|
87
|
-
message_comment_reaction = Files::MessageCommentReaction.
|
87
|
+
message_comment_reaction = Files::MessageCommentReaction.list_for(path).first
|
88
|
+
|
88
89
|
message_comment_reaction.delete
|
89
90
|
```
|
90
91
|
|
data/docs/message_reaction.md
CHANGED
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
|
---
|
@@ -133,7 +137,8 @@ Files::Notification.delete(id)
|
|
133
137
|
## Update Notification
|
134
138
|
|
135
139
|
```
|
136
|
-
notification = Files::Notification.
|
140
|
+
notification = Files::Notification.list_for(path).first
|
141
|
+
|
137
142
|
notification.update(
|
138
143
|
notify_on_copy: true,
|
139
144
|
notify_user_actions: true,
|
@@ -154,7 +159,8 @@ notification.update(
|
|
154
159
|
## Delete Notification
|
155
160
|
|
156
161
|
```
|
157
|
-
notification = Files::Notification.
|
162
|
+
notification = Files::Notification.list_for(path).first
|
163
|
+
|
158
164
|
notification.delete
|
159
165
|
```
|
160
166
|
|
data/docs/project.md
CHANGED
@@ -93,7 +93,8 @@ Files::Project.delete(id)
|
|
93
93
|
## Update Project
|
94
94
|
|
95
95
|
```
|
96
|
-
project = Files::Project.
|
96
|
+
project = Files::Project.list_for(path).first
|
97
|
+
|
97
98
|
project.update(
|
98
99
|
global_access: "global_access"
|
99
100
|
)
|
@@ -110,7 +111,8 @@ project.update(
|
|
110
111
|
## Delete Project
|
111
112
|
|
112
113
|
```
|
113
|
-
project = Files::Project.
|
114
|
+
project = Files::Project.list_for(path).first
|
115
|
+
|
114
116
|
project.delete
|
115
117
|
```
|
116
118
|
|
data/docs/public_key.md
CHANGED
@@ -105,7 +105,8 @@ Files::PublicKey.delete(id)
|
|
105
105
|
## Update Public Key
|
106
106
|
|
107
107
|
```
|
108
|
-
public_key = Files::PublicKey.
|
108
|
+
public_key = Files::PublicKey.list_for(path).first
|
109
|
+
|
109
110
|
public_key.update(
|
110
111
|
title: "My Main Key"
|
111
112
|
)
|
@@ -122,7 +123,8 @@ public_key.update(
|
|
122
123
|
## Delete Public Key
|
123
124
|
|
124
125
|
```
|
125
|
-
public_key = Files::PublicKey.
|
126
|
+
public_key = Files::PublicKey.list_for(path).first
|
127
|
+
|
126
128
|
public_key.delete
|
127
129
|
```
|
128
130
|
|
data/docs/remote_server.md
CHANGED
@@ -218,7 +218,8 @@ Files::RemoteServer.delete(id)
|
|
218
218
|
## Update Remote Server
|
219
219
|
|
220
220
|
```
|
221
|
-
remote_server = Files::RemoteServer.
|
221
|
+
remote_server = Files::RemoteServer.list_for(path).first
|
222
|
+
|
222
223
|
remote_server.update(
|
223
224
|
hostname: "remote-server.com",
|
224
225
|
name: "My Remote server",
|
@@ -276,7 +277,8 @@ remote_server.update(
|
|
276
277
|
## Delete Remote Server
|
277
278
|
|
278
279
|
```
|
279
|
-
remote_server = Files::RemoteServer.
|
280
|
+
remote_server = Files::RemoteServer.list_for(path).first
|
281
|
+
|
280
282
|
remote_server.delete
|
281
283
|
```
|
282
284
|
|
data/docs/request.md
CHANGED
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/style.md
CHANGED
@@ -65,7 +65,8 @@ Files::Style.delete(path)
|
|
65
65
|
## Update Style
|
66
66
|
|
67
67
|
```
|
68
|
-
style = Files::Style.
|
68
|
+
style = Files::Style.list_for(path).first
|
69
|
+
|
69
70
|
style.update(
|
70
71
|
file: "file"
|
71
72
|
)
|
@@ -82,7 +83,8 @@ style.update(
|
|
82
83
|
## Delete Style
|
83
84
|
|
84
85
|
```
|
85
|
-
style = Files::Style.
|
86
|
+
style = Files::Style.list_for(path).first
|
87
|
+
|
86
88
|
style.delete
|
87
89
|
```
|
88
90
|
|
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.
|
@@ -371,7 +371,8 @@ Files::User.delete(id)
|
|
371
371
|
## Unlock user who has been locked out due to failed logins
|
372
372
|
|
373
373
|
```
|
374
|
-
user = Files::User.
|
374
|
+
user = Files::User.list_for(path).first
|
375
|
+
|
375
376
|
user.unlock
|
376
377
|
```
|
377
378
|
|
@@ -385,7 +386,8 @@ user.unlock
|
|
385
386
|
## Resend user welcome email
|
386
387
|
|
387
388
|
```
|
388
|
-
user = Files::User.
|
389
|
+
user = Files::User.list_for(path).first
|
390
|
+
|
389
391
|
user.resend_welcome_email
|
390
392
|
```
|
391
393
|
|
@@ -399,7 +401,8 @@ user.resend_welcome_email
|
|
399
401
|
## Trigger 2FA Reset process for user who has lost access to their existing 2FA methods
|
400
402
|
|
401
403
|
```
|
402
|
-
user = Files::User.
|
404
|
+
user = Files::User.list_for(path).first
|
405
|
+
|
403
406
|
user.user_2fa_reset
|
404
407
|
```
|
405
408
|
|
@@ -413,7 +416,8 @@ user.user_2fa_reset
|
|
413
416
|
## Update User
|
414
417
|
|
415
418
|
```
|
416
|
-
user = Files::User.
|
419
|
+
user = Files::User.list_for(path).first
|
420
|
+
|
417
421
|
user.update(
|
418
422
|
avatar_delete: true,
|
419
423
|
email: "john.doe@files.com",
|
@@ -498,7 +502,8 @@ user.update(
|
|
498
502
|
## Delete User
|
499
503
|
|
500
504
|
```
|
501
|
-
user = Files::User.
|
505
|
+
user = Files::User.list_for(path).first
|
506
|
+
|
502
507
|
user.delete
|
503
508
|
```
|
504
509
|
|
@@ -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)
|
@@ -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.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
|