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
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Files
4
+ class PairedApiKey
5
+ attr_reader :options, :attributes
6
+
7
+ def initialize(attributes = {}, options = {})
8
+ @attributes = attributes || {}
9
+ @options = options || {}
10
+ end
11
+
12
+ # string - Site URL
13
+ def server
14
+ @attributes[:server]
15
+ end
16
+
17
+ # string - Paired API key username
18
+ def username
19
+ @attributes[:username]
20
+ end
21
+
22
+ # string - Paired API key password
23
+ def password
24
+ @attributes[:password]
25
+ end
26
+
27
+ # string - Unique nickname for this API key
28
+ def user_username
29
+ @attributes[:user_username]
30
+ end
31
+
32
+ # string - Unique nickname for this API key
33
+ def nickname
34
+ @attributes[:nickname]
35
+ end
36
+ end
37
+ end
@@ -297,6 +297,17 @@ module Files
297
297
  Partner.new(response.data, options)
298
298
  end
299
299
 
300
+ # Parameters:
301
+ # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `workspace_id` and `id`.
302
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `workspace_id`.
303
+ def self.create_export(params = {}, options = {})
304
+ raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
305
+ raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
306
+
307
+ response, options = Api.send_request("/partners/create_export", :post, params, options)
308
+ Export.new(response.data, options)
309
+ end
310
+
300
311
  # Parameters:
301
312
  # ai_assistant_personality_id - int64 - AI Assistant Personality ID assigned to this Partner, if any. Users in the Partner inherit it unless a direct per-user assignment overrides it.
302
313
  # allowed_ips - string - A list of allowed IPs for this Partner. Newline delimited. Partner User IP access is allowed when the IP matches the Partner, User, or Site allowed IP lists.
@@ -232,6 +232,17 @@ module Files
232
232
  PartnerChannel.new(response.data, options)
233
233
  end
234
234
 
235
+ # Parameters:
236
+ # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `workspace_id`, `path` or `partner_id`.
237
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `partner_id` and `workspace_id`. Valid field combinations are `[ workspace_id, partner_id ]`.
238
+ def self.create_export(params = {}, options = {})
239
+ raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
240
+ raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
241
+
242
+ response, options = Api.send_request("/partner_channels/create_export", :post, params, options)
243
+ Export.new(response.data, options)
244
+ end
245
+
235
246
  # Parameters:
236
247
  # from_partner_folder_name - string - Optional Channel-level from-Partner folder name override.
237
248
  # from_partner_route_path - string - Optional route path for files uploaded by the Partner.
@@ -162,6 +162,17 @@ module Files
162
162
  nil
163
163
  end
164
164
 
165
+ # Parameters:
166
+ # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `host_partner_id`.
167
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `host_partner_id`.
168
+ def self.create_export(params = {}, options = {})
169
+ raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
170
+ raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
171
+
172
+ response, options = Api.send_request("/partner_site_requests/create_export", :post, params, options)
173
+ Export.new(response.data, options)
174
+ end
175
+
165
176
  def self.delete(id, params = {}, options = {})
166
177
  params ||= {}
167
178
  params[:id] = id
@@ -113,5 +113,10 @@ module Files
113
113
  def self.get(id, params = {}, options = {})
114
114
  find(id, params, options)
115
115
  end
116
+
117
+ def self.create_export(params = {}, options = {})
118
+ response, options = Api.send_request("/payments/create_export", :post, params, options)
119
+ Export.new(response.data, options)
120
+ end
116
121
  end
117
122
  end
