files.com 1.1.146 → 1.1.148

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: d9962a456febacc4404f95b369aee63c7a4dee7a2f832b092413b99665dc7428
4
- data.tar.gz: f49b782f9f1c1448a2749514d77960d5d78064f7ada3bb75268b3553fdc4ad7b
3
+ metadata.gz: 01b556c1e4110c4fe2f19c4eb3cc837666d96b8bf9aa5dfab43134f84a195396
4
+ data.tar.gz: 39fad710efe27bdce3e25c9912d9555da07169fa183610c23ed50abad7f46733
5
5
  SHA512:
6
- metadata.gz: 13d6fd66729774563e14559167c24e3250cdc86bb5e7d8742c6d1f8d3385790e4695acd587db035e4c2fb8bb6b0ad8a77ed0d1b9650baa5376d9df81aa6ef321
7
- data.tar.gz: 878ffd35cd027836d9de453e684d9dbb1ee494e53aa06d5357d686ccf1e1864e0cdce320dc205118029af52ece1e05cab09eb27e3c5785a250e127766b4a5649
6
+ metadata.gz: 00047fb734bcfd0311b8e7fb14876490f4535515c0161b600f7702673c72cfd606d1287b274b75a820efb9650605ed456782b3a1222d6add89cdce62e6387f2f
7
+ data.tar.gz: 50374ba0bb21964bd0507c05a8ef9415864eae085f0c1f976583ef6e641ae6da83532143ff041293c870dc070f4cee48cadfe494bfae79ffa39c18d03efeb06a
data/README.md CHANGED
@@ -194,45 +194,18 @@ Files.max_network_retries = 5
194
194
 
195
195
  ## Sort and Filter
196
196
 
197
- Several of the Files.com API resources have list operations that return multiple instances of the resource. The List operations
198
- can be sorted and filtered.
197
+ Several of the Files.com API resources have list operations that return multiple instances of the
198
+ resource. The List operations can be sorted and filtered.
199
199
 
200
200
  ### Sorting
201
201
 
202
- The returned data can be sorted by passing in the ```sort_by``` method argument.
202
+ To sort the returned data, pass in the ```sort_by``` method argument.
203
203
 
204
- The argument value is a Ruby hash that has a key of the resource field name to sort on and a value of either ```"asc"``` or ```"desc"``` to specify the sort order.
204
+ Each resource supports a unique set of valid sort fields and can only be sorted by one field at a
205
+ time.
205
206
 
206
- Each resource has a set of valid fields for sorting and can be sorted by one field at a time.
207
-
208
- ### Filters
209
-
210
- Filters apply selection criteria to the underlying query that returns the results. Filters can be applied individually to select resource fields
211
- and/or in a combination with each other. The results of applying filters and filter combinations can be sorted by a single field.
212
-
213
- The passed in argument value is a Ruby hash that has a key of the resource field name to filter on and a passed in value to use in the filter comparison.
214
-
215
- Each resource has their own set of valid filters and fields, valid combinations of filters, and sortable fields.
216
-
217
- #### Types of Filters
218
-
219
- ##### Exact Filter
220
-
221
- `filter` - find resources that have an exact field value match to a passed in value. (i.e., FIELD_VALUE = PASS_IN_VALUE).
222
-
223
- #### Range Filters
224
-
225
- `filter_gt` - find resources that have a field value that is greater than the passed in value. (i.e., FIELD_VALUE > PASS_IN_VALUE).
226
-
227
- `filter_gte` - find resources that have a field value that is greater than or equal to the passed in value. (i.e., FIELD_VALUE >= PASS_IN_VALUE).
228
-
229
- `filter_lt` - find resources that have a field value that is less than the passed in value. (i.e., FIELD_VALUE < PASS_IN_VALUE).
230
-
231
- `filter_lte` - find resources that have a field value that is less than or equal to the passed in value. (i.e., FIELD_VALUE \<= PASS_IN_VALUE).
232
-
233
- ##### Pattern Filter
234
-
235
- `filter_prefix` - find resources where the specified field is prefixed by the supplied value. This is applicable to values that are strings.
207
+ The argument value is a Ruby hash that has a key of the resource field name to sort on and a value
208
+ of either ```"asc"``` or ```"desc"``` to specify the sort order.
236
209
 
237
210
  ```ruby title="Sort Example"
238
211
  ## users sorted by username
@@ -242,35 +215,55 @@ Files::User.list(
242
215
  )
243
216
  ```
244
217
 
218
+ ### Filtering
219
+
220
+ Filters apply selection criteria to the underlying query that returns the results. They can be
221
+ applied individually or combined with other filters, and the resulting data can be sorted by a
222
+ single field.
223
+
224
+ Each resource supports a unique set of valid filter fields, filter combinations, and combinations of
225
+ filters and sort fields.
226
+
227
+ The passed in argument value is a Ruby hash that has a key of the resource field name to filter on
228
+ and a passed in value to use in the filter comparison.
229
+
230
+ #### Filter Types
231
+
232
+ | Filter | Type | Description |
233
+ | --------- | --------- | --------- |
234
+ | `filter` | Exact | Find resources that have an exact field value match to a passed in value. (i.e., FIELD_VALUE = PASS_IN_VALUE). |
235
+ | `filter_prefix` | Pattern | Find resources where the specified field is prefixed by the supplied value. This is applicable to values that are strings. |
236
+ | `filter_gt` | Range | Find resources that have a field value that is greater than the passed in value. (i.e., FIELD_VALUE > PASS_IN_VALUE). |
237
+ | `filter_gteq` | Range | Find resources that have a field value that is greater than or equal to the passed in value. (i.e., FIELD_VALUE >= PASS_IN_VALUE). |
238
+ | `filter_lt` | Range | Find resources that have a field value that is less than the passed in value. (i.e., FIELD_VALUE < PASS_IN_VALUE). |
239
+ | `filter_lteq` | Range | Find resources that have a field value that is less than or equal to the passed in value. (i.e., FIELD_VALUE \<= PASS_IN_VALUE). |
240
+
245
241
  ```ruby title="Exact Filter Example"
246
242
  ## non admin users
247
243
  Files.api_key = 'YOUR_API_KEY'
248
244
  Files::User.list(
249
- filter: { not_site_admin: true },
250
- sort_by: { "username": "asc"}
245
+ filter: { not_site_admin: true }
251
246
  )
252
247
  ```
253
248
 
254
249
  ```ruby title="Range Filter Example"
255
- #users who haven't logged in since 2024-01-01
250
+ ## users who haven't logged in since 2024-01-01
256
251
  Files.api_key = 'YOUR_API_KEY'
257
252
  Files::User.list(
258
- filter_gte: { "last_login_at": "2024-01-01" },
259
- sort_by: { "last_login_at": "asc"}
253
+ filter_gteq: { "last_login_at": "2024-01-01" }
260
254
  )
261
255
  ```
262
256
 
263
257
  ```ruby title="Pattern Filter Example"
264
- ## users who usernames start with 'test'
258
+ ## users whose usernames start with 'test'
265
259
  Files.api_key = 'YOUR_API_KEY'
266
260
  Files::User.list(
267
- filter_pre: { username: "test" },
268
- sort_by: { "username": "asc"}
261
+ filter_pre: { username: "test" }
269
262
  )
270
263
  ```
271
264
 
272
- ```ruby title="Combined Filter Example"
273
- ## users who usernames start with 'test' and are not admins
265
+ ```ruby title="Combination Filter with Sort Example"
266
+ ## users whose usernames start with 'test' and are not admins
274
267
  Files.api_key = 'YOUR_API_KEY'
