files.com 1.0.370 → 1.0.372
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/bundle.md +4 -0
- data/docs/public_key.md +5 -2
- data/docs/site.md +4 -0
- data/docs/user.md +6 -0
- data/lib/files.com/models/bundle.rb +11 -0
- data/lib/files.com/models/public_key.rb +10 -1
- data/lib/files.com/models/site.rb +6 -0
- data/lib/files.com/models/user.rb +6 -0
- 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: 348826686f4e73d70963833b1e3028a242e17e18690d57304f5b7f8b2ee0099a
|
4
|
+
data.tar.gz: 8594fcade4dc973eafc86b3fad2a2dd0d5b592fc86f46ab83b4bf033719362d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03ba9d1da03c5700234edc01ad53cf77a07b4028822686a9da8747156dd325fbf14f5be7fb57b42be74ea94550ceef083e83472f555d7aafdb9bedc7d2089f3a
|
7
|
+
data.tar.gz: 50f8633cb517ed43121d2921fc5d2adc4ff7fff6b9e064f7d95638a6aaf431507c5d09271af524a885ad8e087827bcc5fa07def2b4a162e40b2ba0b14a41ab58
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.372
|
data/docs/bundle.md
CHANGED
@@ -38,6 +38,7 @@
|
|
38
38
|
},
|
39
39
|
"skip_name": true,
|
40
40
|
"skip_email": true,
|
41
|
+
"start_access_on_date": "2000-01-01T01:00:00Z",
|
41
42
|
"skip_company": true,
|
42
43
|
"id": 1,
|
43
44
|
"created_at": "2000-01-01T01:00:00Z",
|
@@ -81,6 +82,7 @@
|
|
81
82
|
* `form_field_set` (FormFieldSet): Custom Form to use
|
82
83
|
* `skip_name` (boolean): BundleRegistrations can be saved without providing name?
|
83
84
|
* `skip_email` (boolean): BundleRegistrations can be saved without providing email?
|
85
|
+
* `start_access_on_date` (date-time): Date when share will start to be accessible. If `nil` access granted right after create.
|
84
86
|
* `skip_company` (boolean): BundleRegistrations can be saved without providing company?
|
85
87
|
* `id` (int64): Bundle ID
|
86
88
|
* `created_at` (date-time): Bundle created at date/time
|
@@ -172,6 +174,7 @@ Files::Bundle.create(
|
|
172
174
|
skip_email: true,
|
173
175
|
skip_name: true,
|
174
176
|
skip_company: true,
|
177
|
+
start_access_on_date: "2000-01-01T01:00:00Z",
|
175
178
|
snapshot_id: 1
|
176
179
|
)
|
177
180
|
```
|
@@ -201,6 +204,7 @@ Files::Bundle.create(
|
|
201
204
|
* `skip_email` (boolean): BundleRegistrations can be saved without providing email?
|
202
205
|
* `skip_name` (boolean): BundleRegistrations can be saved without providing name?
|
203
206
|
* `skip_company` (boolean): BundleRegistrations can be saved without providing company?
|
207
|
+
* `start_access_on_date` (string): Date when share will start to be accessible. If `nil` access granted right after create.
|
204
208
|
* `snapshot_id` (int64): ID of the snapshot containing this bundle's contents.
|
205
209
|
* `watermark_attachment_file` (file): Preview watermark image applied to all bundle items.
|
206
210
|
|
data/docs/public_key.md
CHANGED
@@ -7,7 +7,9 @@
|
|
7
7
|
"id": 1,
|
8
8
|
"title": "My public key",
|
9
9
|
"created_at": "2000-01-01T01:00:00Z",
|
10
|
-
"fingerprint": "43:51:43:a1:b5:fc:8b:b7:0a:3a:a9:b1:0f:66:73:a8"
|
10
|
+
"fingerprint": "43:51:43:a1:b5:fc:8b:b7:0a:3a:a9:b1:0f:66:73:a8",
|
11
|
+
"username": "User",
|
12
|
+
"user_id": 1
|
11
13
|
}
|
12
14
|
```
|
13
15
|
|
@@ -15,7 +17,8 @@
|
|
15
17
|
* `title` (string): Public key title
|
16
18
|
* `created_at` (date-time): Public key created at date/time
|
17
19
|
* `fingerprint` (string): Public key fingerprint
|
18
|
-
* `
|
20
|
+
* `username` (string): Username of the user this public key is associated with
|
21
|
+
* `user_id` (int64): User ID this public key is associated with
|
19
22
|
* `public_key` (string): Actual contents of SSH key.
|
20
23
|
|
21
24
|
|
data/docs/site.md
CHANGED
@@ -20,6 +20,7 @@
|
|
20
20
|
"bundle_expiration": 1,
|
21
21
|
"bundle_password_required": true,
|
22
22
|
"bundle_registration_notifications": "never",
|
23
|
+
"bundle_require_registration": true,
|
23
24
|
"bundle_require_share_recipient": true,
|
24
25
|
"bundle_upload_receipt_notifications": "never",
|
25
26
|
"bundle_watermark_attachment": null,
|
@@ -237,6 +238,7 @@
|
|
237
238
|
* `bundle_expiration` (int64): Site-wide Bundle expiration in days
|
238
239
|
* `bundle_password_required` (boolean): Do Bundles require password protection?
|
239
240
|
* `bundle_registration_notifications` (string): Do Bundle owners receive registration notification?
|
241
|
+
* `bundle_require_registration` (boolean): Do Bundles require registration?
|
240
242
|
* `bundle_require_share_recipient` (boolean): Do Bundles require recipients for sharing?
|
241
243
|
* `bundle_upload_receipt_notifications` (string): Do Bundle uploaders receive upload confirmation notifications?
|
242
244
|
* `bundle_watermark_attachment` (Image): Preview watermark image applied to all bundle items.
|
@@ -451,6 +453,7 @@ Files::Site.update(
|
|
451
453
|
immutable_files: true,
|
452
454
|
session_pinned_by_ip: true,
|
453
455
|
bundle_password_required: true,
|
456
|
+
bundle_require_registration: true,
|
454
457
|
bundle_require_share_recipient: true,
|
455
458
|
bundle_registration_notifications: "never",
|
456
459
|
bundle_activity_notifications: "never",
|
@@ -583,6 +586,7 @@ Files::Site.update(
|
|
583
586
|
* `immutable_files` (boolean): Are files protected from modification?
|
584
587
|
* `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?)
|
585
588
|
* `bundle_password_required` (boolean): Do Bundles require password protection?
|
589
|
+
* `bundle_require_registration` (boolean): Do Bundles require registration?
|
586
590
|
* `bundle_require_share_recipient` (boolean): Do Bundles require recipients for sharing?
|
587
591
|
* `bundle_registration_notifications` (string): Do Bundle owners receive registration notification?
|
588
592
|
* `bundle_activity_notifications` (string): Do Bundle owners receive activity notifications?
|
data/docs/user.md
CHANGED
@@ -216,6 +216,7 @@ Files::User.create(
|
|
216
216
|
office_integration_enabled: true,
|
217
217
|
password_validity_days: 1,
|
218
218
|
receive_admin_alerts: true,
|
219
|
+
require_login_by: "2000-01-01T01:00:00Z",
|
219
220
|
require_password_change: true,
|
220
221
|
restapi_permission: true,
|
221
222
|
self_managed: true,
|
@@ -265,6 +266,7 @@ Files::User.create(
|
|
265
266
|
* `office_integration_enabled` (boolean): Enable integration with Office for the web?
|
266
267
|
* `password_validity_days` (int64): Number of days to allow user to use the same password
|
267
268
|
* `receive_admin_alerts` (boolean): Should the user receive admin alerts such a certificate expiration notifications and overages?
|
269
|
+
* `require_login_by` (string): Require user to login by specified date otherwise it will be disabled.
|
268
270
|
* `require_password_change` (boolean): Is a password change required upon next user login?
|
269
271
|
* `restapi_permission` (boolean): Can this user access the REST API?
|
270
272
|
* `self_managed` (boolean): Does this user manage it's own credentials or is it a shared/bot user?
|
@@ -349,6 +351,7 @@ Files::User.update(id,
|
|
349
351
|
office_integration_enabled: true,
|
350
352
|
password_validity_days: 1,
|
351
353
|
receive_admin_alerts: true,
|
354
|
+
require_login_by: "2000-01-01T01:00:00Z",
|
352
355
|
require_password_change: true,
|
353
356
|
restapi_permission: true,
|
354
357
|
self_managed: true,
|
@@ -399,6 +402,7 @@ Files::User.update(id,
|
|
399
402
|
* `office_integration_enabled` (boolean): Enable integration with Office for the web?
|
400
403
|
* `password_validity_days` (int64): Number of days to allow user to use the same password
|
401
404
|
* `receive_admin_alerts` (boolean): Should the user receive admin alerts such a certificate expiration notifications and overages?
|
405
|
+
* `require_login_by` (string): Require user to login by specified date otherwise it will be disabled.
|
402
406
|
* `require_password_change` (boolean): Is a password change required upon next user login?
|
403
407
|
* `restapi_permission` (boolean): Can this user access the REST API?
|
404
408
|
* `self_managed` (boolean): Does this user manage it's own credentials or is it a shared/bot user?
|
@@ -504,6 +508,7 @@ user.update(
|
|
504
508
|
office_integration_enabled: true,
|
505
509
|
password_validity_days: 1,
|
506
510
|
receive_admin_alerts: true,
|
511
|
+
require_login_by: "2000-01-01T01:00:00Z",
|
507
512
|
require_password_change: true,
|
508
513
|
restapi_permission: true,
|
509
514
|
self_managed: true,
|
@@ -554,6 +559,7 @@ user.update(
|
|
554
559
|
* `office_integration_enabled` (boolean): Enable integration with Office for the web?
|
555
560
|
* `password_validity_days` (int64): Number of days to allow user to use the same password
|
556
561
|
* `receive_admin_alerts` (boolean): Should the user receive admin alerts such a certificate expiration notifications and overages?
|
562
|
+
* `require_login_by` (string): Require user to login by specified date otherwise it will be disabled.
|
557
563
|
* `require_password_change` (boolean): Is a password change required upon next user login?
|
558
564
|
* `restapi_permission` (boolean): Can this user access the REST API?
|
559
565
|
* `self_managed` (boolean): Does this user manage it's own credentials or is it a shared/bot user?
|
@@ -180,6 +180,15 @@ module Files
|
|
180
180
|
@attributes[:skip_email] = value
|
181
181
|
end
|
182
182
|
|
183
|
+
# date-time - Date when share will start to be accessible. If `nil` access granted right after create.
|
184
|
+
def start_access_on_date
|
185
|
+
@attributes[:start_access_on_date]
|
186
|
+
end
|
187
|
+
|
188
|
+
def start_access_on_date=(value)
|
189
|
+
@attributes[:start_access_on_date] = value
|
190
|
+
end
|
191
|
+
|
183
192
|
# boolean - BundleRegistrations can be saved without providing company?
|
184
193
|
def skip_company
|
185
194
|
@attributes[:skip_company]
|
@@ -542,6 +551,7 @@ module Files
|
|
542
551
|
# skip_email - boolean - BundleRegistrations can be saved without providing email?
|
543
552
|
# skip_name - boolean - BundleRegistrations can be saved without providing name?
|
544
553
|
# skip_company - boolean - BundleRegistrations can be saved without providing company?
|
554
|
+
# start_access_on_date - string - Date when share will start to be accessible. If `nil` access granted right after create.
|
545
555
|
# snapshot_id - int64 - ID of the snapshot containing this bundle's contents.
|
546
556
|
# watermark_attachment_file - file - Preview watermark image applied to all bundle items.
|
547
557
|
def self.create(params = {}, options = {})
|
@@ -558,6 +568,7 @@ module Files
|
|
558
568
|
raise InvalidParameterError.new("Bad parameter: permissions must be an String") if params[:permissions] and !params[:permissions].is_a?(String)
|
559
569
|
raise InvalidParameterError.new("Bad parameter: clickwrap_id must be an Integer") if params[:clickwrap_id] and !params[:clickwrap_id].is_a?(Integer)
|
560
570
|
raise InvalidParameterError.new("Bad parameter: inbox_id must be an Integer") if params[:inbox_id] and !params[:inbox_id].is_a?(Integer)
|
571
|
+
raise InvalidParameterError.new("Bad parameter: start_access_on_date must be an String") if params[:start_access_on_date] and !params[:start_access_on_date].is_a?(String)
|
561
572
|
raise InvalidParameterError.new("Bad parameter: snapshot_id must be an Integer") if params[:snapshot_id] and !params[:snapshot_id].is_a?(Integer)
|
562
573
|
raise MissingParameterError.new("Parameter missing: paths") unless params[:paths]
|
563
574
|
|
@@ -41,7 +41,16 @@ module Files
|
|
41
41
|
@attributes[:fingerprint] = value
|
42
42
|
end
|
43
43
|
|
44
|
-
#
|
44
|
+
# string - Username of the user this public key is associated with
|
45
|
+
def username
|
46
|
+
@attributes[:username]
|
47
|
+
end
|
48
|
+
|
49
|
+
def username=(value)
|
50
|
+
@attributes[:username] = value
|
51
|
+
end
|
52
|
+
|
53
|
+
# int64 - User ID this public key is associated with
|
45
54
|
def user_id
|
46
55
|
@attributes[:user_id]
|
47
56
|
end
|
@@ -89,6 +89,11 @@ module Files
|
|
89
89
|
@attributes[:bundle_registration_notifications]
|
90
90
|
end
|
91
91
|
|
92
|
+
# boolean - Do Bundles require registration?
|
93
|
+
def bundle_require_registration
|
94
|
+
@attributes[:bundle_require_registration]
|
95
|
+
end
|
96
|
+
|
92
97
|
# boolean - Do Bundles require recipients for sharing?
|
93
98
|
def bundle_require_share_recipient
|
94
99
|
@attributes[:bundle_require_share_recipient]
|
@@ -800,6 +805,7 @@ module Files
|
|
800
805
|
# immutable_files - boolean - Are files protected from modification?
|
801
806
|
# 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?)
|
802
807
|
# bundle_password_required - boolean - Do Bundles require password protection?
|
808
|
+
# bundle_require_registration - boolean - Do Bundles require registration?
|
803
809
|
# bundle_require_share_recipient - boolean - Do Bundles require recipients for sharing?
|
804
810
|
# bundle_registration_notifications - string - Do Bundle owners receive registration notification?
|
805
811
|
# bundle_activity_notifications - string - Do Bundle owners receive activity notifications?
|
@@ -700,6 +700,7 @@ module Files
|
|
700
700
|
# office_integration_enabled - boolean - Enable integration with Office for the web?
|
701
701
|
# password_validity_days - int64 - Number of days to allow user to use the same password
|
702
702
|
# receive_admin_alerts - boolean - Should the user receive admin alerts such a certificate expiration notifications and overages?
|
703
|
+
# require_login_by - string - Require user to login by specified date otherwise it will be disabled.
|
703
704
|
# require_password_change - boolean - Is a password change required upon next user login?
|
704
705
|
# restapi_permission - boolean - Can this user access the REST API?
|
705
706
|
# self_managed - boolean - Does this user manage it's own credentials or is it a shared/bot user?
|
@@ -737,6 +738,7 @@ module Files
|
|
737
738
|
raise InvalidParameterError.new("Bad parameter: company must be an String") if params[:company] and !params[:company].is_a?(String)
|
738
739
|
raise InvalidParameterError.new("Bad parameter: notes must be an String") if params[:notes] and !params[:notes].is_a?(String)
|
739
740
|
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)
|
741
|
+
raise InvalidParameterError.new("Bad parameter: require_login_by must be an String") if params[:require_login_by] and !params[:require_login_by].is_a?(String)
|
740
742
|
raise InvalidParameterError.new("Bad parameter: ssl_required must be an String") if params[:ssl_required] and !params[:ssl_required].is_a?(String)
|
741
743
|
raise InvalidParameterError.new("Bad parameter: sso_strategy_id must be an Integer") if params[:sso_strategy_id] and !params[:sso_strategy_id].is_a?(Integer)
|
742
744
|
raise InvalidParameterError.new("Bad parameter: require_2fa must be an String") if params[:require_2fa] and !params[:require_2fa].is_a?(String)
|
@@ -860,6 +862,7 @@ module Files
|
|
860
862
|
# office_integration_enabled - boolean - Enable integration with Office for the web?
|
861
863
|
# password_validity_days - int64 - Number of days to allow user to use the same password
|
862
864
|
# receive_admin_alerts - boolean - Should the user receive admin alerts such a certificate expiration notifications and overages?
|
865
|
+
# require_login_by - string - Require user to login by specified date otherwise it will be disabled.
|
863
866
|
# require_password_change - boolean - Is a password change required upon next user login?
|
864
867
|
# restapi_permission - boolean - Can this user access the REST API?
|
865
868
|
# self_managed - boolean - Does this user manage it's own credentials or is it a shared/bot user?
|
@@ -893,6 +896,7 @@ module Files
|
|
893
896
|
raise InvalidParameterError.new("Bad parameter: company must be an String") if params[:company] and !params[:company].is_a?(String)
|
894
897
|
raise InvalidParameterError.new("Bad parameter: notes must be an String") if params[:notes] and !params[:notes].is_a?(String)
|
895
898
|
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)
|
899
|
+
raise InvalidParameterError.new("Bad parameter: require_login_by must be an String") if params[:require_login_by] and !params[:require_login_by].is_a?(String)
|
896
900
|
raise InvalidParameterError.new("Bad parameter: ssl_required must be an String") if params[:ssl_required] and !params[:ssl_required].is_a?(String)
|
897
901
|
raise InvalidParameterError.new("Bad parameter: sso_strategy_id must be an Integer") if params[:sso_strategy_id] and !params[:sso_strategy_id].is_a?(Integer)
|
898
902
|
raise InvalidParameterError.new("Bad parameter: require_2fa must be an String") if params[:require_2fa] and !params[:require_2fa].is_a?(String)
|
@@ -969,6 +973,7 @@ module Files
|
|
969
973
|
# office_integration_enabled - boolean - Enable integration with Office for the web?
|
970
974
|
# password_validity_days - int64 - Number of days to allow user to use the same password
|
971
975
|
# receive_admin_alerts - boolean - Should the user receive admin alerts such a certificate expiration notifications and overages?
|
976
|
+
# require_login_by - string - Require user to login by specified date otherwise it will be disabled.
|
972
977
|
# require_password_change - boolean - Is a password change required upon next user login?
|
973
978
|
# restapi_permission - boolean - Can this user access the REST API?
|
974
979
|
# self_managed - boolean - Does this user manage it's own credentials or is it a shared/bot user?
|
@@ -1005,6 +1010,7 @@ module Files
|
|
1005
1010
|
raise InvalidParameterError.new("Bad parameter: company must be an String") if params[:company] and !params[:company].is_a?(String)
|
1006
1011
|
raise InvalidParameterError.new("Bad parameter: notes must be an String") if params[:notes] and !params[:notes].is_a?(String)
|
1007
1012
|
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)
|
1013
|
+
raise InvalidParameterError.new("Bad parameter: require_login_by must be an String") if params[:require_login_by] and !params[:require_login_by].is_a?(String)
|
1008
1014
|
raise InvalidParameterError.new("Bad parameter: ssl_required must be an String") if params[:ssl_required] and !params[:ssl_required].is_a?(String)
|
1009
1015
|
raise InvalidParameterError.new("Bad parameter: sso_strategy_id must be an Integer") if params[:sso_strategy_id] and !params[:sso_strategy_id].is_a?(Integer)
|
1010
1016
|
raise InvalidParameterError.new("Bad parameter: require_2fa must be an String") if params[:require_2fa] and !params[:require_2fa].is_a?(String)
|
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.372
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|