files.com 1.1.671 → 1.1.673

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 (349) 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 +67 -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/path_util.rb +1 -1
  226. data/lib/files.com/version.rb +1 -1
  227. data/lib/files.com.rb +0 -59
  228. data/shared/normalization_for_comparison_test_data.json +3 -1
  229. data/spec/models/file_underscore_destinations_spec.rb +24 -0
  230. data/spec/path_util_spec.rb +5 -0
  231. metadata +2 -119
  232. data/docs/account.md +0 -155
  233. data/docs/action_webhook_failure.md +0 -28
  234. data/docs/agent_proxy_identity.md +0 -49
  235. data/docs/agent_proxy_identity_endpoint.md +0 -11
  236. data/docs/agent_proxy_identity_result.md +0 -24
  237. data/docs/agent_v2_auth.md +0 -17
  238. data/docs/announcement.md +0 -57
  239. data/docs/blog_post.md +0 -57
  240. data/docs/bundle_recipient_registration.md +0 -39
  241. data/docs/certificate.md +0 -258
  242. data/docs/child_site.md +0 -583
  243. data/docs/clickwrap_acceptance.md +0 -30
  244. data/docs/client_log.md +0 -17
  245. data/docs/crash_report.md +0 -50
  246. data/docs/custom_domain_for_proxy.md +0 -23
  247. data/docs/email_preference.md +0 -108
  248. data/docs/email_preference_bundle_notification.md +0 -15
  249. data/docs/email_preference_notification.md +0 -17
  250. data/docs/export.md +0 -90
  251. data/docs/front_end_server.md +0 -111
  252. data/docs/frontend_metric.md +0 -34
  253. data/docs/inbox.md +0 -102
  254. data/docs/inbox_recipient_registration.md +0 -35
  255. data/docs/ip.md +0 -63
  256. data/docs/ip_abuse_entry.md +0 -47
  257. data/docs/label.md +0 -9
  258. data/docs/lead.md +0 -161
  259. data/docs/monitoring_stat.md +0 -38
  260. data/docs/monitoring_stats.md +0 -15
  261. data/docs/mover_package.md +0 -68
  262. data/docs/nps_response.md +0 -75
  263. data/docs/oauth_redirect.md +0 -11
  264. data/docs/paired_api_key.md +0 -19
  265. data/docs/paypal_express_info.md +0 -31
  266. data/docs/paypal_express_url.md +0 -11
  267. data/docs/plan.md +0 -107
  268. data/docs/public_hosting_session_pairing.md +0 -15
  269. data/docs/public_inbox.md +0 -121
  270. data/docs/public_url.md +0 -59
  271. data/docs/regional_migration.md +0 -0
  272. data/docs/release.md +0 -83
  273. data/docs/release_package.md +0 -19
  274. data/docs/revision.md +0 -40
  275. data/docs/safe_plan.md +0 -0
  276. data/docs/session_available_site.md +0 -26
  277. data/docs/setting.md +0 -33
  278. data/docs/settings.md +0 -498
  279. data/docs/ssl_certificate.md +0 -37
  280. data/docs/staging_site.md +0 -591
  281. data/docs/support_request.md +0 -126
  282. data/docs/sync_api_usage_snapshot.md +0 -23
  283. data/docs/sync_api_usage_snapshot_report.md +0 -71
  284. data/docs/sync_bandwidth_snapshot.md +0 -48
  285. data/docs/two_factor_authentication_method.md +0 -169
  286. data/docs/warning.md +0 -36
  287. data/docs/webauthn_sign_request.md +0 -13
  288. data/docs/zip_download.md +0 -32
  289. data/docs/zip_download_file.md +0 -45
  290. data/docs/zip_download_files.md +0 -23
  291. data/lib/files.com/models/account.rb +0 -346
  292. data/lib/files.com/models/action_webhook_failure.rb +0 -34
  293. data/lib/files.com/models/agent_proxy_identity.rb +0 -47
  294. data/lib/files.com/models/agent_proxy_identity_endpoint.rb +0 -17
  295. data/lib/files.com/models/agent_proxy_identity_result.rb +0 -27
  296. data/lib/files.com/models/agent_v2_auth.rb +0 -32
  297. data/lib/files.com/models/announcement.rb +0 -89
  298. data/lib/files.com/models/blog_post.rb +0 -84
  299. data/lib/files.com/models/bundle_recipient_registration.rb +0 -105
  300. data/lib/files.com/models/certificate.rb +0 -455
  301. data/lib/files.com/models/child_site.rb +0 -1756
  302. data/lib/files.com/models/clickwrap_acceptance.rb +0 -56
  303. data/lib/files.com/models/client_log.rb +0 -25
  304. data/lib/files.com/models/crash_report.rb +0 -151
  305. data/lib/files.com/models/custom_domain_for_proxy.rb +0 -47
  306. data/lib/files.com/models/email_preference.rb +0 -124
  307. data/lib/files.com/models/email_preference_bundle_notification.rb +0 -27
  308. data/lib/files.com/models/email_preference_notification.rb +0 -32
  309. data/lib/files.com/models/export.rb +0 -153
  310. data/lib/files.com/models/front_end_server.rb +0 -335
  311. data/lib/files.com/models/frontend_metric.rb +0 -65
  312. data/lib/files.com/models/inbox.rb +0 -123
  313. data/lib/files.com/models/inbox_recipient_registration.rb +0 -87
  314. data/lib/files.com/models/ip.rb +0 -82
  315. data/lib/files.com/models/ip_abuse_entry.rb +0 -96
  316. data/lib/files.com/models/label.rb +0 -22
  317. data/lib/files.com/models/lead.rb +0 -434
  318. data/lib/files.com/models/monitoring_stat.rb +0 -43
  319. data/lib/files.com/models/monitoring_stats.rb +0 -22
  320. data/lib/files.com/models/mover_package.rb +0 -80
  321. data/lib/files.com/models/nps_response.rb +0 -128
  322. data/lib/files.com/models/oauth_redirect.rb +0 -17
  323. data/lib/files.com/models/paired_api_key.rb +0 -37
  324. data/lib/files.com/models/paypal_express_info.rb +0 -67
  325. data/lib/files.com/models/paypal_express_url.rb +0 -17
  326. data/lib/files.com/models/plan.rb +0 -209
  327. data/lib/files.com/models/public_hosting_session_pairing.rb +0 -27
  328. data/lib/files.com/models/public_inbox.rb +0 -142
  329. data/lib/files.com/models/public_url.rb +0 -177
  330. data/lib/files.com/models/regional_migration.rb +0 -12
  331. data/lib/files.com/models/release.rb +0 -153
  332. data/lib/files.com/models/release_package.rb +0 -37
  333. data/lib/files.com/models/revision.rb +0 -53
  334. data/lib/files.com/models/safe_plan.rb +0 -12
  335. data/lib/files.com/models/session_available_site.rb +0 -47
  336. data/lib/files.com/models/setting.rb +0 -36
  337. data/lib/files.com/models/settings.rb +0 -1072
  338. data/lib/files.com/models/ssl_certificate.rb +0 -77
  339. data/lib/files.com/models/staging_site.rb +0 -1781
  340. data/lib/files.com/models/support_request.rb +0 -209
  341. data/lib/files.com/models/sync_api_usage_snapshot.rb +0 -47
  342. data/lib/files.com/models/sync_api_usage_snapshot_report.rb +0 -162
  343. data/lib/files.com/models/sync_bandwidth_snapshot.rb +0 -104
  344. data/lib/files.com/models/two_factor_authentication_method.rb +0 -250
  345. data/lib/files.com/models/warning.rb +0 -38
  346. data/lib/files.com/models/webauthn_sign_request.rb +0 -17
  347. data/lib/files.com/models/zip_download.rb +0 -73
  348. data/lib/files.com/models/zip_download_file.rb +0 -111
  349. data/lib/files.com/models/zip_download_files.rb +0 -42
@@ -1,346 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class Account
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # string - Account name
13
- def name
14
- @attributes[:name]
15
- end
16
-
17
- def name=(value)
18
- @attributes[:name] = value
19
- end
20
-
21
- # string - Account address
22
- def address
23
- @attributes[:address]
24
- end
25
-
26
- def address=(value)
27
- @attributes[:address] = value
28
- end
29
-
30
- # string - Account address 2
31
- def address_2
32
- @attributes[:address_2]
33
- end
34
-
35
- def address_2=(value)
36
- @attributes[:address_2] = value
37
- end
38
-
39
- # string - Account payment card number
40
- def card_number
41
- @attributes[:card_number]
42
- end
43
-
44
- def card_number=(value)
45
- @attributes[:card_number] = value
46
- end
47
-
48
- # string - Account payment card type
49
- def card_type
50
- @attributes[:card_type]
51
- end
52
-
53
- def card_type=(value)
54
- @attributes[:card_type] = value
55
- end
56
-
57
- # string - Account city
58
- def city
59
- @attributes[:city]
60
- end
61
-
62
- def city=(value)
63
- @attributes[:city] = value
64
- end
65
-
66
- # string - Account company name
67
- def company_name
68
- @attributes[:company_name]
69
- end
70
-
71
- def company_name=(value)
72
- @attributes[:company_name] = value
73
- end
74
-
75
- # string - Account country
76
- def country
77
- @attributes[:country]
78
- end
79
-
80
- def country=(value)
81
- @attributes[:country] = value
82
- end
83
-
84
- # date-time - Account creation date/time
85
- def created_at
86
- @attributes[:created_at]
87
- end
88
-
89
- # string - Account preferred currency
90
- def currency
91
- @attributes[:currency]
92
- end
93
-
94
- def currency=(value)
95
- @attributes[:currency] = value
96
- end
97
-
98
- # email - Account email address
99
- def email
100
- @attributes[:email]
101
- end
102
-
103
- def email=(value)
104
- @attributes[:email] = value
105
- end
106
-
107
- # string - Account phone number
108
- def phone_number
109
- @attributes[:phone_number]
110
- end
111
-
112
- def phone_number=(value)
113
- @attributes[:phone_number] = value
114
- end
115
-
116
- # string - Type of billing processor. Can be PayPal, Credit Card, or Manual
117
- def processor_type
118
- @attributes[:processor_type]
119
- end
120
-
121
- def processor_type=(value)
122
- @attributes[:processor_type] = value
123
- end
124
-
125
- # string - Account state
126
- def state
127
- @attributes[:state]
128
- end
129
-
130
- def state=(value)
131
- @attributes[:state] = value
132
- end
133
-
134
- # string - Account zipcode
135
- def zip
136
- @attributes[:zip]
137
- end
138
-
139
- def zip=(value)
140
- @attributes[:zip] = value
141
- end
142
-
143
- # int64 - Number of usage periods billed at once. This value will either be 12 representing an annual account of 12 usage periods or 1 representing a monthly account.
144
- def billing_frequency
145
- @attributes[:billing_frequency]
146
- end
147
-
148
- def billing_frequency=(value)
149
- @attributes[:billing_frequency] = value
150
- end
151
-
152
- # string - Expiration year(4 digits).
153
- def expiration_year
154
- @attributes[:expiration_year]
155
- end
156
-
157
- def expiration_year=(value)
158
- @attributes[:expiration_year] = value
159
- end
160
-
161
- # string - Expiration month(2 digits).
162
- def expiration_month
163
- @attributes[:expiration_month]
164
- end
165
-
166
- def expiration_month=(value)
167
- @attributes[:expiration_month] = value
168
- end
169
-
170
- # string - Required for some cards(Switch / Solo).
171
- def start_year
172
- @attributes[:start_year]
173
- end
174
-
175
- def start_year=(value)
176
- @attributes[:start_year] = value
177
- end
178
-
179
- # string - Required for some cards(Switch / Solo).
180
- def start_month
181
- @attributes[:start_month]
182
- end
183
-
184
- def start_month=(value)
185
- @attributes[:start_month] = value
186
- end
187
-
188
- # string - 3 digit code on the back of the card.
189
- def cvv
190
- @attributes[:cvv]
191
- end
192
-
193
- def cvv=(value)
194
- @attributes[:cvv] = value
195
- end
196
-
197
- # string - Token for paying with paypal.
198
- def paypal_token
199
- @attributes[:paypal_token]
200
- end
201
-
202
- def paypal_token=(value)
203
- @attributes[:paypal_token] = value
204
- end
205
-
206
- # string - Paypal payer ID for paying with paypal.
207
- def paypal_payer_id
208
- @attributes[:paypal_payer_id]
209
- end
210
-
211
- def paypal_payer_id=(value)
212
- @attributes[:paypal_payer_id] = value
213
- end
214
-
215
- # int64 - Plan ID to switch to immediately.
216
- def plan_id
217
- @attributes[:plan_id]
218
- end
219
-
220
- def plan_id=(value)
221
- @attributes[:plan_id] = value
222
- end
223
-
224
- # boolean - Create account without immediately charging the customer. (i.e. let the trial complete first.)
225
- def create_account
226
- @attributes[:create_account]
227
- end
228
-
229
- def create_account=(value)
230
- @attributes[:create_account] = value
231
- end
232
-
233
- def save
234
- if @attributes[:id]
235
- raise NotImplementedError.new("The Account object doesn't support updates.")
236
- else
237
- new_obj = Account.create(@attributes, @options)
238
- end
239
-
240
- @attributes = new_obj.attributes
241
- true
242
- end
243
-
244
- def self.get(params = {}, options = {})
245
- response, options = Api.send_request("/account", :get, params, options)
246
- Account.new(response.data, options)
247
- end
248
-
249
- # Parameters:
250
- # name - string - Internal name.
251
- # company_name - string - Company name.
252
- # address - string - Address line 1.
253
- # address_2 - string - Address line 2.
254
- # city - string - City.
255
- # state - string - State.
256
- # zip - string - Zipcode.
257
- # country - string - Country.
258
- # email - string - Email.
259
- # phone_number - string - Primary phone number.
260
- # card_number - string - Credit card number.
261
- # card_type - string - Credit card type. Can be visa, master, maestro, solo, switch, american_express, or discover.
262
- # expiration_year - string - Expiration year(4 digits).
263
- # expiration_month - string - Expiration month(2 digits).
264
- # start_year - string - Required for some cards(Switch / Solo).
265
- # start_month - string - Required for some cards(Switch / Solo).
266
- # cvv - string - 3 digit code on the back of the card.
267
- # paypal_token - string - Token for paying with paypal.
268
- # paypal_payer_id - string - Paypal payer ID for paying with paypal.
269
- # plan_id - int64 - Plan ID to switch to immediately.
270
- # billing_frequency - int64 - The billing frequency, in months, for the site. Must be 1 (monthly) or 12 (annual).
271
- # currency - string - Preferred currency for this account.
272
- # create_account - boolean - Create account without immediately charging the customer. (i.e. let the trial complete first.)
273
- def self.create(params = {}, options = {})
274
- raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
275
- raise InvalidParameterError.new("Bad parameter: company_name must be an String") if params[:company_name] and !params[:company_name].is_a?(String)
276
- raise InvalidParameterError.new("Bad parameter: address must be an String") if params[:address] and !params[:address].is_a?(String)
277
- raise InvalidParameterError.new("Bad parameter: address_2 must be an String") if params[:address_2] and !params[:address_2].is_a?(String)
278
- raise InvalidParameterError.new("Bad parameter: city must be an String") if params[:city] and !params[:city].is_a?(String)
279
- raise InvalidParameterError.new("Bad parameter: state must be an String") if params[:state] and !params[:state].is_a?(String)
280
- raise InvalidParameterError.new("Bad parameter: zip must be an String") if params[:zip] and !params[:zip].is_a?(String)
281
- raise InvalidParameterError.new("Bad parameter: country must be an String") if params[:country] and !params[:country].is_a?(String)
282
- raise InvalidParameterError.new("Bad parameter: email must be an String") if params[:email] and !params[:email].is_a?(String)
283
- raise InvalidParameterError.new("Bad parameter: phone_number must be an String") if params[:phone_number] and !params[:phone_number].is_a?(String)
284
- raise InvalidParameterError.new("Bad parameter: card_number must be an String") if params[:card_number] and !params[:card_number].is_a?(String)
285
- raise InvalidParameterError.new("Bad parameter: card_type must be an String") if params[:card_type] and !params[:card_type].is_a?(String)
286
- raise InvalidParameterError.new("Bad parameter: expiration_year must be an String") if params[:expiration_year] and !params[:expiration_year].is_a?(String)
287
- raise InvalidParameterError.new("Bad parameter: expiration_month must be an String") if params[:expiration_month] and !params[:expiration_month].is_a?(String)
288
- raise InvalidParameterError.new("Bad parameter: start_year must be an String") if params[:start_year] and !params[:start_year].is_a?(String)
289
- raise InvalidParameterError.new("Bad parameter: start_month must be an String") if params[:start_month] and !params[:start_month].is_a?(String)
290
- raise InvalidParameterError.new("Bad parameter: cvv must be an String") if params[:cvv] and !params[:cvv].is_a?(String)
291
- raise InvalidParameterError.new("Bad parameter: paypal_token must be an String") if params[:paypal_token] and !params[:paypal_token].is_a?(String)
292
- raise InvalidParameterError.new("Bad parameter: paypal_payer_id must be an String") if params[:paypal_payer_id] and !params[:paypal_payer_id].is_a?(String)
293
- raise InvalidParameterError.new("Bad parameter: plan_id must be an Integer") if params[:plan_id] and !params[:plan_id].is_a?(Integer)
294
- raise InvalidParameterError.new("Bad parameter: billing_frequency must be an Integer") if params[:billing_frequency] and !params[:billing_frequency].is_a?(Integer)
295
- raise InvalidParameterError.new("Bad parameter: currency must be an String") if params[:currency] and !params[:currency].is_a?(String)
296
-
297
- response, options = Api.send_request("/account", :post, params, options)
298
- Account.new(response.data, options)
299
- end
300
-
301
- # Parameters:
302
- # name - string - Internal name.
303
- # company_name - string - Company name.
304
- # address - string - Address line 1.
305
- # address_2 - string - Address line 2.
306
- # city - string - City.
307
- # state - string - State.
308
- # zip - string - Zipcode.
309
- # country - string - Country.
310
- # email - string - Email.
311
- # phone_number - string - Primary phone number.
312
- # card_number - string - Credit card number.
313
- # card_type - string - Credit card type. Can be visa, master, maestro, solo, switch, american_express, or discover.
314
- # expiration_year - string - Expiration year(4 digits).
315
- # expiration_month - string - Expiration month(2 digits).
316
- # start_year - string - Required for some cards(Switch / Solo).
317
- # start_month - string - Required for some cards(Switch / Solo).
318
- # cvv - string - 3 digit code on the back of the card.
319
- # paypal_token - string - Token for paying with paypal.
320
- # paypal_payer_id - string - Paypal payer ID for paying with paypal.
321
- def self.update(params = {}, options = {})
322
- raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
323
- raise InvalidParameterError.new("Bad parameter: company_name must be an String") if params[:company_name] and !params[:company_name].is_a?(String)
324
- raise InvalidParameterError.new("Bad parameter: address must be an String") if params[:address] and !params[:address].is_a?(String)
325
- raise InvalidParameterError.new("Bad parameter: address_2 must be an String") if params[:address_2] and !params[:address_2].is_a?(String)
326
- raise InvalidParameterError.new("Bad parameter: city must be an String") if params[:city] and !params[:city].is_a?(String)
327
- raise InvalidParameterError.new("Bad parameter: state must be an String") if params[:state] and !params[:state].is_a?(String)
328
- raise InvalidParameterError.new("Bad parameter: zip must be an String") if params[:zip] and !params[:zip].is_a?(String)
329
- raise InvalidParameterError.new("Bad parameter: country must be an String") if params[:country] and !params[:country].is_a?(String)
330
- raise InvalidParameterError.new("Bad parameter: email must be an String") if params[:email] and !params[:email].is_a?(String)
331
- raise InvalidParameterError.new("Bad parameter: phone_number must be an String") if params[:phone_number] and !params[:phone_number].is_a?(String)
332
- raise InvalidParameterError.new("Bad parameter: card_number must be an String") if params[:card_number] and !params[:card_number].is_a?(String)
333
- raise InvalidParameterError.new("Bad parameter: card_type must be an String") if params[:card_type] and !params[:card_type].is_a?(String)
334
- raise InvalidParameterError.new("Bad parameter: expiration_year must be an String") if params[:expiration_year] and !params[:expiration_year].is_a?(String)
335
- raise InvalidParameterError.new("Bad parameter: expiration_month must be an String") if params[:expiration_month] and !params[:expiration_month].is_a?(String)
336
- raise InvalidParameterError.new("Bad parameter: start_year must be an String") if params[:start_year] and !params[:start_year].is_a?(String)
337
- raise InvalidParameterError.new("Bad parameter: start_month must be an String") if params[:start_month] and !params[:start_month].is_a?(String)
338
- raise InvalidParameterError.new("Bad parameter: cvv must be an String") if params[:cvv] and !params[:cvv].is_a?(String)
339
- raise InvalidParameterError.new("Bad parameter: paypal_token must be an String") if params[:paypal_token] and !params[:paypal_token].is_a?(String)
340
- raise InvalidParameterError.new("Bad parameter: paypal_payer_id must be an String") if params[:paypal_payer_id] and !params[:paypal_payer_id].is_a?(String)
341
-
342
- response, options = Api.send_request("/account", :patch, params, options)
343
- Account.new(response.data, options)
344
- end
345
- end
346
- end
@@ -1,34 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class ActionWebhookFailure
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # Retry Action Webhook Failure
13
- def retry(params = {})
14
- params ||= {}
15
- params[:id] = @attributes[:id]
16
- raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
17
- raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
18
- raise MissingParameterError.new("Parameter missing: id") unless params[:id]
19
-
20
- Api.send_request("/action_webhook_failures/#{@attributes[:id]}/retry", :post, params, @options)
21
- end
22
-
23
- # Retry Action Webhook Failure
24
- def self.retry(id, params = {}, options = {})
25
- params ||= {}
26
- params[:id] = id
27
- raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
28
- raise MissingParameterError.new("Parameter missing: id") unless params[:id]
29
-
30
- Api.send_request("/action_webhook_failures/#{params[:id]}/retry", :post, params, options)
31
- nil
32
- end
33
- end
34
- end
@@ -1,47 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class AgentProxyIdentity
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # string - Libp2p peer ID for this identity candidate.
13
- def peer_id
14
- @attributes[:peer_id]
15
- end
16
-
17
- # array(object) - Protocol-specific endpoints for this peer ID.
18
- def endpoints
19
- @attributes[:endpoints]
20
- end
21
-
22
- # Parameters:
23
- # ips (required) - array(string) - One or more public IPv4 addresses to resolve
24
- def self.lookup(params = {}, options = {})
25
- raise InvalidParameterError.new("Bad parameter: ips must be an Array") if params[:ips] and !params[:ips].is_a?(Array)
26
- raise MissingParameterError.new("Parameter missing: ips") unless params[:ips]
27
-
28
- response, options = Api.send_request("/agent_proxy_identities/lookup", :post, params, options)
29
- response.data.map do |entity_data|
30
- AgentProxyIdentityResult.new(entity_data, options)
31
- end
32
- end
33
-
34
- # Parameters:
35
- # private_ip (required) - string - Proxy private IPv4 address
36
- # peer_id (required) - string - Libp2p peer ID currently served by the proxy
37
- def self.report(params = {}, options = {})
38
- raise InvalidParameterError.new("Bad parameter: private_ip must be an String") if params[:private_ip] and !params[:private_ip].is_a?(String)
39
- raise InvalidParameterError.new("Bad parameter: peer_id must be an String") if params[:peer_id] and !params[:peer_id].is_a?(String)
40
- raise MissingParameterError.new("Parameter missing: private_ip") unless params[:private_ip]
41
- raise MissingParameterError.new("Parameter missing: peer_id") unless params[:peer_id]
42
-
43
- Api.send_request("/agent_proxy_identities/report", :post, params, options)
44
- nil
45
- end
46
- end
47
- end
@@ -1,17 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class AgentProxyIdentityEndpoint
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # string - Canonical libp2p multiaddr for this proxy identity endpoint.
13
- def multiaddr
14
- @attributes[:multiaddr]
15
- end
16
- end
17
- end
@@ -1,27 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class AgentProxyIdentityResult
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # string - Requested public IPv4 address.
13
- def ip
14
- @attributes[:ip]
15
- end
16
-
17
- # string - Lookup status for the requested IP.
18
- def status
19
- @attributes[:status]
20
- end
21
-
22
- # array(object) - Ordered identity candidates for this IP during rotation.
23
- def identities
24
- @attributes[:identities]
25
- end
26
- end
27
- end
@@ -1,32 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class AgentV2Auth
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # int64 - Agent ID
13
- def id
14
- @attributes[:id]
15
- end
16
-
17
- # string - authentication nonce
18
- def nonce
19
- @attributes[:nonce]
20
- end
21
-
22
- # string - in_setup: waiting for signed_nonce, complete: authorization approved
23
- def status
24
- @attributes[:status]
25
- end
26
-
27
- # int64 - Agent's site ID
28
- def site_id
29
- @attributes[:site_id]
30
- end
31
- end
32
- end
@@ -1,89 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class Announcement
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # int64 - Announcement Id
13
- def id
14
- @attributes[:id]
15
- end
16
-
17
- # string - Announcement headline
18
- def headline
19
- @attributes[:headline]
20
- end
21
-
22
- # string - Announcement body
23
- def body
24
- @attributes[:body]
25
- end
26
-
27
- # string - Text to go on the CTA button
28
- def button_text
29
- @attributes[:button_text]
30
- end
31
-
32
- # string - URL to link to when CTA button is clicked
33
- def button_url
34
- @attributes[:button_url]
35
- end
36
-
37
- # string - Body converted to HTML
38
- def html_body
39
- @attributes[:html_body]
40
- end
41
-
42
- # string - Text for a label that can be added to the announcement
43
- def label
44
- @attributes[:label]
45
- end
46
-
47
- # string - Color for label on announcement
48
- def label_color
49
- @attributes[:label_color]
50
- end
51
-
52
- # date-time - When was this announcement published?
53
- def publish_at
54
- @attributes[:publish_at]
55
- end
56
-
57
- # string - URL slug for announcement
58
- def slug
59
- @attributes[:slug]
60
- end
61
-
62
- # Parameters:
63
- # 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
- # per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
65
- # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are .
66
- def self.list(params = {}, options = {})
67
- raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
68
- raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
69
- raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
70
-
71
- List.new(Announcement, params) do
72
- Api.send_request("/announcements", :get, params, options)
73
- end
74
- end
75
-
76
- def self.all(params = {}, options = {})
77
- list(params, options)
78
- end
79
-
80
- # Parameters:
81
- # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are .
82
- def self.create_export(params = {}, options = {})
83
- raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
84
-
85
- response, options = Api.send_request("/announcements/create_export", :post, params, options)
86
- Export.new(response.data, options)
87
- end
88
- end
89
- end
@@ -1,84 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class BlogPost
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # int64 - Blog Post ID
13
- def id
14
- @attributes[:id]
15
- end
16
-
17
- # string - Blog Post's Title
18
- def title
19
- @attributes[:title]
20
- end
21
-
22
- # string - Blog Post's Content
23
- def content
24
- @attributes[:content]
25
- end
26
-
27
- # date-time - Blog Post's Permanent Link
28
- def link
29
- @attributes[:link]
30
- end
31
-
32
- # date-time - Blog Post's Published Date
33
- def published_at
34
- @attributes[:published_at]
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
- # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `published_at`.
41
- # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `published_at`.
42
- # filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `published_at`.
43
- # filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `published_at`.
44
- # filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `published_at`.
45
- # filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `published_at`.
46
- def self.list(params = {}, options = {})
47
- raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
48
- raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
49
- raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
50
- raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
51
- raise InvalidParameterError.new("Bad parameter: filter_gt must be an Hash") if params[:filter_gt] and !params[:filter_gt].is_a?(Hash)
52
- raise InvalidParameterError.new("Bad parameter: filter_gteq must be an Hash") if params[:filter_gteq] and !params[:filter_gteq].is_a?(Hash)
53
- raise InvalidParameterError.new("Bad parameter: filter_lt must be an Hash") if params[:filter_lt] and !params[:filter_lt].is_a?(Hash)
54
- raise InvalidParameterError.new("Bad parameter: filter_lteq must be an Hash") if params[:filter_lteq] and !params[:filter_lteq].is_a?(Hash)
55
-
56
- List.new(BlogPost, params) do
57
- Api.send_request("/blog_posts", :get, params, options)
58
- end
59
- end
60
-
61
- def self.all(params = {}, options = {})
62
- list(params, options)
63
- end
64
-
65
- # Parameters:
66
- # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `published_at`.
67
- # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `published_at`.
68
- # filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `published_at`.
69
- # filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `published_at`.
70
- # filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `published_at`.
71
- # filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `published_at`.
72
- def self.create_export(params = {}, options = {})
73
- raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
74
- raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
75
- raise InvalidParameterError.new("Bad parameter: filter_gt must be an Hash") if params[:filter_gt] and !params[:filter_gt].is_a?(Hash)
76
- raise InvalidParameterError.new("Bad parameter: filter_gteq must be an Hash") if params[:filter_gteq] and !params[:filter_gteq].is_a?(Hash)
77
- raise InvalidParameterError.new("Bad parameter: filter_lt must be an Hash") if params[:filter_lt] and !params[:filter_lt].is_a?(Hash)
78
- raise InvalidParameterError.new("Bad parameter: filter_lteq must be an Hash") if params[:filter_lteq] and !params[:filter_lteq].is_a?(Hash)
79
-
80
- response, options = Api.send_request("/blog_posts/create_export", :post, params, options)
81
- Export.new(response.data, options)
82
- end
83
- end
84
- end