files.com 1.0.297 → 1.0.299
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 +2 -0
- data/docs/site.md +8 -0
- data/docs/user.md +19 -3
- data/lib/files.com/models/api_key.rb +9 -0
- data/lib/files.com/models/site.rb +14 -0
- data/lib/files.com/models/user.rb +75 -3
- 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: 923974c1d23789f6c98fd3fbcab9ee69d52b4f8320725b74cdc3c32cd27d0322
|
4
|
+
data.tar.gz: 01674ce406972fc249056ddf3d8a756d105c791aead79d0246744391d6ed1b4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5ac4950ca394fb43a32a8c43c3d5bc7d4babdd1396a82e77315a4e1ba3548ec4b0f6dae773b93cd4b81ca89a7f4ed36328eb8682134545b16ff089585a43b5c
|
7
|
+
data.tar.gz: 565be58bf59dbbf0658131fb3dd2435fbae2ef6ce7229f008765d3fdb8b8364f0129a3e095360f9a0c2d3faed7d41c490da69022ba965df5e9f6a70fe2aaf55a
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.299
|
data/docs/api_key.md
CHANGED
@@ -15,6 +15,7 @@
|
|
15
15
|
"path": "shared/docs",
|
16
16
|
"permission_set": "full",
|
17
17
|
"platform": "win32",
|
18
|
+
"url": "example",
|
18
19
|
"user_id": 1
|
19
20
|
}
|
20
21
|
```
|
@@ -30,6 +31,7 @@
|
|
30
31
|
* `path` (string): Folder path restriction for this api key. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
31
32
|
* `permission_set` (string): Permissions for this API Key. Keys with the `desktop_app` permission set only have the ability to do the functions provided in our Desktop App (File and Share Link operations). Additional permission sets may become available in the future, such as for a Site Admin to give a key with no administrator privileges. If you have ideas for permission sets, please let us know.
|
32
33
|
* `platform` (string): If this API key represents a Desktop app, what platform was it created on?
|
34
|
+
* `url` (string): URL for API host.
|
33
35
|
* `user_id` (int64): User ID for the owner of this API Key. May be blank for Site-wide API Keys.
|
34
36
|
|
35
37
|
|
data/docs/site.md
CHANGED
@@ -107,6 +107,8 @@
|
|
107
107
|
"session": "",
|
108
108
|
"session_pinned_by_ip": true,
|
109
109
|
"sftp_enabled": true,
|
110
|
+
"sftp_host_key_type": "default",
|
111
|
+
"active_sftp_host_key_id": 1,
|
110
112
|
"sftp_insecure_ciphers": true,
|
111
113
|
"sftp_user_root_enabled": true,
|
112
114
|
"sharing_enabled": true,
|
@@ -245,6 +247,8 @@
|
|
245
247
|
* `session` (Session): Current session
|
246
248
|
* `session_pinned_by_ip` (boolean): Are sessions locked to the same IP? (i.e. do users need to log in again if they change IPs?)
|
247
249
|
* `sftp_enabled` (boolean): Is SFTP enabled?
|
250
|
+
* `sftp_host_key_type` (string): Sftp Host Key Type
|
251
|
+
* `active_sftp_host_key_id` (int64): Id of the currently selected custom SFTP Host Key
|
248
252
|
* `sftp_insecure_ciphers` (boolean): Are Insecure Ciphers allowed for SFTP? Note: Settting TLS Disabled -> True will always allow insecure ciphers for SFTP as well. Enabling this is insecure.
|
249
253
|
* `sftp_user_root_enabled` (boolean): Use user FTP roots also for SFTP?
|
250
254
|
* `sharing_enabled` (boolean): Allow bundle creation
|
@@ -377,6 +381,8 @@ Files::Site.update(
|
|
377
381
|
user_requests_notify_admins: true,
|
378
382
|
ftp_enabled: true,
|
379
383
|
sftp_enabled: true,
|
384
|
+
sftp_host_key_type: "default",
|
385
|
+
active_sftp_host_key_id: 1,
|
380
386
|
bundle_watermark_value: {"key":"example value"},
|
381
387
|
allowed_2fa_method_sms: true,
|
382
388
|
allowed_2fa_method_u2f: true,
|
@@ -499,6 +505,8 @@ Files::Site.update(
|
|
499
505
|
* `user_requests_notify_admins` (boolean): Send email to site admins when a user request is received?
|
500
506
|
* `ftp_enabled` (boolean): Is FTP enabled?
|
501
507
|
* `sftp_enabled` (boolean): Is SFTP enabled?
|
508
|
+
* `sftp_host_key_type` (string): Sftp Host Key Type
|
509
|
+
* `active_sftp_host_key_id` (int64): Id of the currently selected custom SFTP Host Key
|
502
510
|
* `bundle_watermark_value` (object): Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
|
503
511
|
* `allowed_2fa_method_sms` (boolean): Is SMS two factor authentication allowed?
|
504
512
|
* `allowed_2fa_method_u2f` (boolean): Is U2F two factor authentication allowed?
|
data/docs/user.md
CHANGED
@@ -28,6 +28,14 @@
|
|
28
28
|
"header_text": "User-specific message.",
|
29
29
|
"language": "en",
|
30
30
|
"last_login_at": "2000-01-01T01:00:00Z",
|
31
|
+
"last_web_login_at": "2000-01-01T01:00:00Z",
|
32
|
+
"last_ftp_login_at": "2000-01-01T01:00:00Z",
|
33
|
+
"last_sftp_login_at": "2000-01-01T01:00:00Z",
|
34
|
+
"last_dav_login_at": "2000-01-01T01:00:00Z",
|
35
|
+
"last_desktop_login_at": "2000-01-01T01:00:00Z",
|
36
|
+
"last_restapi_login_at": "2000-01-01T01:00:00Z",
|
37
|
+
"last_api_use_at": "2000-01-01T01:00:00Z",
|
38
|
+
"last_active_at": "2000-01-01T01:00:00Z",
|
31
39
|
"last_protocol_cipher": "example",
|
32
40
|
"lockout_expires": "2000-01-01T01:00:00Z",
|
33
41
|
"name": "John Doe",
|
@@ -80,8 +88,16 @@
|
|
80
88
|
* `group_ids` (string): Comma-separated list of group IDs of which this user is a member
|
81
89
|
* `header_text` (string): Text to display to the user in the header of the UI
|
82
90
|
* `language` (string): Preferred language
|
83
|
-
* `last_login_at` (date-time): User's
|
84
|
-
* `
|
91
|
+
* `last_login_at` (date-time): User's most recent login time via any protocol
|
92
|
+
* `last_web_login_at` (date-time): User's most recent login time via web
|
93
|
+
* `last_ftp_login_at` (date-time): User's most recent login time via FTP
|
94
|
+
* `last_sftp_login_at` (date-time): User's most recent login time via SFTP
|
95
|
+
* `last_dav_login_at` (date-time): User's most recent login time via WebDAV
|
96
|
+
* `last_desktop_login_at` (date-time): User's most recent login time via Desktop app
|
97
|
+
* `last_restapi_login_at` (date-time): User's most recent login time via Rest API
|
98
|
+
* `last_api_use_at` (date-time): User's most recent API use time
|
99
|
+
* `last_active_at` (date-time): User's most recent activity time, which is the latest of most recent login, most recent API use, enablement, or creation
|
100
|
+
* `last_protocol_cipher` (string): The most recent protocol and cipher used
|
85
101
|
* `lockout_expires` (date-time): Time in the future that the user will no longer be locked out if applicable
|
86
102
|
* `name` (string): User's full name
|
87
103
|
* `company` (string): User's company
|
@@ -107,7 +123,7 @@
|
|
107
123
|
* `externally_managed` (boolean): Is this user managed by a SsoStrategy?
|
108
124
|
* `time_zone` (string): User time zone
|
109
125
|
* `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.
|
110
|
-
* `updated_at` (date-time): User record
|
126
|
+
* `updated_at` (date-time): User record most recently updated at. Note this may be incremented because of internal or external updates.
|
111
127
|
* `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.
|
112
128
|
* `avatar_file` (file): An image file for your user avatar.
|
113
129
|
* `avatar_delete` (boolean): If true, the avatar will be deleted.
|
@@ -104,6 +104,15 @@ module Files
|
|
104
104
|
@attributes[:platform] = value
|
105
105
|
end
|
106
106
|
|
107
|
+
# string - URL for API host.
|
108
|
+
def url
|
109
|
+
@attributes[:url]
|
110
|
+
end
|
111
|
+
|
112
|
+
def url=(value)
|
113
|
+
@attributes[:url] = value
|
114
|
+
end
|
115
|
+
|
107
116
|
# int64 - User ID for the owner of this API Key. May be blank for Site-wide API Keys.
|
108
117
|
def user_id
|
109
118
|
@attributes[:user_id]
|
@@ -514,6 +514,16 @@ module Files
|
|
514
514
|
@attributes[:sftp_enabled]
|
515
515
|
end
|
516
516
|
|
517
|
+
# string - Sftp Host Key Type
|
518
|
+
def sftp_host_key_type
|
519
|
+
@attributes[:sftp_host_key_type]
|
520
|
+
end
|
521
|
+
|
522
|
+
# int64 - Id of the currently selected custom SFTP Host Key
|
523
|
+
def active_sftp_host_key_id
|
524
|
+
@attributes[:active_sftp_host_key_id]
|
525
|
+
end
|
526
|
+
|
517
527
|
# boolean - Are Insecure Ciphers allowed for SFTP? Note: Settting TLS Disabled -> True will always allow insecure ciphers for SFTP as well. Enabling this is insecure.
|
518
528
|
def sftp_insecure_ciphers
|
519
529
|
@attributes[:sftp_insecure_ciphers]
|
@@ -767,6 +777,8 @@ module Files
|
|
767
777
|
# user_requests_notify_admins - boolean - Send email to site admins when a user request is received?
|
768
778
|
# ftp_enabled - boolean - Is FTP enabled?
|
769
779
|
# sftp_enabled - boolean - Is SFTP enabled?
|
780
|
+
# sftp_host_key_type - string - Sftp Host Key Type
|
781
|
+
# active_sftp_host_key_id - int64 - Id of the currently selected custom SFTP Host Key
|
770
782
|
# bundle_watermark_value - object - Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
|
771
783
|
# allowed_2fa_method_sms - boolean - Is SMS two factor authentication allowed?
|
772
784
|
# allowed_2fa_method_u2f - boolean - Is U2F two factor authentication allowed?
|
@@ -850,6 +862,8 @@ module Files
|
|
850
862
|
raise InvalidParameterError.new("Bad parameter: password_validity_days must be an Integer") if params[:password_validity_days] and !params[:password_validity_days].is_a?(Integer)
|
851
863
|
raise InvalidParameterError.new("Bad parameter: password_min_length must be an Integer") if params[:password_min_length] and !params[:password_min_length].is_a?(Integer)
|
852
864
|
raise InvalidParameterError.new("Bad parameter: disable_users_from_inactivity_period_days must be an Integer") if params[:disable_users_from_inactivity_period_days] and !params[:disable_users_from_inactivity_period_days].is_a?(Integer)
|
865
|
+
raise InvalidParameterError.new("Bad parameter: sftp_host_key_type must be an String") if params[:sftp_host_key_type] and !params[:sftp_host_key_type].is_a?(String)
|
866
|
+
raise InvalidParameterError.new("Bad parameter: active_sftp_host_key_id must be an Integer") if params[:active_sftp_host_key_id] and !params[:active_sftp_host_key_id].is_a?(Integer)
|
853
867
|
raise InvalidParameterError.new("Bad parameter: bundle_watermark_value must be an Hash") if params[:bundle_watermark_value] and !params[:bundle_watermark_value].is_a?(Hash)
|
854
868
|
raise InvalidParameterError.new("Bad parameter: require_2fa_user_type must be an String") if params[:require_2fa_user_type] and !params[:require_2fa_user_type].is_a?(String)
|
855
869
|
raise InvalidParameterError.new("Bad parameter: color2_top must be an String") if params[:color2_top] and !params[:color2_top].is_a?(String)
|
@@ -194,7 +194,7 @@ module Files
|
|
194
194
|
@attributes[:language] = value
|
195
195
|
end
|
196
196
|
|
197
|
-
# date-time - User's
|
197
|
+
# date-time - User's most recent login time via any protocol
|
198
198
|
def last_login_at
|
199
199
|
@attributes[:last_login_at]
|
200
200
|
end
|
@@ -203,7 +203,79 @@ module Files
|
|
203
203
|
@attributes[:last_login_at] = value
|
204
204
|
end
|
205
205
|
|
206
|
-
#
|
206
|
+
# date-time - User's most recent login time via web
|
207
|
+
def last_web_login_at
|
208
|
+
@attributes[:last_web_login_at]
|
209
|
+
end
|
210
|
+
|
211
|
+
def last_web_login_at=(value)
|
212
|
+
@attributes[:last_web_login_at] = value
|
213
|
+
end
|
214
|
+
|
215
|
+
# date-time - User's most recent login time via FTP
|
216
|
+
def last_ftp_login_at
|
217
|
+
@attributes[:last_ftp_login_at]
|
218
|
+
end
|
219
|
+
|
220
|
+
def last_ftp_login_at=(value)
|
221
|
+
@attributes[:last_ftp_login_at] = value
|
222
|
+
end
|
223
|
+
|
224
|
+
# date-time - User's most recent login time via SFTP
|
225
|
+
def last_sftp_login_at
|
226
|
+
@attributes[:last_sftp_login_at]
|
227
|
+
end
|
228
|
+
|
229
|
+
def last_sftp_login_at=(value)
|
230
|
+
@attributes[:last_sftp_login_at] = value
|
231
|
+
end
|
232
|
+
|
233
|
+
# date-time - User's most recent login time via WebDAV
|
234
|
+
def last_dav_login_at
|
235
|
+
@attributes[:last_dav_login_at]
|
236
|
+
end
|
237
|
+
|
238
|
+
def last_dav_login_at=(value)
|
239
|
+
@attributes[:last_dav_login_at] = value
|
240
|
+
end
|
241
|
+
|
242
|
+
# date-time - User's most recent login time via Desktop app
|
243
|
+
def last_desktop_login_at
|
244
|
+
@attributes[:last_desktop_login_at]
|
245
|
+
end
|
246
|
+
|
247
|
+
def last_desktop_login_at=(value)
|
248
|
+
@attributes[:last_desktop_login_at] = value
|
249
|
+
end
|
250
|
+
|
251
|
+
# date-time - User's most recent login time via Rest API
|
252
|
+
def last_restapi_login_at
|
253
|
+
@attributes[:last_restapi_login_at]
|
254
|
+
end
|
255
|
+
|
256
|
+
def last_restapi_login_at=(value)
|
257
|
+
@attributes[:last_restapi_login_at] = value
|
258
|
+
end
|
259
|
+
|
260
|
+
# date-time - User's most recent API use time
|
261
|
+
def last_api_use_at
|
262
|
+
@attributes[:last_api_use_at]
|
263
|
+
end
|
264
|
+
|
265
|
+
def last_api_use_at=(value)
|
266
|
+
@attributes[:last_api_use_at] = value
|
267
|
+
end
|
268
|
+
|
269
|
+
# date-time - User's most recent activity time, which is the latest of most recent login, most recent API use, enablement, or creation
|
270
|
+
def last_active_at
|
271
|
+
@attributes[:last_active_at]
|
272
|
+
end
|
273
|
+
|
274
|
+
def last_active_at=(value)
|
275
|
+
@attributes[:last_active_at] = value
|
276
|
+
end
|
277
|
+
|
278
|
+
# string - The most recent protocol and cipher used
|
207
279
|
def last_protocol_cipher
|
208
280
|
@attributes[:last_protocol_cipher]
|
209
281
|
end
|
@@ -437,7 +509,7 @@ module Files
|
|
437
509
|
@attributes[:type_of_2fa] = value
|
438
510
|
end
|
439
511
|
|
440
|
-
# date-time - User record
|
512
|
+
# date-time - User record most recently updated at. Note this may be incremented because of internal or external updates.
|
441
513
|
def updated_at
|
442
514
|
@attributes[:updated_at]
|
443
515
|
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.299
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|