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,177 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class PublicUrl
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # int64 - Response HTTP code
13
- def http_code
14
- @attributes[:http - code]
15
- end
16
-
17
- def http_code=(value)
18
- @attributes[:http - code] = value
19
- end
20
-
21
- # string - A short string representing which error happened, if any
22
- def type
23
- @attributes[:type]
24
- end
25
-
26
- def type=(value)
27
- @attributes[:type] = value
28
- end
29
-
30
- # object - Headers to include with the response
31
- def http_headers
32
- @attributes[:http_headers]
33
- end
34
-
35
- def http_headers=(value)
36
- @attributes[:http_headers] = value
37
- end
38
-
39
- # string - Body of the response, if a folder listing was requested
40
- def body
41
- @attributes[:body]
42
- end
43
-
44
- def body=(value)
45
- @attributes[:body] = value
46
- end
47
-
48
- # string - Signed URL allowing access to the requested file
49
- def download_uri
50
- @attributes[:download_uri]
51
- end
52
-
53
- def download_uri=(value)
54
- @attributes[:download_uri] = value
55
- end
56
-
57
- # string - For use with internal services and should also be with headers and socks_ips
58
- def internal_download_uri
59
- @attributes[:internal_download_uri]
60
- end
61
-
62
- def internal_download_uri=(value)
63
- @attributes[:internal_download_uri] = value
64
- end
65
-
66
- # string - URL where this request should be redirected, if necessary
67
- def redirect
68
- @attributes[:redirect]
69
- end
70
-
71
- def redirect=(value)
72
- @attributes[:redirect] = value
73
- end
74
-
75
- # string - Used for response content-type
76
- def mime_type
77
- @attributes[:mime_type]
78
- end
79
-
80
- def mime_type=(value)
81
- @attributes[:mime_type] = value
82
- end
83
-
84
- # int64 - Site id
85
- def site_id
86
- @attributes[:site_id]
87
- end
88
-
89
- def site_id=(value)
90
- @attributes[:site_id] = value
91
- end
92
-
93
- # int64 - Used for internal bandwidth tracking
94
- def remote_server_id
95
- @attributes[:remote_server_id]
96
- end
97
-
98
- def remote_server_id=(value)
99
- @attributes[:remote_server_id] = value
100
- end
101
-
102
- # object - Used for internal url management
103
- def headers
104
- @attributes[:headers]
105
- end
106
-
107
- def headers=(value)
108
- @attributes[:headers] = value
109
- end
110
-
111
- # array(string) - Used for internal url management
112
- def socks_ips
113
- @attributes[:socks_ips]
114
- end
115
-
116
- def socks_ips=(value)
117
- @attributes[:socks_ips] = value
118
- end
119
-
120
- # string - The actual path of the file or folder being accessed. Used for caching.
121
- def true_path
122
- @attributes[:true_path]
123
- end
124
-
125
- def true_path=(value)
126
- @attributes[:true_path] = value
127
- end
128
-
129
- # int64 - Indicates how long the response should be cached, in seconds.
130
- def cache_for_seconds
131
- @attributes[:cache_for_seconds]
132
- end
133
-
134
- def cache_for_seconds=(value)
135
- @attributes[:cache_for_seconds] = value
136
- end
137
-
138
- # string - Hostname used to request the publicly shared resource.
139
- def hostname
140
- @attributes[:hostname]
141
- end
142
-
143
- def hostname=(value)
144
- @attributes[:hostname] = value
145
- end
146
-
147
- # string - Path of the resource being requested.
148
- def path
149
- @attributes[:path]
150
- end
151
-
152
- def path=(value)
153
- @attributes[:path] = value
154
- end
155
-
156
- def save
157
- new_obj = PublicUrl.create(path, @attributes, @options)
158
- @attributes = new_obj.attributes
159
- true
160
- end
161
-
162
- # Parameters:
163
- # hostname (required) - string - Hostname used to request the publicly shared resource.
164
- # path (required) - string - Path of the resource being requested.
165
- def self.create(path, params = {}, options = {})
166
- params ||= {}
167
- params[:path] = path
168
- raise InvalidParameterError.new("Bad parameter: hostname must be an String") if params[:hostname] and !params[:hostname].is_a?(String)
169
- raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
170
- raise MissingParameterError.new("Parameter missing: hostname") unless params[:hostname]
171
- raise MissingParameterError.new("Parameter missing: path") unless params[:path]
172
-
173
- response, options = Api.send_request("/public_urls", :post, params, options)
174
- PublicUrl.new(response.data, options)
175
- end
176
- end
177
- end
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class RegionalMigration
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
- end
12
- end
@@ -1,153 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class Release
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # string - Native release version
13
- def version
14
- @attributes[:version]
15
- end
16
-
17
- def version=(value)
18
- @attributes[:version] = value
19
- end
20
-
21
- # string - Native release description
22
- def description
23
- @attributes[:description]
24
- end
25
-
26
- def description=(value)
27
- @attributes[:description] = value
28
- end
29
-
30
- # array(object) - A list of native release packages
31
- def native_release_packages
32
- @attributes[:native_release_packages]
33
- end
34
-
35
- def native_release_packages=(value)
36
- @attributes[:native_release_packages] = value
37
- end
38
-
39
- # string - Native release title
40
- def title
41
- @attributes[:title]
42
- end
43
-
44
- def title=(value)
45
- @attributes[:title] = value
46
- end
47
-
48
- # string - Native release product
49
- def product
50
- @attributes[:product]
51
- end
52
-
53
- def product=(value)
54
- @attributes[:product] = value
55
- end
56
-
57
- # int64
58
- def version_major
59
- @attributes[:version_major]
60
- end
61
-
62
- def version_major=(value)
63
- @attributes[:version_major] = value
64
- end
65
-
66
- # int64
67
- def version_minor
68
- @attributes[:version_minor]
69
- end
70
-
71
- def version_minor=(value)
72
- @attributes[:version_minor] = value
73
- end
74
-
75
- # int64
76
- def version_patch
77
- @attributes[:version_patch]
78
- end
79
-
80
- def version_patch=(value)
81
- @attributes[:version_patch] = value
82
- end
83
-
84
- # int64
85
- def version_build
86
- @attributes[:version_build]
87
- end
88
-
89
- def version_build=(value)
90
- @attributes[:version_build] = value
91
- end
92
-
93
- # string
94
- def oem
95
- @attributes[:oem]
96
- end
97
-
98
- def oem=(value)
99
- @attributes[:oem] = value
100
- end
101
-
102
- def save
103
- if @attributes[:id]
104
- raise NotImplementedError.new("The Release object doesn't support updates.")
105
- else
106
- new_obj = Release.create(@attributes, @options)
107
- end
108
-
109
- @attributes = new_obj.attributes
110
- true
111
- end
112
-
113
- # Parameters:
114
- # product - string
115
- # platform - string
116
- # architecture - string
117
- # ext - string
118
- def self.get_latest(params = {}, options = {})
119
- raise InvalidParameterError.new("Bad parameter: product must be an String") if params[:product] and !params[:product].is_a?(String)
120
- raise InvalidParameterError.new("Bad parameter: platform must be an String") if params[:platform] and !params[:platform].is_a?(String)
121
- raise InvalidParameterError.new("Bad parameter: architecture must be an String") if params[:architecture] and !params[:architecture].is_a?(String)
122
- raise InvalidParameterError.new("Bad parameter: ext must be an String") if params[:ext] and !params[:ext].is_a?(String)
123
-
124
- response, options = Api.send_request("/releases/latest", :get, params, options)
125
- Release.new(response.data, options)
126
- end
127
-
128
- # Parameters:
129
- # title - string
130
- # description - string
131
- # version_major - int64
132
- # version_minor - int64
133
- # version_patch - int64
134
- # version_build - int64
135
- # oem - string
136
- # product - string
137
- # native_release_packages - array(object)
138
- def self.create(params = {}, options = {})
139
- raise InvalidParameterError.new("Bad parameter: title must be an String") if params[:title] and !params[:title].is_a?(String)
140
- raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
141
- raise InvalidParameterError.new("Bad parameter: version_major must be an Integer") if params[:version_major] and !params[:version_major].is_a?(Integer)
142
- raise InvalidParameterError.new("Bad parameter: version_minor must be an Integer") if params[:version_minor] and !params[:version_minor].is_a?(Integer)
143
- raise InvalidParameterError.new("Bad parameter: version_patch must be an Integer") if params[:version_patch] and !params[:version_patch].is_a?(Integer)
144
- raise InvalidParameterError.new("Bad parameter: version_build must be an Integer") if params[:version_build] and !params[:version_build].is_a?(Integer)
145
- raise InvalidParameterError.new("Bad parameter: oem must be an String") if params[:oem] and !params[:oem].is_a?(String)
146
- raise InvalidParameterError.new("Bad parameter: product must be an String") if params[:product] and !params[:product].is_a?(String)
147
- raise InvalidParameterError.new("Bad parameter: native_release_packages must be an Array") if params[:native_release_packages] and !params[:native_release_packages].is_a?(Array)
148
-
149
- response, options = Api.send_request("/releases", :post, params, options)
150
- Release.new(response.data, options)
151
- end
152
- end
153
- end
@@ -1,37 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class ReleasePackage
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # string - Link to the package
13
- def package_link
14
- @attributes[:package_link]
15
- end
16
-
17
- # string - Release platform
18
- def platform
19
- @attributes[:platform]
20
- end
21
-
22
- # string - Release architecture
23
- def architecture
24
- @attributes[:architecture]
25
- end
26
-
27
- # string - Package file extension
28
- def extension
29
- @attributes[:extension]
30
- end
31
-
32
- # string - SHA256 hash of the package
33
- def sha256
34
- @attributes[:sha256]
35
- end
36
- end
37
- end
@@ -1,53 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class Revision
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # string - The commit hash of the latest deployed revision.
13
- def current
14
- @attributes[:current]
15
- end
16
-
17
- # string - The commit hash of the previously deployed revision.
18
- def prior
19
- @attributes[:prior]
20
- end
21
-
22
- # string - The commit hash of the currently running revision.
23
- def revision
24
- @attributes[:revision]
25
- end
26
-
27
- # boolean - True if the currently running revision is the latest deployed revision.
28
- def up_to_date
29
- @attributes[:up_to_date]
30
- end
31
-
32
- # Parameters:
33
- # 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.
34
- # per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
35
- def self.list(params = {}, options = {})
36
- raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
37
- raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
38
-
39
- List.new(Revision, params) do
40
- Api.send_request("/revisions", :get, params, options)
41
- end
42
- end
43
-
44
- def self.all(params = {}, options = {})
45
- list(params, options)
46
- end
47
-
48
- def self.create_export(params = {}, options = {})
49
- response, options = Api.send_request("/revisions/create_export", :post, params, options)
50
- Export.new(response.data, options)
51
- end
52
- end
53
- end
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class SafePlan
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
- end
12
- end
@@ -1,47 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class SessionAvailableSite
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 id
14
- @attributes[:id]
15
- end
16
-
17
- # string - Site name
18
- def name
19
- @attributes[:name]
20
- end
21
-
22
- # string - Custom domain
23
- def domain
24
- @attributes[:domain]
25
- end
26
-
27
- # string - Site subdomain
28
- def subdomain
29
- @attributes[:subdomain]
30
- end
31
-
32
- # Image - Branded logo
33
- def logo
34
- @attributes[:logo]
35
- end
36
-
37
- # string - Top bar background color
38
- def color2_top
39
- @attributes[:color2_top]
40
- end
41
-
42
- # boolean - If true, permissions for this site must be bound to a group (not a user).
43
- def folder_permissions_groups_only
44
- @attributes[:folder_permissions_groups_only]
45
- end
46
- end
47
- end
@@ -1,36 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class Setting
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- def self.languages(params = {}, options = {})
13
- Api.send_request("/settings/languages", :get, params, options)
14
- nil
15
- end
16
-
17
- def self.list(params = {}, options = {})
18
- response, options = Api.send_request("/settings", :get, params, options)
19
- Settings.new(response.data, options)
20
- end
21
-
22
- def self.all(params = {}, options = {})
23
- list(params, options)
24
- end
25
-
26
- # Parameters:
27
- # domain (required) - string
28
- def self.get_domain(params = {}, options = {})
29
- raise InvalidParameterError.new("Bad parameter: domain must be an String") if params[:domain] and !params[:domain].is_a?(String)
30
- raise MissingParameterError.new("Parameter missing: domain") unless params[:domain]
31
-
32
- response, options = Api.send_request("/settings/domain", :get, params, options)
33
- Settings.new(response.data, options)
34
- end
35
- end
36
- end