@@ -0,0 +1,67 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Files
4
+ class PaypalExpressInfo
5
+ attr_reader :options, :attributes
6
+
7
+ def initialize(attributes = {}, options = {})
8
+ @attributes = attributes || {}
9
+ @options = options || {}
10
+ end
11
+
12
+ # email - Paypal billing email
13
+ def billing_email
14
+ @attributes[:billing_email]
15
+ end
16
+
17
+ # string - Paypal billing company name
18
+ def billing_company_name
19
+ @attributes[:billing_company_name]
20
+ end
21
+
22
+ # string - Paypal billing address
23
+ def billing_address
24
+ @attributes[:billing_address]
25
+ end
26
+
27
+ # string - Paypal billing address 2
28
+ def billing_address_2
29
+ @attributes[:billing_address_2]
30
+ end
31
+
32
+ # string - Paypal billing city
33
+ def billing_city
34
+ @attributes[:billing_city]
35
+ end
36
+
37
+ # string - Paypal billing state
38
+ def billing_state
39
+ @attributes[:billing_state]
40
+ end
41
+
42
+ # string - Paypal billing country
43
+ def billing_country
44
+ @attributes[:billing_country]
45
+ end
46
+
47
+ # string - Paypal billing zipcode
48
+ def billing_zip
49
+ @attributes[:billing_zip]
50
+ end
51
+
52
+ # string - Paypal billing name
53
+ def billing_name
54
+ @attributes[:billing_name]
55
+ end
56
+
57
+ # string - Paypal billing phone
58
+ def billing_phone
59
+ @attributes[:billing_phone]
60
+ end
61
+
62
+ # string - Paypal payer ID
63
+ def paypal_payer_id
64
+ @attributes[:paypal_payer_id]
65
+ end
66
+ end
67
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Files
4
+ class PaypalExpressUrl
5
+ attr_reader :options, :attributes
6
+
7
+ def initialize(attributes = {}, options = {})
8
+ @attributes = attributes || {}
9
+ @options = options || {}
10
+ end
11
+
12
+ # string - Redirect link
13
+ def redirect_to
14
+ @attributes[:redirect_to]
15
+ end
16
+ end
17
+ end
@@ -92,5 +92,24 @@ module Files
92
92
  def self.get(id, params = {}, options = {})
93
93
  find(id, params, options)
94
94
  end
95
+
96
+ # Parameters:
97
+ # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`, `status` or `folder_behavior_id`.
98
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `folder_behavior_id` or `status`. Valid field combinations are `[ folder_behavior_id, created_at ]`, `[ status, created_at ]`, `[ folder_behavior_id, status ]` or `[ folder_behavior_id, status, created_at ]`.
99
+ # filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
100
+ # filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
101
+ # filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
102
+ # filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
103
+ def self.create_export(params = {}, options = {})
104
+ raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
105
+ raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
106
+ raise InvalidParameterError.new("Bad parameter: filter_gt must be an Hash") if params[:filter_gt] and !params[:filter_gt].is_a?(Hash)
107
+ raise InvalidParameterError.new("Bad parameter: filter_gteq must be an Hash") if params[:filter_gteq] and !params[:filter_gteq].is_a?(Hash)
108
+ raise InvalidParameterError.new("Bad parameter: filter_lt must be an Hash") if params[:filter_lt] and !params[:filter_lt].is_a?(Hash)
109
+ raise InvalidParameterError.new("Bad parameter: filter_lteq must be an Hash") if params[:filter_lteq] and !params[:filter_lteq].is_a?(Hash)
110
+
111
+ response, options = Api.send_request("/pending_work_events/create_export", :post, params, options)
112
+ Export.new(response.data, options)
113
+ end
95
114
  end
96
115
  end
@@ -210,6 +210,28 @@ module Files
210
210
  Permission.new(response.data, options)
211
211
  end
212
212
 
213
+ # Parameters:
214
+ # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id`, `group_id`, `path`, `user_id`, `partner_id` or `id`.
215
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `path`, `group_id`, `partner_id` or `user_id`. Valid field combinations are `[ group_id, path ]`, `[ partner_id, path ]`, `[ user_id, path ]`, `[ user_id, group_id ]`, `[ user_id, group_id, path ]`, `[ user_id, group_id, partner_id ]` or `[ user_id, group_id, partner_id, path ]`.
216
+ # filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
217
+ # path - string - Permission path. If provided, will scope all permissions(including upward) to this path.
218
+ # include_groups - boolean - If searching by user or group, also include user's permissions that are inherited from its groups?
219
+ # group_id - string
220
+ # partner_id - string
221
+ # user_id - string
222
+ def self.create_export(params = {}, options = {})
223
+ raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
224
+ raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
225
+ raise InvalidParameterError.new("Bad parameter: filter_prefix must be an Hash") if params[:filter_prefix] and !params[:filter_prefix].is_a?(Hash)
226
+ raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
227
+ raise InvalidParameterError.new("Bad parameter: group_id must be an String") if params[:group_id] and !params[:group_id].is_a?(String)
228
+ raise InvalidParameterError.new("Bad parameter: partner_id must be an String") if params[:partner_id] and !params[:partner_id].is_a?(String)
229
+ raise InvalidParameterError.new("Bad parameter: user_id must be an String") if params[:user_id] and !params[:user_id].is_a?(String)
230
+
231
+ response, options = Api.send_request("/permissions/create_export", :post, params, options)
232
+ Export.new(response.data, options)
233
+ end
234
+
213
235
  def self.delete(id, params = {}, options = {})
214
236
  params ||= {}
215
237
  params[:id] = id
@@ -0,0 +1,209 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bigdecimal"
4
+
5
+ module Files
6
+ class Plan
7
+ attr_reader :options, :attributes
8
+
9
+ def initialize(attributes = {}, options = {})
10
+ @attributes = attributes || {}
11
+ @options = options || {}
12
+ end
13
+
14
+ # int64 - Plan ID
15
+ def id
16
+ @attributes[:id]
17
+ end
18
+
19
+ # decimal - Activation cost (upfront)
20
+ def activation_cost
21
+ value = @attributes[:activation_cost]
22
+ return value if value.nil? || value.is_a?(BigDecimal)
23
+
24
+ BigDecimal(value.to_s)
25
+ end
26
+
27
+ # string - Description of add on charges
28
+ def addon_description
29
+ @attributes[:addon_description]
30
+ end
31
+
32
+ # string - Price annually
33
+ def annually
34
+ @attributes[:annually]
35
+ end
36
+
37
+ # string - Addons price annually
38
+ def annually_addon
39
+ @attributes[:annually_addon]
40
+ end
41
+
42
+ # string - Cost per additional automation and sync flow
43
+ def automation_and_sync_flow_overage_cost
44
+ @attributes[:automation_and_sync_flow_overage_cost]
45
+ end
46
+
47
+ # int64 - Number of automation and sync flows included. 0 means unlimited.
48
+ def automation_and_sync_flows
49
+ @attributes[:automation_and_sync_flows]
50
+ end
51
+
52
+ # int64 - Number of child sites available
53
+ def child_sites
54
+ @attributes[:child_sites]
55
+ end
56
+
57
+ # string - Currency
58
+ def currency
59
+ @attributes[:currency]
60
+ end
61
+
62
+ # boolean - Offers dedicated ip?
63
+ def dedicated_ip
64
+ @attributes[:dedicated_ip]
65
+ end
66
+
67
+ # int64 - Number of dedicated IPs
68
+ def dedicated_ips
69
+ @attributes[:dedicated_ips]
70
+ end
71
+
72
+ # int64 - Number of custom domains
73
+ def domain_count
74
+ @attributes[:domain_count]
75
+ end
76
+
77
+ # boolean - Does this plan include the ECA feature bundle?
78
+ def feature_bundle_eca
79
+ @attributes[:feature_bundle_eca]
80
+ end
81
+
82
+ # boolean - Does this plan include the Power feature bundle?
83
+ def feature_bundle_power
84
+ @attributes[:feature_bundle_power]
85
+ end
86
+
87
+ # boolean - Does this plan include the Enterprise feature bundle?
88
+ def feature_bundle_premier
89
+ @attributes[:feature_bundle_premier]
90
+ end
91
+
92
+ # boolean - Does this plan include the Starter feature bundle?
93
+ def feature_bundle_starter
94
+ @attributes[:feature_bundle_starter]
95
+ end
96
+
97
+ # string - Price monthly
98
+ def monthly
99
+ @attributes[:monthly]
100
+ end
101
+
102
+ # string - Addons price monthly
103
+ def monthly_addon
104
+ @attributes[:monthly_addon]
105
+ end
106
+
107
+ # string - Plan name
108
+ def name
109
+ @attributes[:name]
110
+ end
111
+
112
+ # int64 - Number of outbound connections
113
+ def outbound_connections
114
+ @attributes[:outbound_connections]
115
+ end
116
+
117
+ # int64 - Number of previews available
118
+ def preview_page_limit
119
+ @attributes[:preview_page_limit]
120
+ end
121
+
122
+ # int64 - Number of storage regions included
123
+ def regions_included
124
+ @attributes[:regions_included]
125
+ end
126
+
127
+ # int64 - Number of minutes between remote sync
128
+ def remote_sync_interval
129
+ @attributes[:remote_sync_interval]
130
+ end
131
+
132
+ # string - Additional marketing text to show on signup page
133
+ def signup_page_marketing_text
134
+ @attributes[:signup_page_marketing_text]
135
+ end
136
+
137
+ # int64 - # of System Users included. 0 means that system users are included in the normal user quota.
138
+ def system_users
139
+ @attributes[:system_users]
140
+ end
141
+
142
+ # int64 - Number of child sites available
143
+ def staging_sites
144
+ @attributes[:staging_sites]
145
+ end
146
+
147
+ # string - Cost per million additional transformation and AI credits
148
+ def transformation_and_ai_credit_overage_cost_per_million
149
+ @attributes[:transformation_and_ai_credit_overage_cost_per_million]
150
+ end
151
+
152
+ # int64 - Transformation and AI credits included
153
+ def transformation_and_ai_credits
154
+ @attributes[:transformation_and_ai_credits]
155
+ end
156
+
157
+ # int64 - # of trial days included. Values of 0 or less mean no trial is offered.
158
+ def trial_days
159
+ @attributes[:trial_days]
160
+ end
161
+
162
+ # string - Cost per additional user
163
+ def user_cost
164
+ @attributes[:user_cost]
165
+ end
166
+
167
+ # string - Usage cost per GB of overage
168
+ def usage_cost
169
+ @attributes[:usage_cost]
170
+ end
171
+
172
+ # int64 - Usage included per month, in GB
173
+ def usage_included
174
+ @attributes[:usage_included]
175
+ end
176
+
177
+ # int64 - # of users included. 0 or -1 mean unlimited.
178
+ def users
179
+ @attributes[:users]
180
+ end
181
+
182
+ # Parameters:
183
+ # cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
184
+ # per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
185
+ # currency - string - Currency.
186
+ def self.list(params = {}, options = {})
187
+ raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
188
+ raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
189
+ raise InvalidParameterError.new("Bad parameter: currency must be an String") if params[:currency] and !params[:currency].is_a?(String)
190
+
191
+ List.new(Plan, params) do
192
+ Api.send_request("/plans", :get, params, options)
193
+ end
194
+ end
195
+
196
+ def self.all(params = {}, options = {})
197
+ list(params, options)
198
+ end
199
+
200
+ # Parameters:
201
+ # currency - string - Currency.
202
+ def self.create_export(params = {}, options = {})
203
+ raise InvalidParameterError.new("Bad parameter: currency must be an String") if params[:currency] and !params[:currency].is_a?(String)
204
+
205
+ response, options = Api.send_request("/plans/create_export", :post, params, options)
206
+ Export.new(response.data, options)
207
+ end
208
+ end
209
+ end
@@ -33,5 +33,62 @@ module Files
33
33
  def size
34
34
  @attributes[:size]
35
35
  end
36
+
37
+ # Parameters:
38
+ # cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
39
+ # per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
40
+ # ids (required) - string - Preview IDs. Comma delimited.
41
+ # bundle_registration_code - string - Bundle registration cookie code
42
+ # size - string - Preview Size
43
+ def self.list(params = {}, options = {})
44
+ raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
45
+ raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
46
+ raise InvalidParameterError.new("Bad parameter: ids must be an String") if params[:ids] and !params[:ids].is_a?(String)
47
+ 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)
48
+ raise InvalidParameterError.new("Bad parameter: size must be an String") if params[:size] and !params[:size].is_a?(String)
49
+ raise MissingParameterError.new("Parameter missing: ids") unless params[:ids]
50
+
51
+ List.new(Preview, params) do
52
+ Api.send_request("/previews", :get, params, options)
53
+ end
54
+ end
55
+
56
+ def self.all(params = {}, options = {})
57
+ list(params, options)
58
+ end
59
+
60
+ # Parameters:
61
+ # id (required) - int64 - Preview ID
62
+ # bundle_registration_code - string - Bundle registration cookie code
63
+ # size - string - Preview Size
64
+ def self.find(id, params = {}, options = {})
65
+ params ||= {}
66
+ params[:id] = id
67
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
68
+ 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)
69
+ raise InvalidParameterError.new("Bad parameter: size must be an String") if params[:size] and !params[:size].is_a?(String)
70
+ raise MissingParameterError.new("Parameter missing: id") unless params[:id]
71
+
72
+ response, options = Api.send_request("/previews/#{params[:id]}", :get, params, options)
73
+ Preview.new(response.data, options)
74
+ end
75
+
76
+ def self.get(id, params = {}, options = {})
77
+ find(id, params, options)
78
+ end
79
+
80
+ # Parameters:
81
+ # ids (required) - string - Preview IDs. Comma delimited.
82
+ # bundle_registration_code - string - Bundle registration cookie code
83
+ # size - string - Preview Size
84
+ def self.create_export(params = {}, options = {})
85
+ raise InvalidParameterError.new("Bad parameter: ids must be an String") if params[:ids] and !params[:ids].is_a?(String)
86
+ 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)
87
+ raise InvalidParameterError.new("Bad parameter: size must be an String") if params[:size] and !params[:size].is_a?(String)
88
+ raise MissingParameterError.new("Parameter missing: ids") unless params[:ids]
89
+
90
+ response, options = Api.send_request("/previews/create_export", :post, params, options)
91
+ Export.new(response.data, options)
92
+ end
36
93
  end
37
94
  end
@@ -109,6 +109,11 @@ module Files
109
109
  Project.new(response.data, options)
110
110
  end
111
111
 
112
+ def self.create_export(params = {}, options = {})
113
+ response, options = Api.send_request("/projects/create_export", :post, params, options)
114
+ Export.new(response.data, options)
115
+ end
116
+
112
117
  # Parameters:
113
118
  # global_access (required) - string - Global permissions. Can be: `none`, `anyone_with_read`, `anyone_with_full`.
114
119
  def self.update(id, params = {}, options = {})
@@ -64,6 +64,11 @@ module Files
64
64
  @attributes[:http_method]
65
65
  end
66
66
 
67
+ # string - Log Type
68
+ def log_type
69
+ @attributes[:log_type]
70
+ end
71
+
67
72
  # Parameters:
68
73
  # cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
69
74
  # per_page - int64 - Number of records to show per page. (Max: 2000, 1,000 or less is recommended).
@@ -91,5 +96,24 @@ module Files
91
96
  def self.all(params = {}, options = {})
92
97
  list(params, options)
93
98
  end
99
+
100
+ # Parameters:
101
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `path`, `remote_ip`, `success` or `created_at`. Valid field combinations are `[ path ]`, `[ remote_ip ]`, `[ success ]`, `[ created_at ]`, `[ path, remote_ip ]`, `[ path, success ]`, `[ path, created_at ]`, `[ remote_ip, success ]`, `[ remote_ip, created_at ]`, `[ success, created_at ]`, `[ path, remote_ip, success ]`, `[ path, remote_ip, created_at ]`, `[ path, success, created_at ]`, `[ remote_ip, success, created_at ]` or `[ path, remote_ip, success, created_at ]`.
102
+ # filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`. Valid field combinations are `[ path ]`, `[ remote_ip ]`, `[ success ]`, `[ created_at ]`, `[ path, remote_ip ]`, `[ path, success ]`, `[ path, created_at ]`, `[ remote_ip, success ]`, `[ remote_ip, created_at ]`, `[ success, created_at ]`, `[ path, remote_ip, success ]`, `[ path, remote_ip, created_at ]`, `[ path, success, created_at ]`, `[ remote_ip, success, created_at ]` or `[ path, remote_ip, success, created_at ]`.
103
+ # filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`. Valid field combinations are `[ path ]`, `[ remote_ip ]`, `[ success ]`, `[ created_at ]`, `[ path, remote_ip ]`, `[ path, success ]`, `[ path, created_at ]`, `[ remote_ip, success ]`, `[ remote_ip, created_at ]`, `[ success, created_at ]`, `[ path, remote_ip, success ]`, `[ path, remote_ip, created_at ]`, `[ path, success, created_at ]`, `[ remote_ip, success, created_at ]` or `[ path, remote_ip, success, created_at ]`.
104
+ # filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`. Valid field combinations are `[ path ]`, `[ remote_ip ]`, `[ success ]`, `[ created_at ]`, `[ path, remote_ip ]`, `[ path, success ]`, `[ path, created_at ]`, `[ remote_ip, success ]`, `[ remote_ip, created_at ]`, `[ success, created_at ]`, `[ path, remote_ip, success ]`, `[ path, remote_ip, created_at ]`, `[ path, success, created_at ]`, `[ remote_ip, success, created_at ]` or `[ path, remote_ip, success, created_at ]`.
105
+ # filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`. Valid field combinations are `[ path ]`, `[ remote_ip ]`, `[ success ]`, `[ created_at ]`, `[ path, remote_ip ]`, `[ path, success ]`, `[ path, created_at ]`, `[ remote_ip, success ]`, `[ remote_ip, created_at ]`, `[ success, created_at ]`, `[ path, remote_ip, success ]`, `[ path, remote_ip, created_at ]`, `[ path, success, created_at ]`, `[ remote_ip, success, created_at ]` or `[ path, remote_ip, success, created_at ]`.
106
+ # filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`. Valid field combinations are `[ path ]`, `[ remote_ip ]`, `[ success ]`, `[ created_at ]`, `[ path, remote_ip ]`, `[ path, success ]`, `[ path, created_at ]`, `[ remote_ip, success ]`, `[ remote_ip, created_at ]`, `[ success, created_at ]`, `[ path, remote_ip, success ]`, `[ path, remote_ip, created_at ]`, `[ path, success, created_at ]`, `[ remote_ip, success, created_at ]` or `[ path, remote_ip, success, created_at ]`.
107
+ def self.create_export(params = {}, options = {})
108
+ raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
109
+ raise InvalidParameterError.new("Bad parameter: filter_gt must be an Hash") if params[:filter_gt] and !params[:filter_gt].is_a?(Hash)
110
+ raise InvalidParameterError.new("Bad parameter: filter_gteq must be an Hash") if params[:filter_gteq] and !params[:filter_gteq].is_a?(Hash)
111
+ raise InvalidParameterError.new("Bad parameter: filter_prefix must be an Hash") if params[:filter_prefix] and !params[:filter_prefix].is_a?(Hash)
112
+ raise InvalidParameterError.new("Bad parameter: filter_lt must be an Hash") if params[:filter_lt] and !params[:filter_lt].is_a?(Hash)
113
+ raise InvalidParameterError.new("Bad parameter: filter_lteq must be an Hash") if params[:filter_lteq] and !params[:filter_lteq].is_a?(Hash)
114
+
115
+ response, options = Api.send_request("/public_hosting_request_logs/create_export", :post, params, options)
116
+ Export.new(response.data, options)
117
+ end
94
118
  end
95
119
  end
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Files
4
+ class PublicHostingSessionPairing
5
+ attr_reader :options, :attributes
6
+
7
+ def initialize(attributes = {}, options = {})
8
+ @attributes = attributes || {}
9
+ @options = options || {}
10
+ end
11
+
12
+ # string - One-time pairing key for the Public Hosting session
13
+ def pairing_key
14
+ @attributes[:pairing_key]
15
+ end
16
+
17
+ # string - Public Hosting URL that exchanges the pairing key for a Public Hosting session cookie
18
+ def redirect_uri
19
+ @attributes[:redirect_uri]
20
+ end
21
+
22
+ # date-time - When the pairing key expires
23
+ def expires_at
24
+ @attributes[:expires_at]
25
+ end
26
+ end
27
+ end