files.com 1.0.281 → 1.0.284

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/_VERSION +1 -1
  3. data/docs/account_line_item.md +24 -20
  4. data/docs/app.md +1 -1
  5. data/docs/automation.md +8 -6
  6. data/docs/bundle.md +24 -14
  7. data/docs/file.md +2 -0
  8. data/docs/file_comment.md +7 -5
  9. data/docs/folder.md +2 -0
  10. data/docs/form_field.md +1 -1
  11. data/docs/form_field_set.md +21 -19
  12. data/docs/group.md +12 -18
  13. data/docs/invoice.md +24 -20
  14. data/docs/invoice_line_item.md +1 -1
  15. data/docs/message.md +11 -7
  16. data/docs/message_comment.md +7 -5
  17. data/docs/notification.md +2 -2
  18. data/docs/payment.md +24 -20
  19. data/docs/remote_server.md +10 -0
  20. data/docs/settings_change.md +1 -1
  21. data/docs/site.md +8 -0
  22. data/docs/status.md +9 -7
  23. data/docs/usage_daily_snapshot.md +1 -1
  24. data/lib/files.com/models/account_line_item.rb +2 -2
  25. data/lib/files.com/models/app.rb +1 -1
  26. data/lib/files.com/models/automation.rb +2 -2
  27. data/lib/files.com/models/bundle.rb +15 -0
  28. data/lib/files.com/models/file.rb +6 -1
  29. data/lib/files.com/models/file_comment.rb +1 -1
  30. data/lib/files.com/models/folder.rb +5 -0
  31. data/lib/files.com/models/form_field.rb +1 -1
  32. data/lib/files.com/models/form_field_set.rb +2 -2
  33. data/lib/files.com/models/group.rb +3 -3
  34. data/lib/files.com/models/invoice.rb +2 -2
  35. data/lib/files.com/models/message.rb +1 -1
  36. data/lib/files.com/models/message_comment.rb +1 -1
  37. data/lib/files.com/models/notification.rb +2 -2
  38. data/lib/files.com/models/payment.rb +2 -2
  39. data/lib/files.com/models/remote_server.rb +21 -0
  40. data/lib/files.com/models/settings_change.rb +1 -1
  41. data/lib/files.com/models/site.rb +12 -0
  42. data/lib/files.com/models/status.rb +1 -1
  43. metadata +2 -2
data/docs/payment.md CHANGED
@@ -10,25 +10,29 @@
10
10
  "created_at": "2000-01-01T01:00:00Z",
11
11
  "currency": "USD",
12
12
  "download_uri": "https://url...",
13
- "invoice_line_items": {
14
- "amount": 1.0,
15
- "created_at": "2000-01-01T01:00:00Z",
16
- "description": "Service from 2019-01-01 through 2019-12-31",
17
- "type": "invoice",
18
- "service_end_at": "2000-01-01T01:00:00Z",
19
- "service_start_at": "2000-01-01T01:00:00Z",
20
- "updated_at": "2000-01-01T01:00:00Z",
21
- "plan": "Enterprise",
22
- "site": "My site"
23
- },
13
+ "invoice_line_items": [
14
+ {
15
+ "amount": 1.0,
16
+ "created_at": "2000-01-01T01:00:00Z",
17
+ "description": "Service from 2019-01-01 through 2019-12-31",
18
+ "type": "invoice",
19
+ "service_end_at": "2000-01-01T01:00:00Z",
20
+ "service_start_at": "2000-01-01T01:00:00Z",
21
+ "updated_at": "2000-01-01T01:00:00Z",
22
+ "plan": "Premier",
23
+ "site": "My site"
24
+ }
25
+ ],
24
26
  "method": "paypal",
25
- "payment_line_items": {
26
- "amount": 1.0,
27
- "created_at": "2000-01-01T01:00:00Z",
28
- "invoice_id": 1,
29
- "payment_id": 1,
30
- "updated_at": "2000-01-01T01:00:00Z"
31
- },
27
+ "payment_line_items": [
28
+ {
29
+ "amount": 1.0,
30
+ "created_at": "2000-01-01T01:00:00Z",
31
+ "invoice_id": 1,
32
+ "payment_id": 1,
33
+ "updated_at": "2000-01-01T01:00:00Z"
34
+ }
35
+ ],
32
36
  "payment_reversed_at": "2000-01-01T01:00:00Z",
