files.com 1.1.669 → 1.1.671

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (347) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -0
  3. data/_VERSION +1 -1
  4. data/docs/account.md +155 -0
  5. data/docs/action_log.md +21 -1
  6. data/docs/action_notification_export_result.md +17 -0
  7. data/docs/action_webhook_failure.md +28 -0
  8. data/docs/agent_proxy_identity.md +49 -0
  9. data/docs/agent_proxy_identity_endpoint.md +11 -0
  10. data/docs/agent_proxy_identity_result.md +24 -0
  11. data/docs/agent_v2_auth.md +17 -0
  12. data/docs/ai_assistant_personality.md +14 -0
  13. data/docs/ai_task.md +14 -0
  14. data/docs/announcement.md +57 -0
  15. data/docs/api_key.md +27 -1
  16. data/docs/api_request_log.md +21 -1
  17. data/docs/app.md +15 -0
  18. data/docs/as2_incoming_message.md +18 -0
  19. data/docs/as2_outgoing_message.md +18 -0
  20. data/docs/as2_partner.md +14 -0
  21. data/docs/as2_station.md +14 -0
  22. data/docs/automation.md +22 -1
  23. data/docs/automation_log.md +21 -1
  24. data/docs/automation_run.md +19 -0
  25. data/docs/bandwidth_snapshot.md +18 -0
  26. data/docs/behavior.md +14 -0
  27. data/docs/blog_post.md +57 -0
  28. data/docs/bundle.md +50 -1
  29. data/docs/bundle_action.md +25 -0
  30. data/docs/bundle_download.md +23 -0
  31. data/docs/bundle_notification.md +19 -0
  32. data/docs/bundle_recipient.md +21 -0
  33. data/docs/bundle_recipient_registration.md +39 -0
  34. data/docs/bundle_registration.md +61 -0
  35. data/docs/certificate.md +258 -0
  36. data/docs/chat_session.md +14 -0
  37. data/docs/child_site.md +583 -0
  38. data/docs/child_site_management_policy.md +9 -0
  39. data/docs/clickwrap.md +13 -0
  40. data/docs/clickwrap_acceptance.md +30 -0
  41. data/docs/client_log.md +17 -0
  42. data/docs/crash_report.md +50 -0
  43. data/docs/custom_domain.md +13 -0
  44. data/docs/custom_domain_for_proxy.md +23 -0
  45. data/docs/desktop_configuration_profile.md +14 -0
  46. data/docs/dns_record.md +9 -0
  47. data/docs/email_incoming_message.md +19 -0
  48. data/docs/email_log.md +20 -1
  49. data/docs/email_preference.md +108 -0
  50. data/docs/email_preference_bundle_notification.md +15 -0
  51. data/docs/email_preference_notification.md +17 -0
  52. data/docs/event_channel.md +14 -0
  53. data/docs/event_delivery_attempt.md +14 -0
  54. data/docs/event_record.md +19 -0
  55. data/docs/event_subscription.md +14 -0
  56. data/docs/event_target.md +14 -0
  57. data/docs/exavault_api_request_log.md +21 -1
  58. data/docs/expectation.md +14 -0
  59. data/docs/expectation_evaluation.md +14 -0
  60. data/docs/expectation_incident.md +14 -0
  61. data/docs/export.md +90 -0
  62. data/docs/external_event.md +18 -0
  63. data/docs/file.md +90 -2
  64. data/docs/file_migration.md +32 -0
  65. data/docs/file_migration_log.md +20 -1
  66. data/docs/file_upload_part.md +3 -1
  67. data/docs/folder.md +20 -0
  68. data/docs/form_field_set.md +15 -0
  69. data/docs/front_end_server.md +111 -0
  70. data/docs/frontend_metric.md +34 -0
  71. data/docs/ftp_action_log.md +21 -1
  72. data/docs/gpg_key.md +21 -0
  73. data/docs/group.md +19 -0
  74. data/docs/group_user.md +22 -2
  75. data/docs/history.md +85 -0
  76. data/docs/history_export_result.md +17 -0
  77. data/docs/holiday_region.md +9 -0
  78. data/docs/inbound_s3_log.md +21 -1
  79. data/docs/inbox.md +102 -0
  80. data/docs/inbox_recipient.md +19 -0
  81. data/docs/inbox_recipient_registration.md +35 -0
  82. data/docs/inbox_registration.md +57 -0
  83. data/docs/inbox_upload.md +18 -0
  84. data/docs/invoice.md +9 -0
  85. data/docs/ip.md +63 -0
  86. data/docs/ip_abuse_entry.md +47 -0
  87. data/docs/ip_address.md +59 -0
  88. data/docs/key_lifecycle_rule.md +14 -0
  89. data/docs/label.md +9 -0
  90. data/docs/lead.md +161 -0
  91. data/docs/lock.md +15 -0
  92. data/docs/message.md +17 -0
  93. data/docs/message_comment.md +18 -0
  94. data/docs/message_comment_reaction.md +18 -0
  95. data/docs/message_reaction.md +17 -0
  96. data/docs/metadata_category.md +13 -0
  97. data/docs/monitoring_stat.md +38 -0
  98. data/docs/monitoring_stats.md +15 -0
  99. data/docs/mover_package.md +68 -0
  100. data/docs/notification.md +20 -0
  101. data/docs/nps_response.md +75 -0
  102. data/docs/oauth_redirect.md +11 -0
  103. data/docs/outbound_connection_log.md +21 -1
  104. data/docs/paired_api_key.md +19 -0
  105. data/docs/partner.md +14 -0
  106. data/docs/partner_channel.md +14 -0
  107. data/docs/partner_site_request.md +14 -0
  108. data/docs/payment.md +9 -0
  109. data/docs/paypal_express_info.md +31 -0
  110. data/docs/paypal_express_url.md +11 -0
  111. data/docs/pending_work_event.md +18 -0
  112. data/docs/permission.md +22 -0
  113. data/docs/plan.md +107 -0
  114. data/docs/preview.md +57 -0
  115. data/docs/project.md +9 -0
  116. data/docs/public_hosting_request_log.md +21 -1
  117. data/docs/public_hosting_session_pairing.md +15 -0
  118. data/docs/public_inbox.md +121 -0
  119. data/docs/public_key.md +21 -0
  120. data/docs/public_url.md +59 -0
  121. data/docs/regional_migration.md +0 -0
  122. data/docs/release.md +83 -0
  123. data/docs/release_package.md +19 -0
  124. data/docs/remote_bandwidth_snapshot.md +18 -0
  125. data/docs/remote_mount_backend.md +13 -0
  126. data/docs/remote_server.md +233 -0
  127. data/docs/remote_server_credential.md +15 -0
  128. data/docs/request.md +17 -0
  129. data/docs/restore.md +14 -0
  130. data/docs/revision.md +40 -0
  131. data/docs/safe_plan.md +0 -0
  132. data/docs/scheduled_export.md +15 -0
  133. data/docs/scim_log.md +13 -0
  134. data/docs/session.md +232 -1
  135. data/docs/session_available_site.md +26 -0
  136. data/docs/setting.md +33 -0
  137. data/docs/settings.md +498 -0
  138. data/docs/settings_change.md +16 -0
  139. data/docs/sftp_action_log.md +21 -1
  140. data/docs/sftp_host_key.md +9 -0
  141. data/docs/share_group.md +15 -0
  142. data/docs/siem_http_destination.md +9 -0
  143. data/docs/siem_http_destination_event.md +18 -0
  144. data/docs/site.md +179 -0
  145. data/docs/site_subdomain_redirect.md +13 -0
  146. data/docs/snapshot.md +9 -0
  147. data/docs/ssl_certificate.md +37 -0
  148. data/docs/sso_event.md +19 -0
  149. data/docs/sso_strategy.md +406 -0
  150. data/docs/staging_site.md +591 -0
  151. data/docs/support_request.md +126 -0
  152. data/docs/sync.md +14 -0
  153. data/docs/sync_api_usage_snapshot.md +23 -0
  154. data/docs/sync_api_usage_snapshot_report.md +71 -0
  155. data/docs/sync_bandwidth_snapshot.md +48 -0
  156. data/docs/sync_log.md +20 -1
  157. data/docs/sync_run.md +21 -0
  158. data/docs/two_factor_authentication_method.md +169 -0
  159. data/docs/usage_daily_snapshot.md +18 -0
  160. data/docs/usage_snapshot.md +9 -0
  161. data/docs/user.md +49 -2
  162. data/docs/user_cipher_use.md +21 -0
  163. data/docs/user_lifecycle_rule.md +14 -0
  164. data/docs/user_request.md +9 -0
  165. data/docs/user_security_event.md +18 -0
  166. data/docs/user_sftp_client_use.md +15 -0
  167. data/docs/warning.md +36 -0
  168. data/docs/web_dav_action_log.md +21 -1
  169. data/docs/webauthn_sign_request.md +13 -0
  170. data/docs/workspace.md +15 -0
  171. data/docs/zip_download.md +32 -0
  172. data/docs/zip_download_file.md +45 -0
  173. data/docs/zip_download_files.md +23 -0
  174. data/lib/files.com/errors.rb +1 -0
  175. data/lib/files.com/models/account.rb +346 -0
  176. data/lib/files.com/models/action_log.rb +24 -0
  177. data/lib/files.com/models/action_notification_export_result.rb +12 -0
  178. data/lib/files.com/models/action_webhook_failure.rb +34 -0
  179. data/lib/files.com/models/agent_proxy_identity.rb +47 -0
  180. data/lib/files.com/models/agent_proxy_identity_endpoint.rb +17 -0
  181. data/lib/files.com/models/agent_proxy_identity_result.rb +27 -0
  182. data/lib/files.com/models/agent_v2_auth.rb +32 -0
  183. data/lib/files.com/models/ai_assistant_personality.rb +11 -0
  184. data/lib/files.com/models/ai_task.rb +11 -0
  185. data/lib/files.com/models/announcement.rb +89 -0
  186. data/lib/files.com/models/api_key.rb +39 -5
  187. data/lib/files.com/models/api_request_log.rb +24 -0
  188. data/lib/files.com/models/app.rb +13 -0
  189. data/lib/files.com/models/as2_incoming_message.rb +19 -0
  190. data/lib/files.com/models/as2_outgoing_message.rb +19 -0
  191. data/lib/files.com/models/as2_partner.rb +11 -0
  192. data/lib/files.com/models/as2_station.rb +11 -0
  193. data/lib/files.com/models/automation.rb +30 -0
  194. data/lib/files.com/models/automation_log.rb +24 -0
  195. data/lib/files.com/models/automation_run.rb +16 -0
  196. data/lib/files.com/models/bandwidth_snapshot.rb +19 -0
  197. data/lib/files.com/models/behavior.rb +11 -0
  198. data/lib/files.com/models/blog_post.rb +84 -0
  199. data/lib/files.com/models/bundle.rb +52 -0
  200. data/lib/files.com/models/bundle_action.rb +25 -0
  201. data/lib/files.com/models/bundle_download.rb +23 -0
  202. data/lib/files.com/models/bundle_notification.rb +15 -0
  203. data/lib/files.com/models/bundle_recipient.rb +27 -0
  204. data/lib/files.com/models/bundle_recipient_registration.rb +105 -0
  205. data/lib/files.com/models/bundle_registration.rb +125 -0
  206. data/lib/files.com/models/certificate.rb +455 -0
  207. data/lib/files.com/models/chat_session.rb +11 -0
  208. data/lib/files.com/models/child_site.rb +1756 -0
  209. data/lib/files.com/models/child_site_management_policy.rb +5 -0
  210. data/lib/files.com/models/clickwrap.rb +9 -0
  211. data/lib/files.com/models/clickwrap_acceptance.rb +56 -0
  212. data/lib/files.com/models/client_log.rb +25 -0
  213. data/lib/files.com/models/crash_report.rb +151 -0
  214. data/lib/files.com/models/custom_domain.rb +9 -0
  215. data/lib/files.com/models/custom_domain_for_proxy.rb +47 -0
  216. data/lib/files.com/models/desktop_configuration_profile.rb +11 -0
  217. data/lib/files.com/models/dns_record.rb +5 -0
  218. data/lib/files.com/models/email_incoming_message.rb +21 -0
  219. data/lib/files.com/models/email_log.rb +22 -0
  220. data/lib/files.com/models/email_preference.rb +124 -0
  221. data/lib/files.com/models/email_preference_bundle_notification.rb +27 -0
  222. data/lib/files.com/models/email_preference_notification.rb +32 -0
  223. data/lib/files.com/models/event_channel.rb +11 -0
  224. data/lib/files.com/models/event_delivery_attempt.rb +11 -0
  225. data/lib/files.com/models/event_record.rb +21 -0
  226. data/lib/files.com/models/event_subscription.rb +11 -0
  227. data/lib/files.com/models/event_target.rb +11 -0
  228. data/lib/files.com/models/exavault_api_request_log.rb +24 -0
  229. data/lib/files.com/models/expectation.rb +11 -0
  230. data/lib/files.com/models/expectation_evaluation.rb +11 -0
  231. data/lib/files.com/models/expectation_incident.rb +11 -0
  232. data/lib/files.com/models/export.rb +153 -0
  233. data/lib/files.com/models/external_event.rb +19 -0
  234. data/lib/files.com/models/file.rb +207 -0
  235. data/lib/files.com/models/file_migration.rb +27 -0
  236. data/lib/files.com/models/file_migration_log.rb +22 -0
  237. data/lib/files.com/models/file_upload_part.rb +5 -0
  238. data/lib/files.com/models/folder.rb +69 -0
  239. data/lib/files.com/models/form_field_set.rb +9 -0
  240. data/lib/files.com/models/front_end_server.rb +335 -0
  241. data/lib/files.com/models/frontend_metric.rb +65 -0
  242. data/lib/files.com/models/ftp_action_log.rb +24 -0
  243. data/lib/files.com/models/gpg_key.rb +21 -0
  244. data/lib/files.com/models/group.rb +16 -0
  245. data/lib/files.com/models/group_user.rb +21 -1
  246. data/lib/files.com/models/history.rb +94 -0
  247. data/lib/files.com/models/history_export_result.rb +12 -0
  248. data/lib/files.com/models/holiday_region.rb +5 -0
  249. data/lib/files.com/models/inbound_s3_log.rb +24 -0
  250. data/lib/files.com/models/inbox.rb +123 -0
  251. data/lib/files.com/models/inbox_recipient.rb +25 -0
  252. data/lib/files.com/models/inbox_recipient_registration.rb +87 -0
  253. data/lib/files.com/models/inbox_registration.rb +121 -0
  254. data/lib/files.com/models/inbox_upload.rb +19 -0
  255. data/lib/files.com/models/invoice.rb +5 -0
  256. data/lib/files.com/models/ip.rb +82 -0
  257. data/lib/files.com/models/ip_abuse_entry.rb +96 -0
  258. data/lib/files.com/models/ip_address.rb +37 -0
  259. data/lib/files.com/models/key_lifecycle_rule.rb +11 -0
  260. data/lib/files.com/models/label.rb +22 -0
  261. data/lib/files.com/models/lead.rb +434 -0
  262. data/lib/files.com/models/lock.rb +27 -0
  263. data/lib/files.com/models/message.rb +12 -0
  264. data/lib/files.com/models/message_comment.rb +14 -0
  265. data/lib/files.com/models/message_comment_reaction.rb +14 -0
  266. data/lib/files.com/models/message_reaction.rb +12 -0
  267. data/lib/files.com/models/metadata_category.rb +9 -0
  268. data/lib/files.com/models/monitoring_stat.rb +43 -0
  269. data/lib/files.com/models/monitoring_stats.rb +22 -0
  270. data/lib/files.com/models/mover_package.rb +80 -0
  271. data/lib/files.com/models/notification.rb +18 -0
  272. data/lib/files.com/models/nps_response.rb +128 -0
  273. data/lib/files.com/models/oauth_redirect.rb +17 -0
  274. data/lib/files.com/models/outbound_connection_log.rb +24 -0
  275. data/lib/files.com/models/paired_api_key.rb +37 -0
  276. data/lib/files.com/models/partner.rb +11 -0
  277. data/lib/files.com/models/partner_channel.rb +11 -0
  278. data/lib/files.com/models/partner_site_request.rb +11 -0
  279. data/lib/files.com/models/payment.rb +5 -0
  280. data/lib/files.com/models/paypal_express_info.rb +67 -0
  281. data/lib/files.com/models/paypal_express_url.rb +17 -0
  282. data/lib/files.com/models/pending_work_event.rb +19 -0
  283. data/lib/files.com/models/permission.rb +22 -0
  284. data/lib/files.com/models/plan.rb +209 -0
  285. data/lib/files.com/models/preview.rb +57 -0
  286. data/lib/files.com/models/project.rb +5 -0
  287. data/lib/files.com/models/public_hosting_request_log.rb +24 -0
  288. data/lib/files.com/models/public_hosting_session_pairing.rb +27 -0
  289. data/lib/files.com/models/public_inbox.rb +142 -0
  290. data/lib/files.com/models/public_key.rb +21 -0
  291. data/lib/files.com/models/public_url.rb +177 -0
  292. data/lib/files.com/models/regional_migration.rb +12 -0
  293. data/lib/files.com/models/release.rb +153 -0
  294. data/lib/files.com/models/release_package.rb +37 -0
  295. data/lib/files.com/models/remote_bandwidth_snapshot.rb +19 -0
  296. data/lib/files.com/models/remote_mount_backend.rb +9 -0
  297. data/lib/files.com/models/remote_server.rb +297 -0
  298. data/lib/files.com/models/remote_server_credential.rb +13 -0
  299. data/lib/files.com/models/request.rb +12 -0
  300. data/lib/files.com/models/restore.rb +11 -0
  301. data/lib/files.com/models/revision.rb +53 -0
  302. data/lib/files.com/models/safe_plan.rb +12 -0
  303. data/lib/files.com/models/scheduled_export.rb +13 -0
  304. data/lib/files.com/models/scim_log.rb +9 -0
  305. data/lib/files.com/models/session.rb +493 -0
  306. data/lib/files.com/models/session_available_site.rb +47 -0
  307. data/lib/files.com/models/setting.rb +36 -0
  308. data/lib/files.com/models/settings.rb +1072 -0
  309. data/lib/files.com/models/settings_change.rb +16 -0
  310. data/lib/files.com/models/sftp_action_log.rb +24 -0
  311. data/lib/files.com/models/sftp_host_key.rb +5 -0
  312. data/lib/files.com/models/share_group.rb +9 -0
  313. data/lib/files.com/models/siem_http_destination.rb +5 -0
  314. data/lib/files.com/models/siem_http_destination_event.rb +19 -0
  315. data/lib/files.com/models/site.rb +1021 -0
  316. data/lib/files.com/models/site_subdomain_redirect.rb +9 -0
  317. data/lib/files.com/models/snapshot.rb +5 -0
  318. data/lib/files.com/models/ssl_certificate.rb +77 -0
  319. data/lib/files.com/models/sso_event.rb +21 -0
  320. data/lib/files.com/models/sso_strategy.rb +632 -0
  321. data/lib/files.com/models/staging_site.rb +1781 -0
  322. data/lib/files.com/models/support_request.rb +209 -0
  323. data/lib/files.com/models/sync.rb +11 -0
  324. data/lib/files.com/models/sync_api_usage_snapshot.rb +47 -0
  325. data/lib/files.com/models/sync_api_usage_snapshot_report.rb +162 -0
  326. data/lib/files.com/models/sync_bandwidth_snapshot.rb +104 -0
  327. data/lib/files.com/models/sync_log.rb +22 -0
  328. data/lib/files.com/models/sync_run.rb +21 -0
  329. data/lib/files.com/models/two_factor_authentication_method.rb +250 -0
  330. data/lib/files.com/models/usage_daily_snapshot.rb +19 -0
  331. data/lib/files.com/models/usage_snapshot.rb +5 -0
  332. data/lib/files.com/models/user.rb +59 -0
  333. data/lib/files.com/models/user_cipher_use.rb +21 -0
  334. data/lib/files.com/models/user_lifecycle_rule.rb +11 -0
  335. data/lib/files.com/models/user_request.rb +5 -0
  336. data/lib/files.com/models/user_security_event.rb +19 -0
  337. data/lib/files.com/models/user_sftp_client_use.rb +9 -0
  338. data/lib/files.com/models/warning.rb +38 -0
  339. data/lib/files.com/models/web_dav_action_log.rb +24 -0
  340. data/lib/files.com/models/webauthn_sign_request.rb +17 -0
  341. data/lib/files.com/models/workspace.rb +13 -0
  342. data/lib/files.com/models/zip_download.rb +73 -0
  343. data/lib/files.com/models/zip_download_file.rb +111 -0
  344. data/lib/files.com/models/zip_download_files.rb +42 -0
  345. data/lib/files.com/version.rb +1 -1
  346. data/lib/files.com.rb +59 -0
  347. metadata +120 -2