275
268
  Files::User.list(
276
269
  filter_prefix: { username: "test" },
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.146
1
+ 1.1.148
data/docs/automation.md CHANGED
@@ -104,9 +104,7 @@
104
104
  ## List Automations
105
105
 
106
106
  ```
107
- Files::Automation.list(
108
- with_deleted: true
109
- )
107
+ Files::Automation.list
110
108
  ```
111
109
 
112
110
  ### Parameters
@@ -119,7 +117,6 @@ Files::Automation.list(
119
117
  * `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `last_modified_at`.
120
118
  * `filter_lt` (object): If set, return records where the specified field is less than the supplied value. Valid fields are `last_modified_at`.
121
119
  * `filter_lteq` (object): If set, return records where the specified field is less than or equal the supplied value. Valid fields are `last_modified_at`.
122
- * `with_deleted` (boolean): Set to true to include deleted automations in the results.
123
120
 
124
121
 
125
122
  ---
data/docs/site.md CHANGED
@@ -56,6 +56,7 @@
56
56
  "dav_enabled": true,
57
57
  "dav_user_root_enabled": true,
58
58
  "days_to_retain_backups": 30,
59
+ "document_edits_in_bundle_allowed": "example",
59
60
  "default_time_zone": "Pacific Time (US & Canada)",
60
61
  "desktop_app": true,
61
62
  "desktop_app_session_ip_pinning": true,
@@ -329,6 +330,7 @@
329
330
  * `dav_enabled` (boolean): Is WebDAV enabled?
330
331
  * `dav_user_root_enabled` (boolean): Use user FTP roots also for WebDAV?
331
332
  * `days_to_retain_backups` (int64): Number of days to keep deleted files
333
+ * `document_edits_in_bundle_allowed` (string): If true, allow public viewers of Bundles with full permissions to use document editing integrations.
332
334
  * `default_time_zone` (string): Site default time zone
333
335
  * `desktop_app` (boolean): Is the desktop app enabled?
334
336
  * `desktop_app_session_ip_pinning` (boolean): Is desktop app session IP pinning enabled?
@@ -382,8 +384,8 @@
382
384
  * `motd_use_for_sftp` (boolean): Show message to users connecting via SFTP
383
385
  * `next_billing_amount` (double): Next billing amount
384
386
  * `next_billing_date` (string): Next billing date
385
- * `office_integration_available` (boolean): Allow users to use Office for the web?
386
- * `office_integration_type` (string): Office integration application used to edit and view the MS Office documents
387
+ * `office_integration_available` (boolean): If true, allows users to use a document editing integration.
388
+ * `office_integration_type` (string): Which document editing integration to support. Files.com Editor or Microsoft Office for the Web.
387
389
  * `oncehub_link` (string): Link to scheduling a meeting with our Sales team
388
390
  * `opt_out_global` (boolean): Use servers in the USA only?
389
391
  * `overdue` (boolean): Is this site's billing overdue?
@@ -544,6 +546,7 @@ Files::Site.update(
544
546
  bundle_registration_notifications: "never",
545
547
  bundle_activity_notifications: "never",
546
548
  bundle_upload_receipt_notifications: "never",
549
+ document_edits_in_bundle_allowed: "example",
547
550
  password_requirements_apply_to_bundles: true,
548
551
  prevent_root_permissions_for_non_site_admins: true,
549
552
  opt_out_global: true,
@@ -649,8 +652,8 @@ Files::Site.update(
649
652
  * `mobile_app_session_lifetime` (int64): Mobile app session lifetime (in hours)
650
653
  * `folder_permissions_groups_only` (boolean): If true, permissions for this site must be bound to a group (not a user). Otherwise, permissions must be bound to a user.
651
654
  * `welcome_screen` (string): Does the welcome screen appear?
652
- * `office_integration_available` (boolean): Allow users to use Office for the web?
653
- * `office_integration_type` (string): Office integration application used to edit and view the MS Office documents
655
+ * `office_integration_available` (boolean): If true, allows users to use a document editing integration.
656
+ * `office_integration_type` (string): Which document editing integration to support. Files.com Editor or Microsoft Office for the Web.
654
657
  * `pin_all_remote_servers_to_site_region` (boolean): If true, we will ensure that all internal communications with any remote server are made through the primary region of the site. This setting overrides individual remote server settings.
655
658
  * `motd_text` (string): A message to show users when they connect via FTP or SFTP.
656
659
  * `motd_use_for_ftp` (boolean): Show message to users connecting via FTP
@@ -694,6 +697,7 @@ Files::Site.update(
694
697
  * `bundle_registration_notifications` (string): Do Bundle owners receive registration notification?
695
698
  * `bundle_activity_notifications` (string): Do Bundle owners receive activity notifications?
696
699
  * `bundle_upload_receipt_notifications` (string): Do Bundle uploaders receive upload confirmation notifications?
700
+ * `document_edits_in_bundle_allowed` (string): If true, allow public viewers of Bundles with full permissions to use document editing integrations.
697
701
  * `password_requirements_apply_to_bundles` (boolean): Require bundles' passwords, and passwords for other items (inboxes, public shares, etc.) to conform to the same requirements as users' passwords?
698
702
  * `prevent_root_permissions_for_non_site_admins` (boolean): If true, we will prevent non-administrators from receiving any permissions directly on the root folder. This is commonly used to prevent the accidental application of permissions.
699
703
  * `opt_out_global` (boolean): Use servers in the USA only?
@@ -419,7 +419,6 @@ module Files
419
419
  # filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `last_modified_at`.
420
420
  # filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `last_modified_at`.
421
421
  # filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `last_modified_at`.
422
- # with_deleted - boolean - Set to true to include deleted automations in the results.
423
422
  def self.list(params = {}, options = {})
424
423
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
425
424
  raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
@@ -224,6 +224,11 @@ module Files
224
224
  @attributes[:days_to_retain_backups]
225
225
  end
226
226
 
227
+ # string - If true, allow public viewers of Bundles with full permissions to use document editing integrations.
228
+ def document_edits_in_bundle_allowed
229
+ @attributes[:document_edits_in_bundle_allowed]
230
+ end
231
+
227
232
  # string - Site default time zone
228
233
  def default_time_zone
229
234
  @attributes[:default_time_zone]
@@ -489,12 +494,12 @@ module Files
489
494
  @attributes[:next_billing_date]
490
495
  end
491
496
 
492
- # boolean - Allow users to use Office for the web?
497
+ # boolean - If true, allows users to use a document editing integration.
493
498
  def office_integration_available
494
499
  @attributes[:office_integration_available]
495
500
  end
496
501
 
497
- # string - Office integration application used to edit and view the MS Office documents
502
+ # string - Which document editing integration to support. Files.com Editor or Microsoft Office for the Web.
498
503
  def office_integration_type
499
504
  @attributes[:office_integration_type]
500
505
  end
@@ -852,8 +857,8 @@ module Files
852
857
  # mobile_app_session_lifetime - int64 - Mobile app session lifetime (in hours)
853
858
  # folder_permissions_groups_only - boolean - If true, permissions for this site must be bound to a group (not a user). Otherwise, permissions must be bound to a user.
854
859
  # welcome_screen - string - Does the welcome screen appear?
855
- # office_integration_available - boolean - Allow users to use Office for the web?
856
- # office_integration_type - string - Office integration application used to edit and view the MS Office documents
860
+ # office_integration_available - boolean - If true, allows users to use a document editing integration.
861
+ # office_integration_type - string - Which document editing integration to support. Files.com Editor or Microsoft Office for the Web.
857
862
  # pin_all_remote_servers_to_site_region - boolean - If true, we will ensure that all internal communications with any remote server are made through the primary region of the site. This setting overrides individual remote server settings.
858
863
  # motd_text - string - A message to show users when they connect via FTP or SFTP.
859
864
  # motd_use_for_ftp - boolean - Show message to users connecting via FTP
@@ -897,6 +902,7 @@ module Files
897
902
  # bundle_registration_notifications - string - Do Bundle owners receive registration notification?
898
903
  # bundle_activity_notifications - string - Do Bundle owners receive activity notifications?
899
904
  # bundle_upload_receipt_notifications - string - Do Bundle uploaders receive upload confirmation notifications?
905
+ # document_edits_in_bundle_allowed - string - If true, allow public viewers of Bundles with full permissions to use document editing integrations.
900
906
  # password_requirements_apply_to_bundles - boolean - Require bundles' passwords, and passwords for other items (inboxes, public shares, etc.) to conform to the same requirements as users' passwords?
901
907
  # prevent_root_permissions_for_non_site_admins - boolean - If true, we will prevent non-administrators from receiving any permissions directly on the root folder. This is commonly used to prevent the accidental application of permissions.
902
908
  # opt_out_global - boolean - Use servers in the USA only?
@@ -1015,6 +1021,7 @@ module Files
1015
1021
  raise InvalidParameterError.new("Bad parameter: bundle_registration_notifications must be an String") if params[:bundle_registration_notifications] and !params[:bundle_registration_notifications].is_a?(String)
1016
1022
  raise InvalidParameterError.new("Bad parameter: bundle_activity_notifications must be an String") if params[:bundle_activity_notifications] and !params[:bundle_activity_notifications].is_a?(String)
1017
1023
  raise InvalidParameterError.new("Bad parameter: bundle_upload_receipt_notifications must be an String") if params[:bundle_upload_receipt_notifications] and !params[:bundle_upload_receipt_notifications].is_a?(String)
1024
+ raise InvalidParameterError.new("Bad parameter: document_edits_in_bundle_allowed must be an String") if params[:document_edits_in_bundle_allowed] and !params[:document_edits_in_bundle_allowed].is_a?(String)
1018
1025
  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)
1019
1026
  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)
1020
1027
  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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.146"
4
+ VERSION = "1.1.148"
5
5
  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.1.146
4
+ version: 1.1.148
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-10-07 00:00:00.000000000 Z
11
+ date: 2024-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable