files.com 1.1.671 → 1.1.672

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 (345) hide show
  1. checksums.yaml +4 -4
  2. data/_VERSION +1 -1
  3. data/docs/action_log.md +1 -21
  4. data/docs/action_notification_export_result.md +0 -17
  5. data/docs/ai_assistant_personality.md +0 -14
  6. data/docs/ai_task.md +0 -14
  7. data/docs/api_key.md +1 -27
  8. data/docs/api_request_log.md +1 -21
  9. data/docs/app.md +0 -15
  10. data/docs/as2_incoming_message.md +0 -18
  11. data/docs/as2_outgoing_message.md +0 -18
  12. data/docs/as2_partner.md +0 -14
  13. data/docs/as2_station.md +0 -14
  14. data/docs/automation.md +1 -22
  15. data/docs/automation_log.md +1 -21
  16. data/docs/automation_run.md +0 -19
  17. data/docs/bandwidth_snapshot.md +0 -18
  18. data/docs/behavior.md +0 -14
  19. data/docs/bundle.md +1 -50
  20. data/docs/bundle_action.md +0 -25
  21. data/docs/bundle_download.md +0 -23
  22. data/docs/bundle_notification.md +0 -19
  23. data/docs/bundle_recipient.md +0 -21
  24. data/docs/bundle_registration.md +0 -61
  25. data/docs/chat_session.md +2 -14
  26. data/docs/child_site_management_policy.md +0 -9
  27. data/docs/clickwrap.md +0 -13
  28. data/docs/custom_domain.md +0 -13
  29. data/docs/desktop_configuration_profile.md +0 -14
  30. data/docs/dns_record.md +0 -9
  31. data/docs/email_incoming_message.md +0 -19
  32. data/docs/email_log.md +1 -20
  33. data/docs/event_channel.md +0 -14
  34. data/docs/event_delivery_attempt.md +0 -14
  35. data/docs/event_record.md +0 -19
  36. data/docs/event_subscription.md +0 -14
  37. data/docs/event_target.md +0 -14
  38. data/docs/exavault_api_request_log.md +1 -21
  39. data/docs/expectation.md +0 -14
  40. data/docs/expectation_evaluation.md +0 -14
  41. data/docs/expectation_incident.md +0 -14
  42. data/docs/external_event.md +0 -18
  43. data/docs/file.md +2 -90
  44. data/docs/file_migration.md +0 -32
  45. data/docs/file_migration_log.md +1 -20
  46. data/docs/file_upload_part.md +1 -3
  47. data/docs/folder.md +0 -20
  48. data/docs/form_field_set.md +0 -15
  49. data/docs/ftp_action_log.md +1 -21
  50. data/docs/gpg_key.md +0 -21
  51. data/docs/group.md +0 -19
  52. data/docs/group_user.md +2 -22
  53. data/docs/history.md +0 -85
  54. data/docs/history_export_result.md +0 -17
  55. data/docs/holiday_region.md +0 -9
  56. data/docs/inbound_s3_log.md +1 -21
  57. data/docs/inbox_recipient.md +0 -19
  58. data/docs/inbox_registration.md +0 -57
  59. data/docs/inbox_upload.md +0 -18
  60. data/docs/invoice.md +0 -9
  61. data/docs/ip_address.md +0 -59
  62. data/docs/key_lifecycle_rule.md +0 -14
  63. data/docs/lock.md +0 -15
  64. data/docs/message.md +0 -17
  65. data/docs/message_comment.md +0 -18
  66. data/docs/message_comment_reaction.md +0 -18
  67. data/docs/message_reaction.md +0 -17
  68. data/docs/metadata_category.md +0 -13
  69. data/docs/notification.md +0 -20
  70. data/docs/outbound_connection_log.md +1 -21
  71. data/docs/partner.md +0 -14
  72. data/docs/partner_channel.md +0 -14
  73. data/docs/partner_site_request.md +0 -14
  74. data/docs/payment.md +0 -9
  75. data/docs/pending_work_event.md +0 -18
  76. data/docs/permission.md +0 -22
  77. data/docs/preview.md +0 -57
  78. data/docs/project.md +0 -9
  79. data/docs/public_hosting_request_log.md +1 -21
  80. data/docs/public_key.md +0 -21
  81. data/docs/remote_bandwidth_snapshot.md +0 -18
  82. data/docs/remote_mount_backend.md +0 -13
  83. data/docs/remote_server.md +0 -233
  84. data/docs/remote_server_credential.md +0 -15
  85. data/docs/request.md +0 -17
  86. data/docs/restore.md +0 -14
  87. data/docs/scheduled_export.md +0 -15
  88. data/docs/scim_log.md +0 -13
  89. data/docs/session.md +1 -232
  90. data/docs/settings_change.md +0 -16
  91. data/docs/sftp_action_log.md +1 -21
  92. data/docs/sftp_host_key.md +0 -9
  93. data/docs/share_group.md +0 -15
  94. data/docs/siem_http_destination.md +0 -9
  95. data/docs/siem_http_destination_event.md +0 -18
  96. data/docs/site.md +0 -179
  97. data/docs/site_subdomain_redirect.md +0 -13
  98. data/docs/snapshot.md +0 -9
  99. data/docs/sso_event.md +0 -19
  100. data/docs/sso_strategy.md +0 -406
  101. data/docs/sync.md +0 -14
  102. data/docs/sync_log.md +1 -20
  103. data/docs/sync_run.md +0 -21
  104. data/docs/usage_daily_snapshot.md +0 -18
  105. data/docs/usage_snapshot.md +0 -9
  106. data/docs/user.md +2 -49
  107. data/docs/user_cipher_use.md +0 -21
  108. data/docs/user_lifecycle_rule.md +0 -14
  109. data/docs/user_request.md +0 -9
  110. data/docs/user_security_event.md +0 -18
  111. data/docs/user_sftp_client_use.md +0 -15
  112. data/docs/web_dav_action_log.md +1 -21
  113. data/docs/workspace.md +0 -15
  114. data/lib/files.com/models/action_log.rb +0 -24
  115. data/lib/files.com/models/action_notification_export_result.rb +0 -12
  116. data/lib/files.com/models/ai_assistant_personality.rb +0 -11
  117. data/lib/files.com/models/ai_task.rb +0 -11
  118. data/lib/files.com/models/api_key.rb +5 -39
  119. data/lib/files.com/models/api_request_log.rb +0 -24
  120. data/lib/files.com/models/app.rb +0 -13
  121. data/lib/files.com/models/as2_incoming_message.rb +0 -19
  122. data/lib/files.com/models/as2_outgoing_message.rb +0 -19
  123. data/lib/files.com/models/as2_partner.rb +0 -11
  124. data/lib/files.com/models/as2_station.rb +0 -11
  125. data/lib/files.com/models/automation.rb +0 -30
  126. data/lib/files.com/models/automation_log.rb +0 -24
  127. data/lib/files.com/models/automation_run.rb +0 -16
  128. data/lib/files.com/models/bandwidth_snapshot.rb +0 -19
  129. data/lib/files.com/models/behavior.rb +0 -11
  130. data/lib/files.com/models/bundle.rb +0 -52
  131. data/lib/files.com/models/bundle_action.rb +0 -25
  132. data/lib/files.com/models/bundle_download.rb +0 -23
  133. data/lib/files.com/models/bundle_notification.rb +0 -15
  134. data/lib/files.com/models/bundle_recipient.rb +0 -27
  135. data/lib/files.com/models/bundle_registration.rb +0 -125
  136. data/lib/files.com/models/chat_session.rb +5 -11
  137. data/lib/files.com/models/child_site_management_policy.rb +0 -5
  138. data/lib/files.com/models/clickwrap.rb +0 -9
  139. data/lib/files.com/models/custom_domain.rb +0 -9
  140. data/lib/files.com/models/desktop_configuration_profile.rb +0 -11
  141. data/lib/files.com/models/dns_record.rb +0 -5
  142. data/lib/files.com/models/email_incoming_message.rb +0 -21
  143. data/lib/files.com/models/email_log.rb +0 -22
  144. data/lib/files.com/models/event_channel.rb +0 -11
  145. data/lib/files.com/models/event_delivery_attempt.rb +0 -11
  146. data/lib/files.com/models/event_record.rb +0 -21
  147. data/lib/files.com/models/event_subscription.rb +0 -11
  148. data/lib/files.com/models/event_target.rb +0 -11
  149. data/lib/files.com/models/exavault_api_request_log.rb +0 -24
  150. data/lib/files.com/models/expectation.rb +0 -11
  151. data/lib/files.com/models/expectation_evaluation.rb +0 -11
  152. data/lib/files.com/models/expectation_incident.rb +0 -11
  153. data/lib/files.com/models/external_event.rb +0 -19
  154. data/lib/files.com/models/file.rb +0 -207
  155. data/lib/files.com/models/file_migration.rb +0 -27
  156. data/lib/files.com/models/file_migration_log.rb +0 -22
  157. data/lib/files.com/models/file_upload_part.rb +0 -5
  158. data/lib/files.com/models/folder.rb +0 -69
  159. data/lib/files.com/models/form_field_set.rb +0 -9
  160. data/lib/files.com/models/ftp_action_log.rb +0 -24
  161. data/lib/files.com/models/gpg_key.rb +0 -21
  162. data/lib/files.com/models/group.rb +0 -16
  163. data/lib/files.com/models/group_user.rb +1 -21
  164. data/lib/files.com/models/history.rb +0 -94
  165. data/lib/files.com/models/history_export_result.rb +0 -12
  166. data/lib/files.com/models/holiday_region.rb +0 -5
  167. data/lib/files.com/models/inbound_s3_log.rb +0 -24
  168. data/lib/files.com/models/inbox_recipient.rb +0 -25
  169. data/lib/files.com/models/inbox_registration.rb +0 -121
  170. data/lib/files.com/models/inbox_upload.rb +0 -19
  171. data/lib/files.com/models/invoice.rb +0 -5
  172. data/lib/files.com/models/ip_address.rb +0 -37
  173. data/lib/files.com/models/key_lifecycle_rule.rb +0 -11
  174. data/lib/files.com/models/lock.rb +0 -27
  175. data/lib/files.com/models/message.rb +0 -12
  176. data/lib/files.com/models/message_comment.rb +0 -14
  177. data/lib/files.com/models/message_comment_reaction.rb +0 -14
  178. data/lib/files.com/models/message_reaction.rb +0 -12
  179. data/lib/files.com/models/metadata_category.rb +0 -9
  180. data/lib/files.com/models/notification.rb +0 -18
  181. data/lib/files.com/models/outbound_connection_log.rb +0 -24
  182. data/lib/files.com/models/partner.rb +0 -11
  183. data/lib/files.com/models/partner_channel.rb +0 -11
  184. data/lib/files.com/models/partner_site_request.rb +0 -11
  185. data/lib/files.com/models/payment.rb +0 -5
  186. data/lib/files.com/models/pending_work_event.rb +0 -19
  187. data/lib/files.com/models/permission.rb +0 -22
  188. data/lib/files.com/models/preview.rb +0 -57
  189. data/lib/files.com/models/project.rb +0 -5
  190. data/lib/files.com/models/public_hosting_request_log.rb +0 -24
  191. data/lib/files.com/models/public_key.rb +0 -21
  192. data/lib/files.com/models/remote_bandwidth_snapshot.rb +0 -19
  193. data/lib/files.com/models/remote_mount_backend.rb +0 -9
  194. data/lib/files.com/models/remote_server.rb +0 -297
  195. data/lib/files.com/models/remote_server_credential.rb +0 -13
  196. data/lib/files.com/models/request.rb +0 -12
  197. data/lib/files.com/models/restore.rb +0 -11
  198. data/lib/files.com/models/scheduled_export.rb +0 -13
  199. data/lib/files.com/models/scim_log.rb +0 -9
  200. data/lib/files.com/models/session.rb +0 -493
  201. data/lib/files.com/models/settings_change.rb +0 -16
  202. data/lib/files.com/models/sftp_action_log.rb +0 -24
  203. data/lib/files.com/models/sftp_host_key.rb +0 -5
  204. data/lib/files.com/models/share_group.rb +0 -9
  205. data/lib/files.com/models/siem_http_destination.rb +0 -5
  206. data/lib/files.com/models/siem_http_destination_event.rb +0 -19
  207. data/lib/files.com/models/site.rb +0 -1021
  208. data/lib/files.com/models/site_subdomain_redirect.rb +0 -9
  209. data/lib/files.com/models/snapshot.rb +0 -5
  210. data/lib/files.com/models/sso_event.rb +0 -21
  211. data/lib/files.com/models/sso_strategy.rb +0 -632
  212. data/lib/files.com/models/sync.rb +0 -11
  213. data/lib/files.com/models/sync_log.rb +0 -22
  214. data/lib/files.com/models/sync_run.rb +0 -21
  215. data/lib/files.com/models/usage_daily_snapshot.rb +0 -19
  216. data/lib/files.com/models/usage_snapshot.rb +0 -5
  217. data/lib/files.com/models/user.rb +0 -59
  218. data/lib/files.com/models/user_cipher_use.rb +0 -21
  219. data/lib/files.com/models/user_lifecycle_rule.rb +0 -11
  220. data/lib/files.com/models/user_request.rb +0 -5
  221. data/lib/files.com/models/user_security_event.rb +0 -19
  222. data/lib/files.com/models/user_sftp_client_use.rb +0 -9
  223. data/lib/files.com/models/web_dav_action_log.rb +0 -24
  224. data/lib/files.com/models/workspace.rb +0 -13
  225. data/lib/files.com/version.rb +1 -1
  226. data/lib/files.com.rb +0 -59
  227. metadata +1 -119
  228. data/docs/account.md +0 -155
  229. data/docs/action_webhook_failure.md +0 -28
  230. data/docs/agent_proxy_identity.md +0 -49
  231. data/docs/agent_proxy_identity_endpoint.md +0 -11
  232. data/docs/agent_proxy_identity_result.md +0 -24
  233. data/docs/agent_v2_auth.md +0 -17
  234. data/docs/announcement.md +0 -57
  235. data/docs/blog_post.md +0 -57
  236. data/docs/bundle_recipient_registration.md +0 -39
  237. data/docs/certificate.md +0 -258
  238. data/docs/child_site.md +0 -583
  239. data/docs/clickwrap_acceptance.md +0 -30
  240. data/docs/client_log.md +0 -17
  241. data/docs/crash_report.md +0 -50
  242. data/docs/custom_domain_for_proxy.md +0 -23
  243. data/docs/email_preference.md +0 -108
  244. data/docs/email_preference_bundle_notification.md +0 -15
  245. data/docs/email_preference_notification.md +0 -17
  246. data/docs/export.md +0 -90
  247. data/docs/front_end_server.md +0 -111
  248. data/docs/frontend_metric.md +0 -34
  249. data/docs/inbox.md +0 -102
  250. data/docs/inbox_recipient_registration.md +0 -35
  251. data/docs/ip.md +0 -63
  252. data/docs/ip_abuse_entry.md +0 -47
  253. data/docs/label.md +0 -9
  254. data/docs/lead.md +0 -161
  255. data/docs/monitoring_stat.md +0 -38
  256. data/docs/monitoring_stats.md +0 -15
  257. data/docs/mover_package.md +0 -68
  258. data/docs/nps_response.md +0 -75
  259. data/docs/oauth_redirect.md +0 -11
  260. data/docs/paired_api_key.md +0 -19
  261. data/docs/paypal_express_info.md +0 -31
  262. data/docs/paypal_express_url.md +0 -11
  263. data/docs/plan.md +0 -107
  264. data/docs/public_hosting_session_pairing.md +0 -15
  265. data/docs/public_inbox.md +0 -121
  266. data/docs/public_url.md +0 -59
  267. data/docs/regional_migration.md +0 -0
  268. data/docs/release.md +0 -83
  269. data/docs/release_package.md +0 -19
  270. data/docs/revision.md +0 -40
  271. data/docs/safe_plan.md +0 -0
  272. data/docs/session_available_site.md +0 -26
  273. data/docs/setting.md +0 -33
  274. data/docs/settings.md +0 -498
  275. data/docs/ssl_certificate.md +0 -37
  276. data/docs/staging_site.md +0 -591
  277. data/docs/support_request.md +0 -126
  278. data/docs/sync_api_usage_snapshot.md +0 -23
  279. data/docs/sync_api_usage_snapshot_report.md +0 -71
  280. data/docs/sync_bandwidth_snapshot.md +0 -48
  281. data/docs/two_factor_authentication_method.md +0 -169
  282. data/docs/warning.md +0 -36
  283. data/docs/webauthn_sign_request.md +0 -13
  284. data/docs/zip_download.md +0 -32
  285. data/docs/zip_download_file.md +0 -45
  286. data/docs/zip_download_files.md +0 -23
  287. data/lib/files.com/models/account.rb +0 -346
  288. data/lib/files.com/models/action_webhook_failure.rb +0 -34
  289. data/lib/files.com/models/agent_proxy_identity.rb +0 -47
  290. data/lib/files.com/models/agent_proxy_identity_endpoint.rb +0 -17
  291. data/lib/files.com/models/agent_proxy_identity_result.rb +0 -27
  292. data/lib/files.com/models/agent_v2_auth.rb +0 -32
  293. data/lib/files.com/models/announcement.rb +0 -89
  294. data/lib/files.com/models/blog_post.rb +0 -84
  295. data/lib/files.com/models/bundle_recipient_registration.rb +0 -105
  296. data/lib/files.com/models/certificate.rb +0 -455
  297. data/lib/files.com/models/child_site.rb +0 -1756
  298. data/lib/files.com/models/clickwrap_acceptance.rb +0 -56
  299. data/lib/files.com/models/client_log.rb +0 -25
  300. data/lib/files.com/models/crash_report.rb +0 -151
  301. data/lib/files.com/models/custom_domain_for_proxy.rb +0 -47
  302. data/lib/files.com/models/email_preference.rb +0 -124
  303. data/lib/files.com/models/email_preference_bundle_notification.rb +0 -27
  304. data/lib/files.com/models/email_preference_notification.rb +0 -32
  305. data/lib/files.com/models/export.rb +0 -153
  306. data/lib/files.com/models/front_end_server.rb +0 -335
  307. data/lib/files.com/models/frontend_metric.rb +0 -65
  308. data/lib/files.com/models/inbox.rb +0 -123
  309. data/lib/files.com/models/inbox_recipient_registration.rb +0 -87
  310. data/lib/files.com/models/ip.rb +0 -82
  311. data/lib/files.com/models/ip_abuse_entry.rb +0 -96
  312. data/lib/files.com/models/label.rb +0 -22
  313. data/lib/files.com/models/lead.rb +0 -434
  314. data/lib/files.com/models/monitoring_stat.rb +0 -43
  315. data/lib/files.com/models/monitoring_stats.rb +0 -22
  316. data/lib/files.com/models/mover_package.rb +0 -80
  317. data/lib/files.com/models/nps_response.rb +0 -128
  318. data/lib/files.com/models/oauth_redirect.rb +0 -17
  319. data/lib/files.com/models/paired_api_key.rb +0 -37
  320. data/lib/files.com/models/paypal_express_info.rb +0 -67
  321. data/lib/files.com/models/paypal_express_url.rb +0 -17
  322. data/lib/files.com/models/plan.rb +0 -209
  323. data/lib/files.com/models/public_hosting_session_pairing.rb +0 -27
  324. data/lib/files.com/models/public_inbox.rb +0 -142
  325. data/lib/files.com/models/public_url.rb +0 -177
  326. data/lib/files.com/models/regional_migration.rb +0 -12
  327. data/lib/files.com/models/release.rb +0 -153
  328. data/lib/files.com/models/release_package.rb +0 -37
  329. data/lib/files.com/models/revision.rb +0 -53
  330. data/lib/files.com/models/safe_plan.rb +0 -12
  331. data/lib/files.com/models/session_available_site.rb +0 -47
  332. data/lib/files.com/models/setting.rb +0 -36
  333. data/lib/files.com/models/settings.rb +0 -1072
  334. data/lib/files.com/models/ssl_certificate.rb +0 -77
  335. data/lib/files.com/models/staging_site.rb +0 -1781
  336. data/lib/files.com/models/support_request.rb +0 -209
  337. data/lib/files.com/models/sync_api_usage_snapshot.rb +0 -47
  338. data/lib/files.com/models/sync_api_usage_snapshot_report.rb +0 -162
  339. data/lib/files.com/models/sync_bandwidth_snapshot.rb +0 -104
  340. data/lib/files.com/models/two_factor_authentication_method.rb +0 -250
  341. data/lib/files.com/models/warning.rb +0 -38
  342. data/lib/files.com/models/webauthn_sign_request.rb +0 -17
  343. data/lib/files.com/models/zip_download.rb +0 -73
  344. data/lib/files.com/models/zip_download_file.rb +0 -111
  345. data/lib/files.com/models/zip_download_files.rb +0 -42
@@ -1,250 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class TwoFactorAuthenticationMethod
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # int64 - 2fa ID
13
- def id
14
- @attributes[:id]
15
- end
16
-
17
- def id=(value)
18
- @attributes[:id] = value
19
- end
20
-
21
- # string - 2fa method name
22
- def name
23
- @attributes[:name]
24
- end
25
-
26
- def name=(value)
27
- @attributes[:name] = value
28
- end
29
-
30
- # string - Type of 2fa
31
- def method_type
32
- @attributes[:method_type]
33
- end
34
-
35
- def method_type=(value)
36
- @attributes[:method_type] = value
37
- end
38
-
39
- # string - 2fa phone number (if SMS)
40
- def phone_number
41
- @attributes[:phone_number]
42
- end
43
-
44
- def phone_number=(value)
45
- @attributes[:phone_number] = value
46
- end
47
-
48
- # string - 2fa phone number country (if SMS)
49
- def phone_number_country
50
- @attributes[:phone_number_country]
51
- end
52
-
53
- def phone_number_country=(value)
54
- @attributes[:phone_number_country] = value
55
- end
56
-
57
- # string - 2fa phone number national format (if SMS)
58
- def phone_number_national_format
59
- @attributes[:phone_number_national_format]
60
- end
61
-
62
- def phone_number_national_format=(value)
63
- @attributes[:phone_number_national_format] = value
64
- end
65
-
66
- # array(string) - For the Static method type, this is the list of tokens which can be used
67
- def secret_tokens
68
- @attributes[:secret_tokens]
69
- end
70
-
71
- def secret_tokens=(value)
72
- @attributes[:secret_tokens] = value
73
- end
74
-
75
- # boolean - 2fa setup expired?
76
- def setup_expired
77
- @attributes[:setup_expired]
78
- end
79
-
80
- def setup_expired=(value)
81
- @attributes[:setup_expired] = value
82
- end
83
-
84
- # boolean - 2fa setup complete?
85
- def setup_complete
86
- @attributes[:setup_complete]
87
- end
88
-
89
- def setup_complete=(value)
90
- @attributes[:setup_complete] = value
91
- end
92
-
93
- # date-time - 2fa setup expires at this date/time (typically 10 minutes after a new method is created)
94
- def setup_expires_at
95
- @attributes[:setup_expires_at]
96
- end
97
-
98
- def setup_expires_at=(value)
99
- @attributes[:setup_expires_at] = value
100
- end
101
-
102
- # string - TOTP provisioning URI (if TOTP)
103
- def totp_provisioning_uri
104
- @attributes[:totp_provisioning_uri]
105
- end
106
-
107
- def totp_provisioning_uri=(value)
108
- @attributes[:totp_provisioning_uri] = value
109
- end
110
-
111
- # object - WebAuthn / FIDO 2 registration options (if WebAuthn)
112
- def webauthn_registration_options
113
- @attributes[:webauthn_registration_options]
114
- end
115
-
116
- def webauthn_registration_options=(value)
117
- @attributes[:webauthn_registration_options] = value
118
- end
119
-
120
- # boolean - Set true to skip checking this 2FA method when using FTP, SFTP, and DAV
121
- def bypass_for_ftp_sftp_dav
122
- @attributes[:bypass_for_ftp_sftp_dav]
123
- end
124
-
125
- def bypass_for_ftp_sftp_dav=(value)
126
- @attributes[:bypass_for_ftp_sftp_dav] = value
127
- end
128
-
129
- # string - Current value of OTP, Yubikey string, or Webauthn response value.
130
- def otp
131
- @attributes[:otp]
132
- end
133
-
134
- def otp=(value)
135
- @attributes[:otp] = value
136
- end
137
-
138
- # Parameters:
139
- # otp - string - Current value of OTP, Yubikey string, or Webauthn response value.
140
- # name - string - 2fa method name
141
- # bypass_for_ftp_sftp_dav - boolean - Set true to skip checking this 2FA method when using FTP, SFTP, and DAV
142
- def update(params = {})
143
- params ||= {}
144
- params[:id] = @attributes[:id]
145
- raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
146
- raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
147
- raise InvalidParameterError.new("Bad parameter: otp must be an String") if params[:otp] and !params[:otp].is_a?(String)
148
- raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
149
- raise MissingParameterError.new("Parameter missing: id") unless params[:id]
150
-
151
- Api.send_request("/2fa/#{@attributes[:id]}", :patch, params, @options)
152
- end
153
-
154
- def delete(params = {})
155
- params ||= {}
156
- params[:id] = @attributes[:id]
157
- raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
158
- raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
159
- raise MissingParameterError.new("Parameter missing: id") unless params[:id]
160
-
161
- Api.send_request("/2fa/#{@attributes[:id]}", :delete, params, @options)
162
- end
163
-
164
- def destroy(params = {})
165
- delete(params)
166
- nil
167
- end
168
-
169
- def save
170
- if @attributes[:id]
171
- new_obj = update(@attributes)
172
- else
173
- new_obj = TwoFactorAuthenticationMethod.create(@attributes, @options)
174
- end
175
-
176
- @attributes = new_obj.attributes
177
- true
178
- end
179
-
180
- # Parameters:
181
- # 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.
182
- # per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
183
- def self.get(params = {}, options = {})
184
- raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
185
- raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
186
-
187
- List.new(TwoFactorAuthenticationMethod, params) do
188
- Api.send_request("/2fa", :get, params, options)
189
- end
190
- end
191
-
192
- # Parameters:
193
- # method_type (required) - string - Type of 2fa
194
- # name - string - 2fa method name
195
- # phone_number - string - 2fa phone number (if SMS)
196
- # bypass_for_ftp_sftp_dav - boolean - Set true to skip checking this 2FA method when using FTP, SFTP, and DAV
197
- def self.create(params = {}, options = {})
198
- raise InvalidParameterError.new("Bad parameter: method_type must be an String") if params[:method_type] and !params[:method_type].is_a?(String)
199
- raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
200
- raise InvalidParameterError.new("Bad parameter: phone_number must be an String") if params[:phone_number] and !params[:phone_number].is_a?(String)
201
- raise MissingParameterError.new("Parameter missing: method_type") unless params[:method_type]
202
-
203
- response, options = Api.send_request("/2fa", :post, params, options)
204
- TwoFactorAuthenticationMethod.new(response.data, options)
205
- end
206
-
207
- # Parameters:
208
- # webauthn_only - boolean - Set to `true` to only generate an OTP for Webauthn keys and skip things like SMS.
209
- def self.send_code(params = {}, options = {})
210
- response, options = Api.send_request("/2fa/send_code", :post, params, options)
211
- WebauthnSignRequest.new(response.data, options)
212
- end
213
-
214
- def self.create_export(params = {}, options = {})
215
- response, options = Api.send_request("/2fa/create_export", :post, params, options)
216
- Export.new(response.data, options)
217
- end
218
-
219
- # Parameters:
220
- # otp - string - Current value of OTP, Yubikey string, or Webauthn response value.
221
- # name - string - 2fa method name
222
- # bypass_for_ftp_sftp_dav - boolean - Set true to skip checking this 2FA method when using FTP, SFTP, and DAV
223
- def self.update(id, params = {}, options = {})
224
- params ||= {}
225
- params[:id] = id
226
- raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
227
- raise InvalidParameterError.new("Bad parameter: otp must be an String") if params[:otp] and !params[:otp].is_a?(String)
228
- raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
229
- raise MissingParameterError.new("Parameter missing: id") unless params[:id]
230
-
231
- response, options = Api.send_request("/2fa/#{params[:id]}", :patch, params, options)
232
- TwoFactorAuthenticationMethod.new(response.data, options)
233
- end
234
-
235
- def self.delete(id, params = {}, options = {})
236
- params ||= {}
237
- params[:id] = id
238
- raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
239
- raise MissingParameterError.new("Parameter missing: id") unless params[:id]
240
-
241
- Api.send_request("/2fa/#{params[:id]}", :delete, params, options)
242
- nil
243
- end
244
-
245
- def self.destroy(id, params = {}, options = {})
246
- delete(id, params, options)
247
- nil
248
- end
249
- end
250
- end
@@ -1,38 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class Warning
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # array(object) - A list of warnings
13
- def warnings
14
- @attributes[:warnings]
15
- end
16
-
17
- # Parameters:
18
- # 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.
19
- # per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
20
- def self.list(params = {}, options = {})
21
- raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
22
- raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
23
-
24
- List.new(Warning, params) do
25
- Api.send_request("/warnings", :get, params, options)
26
- end
27
- end
28
-
29
- def self.all(params = {}, options = {})
30
- list(params, options)
31
- end
32
-
33
- def self.create_export(params = {}, options = {})
34
- response, options = Api.send_request("/warnings/create_export", :post, params, options)
35
- Export.new(response.data, options)
36
- end
37
- end
38
- end
@@ -1,17 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class WebauthnSignRequest
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # array(object) - WebAuthn / FIDO 2 authentication options
13
- def webauthn_authentication_options
14
- @attributes[:webauthn_authentication_options]
15
- end
16
- end
17
- end
@@ -1,73 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class ZipDownload
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # string - URL for downloading the ZIP
13
- def download_uri
14
- @attributes[:download_uri]
15
- end
16
-
17
- def download_uri=(value)
18
- @attributes[:download_uri] = value
19
- end
20
-
21
- # array(string)
22
- def paths
23
- @attributes[:paths]
24
- end
25
-
26
- def paths=(value)
27
- @attributes[:paths] = value
28
- end
29
-
30
- # string
31
- def bundle_registration_code
32
- @attributes[:bundle_registration_code]
33
- end
34
-
35
- def bundle_registration_code=(value)
36
- @attributes[:bundle_registration_code] = value
37
- end
38
-
39
- # array(string)
40
- def encoded_paths
41
- @attributes[:encoded_paths]
42
- end
43
-
44
- def encoded_paths=(value)
45
- @attributes[:encoded_paths] = value
46
- end
47
-
48
- def save
49
- if @attributes[:id]
50
- raise NotImplementedError.new("The ZipDownload object doesn't support updates.")
51
- else
52
- new_obj = ZipDownload.create(@attributes, @options)
53
- end
54
-
55
- @attributes = new_obj.attributes
56
- true
57
- end
58
-
59
- # Parameters:
60
- # paths (required) - array(string)
61
- # bundle_registration_code - string
62
- # encoded_paths - array(string)
63
- def self.create(params = {}, options = {})
64
- raise InvalidParameterError.new("Bad parameter: paths must be an Array") if params[:paths] and !params[:paths].is_a?(Array)
65
- 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)
66
- raise InvalidParameterError.new("Bad parameter: encoded_paths must be an Array") if params[:encoded_paths] and !params[:encoded_paths].is_a?(Array)
67
- raise MissingParameterError.new("Parameter missing: paths") unless params[:paths]
68
-
69
- response, options = Api.send_request("/zip_downloads", :post, params, options)
70
- ZipDownload.new(response.data, options)
71
- end
72
- end
73
- end
@@ -1,111 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class ZipDownloadFile
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # int64 - Site Id
13
- def site_id
14
- @attributes[:site_id]
15
- end
16
-
17
- def site_id=(value)
18
- @attributes[:site_id] = value
19
- end
20
-
21
- # int64 - User Id
22
- def user_id
23
- @attributes[:user_id]
24
- end
25
-
26
- def user_id=(value)
27
- @attributes[:user_id] = value
28
- end
29
-
30
- # int64 - Bundle Id
31
- def bundle_id
32
- @attributes[:bundle_id]
33
- end
34
-
35
- def bundle_id=(value)
36
- @attributes[:bundle_id] = value
37
- end
38
-
39
- # int64 - Bundle Registration Id
40
- def bundle_registration_id
41
- @attributes[:bundle_registration_id]
42
- end
43
-
44
- def bundle_registration_id=(value)
45
- @attributes[:bundle_registration_id] = value
46
- end
47
-
48
- # array(object) - A list of file names, sizes, and signed download URLs.
49
- def files
50
- @attributes[:files]
51
- end
52
-
53
- def files=(value)
54
- @attributes[:files] = value
55
- end
56
-
57
- # string - Cursor for fetching more files in subsequent requests.
58
- def cursor
59
- @attributes[:cursor]
60
- end
61
-
62
- def cursor=(value)
63
- @attributes[:cursor] = value
64
- end
65
-
66
- # string - Secure code that was generated when creating the zip download.
67
- def code
68
- @attributes[:code]
69
- end
70
-
71
- def code=(value)
72
- @attributes[:code] = value
73
- end
74
-
75
- # int64 - Limit the number of files returned.
76
- def limit
77
- @attributes[:limit]
78
- end
79
-
80
- def limit=(value)
81
- @attributes[:limit] = value
82
- end
83
-
84
- def save
85
- if @attributes[:id]
86
- raise NotImplementedError.new("The ZipDownloadFile object doesn't support updates.")
87
- else
88
- new_obj = ZipDownloadFile.create(@attributes, @options)
89
- end
90
-
91
- @attributes = new_obj.attributes
92
- true
93
- end
94
-
95
- # Parameters:
96
- # code (required) - string - Secure code that was generated when creating the zip download.
97
- # limit - int64 - Limit the number of files returned.
98
- # cursor - string - Cursor used for paging through files.
99
- # site_id - int64 - Only check the given site for the zip download.
100
- def self.create(params = {}, options = {})
101
- raise InvalidParameterError.new("Bad parameter: code must be an String") if params[:code] and !params[:code].is_a?(String)
102
- raise InvalidParameterError.new("Bad parameter: limit must be an Integer") if params[:limit] and !params[:limit].is_a?(Integer)
103
- raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
104
- raise InvalidParameterError.new("Bad parameter: site_id must be an Integer") if params[:site_id] and !params[:site_id].is_a?(Integer)
105
- raise MissingParameterError.new("Parameter missing: code") unless params[:code]
106
-
107
- response, options = Api.send_request("/zip_download_files", :post, params, options)
108
- ZipDownloadFiles.new(response.data, options)
109
- end
110
- end
111
- end
@@ -1,42 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class ZipDownloadFiles
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # int64 - Site Id
13
- def site_id
14
- @attributes[:site_id]
15
- end
16
-
17
- # int64 - User Id
18
- def user_id
19
- @attributes[:user_id]
20
- end
21
-
22
- # int64 - Bundle Id
23
- def bundle_id
24
- @attributes[:bundle_id]
25
- end
26
-
27
- # int64 - Bundle Registration Id
28
- def bundle_registration_id
29
- @attributes[:bundle_registration_id]
30
- end
31
-
32
- # array(object) - A list of file names, sizes, and signed download URLs.
33
- def files
34
- @attributes[:files]
35
- end
36
-
37
- # string - Cursor for fetching more files in subsequent requests.
38
- def cursor
39
- @attributes[:cursor]
40
- end
41
- end
42
- end