files.com 1.1.140 → 1.1.142
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/automation.md +3 -1
- data/docs/site.md +2 -0
- data/docs/user.md +12 -4
- data/lib/files.com/models/automation.rb +10 -1
- data/lib/files.com/models/user.rb +19 -4
- data/lib/files.com/version.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: c9c439963bc3f757605322acd4e3a3c87bdc161fc9cb1304b3b0434327adcb09
|
4
|
+
data.tar.gz: e24ad0310e20f6b8464efd63403a81bcb3c6795698c3ae6c1be700cd6174b054
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d6ea89af7f64985907a0fa58290d1a1a1c226a3937593a99a671281962d3fd9be35740be51952335ee30ccafa4a012d76f9fc04f9788d5ff04d010d309652b7
|
7
|
+
data.tar.gz: 5f5fdbd0bfa4bf7bec1ea23e7185273d2dbf03062ee932b76c6539f9f481383b69fe728930204bdcae58ce4da8ab021dca2b418030ec7d2e2218f52e8ecc6c5f
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.142
|
data/docs/automation.md
CHANGED
@@ -15,6 +15,7 @@
|
|
15
15
|
"destination"
|
16
16
|
],
|
17
17
|
"disabled": true,
|
18
|
+
"exclude_pattern": "example",
|
18
19
|
"flatten_destination_structure": true,
|
19
20
|
"group_ids": [
|
20
21
|
1,
|
@@ -71,6 +72,7 @@
|
|
71
72
|
* `destination_replace_to` (string): If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
|
72
73
|
* `destinations` (array(string)): Destination Paths
|
73
74
|
* `disabled` (boolean): If true, this automation will not run.
|
75
|
+
* `exclude_pattern` (string): If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
|
74
76
|
* `flatten_destination_structure` (boolean): Normally copy and move automations that use globs will implicitly preserve the source folder structure in the destination. If this flag is `true`, the source folder structure will be flattened in the destination. This is useful for copying or moving files from multiple folders into a single destination folder.
|
75
77
|
* `group_ids` (array(int64)): IDs of Groups for the Automation (i.e. who to Request File from)
|
76
78
|
* `ignore_locked_folders` (boolean): If true, the Lock Folders behavior will be disregarded for automated actions.
|
@@ -87,7 +89,7 @@
|
|
87
89
|
* `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run. 0-based days of the week. 0 is Sunday, 1 is Monday, etc.
|
88
90
|
* `schedule_times_of_day` (array(string)): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run. Times of day in HH:MM format.
|
89
91
|
* `schedule_time_zone` (string): If trigger is `custom_schedule`, Custom schedule Time Zone for when the automation should be run.
|
90
|
-
* `source` (string): Source
|
92
|
+
* `source` (string): Source path. Supports globs, except on remote mounts.
|
91
93
|
* `sync_ids` (array(int64)): IDs of remote sync folder behaviors to run by this Automation
|
92
94
|
* `trigger_actions` (array(string)): If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
|
93
95
|
* `trigger` (string): How this automation is triggered to run.
|
data/docs/site.md
CHANGED
@@ -157,6 +157,7 @@
|
|
157
157
|
"multiple_regions": true,
|
158
158
|
"read_only": true,
|
159
159
|
"root_path": "example",
|
160
|
+
"home_path": "example",
|
160
161
|
"sftp_insecure_ciphers": false,
|
161
162
|
"site_id": 1,
|
162
163
|
"ssl_required": true,
|
@@ -262,6 +263,7 @@
|
|
262
263
|
"type_of_2fa_for_display": "yubi",
|
263
264
|
"updated_at": "2000-01-01T01:00:00Z",
|
264
265
|
"user_root": "example",
|
266
|
+
"user_home": "example",
|
265
267
|
"days_remaining_until_password_expire": 1,
|
266
268
|
"password_expire_at": "2000-01-01T01:00:00Z"
|
267
269
|
},
|
data/docs/user.md
CHANGED
@@ -67,6 +67,7 @@
|
|
67
67
|
"type_of_2fa": "yubi",
|
68
68
|
"type_of_2fa_for_display": "yubi",
|
69
69
|
"user_root": "example",
|
70
|
+
"user_home": "example",
|
70
71
|
"days_remaining_until_password_expire": 1,
|
71
72
|
"password_expire_at": "2000-01-01T01:00:00Z"
|
72
73
|
}
|
@@ -132,7 +133,8 @@
|
|
132
133
|
* `time_zone` (string): User time zone
|
133
134
|
* `type_of_2fa` (string): Type(s) of 2FA methods in use, for programmatic use. Will be either `sms`, `totp`, `webauthn`, `yubi`, `email`, or multiple values sorted alphabetically and joined by an underscore. Does not specify whether user has more than one of a given method.
|
134
135
|
* `type_of_2fa_for_display` (string): Type(s) of 2FA methods in use, formatted for displaying in the UI. Unlike `type_of_2fa`, this value will make clear when a user has more than 1 of the same type of method.
|
135
|
-
* `user_root` (string): Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set.
|
136
|
+
* `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.
|
137
|
+
* `user_home` (string): Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
|
136
138
|
* `days_remaining_until_password_expire` (int64): Number of days remaining until password expires
|
137
139
|
* `password_expire_at` (date-time): Password expiration datetime
|
138
140
|
* `avatar_file` (file): An image file for your user avatar.
|
@@ -227,6 +229,7 @@ Files::User.create(
|
|
227
229
|
require_2fa: "always_require",
|
228
230
|
time_zone: "Pacific Time (US & Canada)",
|
229
231
|
user_root: "example",
|
232
|
+
user_home: "example",
|
230
233
|
username: "user"
|
231
234
|
)
|
232
235
|
```
|
@@ -277,7 +280,8 @@ Files::User.create(
|
|
277
280
|
* `subscribe_to_newsletter` (boolean): Is the user subscribed to the newsletter?
|
278
281
|
* `require_2fa` (string): 2FA required setting
|
279
282
|
* `time_zone` (string): User time zone
|
280
|
-
* `user_root` (string): Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set.
|
283
|
+
* `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.
|
284
|
+
* `user_home` (string): Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
|
281
285
|
* `username` (string): Required - User's username
|
282
286
|
|
283
287
|
|
@@ -364,6 +368,7 @@ Files::User.update(id,
|
|
364
368
|
require_2fa: "always_require",
|
365
369
|
time_zone: "Pacific Time (US & Canada)",
|
366
370
|
user_root: "example",
|
371
|
+
user_home: "example",
|
367
372
|
username: "user"
|
368
373
|
)
|
369
374
|
```
|
@@ -415,7 +420,8 @@ Files::User.update(id,
|
|
415
420
|
* `subscribe_to_newsletter` (boolean): Is the user subscribed to the newsletter?
|
416
421
|
* `require_2fa` (string): 2FA required setting
|
417
422
|
* `time_zone` (string): User time zone
|
418
|
-
* `user_root` (string): Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set.
|
423
|
+
* `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.
|
424
|
+
* `user_home` (string): Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
|
419
425
|
* `username` (string): User's username
|
420
426
|
|
421
427
|
|
@@ -523,6 +529,7 @@ user.update(
|
|
523
529
|
require_2fa: "always_require",
|
524
530
|
time_zone: "Pacific Time (US & Canada)",
|
525
531
|
user_root: "example",
|
532
|
+
user_home: "example",
|
526
533
|
username: "user"
|
527
534
|
)
|
528
535
|
```
|
@@ -574,7 +581,8 @@ user.update(
|
|
574
581
|
* `subscribe_to_newsletter` (boolean): Is the user subscribed to the newsletter?
|
575
582
|
* `require_2fa` (string): 2FA required setting
|
576
583
|
* `time_zone` (string): User time zone
|
577
|
-
* `user_root` (string): Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set.
|
584
|
+
* `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.
|
585
|
+
* `user_home` (string): Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
|
578
586
|
* `username` (string): User's username
|
579
587
|
|
580
588
|
|
@@ -90,6 +90,15 @@ module Files
|
|
90
90
|
@attributes[:disabled] = value
|
91
91
|
end
|
92
92
|
|
93
|
+
# string - If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
|
94
|
+
def exclude_pattern
|
95
|
+
@attributes[:exclude_pattern]
|
96
|
+
end
|
97
|
+
|
98
|
+
def exclude_pattern=(value)
|
99
|
+
@attributes[:exclude_pattern] = value
|
100
|
+
end
|
101
|
+
|
93
102
|
# boolean - Normally copy and move automations that use globs will implicitly preserve the source folder structure in the destination. If this flag is `true`, the source folder structure will be flattened in the destination. This is useful for copying or moving files from multiple folders into a single destination folder.
|
94
103
|
def flatten_destination_structure
|
95
104
|
@attributes[:flatten_destination_structure]
|
@@ -234,7 +243,7 @@ module Files
|
|
234
243
|
@attributes[:schedule_time_zone] = value
|
235
244
|
end
|
236
245
|
|
237
|
-
# string - Source
|
246
|
+
# string - Source path. Supports globs, except on remote mounts.
|
238
247
|
def source
|
239
248
|
@attributes[:source]
|
240
249
|
end
|
@@ -545,7 +545,7 @@ module Files
|
|
545
545
|
@attributes[:type_of_2fa_for_display] = value
|
546
546
|
end
|
547
547
|
|
548
|
-
# string - Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set.
|
548
|
+
# 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.
|
549
549
|
def user_root
|
550
550
|
@attributes[:user_root]
|
551
551
|
end
|
@@ -554,6 +554,15 @@ module Files
|
|
554
554
|
@attributes[:user_root] = value
|
555
555
|
end
|
556
556
|
|
557
|
+
# string - Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
|
558
|
+
def user_home
|
559
|
+
@attributes[:user_home]
|
560
|
+
end
|
561
|
+
|
562
|
+
def user_home=(value)
|
563
|
+
@attributes[:user_home] = value
|
564
|
+
end
|
565
|
+
|
557
566
|
# int64 - Number of days remaining until password expires
|
558
567
|
def days_remaining_until_password_expire
|
559
568
|
@attributes[:days_remaining_until_password_expire]
|
@@ -740,7 +749,8 @@ module Files
|
|
740
749
|
# subscribe_to_newsletter - boolean - Is the user subscribed to the newsletter?
|
741
750
|
# require_2fa - string - 2FA required setting
|
742
751
|
# time_zone - string - User time zone
|
743
|
-
# user_root - string - Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set.
|
752
|
+
# 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.
|
753
|
+
# user_home - string - Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
|
744
754
|
# username - string - User's username
|
745
755
|
def update(params = {})
|
746
756
|
params ||= {}
|
@@ -772,6 +782,7 @@ module Files
|
|
772
782
|
raise InvalidParameterError.new("Bad parameter: require_2fa must be an String") if params[:require_2fa] and !params[:require_2fa].is_a?(String)
|
773
783
|
raise InvalidParameterError.new("Bad parameter: time_zone must be an String") if params[:time_zone] and !params[:time_zone].is_a?(String)
|
774
784
|
raise InvalidParameterError.new("Bad parameter: user_root must be an String") if params[:user_root] and !params[:user_root].is_a?(String)
|
785
|
+
raise InvalidParameterError.new("Bad parameter: user_home must be an String") if params[:user_home] and !params[:user_home].is_a?(String)
|
775
786
|
raise InvalidParameterError.new("Bad parameter: username must be an String") if params[:username] and !params[:username].is_a?(String)
|
776
787
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
777
788
|
|
@@ -899,7 +910,8 @@ module Files
|
|
899
910
|
# subscribe_to_newsletter - boolean - Is the user subscribed to the newsletter?
|
900
911
|
# require_2fa - string - 2FA required setting
|
901
912
|
# time_zone - string - User time zone
|
902
|
-
# user_root - string - Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set.
|
913
|
+
# 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.
|
914
|
+
# user_home - string - Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
|
903
915
|
# username (required) - string - User's username
|
904
916
|
def self.create(params = {}, options = {})
|
905
917
|
raise InvalidParameterError.new("Bad parameter: change_password must be an String") if params[:change_password] and !params[:change_password].is_a?(String)
|
@@ -927,6 +939,7 @@ module Files
|
|
927
939
|
raise InvalidParameterError.new("Bad parameter: require_2fa must be an String") if params[:require_2fa] and !params[:require_2fa].is_a?(String)
|
928
940
|
raise InvalidParameterError.new("Bad parameter: time_zone must be an String") if params[:time_zone] and !params[:time_zone].is_a?(String)
|
929
941
|
raise InvalidParameterError.new("Bad parameter: user_root must be an String") if params[:user_root] and !params[:user_root].is_a?(String)
|
942
|
+
raise InvalidParameterError.new("Bad parameter: user_home must be an String") if params[:user_home] and !params[:user_home].is_a?(String)
|
930
943
|
raise InvalidParameterError.new("Bad parameter: username must be an String") if params[:username] and !params[:username].is_a?(String)
|
931
944
|
raise MissingParameterError.new("Parameter missing: username") unless params[:username]
|
932
945
|
|
@@ -1012,7 +1025,8 @@ module Files
|
|
1012
1025
|
# subscribe_to_newsletter - boolean - Is the user subscribed to the newsletter?
|
1013
1026
|
# require_2fa - string - 2FA required setting
|
1014
1027
|
# time_zone - string - User time zone
|
1015
|
-
# user_root - string - Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set.
|
1028
|
+
# 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.
|
1029
|
+
# user_home - string - Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
|
1016
1030
|
# username - string - User's username
|
1017
1031
|
def self.update(id, params = {}, options = {})
|
1018
1032
|
params ||= {}
|
@@ -1043,6 +1057,7 @@ module Files
|
|
1043
1057
|
raise InvalidParameterError.new("Bad parameter: require_2fa must be an String") if params[:require_2fa] and !params[:require_2fa].is_a?(String)
|
1044
1058
|
raise InvalidParameterError.new("Bad parameter: time_zone must be an String") if params[:time_zone] and !params[:time_zone].is_a?(String)
|
1045
1059
|
raise InvalidParameterError.new("Bad parameter: user_root must be an String") if params[:user_root] and !params[:user_root].is_a?(String)
|
1060
|
+
raise InvalidParameterError.new("Bad parameter: user_home must be an String") if params[:user_home] and !params[:user_home].is_a?(String)
|
1046
1061
|
raise InvalidParameterError.new("Bad parameter: username must be an String") if params[:username] and !params[:username].is_a?(String)
|
1047
1062
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
1048
1063
|
|
data/lib/files.com/version.rb
CHANGED
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.1.
|
4
|
+
version: 1.1.142
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-09-
|
11
|
+
date: 2024-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|