files.com 1.0.214 → 1.0.218
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/external_event.md +1 -1
- data/docs/site.md +17 -0
- data/lib/files.com/models/external_event.rb +1 -1
- data/lib/files.com/models/site.rb +25 -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: 7dc12025aafa302829b6a20732239036c7592f735ccc2ee7eab06c806d60a6c7
|
4
|
+
data.tar.gz: c333474a157e59d1fbefa02bec5deaccbb5330a706ad5e233202402c6c932487
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9527d182e3fab45a495d4c0594e5ea05426c3ad2b12ef1a224020c048b05ea9f7665805f1cb0aab13d8e8a77bfdbd151941ce98dc9b70eef93d99d89f2523691
|
7
|
+
data.tar.gz: 711764af7326a13e21d50ed05af0e10d9e3b7700e72f61b3788657a0f52634b536d07247709d0155c6c3a989f6f7d6f58bd38f6b9e5e33bcb009277b0392a7df
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.218
|
data/docs/external_event.md
CHANGED
@@ -45,7 +45,7 @@ Files::ExternalEvent.list(
|
|
45
45
|
|
46
46
|
* `cursor` (string): Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
|
47
47
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
48
|
-
* `sort_by` (object): If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `remote_server_type`, `
|
48
|
+
* `sort_by` (object): If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `remote_server_type`, `site_id`, `folder_behavior_id`, `event_type`, `created_at` or `status`.
|
49
49
|
* `filter` (object): If set, return records where the specifiied field is equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status` or `folder_behavior_id`.
|
50
50
|
* `filter_gt` (object): If set, return records where the specifiied field is greater than the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status` or `folder_behavior_id`.
|
51
51
|
* `filter_gteq` (object): If set, return records where the specifiied field is greater than or equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status` or `folder_behavior_id`.
|
data/docs/site.md
CHANGED
@@ -17,6 +17,11 @@
|
|
17
17
|
"bundle_expiration": 1,
|
18
18
|
"bundle_password_required": true,
|
19
19
|
"bundle_require_share_recipient": true,
|
20
|
+
"bundle_watermark_attachment": {
|
21
|
+
"name": "My logo",
|
22
|
+
"uri": "https://mysite.files.com/.../my_image.png"
|
23
|
+
},
|
24
|
+
"bundle_watermark_value": "",
|
20
25
|
"color2_left": "#0066a7",
|
21
26
|
"color2_link": "#d34f5d",
|
22
27
|
"color2_text": "#0066a7",
|
@@ -38,6 +43,8 @@
|
|
38
43
|
"disable_notifications": true,
|
39
44
|
"disable_password_reset": true,
|
40
45
|
"domain": "my-custom-domain.com",
|
46
|
+
"domain_hsts_header": true,
|
47
|
+
"domain_letsencrypt_chain": "",
|
41
48
|
"email": "john.doe@files.com",
|
42
49
|
"ftp_enabled": true,
|
43
50
|
"reply_to_email": "jane.doe@files.com",
|
@@ -228,6 +235,8 @@
|
|
228
235
|
* `bundle_expiration` (int64): Site-wide Bundle expiration in days
|
229
236
|
* `bundle_password_required` (boolean): Do Bundles require password protection?
|
230
237
|
* `bundle_require_share_recipient` (boolean): Do Bundles require recipients for sharing?
|
238
|
+
* `bundle_watermark_attachment`: Preview watermark image applied to all bundle items.
|
239
|
+
* `bundle_watermark_value` (object): Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
|
231
240
|
* `color2_left` (string): Page link and button color
|
232
241
|
* `color2_link` (string): Top bar link color
|
233
242
|
* `color2_text` (string): Page link and button color
|
@@ -249,6 +258,8 @@
|
|
249
258
|
* `disable_notifications` (boolean): Are notifications disabled?
|
250
259
|
* `disable_password_reset` (boolean): Is password reset disabled?
|
251
260
|
* `domain` (string): Custom domain
|
261
|
+
* `domain_hsts_header` (boolean): Send HSTS (HTTP Strict Transport Security) header when visitors access the site via a custom domain?
|
262
|
+
* `domain_letsencrypt_chain` (string): Letsencrypt chain to use when registering SSL Certificate for domain.
|
252
263
|
* `email` (email): Main email for this site
|
253
264
|
* `ftp_enabled` (boolean): Is FTP enabled?
|
254
265
|
* `reply_to_email` (email): Reply-to email for this site
|
@@ -366,6 +377,7 @@ Files::Site.update(
|
|
366
377
|
name: "My Site",
|
367
378
|
subdomain: "mysite",
|
368
379
|
domain: "my-custom-domain.com",
|
380
|
+
domain_hsts_header: true,
|
369
381
|
email: "john.doe@files.com",
|
370
382
|
reply_to_email: "jane.doe@files.com",
|
371
383
|
allow_bundle_names: true,
|
@@ -458,6 +470,7 @@ Files::Site.update(
|
|
458
470
|
icon48_delete: true,
|
459
471
|
icon128_delete: true,
|
460
472
|
logo_delete: true,
|
473
|
+
bundle_watermark_attachment_delete: true,
|
461
474
|
disable_2fa_with_delay: true
|
462
475
|
)
|
463
476
|
```
|
@@ -467,6 +480,8 @@ Files::Site.update(
|
|
467
480
|
* `name` (string): Site name
|
468
481
|
* `subdomain` (string): Site subdomain
|
469
482
|
* `domain` (string): Custom domain
|
483
|
+
* `domain_hsts_header` (boolean): Send HSTS (HTTP Strict Transport Security) header when visitors access the site via a custom domain?
|
484
|
+
* `domain_letsencrypt_chain` (string): Letsencrypt chain to use when registering SSL Certificate for domain.
|
470
485
|
* `email` (string): Main email for this site
|
471
486
|
* `reply_to_email` (string): Reply-to email for this site
|
472
487
|
* `allow_bundle_names` (boolean): Are manual Bundle names allowed?
|
@@ -572,6 +587,8 @@ Files::Site.update(
|
|
572
587
|
* `icon128_delete` (boolean): If true, will delete the file stored in icon128
|
573
588
|
* `logo_file` (file):
|
574
589
|
* `logo_delete` (boolean): If true, will delete the file stored in logo
|
590
|
+
* `bundle_watermark_attachment_file` (file):
|
591
|
+
* `bundle_watermark_attachment_delete` (boolean): If true, will delete the file stored in bundle_watermark_attachment
|
575
592
|
* `disable_2fa_with_delay` (boolean): If set to true, we will begin the process of disabling 2FA on this site.
|
576
593
|
* `ldap_password_change` (string): New LDAP password.
|
577
594
|
* `ldap_password_change_confirmation` (string): Confirm new LDAP password.
|
@@ -116,7 +116,7 @@ module Files
|
|
116
116
|
# Parameters:
|
117
117
|
# cursor - string - Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
|
118
118
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
119
|
-
# sort_by - object - If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `remote_server_type`, `
|
119
|
+
# sort_by - object - If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `remote_server_type`, `site_id`, `folder_behavior_id`, `event_type`, `created_at` or `status`.
|
120
120
|
# filter - object - If set, return records where the specifiied field is equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status` or `folder_behavior_id`.
|
121
121
|
# filter_gt - object - If set, return records where the specifiied field is greater than the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status` or `folder_behavior_id`.
|
122
122
|
# filter_gteq - object - If set, return records where the specifiied field is greater than or equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status` or `folder_behavior_id`.
|
@@ -74,6 +74,16 @@ module Files
|
|
74
74
|
@attributes[:bundle_require_share_recipient]
|
75
75
|
end
|
76
76
|
|
77
|
+
# Preview watermark image applied to all bundle items.
|
78
|
+
def bundle_watermark_attachment
|
79
|
+
@attributes[:bundle_watermark_attachment]
|
80
|
+
end
|
81
|
+
|
82
|
+
# object - Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
|
83
|
+
def bundle_watermark_value
|
84
|
+
@attributes[:bundle_watermark_value]
|
85
|
+
end
|
86
|
+
|
77
87
|
# string - Page link and button color
|
78
88
|
def color2_left
|
79
89
|
@attributes[:color2_left]
|
@@ -179,6 +189,16 @@ module Files
|
|
179
189
|
@attributes[:domain]
|
180
190
|
end
|
181
191
|
|
192
|
+
# boolean - Send HSTS (HTTP Strict Transport Security) header when visitors access the site via a custom domain?
|
193
|
+
def domain_hsts_header
|
194
|
+
@attributes[:domain_hsts_header]
|
195
|
+
end
|
196
|
+
|
197
|
+
# string - Letsencrypt chain to use when registering SSL Certificate for domain.
|
198
|
+
def domain_letsencrypt_chain
|
199
|
+
@attributes[:domain_letsencrypt_chain]
|
200
|
+
end
|
201
|
+
|
182
202
|
# email - Main email for this site
|
183
203
|
def email
|
184
204
|
@attributes[:email]
|
@@ -633,6 +653,8 @@ module Files
|
|
633
653
|
# name - string - Site name
|
634
654
|
# subdomain - string - Site subdomain
|
635
655
|
# domain - string - Custom domain
|
656
|
+
# domain_hsts_header - boolean - Send HSTS (HTTP Strict Transport Security) header when visitors access the site via a custom domain?
|
657
|
+
# domain_letsencrypt_chain - string - Letsencrypt chain to use when registering SSL Certificate for domain.
|
636
658
|
# email - string - Main email for this site
|
637
659
|
# reply_to_email - string - Reply-to email for this site
|
638
660
|
# allow_bundle_names - boolean - Are manual Bundle names allowed?
|
@@ -738,6 +760,8 @@ module Files
|
|
738
760
|
# icon128_delete - boolean - If true, will delete the file stored in icon128
|
739
761
|
# logo_file - file
|
740
762
|
# logo_delete - boolean - If true, will delete the file stored in logo
|
763
|
+
# bundle_watermark_attachment_file - file
|
764
|
+
# bundle_watermark_attachment_delete - boolean - If true, will delete the file stored in bundle_watermark_attachment
|
741
765
|
# disable_2fa_with_delay - boolean - If set to true, we will begin the process of disabling 2FA on this site.
|
742
766
|
# ldap_password_change - string - New LDAP password.
|
743
767
|
# ldap_password_change_confirmation - string - Confirm new LDAP password.
|
@@ -746,6 +770,7 @@ module Files
|
|
746
770
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
|
747
771
|
raise InvalidParameterError.new("Bad parameter: subdomain must be an String") if params.dig(:subdomain) and !params.dig(:subdomain).is_a?(String)
|
748
772
|
raise InvalidParameterError.new("Bad parameter: domain must be an String") if params.dig(:domain) and !params.dig(:domain).is_a?(String)
|
773
|
+
raise InvalidParameterError.new("Bad parameter: domain_letsencrypt_chain must be an String") if params.dig(:domain_letsencrypt_chain) and !params.dig(:domain_letsencrypt_chain).is_a?(String)
|
749
774
|
raise InvalidParameterError.new("Bad parameter: email must be an String") if params.dig(:email) and !params.dig(:email).is_a?(String)
|
750
775
|
raise InvalidParameterError.new("Bad parameter: reply_to_email must be an String") if params.dig(:reply_to_email) and !params.dig(:reply_to_email).is_a?(String)
|
751
776
|
raise InvalidParameterError.new("Bad parameter: bundle_expiration must be an Integer") if params.dig(:bundle_expiration) and !params.dig(:bundle_expiration).is_a?(Integer)
|
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.218
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|