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
@@ -178,6 +178,11 @@ module Files
178
178
  ChildSiteManagementPolicy.new(response.data, options)
179
179
  end
180
180
 
181
+ def self.create_export(params = {}, options = {})
182
+ response, options = Api.send_request("/child_site_management_policies/create_export", :post, params, options)
183
+ Export.new(response.data, options)
184
+ end
185
+
181
186
  # Parameters:
182
187
  # value - object - Policy configuration data. Attributes differ by policy type. For more information, refer to the Value Hash section of the developer documentation.
183
188
  # skip_child_site_ids - array(int64) - IDs of child sites that this policy has been exempted from. If `skip_child_site_ids` is empty, the policy will be applied to all child sites. To apply a policy to a child site that has been exempted, remove it from `skip_child_site_ids` or set it to an empty array (`[]`).
@@ -161,6 +161,15 @@ module Files
161
161
  Clickwrap.new(response.data, options)
162
162
  end
163
163
 
164
+ # Parameters:
165
+ # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are .
166
+ def self.create_export(params = {}, options = {})
167
+ raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
168
+
169
+ response, options = Api.send_request("/clickwraps/create_export", :post, params, options)
170
+ Export.new(response.data, options)
171
+ end
172
+
164
173
  # Parameters:
165
174
  # name - string - Name of the Clickwrap agreement (used when selecting from multiple Clickwrap agreements.)
166
175
  # body - string - Body text of Clickwrap (supports Markdown formatting).