33
37
  "payment_type": "",
34
38
  "site_name": "My Site",
@@ -43,9 +47,9 @@
43
47
  * `created_at` (date-time): Line item created at
44
48
  * `currency` (string): Line item currency
45
49
  * `download_uri` (string): Line item download uri
46
- * `invoice_line_items` (InvoiceLineItem): Associated invoice line items
50
+ * `invoice_line_items` (array): Associated invoice line items
47
51
  * `method` (string): Line item payment method
48
- * `payment_line_items` (PaymentLineItem): Associated payment line items
52
+ * `payment_line_items` (array): Associated payment line items
49
53
  * `payment_reversed_at` (date-time): Date/time payment was reversed if applicable
50
54
  * `payment_type` (string): Type of payment if applicable
51
55
  * `site_name` (string): Site name this line item is for
@@ -12,6 +12,8 @@
12
12
  "name": "My Remote server",
13
13
  "port": 1,
14
14
  "max_connections": 1,
15
+ "pin_to_site_region": true,
16
+ "pinned_region": "us-east-1",
15
17
  "s3_bucket": "my-bucket",
16
18
  "s3_region": "us-east-1",
17
19
  "aws_access_key": "",
@@ -56,6 +58,8 @@
56
58
  * `name` (string): Internal name for your reference
57
59
  * `port` (int64): Port for remote server. Not needed for S3.
58
60
  * `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
61
+ * `pin_to_site_region` (boolean): If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a sitewide setting which will force it to true.
62
+ * `pinned_region` (string): If set, all communciations with this remote server are made through the provided region.
59
63
  * `s3_bucket` (string): S3 bucket name
60
64
  * `s3_region` (string): S3 region
61
65
  * `aws_access_key` (string): AWS Access Key.
@@ -144,6 +148,7 @@ Files::RemoteServer.create(
144
148
  hostname: "remote-server.com",
145
149
  name: "My Remote server",
146
150
  max_connections: 1,
151
+ pin_to_site_region: true,
147
152
  port: 1,
148
153
  s3_bucket: "my-bucket",
149
154
  s3_region: "us-east-1",
@@ -195,6 +200,7 @@ Files::RemoteServer.create(
195
200
  * `hostname` (string): Hostname or IP address
196
201
  * `name` (string): Internal name for your reference
197
202
  * `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
203
+ * `pin_to_site_region` (boolean): If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a sitewide setting which will force it to true.
198
204
  * `port` (int64): Port for remote server. Not needed for S3.
199
205
  * `s3_bucket` (string): S3 bucket name
200
206
  * `s3_region` (string): S3 region
@@ -237,6 +243,7 @@ Files::RemoteServer.update(id,
237
243
  hostname: "remote-server.com",
238
244
  name: "My Remote server",
239
245
  max_connections: 1,
246
+ pin_to_site_region: true,
240
247
  port: 1,
241
248
  s3_bucket: "my-bucket",
242
249
  s3_region: "us-east-1",
@@ -289,6 +296,7 @@ Files::RemoteServer.update(id,
289
296
  * `hostname` (string): Hostname or IP address
290
297
  * `name` (string): Internal name for your reference
291
298
  * `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
299
+ * `pin_to_site_region` (boolean): If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a sitewide setting which will force it to true.
292
300
  * `port` (int64): Port for remote server. Not needed for S3.
293
301
  * `s3_bucket` (string): S3 bucket name
294
302
  * `s3_region` (string): S3 region
@@ -346,6 +354,7 @@ remote_server.update(
346
354
  hostname: "remote-server.com",
347
355
  name: "My Remote server",
348
356
  max_connections: 1,
357
+ pin_to_site_region: true,
349
358
  port: 1,
350
359
  s3_bucket: "my-bucket",
351
360
  s3_region: "us-east-1",
@@ -398,6 +407,7 @@ remote_server.update(
398
407
  * `hostname` (string): Hostname or IP address
399
408
  * `name` (string): Internal name for your reference
400
409
  * `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
410
+ * `pin_to_site_region` (boolean): If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a sitewide setting which will force it to true.
401
411
  * `port` (int64): Port for remote server. Not needed for S3.
402
412
  * `s3_bucket` (string): S3 bucket name
403
413
  * `s3_region` (string): S3 region
@@ -14,7 +14,7 @@
14
14
  }
15
15
  ```
16
16
 
17
- * `changes` (string): Markdown-formatted change messages.
17
+ * `changes` (array): Markdown-formatted change messages.
18
18
  * `created_at` (date-time): The time this change was made
19
19
  * `user_id` (int64): The user id responsible for this change
20
20
  * `user_is_files_support` (boolean): true if this change was performed by Files.com support.
data/docs/site.md CHANGED
@@ -112,6 +112,7 @@
112
112
  "password_requirements_apply_to_bundles": true,
113
113
  "password_validity_days": 1,
114
114
  "phone": "555-555-5555",
115
+ "pin_all_remote_servers_to_site_region": true,
115
116
  "require_2fa": true,
116
117
  "require_2fa_stop_time": "2000-01-01T01:00:00Z",
117
118
  "require_2fa_user_type": "`site_admins`",
@@ -218,6 +219,7 @@
218
219
  "user_lockout_tries": 1,
219
220
  "user_lockout_within": 6,
220
221
  "user_requests_enabled": true,
222
+ "user_requests_notify_admins": true,
221
223
  "welcome_custom_text": "Welcome to my site!",
222
224
  "welcome_email_cc": "",
223
225
  "welcome_email_subject": "",
@@ -318,6 +320,7 @@
318
320
  * `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?
319
321
  * `password_validity_days` (int64): Number of days password is valid
320
322
  * `phone` (string): Site phone number
323
+ * `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.
321
324
  * `require_2fa` (boolean): Require two-factor authentication for all users?
322
325
  * `require_2fa_stop_time` (date-time): If set, requirement for two-factor authentication has been scheduled to end on this date-time.
323
326
  * `require_2fa_user_type` (string): What type of user is required to use two-factor authentication (when require_2fa is set to `true` for this site)?
@@ -350,6 +353,7 @@
350
353
  * `user_lockout_tries` (int64): Number of login tries within `user_lockout_within` hours before users are locked out
351
354
  * `user_lockout_within` (int64): Number of hours for user lockout window
352
355
  * `user_requests_enabled` (boolean): Enable User Requests feature
356
+ * `user_requests_notify_admins` (boolean): Send email to site admins when a user request is received?
353
357
  * `welcome_custom_text` (string): Custom text send in user welcome email
354
358
  * `welcome_email_cc` (email): Include this email in welcome emails if enabled
355
359
  * `welcome_email_subject` (string): Include this email subject in welcome emails if enabled
@@ -408,6 +412,7 @@ Files::Site.update(
408
412
  folder_permissions_groups_only: true,
409
413
  welcome_screen: "user_controlled",
410
414
  office_integration_available: true,
415
+ pin_all_remote_servers_to_site_region: true,
411
416
  session_expiry: 1.0,
412
417
  ssl_required: true,
413
418
  tls_disabled: true,
@@ -443,6 +448,7 @@ Files::Site.update(
443
448
  non_sso_users_allowed: true,
444
449
  sharing_enabled: true,
445
450
  user_requests_enabled: true,
451
+ user_requests_notify_admins: true,
446
452
  ftp_enabled: true,
447
453
  sftp_enabled: true,
448
454
  allowed_2fa_method_sms: true,
@@ -516,6 +522,7 @@ Files::Site.update(
516
522
  * `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.
517
523
  * `welcome_screen` (string): Does the welcome screen appear?
518
524
  * `office_integration_available` (boolean): Allow users to use Office for the web?
525
+ * `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.
519
526
  * `session_expiry` (double): Session expiry in hours
520
527
  * `ssl_required` (boolean): Is SSL required? Disabling this is insecure.
521
528
  * `tls_disabled` (boolean): Are Insecure TLS and SFTP Ciphers allowed? Enabling this is insecure.
@@ -552,6 +559,7 @@ Files::Site.update(
552
559
  * `non_sso_users_allowed` (boolean): If true, users can be manually created / modified / deleted by Site Admins. Otherwise, users can only be managed via your SSO provider.
553
560
  * `sharing_enabled` (boolean): Allow bundle creation
554
561
  * `user_requests_enabled` (boolean): Enable User Requests feature
562
+ * `user_requests_notify_admins` (boolean): Send email to site admins when a user request is received?
555
563
  * `ftp_enabled` (boolean): Is FTP enabled?
556
564
  * `sftp_enabled` (boolean): Is SFTP enabled?
557
565
  * `allowed_2fa_method_sms` (boolean): Is SMS two factor authentication allowed?
data/docs/status.md CHANGED
@@ -8,14 +8,16 @@
8
8
  "message": "",
9
9
  "status": "",
10
10
  "data": "",
11
- "errors": {
12
- "fields": [
11
+ "errors": [
12
+ {
13
+ "fields": [
13
14
 
14
- ],
15
- "messages": [
15
+ ],
16
+ "messages": [
16
17
 
17
- ]
18
- },
18
+ ]
19
+ }
20
+ ],
19
21
  "clickwrap_id": 1,
20
22
  "clickwrap_body": ""
21
23
  }
@@ -25,6 +27,6 @@
25
27
  * `message` (string): Error message
26
28
  * `status` (string): Status message
27
29
  * `data` (Auto): Additional data
28
- * `errors` (Errors): A list of api errors
30
+ * `errors` (array): A list of api errors
29
31
  * `clickwrap_id` (int64): Required Clickwrap id
30
32
  * `clickwrap_body` (string): Required Clickwrap body
@@ -15,7 +15,7 @@
15
15
  "deleted_files_counted_in_minimum": "65536",
16
16
  "root_storage": "65536",
17
17
  "usage_by_top_level_dir": [
18
-
18
+ ""
19
19
  ]
20
20
  }
21
21
  ```
@@ -39,7 +39,7 @@ module Files
39
39
  @attributes[:download_uri]
40
40
  end
41
41
 
42
- # InvoiceLineItem - Associated invoice line items
42
+ # array - Associated invoice line items
43
43
  def invoice_line_items
44
44
  @attributes[:invoice_line_items]
45
45
  end
@@ -49,7 +49,7 @@ module Files
49
49
  @attributes[:method]
50
50
  end
51
51
 
52
- # PaymentLineItem - Associated payment line items
52
+ # array - Associated payment line items
53
53
  def payment_line_items
54
54
  @attributes[:payment_line_items]
55
55
  end
@@ -39,7 +39,7 @@ module Files
39
39
  @attributes[:logo_url]
40
40
  end
41
41
 
42
- # string - Screenshots of the App
42
+ # array - Screenshots of the App
43
43
  def screenshot_list_urls
44
44
  @attributes[:screenshot_list_urls]
45
45
  end
@@ -99,7 +99,7 @@ module Files
99
99
  @attributes[:source] = value
100
100
  end
101
101
 
102
- # string - Destination Path
102
+ # array - Destination Path
103
103
  def destinations
104
104
  @attributes[:destinations]
105
105
  end
@@ -180,7 +180,7 @@ module Files
180
180
  @attributes[:webhook_url] = value
181
181
  end
182
182
 
183
- # 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
183
+ # array - 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
184
184
  def trigger_actions
185
185
  @attributes[:trigger_actions]
186
186
  end
@@ -45,6 +45,15 @@ module Files
45
45
  @attributes[:password_protected] = value
46
46
  end
47
47
 
48
+ # string - Permissions that apply to Folders in this Share Link.
49
+ def permissions
50
+ @attributes[:permissions]
51
+ end
52
+
53
+ def permissions=(value)
54
+ @attributes[:permissions] = value
55
+ end
56
+
48
57
  # boolean - Restrict users to previewing files only?
49
58
  def preview_only
50
59
  @attributes[:preview_only]
@@ -296,6 +305,7 @@ module Files
296
305
  # inbox_id - int64 - ID of the associated inbox, if available.
297
306
  # max_uses - int64 - Maximum number of times bundle can be accessed
298
307
  # note - string - Bundle internal note
308
+ # permissions - string - Permissions that apply to Folders in this Share Link.
299
309
  # preview_only - boolean - Restrict users to previewing files only?
300
310
  # require_registration - boolean - Show a registration page that captures the downloader's name and email address?
301
311
  # require_share_recipient - boolean - Only allow access to recipients who have explicitly received the share via an email sent through the Files.com UI?
@@ -319,6 +329,7 @@ module Files
319
329
  raise InvalidParameterError.new("Bad parameter: inbox_id must be an Integer") if params.dig(:inbox_id) and !params.dig(:inbox_id).is_a?(Integer)
320
330
  raise InvalidParameterError.new("Bad parameter: max_uses must be an Integer") if params.dig(:max_uses) and !params.dig(:max_uses).is_a?(Integer)
321
331
  raise InvalidParameterError.new("Bad parameter: note must be an String") if params.dig(:note) and !params.dig(:note).is_a?(String)
332
+ raise InvalidParameterError.new("Bad parameter: permissions must be an String") if params.dig(:permissions) and !params.dig(:permissions).is_a?(String)
322
333
  raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
323
334
 
324
335
  Api.send_request("/bundles/#{@attributes[:id]}", :patch, params, @options)
@@ -405,6 +416,7 @@ module Files
405
416
  # description - string - Public description
406
417
  # note - string - Bundle internal note
407
418
  # code - string - Bundle code. This code forms the end part of the Public URL.
419
+ # permissions - string - Permissions that apply to Folders in this Share Link.
408
420
  # preview_only - boolean - Restrict users to previewing files only?
409
421
  # require_registration - boolean - Show a registration page that captures the downloader's name and email address?
410
422
  # clickwrap_id - int64 - ID of the clickwrap to use with this bundle.
@@ -424,6 +436,7 @@ module Files
424
436
  raise InvalidParameterError.new("Bad parameter: description must be an String") if params.dig(:description) and !params.dig(:description).is_a?(String)
425
437
  raise InvalidParameterError.new("Bad parameter: note must be an String") if params.dig(:note) and !params.dig(:note).is_a?(String)
426
438
  raise InvalidParameterError.new("Bad parameter: code must be an String") if params.dig(:code) and !params.dig(:code).is_a?(String)
439
+ raise InvalidParameterError.new("Bad parameter: permissions must be an String") if params.dig(:permissions) and !params.dig(:permissions).is_a?(String)
427
440
  raise InvalidParameterError.new("Bad parameter: clickwrap_id must be an Integer") if params.dig(:clickwrap_id) and !params.dig(:clickwrap_id).is_a?(Integer)
428
441
  raise InvalidParameterError.new("Bad parameter: inbox_id must be an Integer") if params.dig(:inbox_id) and !params.dig(:inbox_id).is_a?(Integer)
429
442
  raise MissingParameterError.new("Parameter missing: paths") unless params.dig(:paths)
@@ -462,6 +475,7 @@ module Files
462
475
  # inbox_id - int64 - ID of the associated inbox, if available.
463
476
  # max_uses - int64 - Maximum number of times bundle can be accessed
464
477
  # note - string - Bundle internal note
478
+ # permissions - string - Permissions that apply to Folders in this Share Link.
465
479
  # preview_only - boolean - Restrict users to previewing files only?
466
480
  # require_registration - boolean - Show a registration page that captures the downloader's name and email address?
467
481
  # require_share_recipient - boolean - Only allow access to recipients who have explicitly received the share via an email sent through the Files.com UI?
@@ -484,6 +498,7 @@ module Files
484
498
  raise InvalidParameterError.new("Bad parameter: inbox_id must be an Integer") if params.dig(:inbox_id) and !params.dig(:inbox_id).is_a?(Integer)
485
499
  raise InvalidParameterError.new("Bad parameter: max_uses must be an Integer") if params.dig(:max_uses) and !params.dig(:max_uses).is_a?(Integer)
486
500
  raise InvalidParameterError.new("Bad parameter: note must be an String") if params.dig(:note) and !params.dig(:note).is_a?(String)
501
+ raise InvalidParameterError.new("Bad parameter: permissions must be an String") if params.dig(:permissions) and !params.dig(:permissions).is_a?(String)
487
502
  raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
488
503
 
489
504
  response, options = Api.send_request("/bundles/#{params[:id]}", :patch, params, options)
@@ -160,7 +160,7 @@ module Files
160
160
  buf = io.read(upload.partsize) || ""
161
161
  bytes_written += buf.length
162
162
  method = upload.http_method.downcase.to_sym
163
- response = client(options).remote_request(method, upload.upload_uri, { "Content-Length": buf.length.to_s }, buf)
163
+ response = client(options).remote_request(method, upload.upload_uri, { "Content-Length": buf.length.to_s, "Content-Type": "application/octet-stream" }, buf)
164
164
  etags << { etag: response.headers["ETag"], part: upload.part_number }
165
165
  return upload, etags, bytes_written if io.eof?
166
166
  end
@@ -628,6 +628,11 @@ module Files
628
628
  @attributes[:size] = value
629
629
  end
630
630
 
631
+ # date-time - File created date/time
632
+ def created_at
633
+ @attributes[:created_at]
634
+ end
635
+
631
636
  # date-time - File last modified date/time, according to the server. This is the timestamp of the last Files.com operation of the file, regardless of what modified timestamp was sent.
632
637
  def mtime
633
638
  @attributes[:mtime]
@@ -27,7 +27,7 @@ module Files
27
27
  @attributes[:body] = value
28
28
  end
29
29
 
30
- # FileCommentReaction - Reactions to this comment.
30
+ # array - Reactions to this comment.
31
31
  def reactions
32
32
  @attributes[:reactions]
33
33
  end
@@ -186,6 +186,11 @@ module Files
186
186
  @attributes[:size] = value
187
187
  end
188
188
 
189
+ # date-time - File created date/time
190
+ def created_at
191
+ @attributes[:created_at]
192
+ end
193
+
189
194
  # date-time - File last modified date/time, according to the server. This is the timestamp of the last Files.com operation of the file, regardless of what modified timestamp was sent.
190
195
  def mtime
191
196
  @attributes[:mtime]
@@ -34,7 +34,7 @@ module Files
34
34
  @attributes[:field_type]
35
35
  end
36
36
 
37
- # string - Options to display for radio and dropdown
37
+ # array - Options to display for radio and dropdown
38
38
  def options_for_select
39
39
  @attributes[:options_for_select]
40
40
  end
@@ -27,7 +27,7 @@ module Files
27
27
  @attributes[:title] = value
28
28
  end
29
29
 
30
- # int64 - Layout of the form
30
+ # array - Layout of the form
31
31
  def form_layout
32
32
  @attributes[:form_layout]
33
33
  end
@@ -36,7 +36,7 @@ module Files
36
36
  @attributes[:form_layout] = value
37
37
  end
38
38
 
39
- # FormField - Associated form fields
39
+ # array - Associated form fields
40
40
  def form_fields
41
41
  @attributes[:form_fields]
42
42
  end
@@ -27,7 +27,7 @@ module Files
27
27
  @attributes[:name] = value
28
28
  end
29
29
 
30
- # string - List of user IDs who are group administrators (separated by commas)
30
+ # string - Comma-delimited list of user IDs who are group administrators (separated by commas)
31
31
  def admin_ids
32
32
  @attributes[:admin_ids]
33
33
  end
@@ -45,7 +45,7 @@ module Files
45
45
  @attributes[:notes] = value
46
46
  end
47
47
 
48
- # array - List of user IDs who belong to this group (separated by commas)
48
+ # string - Comma-delimited list of user IDs who belong to this group (separated by commas)
49
49
  def user_ids
50
50
  @attributes[:user_ids]
51
51
  end
@@ -54,7 +54,7 @@ module Files
54
54
  @attributes[:user_ids] = value
55
55
  end
56
56
 
57
- # array - List of usernames who belong to this group (separated by commas)
57
+ # string - Comma-delimited list of usernames who belong to this group (separated by commas)
58
58
  def usernames
59
59
  @attributes[:usernames]
60
60
  end
@@ -39,7 +39,7 @@ module Files
39
39
  @attributes[:download_uri]
40
40
  end
41
41
 
42
- # InvoiceLineItem - Associated invoice line items
42
+ # array - Associated invoice line items
43
43
  def invoice_line_items
44
44
  @attributes[:invoice_line_items]
45
45
  end
@@ -49,7 +49,7 @@ module Files
49
49
  @attributes[:method]
50
50
  end
51
51
 
52
- # PaymentLineItem - Associated payment line items
52
+ # array - Associated payment line items
53
53
  def payment_line_items
54
54
  @attributes[:payment_line_items]
55
55
  end
@@ -36,7 +36,7 @@ module Files
36
36
  @attributes[:body] = value
37
37
  end
38
38
 
39
- # MessageComment - Comments.
39
+ # array - Comments.
40
40
  def comments
41
41
  @attributes[:comments]
42
42
  end
@@ -27,7 +27,7 @@ module Files
27
27
  @attributes[:body] = value
28
28
  end
29
29
 
30
- # MessageCommentReaction - Reactions to this comment.
30
+ # array - Reactions to this comment.
31
31
  def reactions
32
32
  @attributes[:reactions]
33
33
  end
@@ -45,7 +45,7 @@ module Files
45
45
  @attributes[:group_name] = value
46
46
  end
47
47
 
48
- # int64 - Only notify on actions made by a member of one of the specified groups
48
+ # array - Only notify on actions made by a member of one of the specified groups
49
49
  def triggering_group_ids
50
50
  @attributes[:triggering_group_ids]
51
51
  end
@@ -54,7 +54,7 @@ module Files
54
54
  @attributes[:triggering_group_ids] = value
55
55
  end
56
56
 
57
- # int64 - Only notify on actions made one of the specified users
57
+ # array - Only notify on actions made one of the specified users
58
58
  def triggering_user_ids
59
59
  @attributes[:triggering_user_ids]
60
60
  end
@@ -39,7 +39,7 @@ module Files
39
39
  @attributes[:download_uri]
40
40
  end
41
41
 
42
- # InvoiceLineItem - Associated invoice line items
42
+ # array - Associated invoice line items
43
43
  def invoice_line_items
44
44
  @attributes[:invoice_line_items]
45
45
  end
@@ -49,7 +49,7 @@ module Files
49
49
  @attributes[:method]
50
50
  end
51
51
 
52
- # PaymentLineItem - Associated payment line items
52
+ # array - Associated payment line items
53
53
  def payment_line_items
54
54
  @attributes[:payment_line_items]
55
55
  end
@@ -81,6 +81,24 @@ module Files
81
81
  @attributes[:max_connections] = value
82
82
  end
83
83
 
84
+ # boolean - If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a sitewide setting which will force it to true.
85
+ def pin_to_site_region
86
+ @attributes[:pin_to_site_region]
87
+ end
88
+
89
+ def pin_to_site_region=(value)
90
+ @attributes[:pin_to_site_region] = value
91
+ end
92
+
93
+ # string - If set, all communciations with this remote server are made through the provided region.
94
+ def pinned_region
95
+ @attributes[:pinned_region]
96
+ end
97
+
98
+ def pinned_region=(value)
99
+ @attributes[:pinned_region] = value
100
+ end
101
+
84
102
  # string - S3 bucket name
85
103
  def s3_bucket
86
104
  @attributes[:s3_bucket]
@@ -523,6 +541,7 @@ module Files
523
541
  # hostname - string - Hostname or IP address
524
542
  # name - string - Internal name for your reference
525
543
  # max_connections - int64 - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
544
+ # pin_to_site_region - boolean - If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a sitewide setting which will force it to true.
526
545
  # port - int64 - Port for remote server. Not needed for S3.
527
546
  # s3_bucket - string - S3 bucket name
528
547
  # s3_region - string - S3 region
@@ -683,6 +702,7 @@ module Files
683
702
  # hostname - string - Hostname or IP address
684
703
  # name - string - Internal name for your reference
685
704
  # max_connections - int64 - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
705
+ # pin_to_site_region - boolean - If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a sitewide setting which will force it to true.
686
706
  # port - int64 - Port for remote server. Not needed for S3.
687
707
  # s3_bucket - string - S3 bucket name
688
708
  # s3_region - string - S3 region
@@ -784,6 +804,7 @@ module Files
784
804
  # hostname - string - Hostname or IP address
785
805
  # name - string - Internal name for your reference
786
806
  # max_connections - int64 - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
807
+ # pin_to_site_region - boolean - If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a sitewide setting which will force it to true.
787
808
  # port - int64 - Port for remote server. Not needed for S3.
788
809
  # s3_bucket - string - S3 bucket name
789
810
  # s3_region - string - S3 region
@@ -9,7 +9,7 @@ module Files
9
9
  @options = options || {}
10
10
  end
11
11
 
12
- # string - Markdown-formatted change messages.
12
+ # array - Markdown-formatted change messages.
13
13
  def changes
14
14
  @attributes[:changes]
15
15
  end
@@ -459,6 +459,11 @@ module Files
459
459
  @attributes[:phone]
460
460
  end
461
461
 
462
+ # 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.
463
+ def pin_all_remote_servers_to_site_region
464
+ @attributes[:pin_all_remote_servers_to_site_region]
465
+ end
466
+
462
467
  # boolean - Require two-factor authentication for all users?
463
468
  def require_2fa
464
469
  @attributes[:require_2fa]
@@ -619,6 +624,11 @@ module Files
619
624
  @attributes[:user_requests_enabled]
620
625
  end
621
626
 
627
+ # boolean - Send email to site admins when a user request is received?
628
+ def user_requests_notify_admins
629
+ @attributes[:user_requests_notify_admins]
630
+ end
631
+
622
632
  # string - Custom text send in user welcome email
623
633
  def welcome_custom_text
624
634
  @attributes[:welcome_custom_text]
@@ -693,6 +703,7 @@ module Files
693
703
  # 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.
694
704
  # welcome_screen - string - Does the welcome screen appear?
695
705
  # office_integration_available - boolean - Allow users to use Office for the web?
706
+ # 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.
696
707
  # session_expiry - double - Session expiry in hours
697
708
  # ssl_required - boolean - Is SSL required? Disabling this is insecure.
698
709
  # tls_disabled - boolean - Are Insecure TLS and SFTP Ciphers allowed? Enabling this is insecure.
@@ -729,6 +740,7 @@ module Files
729
740
  # non_sso_users_allowed - boolean - If true, users can be manually created / modified / deleted by Site Admins. Otherwise, users can only be managed via your SSO provider.
730
741
  # sharing_enabled - boolean - Allow bundle creation
731
742
  # user_requests_enabled - boolean - Enable User Requests feature
743
+ # user_requests_notify_admins - boolean - Send email to site admins when a user request is received?
732
744
  # ftp_enabled - boolean - Is FTP enabled?
733
745
  # sftp_enabled - boolean - Is SFTP enabled?
734
746
  # allowed_2fa_method_sms - boolean - Is SMS two factor authentication allowed?
@@ -29,7 +29,7 @@ module Files
29
29
  @attributes[:data]
30
30
  end
31
31
 
32
- # Errors - A list of api errors
32
+ # array - A list of api errors
33
33
  def errors
34
34
  @attributes[:errors]
35
35
  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.281
4
+ version: 1.0.284
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-07-27 00:00:00.000000000 Z
11
+ date: 2022-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable