files.com 1.0.284 → 1.0.287

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8fd4eab3efb137ddb0e2b4c597055334da75039bc7582ac286da5643de0512a0
4
- data.tar.gz: 9f088873cf535eabdd03d60f5c4cc3cd7a80cf508f4ad83d66f5fe23cc2023d6
3
+ metadata.gz: 7fc794fa8532732f84881e49464349d476e315ebfbaabad293f380da854d1640
4
+ data.tar.gz: 3d13d872cfe46807bc9abe14488112f1a229e7378093e3da8d339088ca7d3cd4
5
5
  SHA512:
6
- metadata.gz: c1eb7ad577d5dc730be8a1f105c1a2f54b40aa4ea115f6103c95e6807aa93af7120a07f5732e52c53574fa605c0ff82df50131e026a4266d8f326228b190bfdf
7
- data.tar.gz: af161e7e54102acf16115dce51e744c1372f0a1cdd183b83f8b54b28bb0bc4448f4e9fe05d99c350f797a613434da2790d1aed9306a910c1f1231a2c9884db22
6
+ metadata.gz: bab263eb0c32c14acdcdc7440d78ec1e2f4dc1c80a072b6a31bf9dbb27b6cff32305985b8b6d400804939decc20a3242d7a745fe80a51783f4844b6d9a32ec7f
7
+ data.tar.gz: a15636c825937fc2d0390f510969a9a230507e6acb742f5d6deab8ae6625c8c856bea1709a3aaff2f230979e0094e0e4256ffecb622c3e064917d5ba2a602070
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.284
1
+ 1.0.287
data/docs/automation.md CHANGED
@@ -43,9 +43,11 @@
43
43
  ],
44
44
  "webhook_url": "https://app.files.com/api/webhooks/abc123",
45
45
  "trigger_actions": [
46
- "[ \"create\" ]"
46
+ "create"
47
47
  ],
48
- "value": "{\"limit\": \"1\"}"
48
+ "value": {
49
+ "limit": "1"
50
+ }
49
51
  }
50
52
  ```
51
53
 
@@ -127,8 +129,8 @@ Files::Automation.create(
127
129
  schedule: "{\"days_of_week\": [ 0, 1, 3 ], \"times_of_day\": [ \"7:30\", \"11:30\" ], \"time_zone\": \"Eastern Time (US & Canada)\"}",
128
130
  disabled: true,
129
131
  trigger: "realtime",
130
- trigger_actions: ["[ \"create\" ]"],
131
- value: "{\"limit\": \"1\"}",
132
+ trigger_actions: ["create"],
133
+ value: {"limit":"1"},
132
134
  automation: "create_folder"
133
135
  )
134
136
  ```
@@ -168,8 +170,8 @@ Files::Automation.update(id,
168
170
  schedule: "{\"days_of_week\": [ 0, 1, 3 ], \"times_of_day\": [ \"7:30\", \"11:30\" ], \"time_zone\": \"Eastern Time (US & Canada)\"}",
169
171
  disabled: true,
170
172
  trigger: "realtime",
171
- trigger_actions: ["[ \"create\" ]"],
172
- value: "{\"limit\": \"1\"}",
173
+ trigger_actions: ["create"],
174
+ value: {"limit":"1"},
173
175
  automation: "create_folder"
174
176
  )
175
177
  ```
@@ -225,8 +227,8 @@ automation.update(
225
227
  schedule: "{\"days_of_week\": [ 0, 1, 3 ], \"times_of_day\": [ \"7:30\", \"11:30\" ], \"time_zone\": \"Eastern Time (US & Canada)\"}",
226
228
  disabled: true,
227
229
  trigger: "realtime",
228
- trigger_actions: ["[ \"create\" ]"],
229
- value: "{\"limit\": \"1\"}",
230
+ trigger_actions: ["create"],
231
+ value: {"limit":"1"},
230
232
  automation: "create_folder"
231
233
  )
232
234
  ```