@@ -150,6 +150,15 @@ module Files
150
150
  path
151
151
  end
152
152
 
153
+ # int64 - File/Folder ID. Used only for ExaVault compatibility API. Do not use for other purposes, as this value will not always be set.
154
+ def id
155
+ @attributes[:id]
156
+ end
157
+
158
+ def id=(value)
159
+ @attributes[:id] = value
160
+ end
161
+
153
162
  # string - File/Folder path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
154
163
  def path
155
164
  @attributes[:path]
@@ -159,6 +168,15 @@ module Files
159
168
  @attributes[:path] = value
160
169
  end
161
170
 
171
+ # string - File/Folder absolute path for Bundle Trusted Relay use
172
+ def path_absolute
173
+ @attributes[:path_absolute]
174
+ end
175
+
176
+ def path_absolute=(value)
177
+ @attributes[:path_absolute] = value
178
+ end
179
+
162
180
  # int64 - User ID of the User who created the file/folder
163
181
  def created_by_id
164
182
  @attributes[:created_by_id]
@@ -425,6 +443,42 @@ module Files
425
443
  @attributes[:is_locked] = value
426
444
  end
427
445
 
446
+ # int64 - Used for internal bandwidth tracking
447
+ def remote_server_id
448
+ @attributes[:remote_server_id]
449
+ end
450
+
451
+ def remote_server_id=(value)
452
+ @attributes[:remote_server_id] = value
453
+ end
454
+
455
+ # object - Used for internal url management
456
+ def headers
457
+ @attributes[:headers]
458
+ end
459
+
460
+ def headers=(value)
461
+ @attributes[:headers] = value
462
+ end
463
+
464
+ # array(string) - Used for internal url management
465
+ def socks_ips
466
+ @attributes[:socks_ips]
467
+ end
468
+
469
+ def socks_ips=(value)
470
+ @attributes[:socks_ips] = value
471
+ end
472
+
473
+ # string - For use with internal services and should also be with headers and socks_ips
474
+ def internal_download_uri
475
+ @attributes[:internal_download_uri]
476
+ end
477
+
478
+ def internal_download_uri=(value)
479
+ @attributes[:internal_download_uri] = value
480
+ end
481
+
428
482
  # string - Link to download file. Provided only in response to a download request.
429
483
  def download_uri
430
484
  @attributes[:download_uri]
@@ -470,6 +524,15 @@ module Files
470
524
  @attributes[:mkdir_parents] = value
471
525
  end
472
526
 
527
+ # string
528
+ def bundle_registration_code
529
+ @attributes[:bundle_registration_code]
530
+ end
531
+
532
+ def bundle_registration_code=(value)
533
+ @attributes[:bundle_registration_code] = value
534
+ end
535
+
473
536
  def save
474
537
  new_obj = Folder.create(path, @attributes, @options)
475
538
  @attributes = new_obj.attributes
@@ -480,6 +543,8 @@ module Files
480
543
  # cursor - string - Send cursor 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 or the X-Files-Cursor-Prev header.
481
544
  # per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
482
545
  # path (required) - string - Path to operate on.
546
+ # action - string - Action to take. Can be `count`, `size`, `permissions`, or blank.
547
+ # bundle_registration_code - string
483
548
  # preview_size - string - Request a preview size. Can be `small` (default), `large`, `xlarge`, or `pdf`.
484
549
  # sort_by - object - Search by field and direction. Valid fields are `path`, `size`, `modified_at_datetime`, `provided_modified_at`. Valid directions are `asc` and `desc`. Defaults to `{"path":"asc"}`.
485
550
  # search - string - If specified, will search the folders/files list by name. Ignores text before last `/`. This is the same API used by the search bar in the web UI when running 'Search This Folder'. Search results are a best effort, not real time, and not guaranteed to perfectly match the latest folder listing. Results may be truncated if more than 1,000 possible matches exist. This field should only be used for ad-hoc (human) searching, and not as part of an automated process.
@@ -495,6 +560,8 @@ module Files
495
560
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
496
561
  raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
497
562
  raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
563
+ raise InvalidParameterError.new("Bad parameter: action must be an String") if params[:action] and !params[:action].is_a?(String)
564
+ raise InvalidParameterError.new("Bad parameter: bundle_registration_code must be an String") if params[:bundle_registration_code] and !params[:bundle_registration_code].is_a?(String)
498
565
  raise InvalidParameterError.new("Bad parameter: preview_size must be an String") if params[:preview_size] and !params[:preview_size].is_a?(String)
499
566
  raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
500
567
  raise InvalidParameterError.new("Bad parameter: search must be an String") if params[:search] and !params[:search].is_a?(String)
@@ -512,11 +579,13 @@ module Files
512
579
  # path (required) - string - Path to operate on.
513
580
  # mkdir_parents - boolean - Create parent directories if they do not exist?
514
581
  # provided_mtime - string - User provided modification time.
582
+ # bundle_registration_code - string
515
583
  def self.create(path, params = {}, options = {})
516
584
  params ||= {}
517
585
  params[:path] = path
518
586
  raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
519
587
  raise InvalidParameterError.new("Bad parameter: provided_mtime must be an String") if params[:provided_mtime] and !params[:provided_mtime].is_a?(String)
588
+ raise InvalidParameterError.new("Bad parameter: bundle_registration_code must be an String") if params[:bundle_registration_code] and !params[:bundle_registration_code].is_a?(String)
520
589
  raise MissingParameterError.new("Parameter missing: path") unless params[:path]
521
590
 
522
591
  response, options = Api.send_request("/folders/#{params[:path]}", :post, params, options)
@@ -197,6 +197,15 @@ module Files
197
197
  FormFieldSet.new(response.data, options)
198
198
  end
199
199
 
200
+ # Parameters:
201
+ # user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
202
+ def self.create_export(params = {}, options = {})
203
+ raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
204
+
205
+ response, options = Api.send_request("/form_field_sets/create_export", :post, params, options)
206
+ Export.new(response.data, options)
207
+ end
208
+
200
209
  # Parameters:
201
210
  # title - string - Title to be displayed
202
211
  # workspace_id - int64 - Workspace ID
@@ -0,0 +1,335 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Files
4
+ class FrontEndServer
5
+ attr_reader :options, :attributes
6
+
7
+ def initialize(attributes = {}, options = {})
8
+ @attributes = attributes || {}
9
+ @options = options || {}
10
+ end
11
+
12
+ # string - Private IP of the server.
13
+ def ip
14
+ @attributes[:ip]
15
+ end
16
+
17
+ def ip=(value)
18
+ @attributes[:ip] = value
19
+ end
20
+
21
+ # string - Public IP of the server.
22
+ def external_ip
23
+ @attributes[:external_ip]
24
+ end
25
+
26
+ def external_ip=(value)
27
+ @attributes[:external_ip] = value
28
+ end
29
+
30
+ # boolean - Flag to signal to other systems to use this config
31
+ def assigned
32
+ @attributes[:assigned]
33
+ end
34
+
35
+ def assigned=(value)
36
+ @attributes[:assigned] = value
37
+ end
38
+
39
+ # SslCertificate - SSL certificate information for the site associated with this IP, if available.
40
+ def site
41
+ @attributes[:site]
42
+ end
43
+
44
+ def site=(value)
45
+ @attributes[:site] = value
46
+ end
47
+
48
+ # boolean
49
+ def ftp_enabled
50
+ @attributes[:ftp_enabled]
51
+ end
52
+
53
+ def ftp_enabled=(value)
54
+ @attributes[:ftp_enabled] = value
55
+ end
56
+
57
+ # boolean
58
+ def sftp_enabled
59
+ @attributes[:sftp_enabled]
60
+ end
61
+
62
+ def sftp_enabled=(value)
63
+ @attributes[:sftp_enabled] = value
64
+ end
65
+
66
+ # string - Which SFTP host key to use.
67
+ def sftp_host_key_type
68
+ @attributes[:sftp_host_key_type]
69
+ end
70
+
71
+ def sftp_host_key_type=(value)
72
+ @attributes[:sftp_host_key_type] = value
73
+ end
74
+
75
+ # string - SFTP Host Key private key if using a custom key.
76
+ def sftp_host_key_private_key
77
+ @attributes[:sftp_host_key_private_key]
78
+ end
79
+
80
+ def sftp_host_key_private_key=(value)
81
+ @attributes[:sftp_host_key_private_key] = value
82
+ end
83
+
84
+ # int64 - Site Id
85
+ def site_id
86
+ @attributes[:site_id]
87
+ end
88
+
89
+ def site_id=(value)
90
+ @attributes[:site_id] = value
91
+ end
92
+
93
+ # string - A message to show users when they connect via FTP or SFTP.
94
+ def motd_text
95
+ @attributes[:motd_text]
96
+ end
97
+
98
+ def motd_text=(value)
99
+ @attributes[:motd_text] = value
100
+ end
101
+
102
+ # boolean - Show message to users connecting via FTP
103
+ def motd_use_for_ftp
104
+ @attributes[:motd_use_for_ftp]
105
+ end
106
+
107
+ def motd_use_for_ftp=(value)
108
+ @attributes[:motd_use_for_ftp] = value
109
+ end
110
+
111
+ # boolean - Show message to users connecting via SFTP
112
+ def motd_use_for_sftp
113
+ @attributes[:motd_use_for_sftp]
114
+ end
115
+
116
+ def motd_use_for_sftp=(value)
117
+ @attributes[:motd_use_for_sftp] = value
118
+ end
119
+
120
+ # array(object) - Active Custom Domains for the site associated with this IP, with their attached SSL certificate content.
121
+ def custom_domains
122
+ @attributes[:custom_domains]
123
+ end
124
+
125
+ def custom_domains=(value)
126
+ @attributes[:custom_domains] = value
127
+ end
128
+
129
+ # string - Pair type for General Use Public IPs
130
+ def pair_type
131
+ @attributes[:pair_type]
132
+ end
133
+
134
+ def pair_type=(value)
135
+ @attributes[:pair_type] = value
136
+ end
137
+
138
+ # string - Server's short name.
139
+ def name
140
+ @attributes[:name]
141
+ end
142
+
143
+ def name=(value)
144
+ @attributes[:name] = value
145
+ end
146
+
147
+ # string - Server's full hostname.
148
+ def hostname
149
+ @attributes[:hostname]
150
+ end
151
+
152
+ def hostname=(value)
153
+ @attributes[:hostname] = value
154
+ end
155
+
156
+ # string - Availability zone where this server lives.
157
+ def zone
158
+ @attributes[:zone]
159
+ end
160
+
161
+ def zone=(value)
162
+ @attributes[:zone] = value
163
+ end
164
+
165
+ # array(string) - An array of public and private ip address pairs.
166
+ def ips
167
+ @attributes[:ips]
168
+ end
169
+
170
+ def ips=(value)
171
+ @attributes[:ips] = value
172
+ end
173
+
174
+ # string - Primary Internal IP.
175
+ def primary_ip
176
+ @attributes[:primary_ip]
177
+ end
178
+
179
+ def primary_ip=(value)
180
+ @attributes[:primary_ip] = value
181
+ end
182
+
183
+ # string - Primary Public IP.
184
+ def primary_ip_public
185
+ @attributes[:primary_ip_public]
186
+ end
187
+
188
+ def primary_ip_public=(value)
189
+ @attributes[:primary_ip_public] = value
190
+ end
191
+
192
+ # string - Security Opt Out Internal IP.
193
+ def soo_ip
194
+ @attributes[:soo_ip]
195
+ end
196
+
197
+ def soo_ip=(value)
198
+ @attributes[:soo_ip] = value
199
+ end
200
+
201
+ # string - Security Opt Out Public IP.
202
+ def soo_ip_public
203
+ @attributes[:soo_ip_public]
204
+ end
205
+
206
+ def soo_ip_public=(value)
207
+ @attributes[:soo_ip_public] = value
208
+ end
209
+
210
+ # string - Exavault Internal IP.
211
+ def exavault_ip
212
+ @attributes[:exavault_ip]
213
+ end
214
+
215
+ def exavault_ip=(value)
216
+ @attributes[:exavault_ip] = value
217
+ end
218
+
219
+ # string - Exavault Public IP.
220
+ def exavault_ip_public
221
+ @attributes[:exavault_ip_public]
222
+ end
223
+
224
+ def exavault_ip_public=(value)
225
+ @attributes[:exavault_ip_public] = value
226
+ end
227
+
228
+ # string - Exavault Security Opt Out Internal IP.
229
+ def exavault_soo_ip
230
+ @attributes[:exavault_soo_ip]
231
+ end
232
+
233
+ def exavault_soo_ip=(value)
234
+ @attributes[:exavault_soo_ip] = value
235
+ end
236
+
237
+ # string - Exavault Security Opt Out Public IP.
238
+ def exavault_soo_ip_public
239
+ @attributes[:exavault_soo_ip_public]
240
+ end
241
+
242
+ def exavault_soo_ip_public=(value)
243
+ @attributes[:exavault_soo_ip_public] = value
244
+ end
245
+
246
+ # string - Smartfile Internal IP.
247
+ def smartfile_ip
248
+ @attributes[:smartfile_ip]
249
+ end
250
+
251
+ def smartfile_ip=(value)
252
+ @attributes[:smartfile_ip] = value
253
+ end
254
+
255
+ # string - Smartfile Public IP.
256
+ def smartfile_ip_public
257
+ @attributes[:smartfile_ip_public]
258
+ end
259
+
260
+ def smartfile_ip_public=(value)
261
+ @attributes[:smartfile_ip_public] = value
262
+ end
263
+
264
+ # string - Smartfile Security Opt Out Internal IP.
265
+ def smartfile_soo_ip
266
+ @attributes[:smartfile_soo_ip]
267
+ end
268
+
269
+ def smartfile_soo_ip=(value)
270
+ @attributes[:smartfile_soo_ip] = value
271
+ end
272
+
273
+ # string - Smartfile Security Opt Out Public IP.
274
+ def smartfile_soo_ip_public
275
+ @attributes[:smartfile_soo_ip_public]
276
+ end
277
+
278
+ def smartfile_soo_ip_public=(value)
279
+ @attributes[:smartfile_soo_ip_public] = value
280
+ end
281
+
282
+ def save
283
+ if @attributes[:id]
284
+ raise NotImplementedError.new("The FrontEndServer object doesn't support updates.")
285
+ else
286
+ new_obj = FrontEndServer.create(@attributes, @options)
287
+ end
288
+
289
+ @attributes = new_obj.attributes
290
+ true
291
+ end
292
+
293
+ # Parameters:
294
+ # name (required) - string - Server's short name.
295
+ # hostname - string - Server's full hostname.
296
+ # zone - string - Availability zone where this server lives.
297
+ # ips - array(string) - An array of public and private ip address pairs.
298
+ # ips[private_ip] (required) - array(string) - Private IP address associated with the server.
299
+ # ips[public_ip] - array(string) - Public IP address associated with the server.
300
+ # primary_ip - string - Primary Internal IP.
301
+ # primary_ip_public - string - Primary Public IP.
302
+ # soo_ip - string - Security Opt Out Internal IP.
303
+ # soo_ip_public - string - Security Opt Out Public IP.
304
+ # exavault_ip - string - Exavault Internal IP.
305
+ # exavault_ip_public - string - Exavault Public IP.
306
+ # exavault_soo_ip - string - Exavault Security Opt Out Internal IP.
307
+ # exavault_soo_ip_public - string - Exavault Security Opt Out Public IP.
308
+ # smartfile_ip - string - Smartfile Internal IP.
309
+ # smartfile_ip_public - string - Smartfile Public IP.
310
+ # smartfile_soo_ip - string - Smartfile Security Opt Out Internal IP.
311
+ # smartfile_soo_ip_public - string - Smartfile Security Opt Out Public IP.
312
+ def self.create(params = {}, options = {})
313
+ raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
314
+ raise InvalidParameterError.new("Bad parameter: hostname must be an String") if params[:hostname] and !params[:hostname].is_a?(String)
315
+ raise InvalidParameterError.new("Bad parameter: zone must be an String") if params[:zone] and !params[:zone].is_a?(String)
316
+ raise InvalidParameterError.new("Bad parameter: ips must be an Array") if params[:ips] and !params[:ips].is_a?(Array)
317
+ raise InvalidParameterError.new("Bad parameter: primary_ip must be an String") if params[:primary_ip] and !params[:primary_ip].is_a?(String)
318
+ raise InvalidParameterError.new("Bad parameter: primary_ip_public must be an String") if params[:primary_ip_public] and !params[:primary_ip_public].is_a?(String)
319
+ raise InvalidParameterError.new("Bad parameter: soo_ip must be an String") if params[:soo_ip] and !params[:soo_ip].is_a?(String)
320
+ raise InvalidParameterError.new("Bad parameter: soo_ip_public must be an String") if params[:soo_ip_public] and !params[:soo_ip_public].is_a?(String)
321
+ raise InvalidParameterError.new("Bad parameter: exavault_ip must be an String") if params[:exavault_ip] and !params[:exavault_ip].is_a?(String)
322
+ raise InvalidParameterError.new("Bad parameter: exavault_ip_public must be an String") if params[:exavault_ip_public] and !params[:exavault_ip_public].is_a?(String)
323
+ raise InvalidParameterError.new("Bad parameter: exavault_soo_ip must be an String") if params[:exavault_soo_ip] and !params[:exavault_soo_ip].is_a?(String)
324
+ raise InvalidParameterError.new("Bad parameter: exavault_soo_ip_public must be an String") if params[:exavault_soo_ip_public] and !params[:exavault_soo_ip_public].is_a?(String)
325
+ raise InvalidParameterError.new("Bad parameter: smartfile_ip must be an String") if params[:smartfile_ip] and !params[:smartfile_ip].is_a?(String)
326
+ raise InvalidParameterError.new("Bad parameter: smartfile_ip_public must be an String") if params[:smartfile_ip_public] and !params[:smartfile_ip_public].is_a?(String)
327
+ raise InvalidParameterError.new("Bad parameter: smartfile_soo_ip must be an String") if params[:smartfile_soo_ip] and !params[:smartfile_soo_ip].is_a?(String)
328
+ raise InvalidParameterError.new("Bad parameter: smartfile_soo_ip_public must be an String") if params[:smartfile_soo_ip_public] and !params[:smartfile_soo_ip_public].is_a?(String)
329
+ raise MissingParameterError.new("Parameter missing: name") unless params[:name]
330
+
331
+ response, options = Api.send_request("/front_end_servers", :post, params, options)
332
+ Ip.new(response.data, options)
333
+ end
334
+ end
335
+ end
@@ -0,0 +1,65 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Files
4
+ class FrontendMetric
5
+ attr_reader :options, :attributes
6
+
7
+ def initialize(attributes = {}, options = {})
8
+ @attributes = attributes || {}
9
+ @options = options || {}
10
+ end
11
+
12
+ # string - Statsd metric type
13
+ def metric_type
14
+ @attributes[:metric_type]
15
+ end
16
+
17
+ def metric_type=(value)
18
+ @attributes[:metric_type] = value
19
+ end
20
+
21
+ # string - Where in statsd to store the metric. The final key in statsd will be `files-react.[environment].[subkey]`
22
+ def subkey
23
+ @attributes[:subkey]
24
+ end
25
+
26
+ def subkey=(value)
27
+ @attributes[:subkey] = value
28
+ end
29
+
30
+ # int64 - For timing metrics, the number of milliseconds. Required if `metric_type` is `timing`.
31
+ def ms
32
+ @attributes[:ms]
33
+ end
34
+
35
+ def ms=(value)
36
+ @attributes[:ms] = value
37
+ end
38
+
39
+ def save
40
+ if @attributes[:id]
41
+ raise NotImplementedError.new("The FrontendMetric object doesn't support updates.")
42
+ else
43
+ new_obj = FrontendMetric.create(@attributes, @options)
44
+ end
45
+
46
+ @attributes = new_obj.attributes
47
+ true
48
+ end
49
+
50
+ # Parameters:
51
+ # metric_type (required) - string - Statsd metric type. Use `timing` to submit the amount of time something took, or `increment` to increment a counter
52
+ # subkey (required) - string - Where in statsd to store the metric. The final key in statsd will be `files-react.[environment].[subkey]`
53
+ # ms - int64 - For timing metrics, the number of milliseconds. Required if `metric_type` is `timing`.
54
+ def self.create(params = {}, options = {})
55
+ raise InvalidParameterError.new("Bad parameter: metric_type must be an String") if params[:metric_type] and !params[:metric_type].is_a?(String)
56
+ raise InvalidParameterError.new("Bad parameter: subkey must be an String") if params[:subkey] and !params[:subkey].is_a?(String)
57
+ raise InvalidParameterError.new("Bad parameter: ms must be an Integer") if params[:ms] and !params[:ms].is_a?(Integer)
58
+ raise MissingParameterError.new("Parameter missing: metric_type") unless params[:metric_type]
59
+ raise MissingParameterError.new("Parameter missing: subkey") unless params[:subkey]
60
+
61
+ response, options = Api.send_request("/frontend_metrics", :post, params, options)
62
+ FrontendMetric.new(response.data, options)
63
+ end
64
+ end
65
+ end