@@ -0,0 +1,56 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Files
4
+ class ClickwrapAcceptance
5
+ attr_reader :options, :attributes
6
+
7
+ def initialize(attributes = {}, options = {})
8
+ @attributes = attributes || {}
9
+ @options = options || {}
10
+ end
11
+
12
+ # int64 - Clickwrap Acceptance ID
13
+ def id
14
+ @attributes[:id]
15
+ end
16
+
17
+ def id=(value)
18
+ @attributes[:id] = value
19
+ end
20
+
21
+ # int64 - Clickwrap ID
22
+ def clickwrap_id
23
+ @attributes[:clickwrap_id]
24
+ end
25
+
26
+ def clickwrap_id=(value)
27
+ @attributes[:clickwrap_id] = value
28
+ end
29
+
30
+ # date-time - Acceptance timestamp
31
+ def created_at
32
+ @attributes[:created_at]
33
+ end
34
+
35
+ def save
36
+ if @attributes[:id]
37
+ raise NotImplementedError.new("The ClickwrapAcceptance object doesn't support updates.")
38
+ else
39
+ new_obj = ClickwrapAcceptance.create(@attributes, @options)
40
+ end
41
+
42
+ @attributes = new_obj.attributes
43
+ true
44
+ end
45
+
46
+ # Parameters:
47
+ # clickwrap_id (required) - int64
48
+ def self.create(params = {}, options = {})
49
+ raise InvalidParameterError.new("Bad parameter: clickwrap_id must be an Integer") if params[:clickwrap_id] and !params[:clickwrap_id].is_a?(Integer)
50
+ raise MissingParameterError.new("Parameter missing: clickwrap_id") unless params[:clickwrap_id]
51
+
52
+ response, options = Api.send_request("/clickwrap_acceptances", :post, params, options)
53
+ ClickwrapAcceptance.new(response.data, options)
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Files
4
+ class ClientLog
5
+ attr_reader :options, :attributes
6
+
7
+ def initialize(attributes = {}, options = {})
8
+ @attributes = attributes || {}
9
+ @options = options || {}
10
+ end
11
+
12
+ # Parameters:
13
+ # identifier (required) - string - Client log stream identifier
14
+ # body (required) - string - NDJSON log records
15
+ def self.log(params = {}, options = {})
16
+ raise InvalidParameterError.new("Bad parameter: identifier must be an String") if params[:identifier] and !params[:identifier].is_a?(String)
17
+ raise InvalidParameterError.new("Bad parameter: body must be an String") if params[:body] and !params[:body].is_a?(String)
18
+ raise MissingParameterError.new("Parameter missing: identifier") unless params[:identifier]
19
+ raise MissingParameterError.new("Parameter missing: body") unless params[:body]
20
+
21
+ Api.send_request("/client_logs/log", :post, params, options)
22
+ nil
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,151 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Files
4
+ class CrashReport
5
+ attr_reader :options, :attributes
6
+
7
+ def initialize(attributes = {}, options = {})
8
+ @attributes = attributes || {}
9
+ @options = options || {}
10
+ end
11
+
12
+ # int64 - Crash Report ID
13
+ def id
14
+ @attributes[:id]
15
+ end
16
+
17
+ def id=(value)
18
+ @attributes[:id] = value
19
+ end
20
+
21
+ # string
22
+ def build
23
+ @attributes[:build]
24
+ end
25
+
26
+ def build=(value)
27
+ @attributes[:build] = value
28
+ end
29
+
30
+ # string
31
+ def platform
32
+ @attributes[:platform]
33
+ end
34
+
35
+ def platform=(value)
36
+ @attributes[:platform] = value
37
+ end
38
+
39
+ # string
40
+ def product_name
41
+ @attributes[:product_name]
42
+ end
43
+
44
+ def product_name=(value)
45
+ @attributes[:product_name] = value
46
+ end
47
+
48
+ # string
49
+ def version
50
+ @attributes[:version]
51
+ end
52
+
53
+ def version=(value)
54
+ @attributes[:version] = value
55
+ end
56
+
57
+ # string
58
+ def comment
59
+ @attributes[:comment]
60
+ end
61
+
62
+ def comment=(value)
63
+ @attributes[:comment] = value
64
+ end
65
+
66
+ # string
67
+ def email
68
+ @attributes[:email]
69
+ end
70
+
71
+ def email=(value)
72
+ @attributes[:email] = value
73
+ end
74
+
75
+ # string
76
+ def platform_version
77
+ @attributes[:platform_version]
78
+ end
79
+
80
+ def platform_version=(value)
81
+ @attributes[:platform_version] = value
82
+ end
83
+
84
+ # string
85
+ def release_channel
86
+ @attributes[:release_channel]
87
+ end
88
+
89
+ def release_channel=(value)
90
+ @attributes[:release_channel] = value
91
+ end
92
+
93
+ # file
94
+ def dump_file
95
+ @attributes[:dump_file]
96
+ end
97
+
98
+ def dump_file=(value)
99
+ @attributes[:dump_file] = value
100
+ end
101
+
102
+ # file
103
+ def log_file
104
+ @attributes[:log_file]
105
+ end
106
+
107
+ def log_file=(value)
108
+ @attributes[:log_file] = value
109
+ end
110
+
111
+ def save
112
+ if @attributes[:id]
113
+ raise NotImplementedError.new("The CrashReport object doesn't support updates.")
114
+ else
115
+ new_obj = CrashReport.create(@attributes, @options)
116
+ end
117
+
118
+ @attributes = new_obj.attributes
119
+ true
120
+ end
121
+
122
+ # Parameters:
123
+ # build (required) - string
124
+ # platform (required) - string
125
+ # product_name (required) - string
126
+ # version (required) - string
127
+ # comment - string
128
+ # email - string
129
+ # platform_version - string
130
+ # release_channel - string
131
+ # dump_file - file
132
+ # log_file - file
133
+ def self.create(params = {}, options = {})
134
+ raise InvalidParameterError.new("Bad parameter: build must be an String") if params[:build] and !params[:build].is_a?(String)
135
+ raise InvalidParameterError.new("Bad parameter: platform must be an String") if params[:platform] and !params[:platform].is_a?(String)
136
+ raise InvalidParameterError.new("Bad parameter: product_name must be an String") if params[:product_name] and !params[:product_name].is_a?(String)
137
+ raise InvalidParameterError.new("Bad parameter: version must be an String") if params[:version] and !params[:version].is_a?(String)
138
+ raise InvalidParameterError.new("Bad parameter: comment must be an String") if params[:comment] and !params[:comment].is_a?(String)
139
+ raise InvalidParameterError.new("Bad parameter: email must be an String") if params[:email] and !params[:email].is_a?(String)
140
+ raise InvalidParameterError.new("Bad parameter: platform_version must be an String") if params[:platform_version] and !params[:platform_version].is_a?(String)
141
+ raise InvalidParameterError.new("Bad parameter: release_channel must be an String") if params[:release_channel] and !params[:release_channel].is_a?(String)
142
+ raise MissingParameterError.new("Parameter missing: build") unless params[:build]
143
+ raise MissingParameterError.new("Parameter missing: platform") unless params[:platform]
144
+ raise MissingParameterError.new("Parameter missing: product_name") unless params[:product_name]
145
+ raise MissingParameterError.new("Parameter missing: version") unless params[:version]
146
+
147
+ response, options = Api.send_request("/crash_reports", :post, params, options)
148
+ CrashReport.new(response.data, options)
149
+ end
150
+ end
151
+ end
@@ -177,6 +177,15 @@ module Files
177
177
  CustomDomain.new(response.data, options)
178
178
  end
179
179
 
180
+ # Parameters:
181
+ # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `id`.
182
+ def self.create_export(params = {}, options = {})
183
+ raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
184
+
185
+ response, options = Api.send_request("/custom_domains/create_export", :post, params, options)
186
+ Export.new(response.data, options)
187
+ end
188
+
180
189
  # Parameters:
181
190
  # destination - string - Where this custom domain routes. Can be `site_alias`, `public_hosting`, or `s3_endpoint`.
182
191
  # folder_behavior_id - int64 - Public Hosting behavior ID when this domain routes to a specific Public Hosting behavior.
@@ -0,0 +1,47 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Files
4
+ class CustomDomainForProxy
5
+ attr_reader :options, :attributes
6
+
7
+ def initialize(attributes = {}, options = {})
8
+ @attributes = attributes || {}
9
+ @options = options || {}
10
+ end
11
+
12
+ # int64 - Custom Domain ID.
13
+ def id
14
+ @attributes[:id]
15
+ end
16
+
17
+ # string - Customer-owned domain name.
18
+ def domain
19
+ @attributes[:domain]
20
+ end
21
+
22
+ # string - Routing destination: `site_alias`, `public_hosting`, or `s3_endpoint`.
23
+ def destination
24
+ @attributes[:destination]
25
+ end
26
+
27
+ # int64 - Attached SslCertificate ID.
28
+ def ssl_certificate_id
29
+ @attributes[:ssl_certificate_id]
30
+ end
31
+
32
+ # string - The text of the certificate itself.
33
+ def certificate
34
+ @attributes[:certificate]
35
+ end
36
+
37
+ # string - Private key used to generate the certificate.
38
+ def private_key
39
+ @attributes[:private_key]
40
+ end
41
+
42
+ # string - Intermediate certificates, if available.
43
+ def intermediates
44
+ @attributes[:intermediates]
45
+ end
46
+ end
47
+ end
@@ -160,6 +160,17 @@ module Files
160
160
  DesktopConfigurationProfile.new(response.data, options)
161
161
  end
162
162
 
163
+ # Parameters:
164
+ # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `workspace_id` and `name`.
165
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `workspace_id`.
166
+ def self.create_export(params = {}, options = {})
167
+ raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
168
+ raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
169
+
170
+ response, options = Api.send_request("/desktop_configuration_profiles/create_export", :post, params, options)
171
+ Export.new(response.data, options)
172
+ end
173
+
163
174
  # Parameters:
164
175
  # name - string - Profile name
165
176
  # workspace_id - int64 - Workspace ID
@@ -44,5 +44,10 @@ module Files
44
44
  def self.all(params = {}, options = {})
45
45
  list(params, options)
46
46
  end
47
+
48
+ def self.create_export(params = {}, options = {})
49
+ response, options = Api.send_request("/dns_records/create_export", :post, params, options)
50
+ Export.new(response.data, options)
51
+ end
47
52
  end
48
53
  end
@@ -83,5 +83,26 @@ module Files
83
83
  def self.all(params = {}, options = {})
84
84
  list(params, options)
85
85
  end
86
+
87
+ # Parameters:
88
+ # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`, `sender`, `status` or `inbox_id`.
89
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `inbox_id`, `sender` or `status`. Valid field combinations are `[ inbox_id, created_at ]`, `[ sender, created_at ]`, `[ status, created_at ]`, `[ inbox_id, status ]`, `[ status, sender ]`, `[ inbox_id, status, created_at ]`, `[ status, sender, created_at ]`, `[ inbox_id, status, sender ]` or `[ inbox_id, status, sender, created_at ]`.
90
+ # filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
91
+ # filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
92
+ # filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `sender`.
93
+ # filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
94
+ # filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
95
+ def self.create_export(params = {}, options = {})
96
+ raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
97
+ raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
98
+ raise InvalidParameterError.new("Bad parameter: filter_gt must be an Hash") if params[:filter_gt] and !params[:filter_gt].is_a?(Hash)
99
+ raise InvalidParameterError.new("Bad parameter: filter_gteq must be an Hash") if params[:filter_gteq] and !params[:filter_gteq].is_a?(Hash)
100
+ raise InvalidParameterError.new("Bad parameter: filter_prefix must be an Hash") if params[:filter_prefix] and !params[:filter_prefix].is_a?(Hash)
101
+ raise InvalidParameterError.new("Bad parameter: filter_lt must be an Hash") if params[:filter_lt] and !params[:filter_lt].is_a?(Hash)
102
+ raise InvalidParameterError.new("Bad parameter: filter_lteq must be an Hash") if params[:filter_lteq] and !params[:filter_lteq].is_a?(Hash)
103
+
104
+ response, options = Api.send_request("/email_incoming_messages/create_export", :post, params, options)
105
+ Export.new(response.data, options)
106
+ end
86
107
  end
87
108
  end
@@ -59,6 +59,11 @@ module Files
59
59
  @attributes[:created_at]
60
60
  end
61
61
 
62
+ # string - Log Type
63
+ def log_type
64
+ @attributes[:log_type]
65
+ end
66
+
62
67
  # Parameters:
63
68
  # 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.
64
69
  # per_page - int64 - Number of records to show per page. (Max: 2000, 1,000 or less is recommended).
@@ -84,5 +89,22 @@ module Files
84
89
  def self.all(params = {}, options = {})
85
90
  list(params, options)
86
91
  end
92
+
93
+ # Parameters:
94
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `status` and `created_at`. Valid field combinations are `[ status ]`, `[ created_at ]` or `[ status, created_at ]`.
95
+ # 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 `[ status ]`, `[ created_at ]` or `[ status, created_at ]`.
96
+ # 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 `[ status ]`, `[ created_at ]` or `[ status, created_at ]`.
97
+ # 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 `[ status ]`, `[ created_at ]` or `[ status, created_at ]`.
98
+ # 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 `[ status ]`, `[ created_at ]` or `[ status, created_at ]`.
99
+ def self.create_export(params = {}, options = {})
100
+ raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
101
+ raise InvalidParameterError.new("Bad parameter: filter_gt must be an Hash") if params[:filter_gt] and !params[:filter_gt].is_a?(Hash)
102
+ raise InvalidParameterError.new("Bad parameter: filter_gteq must be an Hash") if params[:filter_gteq] and !params[:filter_gteq].is_a?(Hash)
103
+ raise InvalidParameterError.new("Bad parameter: filter_lt must be an Hash") if params[:filter_lt] and !params[:filter_lt].is_a?(Hash)
104
+ raise InvalidParameterError.new("Bad parameter: filter_lteq must be an Hash") if params[:filter_lteq] and !params[:filter_lteq].is_a?(Hash)
105
+
106
+ response, options = Api.send_request("/email_logs/create_export", :post, params, options)
107
+ Export.new(response.data, options)
108
+ end
87
109
  end
88
110
  end
@@ -0,0 +1,124 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Files
4
+ class EmailPreference
5
+ attr_reader :options, :attributes
6
+
7
+ def initialize(attributes = {}, options = {})
8
+ @attributes = attributes || {}
9
+ @options = options || {}
10
+ end
11
+
12
+ # email - Email address
13
+ def email
14
+ @attributes[:email]
15
+ end
16
+
17
+ # array(object) - A list of notifications
18
+ def notifications
19
+ @attributes[:notifications]
20
+ end
21
+
22
+ # array(object) - A list of bundle notifications
23
+ def bundle_notifications
24
+ @attributes[:bundle_notifications]
25
+ end
26
+
27
+ # boolean - Deprecated. Use granular admin email preferences instead.
28
+ def receive_admin_alerts
29
+ @attributes[:receive_admin_alerts]
30
+ end
31
+
32
+ # boolean - Receive site warnings?
33
+ def notify_on_all_site_warnings
34
+ @attributes[:notify_on_all_site_warnings]
35
+ end
36
+
37
+ # boolean - Receive sso/scim/ldap configuration/sync failures?
38
+ def notify_on_all_sso_failures
39
+ @attributes[:notify_on_all_sso_failures]
40
+ end
41
+
42
+ # boolean - Receive user security events?
43
+ def notify_on_all_user_security_events
44
+ @attributes[:notify_on_all_user_security_events]
45
+ end
46
+
47
+ # boolean - Receive pending work failures?
48
+ def notify_on_all_pending_work_failures
49
+ @attributes[:notify_on_all_pending_work_failures]
50
+ end
51
+
52
+ # boolean - Receive siem failures?
53
+ def notify_on_all_siem_http_destination_failures
54
+ @attributes[:notify_on_all_siem_http_destination_failures]
55
+ end
56
+
57
+ # boolean - Receive sync failures?
58
+ def notify_on_all_sync_failures
59
+ @attributes[:notify_on_all_sync_failures]
60
+ end
61
+
62
+ # boolean - Receive automation failures?
63
+ def notify_on_all_automation_failures
64
+ @attributes[:notify_on_all_automation_failures]
65
+ end
66
+
67
+ # boolean - Receive expectation failures and misses?
68
+ def notify_on_all_expectation_failures
69
+ @attributes[:notify_on_all_expectation_failures]
70
+ end
71
+
72
+ # boolean - Receive marketing mail?
73
+ def receive_marketing_mail
74
+ @attributes[:receive_marketing_mail]
75
+ end
76
+
77
+ # boolean - Receive transactional (service-related) mail?
78
+ def receive_transactional_mail
79
+ @attributes[:receive_transactional_mail]
80
+ end
81
+
82
+ # Parameters:
83
+ # token (required) - string - Email preferences token.
84
+ def self.get(token, params = {}, options = {})
85
+ params ||= {}
86
+ params[:token] = token
87
+ raise InvalidParameterError.new("Bad parameter: token must be an String") if params[:token] and !params[:token].is_a?(String)
88
+ raise MissingParameterError.new("Parameter missing: token") unless params[:token]
89
+
90
+ response, options = Api.send_request("/email_preferences/#{params[:token]}", :get, params, options)
91
+ EmailPreference.new(response.data, options)
92
+ end
93
+
94
+ # Parameters:
95
+ # token (required) - string - Email preferences token.
96
+ # user[receive_admin_alerts] - boolean
97
+ # user[notify_on_all_site_warnings] - boolean
98
+ # user[notify_on_all_sso_failures] - boolean
99
+ # user[notify_on_all_user_security_events] - boolean
100
+ # user[notify_on_all_pending_work_failures] - boolean
101
+ # user[notify_on_all_siem_http_destination_failures] - boolean
102
+ # user[notify_on_all_sync_failures] - boolean
103
+ # user[notify_on_all_automation_failures] - boolean
104
+ # user[notify_on_all_expectation_failures] - boolean
105
+ # user[unsubscribe_marketing] - boolean
106
+ # user[unsubscribe_transactional] - boolean
107
+ # user[unsubscribe] - boolean
108
+ # user[notifications][id] (required) - array(int64)
109
+ # user[notifications][group] - array(boolean)
110
+ # user[notifications][send_interval] - array(string)
111
+ # user[notifications][unsubscribe] - array(boolean)
112
+ # user[bundle_notifications][id] (required) - array(int64)
113
+ # user[bundle_notifications][unsubscribe] - array(boolean)
114
+ def self.update(token, params = {}, options = {})
115
+ params ||= {}
116
+ params[:token] = token
117
+ raise InvalidParameterError.new("Bad parameter: token must be an String") if params[:token] and !params[:token].is_a?(String)
118
+ raise MissingParameterError.new("Parameter missing: token") unless params[:token]
119
+
120
+ response, options = Api.send_request("/email_preferences/#{params[:token]}", :patch, params, options)
121
+ EmailPreference.new(response.data, options)
122
+ end
123
+ end
124
+ end
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Files
4
+ class EmailPreferenceBundleNotification
5
+ attr_reader :options, :attributes
6
+
7
+ def initialize(attributes = {}, options = {})
8
+ @attributes = attributes || {}
9
+ @options = options || {}
10
+ end
11
+
12
+ # int64 - Email preferences ID
13
+ def id
14
+ @attributes[:id]
15
+ end
16
+
17
+ # string - Bundle code
18
+ def bundle_code
19
+ @attributes[:bundle_code]
20
+ end
21
+
22
+ # boolean - Is unsubscribed?
23
+ def unsubscribed
24
+ @attributes[:unsubscribed]
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,32 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Files
4
+ class EmailPreferenceNotification
5
+ attr_reader :options, :attributes
6
+
7
+ def initialize(attributes = {}, options = {})
8
+ @attributes = attributes || {}
9
+ @options = options || {}
10
+ end
11
+
12
+ # int64 - Email preferences ID
13
+ def id
14
+ @attributes[:id]
15
+ end
16
+
17
+ # string - Folder path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
18
+ def path
19
+ @attributes[:path]
20
+ end
21
+
22
+ # string - The time interval that notifications are aggregated to. Can be five_minutes, fifteen_minutes, hourly, or daily
23
+ def send_interval
24
+ @attributes[:send_interval]
25
+ end
26
+
27
+ # boolean - Is unsubscribed?
28
+ def unsubscribed
29
+ @attributes[:unsubscribed]
30
+ end
31
+ end
32
+ end
@@ -170,6 +170,17 @@ module Files
170
170
  EventChannel.new(response.data, options)
171
171
  end
172
172
 
173
+ # Parameters:
174
+ # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `name`, `enabled`, `default_channel` or `workspace_id`.
175
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `enabled`, `default_channel` or `workspace_id`. Valid field combinations are `[ workspace_id, enabled ]` and `[ workspace_id, default_channel ]`.
176
+ def self.create_export(params = {}, options = {})
177
+ raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
178
+ raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
179
+
180
+ response, options = Api.send_request("/event_channels/create_export", :post, params, options)
181
+ Export.new(response.data, options)
182
+ end
183
+
173
184
  # Parameters:
174
185
  # name - string - Event Channel name.
175
186
  # workspace_id - int64 - Workspace ID. 0 means the default workspace.
@@ -119,5 +119,16 @@ module Files
119
119
  def self.get(id, params = {}, options = {})
120
120
  find(id, params, options)
121
121
  end
122
+
123
+ # Parameters:
124
+ # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`, `status`, `event_record_id`, `event_target_id` or `workspace_id`.
125
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `status`, `workspace_id`, `event_record_id` or `event_target_id`. Valid field combinations are `[ workspace_id, status ]`, `[ workspace_id, event_record_id ]` or `[ workspace_id, event_target_id ]`.
126
+ def self.create_export(params = {}, options = {})
127
+ raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
128
+ raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
129
+
130
+ response, options = Api.send_request("/event_delivery_attempts/create_export", :post, params, options)
131
+ Export.new(response.data, options)
132
+ end
122
133
  end
123
134
  end
@@ -129,5 +129,26 @@ module Files
129
129
  def self.get(id, params = {}, options = {})
130
130
  find(id, params, options)
131
131
  end
132
+
133
+ # Parameters:
134
+ # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `event_type`, `created_at` or `workspace_id`.
135
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `event_type` or `workspace_id`. Valid field combinations are `[ event_type, created_at ]`, `[ workspace_id, created_at ]`, `[ workspace_id, event_type ]` or `[ workspace_id, event_type, created_at ]`.
136
+ # filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
137
+ # filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
138
+ # filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `event_type`.
139
+ # filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
140
+ # filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
141
+ def self.create_export(params = {}, options = {})
142
+ raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
143
+ raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
144
+ raise InvalidParameterError.new("Bad parameter: filter_gt must be an Hash") if params[:filter_gt] and !params[:filter_gt].is_a?(Hash)
145
+ raise InvalidParameterError.new("Bad parameter: filter_gteq must be an Hash") if params[:filter_gteq] and !params[:filter_gteq].is_a?(Hash)
146
+ raise InvalidParameterError.new("Bad parameter: filter_prefix must be an Hash") if params[:filter_prefix] and !params[:filter_prefix].is_a?(Hash)
147
+ raise InvalidParameterError.new("Bad parameter: filter_lt must be an Hash") if params[:filter_lt] and !params[:filter_lt].is_a?(Hash)
148
+ raise InvalidParameterError.new("Bad parameter: filter_lteq must be an Hash") if params[:filter_lteq] and !params[:filter_lteq].is_a?(Hash)
149
+
150
+ response, options = Api.send_request("/event_records/create_export", :post, params, options)
151
+ Export.new(response.data, options)
152
+ end
132
153
  end
133
154
  end