data/docs/site.md CHANGED
@@ -562,6 +562,7 @@ Files::Site.update(
562
562
  * `user_requests_notify_admins` (boolean): Send email to site admins when a user request is received?
563
563
  * `ftp_enabled` (boolean): Is FTP enabled?
564
564
  * `sftp_enabled` (boolean): Is SFTP enabled?
565
+ * `bundle_watermark_value` (object): Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
565
566
  * `allowed_2fa_method_sms` (boolean): Is SMS two factor authentication allowed?
566
567
  * `allowed_2fa_method_u2f` (boolean): Is U2F two factor authentication allowed?
567
568
  * `allowed_2fa_method_totp` (boolean): Is TOTP two factor authentication allowed?
@@ -14,9 +14,7 @@
14
14
  "deleted_files_storage": "65536",
15
15
  "deleted_files_counted_in_minimum": "65536",
16
16
  "root_storage": "65536",
17
- "usage_by_top_level_dir": [
18
- ""
19
- ]
17
+ "usage_by_top_level_dir": ""
20
18
  }
21
19
  ```
22
20
 
@@ -30,7 +28,7 @@
30
28
  * `deleted_files_storage` (int64): GB of Files Native Storage used on this day for files that have been deleted and are stored as backups.
31
29
  * `deleted_files_counted_in_minimum` (int64): GB of Files Native Storage used on this day for files that have been permanently deleted but were uploaded less than 30 days ago, and are still billable.
32
30
  * `root_storage` (int64): GB of Files Native Storage used for the root folder. Included here because this value will not be part of `usage_by_top_level_dir`
33
- * `usage_by_top_level_dir` (array): Usage broken down by each top-level folder
31
+ * `usage_by_top_level_dir` (object): Usage broken down by each top-level folder
34
32
 
35
33
 
36
34
  ---
@@ -197,6 +197,7 @@ module Files
197
197
  class TooManyConcurrentRequestsError < RateLimitedError; end
198
198
  class TooManyLoginAttemptsError < RateLimitedError; end
199
199
  class TooManyRequestsError < RateLimitedError; end
200
+ class TooManySharesError < RateLimitedError; end
200
201
 
201
202
  class ServiceUnavailableError < APIError; end
202
203
  class UploadsUnavailableError < ServiceUnavailableError; end
@@ -743,6 +743,7 @@ module Files
743
743
  # user_requests_notify_admins - boolean - Send email to site admins when a user request is received?
744
744
  # ftp_enabled - boolean - Is FTP enabled?
745
745
  # sftp_enabled - boolean - Is SFTP enabled?
746
+ # bundle_watermark_value - object - Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
746
747
  # allowed_2fa_method_sms - boolean - Is SMS two factor authentication allowed?
747
748
  # allowed_2fa_method_u2f - boolean - Is U2F two factor authentication allowed?
748
749
  # allowed_2fa_method_totp - boolean - Is TOTP two factor authentication allowed?
@@ -824,6 +825,7 @@ module Files
824
825
  raise InvalidParameterError.new("Bad parameter: password_validity_days must be an Integer") if params.dig(:password_validity_days) and !params.dig(:password_validity_days).is_a?(Integer)
825
826
  raise InvalidParameterError.new("Bad parameter: password_min_length must be an Integer") if params.dig(:password_min_length) and !params.dig(:password_min_length).is_a?(Integer)
826
827
  raise InvalidParameterError.new("Bad parameter: disable_users_from_inactivity_period_days must be an Integer") if params.dig(:disable_users_from_inactivity_period_days) and !params.dig(:disable_users_from_inactivity_period_days).is_a?(Integer)
828
+ raise InvalidParameterError.new("Bad parameter: bundle_watermark_value must be an Hash") if params.dig(:bundle_watermark_value) and !params.dig(:bundle_watermark_value).is_a?(Hash)
827
829
  raise InvalidParameterError.new("Bad parameter: require_2fa_user_type must be an String") if params.dig(:require_2fa_user_type) and !params.dig(:require_2fa_user_type).is_a?(String)
828
830
  raise InvalidParameterError.new("Bad parameter: color2_top must be an String") if params.dig(:color2_top) and !params.dig(:color2_top).is_a?(String)
829
831
  raise InvalidParameterError.new("Bad parameter: color2_left must be an String") if params.dig(:color2_left) and !params.dig(:color2_left).is_a?(String)
@@ -59,7 +59,7 @@ module Files
59
59
  @attributes[:root_storage]
60
60
  end
61
61
 
62
- # array - Usage broken down by each top-level folder
62
+ # object - Usage broken down by each top-level folder
63
63
  def usage_by_top_level_dir
64
64
  @attributes[:usage_by_top_level_dir]
65
65
  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.284
4
+ version: 1.0.287
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-08-12 00:00:00.000000000 Z
11
+ date: 2022-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable