appwrite 27.0.0 → 28.0.0.rc1

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 (404) hide show
  1. checksums.yaml +4 -4
  2. data/lib/appwrite/client.rb +27 -24
  3. data/lib/appwrite/enums/adapter.rb +1 -1
  4. data/lib/appwrite/enums/attribute_status.rb +1 -1
  5. data/lib/appwrite/enums/authentication_factor.rb +1 -1
  6. data/lib/appwrite/enums/authenticator_type.rb +1 -1
  7. data/lib/appwrite/enums/backup_services.rb +1 -1
  8. data/lib/appwrite/enums/billing_plan_group.rb +1 -1
  9. data/lib/appwrite/enums/browser.rb +1 -1
  10. data/lib/appwrite/enums/browser_permission.rb +1 -1
  11. data/lib/appwrite/enums/browser_theme.rb +1 -1
  12. data/lib/appwrite/enums/build_runtime.rb +2 -1
  13. data/lib/appwrite/enums/column_status.rb +1 -1
  14. data/lib/appwrite/enums/compression.rb +1 -1
  15. data/lib/appwrite/enums/credit_card.rb +1 -1
  16. data/lib/appwrite/enums/database_status.rb +1 -1
  17. data/lib/appwrite/enums/database_type.rb +1 -1
  18. data/lib/appwrite/enums/databases_index_type.rb +1 -1
  19. data/lib/appwrite/enums/deployment_download_type.rb +1 -1
  20. data/lib/appwrite/enums/deployment_status.rb +1 -1
  21. data/lib/appwrite/enums/documents_db_index_type.rb +9 -0
  22. data/lib/appwrite/enums/embedding_model.rb +1 -3
  23. data/lib/appwrite/enums/execution_method.rb +1 -1
  24. data/lib/appwrite/enums/execution_resource_type.rb +8 -0
  25. data/lib/appwrite/enums/execution_status.rb +1 -1
  26. data/lib/appwrite/enums/execution_trigger.rb +1 -1
  27. data/lib/appwrite/enums/flag.rb +1 -1
  28. data/lib/appwrite/enums/framework.rb +1 -1
  29. data/lib/appwrite/enums/image_format.rb +1 -1
  30. data/lib/appwrite/enums/image_gravity.rb +1 -1
  31. data/lib/appwrite/enums/index_status.rb +1 -1
  32. data/lib/appwrite/enums/invalidation_type.rb +1 -1
  33. data/lib/appwrite/enums/message_priority.rb +1 -1
  34. data/lib/appwrite/enums/message_status.rb +1 -1
  35. data/lib/appwrite/enums/messaging_provider_type.rb +1 -1
  36. data/lib/appwrite/enums/o_auth2_google_prompt.rb +1 -1
  37. data/lib/appwrite/enums/o_auth2_oidc_prompt.rb +1 -1
  38. data/lib/appwrite/enums/o_auth_provider.rb +2 -1
  39. data/lib/appwrite/enums/order_by.rb +1 -1
  40. data/lib/appwrite/enums/organization_key_scopes.rb +1 -1
  41. data/lib/appwrite/enums/password_hash.rb +1 -1
  42. data/lib/appwrite/enums/platform_type.rb +1 -1
  43. data/lib/appwrite/enums/project_auth_method_id.rb +1 -1
  44. data/lib/appwrite/enums/project_email_template_id.rb +1 -1
  45. data/lib/appwrite/enums/project_email_template_locale.rb +1 -1
  46. data/lib/appwrite/enums/project_key_scopes.rb +14 -3
  47. data/lib/appwrite/enums/project_o_auth2_google_prompt.rb +1 -1
  48. data/lib/appwrite/enums/project_o_auth2_oidc_prompt.rb +1 -1
  49. data/lib/appwrite/enums/project_o_auth_provider_id.rb +2 -1
  50. data/lib/appwrite/enums/project_policy_id.rb +1 -1
  51. data/lib/appwrite/enums/project_protocol_id.rb +1 -1
  52. data/lib/appwrite/enums/project_service_id.rb +1 -1
  53. data/lib/appwrite/enums/project_smtp_secure.rb +1 -1
  54. data/lib/appwrite/enums/proxy_resource_type.rb +1 -1
  55. data/lib/appwrite/enums/proxy_rule_deployment_resource_type.rb +1 -1
  56. data/lib/appwrite/enums/proxy_rule_status.rb +1 -1
  57. data/lib/appwrite/enums/region.rb +1 -1
  58. data/lib/appwrite/enums/relation_mutate.rb +1 -1
  59. data/lib/appwrite/enums/relationship_type.rb +1 -1
  60. data/lib/appwrite/enums/runtime.rb +2 -1
  61. data/lib/appwrite/enums/smtp_encryption.rb +1 -1
  62. data/lib/appwrite/enums/status_code.rb +1 -1
  63. data/lib/appwrite/enums/tables_db_index_type.rb +1 -1
  64. data/lib/appwrite/enums/template_reference_type.rb +1 -1
  65. data/lib/appwrite/enums/timezone.rb +1 -1
  66. data/lib/appwrite/enums/vcs_reference_type.rb +1 -1
  67. data/lib/appwrite/enums/vectors_db_index_type.rb +12 -0
  68. data/lib/appwrite/exception.rb +1 -1
  69. data/lib/appwrite/id.rb +3 -3
  70. data/lib/appwrite/input_file.rb +1 -1
  71. data/lib/appwrite/models/activity_event.rb +1 -1
  72. data/lib/appwrite/models/activity_event_list.rb +1 -1
  73. data/lib/appwrite/models/additional_resource.rb +1 -1
  74. data/lib/appwrite/models/algo_argon2.rb +1 -1
  75. data/lib/appwrite/models/algo_bcrypt.rb +1 -1
  76. data/lib/appwrite/models/algo_md5.rb +1 -1
  77. data/lib/appwrite/models/algo_phpass.rb +1 -1
  78. data/lib/appwrite/models/algo_scrypt.rb +1 -1
  79. data/lib/appwrite/models/algo_scrypt_modified.rb +1 -1
  80. data/lib/appwrite/models/algo_sha.rb +1 -1
  81. data/lib/appwrite/models/app.rb +1 -1
  82. data/lib/appwrite/models/app_installation.rb +2 -2
  83. data/lib/appwrite/models/app_installation_list.rb +1 -1
  84. data/lib/appwrite/models/app_key.rb +2 -2
  85. data/lib/appwrite/models/app_key_list.rb +1 -1
  86. data/lib/appwrite/models/app_scope.rb +1 -1
  87. data/lib/appwrite/models/app_scope_list.rb +1 -1
  88. data/lib/appwrite/models/app_secret.rb +2 -2
  89. data/lib/appwrite/models/app_secret_list.rb +1 -1
  90. data/lib/appwrite/models/app_secret_plaintext.rb +2 -2
  91. data/lib/appwrite/models/apps_list.rb +1 -1
  92. data/lib/appwrite/models/attribute_bigint.rb +5 -6
  93. data/lib/appwrite/models/attribute_boolean.rb +3 -4
  94. data/lib/appwrite/models/attribute_datetime.rb +3 -4
  95. data/lib/appwrite/models/attribute_email.rb +3 -4
  96. data/lib/appwrite/models/attribute_enum.rb +3 -4
  97. data/lib/appwrite/models/attribute_float.rb +5 -6
  98. data/lib/appwrite/models/attribute_integer.rb +5 -6
  99. data/lib/appwrite/models/attribute_ip.rb +3 -4
  100. data/lib/appwrite/models/attribute_line.rb +3 -4
  101. data/lib/appwrite/models/attribute_list.rb +1 -1
  102. data/lib/appwrite/models/attribute_longtext.rb +4 -5
  103. data/lib/appwrite/models/attribute_mediumtext.rb +4 -5
  104. data/lib/appwrite/models/attribute_object.rb +80 -0
  105. data/lib/appwrite/models/attribute_point.rb +3 -4
  106. data/lib/appwrite/models/attribute_polygon.rb +3 -4
  107. data/lib/appwrite/models/attribute_relationship.rb +2 -3
  108. data/lib/appwrite/models/attribute_string.rb +4 -5
  109. data/lib/appwrite/models/attribute_text.rb +4 -5
  110. data/lib/appwrite/models/attribute_url.rb +3 -4
  111. data/lib/appwrite/models/attribute_varchar.rb +4 -5
  112. data/lib/appwrite/models/attribute_vector.rb +85 -0
  113. data/lib/appwrite/models/backup_archive.rb +3 -3
  114. data/lib/appwrite/models/backup_archive_list.rb +1 -1
  115. data/lib/appwrite/models/backup_policy.rb +3 -3
  116. data/lib/appwrite/models/backup_policy_list.rb +1 -1
  117. data/lib/appwrite/models/backup_restoration.rb +1 -1
  118. data/lib/appwrite/models/backup_restoration_list.rb +1 -1
  119. data/lib/appwrite/models/billing_limits.rb +9 -9
  120. data/lib/appwrite/models/billing_plan.rb +19 -10
  121. data/lib/appwrite/models/billing_plan_addon.rb +3 -3
  122. data/lib/appwrite/models/billing_plan_addon_details.rb +2 -2
  123. data/lib/appwrite/models/billing_plan_dedicated_database_limits.rb +20 -20
  124. data/lib/appwrite/models/billing_plan_limits.rb +3 -3
  125. data/lib/appwrite/models/billing_plan_supported_addons.rb +1 -1
  126. data/lib/appwrite/models/block.rb +3 -3
  127. data/lib/appwrite/models/bucket.rb +1 -1
  128. data/lib/appwrite/models/bucket_list.rb +1 -1
  129. data/lib/appwrite/models/collection.rb +1 -1
  130. data/lib/appwrite/models/collection_list.rb +1 -1
  131. data/lib/appwrite/models/column_bigint.rb +5 -6
  132. data/lib/appwrite/models/column_boolean.rb +3 -4
  133. data/lib/appwrite/models/column_datetime.rb +3 -4
  134. data/lib/appwrite/models/column_email.rb +3 -4
  135. data/lib/appwrite/models/column_enum.rb +3 -4
  136. data/lib/appwrite/models/column_float.rb +5 -6
  137. data/lib/appwrite/models/column_index.rb +2 -2
  138. data/lib/appwrite/models/column_index_list.rb +1 -1
  139. data/lib/appwrite/models/column_integer.rb +5 -6
  140. data/lib/appwrite/models/column_ip.rb +3 -4
  141. data/lib/appwrite/models/column_line.rb +3 -4
  142. data/lib/appwrite/models/column_list.rb +1 -1
  143. data/lib/appwrite/models/column_longtext.rb +4 -5
  144. data/lib/appwrite/models/column_mediumtext.rb +4 -5
  145. data/lib/appwrite/models/column_point.rb +3 -4
  146. data/lib/appwrite/models/column_polygon.rb +3 -4
  147. data/lib/appwrite/models/column_relationship.rb +2 -3
  148. data/lib/appwrite/models/column_string.rb +4 -5
  149. data/lib/appwrite/models/column_text.rb +4 -5
  150. data/lib/appwrite/models/column_url.rb +3 -4
  151. data/lib/appwrite/models/column_varchar.rb +4 -5
  152. data/lib/appwrite/models/continent.rb +1 -1
  153. data/lib/appwrite/models/continent_list.rb +1 -1
  154. data/lib/appwrite/models/country.rb +1 -1
  155. data/lib/appwrite/models/country_list.rb +1 -1
  156. data/lib/appwrite/models/currency.rb +1 -1
  157. data/lib/appwrite/models/currency_list.rb +1 -1
  158. data/lib/appwrite/models/database.rb +22 -8
  159. data/lib/appwrite/models/database_list.rb +1 -1
  160. data/lib/appwrite/models/database_migration.rb +6 -1
  161. data/lib/appwrite/models/database_migration_list.rb +1 -1
  162. data/lib/appwrite/models/database_status.rb +3 -3
  163. data/lib/appwrite/models/database_status_connections.rb +1 -1
  164. data/lib/appwrite/models/database_status_replica.rb +7 -2
  165. data/lib/appwrite/models/database_status_volume.rb +1 -1
  166. data/lib/appwrite/models/dedicated_database.rb +3 -3
  167. data/lib/appwrite/models/dedicated_database_backup.rb +107 -0
  168. data/lib/appwrite/models/dedicated_database_backup_list.rb +32 -0
  169. data/lib/appwrite/models/dedicated_database_backup_storage.rb +47 -0
  170. data/lib/appwrite/models/dedicated_database_branch.rb +82 -0
  171. data/lib/appwrite/models/dedicated_database_branch_list.rb +32 -0
  172. data/lib/appwrite/models/dedicated_database_execution.rb +52 -0
  173. data/lib/appwrite/models/dedicated_database_execution_column.rb +32 -0
  174. data/lib/appwrite/models/dedicated_database_extensions.rb +37 -0
  175. data/lib/appwrite/models/dedicated_database_list.rb +32 -0
  176. data/lib/appwrite/models/dedicated_database_member.rb +7 -2
  177. data/lib/appwrite/models/dedicated_database_operation.rb +4 -4
  178. data/lib/appwrite/models/dedicated_database_operation_list.rb +1 -1
  179. data/lib/appwrite/models/dedicated_database_pitr_windows.rb +32 -0
  180. data/lib/appwrite/models/dedicated_database_pooler.rb +72 -0
  181. data/lib/appwrite/models/dedicated_database_replicas.rb +3 -3
  182. data/lib/appwrite/models/dedicated_database_restoration.rb +82 -0
  183. data/lib/appwrite/models/dedicated_database_restoration_list.rb +32 -0
  184. data/lib/appwrite/models/dedicated_database_specification.rb +1 -1
  185. data/lib/appwrite/models/dedicated_database_specification_list.rb +1 -1
  186. data/lib/appwrite/models/dedicated_database_specification_pricing.rb +1 -1
  187. data/lib/appwrite/models/deployment.rb +1 -2
  188. data/lib/appwrite/models/deployment_list.rb +1 -1
  189. data/lib/appwrite/models/dev_key.rb +1 -1
  190. data/lib/appwrite/models/document.rb +1 -1
  191. data/lib/appwrite/models/document_list.rb +1 -1
  192. data/lib/appwrite/models/email_template.rb +1 -1
  193. data/lib/appwrite/models/email_template_list.rb +1 -1
  194. data/lib/appwrite/models/embedding.rb +1 -1
  195. data/lib/appwrite/models/embedding_list.rb +1 -1
  196. data/lib/appwrite/models/ephemeral_key.rb +1 -1
  197. data/lib/appwrite/models/execution.rb +25 -8
  198. data/lib/appwrite/models/execution_list.rb +1 -1
  199. data/lib/appwrite/models/file.rb +1 -1
  200. data/lib/appwrite/models/file_list.rb +1 -1
  201. data/lib/appwrite/models/framework.rb +1 -1
  202. data/lib/appwrite/models/framework_adapter.rb +1 -1
  203. data/lib/appwrite/models/framework_list.rb +1 -1
  204. data/lib/appwrite/models/function.rb +1 -1
  205. data/lib/appwrite/models/function_list.rb +1 -1
  206. data/lib/appwrite/models/headers.rb +1 -1
  207. data/lib/appwrite/models/identity.rb +1 -1
  208. data/lib/appwrite/models/identity_list.rb +1 -1
  209. data/lib/appwrite/models/index.rb +2 -3
  210. data/lib/appwrite/models/index_list.rb +1 -1
  211. data/lib/appwrite/models/insight.rb +4 -4
  212. data/lib/appwrite/models/insight_cta.rb +1 -1
  213. data/lib/appwrite/models/insight_list.rb +1 -1
  214. data/lib/appwrite/models/jwt.rb +1 -1
  215. data/lib/appwrite/models/key.rb +1 -1
  216. data/lib/appwrite/models/key_list.rb +1 -1
  217. data/lib/appwrite/models/language.rb +1 -1
  218. data/lib/appwrite/models/language_list.rb +1 -1
  219. data/lib/appwrite/models/locale.rb +12 -12
  220. data/lib/appwrite/models/locale_code.rb +1 -1
  221. data/lib/appwrite/models/locale_code_list.rb +1 -1
  222. data/lib/appwrite/models/log.rb +1 -1
  223. data/lib/appwrite/models/log_list.rb +1 -1
  224. data/lib/appwrite/models/membership.rb +1 -1
  225. data/lib/appwrite/models/membership_list.rb +1 -1
  226. data/lib/appwrite/models/message.rb +4 -5
  227. data/lib/appwrite/models/message_list.rb +1 -1
  228. data/lib/appwrite/models/mfa_challenge.rb +1 -1
  229. data/lib/appwrite/models/mfa_challenge_secret.rb +1 -1
  230. data/lib/appwrite/models/mfa_factors.rb +1 -1
  231. data/lib/appwrite/models/mfa_recovery_codes.rb +1 -1
  232. data/lib/appwrite/models/mfa_type.rb +1 -1
  233. data/lib/appwrite/models/mock_number.rb +1 -1
  234. data/lib/appwrite/models/mock_number_list.rb +1 -1
  235. data/lib/appwrite/models/o_auth2_amazon.rb +1 -1
  236. data/lib/appwrite/models/o_auth2_apple.rb +1 -1
  237. data/lib/appwrite/models/o_auth2_appwrite.rb +1 -1
  238. data/lib/appwrite/models/o_auth2_auth0.rb +1 -1
  239. data/lib/appwrite/models/o_auth2_authentik.rb +1 -1
  240. data/lib/appwrite/models/o_auth2_autodesk.rb +1 -1
  241. data/lib/appwrite/models/o_auth2_bitbucket.rb +1 -1
  242. data/lib/appwrite/models/o_auth2_bitly.rb +1 -1
  243. data/lib/appwrite/models/o_auth2_box.rb +1 -1
  244. data/lib/appwrite/models/o_auth2_dailymotion.rb +1 -1
  245. data/lib/appwrite/models/o_auth2_discord.rb +1 -1
  246. data/lib/appwrite/models/o_auth2_disqus.rb +1 -1
  247. data/lib/appwrite/models/o_auth2_dropbox.rb +1 -1
  248. data/lib/appwrite/models/o_auth2_etsy.rb +1 -1
  249. data/lib/appwrite/models/o_auth2_facebook.rb +1 -1
  250. data/lib/appwrite/models/o_auth2_figma.rb +1 -1
  251. data/lib/appwrite/models/o_auth2_fusion_auth.rb +1 -1
  252. data/lib/appwrite/models/o_auth2_github.rb +1 -1
  253. data/lib/appwrite/models/o_auth2_gitlab.rb +1 -1
  254. data/lib/appwrite/models/o_auth2_google.rb +18 -2
  255. data/lib/appwrite/models/o_auth2_hugging_face.rb +42 -0
  256. data/lib/appwrite/models/o_auth2_keycloak.rb +1 -1
  257. data/lib/appwrite/models/o_auth2_kick.rb +1 -1
  258. data/lib/appwrite/models/o_auth2_linkedin.rb +1 -1
  259. data/lib/appwrite/models/o_auth2_microsoft.rb +1 -1
  260. data/lib/appwrite/models/o_auth2_notion.rb +1 -1
  261. data/lib/appwrite/models/o_auth2_oidc.rb +20 -3
  262. data/lib/appwrite/models/o_auth2_okta.rb +1 -1
  263. data/lib/appwrite/models/o_auth2_paypal.rb +1 -1
  264. data/lib/appwrite/models/o_auth2_podio.rb +1 -1
  265. data/lib/appwrite/models/o_auth2_provider_list.rb +1 -1
  266. data/lib/appwrite/models/o_auth2_salesforce.rb +1 -1
  267. data/lib/appwrite/models/o_auth2_slack.rb +1 -1
  268. data/lib/appwrite/models/o_auth2_spotify.rb +1 -1
  269. data/lib/appwrite/models/o_auth2_stripe.rb +1 -1
  270. data/lib/appwrite/models/o_auth2_tradeshift.rb +1 -1
  271. data/lib/appwrite/models/o_auth2_twitch.rb +1 -1
  272. data/lib/appwrite/models/o_auth2_word_press.rb +1 -1
  273. data/lib/appwrite/models/o_auth2_x.rb +1 -1
  274. data/lib/appwrite/models/o_auth2_yahoo.rb +1 -1
  275. data/lib/appwrite/models/o_auth2_yandex.rb +1 -1
  276. data/lib/appwrite/models/o_auth2_zoho.rb +1 -1
  277. data/lib/appwrite/models/o_auth2_zoom.rb +1 -1
  278. data/lib/appwrite/models/oauth2_approve.rb +1 -1
  279. data/lib/appwrite/models/oauth2_authorize.rb +1 -1
  280. data/lib/appwrite/models/oauth2_consent.rb +1 -1
  281. data/lib/appwrite/models/oauth2_consent_list.rb +1 -1
  282. data/lib/appwrite/models/oauth2_consent_token.rb +1 -1
  283. data/lib/appwrite/models/oauth2_consent_token_list.rb +1 -1
  284. data/lib/appwrite/models/oauth2_device_authorization.rb +1 -1
  285. data/lib/appwrite/models/oauth2_grant.rb +1 -1
  286. data/lib/appwrite/models/oauth2_organization.rb +1 -1
  287. data/lib/appwrite/models/oauth2_organization_list.rb +1 -1
  288. data/lib/appwrite/models/oauth2_par.rb +1 -1
  289. data/lib/appwrite/models/oauth2_project.rb +1 -1
  290. data/lib/appwrite/models/oauth2_project_list.rb +1 -1
  291. data/lib/appwrite/models/oauth2_reject.rb +1 -1
  292. data/lib/appwrite/models/oauth2_token.rb +3 -3
  293. data/lib/appwrite/models/organization.rb +14 -14
  294. data/lib/appwrite/models/phone.rb +1 -1
  295. data/lib/appwrite/models/phone_list.rb +1 -1
  296. data/lib/appwrite/models/platform_android.rb +1 -2
  297. data/lib/appwrite/models/platform_apple.rb +1 -2
  298. data/lib/appwrite/models/platform_linux.rb +1 -2
  299. data/lib/appwrite/models/platform_list.rb +1 -1
  300. data/lib/appwrite/models/platform_web.rb +1 -2
  301. data/lib/appwrite/models/platform_windows.rb +1 -2
  302. data/lib/appwrite/models/policy_deny_aliased_email.rb +1 -1
  303. data/lib/appwrite/models/policy_deny_corporate_email.rb +1 -1
  304. data/lib/appwrite/models/policy_deny_disposable_email.rb +1 -1
  305. data/lib/appwrite/models/policy_deny_free_email.rb +1 -1
  306. data/lib/appwrite/models/policy_list.rb +1 -1
  307. data/lib/appwrite/models/policy_membership_privacy.rb +1 -1
  308. data/lib/appwrite/models/policy_mfa_factors.rb +1 -1
  309. data/lib/appwrite/models/policy_password_dictionary.rb +1 -1
  310. data/lib/appwrite/models/policy_password_history.rb +1 -1
  311. data/lib/appwrite/models/policy_password_personal_data.rb +1 -1
  312. data/lib/appwrite/models/policy_password_strength.rb +1 -1
  313. data/lib/appwrite/models/policy_session_alert.rb +1 -1
  314. data/lib/appwrite/models/policy_session_duration.rb +1 -1
  315. data/lib/appwrite/models/policy_session_invalidation.rb +1 -1
  316. data/lib/appwrite/models/policy_session_limit.rb +1 -1
  317. data/lib/appwrite/models/policy_user_limit.rb +1 -1
  318. data/lib/appwrite/models/postgres_extension.rb +42 -0
  319. data/lib/appwrite/models/preferences.rb +1 -1
  320. data/lib/appwrite/models/presence.rb +4 -4
  321. data/lib/appwrite/models/presence_list.rb +1 -1
  322. data/lib/appwrite/models/program.rb +1 -1
  323. data/lib/appwrite/models/project.rb +19 -19
  324. data/lib/appwrite/models/project_auth_method.rb +1 -2
  325. data/lib/appwrite/models/project_list.rb +1 -1
  326. data/lib/appwrite/models/project_protocol.rb +1 -2
  327. data/lib/appwrite/models/project_service.rb +1 -2
  328. data/lib/appwrite/models/provider.rb +2 -2
  329. data/lib/appwrite/models/provider_list.rb +1 -1
  330. data/lib/appwrite/models/proxy_invalidation.rb +1 -1
  331. data/lib/appwrite/models/proxy_rule.rb +2 -3
  332. data/lib/appwrite/models/proxy_rule_list.rb +1 -1
  333. data/lib/appwrite/models/report.rb +2 -2
  334. data/lib/appwrite/models/report_list.rb +1 -1
  335. data/lib/appwrite/models/resource_token.rb +1 -1
  336. data/lib/appwrite/models/resource_token_list.rb +1 -1
  337. data/lib/appwrite/models/row.rb +1 -1
  338. data/lib/appwrite/models/row_list.rb +1 -1
  339. data/lib/appwrite/models/runtime.rb +1 -1
  340. data/lib/appwrite/models/runtime_list.rb +1 -1
  341. data/lib/appwrite/models/session.rb +1 -1
  342. data/lib/appwrite/models/session_list.rb +1 -1
  343. data/lib/appwrite/models/site.rb +6 -1
  344. data/lib/appwrite/models/site_list.rb +1 -1
  345. data/lib/appwrite/models/specification.rb +1 -1
  346. data/lib/appwrite/models/specification_list.rb +1 -1
  347. data/lib/appwrite/models/subscriber.rb +1 -1
  348. data/lib/appwrite/models/subscriber_list.rb +1 -1
  349. data/lib/appwrite/models/table.rb +1 -1
  350. data/lib/appwrite/models/table_list.rb +1 -1
  351. data/lib/appwrite/models/target.rb +2 -2
  352. data/lib/appwrite/models/target_list.rb +1 -1
  353. data/lib/appwrite/models/team.rb +1 -1
  354. data/lib/appwrite/models/team_list.rb +1 -1
  355. data/lib/appwrite/models/token.rb +1 -1
  356. data/lib/appwrite/models/topic.rb +1 -1
  357. data/lib/appwrite/models/topic_list.rb +1 -1
  358. data/lib/appwrite/models/transaction.rb +1 -1
  359. data/lib/appwrite/models/transaction_list.rb +1 -1
  360. data/lib/appwrite/models/usage_billing_plan.rb +4 -4
  361. data/lib/appwrite/models/user.rb +11 -11
  362. data/lib/appwrite/models/user_list.rb +1 -1
  363. data/lib/appwrite/models/variable.rb +1 -1
  364. data/lib/appwrite/models/variable_list.rb +1 -1
  365. data/lib/appwrite/models/vectorsdb_collection.rb +87 -0
  366. data/lib/appwrite/models/vectorsdb_collection_list.rb +32 -0
  367. data/lib/appwrite/models/webhook.rb +1 -1
  368. data/lib/appwrite/models/webhook_list.rb +1 -1
  369. data/lib/appwrite/operator.rb +6 -0
  370. data/lib/appwrite/permission.rb +4 -0
  371. data/lib/appwrite/query.rb +4 -4
  372. data/lib/appwrite/role.rb +12 -14
  373. data/lib/appwrite/service.rb +1 -1
  374. data/lib/appwrite/services/account.rb +328 -289
  375. data/lib/appwrite/services/activities.rb +13 -14
  376. data/lib/appwrite/services/advisor.rb +41 -37
  377. data/lib/appwrite/services/apps.rb +185 -130
  378. data/lib/appwrite/services/avatars.rb +156 -55
  379. data/lib/appwrite/services/backups.rb +102 -83
  380. data/lib/appwrite/services/databases.rb +871 -512
  381. data/lib/appwrite/services/documents_db.rb +1683 -0
  382. data/lib/appwrite/services/embeddings.rb +9 -9
  383. data/lib/appwrite/services/functions.rb +276 -172
  384. data/lib/appwrite/services/graphql.rb +12 -12
  385. data/lib/appwrite/services/locale.rb +19 -37
  386. data/lib/appwrite/services/messaging.rb +544 -259
  387. data/lib/appwrite/services/mongo.rb +1359 -0
  388. data/lib/appwrite/services/mysql.rb +1503 -0
  389. data/lib/appwrite/services/oauth2.rb +122 -53
  390. data/lib/appwrite/services/organization.rb +153 -123
  391. data/lib/appwrite/services/postgresql.rb +1615 -0
  392. data/lib/appwrite/services/presences.rb +49 -35
  393. data/lib/appwrite/services/project.rb +842 -528
  394. data/lib/appwrite/services/proxy.rb +73 -58
  395. data/lib/appwrite/services/sites.rb +269 -164
  396. data/lib/appwrite/services/storage.rb +151 -92
  397. data/lib/appwrite/services/tables_db.rb +947 -568
  398. data/lib/appwrite/services/teams.rb +161 -122
  399. data/lib/appwrite/services/tokens.rb +38 -31
  400. data/lib/appwrite/services/users.rb +376 -274
  401. data/lib/appwrite/services/vectors_db.rb +1614 -0
  402. data/lib/appwrite/services/webhooks.rb +59 -40
  403. data/lib/appwrite.rb +27 -0
  404. metadata +31 -4
@@ -1,8 +1,7 @@
1
- #frozen_string_literal: true
1
+ # frozen_string_literal: true
2
2
 
3
3
  module Appwrite
4
4
  class TablesDB < Service
5
-
6
5
  def initialize(client)
7
6
  @client = client
8
7
  end
@@ -15,7 +14,11 @@ module Appwrite
15
14
  # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
16
15
  #
17
16
  # @return [DatabaseList]
18
- def list(queries: nil, search: nil, total: nil)
17
+ def list(
18
+ queries: nil,
19
+ search: nil,
20
+ total: nil
21
+ )
19
22
  api_path = '/tablesdb'
20
23
 
21
24
  api_params = {
@@ -23,7 +26,7 @@ module Appwrite
23
26
  search: search,
24
27
  total: total,
25
28
  }
26
-
29
+
27
30
  api_headers = {
28
31
  "X-Appwrite-Project": @client.get_config('project'),
29
32
  "accept": 'application/json',
@@ -36,29 +39,35 @@ module Appwrite
36
39
  params: api_params,
37
40
  response_type: Models::DatabaseList
38
41
  )
39
-
40
42
  end
41
43
 
42
44
  # Create a new Database.
43
- #
44
45
  #
45
- # @param [String] database_id Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
46
+ #
47
+ # @param [String] database_id Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can&#039;t start with a special char. Max length is 36 chars.
46
48
  # @param [String] name Database name. Max length: 128 chars.
47
- # @param [] enabled Is the database enabled? When set to 'disabled', users cannot access the database but Server SDKs with an API key can still read and write to the database. No data is lost when this is toggled.
49
+ # @param [] enabled Is the database enabled? When set to &#039;disabled&#039;, users cannot access the database but Server SDKs with an API key can still read and write to the database. No data is lost when this is toggled.
48
50
  # @param [String] specification Database specification. Defaults to `serverless`, which creates the database on the shared pool. Any other value provisions a dedicated database on that specification.
49
51
  # @param [Integer] replicas Number of high availability replicas (0-5) for the dedicated database backing this database. Requires a dedicated `specification`; must be 0 for a serverless database. High availability is enabled when greater than 0.
50
52
  # @param [String] sync_mode Replication sync mode for the dedicated database backing this database. Requires a dedicated `specification`; the mode is only in force once there is at least one replica. Allowed values: async, sync, quorum.
51
53
  #
52
54
  # @return [Database]
53
- def create(database_id:, name:, enabled: nil, specification: nil, replicas: nil, sync_mode: nil)
55
+ def create(
56
+ database_id:,
57
+ name:,
58
+ enabled: nil,
59
+ specification: nil,
60
+ replicas: nil,
61
+ sync_mode: nil
62
+ )
54
63
  api_path = '/tablesdb'
55
64
 
56
65
  if database_id.nil?
57
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
66
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
58
67
  end
59
68
 
60
69
  if name.nil?
61
- raise Appwrite::Exception.new('Missing required parameter: "name"')
70
+ raise Appwrite::Exception.new('Missing required parameter: "name"')
62
71
  end
63
72
 
64
73
  api_params = {
@@ -69,7 +78,7 @@ module Appwrite
69
78
  replicas: replicas,
70
79
  syncMode: sync_mode,
71
80
  }
72
-
81
+
73
82
  api_headers = {
74
83
  "X-Appwrite-Project": @client.get_config('project'),
75
84
  "content-type": 'application/json',
@@ -83,7 +92,6 @@ module Appwrite
83
92
  params: api_params,
84
93
  response_type: Models::Database
85
94
  )
86
-
87
95
  end
88
96
 
89
97
  # List the dedicated database specifications available on the current plan.
@@ -95,9 +103,8 @@ module Appwrite
95
103
  def list_specifications()
96
104
  api_path = '/tablesdb/specifications'
97
105
 
98
- api_params = {
99
- }
100
-
106
+ api_params = {}
107
+
101
108
  api_headers = {
102
109
  "X-Appwrite-Project": @client.get_config('project'),
103
110
  "accept": 'application/json',
@@ -110,7 +117,6 @@ module Appwrite
110
117
  params: api_params,
111
118
  response_type: Models::DedicatedDatabaseSpecificationList
112
119
  )
113
-
114
120
  end
115
121
 
116
122
  # List transactions across all databases.
@@ -118,13 +124,15 @@ module Appwrite
118
124
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries).
119
125
  #
120
126
  # @return [TransactionList]
121
- def list_transactions(queries: nil)
127
+ def list_transactions(
128
+ queries: nil
129
+ )
122
130
  api_path = '/tablesdb/transactions'
123
131
 
124
132
  api_params = {
125
133
  queries: queries,
126
134
  }
127
-
135
+
128
136
  api_headers = {
129
137
  "X-Appwrite-Project": @client.get_config('project'),
130
138
  "accept": 'application/json',
@@ -137,7 +145,6 @@ module Appwrite
137
145
  params: api_params,
138
146
  response_type: Models::TransactionList
139
147
  )
140
-
141
148
  end
142
149
 
143
150
  # Create a new transaction.
@@ -145,13 +152,15 @@ module Appwrite
145
152
  # @param [Integer] ttl Seconds before the transaction expires.
146
153
  #
147
154
  # @return [Transaction]
148
- def create_transaction(ttl: nil)
155
+ def create_transaction(
156
+ ttl: nil
157
+ )
149
158
  api_path = '/tablesdb/transactions'
150
159
 
151
160
  api_params = {
152
161
  ttl: ttl,
153
162
  }
154
-
163
+
155
164
  api_headers = {
156
165
  "X-Appwrite-Project": @client.get_config('project'),
157
166
  "content-type": 'application/json',
@@ -165,7 +174,6 @@ module Appwrite
165
174
  params: api_params,
166
175
  response_type: Models::Transaction
167
176
  )
168
-
169
177
  end
170
178
 
171
179
  # Get a transaction by its unique ID.
@@ -173,17 +181,18 @@ module Appwrite
173
181
  # @param [String] transaction_id Transaction ID.
174
182
  #
175
183
  # @return [Transaction]
176
- def get_transaction(transaction_id:)
184
+ def get_transaction(
185
+ transaction_id:
186
+ )
177
187
  api_path = '/tablesdb/transactions/{transactionId}'
178
188
  .gsub('{transactionId}', transaction_id)
179
189
 
180
190
  if transaction_id.nil?
181
- raise Appwrite::Exception.new('Missing required parameter: "transactionId"')
191
+ raise Appwrite::Exception.new('Missing required parameter: "transactionId"')
182
192
  end
183
193
 
184
- api_params = {
185
- }
186
-
194
+ api_params = {}
195
+
187
196
  api_headers = {
188
197
  "X-Appwrite-Project": @client.get_config('project'),
189
198
  "accept": 'application/json',
@@ -196,7 +205,6 @@ module Appwrite
196
205
  params: api_params,
197
206
  response_type: Models::Transaction
198
207
  )
199
-
200
208
  end
201
209
 
202
210
  # Update a transaction, to either commit or roll back its operations.
@@ -206,19 +214,23 @@ module Appwrite
206
214
  # @param [] rollback Rollback transaction?
207
215
  #
208
216
  # @return [Transaction]
209
- def update_transaction(transaction_id:, commit: nil, rollback: nil)
217
+ def update_transaction(
218
+ transaction_id:,
219
+ commit: nil,
220
+ rollback: nil
221
+ )
210
222
  api_path = '/tablesdb/transactions/{transactionId}'
211
223
  .gsub('{transactionId}', transaction_id)
212
224
 
213
225
  if transaction_id.nil?
214
- raise Appwrite::Exception.new('Missing required parameter: "transactionId"')
226
+ raise Appwrite::Exception.new('Missing required parameter: "transactionId"')
215
227
  end
216
228
 
217
229
  api_params = {
218
230
  commit: commit,
219
231
  rollback: rollback,
220
232
  }
221
-
233
+
222
234
  api_headers = {
223
235
  "X-Appwrite-Project": @client.get_config('project'),
224
236
  "content-type": 'application/json',
@@ -232,7 +244,6 @@ module Appwrite
232
244
  params: api_params,
233
245
  response_type: Models::Transaction
234
246
  )
235
-
236
247
  end
237
248
 
238
249
  # Delete a transaction by its unique ID.
@@ -240,17 +251,18 @@ module Appwrite
240
251
  # @param [String] transaction_id Transaction ID.
241
252
  #
242
253
  # @return []
243
- def delete_transaction(transaction_id:)
254
+ def delete_transaction(
255
+ transaction_id:
256
+ )
244
257
  api_path = '/tablesdb/transactions/{transactionId}'
245
258
  .gsub('{transactionId}', transaction_id)
246
259
 
247
260
  if transaction_id.nil?
248
- raise Appwrite::Exception.new('Missing required parameter: "transactionId"')
261
+ raise Appwrite::Exception.new('Missing required parameter: "transactionId"')
249
262
  end
250
263
 
251
- api_params = {
252
- }
253
-
264
+ api_params = {}
265
+
254
266
  api_headers = {
255
267
  "X-Appwrite-Project": @client.get_config('project'),
256
268
  "content-type": 'application/json',
@@ -262,7 +274,6 @@ module Appwrite
262
274
  headers: api_headers,
263
275
  params: api_params,
264
276
  )
265
-
266
277
  end
267
278
 
268
279
  # Create multiple operations in a single transaction.
@@ -271,18 +282,21 @@ module Appwrite
271
282
  # @param [Array] operations Array of staged operations.
272
283
  #
273
284
  # @return [Transaction]
274
- def create_operations(transaction_id:, operations: nil)
285
+ def create_operations(
286
+ transaction_id:,
287
+ operations: nil
288
+ )
275
289
  api_path = '/tablesdb/transactions/{transactionId}/operations'
276
290
  .gsub('{transactionId}', transaction_id)
277
291
 
278
292
  if transaction_id.nil?
279
- raise Appwrite::Exception.new('Missing required parameter: "transactionId"')
293
+ raise Appwrite::Exception.new('Missing required parameter: "transactionId"')
280
294
  end
281
295
 
282
296
  api_params = {
283
297
  operations: operations,
284
298
  }
285
-
299
+
286
300
  api_headers = {
287
301
  "X-Appwrite-Project": @client.get_config('project'),
288
302
  "content-type": 'application/json',
@@ -296,7 +310,6 @@ module Appwrite
296
310
  params: api_params,
297
311
  response_type: Models::Transaction
298
312
  )
299
-
300
313
  end
301
314
 
302
315
  # Get a database by its unique ID. This endpoint response returns a JSON
@@ -305,17 +318,18 @@ module Appwrite
305
318
  # @param [String] database_id Database ID.
306
319
  #
307
320
  # @return [Database]
308
- def get(database_id:)
321
+ def get(
322
+ database_id:
323
+ )
309
324
  api_path = '/tablesdb/{databaseId}'
310
325
  .gsub('{databaseId}', database_id)
311
326
 
312
327
  if database_id.nil?
313
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
328
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
314
329
  end
315
330
 
316
- api_params = {
317
- }
318
-
331
+ api_params = {}
332
+
319
333
  api_headers = {
320
334
  "X-Appwrite-Project": @client.get_config('project'),
321
335
  "accept": 'application/json',
@@ -328,25 +342,31 @@ module Appwrite
328
342
  params: api_params,
329
343
  response_type: Models::Database
330
344
  )
331
-
332
345
  end
333
346
 
334
347
  # Update a database by its unique ID.
335
348
  #
336
349
  # @param [String] database_id Database ID.
337
350
  # @param [String] name Database name. Max length: 128 chars.
338
- # @param [] enabled Is database enabled? When set to 'disabled', users cannot access the database but Server SDKs with an API key can still read and write to the database. No data is lost when this is toggled.
351
+ # @param [] enabled Is database enabled? When set to &#039;disabled&#039;, users cannot access the database but Server SDKs with an API key can still read and write to the database. No data is lost when this is toggled.
339
352
  # @param [String] specification Database specification. Resizing between dedicated specifications changes cpu, memory, storage and the connection ceiling via a rolling cutover with zero downtime. Moving a `serverless` database onto a dedicated specification is a data migration, not a resize.
340
353
  # @param [Integer] replicas Number of high availability replicas (0-5) for the dedicated database backing this database. Only valid when the database is backed by a dedicated specification. High availability is enabled when greater than 0.
341
354
  # @param [String] sync_mode Replication sync mode for the dedicated database backing this database. Only valid when the database is backed by a dedicated specification; the mode is only in force once there is at least one replica. Allowed values: async, sync, quorum.
342
355
  #
343
356
  # @return [Database]
344
- def update(database_id:, name: nil, enabled: nil, specification: nil, replicas: nil, sync_mode: nil)
357
+ def update(
358
+ database_id:,
359
+ name: nil,
360
+ enabled: nil,
361
+ specification: nil,
362
+ replicas: nil,
363
+ sync_mode: nil
364
+ )
345
365
  api_path = '/tablesdb/{databaseId}'
346
366
  .gsub('{databaseId}', database_id)
347
367
 
348
368
  if database_id.nil?
349
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
369
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
350
370
  end
351
371
 
352
372
  api_params = {
@@ -356,7 +376,7 @@ module Appwrite
356
376
  replicas: replicas,
357
377
  syncMode: sync_mode,
358
378
  }
359
-
379
+
360
380
  api_headers = {
361
381
  "X-Appwrite-Project": @client.get_config('project'),
362
382
  "content-type": 'application/json',
@@ -370,7 +390,6 @@ module Appwrite
370
390
  params: api_params,
371
391
  response_type: Models::Database
372
392
  )
373
-
374
393
  end
375
394
 
376
395
  # Delete a database by its unique ID. Only API keys with with databases.write
@@ -379,17 +398,18 @@ module Appwrite
379
398
  # @param [String] database_id Database ID.
380
399
  #
381
400
  # @return []
382
- def delete(database_id:)
401
+ def delete(
402
+ database_id:
403
+ )
383
404
  api_path = '/tablesdb/{databaseId}'
384
405
  .gsub('{databaseId}', database_id)
385
406
 
386
407
  if database_id.nil?
387
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
408
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
388
409
  end
389
410
 
390
- api_params = {
391
- }
392
-
411
+ api_params = {}
412
+
393
413
  api_headers = {
394
414
  "X-Appwrite-Project": @client.get_config('project'),
395
415
  "content-type": 'application/json',
@@ -401,31 +421,37 @@ module Appwrite
401
421
  headers: api_headers,
402
422
  params: api_params,
403
423
  )
404
-
405
424
  end
406
425
 
407
426
  # Trigger a manual failover for a dedicated database with high availability
408
427
  # enabled. Promotes a replica to primary. The failover runs asynchronously;
409
428
  # poll the database document for status updates. A database left
410
- # mid-operation by a failover that did not finish also accepts this call as a
411
- # repair, provided `targetReplicaId` names the member to promote.
429
+ # mid-operation also accepts this call as a repair once nothing is driving
430
+ # the operation it is stuck in. Repairing a failover that did not finish, a
431
+ # `failed` database, a stranded upgrade or migrate, or a stranded compute
432
+ # resize additionally requires `targetReplicaId` to name the member to
433
+ # promote, because the default target may be the member that operation
434
+ # already promoted.
412
435
  #
413
436
  # @param [String] database_id Database ID.
414
437
  # @param [String] target_replica_id Target replica ID to promote. If not specified, the healthiest replica is selected.
415
438
  #
416
439
  # @return [DedicatedDatabase]
417
- def create_failover(database_id:, target_replica_id: nil)
440
+ def create_failover(
441
+ database_id:,
442
+ target_replica_id: nil
443
+ )
418
444
  api_path = '/tablesdb/{databaseId}/failovers'
419
445
  .gsub('{databaseId}', database_id)
420
446
 
421
447
  if database_id.nil?
422
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
448
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
423
449
  end
424
450
 
425
451
  api_params = {
426
452
  targetReplicaId: target_replica_id,
427
453
  }
428
-
454
+
429
455
  api_headers = {
430
456
  "X-Appwrite-Project": @client.get_config('project'),
431
457
  "content-type": 'application/json',
@@ -439,7 +465,6 @@ module Appwrite
439
465
  params: api_params,
440
466
  response_type: Models::DedicatedDatabase
441
467
  )
442
-
443
468
  end
444
469
 
445
470
  # List the dedicated migrations for a TablesDB database. A database has at
@@ -448,17 +473,18 @@ module Appwrite
448
473
  # @param [String] database_id Database ID.
449
474
  #
450
475
  # @return [DatabaseMigrationList]
451
- def list_migrations(database_id:)
476
+ def list_migrations(
477
+ database_id:
478
+ )
452
479
  api_path = '/tablesdb/{databaseId}/migrations'
453
480
  .gsub('{databaseId}', database_id)
454
481
 
455
482
  if database_id.nil?
456
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
483
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
457
484
  end
458
485
 
459
- api_params = {
460
- }
461
-
486
+ api_params = {}
487
+
462
488
  api_headers = {
463
489
  "X-Appwrite-Project": @client.get_config('project'),
464
490
  "accept": 'application/json',
@@ -471,7 +497,6 @@ module Appwrite
471
497
  params: api_params,
472
498
  response_type: Models::DatabaseMigrationList
473
499
  )
474
-
475
500
  end
476
501
 
477
502
  # Start migrating a serverless TablesDB database onto a dedicated MySQL
@@ -483,23 +508,27 @@ module Appwrite
483
508
  # @param [] auto_cutover Whether to cut over automatically once the copy is verified. When disabled the migration parks at ready_to_cutover and holds there until the cutover is performed manually.
484
509
  #
485
510
  # @return [DatabaseMigration]
486
- def create_migration(database_id:, specification:, auto_cutover: nil)
511
+ def create_migration(
512
+ database_id:,
513
+ specification:,
514
+ auto_cutover: nil
515
+ )
487
516
  api_path = '/tablesdb/{databaseId}/migrations'
488
517
  .gsub('{databaseId}', database_id)
489
518
 
490
519
  if database_id.nil?
491
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
520
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
492
521
  end
493
522
 
494
523
  if specification.nil?
495
- raise Appwrite::Exception.new('Missing required parameter: "specification"')
524
+ raise Appwrite::Exception.new('Missing required parameter: "specification"')
496
525
  end
497
526
 
498
527
  api_params = {
499
528
  specification: specification,
500
529
  autoCutover: auto_cutover,
501
530
  }
502
-
531
+
503
532
  api_headers = {
504
533
  "X-Appwrite-Project": @client.get_config('project'),
505
534
  "content-type": 'application/json',
@@ -513,7 +542,6 @@ module Appwrite
513
542
  params: api_params,
514
543
  response_type: Models::DatabaseMigration
515
544
  )
516
-
517
545
  end
518
546
 
519
547
  # Get a single dedicated migration for a TablesDB database by its ID.
@@ -522,22 +550,24 @@ module Appwrite
522
550
  # @param [String] migration_id Migration ID.
523
551
  #
524
552
  # @return [DatabaseMigration]
525
- def get_migration(database_id:, migration_id:)
553
+ def get_migration(
554
+ database_id:,
555
+ migration_id:
556
+ )
526
557
  api_path = '/tablesdb/{databaseId}/migrations/{migrationId}'
527
558
  .gsub('{databaseId}', database_id)
528
559
  .gsub('{migrationId}', migration_id)
529
560
 
530
561
  if database_id.nil?
531
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
562
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
532
563
  end
533
564
 
534
565
  if migration_id.nil?
535
- raise Appwrite::Exception.new('Missing required parameter: "migrationId"')
566
+ raise Appwrite::Exception.new('Missing required parameter: "migrationId"')
536
567
  end
537
568
 
538
- api_params = {
539
- }
540
-
569
+ api_params = {}
570
+
541
571
  api_headers = {
542
572
  "X-Appwrite-Project": @client.get_config('project'),
543
573
  "accept": 'application/json',
@@ -550,7 +580,6 @@ module Appwrite
550
580
  params: api_params,
551
581
  response_type: Models::DatabaseMigration
552
582
  )
553
-
554
583
  end
555
584
 
556
585
  # Abort an in-flight TablesDB dedicated migration. Only allowed before
@@ -560,22 +589,24 @@ module Appwrite
560
589
  # @param [String] migration_id Migration ID.
561
590
  #
562
591
  # @return []
563
- def delete_migration(database_id:, migration_id:)
592
+ def delete_migration(
593
+ database_id:,
594
+ migration_id:
595
+ )
564
596
  api_path = '/tablesdb/{databaseId}/migrations/{migrationId}'
565
597
  .gsub('{databaseId}', database_id)
566
598
  .gsub('{migrationId}', migration_id)
567
599
 
568
600
  if database_id.nil?
569
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
601
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
570
602
  end
571
603
 
572
604
  if migration_id.nil?
573
- raise Appwrite::Exception.new('Missing required parameter: "migrationId"')
605
+ raise Appwrite::Exception.new('Missing required parameter: "migrationId"')
574
606
  end
575
607
 
576
- api_params = {
577
- }
578
-
608
+ api_params = {}
609
+
579
610
  api_headers = {
580
611
  "X-Appwrite-Project": @client.get_config('project'),
581
612
  "content-type": 'application/json',
@@ -588,7 +619,6 @@ module Appwrite
588
619
  headers: api_headers,
589
620
  params: api_params,
590
621
  )
591
-
592
622
  end
593
623
 
594
624
  # Cut a verified TablesDB migration over to its dedicated compute. Only
@@ -602,22 +632,24 @@ module Appwrite
602
632
  # @param [String] migration_id Migration ID.
603
633
  #
604
634
  # @return [DatabaseMigration]
605
- def cutover_migration(database_id:, migration_id:)
635
+ def cutover_migration(
636
+ database_id:,
637
+ migration_id:
638
+ )
606
639
  api_path = '/tablesdb/{databaseId}/migrations/{migrationId}/cutover'
607
640
  .gsub('{databaseId}', database_id)
608
641
  .gsub('{migrationId}', migration_id)
609
642
 
610
643
  if database_id.nil?
611
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
644
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
612
645
  end
613
646
 
614
647
  if migration_id.nil?
615
- raise Appwrite::Exception.new('Missing required parameter: "migrationId"')
648
+ raise Appwrite::Exception.new('Missing required parameter: "migrationId"')
616
649
  end
617
650
 
618
- api_params = {
619
- }
620
-
651
+ api_params = {}
652
+
621
653
  api_headers = {
622
654
  "X-Appwrite-Project": @client.get_config('project'),
623
655
  "content-type": 'application/json',
@@ -631,7 +663,6 @@ module Appwrite
631
663
  params: api_params,
632
664
  response_type: Models::DatabaseMigration
633
665
  )
634
-
635
666
  end
636
667
 
637
668
  # List the lifecycle operations recorded for a dedicated database, newest
@@ -645,12 +676,17 @@ module Appwrite
645
676
  # @param [Integer] offset Number of operations to skip.
646
677
  #
647
678
  # @return [DedicatedDatabaseOperationList]
648
- def list_operations(database_id:, status: nil, limit: nil, offset: nil)
679
+ def list_operations(
680
+ database_id:,
681
+ status: nil,
682
+ limit: nil,
683
+ offset: nil
684
+ )
649
685
  api_path = '/tablesdb/{databaseId}/operations'
650
686
  .gsub('{databaseId}', database_id)
651
687
 
652
688
  if database_id.nil?
653
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
689
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
654
690
  end
655
691
 
656
692
  api_params = {
@@ -658,7 +694,7 @@ module Appwrite
658
694
  limit: limit,
659
695
  offset: offset,
660
696
  }
661
-
697
+
662
698
  api_headers = {
663
699
  "X-Appwrite-Project": @client.get_config('project'),
664
700
  "accept": 'application/json',
@@ -671,7 +707,6 @@ module Appwrite
671
707
  params: api_params,
672
708
  response_type: Models::DedicatedDatabaseOperationList
673
709
  )
674
-
675
710
  end
676
711
 
677
712
  # Get high availability status for a dedicated database. Returns replica
@@ -680,17 +715,18 @@ module Appwrite
680
715
  # @param [String] database_id Database ID.
681
716
  #
682
717
  # @return [DedicatedDatabaseReplicas]
683
- def get_replicas(database_id:)
718
+ def get_replicas(
719
+ database_id:
720
+ )
684
721
  api_path = '/tablesdb/{databaseId}/replicas'
685
722
  .gsub('{databaseId}', database_id)
686
723
 
687
724
  if database_id.nil?
688
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
725
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
689
726
  end
690
727
 
691
- api_params = {
692
- }
693
-
728
+ api_params = {}
729
+
694
730
  api_headers = {
695
731
  "X-Appwrite-Project": @client.get_config('project'),
696
732
  "accept": 'application/json',
@@ -703,7 +739,6 @@ module Appwrite
703
739
  params: api_params,
704
740
  response_type: Models::DedicatedDatabaseReplicas
705
741
  )
706
-
707
742
  end
708
743
 
709
744
  # Get real-time health and status information for a dedicated database.
@@ -713,17 +748,18 @@ module Appwrite
713
748
  # @param [String] database_id Database ID.
714
749
  #
715
750
  # @return [DatabaseStatus]
716
- def get_status(database_id:)
751
+ def get_status(
752
+ database_id:
753
+ )
717
754
  api_path = '/tablesdb/{databaseId}/status'
718
755
  .gsub('{databaseId}', database_id)
719
756
 
720
757
  if database_id.nil?
721
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
758
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
722
759
  end
723
760
 
724
- api_params = {
725
- }
726
-
761
+ api_params = {}
762
+
727
763
  api_headers = {
728
764
  "X-Appwrite-Project": @client.get_config('project'),
729
765
  "accept": 'application/json',
@@ -736,7 +772,6 @@ module Appwrite
736
772
  params: api_params,
737
773
  response_type: Models::DatabaseStatus
738
774
  )
739
-
740
775
  end
741
776
 
742
777
  # Get a list of all tables that belong to the provided databaseId. You can
@@ -748,12 +783,17 @@ module Appwrite
748
783
  # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
749
784
  #
750
785
  # @return [TableList]
751
- def list_tables(database_id:, queries: nil, search: nil, total: nil)
786
+ def list_tables(
787
+ database_id:,
788
+ queries: nil,
789
+ search: nil,
790
+ total: nil
791
+ )
752
792
  api_path = '/tablesdb/{databaseId}/tables'
753
793
  .gsub('{databaseId}', database_id)
754
794
 
755
795
  if database_id.nil?
756
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
796
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
757
797
  end
758
798
 
759
799
  api_params = {
@@ -761,7 +801,7 @@ module Appwrite
761
801
  search: search,
762
802
  total: total,
763
803
  }
764
-
804
+
765
805
  api_headers = {
766
806
  "X-Appwrite-Project": @client.get_config('project'),
767
807
  "accept": 'application/json',
@@ -774,7 +814,6 @@ module Appwrite
774
814
  params: api_params,
775
815
  response_type: Models::TableList
776
816
  )
777
-
778
817
  end
779
818
 
780
819
  # Create a new Table. Before using this route, you should create a new
@@ -783,29 +822,38 @@ module Appwrite
783
822
  # API or directly from your database console.
784
823
  #
785
824
  # @param [String] database_id Database ID.
786
- # @param [String] table_id Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
825
+ # @param [String] table_id Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can&#039;t start with a special char. Max length is 36 chars.
787
826
  # @param [String] name Table name. Max length: 128 chars.
788
827
  # @param [Array] permissions An array of permissions strings. By default, no user is granted with any permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
789
828
  # @param [] row_security Enables configuring permissions for individual rows. A user needs one of row or table level permissions to access a row. [Learn more about permissions](https://appwrite.io/docs/permissions).
790
- # @param [] enabled Is table enabled? When set to 'disabled', users cannot access the table but Server SDKs with and API key can still read and write to the table. No data is lost when this is toggled.
829
+ # @param [] enabled Is table enabled? When set to &#039;disabled&#039;, users cannot access the table but Server SDKs with and API key can still read and write to the table. No data is lost when this is toggled.
791
830
  # @param [Array] columns Array of column definitions to create. Each column should contain: key (string), type (string: string, varchar, text, mediumtext, longtext, integer, bigint, double, boolean, datetime, point, linestring, polygon, email, url, ip, enum), size (integer, required for string and varchar types), required (boolean, optional), default (mixed, optional), array (boolean, optional), and type-specific options.
792
831
  # @param [Array] indexes Array of index definitions to create. Each index should contain: key (string), type (string: key, fulltext, unique, spatial), attributes (array of column keys), orders (array of ASC/DESC, optional), and lengths (array of integers, optional).
793
832
  #
794
833
  # @return [Table]
795
- def create_table(database_id:, table_id:, name:, permissions: nil, row_security: nil, enabled: nil, columns: nil, indexes: nil)
834
+ def create_table(
835
+ database_id:,
836
+ table_id:,
837
+ name:,
838
+ permissions: nil,
839
+ row_security: nil,
840
+ enabled: nil,
841
+ columns: nil,
842
+ indexes: nil
843
+ )
796
844
  api_path = '/tablesdb/{databaseId}/tables'
797
845
  .gsub('{databaseId}', database_id)
798
846
 
799
847
  if database_id.nil?
800
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
848
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
801
849
  end
802
850
 
803
851
  if table_id.nil?
804
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
852
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
805
853
  end
806
854
 
807
855
  if name.nil?
808
- raise Appwrite::Exception.new('Missing required parameter: "name"')
856
+ raise Appwrite::Exception.new('Missing required parameter: "name"')
809
857
  end
810
858
 
811
859
  api_params = {
@@ -817,7 +865,7 @@ module Appwrite
817
865
  columns: columns,
818
866
  indexes: indexes,
819
867
  }
820
-
868
+
821
869
  api_headers = {
822
870
  "X-Appwrite-Project": @client.get_config('project'),
823
871
  "content-type": 'application/json',
@@ -831,7 +879,6 @@ module Appwrite
831
879
  params: api_params,
832
880
  response_type: Models::Table
833
881
  )
834
-
835
882
  end
836
883
 
837
884
  # Get a table by its unique ID. This endpoint response returns a JSON object
@@ -841,22 +888,24 @@ module Appwrite
841
888
  # @param [String] table_id Table ID.
842
889
  #
843
890
  # @return [Table]
844
- def get_table(database_id:, table_id:)
891
+ def get_table(
892
+ database_id:,
893
+ table_id:
894
+ )
845
895
  api_path = '/tablesdb/{databaseId}/tables/{tableId}'
846
896
  .gsub('{databaseId}', database_id)
847
897
  .gsub('{tableId}', table_id)
848
898
 
849
899
  if database_id.nil?
850
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
900
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
851
901
  end
852
902
 
853
903
  if table_id.nil?
854
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
904
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
855
905
  end
856
906
 
857
- api_params = {
858
- }
859
-
907
+ api_params = {}
908
+
860
909
  api_headers = {
861
910
  "X-Appwrite-Project": @client.get_config('project'),
862
911
  "accept": 'application/json',
@@ -869,7 +918,6 @@ module Appwrite
869
918
  params: api_params,
870
919
  response_type: Models::Table
871
920
  )
872
-
873
921
  end
874
922
 
875
923
  # Update a table by its unique ID.
@@ -879,21 +927,29 @@ module Appwrite
879
927
  # @param [String] name Table name. Max length: 128 chars.
880
928
  # @param [Array] permissions An array of permission strings. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions).
881
929
  # @param [] row_security Enables configuring permissions for individual rows. A user needs one of row or table-level permissions to access a row. [Learn more about permissions](https://appwrite.io/docs/permissions).
882
- # @param [] enabled Is table enabled? When set to 'disabled', users cannot access the table but Server SDKs with and API key can still read and write to the table. No data is lost when this is toggled.
930
+ # @param [] enabled Is table enabled? When set to &#039;disabled&#039;, users cannot access the table but Server SDKs with and API key can still read and write to the table. No data is lost when this is toggled.
883
931
  # @param [] purge When true, purge all cached list responses for this table as part of the update. Use this to force readers to see fresh data immediately instead of waiting for the cache TTL to expire.
884
932
  #
885
933
  # @return [Table]
886
- def update_table(database_id:, table_id:, name: nil, permissions: nil, row_security: nil, enabled: nil, purge: nil)
934
+ def update_table(
935
+ database_id:,
936
+ table_id:,
937
+ name: nil,
938
+ permissions: nil,
939
+ row_security: nil,
940
+ enabled: nil,
941
+ purge: nil
942
+ )
887
943
  api_path = '/tablesdb/{databaseId}/tables/{tableId}'
888
944
  .gsub('{databaseId}', database_id)
889
945
  .gsub('{tableId}', table_id)
890
946
 
891
947
  if database_id.nil?
892
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
948
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
893
949
  end
894
950
 
895
951
  if table_id.nil?
896
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
952
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
897
953
  end
898
954
 
899
955
  api_params = {
@@ -903,7 +959,7 @@ module Appwrite
903
959
  enabled: enabled,
904
960
  purge: purge,
905
961
  }
906
-
962
+
907
963
  api_headers = {
908
964
  "X-Appwrite-Project": @client.get_config('project'),
909
965
  "content-type": 'application/json',
@@ -917,7 +973,6 @@ module Appwrite
917
973
  params: api_params,
918
974
  response_type: Models::Table
919
975
  )
920
-
921
976
  end
922
977
 
923
978
  # Delete a table by its unique ID. Only users with write permissions have
@@ -927,22 +982,24 @@ module Appwrite
927
982
  # @param [String] table_id Table ID.
928
983
  #
929
984
  # @return []
930
- def delete_table(database_id:, table_id:)
985
+ def delete_table(
986
+ database_id:,
987
+ table_id:
988
+ )
931
989
  api_path = '/tablesdb/{databaseId}/tables/{tableId}'
932
990
  .gsub('{databaseId}', database_id)
933
991
  .gsub('{tableId}', table_id)
934
992
 
935
993
  if database_id.nil?
936
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
994
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
937
995
  end
938
996
 
939
997
  if table_id.nil?
940
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
998
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
941
999
  end
942
1000
 
943
- api_params = {
944
- }
945
-
1001
+ api_params = {}
1002
+
946
1003
  api_headers = {
947
1004
  "X-Appwrite-Project": @client.get_config('project'),
948
1005
  "content-type": 'application/json',
@@ -954,7 +1011,6 @@ module Appwrite
954
1011
  headers: api_headers,
955
1012
  params: api_params,
956
1013
  )
957
-
958
1014
  end
959
1015
 
960
1016
  # List columns in the table.
@@ -965,24 +1021,29 @@ module Appwrite
965
1021
  # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
966
1022
  #
967
1023
  # @return [ColumnList]
968
- def list_columns(database_id:, table_id:, queries: nil, total: nil)
1024
+ def list_columns(
1025
+ database_id:,
1026
+ table_id:,
1027
+ queries: nil,
1028
+ total: nil
1029
+ )
969
1030
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns'
970
1031
  .gsub('{databaseId}', database_id)
971
1032
  .gsub('{tableId}', table_id)
972
1033
 
973
1034
  if database_id.nil?
974
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1035
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
975
1036
  end
976
1037
 
977
1038
  if table_id.nil?
978
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1039
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
979
1040
  end
980
1041
 
981
1042
  api_params = {
982
1043
  queries: queries,
983
1044
  total: total,
984
1045
  }
985
-
1046
+
986
1047
  api_headers = {
987
1048
  "X-Appwrite-Project": @client.get_config('project'),
988
1049
  "accept": 'application/json',
@@ -995,12 +1056,11 @@ module Appwrite
995
1056
  params: api_params,
996
1057
  response_type: Models::ColumnList
997
1058
  )
998
-
999
1059
  end
1000
1060
 
1001
1061
  # Create a bigint column. Optionally, minimum and maximum values can be
1002
1062
  # provided.
1003
- #
1063
+ #
1004
1064
  #
1005
1065
  # @param [String] database_id Database ID.
1006
1066
  # @param [String] table_id Table ID.
@@ -1012,25 +1072,34 @@ module Appwrite
1012
1072
  # @param [] array Is column an array?
1013
1073
  #
1014
1074
  # @return [ColumnBigint]
1015
- def create_big_int_column(database_id:, table_id:, key:, required:, min: nil, max: nil, default: nil, array: nil)
1075
+ def create_big_int_column(
1076
+ database_id:,
1077
+ table_id:,
1078
+ key:,
1079
+ required:,
1080
+ min: nil,
1081
+ max: nil,
1082
+ default: nil,
1083
+ array: nil
1084
+ )
1016
1085
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/bigint'
1017
1086
  .gsub('{databaseId}', database_id)
1018
1087
  .gsub('{tableId}', table_id)
1019
1088
 
1020
1089
  if database_id.nil?
1021
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1090
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1022
1091
  end
1023
1092
 
1024
1093
  if table_id.nil?
1025
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1094
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1026
1095
  end
1027
1096
 
1028
1097
  if key.nil?
1029
- raise Appwrite::Exception.new('Missing required parameter: "key"')
1098
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
1030
1099
  end
1031
1100
 
1032
1101
  if required.nil?
1033
- raise Appwrite::Exception.new('Missing required parameter: "required"')
1102
+ raise Appwrite::Exception.new('Missing required parameter: "required"')
1034
1103
  end
1035
1104
 
1036
1105
  api_params = {
@@ -1041,7 +1110,7 @@ module Appwrite
1041
1110
  default: default,
1042
1111
  array: array,
1043
1112
  }
1044
-
1113
+
1045
1114
  api_headers = {
1046
1115
  "X-Appwrite-Project": @client.get_config('project'),
1047
1116
  "content-type": 'application/json',
@@ -1055,12 +1124,11 @@ module Appwrite
1055
1124
  params: api_params,
1056
1125
  response_type: Models::ColumnBigint
1057
1126
  )
1058
-
1059
1127
  end
1060
1128
 
1061
1129
  # Update a bigint column. Changing the `default` value will not update
1062
1130
  # already existing rows.
1063
- #
1131
+ #
1064
1132
  #
1065
1133
  # @param [String] database_id Database ID.
1066
1134
  # @param [String] table_id Table ID.
@@ -1072,30 +1140,39 @@ module Appwrite
1072
1140
  # @param [String] new_key New Column Key.
1073
1141
  #
1074
1142
  # @return [ColumnBigint]
1075
- def update_big_int_column(database_id:, table_id:, key:, required:, default:, min: nil, max: nil, new_key: nil)
1143
+ def update_big_int_column(
1144
+ database_id:,
1145
+ table_id:,
1146
+ key:,
1147
+ required:,
1148
+ default:,
1149
+ min: nil,
1150
+ max: nil,
1151
+ new_key: nil
1152
+ )
1076
1153
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/bigint/{key}'
1077
1154
  .gsub('{databaseId}', database_id)
1078
1155
  .gsub('{tableId}', table_id)
1079
1156
  .gsub('{key}', key)
1080
1157
 
1081
1158
  if database_id.nil?
1082
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1159
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1083
1160
  end
1084
1161
 
1085
1162
  if table_id.nil?
1086
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1163
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1087
1164
  end
1088
1165
 
1089
1166
  if key.nil?
1090
- raise Appwrite::Exception.new('Missing required parameter: "key"')
1167
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
1091
1168
  end
1092
1169
 
1093
1170
  if required.nil?
1094
- raise Appwrite::Exception.new('Missing required parameter: "required"')
1171
+ raise Appwrite::Exception.new('Missing required parameter: "required"')
1095
1172
  end
1096
1173
 
1097
1174
  if default.nil?
1098
- raise Appwrite::Exception.new('Missing required parameter: "default"')
1175
+ raise Appwrite::Exception.new('Missing required parameter: "default"')
1099
1176
  end
1100
1177
 
1101
1178
  api_params = {
@@ -1105,7 +1182,7 @@ module Appwrite
1105
1182
  default: default,
1106
1183
  newKey: new_key,
1107
1184
  }
1108
-
1185
+
1109
1186
  api_headers = {
1110
1187
  "X-Appwrite-Project": @client.get_config('project'),
1111
1188
  "content-type": 'application/json',
@@ -1119,11 +1196,10 @@ module Appwrite
1119
1196
  params: api_params,
1120
1197
  response_type: Models::ColumnBigint
1121
1198
  )
1122
-
1123
1199
  end
1124
1200
 
1125
1201
  # Create a boolean column.
1126
- #
1202
+ #
1127
1203
  #
1128
1204
  # @param [String] database_id Database ID.
1129
1205
  # @param [String] table_id Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).
@@ -1133,25 +1209,32 @@ module Appwrite
1133
1209
  # @param [] array Is column an array?
1134
1210
  #
1135
1211
  # @return [ColumnBoolean]
1136
- def create_boolean_column(database_id:, table_id:, key:, required:, default: nil, array: nil)
1212
+ def create_boolean_column(
1213
+ database_id:,
1214
+ table_id:,
1215
+ key:,
1216
+ required:,
1217
+ default: nil,
1218
+ array: nil
1219
+ )
1137
1220
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/boolean'
1138
1221
  .gsub('{databaseId}', database_id)
1139
1222
  .gsub('{tableId}', table_id)
1140
1223
 
1141
1224
  if database_id.nil?
1142
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1225
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1143
1226
  end
1144
1227
 
1145
1228
  if table_id.nil?
1146
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1229
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1147
1230
  end
1148
1231
 
1149
1232
  if key.nil?
1150
- raise Appwrite::Exception.new('Missing required parameter: "key"')
1233
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
1151
1234
  end
1152
1235
 
1153
1236
  if required.nil?
1154
- raise Appwrite::Exception.new('Missing required parameter: "required"')
1237
+ raise Appwrite::Exception.new('Missing required parameter: "required"')
1155
1238
  end
1156
1239
 
1157
1240
  api_params = {
@@ -1160,7 +1243,7 @@ module Appwrite
1160
1243
  default: default,
1161
1244
  array: array,
1162
1245
  }
1163
-
1246
+
1164
1247
  api_headers = {
1165
1248
  "X-Appwrite-Project": @client.get_config('project'),
1166
1249
  "content-type": 'application/json',
@@ -1174,7 +1257,6 @@ module Appwrite
1174
1257
  params: api_params,
1175
1258
  response_type: Models::ColumnBoolean
1176
1259
  )
1177
-
1178
1260
  end
1179
1261
 
1180
1262
  # Update a boolean column. Changing the `default` value will not update
@@ -1188,30 +1270,37 @@ module Appwrite
1188
1270
  # @param [String] new_key New Column Key.
1189
1271
  #
1190
1272
  # @return [ColumnBoolean]
1191
- def update_boolean_column(database_id:, table_id:, key:, required:, default:, new_key: nil)
1273
+ def update_boolean_column(
1274
+ database_id:,
1275
+ table_id:,
1276
+ key:,
1277
+ required:,
1278
+ default:,
1279
+ new_key: nil
1280
+ )
1192
1281
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/boolean/{key}'
1193
1282
  .gsub('{databaseId}', database_id)
1194
1283
  .gsub('{tableId}', table_id)
1195
1284
  .gsub('{key}', key)
1196
1285
 
1197
1286
  if database_id.nil?
1198
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1287
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1199
1288
  end
1200
1289
 
1201
1290
  if table_id.nil?
1202
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1291
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1203
1292
  end
1204
1293
 
1205
1294
  if key.nil?
1206
- raise Appwrite::Exception.new('Missing required parameter: "key"')
1295
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
1207
1296
  end
1208
1297
 
1209
1298
  if required.nil?
1210
- raise Appwrite::Exception.new('Missing required parameter: "required"')
1299
+ raise Appwrite::Exception.new('Missing required parameter: "required"')
1211
1300
  end
1212
1301
 
1213
1302
  if default.nil?
1214
- raise Appwrite::Exception.new('Missing required parameter: "default"')
1303
+ raise Appwrite::Exception.new('Missing required parameter: "default"')
1215
1304
  end
1216
1305
 
1217
1306
  api_params = {
@@ -1219,7 +1308,7 @@ module Appwrite
1219
1308
  default: default,
1220
1309
  newKey: new_key,
1221
1310
  }
1222
-
1311
+
1223
1312
  api_headers = {
1224
1313
  "X-Appwrite-Project": @client.get_config('project'),
1225
1314
  "content-type": 'application/json',
@@ -1233,7 +1322,6 @@ module Appwrite
1233
1322
  params: api_params,
1234
1323
  response_type: Models::ColumnBoolean
1235
1324
  )
1236
-
1237
1325
  end
1238
1326
 
1239
1327
  # Create a date time column according to the ISO 8601 standard.
@@ -1246,25 +1334,32 @@ module Appwrite
1246
1334
  # @param [] array Is column an array?
1247
1335
  #
1248
1336
  # @return [ColumnDatetime]
1249
- def create_datetime_column(database_id:, table_id:, key:, required:, default: nil, array: nil)
1337
+ def create_datetime_column(
1338
+ database_id:,
1339
+ table_id:,
1340
+ key:,
1341
+ required:,
1342
+ default: nil,
1343
+ array: nil
1344
+ )
1250
1345
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/datetime'
1251
1346
  .gsub('{databaseId}', database_id)
1252
1347
  .gsub('{tableId}', table_id)
1253
1348
 
1254
1349
  if database_id.nil?
1255
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1350
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1256
1351
  end
1257
1352
 
1258
1353
  if table_id.nil?
1259
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1354
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1260
1355
  end
1261
1356
 
1262
1357
  if key.nil?
1263
- raise Appwrite::Exception.new('Missing required parameter: "key"')
1358
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
1264
1359
  end
1265
1360
 
1266
1361
  if required.nil?
1267
- raise Appwrite::Exception.new('Missing required parameter: "required"')
1362
+ raise Appwrite::Exception.new('Missing required parameter: "required"')
1268
1363
  end
1269
1364
 
1270
1365
  api_params = {
@@ -1273,7 +1368,7 @@ module Appwrite
1273
1368
  default: default,
1274
1369
  array: array,
1275
1370
  }
1276
-
1371
+
1277
1372
  api_headers = {
1278
1373
  "X-Appwrite-Project": @client.get_config('project'),
1279
1374
  "content-type": 'application/json',
@@ -1287,7 +1382,6 @@ module Appwrite
1287
1382
  params: api_params,
1288
1383
  response_type: Models::ColumnDatetime
1289
1384
  )
1290
-
1291
1385
  end
1292
1386
 
1293
1387
  # Update a date time column. Changing the `default` value will not update
@@ -1301,30 +1395,37 @@ module Appwrite
1301
1395
  # @param [String] new_key New Column Key.
1302
1396
  #
1303
1397
  # @return [ColumnDatetime]
1304
- def update_datetime_column(database_id:, table_id:, key:, required:, default:, new_key: nil)
1398
+ def update_datetime_column(
1399
+ database_id:,
1400
+ table_id:,
1401
+ key:,
1402
+ required:,
1403
+ default:,
1404
+ new_key: nil
1405
+ )
1305
1406
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/datetime/{key}'
1306
1407
  .gsub('{databaseId}', database_id)
1307
1408
  .gsub('{tableId}', table_id)
1308
1409
  .gsub('{key}', key)
1309
1410
 
1310
1411
  if database_id.nil?
1311
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1412
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1312
1413
  end
1313
1414
 
1314
1415
  if table_id.nil?
1315
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1416
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1316
1417
  end
1317
1418
 
1318
1419
  if key.nil?
1319
- raise Appwrite::Exception.new('Missing required parameter: "key"')
1420
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
1320
1421
  end
1321
1422
 
1322
1423
  if required.nil?
1323
- raise Appwrite::Exception.new('Missing required parameter: "required"')
1424
+ raise Appwrite::Exception.new('Missing required parameter: "required"')
1324
1425
  end
1325
1426
 
1326
1427
  if default.nil?
1327
- raise Appwrite::Exception.new('Missing required parameter: "default"')
1428
+ raise Appwrite::Exception.new('Missing required parameter: "default"')
1328
1429
  end
1329
1430
 
1330
1431
  api_params = {
@@ -1332,7 +1433,7 @@ module Appwrite
1332
1433
  default: default,
1333
1434
  newKey: new_key,
1334
1435
  }
1335
-
1436
+
1336
1437
  api_headers = {
1337
1438
  "X-Appwrite-Project": @client.get_config('project'),
1338
1439
  "content-type": 'application/json',
@@ -1346,11 +1447,10 @@ module Appwrite
1346
1447
  params: api_params,
1347
1448
  response_type: Models::ColumnDatetime
1348
1449
  )
1349
-
1350
1450
  end
1351
1451
 
1352
1452
  # Create an email column.
1353
- #
1453
+ #
1354
1454
  #
1355
1455
  # @param [String] database_id Database ID.
1356
1456
  # @param [String] table_id Table ID.
@@ -1360,25 +1460,32 @@ module Appwrite
1360
1460
  # @param [] array Is column an array?
1361
1461
  #
1362
1462
  # @return [ColumnEmail]
1363
- def create_email_column(database_id:, table_id:, key:, required:, default: nil, array: nil)
1463
+ def create_email_column(
1464
+ database_id:,
1465
+ table_id:,
1466
+ key:,
1467
+ required:,
1468
+ default: nil,
1469
+ array: nil
1470
+ )
1364
1471
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/email'
1365
1472
  .gsub('{databaseId}', database_id)
1366
1473
  .gsub('{tableId}', table_id)
1367
1474
 
1368
1475
  if database_id.nil?
1369
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1476
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1370
1477
  end
1371
1478
 
1372
1479
  if table_id.nil?
1373
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1480
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1374
1481
  end
1375
1482
 
1376
1483
  if key.nil?
1377
- raise Appwrite::Exception.new('Missing required parameter: "key"')
1484
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
1378
1485
  end
1379
1486
 
1380
1487
  if required.nil?
1381
- raise Appwrite::Exception.new('Missing required parameter: "required"')
1488
+ raise Appwrite::Exception.new('Missing required parameter: "required"')
1382
1489
  end
1383
1490
 
1384
1491
  api_params = {
@@ -1387,7 +1494,7 @@ module Appwrite
1387
1494
  default: default,
1388
1495
  array: array,
1389
1496
  }
1390
-
1497
+
1391
1498
  api_headers = {
1392
1499
  "X-Appwrite-Project": @client.get_config('project'),
1393
1500
  "content-type": 'application/json',
@@ -1401,12 +1508,11 @@ module Appwrite
1401
1508
  params: api_params,
1402
1509
  response_type: Models::ColumnEmail
1403
1510
  )
1404
-
1405
1511
  end
1406
1512
 
1407
1513
  # Update an email column. Changing the `default` value will not update
1408
1514
  # already existing rows.
1409
- #
1515
+ #
1410
1516
  #
1411
1517
  # @param [String] database_id Database ID.
1412
1518
  # @param [String] table_id Table ID.
@@ -1416,30 +1522,37 @@ module Appwrite
1416
1522
  # @param [String] new_key New Column Key.
1417
1523
  #
1418
1524
  # @return [ColumnEmail]
1419
- def update_email_column(database_id:, table_id:, key:, required:, default:, new_key: nil)
1525
+ def update_email_column(
1526
+ database_id:,
1527
+ table_id:,
1528
+ key:,
1529
+ required:,
1530
+ default:,
1531
+ new_key: nil
1532
+ )
1420
1533
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/email/{key}'
1421
1534
  .gsub('{databaseId}', database_id)
1422
1535
  .gsub('{tableId}', table_id)
1423
1536
  .gsub('{key}', key)
1424
1537
 
1425
1538
  if database_id.nil?
1426
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1539
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1427
1540
  end
1428
1541
 
1429
1542
  if table_id.nil?
1430
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1543
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1431
1544
  end
1432
1545
 
1433
1546
  if key.nil?
1434
- raise Appwrite::Exception.new('Missing required parameter: "key"')
1547
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
1435
1548
  end
1436
1549
 
1437
1550
  if required.nil?
1438
- raise Appwrite::Exception.new('Missing required parameter: "required"')
1551
+ raise Appwrite::Exception.new('Missing required parameter: "required"')
1439
1552
  end
1440
1553
 
1441
1554
  if default.nil?
1442
- raise Appwrite::Exception.new('Missing required parameter: "default"')
1555
+ raise Appwrite::Exception.new('Missing required parameter: "default"')
1443
1556
  end
1444
1557
 
1445
1558
  api_params = {
@@ -1447,7 +1560,7 @@ module Appwrite
1447
1560
  default: default,
1448
1561
  newKey: new_key,
1449
1562
  }
1450
-
1563
+
1451
1564
  api_headers = {
1452
1565
  "X-Appwrite-Project": @client.get_config('project'),
1453
1566
  "content-type": 'application/json',
@@ -1461,7 +1574,6 @@ module Appwrite
1461
1574
  params: api_params,
1462
1575
  response_type: Models::ColumnEmail
1463
1576
  )
1464
-
1465
1577
  end
1466
1578
 
1467
1579
  # Create an enumeration column. The `elements` param acts as a white-list of
@@ -1476,29 +1588,37 @@ module Appwrite
1476
1588
  # @param [] array Is column an array?
1477
1589
  #
1478
1590
  # @return [ColumnEnum]
1479
- def create_enum_column(database_id:, table_id:, key:, elements:, required:, default: nil, array: nil)
1591
+ def create_enum_column(
1592
+ database_id:,
1593
+ table_id:,
1594
+ key:,
1595
+ elements:,
1596
+ required:,
1597
+ default: nil,
1598
+ array: nil
1599
+ )
1480
1600
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/enum'
1481
1601
  .gsub('{databaseId}', database_id)
1482
1602
  .gsub('{tableId}', table_id)
1483
1603
 
1484
1604
  if database_id.nil?
1485
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1605
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1486
1606
  end
1487
1607
 
1488
1608
  if table_id.nil?
1489
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1609
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1490
1610
  end
1491
1611
 
1492
1612
  if key.nil?
1493
- raise Appwrite::Exception.new('Missing required parameter: "key"')
1613
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
1494
1614
  end
1495
1615
 
1496
1616
  if elements.nil?
1497
- raise Appwrite::Exception.new('Missing required parameter: "elements"')
1617
+ raise Appwrite::Exception.new('Missing required parameter: "elements"')
1498
1618
  end
1499
1619
 
1500
1620
  if required.nil?
1501
- raise Appwrite::Exception.new('Missing required parameter: "required"')
1621
+ raise Appwrite::Exception.new('Missing required parameter: "required"')
1502
1622
  end
1503
1623
 
1504
1624
  api_params = {
@@ -1508,7 +1628,7 @@ module Appwrite
1508
1628
  default: default,
1509
1629
  array: array,
1510
1630
  }
1511
-
1631
+
1512
1632
  api_headers = {
1513
1633
  "X-Appwrite-Project": @client.get_config('project'),
1514
1634
  "content-type": 'application/json',
@@ -1522,12 +1642,11 @@ module Appwrite
1522
1642
  params: api_params,
1523
1643
  response_type: Models::ColumnEnum
1524
1644
  )
1525
-
1526
1645
  end
1527
1646
 
1528
1647
  # Update an enum column. Changing the `default` value will not update already
1529
1648
  # existing rows.
1530
- #
1649
+ #
1531
1650
  #
1532
1651
  # @param [String] database_id Database ID.
1533
1652
  # @param [String] table_id Table ID.
@@ -1538,34 +1657,42 @@ module Appwrite
1538
1657
  # @param [String] new_key New Column Key.
1539
1658
  #
1540
1659
  # @return [ColumnEnum]
1541
- def update_enum_column(database_id:, table_id:, key:, elements:, required:, default:, new_key: nil)
1660
+ def update_enum_column(
1661
+ database_id:,
1662
+ table_id:,
1663
+ key:,
1664
+ elements:,
1665
+ required:,
1666
+ default:,
1667
+ new_key: nil
1668
+ )
1542
1669
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/enum/{key}'
1543
1670
  .gsub('{databaseId}', database_id)
1544
1671
  .gsub('{tableId}', table_id)
1545
1672
  .gsub('{key}', key)
1546
1673
 
1547
1674
  if database_id.nil?
1548
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1675
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1549
1676
  end
1550
1677
 
1551
1678
  if table_id.nil?
1552
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1679
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1553
1680
  end
1554
1681
 
1555
1682
  if key.nil?
1556
- raise Appwrite::Exception.new('Missing required parameter: "key"')
1683
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
1557
1684
  end
1558
1685
 
1559
1686
  if elements.nil?
1560
- raise Appwrite::Exception.new('Missing required parameter: "elements"')
1687
+ raise Appwrite::Exception.new('Missing required parameter: "elements"')
1561
1688
  end
1562
1689
 
1563
1690
  if required.nil?
1564
- raise Appwrite::Exception.new('Missing required parameter: "required"')
1691
+ raise Appwrite::Exception.new('Missing required parameter: "required"')
1565
1692
  end
1566
1693
 
1567
1694
  if default.nil?
1568
- raise Appwrite::Exception.new('Missing required parameter: "default"')
1695
+ raise Appwrite::Exception.new('Missing required parameter: "default"')
1569
1696
  end
1570
1697
 
1571
1698
  api_params = {
@@ -1574,7 +1701,7 @@ module Appwrite
1574
1701
  default: default,
1575
1702
  newKey: new_key,
1576
1703
  }
1577
-
1704
+
1578
1705
  api_headers = {
1579
1706
  "X-Appwrite-Project": @client.get_config('project'),
1580
1707
  "content-type": 'application/json',
@@ -1588,12 +1715,11 @@ module Appwrite
1588
1715
  params: api_params,
1589
1716
  response_type: Models::ColumnEnum
1590
1717
  )
1591
-
1592
1718
  end
1593
1719
 
1594
1720
  # Create a float column. Optionally, minimum and maximum values can be
1595
1721
  # provided.
1596
- #
1722
+ #
1597
1723
  #
1598
1724
  # @param [String] database_id Database ID.
1599
1725
  # @param [String] table_id Table ID.
@@ -1605,25 +1731,34 @@ module Appwrite
1605
1731
  # @param [] array Is column an array?
1606
1732
  #
1607
1733
  # @return [ColumnFloat]
1608
- def create_float_column(database_id:, table_id:, key:, required:, min: nil, max: nil, default: nil, array: nil)
1734
+ def create_float_column(
1735
+ database_id:,
1736
+ table_id:,
1737
+ key:,
1738
+ required:,
1739
+ min: nil,
1740
+ max: nil,
1741
+ default: nil,
1742
+ array: nil
1743
+ )
1609
1744
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/float'
1610
1745
  .gsub('{databaseId}', database_id)
1611
1746
  .gsub('{tableId}', table_id)
1612
1747
 
1613
1748
  if database_id.nil?
1614
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1749
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1615
1750
  end
1616
1751
 
1617
1752
  if table_id.nil?
1618
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1753
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1619
1754
  end
1620
1755
 
1621
1756
  if key.nil?
1622
- raise Appwrite::Exception.new('Missing required parameter: "key"')
1757
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
1623
1758
  end
1624
1759
 
1625
1760
  if required.nil?
1626
- raise Appwrite::Exception.new('Missing required parameter: "required"')
1761
+ raise Appwrite::Exception.new('Missing required parameter: "required"')
1627
1762
  end
1628
1763
 
1629
1764
  api_params = {
@@ -1634,7 +1769,7 @@ module Appwrite
1634
1769
  default: default,
1635
1770
  array: array,
1636
1771
  }
1637
-
1772
+
1638
1773
  api_headers = {
1639
1774
  "X-Appwrite-Project": @client.get_config('project'),
1640
1775
  "content-type": 'application/json',
@@ -1648,12 +1783,11 @@ module Appwrite
1648
1783
  params: api_params,
1649
1784
  response_type: Models::ColumnFloat
1650
1785
  )
1651
-
1652
1786
  end
1653
1787
 
1654
1788
  # Update a float column. Changing the `default` value will not update already
1655
1789
  # existing rows.
1656
- #
1790
+ #
1657
1791
  #
1658
1792
  # @param [String] database_id Database ID.
1659
1793
  # @param [String] table_id Table ID.
@@ -1665,30 +1799,39 @@ module Appwrite
1665
1799
  # @param [String] new_key New Column Key.
1666
1800
  #
1667
1801
  # @return [ColumnFloat]
1668
- def update_float_column(database_id:, table_id:, key:, required:, default:, min: nil, max: nil, new_key: nil)
1802
+ def update_float_column(
1803
+ database_id:,
1804
+ table_id:,
1805
+ key:,
1806
+ required:,
1807
+ default:,
1808
+ min: nil,
1809
+ max: nil,
1810
+ new_key: nil
1811
+ )
1669
1812
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/float/{key}'
1670
1813
  .gsub('{databaseId}', database_id)
1671
1814
  .gsub('{tableId}', table_id)
1672
1815
  .gsub('{key}', key)
1673
1816
 
1674
1817
  if database_id.nil?
1675
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1818
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1676
1819
  end
1677
1820
 
1678
1821
  if table_id.nil?
1679
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1822
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1680
1823
  end
1681
1824
 
1682
1825
  if key.nil?
1683
- raise Appwrite::Exception.new('Missing required parameter: "key"')
1826
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
1684
1827
  end
1685
1828
 
1686
1829
  if required.nil?
1687
- raise Appwrite::Exception.new('Missing required parameter: "required"')
1830
+ raise Appwrite::Exception.new('Missing required parameter: "required"')
1688
1831
  end
1689
1832
 
1690
1833
  if default.nil?
1691
- raise Appwrite::Exception.new('Missing required parameter: "default"')
1834
+ raise Appwrite::Exception.new('Missing required parameter: "default"')
1692
1835
  end
1693
1836
 
1694
1837
  api_params = {
@@ -1698,7 +1841,7 @@ module Appwrite
1698
1841
  default: default,
1699
1842
  newKey: new_key,
1700
1843
  }
1701
-
1844
+
1702
1845
  api_headers = {
1703
1846
  "X-Appwrite-Project": @client.get_config('project'),
1704
1847
  "content-type": 'application/json',
@@ -1712,12 +1855,11 @@ module Appwrite
1712
1855
  params: api_params,
1713
1856
  response_type: Models::ColumnFloat
1714
1857
  )
1715
-
1716
1858
  end
1717
1859
 
1718
1860
  # Create an integer column. Optionally, minimum and maximum values can be
1719
1861
  # provided.
1720
- #
1862
+ #
1721
1863
  #
1722
1864
  # @param [String] database_id Database ID.
1723
1865
  # @param [String] table_id Table ID.
@@ -1729,25 +1871,34 @@ module Appwrite
1729
1871
  # @param [] array Is column an array?
1730
1872
  #
1731
1873
  # @return [ColumnInteger]
1732
- def create_integer_column(database_id:, table_id:, key:, required:, min: nil, max: nil, default: nil, array: nil)
1874
+ def create_integer_column(
1875
+ database_id:,
1876
+ table_id:,
1877
+ key:,
1878
+ required:,
1879
+ min: nil,
1880
+ max: nil,
1881
+ default: nil,
1882
+ array: nil
1883
+ )
1733
1884
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/integer'
1734
1885
  .gsub('{databaseId}', database_id)
1735
1886
  .gsub('{tableId}', table_id)
1736
1887
 
1737
1888
  if database_id.nil?
1738
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1889
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1739
1890
  end
1740
1891
 
1741
1892
  if table_id.nil?
1742
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1893
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1743
1894
  end
1744
1895
 
1745
1896
  if key.nil?
1746
- raise Appwrite::Exception.new('Missing required parameter: "key"')
1897
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
1747
1898
  end
1748
1899
 
1749
1900
  if required.nil?
1750
- raise Appwrite::Exception.new('Missing required parameter: "required"')
1901
+ raise Appwrite::Exception.new('Missing required parameter: "required"')
1751
1902
  end
1752
1903
 
1753
1904
  api_params = {
@@ -1758,7 +1909,7 @@ module Appwrite
1758
1909
  default: default,
1759
1910
  array: array,
1760
1911
  }
1761
-
1912
+
1762
1913
  api_headers = {
1763
1914
  "X-Appwrite-Project": @client.get_config('project'),
1764
1915
  "content-type": 'application/json',
@@ -1772,12 +1923,11 @@ module Appwrite
1772
1923
  params: api_params,
1773
1924
  response_type: Models::ColumnInteger
1774
1925
  )
1775
-
1776
1926
  end
1777
1927
 
1778
1928
  # Update an integer column. Changing the `default` value will not update
1779
1929
  # already existing rows.
1780
- #
1930
+ #
1781
1931
  #
1782
1932
  # @param [String] database_id Database ID.
1783
1933
  # @param [String] table_id Table ID.
@@ -1789,30 +1939,39 @@ module Appwrite
1789
1939
  # @param [String] new_key New Column Key.
1790
1940
  #
1791
1941
  # @return [ColumnInteger]
1792
- def update_integer_column(database_id:, table_id:, key:, required:, default:, min: nil, max: nil, new_key: nil)
1942
+ def update_integer_column(
1943
+ database_id:,
1944
+ table_id:,
1945
+ key:,
1946
+ required:,
1947
+ default:,
1948
+ min: nil,
1949
+ max: nil,
1950
+ new_key: nil
1951
+ )
1793
1952
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/integer/{key}'
1794
1953
  .gsub('{databaseId}', database_id)
1795
1954
  .gsub('{tableId}', table_id)
1796
1955
  .gsub('{key}', key)
1797
1956
 
1798
1957
  if database_id.nil?
1799
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1958
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1800
1959
  end
1801
1960
 
1802
1961
  if table_id.nil?
1803
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1962
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1804
1963
  end
1805
1964
 
1806
1965
  if key.nil?
1807
- raise Appwrite::Exception.new('Missing required parameter: "key"')
1966
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
1808
1967
  end
1809
1968
 
1810
1969
  if required.nil?
1811
- raise Appwrite::Exception.new('Missing required parameter: "required"')
1970
+ raise Appwrite::Exception.new('Missing required parameter: "required"')
1812
1971
  end
1813
1972
 
1814
1973
  if default.nil?
1815
- raise Appwrite::Exception.new('Missing required parameter: "default"')
1974
+ raise Appwrite::Exception.new('Missing required parameter: "default"')
1816
1975
  end
1817
1976
 
1818
1977
  api_params = {
@@ -1822,7 +1981,7 @@ module Appwrite
1822
1981
  default: default,
1823
1982
  newKey: new_key,
1824
1983
  }
1825
-
1984
+
1826
1985
  api_headers = {
1827
1986
  "X-Appwrite-Project": @client.get_config('project'),
1828
1987
  "content-type": 'application/json',
@@ -1836,11 +1995,10 @@ module Appwrite
1836
1995
  params: api_params,
1837
1996
  response_type: Models::ColumnInteger
1838
1997
  )
1839
-
1840
1998
  end
1841
1999
 
1842
2000
  # Create IP address column.
1843
- #
2001
+ #
1844
2002
  #
1845
2003
  # @param [String] database_id Database ID.
1846
2004
  # @param [String] table_id Table ID.
@@ -1850,25 +2008,32 @@ module Appwrite
1850
2008
  # @param [] array Is column an array?
1851
2009
  #
1852
2010
  # @return [ColumnIp]
1853
- def create_ip_column(database_id:, table_id:, key:, required:, default: nil, array: nil)
2011
+ def create_ip_column(
2012
+ database_id:,
2013
+ table_id:,
2014
+ key:,
2015
+ required:,
2016
+ default: nil,
2017
+ array: nil
2018
+ )
1854
2019
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/ip'
1855
2020
  .gsub('{databaseId}', database_id)
1856
2021
  .gsub('{tableId}', table_id)
1857
2022
 
1858
2023
  if database_id.nil?
1859
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2024
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1860
2025
  end
1861
2026
 
1862
2027
  if table_id.nil?
1863
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2028
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1864
2029
  end
1865
2030
 
1866
2031
  if key.nil?
1867
- raise Appwrite::Exception.new('Missing required parameter: "key"')
2032
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
1868
2033
  end
1869
2034
 
1870
2035
  if required.nil?
1871
- raise Appwrite::Exception.new('Missing required parameter: "required"')
2036
+ raise Appwrite::Exception.new('Missing required parameter: "required"')
1872
2037
  end
1873
2038
 
1874
2039
  api_params = {
@@ -1877,7 +2042,7 @@ module Appwrite
1877
2042
  default: default,
1878
2043
  array: array,
1879
2044
  }
1880
-
2045
+
1881
2046
  api_headers = {
1882
2047
  "X-Appwrite-Project": @client.get_config('project'),
1883
2048
  "content-type": 'application/json',
@@ -1891,12 +2056,11 @@ module Appwrite
1891
2056
  params: api_params,
1892
2057
  response_type: Models::ColumnIp
1893
2058
  )
1894
-
1895
2059
  end
1896
2060
 
1897
2061
  # Update an ip column. Changing the `default` value will not update already
1898
2062
  # existing rows.
1899
- #
2063
+ #
1900
2064
  #
1901
2065
  # @param [String] database_id Database ID.
1902
2066
  # @param [String] table_id Table ID.
@@ -1906,30 +2070,37 @@ module Appwrite
1906
2070
  # @param [String] new_key New Column Key.
1907
2071
  #
1908
2072
  # @return [ColumnIp]
1909
- def update_ip_column(database_id:, table_id:, key:, required:, default:, new_key: nil)
2073
+ def update_ip_column(
2074
+ database_id:,
2075
+ table_id:,
2076
+ key:,
2077
+ required:,
2078
+ default:,
2079
+ new_key: nil
2080
+ )
1910
2081
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/ip/{key}'
1911
2082
  .gsub('{databaseId}', database_id)
1912
2083
  .gsub('{tableId}', table_id)
1913
2084
  .gsub('{key}', key)
1914
2085
 
1915
2086
  if database_id.nil?
1916
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2087
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1917
2088
  end
1918
2089
 
1919
2090
  if table_id.nil?
1920
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2091
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1921
2092
  end
1922
2093
 
1923
2094
  if key.nil?
1924
- raise Appwrite::Exception.new('Missing required parameter: "key"')
2095
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
1925
2096
  end
1926
2097
 
1927
2098
  if required.nil?
1928
- raise Appwrite::Exception.new('Missing required parameter: "required"')
2099
+ raise Appwrite::Exception.new('Missing required parameter: "required"')
1929
2100
  end
1930
2101
 
1931
2102
  if default.nil?
1932
- raise Appwrite::Exception.new('Missing required parameter: "default"')
2103
+ raise Appwrite::Exception.new('Missing required parameter: "default"')
1933
2104
  end
1934
2105
 
1935
2106
  api_params = {
@@ -1937,7 +2108,7 @@ module Appwrite
1937
2108
  default: default,
1938
2109
  newKey: new_key,
1939
2110
  }
1940
-
2111
+
1941
2112
  api_headers = {
1942
2113
  "X-Appwrite-Project": @client.get_config('project'),
1943
2114
  "content-type": 'application/json',
@@ -1951,7 +2122,6 @@ module Appwrite
1951
2122
  params: api_params,
1952
2123
  response_type: Models::ColumnIp
1953
2124
  )
1954
-
1955
2125
  end
1956
2126
 
1957
2127
  # Create a geometric line column.
@@ -1963,25 +2133,31 @@ module Appwrite
1963
2133
  # @param [Array] default Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], …], listing the vertices of the line in order. Cannot be set when column is required.
1964
2134
  #
1965
2135
  # @return [ColumnLine]
1966
- def create_line_column(database_id:, table_id:, key:, required:, default: nil)
2136
+ def create_line_column(
2137
+ database_id:,
2138
+ table_id:,
2139
+ key:,
2140
+ required:,
2141
+ default: nil
2142
+ )
1967
2143
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/line'
1968
2144
  .gsub('{databaseId}', database_id)
1969
2145
  .gsub('{tableId}', table_id)
1970
2146
 
1971
2147
  if database_id.nil?
1972
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2148
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1973
2149
  end
1974
2150
 
1975
2151
  if table_id.nil?
1976
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2152
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1977
2153
  end
1978
2154
 
1979
2155
  if key.nil?
1980
- raise Appwrite::Exception.new('Missing required parameter: "key"')
2156
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
1981
2157
  end
1982
2158
 
1983
2159
  if required.nil?
1984
- raise Appwrite::Exception.new('Missing required parameter: "required"')
2160
+ raise Appwrite::Exception.new('Missing required parameter: "required"')
1985
2161
  end
1986
2162
 
1987
2163
  api_params = {
@@ -1989,7 +2165,7 @@ module Appwrite
1989
2165
  required: required,
1990
2166
  default: default,
1991
2167
  }
1992
-
2168
+
1993
2169
  api_headers = {
1994
2170
  "X-Appwrite-Project": @client.get_config('project'),
1995
2171
  "content-type": 'application/json',
@@ -2003,7 +2179,6 @@ module Appwrite
2003
2179
  params: api_params,
2004
2180
  response_type: Models::ColumnLine
2005
2181
  )
2006
-
2007
2182
  end
2008
2183
 
2009
2184
  # Update a line column. Changing the `default` value will not update already
@@ -2017,26 +2192,33 @@ module Appwrite
2017
2192
  # @param [String] new_key New Column Key.
2018
2193
  #
2019
2194
  # @return [ColumnLine]
2020
- def update_line_column(database_id:, table_id:, key:, required:, default: nil, new_key: nil)
2195
+ def update_line_column(
2196
+ database_id:,
2197
+ table_id:,
2198
+ key:,
2199
+ required:,
2200
+ default: nil,
2201
+ new_key: nil
2202
+ )
2021
2203
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/line/{key}'
2022
2204
  .gsub('{databaseId}', database_id)
2023
2205
  .gsub('{tableId}', table_id)
2024
2206
  .gsub('{key}', key)
2025
2207
 
2026
2208
  if database_id.nil?
2027
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2209
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2028
2210
  end
2029
2211
 
2030
2212
  if table_id.nil?
2031
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2213
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2032
2214
  end
2033
2215
 
2034
2216
  if key.nil?
2035
- raise Appwrite::Exception.new('Missing required parameter: "key"')
2217
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
2036
2218
  end
2037
2219
 
2038
2220
  if required.nil?
2039
- raise Appwrite::Exception.new('Missing required parameter: "required"')
2221
+ raise Appwrite::Exception.new('Missing required parameter: "required"')
2040
2222
  end
2041
2223
 
2042
2224
  api_params = {
@@ -2044,7 +2226,7 @@ module Appwrite
2044
2226
  default: default,
2045
2227
  newKey: new_key,
2046
2228
  }
2047
-
2229
+
2048
2230
  api_headers = {
2049
2231
  "X-Appwrite-Project": @client.get_config('project'),
2050
2232
  "content-type": 'application/json',
@@ -2058,11 +2240,10 @@ module Appwrite
2058
2240
  params: api_params,
2059
2241
  response_type: Models::ColumnLine
2060
2242
  )
2061
-
2062
2243
  end
2063
2244
 
2064
2245
  # Create a longtext column.
2065
- #
2246
+ #
2066
2247
  #
2067
2248
  # @param [String] database_id Database ID.
2068
2249
  # @param [String] table_id Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).
@@ -2073,25 +2254,33 @@ module Appwrite
2073
2254
  # @param [] encrypt Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
2074
2255
  #
2075
2256
  # @return [ColumnLongtext]
2076
- def create_longtext_column(database_id:, table_id:, key:, required:, default: nil, array: nil, encrypt: nil)
2257
+ def create_longtext_column(
2258
+ database_id:,
2259
+ table_id:,
2260
+ key:,
2261
+ required:,
2262
+ default: nil,
2263
+ array: nil,
2264
+ encrypt: nil
2265
+ )
2077
2266
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/longtext'
2078
2267
  .gsub('{databaseId}', database_id)
2079
2268
  .gsub('{tableId}', table_id)
2080
2269
 
2081
2270
  if database_id.nil?
2082
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2271
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2083
2272
  end
2084
2273
 
2085
2274
  if table_id.nil?
2086
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2275
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2087
2276
  end
2088
2277
 
2089
2278
  if key.nil?
2090
- raise Appwrite::Exception.new('Missing required parameter: "key"')
2279
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
2091
2280
  end
2092
2281
 
2093
2282
  if required.nil?
2094
- raise Appwrite::Exception.new('Missing required parameter: "required"')
2283
+ raise Appwrite::Exception.new('Missing required parameter: "required"')
2095
2284
  end
2096
2285
 
2097
2286
  api_params = {
@@ -2101,7 +2290,7 @@ module Appwrite
2101
2290
  array: array,
2102
2291
  encrypt: encrypt,
2103
2292
  }
2104
-
2293
+
2105
2294
  api_headers = {
2106
2295
  "X-Appwrite-Project": @client.get_config('project'),
2107
2296
  "content-type": 'application/json',
@@ -2115,12 +2304,11 @@ module Appwrite
2115
2304
  params: api_params,
2116
2305
  response_type: Models::ColumnLongtext
2117
2306
  )
2118
-
2119
2307
  end
2120
2308
 
2121
2309
  # Update a longtext column. Changing the `default` value will not update
2122
2310
  # already existing rows.
2123
- #
2311
+ #
2124
2312
  #
2125
2313
  # @param [String] database_id Database ID.
2126
2314
  # @param [String] table_id Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).
@@ -2130,30 +2318,37 @@ module Appwrite
2130
2318
  # @param [String] new_key New Column Key.
2131
2319
  #
2132
2320
  # @return [ColumnLongtext]
2133
- def update_longtext_column(database_id:, table_id:, key:, required:, default:, new_key: nil)
2321
+ def update_longtext_column(
2322
+ database_id:,
2323
+ table_id:,
2324
+ key:,
2325
+ required:,
2326
+ default:,
2327
+ new_key: nil
2328
+ )
2134
2329
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/longtext/{key}'
2135
2330
  .gsub('{databaseId}', database_id)
2136
2331
  .gsub('{tableId}', table_id)
2137
2332
  .gsub('{key}', key)
2138
2333
 
2139
2334
  if database_id.nil?
2140
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2335
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2141
2336
  end
2142
2337
 
2143
2338
  if table_id.nil?
2144
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2339
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2145
2340
  end
2146
2341
 
2147
2342
  if key.nil?
2148
- raise Appwrite::Exception.new('Missing required parameter: "key"')
2343
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
2149
2344
  end
2150
2345
 
2151
2346
  if required.nil?
2152
- raise Appwrite::Exception.new('Missing required parameter: "required"')
2347
+ raise Appwrite::Exception.new('Missing required parameter: "required"')
2153
2348
  end
2154
2349
 
2155
2350
  if default.nil?
2156
- raise Appwrite::Exception.new('Missing required parameter: "default"')
2351
+ raise Appwrite::Exception.new('Missing required parameter: "default"')
2157
2352
  end
2158
2353
 
2159
2354
  api_params = {
@@ -2161,7 +2356,7 @@ module Appwrite
2161
2356
  default: default,
2162
2357
  newKey: new_key,
2163
2358
  }
2164
-
2359
+
2165
2360
  api_headers = {
2166
2361
  "X-Appwrite-Project": @client.get_config('project'),
2167
2362
  "content-type": 'application/json',
@@ -2175,11 +2370,10 @@ module Appwrite
2175
2370
  params: api_params,
2176
2371
  response_type: Models::ColumnLongtext
2177
2372
  )
2178
-
2179
2373
  end
2180
2374
 
2181
2375
  # Create a mediumtext column.
2182
- #
2376
+ #
2183
2377
  #
2184
2378
  # @param [String] database_id Database ID.
2185
2379
  # @param [String] table_id Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).
@@ -2190,25 +2384,33 @@ module Appwrite
2190
2384
  # @param [] encrypt Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
2191
2385
  #
2192
2386
  # @return [ColumnMediumtext]
2193
- def create_mediumtext_column(database_id:, table_id:, key:, required:, default: nil, array: nil, encrypt: nil)
2387
+ def create_mediumtext_column(
2388
+ database_id:,
2389
+ table_id:,
2390
+ key:,
2391
+ required:,
2392
+ default: nil,
2393
+ array: nil,
2394
+ encrypt: nil
2395
+ )
2194
2396
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/mediumtext'
2195
2397
  .gsub('{databaseId}', database_id)
2196
2398
  .gsub('{tableId}', table_id)
2197
2399
 
2198
2400
  if database_id.nil?
2199
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2401
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2200
2402
  end
2201
2403
 
2202
2404
  if table_id.nil?
2203
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2405
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2204
2406
  end
2205
2407
 
2206
2408
  if key.nil?
2207
- raise Appwrite::Exception.new('Missing required parameter: "key"')
2409
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
2208
2410
  end
2209
2411
 
2210
2412
  if required.nil?
2211
- raise Appwrite::Exception.new('Missing required parameter: "required"')
2413
+ raise Appwrite::Exception.new('Missing required parameter: "required"')
2212
2414
  end
2213
2415
 
2214
2416
  api_params = {
@@ -2218,7 +2420,7 @@ module Appwrite
2218
2420
  array: array,
2219
2421
  encrypt: encrypt,
2220
2422
  }
2221
-
2423
+
2222
2424
  api_headers = {
2223
2425
  "X-Appwrite-Project": @client.get_config('project'),
2224
2426
  "content-type": 'application/json',
@@ -2232,12 +2434,11 @@ module Appwrite
2232
2434
  params: api_params,
2233
2435
  response_type: Models::ColumnMediumtext
2234
2436
  )
2235
-
2236
2437
  end
2237
2438
 
2238
2439
  # Update a mediumtext column. Changing the `default` value will not update
2239
2440
  # already existing rows.
2240
- #
2441
+ #
2241
2442
  #
2242
2443
  # @param [String] database_id Database ID.
2243
2444
  # @param [String] table_id Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).
@@ -2247,30 +2448,37 @@ module Appwrite
2247
2448
  # @param [String] new_key New Column Key.
2248
2449
  #
2249
2450
  # @return [ColumnMediumtext]
2250
- def update_mediumtext_column(database_id:, table_id:, key:, required:, default:, new_key: nil)
2451
+ def update_mediumtext_column(
2452
+ database_id:,
2453
+ table_id:,
2454
+ key:,
2455
+ required:,
2456
+ default:,
2457
+ new_key: nil
2458
+ )
2251
2459
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/mediumtext/{key}'
2252
2460
  .gsub('{databaseId}', database_id)
2253
2461
  .gsub('{tableId}', table_id)
2254
2462
  .gsub('{key}', key)
2255
2463
 
2256
2464
  if database_id.nil?
2257
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2465
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2258
2466
  end
2259
2467
 
2260
2468
  if table_id.nil?
2261
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2469
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2262
2470
  end
2263
2471
 
2264
2472
  if key.nil?
2265
- raise Appwrite::Exception.new('Missing required parameter: "key"')
2473
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
2266
2474
  end
2267
2475
 
2268
2476
  if required.nil?
2269
- raise Appwrite::Exception.new('Missing required parameter: "required"')
2477
+ raise Appwrite::Exception.new('Missing required parameter: "required"')
2270
2478
  end
2271
2479
 
2272
2480
  if default.nil?
2273
- raise Appwrite::Exception.new('Missing required parameter: "default"')
2481
+ raise Appwrite::Exception.new('Missing required parameter: "default"')
2274
2482
  end
2275
2483
 
2276
2484
  api_params = {
@@ -2278,7 +2486,7 @@ module Appwrite
2278
2486
  default: default,
2279
2487
  newKey: new_key,
2280
2488
  }
2281
-
2489
+
2282
2490
  api_headers = {
2283
2491
  "X-Appwrite-Project": @client.get_config('project'),
2284
2492
  "content-type": 'application/json',
@@ -2292,7 +2500,6 @@ module Appwrite
2292
2500
  params: api_params,
2293
2501
  response_type: Models::ColumnMediumtext
2294
2502
  )
2295
-
2296
2503
  end
2297
2504
 
2298
2505
  # Create a geometric point column.
@@ -2304,25 +2511,31 @@ module Appwrite
2304
2511
  # @param [Array] default Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.
2305
2512
  #
2306
2513
  # @return [ColumnPoint]
2307
- def create_point_column(database_id:, table_id:, key:, required:, default: nil)
2514
+ def create_point_column(
2515
+ database_id:,
2516
+ table_id:,
2517
+ key:,
2518
+ required:,
2519
+ default: nil
2520
+ )
2308
2521
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/point'
2309
2522
  .gsub('{databaseId}', database_id)
2310
2523
  .gsub('{tableId}', table_id)
2311
2524
 
2312
2525
  if database_id.nil?
2313
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2526
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2314
2527
  end
2315
2528
 
2316
2529
  if table_id.nil?
2317
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2530
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2318
2531
  end
2319
2532
 
2320
2533
  if key.nil?
2321
- raise Appwrite::Exception.new('Missing required parameter: "key"')
2534
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
2322
2535
  end
2323
2536
 
2324
2537
  if required.nil?
2325
- raise Appwrite::Exception.new('Missing required parameter: "required"')
2538
+ raise Appwrite::Exception.new('Missing required parameter: "required"')
2326
2539
  end
2327
2540
 
2328
2541
  api_params = {
@@ -2330,7 +2543,7 @@ module Appwrite
2330
2543
  required: required,
2331
2544
  default: default,
2332
2545
  }
2333
-
2546
+
2334
2547
  api_headers = {
2335
2548
  "X-Appwrite-Project": @client.get_config('project'),
2336
2549
  "content-type": 'application/json',
@@ -2344,7 +2557,6 @@ module Appwrite
2344
2557
  params: api_params,
2345
2558
  response_type: Models::ColumnPoint
2346
2559
  )
2347
-
2348
2560
  end
2349
2561
 
2350
2562
  # Update a point column. Changing the `default` value will not update already
@@ -2358,26 +2570,33 @@ module Appwrite
2358
2570
  # @param [String] new_key New Column Key.
2359
2571
  #
2360
2572
  # @return [ColumnPoint]
2361
- def update_point_column(database_id:, table_id:, key:, required:, default: nil, new_key: nil)
2573
+ def update_point_column(
2574
+ database_id:,
2575
+ table_id:,
2576
+ key:,
2577
+ required:,
2578
+ default: nil,
2579
+ new_key: nil
2580
+ )
2362
2581
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/point/{key}'
2363
2582
  .gsub('{databaseId}', database_id)
2364
2583
  .gsub('{tableId}', table_id)
2365
2584
  .gsub('{key}', key)
2366
2585
 
2367
2586
  if database_id.nil?
2368
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2587
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2369
2588
  end
2370
2589
 
2371
2590
  if table_id.nil?
2372
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2591
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2373
2592
  end
2374
2593
 
2375
2594
  if key.nil?
2376
- raise Appwrite::Exception.new('Missing required parameter: "key"')
2595
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
2377
2596
  end
2378
2597
 
2379
2598
  if required.nil?
2380
- raise Appwrite::Exception.new('Missing required parameter: "required"')
2599
+ raise Appwrite::Exception.new('Missing required parameter: "required"')
2381
2600
  end
2382
2601
 
2383
2602
  api_params = {
@@ -2385,7 +2604,7 @@ module Appwrite
2385
2604
  default: default,
2386
2605
  newKey: new_key,
2387
2606
  }
2388
-
2607
+
2389
2608
  api_headers = {
2390
2609
  "X-Appwrite-Project": @client.get_config('project'),
2391
2610
  "content-type": 'application/json',
@@ -2399,7 +2618,6 @@ module Appwrite
2399
2618
  params: api_params,
2400
2619
  response_type: Models::ColumnPoint
2401
2620
  )
2402
-
2403
2621
  end
2404
2622
 
2405
2623
  # Create a geometric polygon column.
@@ -2411,25 +2629,31 @@ module Appwrite
2411
2629
  # @param [Array] default Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], …], …], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.
2412
2630
  #
2413
2631
  # @return [ColumnPolygon]
2414
- def create_polygon_column(database_id:, table_id:, key:, required:, default: nil)
2632
+ def create_polygon_column(
2633
+ database_id:,
2634
+ table_id:,
2635
+ key:,
2636
+ required:,
2637
+ default: nil
2638
+ )
2415
2639
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/polygon'
2416
2640
  .gsub('{databaseId}', database_id)
2417
2641
  .gsub('{tableId}', table_id)
2418
2642
 
2419
2643
  if database_id.nil?
2420
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2644
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2421
2645
  end
2422
2646
 
2423
2647
  if table_id.nil?
2424
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2648
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2425
2649
  end
2426
2650
 
2427
2651
  if key.nil?
2428
- raise Appwrite::Exception.new('Missing required parameter: "key"')
2652
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
2429
2653
  end
2430
2654
 
2431
2655
  if required.nil?
2432
- raise Appwrite::Exception.new('Missing required parameter: "required"')
2656
+ raise Appwrite::Exception.new('Missing required parameter: "required"')
2433
2657
  end
2434
2658
 
2435
2659
  api_params = {
@@ -2437,7 +2661,7 @@ module Appwrite
2437
2661
  required: required,
2438
2662
  default: default,
2439
2663
  }
2440
-
2664
+
2441
2665
  api_headers = {
2442
2666
  "X-Appwrite-Project": @client.get_config('project'),
2443
2667
  "content-type": 'application/json',
@@ -2451,7 +2675,6 @@ module Appwrite
2451
2675
  params: api_params,
2452
2676
  response_type: Models::ColumnPolygon
2453
2677
  )
2454
-
2455
2678
  end
2456
2679
 
2457
2680
  # Update a polygon column. Changing the `default` value will not update
@@ -2465,26 +2688,33 @@ module Appwrite
2465
2688
  # @param [String] new_key New Column Key.
2466
2689
  #
2467
2690
  # @return [ColumnPolygon]
2468
- def update_polygon_column(database_id:, table_id:, key:, required:, default: nil, new_key: nil)
2691
+ def update_polygon_column(
2692
+ database_id:,
2693
+ table_id:,
2694
+ key:,
2695
+ required:,
2696
+ default: nil,
2697
+ new_key: nil
2698
+ )
2469
2699
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/polygon/{key}'
2470
2700
  .gsub('{databaseId}', database_id)
2471
2701
  .gsub('{tableId}', table_id)
2472
2702
  .gsub('{key}', key)
2473
2703
 
2474
2704
  if database_id.nil?
2475
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2705
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2476
2706
  end
2477
2707
 
2478
2708
  if table_id.nil?
2479
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2709
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2480
2710
  end
2481
2711
 
2482
2712
  if key.nil?
2483
- raise Appwrite::Exception.new('Missing required parameter: "key"')
2713
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
2484
2714
  end
2485
2715
 
2486
2716
  if required.nil?
2487
- raise Appwrite::Exception.new('Missing required parameter: "required"')
2717
+ raise Appwrite::Exception.new('Missing required parameter: "required"')
2488
2718
  end
2489
2719
 
2490
2720
  api_params = {
@@ -2492,7 +2722,7 @@ module Appwrite
2492
2722
  default: default,
2493
2723
  newKey: new_key,
2494
2724
  }
2495
-
2725
+
2496
2726
  api_headers = {
2497
2727
  "X-Appwrite-Project": @client.get_config('project'),
2498
2728
  "content-type": 'application/json',
@@ -2506,12 +2736,11 @@ module Appwrite
2506
2736
  params: api_params,
2507
2737
  response_type: Models::ColumnPolygon
2508
2738
  )
2509
-
2510
2739
  end
2511
2740
 
2512
2741
  # Create relationship column. [Learn more about relationship
2513
2742
  # columns](https://appwrite.io/docs/databases-relationships#relationship-columns).
2514
- #
2743
+ #
2515
2744
  #
2516
2745
  # @param [String] database_id Database ID.
2517
2746
  # @param [String] table_id Table ID.
@@ -2523,25 +2752,34 @@ module Appwrite
2523
2752
  # @param [RelationMutate] on_delete Delete constraint. Possible values are: cascade, restrict, setNull.
2524
2753
  #
2525
2754
  # @return [ColumnRelationship]
2526
- def create_relationship_column(database_id:, table_id:, related_table_id:, type:, two_way: nil, key: nil, two_way_key: nil, on_delete: nil)
2755
+ def create_relationship_column(
2756
+ database_id:,
2757
+ table_id:,
2758
+ related_table_id:,
2759
+ type:,
2760
+ two_way: nil,
2761
+ key: nil,
2762
+ two_way_key: nil,
2763
+ on_delete: nil
2764
+ )
2527
2765
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/relationship'
2528
2766
  .gsub('{databaseId}', database_id)
2529
2767
  .gsub('{tableId}', table_id)
2530
2768
 
2531
2769
  if database_id.nil?
2532
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2770
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2533
2771
  end
2534
2772
 
2535
2773
  if table_id.nil?
2536
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2774
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2537
2775
  end
2538
2776
 
2539
2777
  if related_table_id.nil?
2540
- raise Appwrite::Exception.new('Missing required parameter: "relatedTableId"')
2778
+ raise Appwrite::Exception.new('Missing required parameter: "relatedTableId"')
2541
2779
  end
2542
2780
 
2543
2781
  if type.nil?
2544
- raise Appwrite::Exception.new('Missing required parameter: "type"')
2782
+ raise Appwrite::Exception.new('Missing required parameter: "type"')
2545
2783
  end
2546
2784
 
2547
2785
  api_params = {
@@ -2552,7 +2790,7 @@ module Appwrite
2552
2790
  twoWayKey: two_way_key,
2553
2791
  onDelete: on_delete,
2554
2792
  }
2555
-
2793
+
2556
2794
  api_headers = {
2557
2795
  "X-Appwrite-Project": @client.get_config('project'),
2558
2796
  "content-type": 'application/json',
@@ -2566,14 +2804,13 @@ module Appwrite
2566
2804
  params: api_params,
2567
2805
  response_type: Models::ColumnRelationship
2568
2806
  )
2569
-
2570
2807
  end
2571
2808
 
2572
2809
  #
2573
2810
  # @deprecated This API has been deprecated since 1.9.0. Please use `TablesDB.createTextColumn` instead.
2574
2811
  #
2575
2812
  # Create a string column.
2576
- #
2813
+ #
2577
2814
  #
2578
2815
  # @param [String] database_id Database ID.
2579
2816
  # @param [String] table_id Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).
@@ -2585,29 +2822,38 @@ module Appwrite
2585
2822
  # @param [] encrypt Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
2586
2823
  #
2587
2824
  # @return [ColumnString]
2588
- def create_string_column(database_id:, table_id:, key:, size:, required:, default: nil, array: nil, encrypt: nil)
2825
+ def create_string_column(
2826
+ database_id:,
2827
+ table_id:,
2828
+ key:,
2829
+ size:,
2830
+ required:,
2831
+ default: nil,
2832
+ array: nil,
2833
+ encrypt: nil
2834
+ )
2589
2835
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/string'
2590
2836
  .gsub('{databaseId}', database_id)
2591
2837
  .gsub('{tableId}', table_id)
2592
2838
 
2593
2839
  if database_id.nil?
2594
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2840
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2595
2841
  end
2596
2842
 
2597
2843
  if table_id.nil?
2598
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2844
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2599
2845
  end
2600
2846
 
2601
2847
  if key.nil?
2602
- raise Appwrite::Exception.new('Missing required parameter: "key"')
2848
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
2603
2849
  end
2604
2850
 
2605
2851
  if size.nil?
2606
- raise Appwrite::Exception.new('Missing required parameter: "size"')
2852
+ raise Appwrite::Exception.new('Missing required parameter: "size"')
2607
2853
  end
2608
2854
 
2609
2855
  if required.nil?
2610
- raise Appwrite::Exception.new('Missing required parameter: "required"')
2856
+ raise Appwrite::Exception.new('Missing required parameter: "required"')
2611
2857
  end
2612
2858
 
2613
2859
  api_params = {
@@ -2618,7 +2864,7 @@ module Appwrite
2618
2864
  array: array,
2619
2865
  encrypt: encrypt,
2620
2866
  }
2621
-
2867
+
2622
2868
  api_headers = {
2623
2869
  "X-Appwrite-Project": @client.get_config('project'),
2624
2870
  "content-type": 'application/json',
@@ -2632,7 +2878,6 @@ module Appwrite
2632
2878
  params: api_params,
2633
2879
  response_type: Models::ColumnString
2634
2880
  )
2635
-
2636
2881
  end
2637
2882
 
2638
2883
  #
@@ -2640,7 +2885,7 @@ module Appwrite
2640
2885
  #
2641
2886
  # Update a string column. Changing the `default` value will not update
2642
2887
  # already existing rows.
2643
- #
2888
+ #
2644
2889
  #
2645
2890
  # @param [String] database_id Database ID.
2646
2891
  # @param [String] table_id Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).
@@ -2651,30 +2896,38 @@ module Appwrite
2651
2896
  # @param [String] new_key New Column Key.
2652
2897
  #
2653
2898
  # @return [ColumnString]
2654
- def update_string_column(database_id:, table_id:, key:, required:, default:, size: nil, new_key: nil)
2899
+ def update_string_column(
2900
+ database_id:,
2901
+ table_id:,
2902
+ key:,
2903
+ required:,
2904
+ default:,
2905
+ size: nil,
2906
+ new_key: nil
2907
+ )
2655
2908
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/string/{key}'
2656
2909
  .gsub('{databaseId}', database_id)
2657
2910
  .gsub('{tableId}', table_id)
2658
2911
  .gsub('{key}', key)
2659
2912
 
2660
2913
  if database_id.nil?
2661
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2914
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2662
2915
  end
2663
2916
 
2664
2917
  if table_id.nil?
2665
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2918
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2666
2919
  end
2667
2920
 
2668
2921
  if key.nil?
2669
- raise Appwrite::Exception.new('Missing required parameter: "key"')
2922
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
2670
2923
  end
2671
2924
 
2672
2925
  if required.nil?
2673
- raise Appwrite::Exception.new('Missing required parameter: "required"')
2926
+ raise Appwrite::Exception.new('Missing required parameter: "required"')
2674
2927
  end
2675
2928
 
2676
2929
  if default.nil?
2677
- raise Appwrite::Exception.new('Missing required parameter: "default"')
2930
+ raise Appwrite::Exception.new('Missing required parameter: "default"')
2678
2931
  end
2679
2932
 
2680
2933
  api_params = {
@@ -2683,7 +2936,7 @@ module Appwrite
2683
2936
  size: size,
2684
2937
  newKey: new_key,
2685
2938
  }
2686
-
2939
+
2687
2940
  api_headers = {
2688
2941
  "X-Appwrite-Project": @client.get_config('project'),
2689
2942
  "content-type": 'application/json',
@@ -2697,11 +2950,10 @@ module Appwrite
2697
2950
  params: api_params,
2698
2951
  response_type: Models::ColumnString
2699
2952
  )
2700
-
2701
2953
  end
2702
2954
 
2703
2955
  # Create a text column.
2704
- #
2956
+ #
2705
2957
  #
2706
2958
  # @param [String] database_id Database ID.
2707
2959
  # @param [String] table_id Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).
@@ -2712,25 +2964,33 @@ module Appwrite
2712
2964
  # @param [] encrypt Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
2713
2965
  #
2714
2966
  # @return [ColumnText]
2715
- def create_text_column(database_id:, table_id:, key:, required:, default: nil, array: nil, encrypt: nil)
2967
+ def create_text_column(
2968
+ database_id:,
2969
+ table_id:,
2970
+ key:,
2971
+ required:,
2972
+ default: nil,
2973
+ array: nil,
2974
+ encrypt: nil
2975
+ )
2716
2976
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/text'
2717
2977
  .gsub('{databaseId}', database_id)
2718
2978
  .gsub('{tableId}', table_id)
2719
2979
 
2720
2980
  if database_id.nil?
2721
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2981
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2722
2982
  end
2723
2983
 
2724
2984
  if table_id.nil?
2725
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2985
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2726
2986
  end
2727
2987
 
2728
2988
  if key.nil?
2729
- raise Appwrite::Exception.new('Missing required parameter: "key"')
2989
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
2730
2990
  end
2731
2991
 
2732
2992
  if required.nil?
2733
- raise Appwrite::Exception.new('Missing required parameter: "required"')
2993
+ raise Appwrite::Exception.new('Missing required parameter: "required"')
2734
2994
  end
2735
2995
 
2736
2996
  api_params = {
@@ -2740,7 +3000,7 @@ module Appwrite
2740
3000
  array: array,
2741
3001
  encrypt: encrypt,
2742
3002
  }
2743
-
3003
+
2744
3004
  api_headers = {
2745
3005
  "X-Appwrite-Project": @client.get_config('project'),
2746
3006
  "content-type": 'application/json',
@@ -2754,12 +3014,11 @@ module Appwrite
2754
3014
  params: api_params,
2755
3015
  response_type: Models::ColumnText
2756
3016
  )
2757
-
2758
3017
  end
2759
3018
 
2760
3019
  # Update a text column. Changing the `default` value will not update already
2761
3020
  # existing rows.
2762
- #
3021
+ #
2763
3022
  #
2764
3023
  # @param [String] database_id Database ID.
2765
3024
  # @param [String] table_id Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).
@@ -2769,30 +3028,37 @@ module Appwrite
2769
3028
  # @param [String] new_key New Column Key.
2770
3029
  #
2771
3030
  # @return [ColumnText]
2772
- def update_text_column(database_id:, table_id:, key:, required:, default:, new_key: nil)
3031
+ def update_text_column(
3032
+ database_id:,
3033
+ table_id:,
3034
+ key:,
3035
+ required:,
3036
+ default:,
3037
+ new_key: nil
3038
+ )
2773
3039
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/text/{key}'
2774
3040
  .gsub('{databaseId}', database_id)
2775
3041
  .gsub('{tableId}', table_id)
2776
3042
  .gsub('{key}', key)
2777
3043
 
2778
3044
  if database_id.nil?
2779
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3045
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2780
3046
  end
2781
3047
 
2782
3048
  if table_id.nil?
2783
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3049
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2784
3050
  end
2785
3051
 
2786
3052
  if key.nil?
2787
- raise Appwrite::Exception.new('Missing required parameter: "key"')
3053
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
2788
3054
  end
2789
3055
 
2790
3056
  if required.nil?
2791
- raise Appwrite::Exception.new('Missing required parameter: "required"')
3057
+ raise Appwrite::Exception.new('Missing required parameter: "required"')
2792
3058
  end
2793
3059
 
2794
3060
  if default.nil?
2795
- raise Appwrite::Exception.new('Missing required parameter: "default"')
3061
+ raise Appwrite::Exception.new('Missing required parameter: "default"')
2796
3062
  end
2797
3063
 
2798
3064
  api_params = {
@@ -2800,7 +3066,7 @@ module Appwrite
2800
3066
  default: default,
2801
3067
  newKey: new_key,
2802
3068
  }
2803
-
3069
+
2804
3070
  api_headers = {
2805
3071
  "X-Appwrite-Project": @client.get_config('project'),
2806
3072
  "content-type": 'application/json',
@@ -2814,11 +3080,10 @@ module Appwrite
2814
3080
  params: api_params,
2815
3081
  response_type: Models::ColumnText
2816
3082
  )
2817
-
2818
3083
  end
2819
3084
 
2820
3085
  # Create a URL column.
2821
- #
3086
+ #
2822
3087
  #
2823
3088
  # @param [String] database_id Database ID.
2824
3089
  # @param [String] table_id Table ID.
@@ -2828,25 +3093,32 @@ module Appwrite
2828
3093
  # @param [] array Is column an array?
2829
3094
  #
2830
3095
  # @return [ColumnUrl]
2831
- def create_url_column(database_id:, table_id:, key:, required:, default: nil, array: nil)
3096
+ def create_url_column(
3097
+ database_id:,
3098
+ table_id:,
3099
+ key:,
3100
+ required:,
3101
+ default: nil,
3102
+ array: nil
3103
+ )
2832
3104
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/url'
2833
3105
  .gsub('{databaseId}', database_id)
2834
3106
  .gsub('{tableId}', table_id)
2835
3107
 
2836
3108
  if database_id.nil?
2837
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3109
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2838
3110
  end
2839
3111
 
2840
3112
  if table_id.nil?
2841
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3113
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2842
3114
  end
2843
3115
 
2844
3116
  if key.nil?
2845
- raise Appwrite::Exception.new('Missing required parameter: "key"')
3117
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
2846
3118
  end
2847
3119
 
2848
3120
  if required.nil?
2849
- raise Appwrite::Exception.new('Missing required parameter: "required"')
3121
+ raise Appwrite::Exception.new('Missing required parameter: "required"')
2850
3122
  end
2851
3123
 
2852
3124
  api_params = {
@@ -2855,7 +3127,7 @@ module Appwrite
2855
3127
  default: default,
2856
3128
  array: array,
2857
3129
  }
2858
-
3130
+
2859
3131
  api_headers = {
2860
3132
  "X-Appwrite-Project": @client.get_config('project'),
2861
3133
  "content-type": 'application/json',
@@ -2869,12 +3141,11 @@ module Appwrite
2869
3141
  params: api_params,
2870
3142
  response_type: Models::ColumnUrl
2871
3143
  )
2872
-
2873
3144
  end
2874
3145
 
2875
3146
  # Update an url column. Changing the `default` value will not update already
2876
3147
  # existing rows.
2877
- #
3148
+ #
2878
3149
  #
2879
3150
  # @param [String] database_id Database ID.
2880
3151
  # @param [String] table_id Table ID.
@@ -2884,30 +3155,37 @@ module Appwrite
2884
3155
  # @param [String] new_key New Column Key.
2885
3156
  #
2886
3157
  # @return [ColumnUrl]
2887
- def update_url_column(database_id:, table_id:, key:, required:, default:, new_key: nil)
3158
+ def update_url_column(
3159
+ database_id:,
3160
+ table_id:,
3161
+ key:,
3162
+ required:,
3163
+ default:,
3164
+ new_key: nil
3165
+ )
2888
3166
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/url/{key}'
2889
3167
  .gsub('{databaseId}', database_id)
2890
3168
  .gsub('{tableId}', table_id)
2891
3169
  .gsub('{key}', key)
2892
3170
 
2893
3171
  if database_id.nil?
2894
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3172
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2895
3173
  end
2896
3174
 
2897
3175
  if table_id.nil?
2898
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3176
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2899
3177
  end
2900
3178
 
2901
3179
  if key.nil?
2902
- raise Appwrite::Exception.new('Missing required parameter: "key"')
3180
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
2903
3181
  end
2904
3182
 
2905
3183
  if required.nil?
2906
- raise Appwrite::Exception.new('Missing required parameter: "required"')
3184
+ raise Appwrite::Exception.new('Missing required parameter: "required"')
2907
3185
  end
2908
3186
 
2909
3187
  if default.nil?
2910
- raise Appwrite::Exception.new('Missing required parameter: "default"')
3188
+ raise Appwrite::Exception.new('Missing required parameter: "default"')
2911
3189
  end
2912
3190
 
2913
3191
  api_params = {
@@ -2915,7 +3193,7 @@ module Appwrite
2915
3193
  default: default,
2916
3194
  newKey: new_key,
2917
3195
  }
2918
-
3196
+
2919
3197
  api_headers = {
2920
3198
  "X-Appwrite-Project": @client.get_config('project'),
2921
3199
  "content-type": 'application/json',
@@ -2929,11 +3207,10 @@ module Appwrite
2929
3207
  params: api_params,
2930
3208
  response_type: Models::ColumnUrl
2931
3209
  )
2932
-
2933
3210
  end
2934
3211
 
2935
3212
  # Create a varchar column.
2936
- #
3213
+ #
2937
3214
  #
2938
3215
  # @param [String] database_id Database ID.
2939
3216
  # @param [String] table_id Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).
@@ -2945,29 +3222,38 @@ module Appwrite
2945
3222
  # @param [] encrypt Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
2946
3223
  #
2947
3224
  # @return [ColumnVarchar]
2948
- def create_varchar_column(database_id:, table_id:, key:, size:, required:, default: nil, array: nil, encrypt: nil)
3225
+ def create_varchar_column(
3226
+ database_id:,
3227
+ table_id:,
3228
+ key:,
3229
+ size:,
3230
+ required:,
3231
+ default: nil,
3232
+ array: nil,
3233
+ encrypt: nil
3234
+ )
2949
3235
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/varchar'
2950
3236
  .gsub('{databaseId}', database_id)
2951
3237
  .gsub('{tableId}', table_id)
2952
3238
 
2953
3239
  if database_id.nil?
2954
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3240
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2955
3241
  end
2956
3242
 
2957
3243
  if table_id.nil?
2958
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3244
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2959
3245
  end
2960
3246
 
2961
3247
  if key.nil?
2962
- raise Appwrite::Exception.new('Missing required parameter: "key"')
3248
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
2963
3249
  end
2964
3250
 
2965
3251
  if size.nil?
2966
- raise Appwrite::Exception.new('Missing required parameter: "size"')
3252
+ raise Appwrite::Exception.new('Missing required parameter: "size"')
2967
3253
  end
2968
3254
 
2969
3255
  if required.nil?
2970
- raise Appwrite::Exception.new('Missing required parameter: "required"')
3256
+ raise Appwrite::Exception.new('Missing required parameter: "required"')
2971
3257
  end
2972
3258
 
2973
3259
  api_params = {
@@ -2978,7 +3264,7 @@ module Appwrite
2978
3264
  array: array,
2979
3265
  encrypt: encrypt,
2980
3266
  }
2981
-
3267
+
2982
3268
  api_headers = {
2983
3269
  "X-Appwrite-Project": @client.get_config('project'),
2984
3270
  "content-type": 'application/json',
@@ -2992,12 +3278,11 @@ module Appwrite
2992
3278
  params: api_params,
2993
3279
  response_type: Models::ColumnVarchar
2994
3280
  )
2995
-
2996
3281
  end
2997
3282
 
2998
3283
  # Update a varchar column. Changing the `default` value will not update
2999
3284
  # already existing rows.
3000
- #
3285
+ #
3001
3286
  #
3002
3287
  # @param [String] database_id Database ID.
3003
3288
  # @param [String] table_id Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).
@@ -3008,30 +3293,38 @@ module Appwrite
3008
3293
  # @param [String] new_key New Column Key.
3009
3294
  #
3010
3295
  # @return [ColumnVarchar]
3011
- def update_varchar_column(database_id:, table_id:, key:, required:, default:, size: nil, new_key: nil)
3296
+ def update_varchar_column(
3297
+ database_id:,
3298
+ table_id:,
3299
+ key:,
3300
+ required:,
3301
+ default:,
3302
+ size: nil,
3303
+ new_key: nil
3304
+ )
3012
3305
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/varchar/{key}'
3013
3306
  .gsub('{databaseId}', database_id)
3014
3307
  .gsub('{tableId}', table_id)
3015
3308
  .gsub('{key}', key)
3016
3309
 
3017
3310
  if database_id.nil?
3018
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3311
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3019
3312
  end
3020
3313
 
3021
3314
  if table_id.nil?
3022
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3315
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3023
3316
  end
3024
3317
 
3025
3318
  if key.nil?
3026
- raise Appwrite::Exception.new('Missing required parameter: "key"')
3319
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
3027
3320
  end
3028
3321
 
3029
3322
  if required.nil?
3030
- raise Appwrite::Exception.new('Missing required parameter: "required"')
3323
+ raise Appwrite::Exception.new('Missing required parameter: "required"')
3031
3324
  end
3032
3325
 
3033
3326
  if default.nil?
3034
- raise Appwrite::Exception.new('Missing required parameter: "default"')
3327
+ raise Appwrite::Exception.new('Missing required parameter: "default"')
3035
3328
  end
3036
3329
 
3037
3330
  api_params = {
@@ -3040,7 +3333,7 @@ module Appwrite
3040
3333
  size: size,
3041
3334
  newKey: new_key,
3042
3335
  }
3043
-
3336
+
3044
3337
  api_headers = {
3045
3338
  "X-Appwrite-Project": @client.get_config('project'),
3046
3339
  "content-type": 'application/json',
@@ -3054,7 +3347,6 @@ module Appwrite
3054
3347
  params: api_params,
3055
3348
  response_type: Models::ColumnVarchar
3056
3349
  )
3057
-
3058
3350
  end
3059
3351
 
3060
3352
  # Get column by ID.
@@ -3064,27 +3356,30 @@ module Appwrite
3064
3356
  # @param [String] key Column Key.
3065
3357
  #
3066
3358
  # @return [ColumnBoolean, ColumnInteger, ColumnFloat, ColumnEmail, ColumnEnum, ColumnUrl, ColumnIp, ColumnDatetime, ColumnRelationship, ColumnString]
3067
- def get_column(database_id:, table_id:, key:)
3359
+ def get_column(
3360
+ database_id:,
3361
+ table_id:,
3362
+ key:
3363
+ )
3068
3364
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/{key}'
3069
3365
  .gsub('{databaseId}', database_id)
3070
3366
  .gsub('{tableId}', table_id)
3071
3367
  .gsub('{key}', key)
3072
3368
 
3073
3369
  if database_id.nil?
3074
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3370
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3075
3371
  end
3076
3372
 
3077
3373
  if table_id.nil?
3078
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3374
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3079
3375
  end
3080
3376
 
3081
3377
  if key.nil?
3082
- raise Appwrite::Exception.new('Missing required parameter: "key"')
3378
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
3083
3379
  end
3084
3380
 
3085
- api_params = {
3086
- }
3087
-
3381
+ api_params = {}
3382
+
3088
3383
  api_headers = {
3089
3384
  "X-Appwrite-Project": @client.get_config('project'),
3090
3385
  "accept": 'application/json',
@@ -3152,7 +3447,6 @@ module Appwrite
3152
3447
  end
3153
3448
 
3154
3449
  raise Exception, "Unable to match response to any expected response model"
3155
-
3156
3450
  end
3157
3451
 
3158
3452
  # Deletes a column.
@@ -3162,27 +3456,30 @@ module Appwrite
3162
3456
  # @param [String] key Column Key.
3163
3457
  #
3164
3458
  # @return []
3165
- def delete_column(database_id:, table_id:, key:)
3459
+ def delete_column(
3460
+ database_id:,
3461
+ table_id:,
3462
+ key:
3463
+ )
3166
3464
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/{key}'
3167
3465
  .gsub('{databaseId}', database_id)
3168
3466
  .gsub('{tableId}', table_id)
3169
3467
  .gsub('{key}', key)
3170
3468
 
3171
3469
  if database_id.nil?
3172
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3470
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3173
3471
  end
3174
3472
 
3175
3473
  if table_id.nil?
3176
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3474
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3177
3475
  end
3178
3476
 
3179
3477
  if key.nil?
3180
- raise Appwrite::Exception.new('Missing required parameter: "key"')
3478
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
3181
3479
  end
3182
3480
 
3183
- api_params = {
3184
- }
3185
-
3481
+ api_params = {}
3482
+
3186
3483
  api_headers = {
3187
3484
  "X-Appwrite-Project": @client.get_config('project'),
3188
3485
  "content-type": 'application/json',
@@ -3194,12 +3491,11 @@ module Appwrite
3194
3491
  headers: api_headers,
3195
3492
  params: api_params,
3196
3493
  )
3197
-
3198
3494
  end
3199
3495
 
3200
3496
  # Update relationship column. [Learn more about relationship
3201
3497
  # columns](https://appwrite.io/docs/databases-relationships#relationship-columns).
3202
- #
3498
+ #
3203
3499
  #
3204
3500
  # @param [String] database_id Database ID.
3205
3501
  # @param [String] table_id Table ID.
@@ -3208,29 +3504,35 @@ module Appwrite
3208
3504
  # @param [String] new_key New Column Key.
3209
3505
  #
3210
3506
  # @return [ColumnRelationship]
3211
- def update_relationship_column(database_id:, table_id:, key:, on_delete: nil, new_key: nil)
3507
+ def update_relationship_column(
3508
+ database_id:,
3509
+ table_id:,
3510
+ key:,
3511
+ on_delete: nil,
3512
+ new_key: nil
3513
+ )
3212
3514
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/{key}/relationship'
3213
3515
  .gsub('{databaseId}', database_id)
3214
3516
  .gsub('{tableId}', table_id)
3215
3517
  .gsub('{key}', key)
3216
3518
 
3217
3519
  if database_id.nil?
3218
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3520
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3219
3521
  end
3220
3522
 
3221
3523
  if table_id.nil?
3222
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3524
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3223
3525
  end
3224
3526
 
3225
3527
  if key.nil?
3226
- raise Appwrite::Exception.new('Missing required parameter: "key"')
3528
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
3227
3529
  end
3228
3530
 
3229
3531
  api_params = {
3230
3532
  onDelete: on_delete,
3231
3533
  newKey: new_key,
3232
3534
  }
3233
-
3535
+
3234
3536
  api_headers = {
3235
3537
  "X-Appwrite-Project": @client.get_config('project'),
3236
3538
  "content-type": 'application/json',
@@ -3244,7 +3546,6 @@ module Appwrite
3244
3546
  params: api_params,
3245
3547
  response_type: Models::ColumnRelationship
3246
3548
  )
3247
-
3248
3549
  end
3249
3550
 
3250
3551
  # List indexes on the table.
@@ -3255,24 +3556,29 @@ module Appwrite
3255
3556
  # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
3256
3557
  #
3257
3558
  # @return [ColumnIndexList]
3258
- def list_indexes(database_id:, table_id:, queries: nil, total: nil)
3559
+ def list_indexes(
3560
+ database_id:,
3561
+ table_id:,
3562
+ queries: nil,
3563
+ total: nil
3564
+ )
3259
3565
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/indexes'
3260
3566
  .gsub('{databaseId}', database_id)
3261
3567
  .gsub('{tableId}', table_id)
3262
3568
 
3263
3569
  if database_id.nil?
3264
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3570
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3265
3571
  end
3266
3572
 
3267
3573
  if table_id.nil?
3268
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3574
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3269
3575
  end
3270
3576
 
3271
3577
  api_params = {
3272
3578
  queries: queries,
3273
3579
  total: total,
3274
3580
  }
3275
-
3581
+
3276
3582
  api_headers = {
3277
3583
  "X-Appwrite-Project": @client.get_config('project'),
3278
3584
  "accept": 'application/json',
@@ -3285,7 +3591,6 @@ module Appwrite
3285
3591
  params: api_params,
3286
3592
  response_type: Models::ColumnIndexList
3287
3593
  )
3288
-
3289
3594
  end
3290
3595
 
3291
3596
  # Creates an index on the columns listed. Your index should include all the
@@ -3301,29 +3606,37 @@ module Appwrite
3301
3606
  # @param [Array] lengths Length of index. Maximum of 100
3302
3607
  #
3303
3608
  # @return [ColumnIndex]
3304
- def create_index(database_id:, table_id:, key:, type:, columns:, orders: nil, lengths: nil)
3609
+ def create_index(
3610
+ database_id:,
3611
+ table_id:,
3612
+ key:,
3613
+ type:,
3614
+ columns:,
3615
+ orders: nil,
3616
+ lengths: nil
3617
+ )
3305
3618
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/indexes'
3306
3619
  .gsub('{databaseId}', database_id)
3307
3620
  .gsub('{tableId}', table_id)
3308
3621
 
3309
3622
  if database_id.nil?
3310
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3623
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3311
3624
  end
3312
3625
 
3313
3626
  if table_id.nil?
3314
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3627
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3315
3628
  end
3316
3629
 
3317
3630
  if key.nil?
3318
- raise Appwrite::Exception.new('Missing required parameter: "key"')
3631
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
3319
3632
  end
3320
3633
 
3321
3634
  if type.nil?
3322
- raise Appwrite::Exception.new('Missing required parameter: "type"')
3635
+ raise Appwrite::Exception.new('Missing required parameter: "type"')
3323
3636
  end
3324
3637
 
3325
3638
  if columns.nil?
3326
- raise Appwrite::Exception.new('Missing required parameter: "columns"')
3639
+ raise Appwrite::Exception.new('Missing required parameter: "columns"')
3327
3640
  end
3328
3641
 
3329
3642
  api_params = {
@@ -3333,7 +3646,7 @@ module Appwrite
3333
3646
  orders: orders,
3334
3647
  lengths: lengths,
3335
3648
  }
3336
-
3649
+
3337
3650
  api_headers = {
3338
3651
  "X-Appwrite-Project": @client.get_config('project'),
3339
3652
  "content-type": 'application/json',
@@ -3347,7 +3660,6 @@ module Appwrite
3347
3660
  params: api_params,
3348
3661
  response_type: Models::ColumnIndex
3349
3662
  )
3350
-
3351
3663
  end
3352
3664
 
3353
3665
  # Get index by ID.
@@ -3357,27 +3669,30 @@ module Appwrite
3357
3669
  # @param [String] key Index Key.
3358
3670
  #
3359
3671
  # @return [ColumnIndex]
3360
- def get_index(database_id:, table_id:, key:)
3672
+ def get_index(
3673
+ database_id:,
3674
+ table_id:,
3675
+ key:
3676
+ )
3361
3677
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/indexes/{key}'
3362
3678
  .gsub('{databaseId}', database_id)
3363
3679
  .gsub('{tableId}', table_id)
3364
3680
  .gsub('{key}', key)
3365
3681
 
3366
3682
  if database_id.nil?
3367
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3683
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3368
3684
  end
3369
3685
 
3370
3686
  if table_id.nil?
3371
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3687
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3372
3688
  end
3373
3689
 
3374
3690
  if key.nil?
3375
- raise Appwrite::Exception.new('Missing required parameter: "key"')
3691
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
3376
3692
  end
3377
3693
 
3378
- api_params = {
3379
- }
3380
-
3694
+ api_params = {}
3695
+
3381
3696
  api_headers = {
3382
3697
  "X-Appwrite-Project": @client.get_config('project'),
3383
3698
  "accept": 'application/json',
@@ -3390,7 +3705,6 @@ module Appwrite
3390
3705
  params: api_params,
3391
3706
  response_type: Models::ColumnIndex
3392
3707
  )
3393
-
3394
3708
  end
3395
3709
 
3396
3710
  # Delete an index.
@@ -3400,27 +3714,30 @@ module Appwrite
3400
3714
  # @param [String] key Index Key.
3401
3715
  #
3402
3716
  # @return []
3403
- def delete_index(database_id:, table_id:, key:)
3717
+ def delete_index(
3718
+ database_id:,
3719
+ table_id:,
3720
+ key:
3721
+ )
3404
3722
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/indexes/{key}'
3405
3723
  .gsub('{databaseId}', database_id)
3406
3724
  .gsub('{tableId}', table_id)
3407
3725
  .gsub('{key}', key)
3408
3726
 
3409
3727
  if database_id.nil?
3410
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3728
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3411
3729
  end
3412
3730
 
3413
3731
  if table_id.nil?
3414
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3732
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3415
3733
  end
3416
3734
 
3417
3735
  if key.nil?
3418
- raise Appwrite::Exception.new('Missing required parameter: "key"')
3736
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
3419
3737
  end
3420
3738
 
3421
- api_params = {
3422
- }
3423
-
3739
+ api_params = {}
3740
+
3424
3741
  api_headers = {
3425
3742
  "X-Appwrite-Project": @client.get_config('project'),
3426
3743
  "content-type": 'application/json',
@@ -3432,10 +3749,9 @@ module Appwrite
3432
3749
  headers: api_headers,
3433
3750
  params: api_params,
3434
3751
  )
3435
-
3436
3752
  end
3437
3753
 
3438
- # Get a list of all the user's rows in a given table. You can use the query
3754
+ # Get a list of all the user&#039;s rows in a given table. You can use the query
3439
3755
  # params to filter your results.
3440
3756
  #
3441
3757
  # @param [String] database_id Database ID.
@@ -3446,17 +3762,24 @@ module Appwrite
3446
3762
  # @param [Integer] ttl TTL (seconds) for caching list responses. Responses are stored in an in-memory key-value cache, keyed per project, table, schema version (columns and indexes), caller authorization roles, and the exact query — so users with different permissions never share cached entries. Schema changes invalidate cached entries automatically; row writes do not, so choose a TTL you are comfortable serving as stale data. Set to 0 to disable caching. Must be between 0 and 86400 (24 hours).
3447
3763
  #
3448
3764
  # @return [RowList]
3449
- def list_rows(database_id:, table_id:, queries: nil, transaction_id: nil, total: nil, ttl: nil)
3765
+ def list_rows(
3766
+ database_id:,
3767
+ table_id:,
3768
+ queries: nil,
3769
+ transaction_id: nil,
3770
+ total: nil,
3771
+ ttl: nil
3772
+ )
3450
3773
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows'
3451
3774
  .gsub('{databaseId}', database_id)
3452
3775
  .gsub('{tableId}', table_id)
3453
3776
 
3454
3777
  if database_id.nil?
3455
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3778
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3456
3779
  end
3457
3780
 
3458
3781
  if table_id.nil?
3459
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3782
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3460
3783
  end
3461
3784
 
3462
3785
  api_params = {
@@ -3465,7 +3788,7 @@ module Appwrite
3465
3788
  total: total,
3466
3789
  ttl: ttl,
3467
3790
  }
3468
-
3791
+
3469
3792
  api_headers = {
3470
3793
  "X-Appwrite-Project": @client.get_config('project'),
3471
3794
  "accept": 'application/json',
@@ -3478,7 +3801,6 @@ module Appwrite
3478
3801
  params: api_params,
3479
3802
  response_type: Models::RowList
3480
3803
  )
3481
-
3482
3804
  end
3483
3805
 
3484
3806
  # Create a new Row. Before using this route, you should create a new table
@@ -3488,31 +3810,38 @@ module Appwrite
3488
3810
  #
3489
3811
  # @param [String] database_id Database ID.
3490
3812
  # @param [String] table_id Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable). Make sure to define columns before creating rows.
3491
- # @param [String] row_id Row ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
3813
+ # @param [String] row_id Row ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can&#039;t start with a special char. Max length is 36 chars.
3492
3814
  # @param [Hash] data Row data as JSON object.
3493
3815
  # @param [Array] permissions An array of permissions strings. By default, only the current user is granted all permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
3494
3816
  # @param [String] transaction_id Transaction ID for staging the operation.
3495
3817
  #
3496
3818
  # @return [Row]
3497
- def create_row(database_id:, table_id:, row_id:, data:, permissions: nil, transaction_id: nil)
3819
+ def create_row(
3820
+ database_id:,
3821
+ table_id:,
3822
+ row_id:,
3823
+ data:,
3824
+ permissions: nil,
3825
+ transaction_id: nil
3826
+ )
3498
3827
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows'
3499
3828
  .gsub('{databaseId}', database_id)
3500
3829
  .gsub('{tableId}', table_id)
3501
3830
 
3502
3831
  if database_id.nil?
3503
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3832
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3504
3833
  end
3505
3834
 
3506
3835
  if table_id.nil?
3507
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3836
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3508
3837
  end
3509
3838
 
3510
3839
  if row_id.nil?
3511
- raise Appwrite::Exception.new('Missing required parameter: "rowId"')
3840
+ raise Appwrite::Exception.new('Missing required parameter: "rowId"')
3512
3841
  end
3513
3842
 
3514
3843
  if data.nil?
3515
- raise Appwrite::Exception.new('Missing required parameter: "data"')
3844
+ raise Appwrite::Exception.new('Missing required parameter: "data"')
3516
3845
  end
3517
3846
 
3518
3847
  api_params = {
@@ -3521,7 +3850,7 @@ module Appwrite
3521
3850
  permissions: permissions,
3522
3851
  transactionId: transaction_id,
3523
3852
  }
3524
-
3853
+
3525
3854
  api_headers = {
3526
3855
  "X-Appwrite-Project": @client.get_config('project'),
3527
3856
  "content-type": 'application/json',
@@ -3535,7 +3864,6 @@ module Appwrite
3535
3864
  params: api_params,
3536
3865
  response_type: Models::Row
3537
3866
  )
3538
-
3539
3867
  end
3540
3868
 
3541
3869
  # Create new Rows. Before using this route, you should create a new table
@@ -3549,28 +3877,33 @@ module Appwrite
3549
3877
  # @param [String] transaction_id Transaction ID for staging the operation.
3550
3878
  #
3551
3879
  # @return [RowList]
3552
- def create_rows(database_id:, table_id:, rows:, transaction_id: nil)
3880
+ def create_rows(
3881
+ database_id:,
3882
+ table_id:,
3883
+ rows:,
3884
+ transaction_id: nil
3885
+ )
3553
3886
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows'
3554
3887
  .gsub('{databaseId}', database_id)
3555
3888
  .gsub('{tableId}', table_id)
3556
3889
 
3557
3890
  if database_id.nil?
3558
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3891
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3559
3892
  end
3560
3893
 
3561
3894
  if table_id.nil?
3562
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3895
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3563
3896
  end
3564
3897
 
3565
3898
  if rows.nil?
3566
- raise Appwrite::Exception.new('Missing required parameter: "rows"')
3899
+ raise Appwrite::Exception.new('Missing required parameter: "rows"')
3567
3900
  end
3568
3901
 
3569
3902
  api_params = {
3570
3903
  rows: rows,
3571
3904
  transactionId: transaction_id,
3572
3905
  }
3573
-
3906
+
3574
3907
  api_headers = {
3575
3908
  "X-Appwrite-Project": @client.get_config('project'),
3576
3909
  "content-type": 'application/json',
@@ -3584,14 +3917,13 @@ module Appwrite
3584
3917
  params: api_params,
3585
3918
  response_type: Models::RowList
3586
3919
  )
3587
-
3588
3920
  end
3589
3921
 
3590
3922
  # Create or update Rows. Before using this route, you should create a new
3591
3923
  # table resource using either a [server
3592
3924
  # integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable)
3593
3925
  # API or directly from your database console.
3594
- #
3926
+ #
3595
3927
  #
3596
3928
  # @param [String] database_id Database ID.
3597
3929
  # @param [String] table_id Table ID.
@@ -3599,28 +3931,33 @@ module Appwrite
3599
3931
  # @param [String] transaction_id Transaction ID for staging the operation.
3600
3932
  #
3601
3933
  # @return [RowList]
3602
- def upsert_rows(database_id:, table_id:, rows:, transaction_id: nil)
3934
+ def upsert_rows(
3935
+ database_id:,
3936
+ table_id:,
3937
+ rows:,
3938
+ transaction_id: nil
3939
+ )
3603
3940
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows'
3604
3941
  .gsub('{databaseId}', database_id)
3605
3942
  .gsub('{tableId}', table_id)
3606
3943
 
3607
3944
  if database_id.nil?
3608
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3945
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3609
3946
  end
3610
3947
 
3611
3948
  if table_id.nil?
3612
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3949
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3613
3950
  end
3614
3951
 
3615
3952
  if rows.nil?
3616
- raise Appwrite::Exception.new('Missing required parameter: "rows"')
3953
+ raise Appwrite::Exception.new('Missing required parameter: "rows"')
3617
3954
  end
3618
3955
 
3619
3956
  api_params = {
3620
3957
  rows: rows,
3621
3958
  transactionId: transaction_id,
3622
3959
  }
3623
-
3960
+
3624
3961
  api_headers = {
3625
3962
  "X-Appwrite-Project": @client.get_config('project'),
3626
3963
  "content-type": 'application/json',
@@ -3634,7 +3971,6 @@ module Appwrite
3634
3971
  params: api_params,
3635
3972
  response_type: Models::RowList
3636
3973
  )
3637
-
3638
3974
  end
3639
3975
 
3640
3976
  # Update all rows that match your queries, if no queries are submitted then
@@ -3647,17 +3983,23 @@ module Appwrite
3647
3983
  # @param [String] transaction_id Transaction ID for staging the operation.
3648
3984
  #
3649
3985
  # @return [RowList]
3650
- def update_rows(database_id:, table_id:, data: nil, queries: nil, transaction_id: nil)
3986
+ def update_rows(
3987
+ database_id:,
3988
+ table_id:,
3989
+ data: nil,
3990
+ queries: nil,
3991
+ transaction_id: nil
3992
+ )
3651
3993
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows'
3652
3994
  .gsub('{databaseId}', database_id)
3653
3995
  .gsub('{tableId}', table_id)
3654
3996
 
3655
3997
  if database_id.nil?
3656
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3998
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3657
3999
  end
3658
4000
 
3659
4001
  if table_id.nil?
3660
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
4002
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3661
4003
  end
3662
4004
 
3663
4005
  api_params = {
@@ -3665,7 +4007,7 @@ module Appwrite
3665
4007
  queries: queries,
3666
4008
  transactionId: transaction_id,
3667
4009
  }
3668
-
4010
+
3669
4011
  api_headers = {
3670
4012
  "X-Appwrite-Project": @client.get_config('project'),
3671
4013
  "content-type": 'application/json',
@@ -3679,7 +4021,6 @@ module Appwrite
3679
4021
  params: api_params,
3680
4022
  response_type: Models::RowList
3681
4023
  )
3682
-
3683
4024
  end
3684
4025
 
3685
4026
  # Bulk delete rows using queries, if no queries are passed then all rows are
@@ -3691,24 +4032,29 @@ module Appwrite
3691
4032
  # @param [String] transaction_id Transaction ID for staging the operation.
3692
4033
  #
3693
4034
  # @return [RowList]
3694
- def delete_rows(database_id:, table_id:, queries: nil, transaction_id: nil)
4035
+ def delete_rows(
4036
+ database_id:,
4037
+ table_id:,
4038
+ queries: nil,
4039
+ transaction_id: nil
4040
+ )
3695
4041
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows'
3696
4042
  .gsub('{databaseId}', database_id)
3697
4043
  .gsub('{tableId}', table_id)
3698
4044
 
3699
4045
  if database_id.nil?
3700
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
4046
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3701
4047
  end
3702
4048
 
3703
4049
  if table_id.nil?
3704
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
4050
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3705
4051
  end
3706
4052
 
3707
4053
  api_params = {
3708
4054
  queries: queries,
3709
4055
  transactionId: transaction_id,
3710
4056
  }
3711
-
4057
+
3712
4058
  api_headers = {
3713
4059
  "X-Appwrite-Project": @client.get_config('project'),
3714
4060
  "content-type": 'application/json',
@@ -3722,7 +4068,6 @@ module Appwrite
3722
4068
  params: api_params,
3723
4069
  response_type: Models::RowList
3724
4070
  )
3725
-
3726
4071
  end
3727
4072
 
3728
4073
  # Get a row by its unique ID. This endpoint response returns a JSON object
@@ -3735,29 +4080,35 @@ module Appwrite
3735
4080
  # @param [String] transaction_id Transaction ID to read uncommitted changes within the transaction.
3736
4081
  #
3737
4082
  # @return [Row]
3738
- def get_row(database_id:, table_id:, row_id:, queries: nil, transaction_id: nil)
4083
+ def get_row(
4084
+ database_id:,
4085
+ table_id:,
4086
+ row_id:,
4087
+ queries: nil,
4088
+ transaction_id: nil
4089
+ )
3739
4090
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}'
3740
4091
  .gsub('{databaseId}', database_id)
3741
4092
  .gsub('{tableId}', table_id)
3742
4093
  .gsub('{rowId}', row_id)
3743
4094
 
3744
4095
  if database_id.nil?
3745
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
4096
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3746
4097
  end
3747
4098
 
3748
4099
  if table_id.nil?
3749
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
4100
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3750
4101
  end
3751
4102
 
3752
4103
  if row_id.nil?
3753
- raise Appwrite::Exception.new('Missing required parameter: "rowId"')
4104
+ raise Appwrite::Exception.new('Missing required parameter: "rowId"')
3754
4105
  end
3755
4106
 
3756
4107
  api_params = {
3757
4108
  queries: queries,
3758
4109
  transactionId: transaction_id,
3759
4110
  }
3760
-
4111
+
3761
4112
  api_headers = {
3762
4113
  "X-Appwrite-Project": @client.get_config('project'),
3763
4114
  "accept": 'application/json',
@@ -3770,7 +4121,6 @@ module Appwrite
3770
4121
  params: api_params,
3771
4122
  response_type: Models::Row
3772
4123
  )
3773
-
3774
4124
  end
3775
4125
 
3776
4126
  # Create or update a Row. Before using this route, you should create a new
@@ -3786,22 +4136,29 @@ module Appwrite
3786
4136
  # @param [String] transaction_id Transaction ID for staging the operation.
3787
4137
  #
3788
4138
  # @return [Row]
3789
- def upsert_row(database_id:, table_id:, row_id:, data: nil, permissions: nil, transaction_id: nil)
4139
+ def upsert_row(
4140
+ database_id:,
4141
+ table_id:,
4142
+ row_id:,
4143
+ data: nil,
4144
+ permissions: nil,
4145
+ transaction_id: nil
4146
+ )
3790
4147
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}'
3791
4148
  .gsub('{databaseId}', database_id)
3792
4149
  .gsub('{tableId}', table_id)
3793
4150
  .gsub('{rowId}', row_id)
3794
4151
 
3795
4152
  if database_id.nil?
3796
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
4153
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3797
4154
  end
3798
4155
 
3799
4156
  if table_id.nil?
3800
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
4157
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3801
4158
  end
3802
4159
 
3803
4160
  if row_id.nil?
3804
- raise Appwrite::Exception.new('Missing required parameter: "rowId"')
4161
+ raise Appwrite::Exception.new('Missing required parameter: "rowId"')
3805
4162
  end
3806
4163
 
3807
4164
  api_params = {
@@ -3809,7 +4166,7 @@ module Appwrite
3809
4166
  permissions: permissions,
3810
4167
  transactionId: transaction_id,
3811
4168
  }
3812
-
4169
+
3813
4170
  api_headers = {
3814
4171
  "X-Appwrite-Project": @client.get_config('project'),
3815
4172
  "content-type": 'application/json',
@@ -3823,7 +4180,6 @@ module Appwrite
3823
4180
  params: api_params,
3824
4181
  response_type: Models::Row
3825
4182
  )
3826
-
3827
4183
  end
3828
4184
 
3829
4185
  # Update a row by its unique ID. Using the patch method you can pass only
@@ -3837,22 +4193,29 @@ module Appwrite
3837
4193
  # @param [String] transaction_id Transaction ID for staging the operation.
3838
4194
  #
3839
4195
  # @return [Row]
3840
- def update_row(database_id:, table_id:, row_id:, data: nil, permissions: nil, transaction_id: nil)
4196
+ def update_row(
4197
+ database_id:,
4198
+ table_id:,
4199
+ row_id:,
4200
+ data: nil,
4201
+ permissions: nil,
4202
+ transaction_id: nil
4203
+ )
3841
4204
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}'
3842
4205
  .gsub('{databaseId}', database_id)
3843
4206
  .gsub('{tableId}', table_id)
3844
4207
  .gsub('{rowId}', row_id)
3845
4208
 
3846
4209
  if database_id.nil?
3847
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
4210
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3848
4211
  end
3849
4212
 
3850
4213
  if table_id.nil?
3851
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
4214
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3852
4215
  end
3853
4216
 
3854
4217
  if row_id.nil?
3855
- raise Appwrite::Exception.new('Missing required parameter: "rowId"')
4218
+ raise Appwrite::Exception.new('Missing required parameter: "rowId"')
3856
4219
  end
3857
4220
 
3858
4221
  api_params = {
@@ -3860,7 +4223,7 @@ module Appwrite
3860
4223
  permissions: permissions,
3861
4224
  transactionId: transaction_id,
3862
4225
  }
3863
-
4226
+
3864
4227
  api_headers = {
3865
4228
  "X-Appwrite-Project": @client.get_config('project'),
3866
4229
  "content-type": 'application/json',
@@ -3874,7 +4237,6 @@ module Appwrite
3874
4237
  params: api_params,
3875
4238
  response_type: Models::Row
3876
4239
  )
3877
-
3878
4240
  end
3879
4241
 
3880
4242
  # Delete a row by its unique ID.
@@ -3885,28 +4247,33 @@ module Appwrite
3885
4247
  # @param [String] transaction_id Transaction ID for staging the operation.
3886
4248
  #
3887
4249
  # @return []
3888
- def delete_row(database_id:, table_id:, row_id:, transaction_id: nil)
4250
+ def delete_row(
4251
+ database_id:,
4252
+ table_id:,
4253
+ row_id:,
4254
+ transaction_id: nil
4255
+ )
3889
4256
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}'
3890
4257
  .gsub('{databaseId}', database_id)
3891
4258
  .gsub('{tableId}', table_id)
3892
4259
  .gsub('{rowId}', row_id)
3893
4260
 
3894
4261
  if database_id.nil?
3895
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
4262
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3896
4263
  end
3897
4264
 
3898
4265
  if table_id.nil?
3899
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
4266
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3900
4267
  end
3901
4268
 
3902
4269
  if row_id.nil?
3903
- raise Appwrite::Exception.new('Missing required parameter: "rowId"')
4270
+ raise Appwrite::Exception.new('Missing required parameter: "rowId"')
3904
4271
  end
3905
4272
 
3906
4273
  api_params = {
3907
4274
  transactionId: transaction_id,
3908
4275
  }
3909
-
4276
+
3910
4277
  api_headers = {
3911
4278
  "X-Appwrite-Project": @client.get_config('project'),
3912
4279
  "content-type": 'application/json',
@@ -3918,7 +4285,6 @@ module Appwrite
3918
4285
  headers: api_headers,
3919
4286
  params: api_params,
3920
4287
  )
3921
-
3922
4288
  end
3923
4289
 
3924
4290
  # Decrement a specific column of a row by a given value.
@@ -3932,7 +4298,15 @@ module Appwrite
3932
4298
  # @param [String] transaction_id Transaction ID for staging the operation.
3933
4299
  #
3934
4300
  # @return [Row]
3935
- def decrement_row_column(database_id:, table_id:, row_id:, column:, value: nil, min: nil, transaction_id: nil)
4301
+ def decrement_row_column(
4302
+ database_id:,
4303
+ table_id:,
4304
+ row_id:,
4305
+ column:,
4306
+ value: nil,
4307
+ min: nil,
4308
+ transaction_id: nil
4309
+ )
3936
4310
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}/{column}/decrement'
3937
4311
  .gsub('{databaseId}', database_id)
3938
4312
  .gsub('{tableId}', table_id)
@@ -3940,19 +4314,19 @@ module Appwrite
3940
4314
  .gsub('{column}', column)
3941
4315
 
3942
4316
  if database_id.nil?
3943
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
4317
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3944
4318
  end
3945
4319
 
3946
4320
  if table_id.nil?
3947
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
4321
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3948
4322
  end
3949
4323
 
3950
4324
  if row_id.nil?
3951
- raise Appwrite::Exception.new('Missing required parameter: "rowId"')
4325
+ raise Appwrite::Exception.new('Missing required parameter: "rowId"')
3952
4326
  end
3953
4327
 
3954
4328
  if column.nil?
3955
- raise Appwrite::Exception.new('Missing required parameter: "column"')
4329
+ raise Appwrite::Exception.new('Missing required parameter: "column"')
3956
4330
  end
3957
4331
 
3958
4332
  api_params = {
@@ -3960,7 +4334,7 @@ module Appwrite
3960
4334
  min: min,
3961
4335
  transactionId: transaction_id,
3962
4336
  }
3963
-
4337
+
3964
4338
  api_headers = {
3965
4339
  "X-Appwrite-Project": @client.get_config('project'),
3966
4340
  "content-type": 'application/json',
@@ -3974,7 +4348,6 @@ module Appwrite
3974
4348
  params: api_params,
3975
4349
  response_type: Models::Row
3976
4350
  )
3977
-
3978
4351
  end
3979
4352
 
3980
4353
  # Increment a specific column of a row by a given value.
@@ -3988,7 +4361,15 @@ module Appwrite
3988
4361
  # @param [String] transaction_id Transaction ID for staging the operation.
3989
4362
  #
3990
4363
  # @return [Row]
3991
- def increment_row_column(database_id:, table_id:, row_id:, column:, value: nil, max: nil, transaction_id: nil)
4364
+ def increment_row_column(
4365
+ database_id:,
4366
+ table_id:,
4367
+ row_id:,
4368
+ column:,
4369
+ value: nil,
4370
+ max: nil,
4371
+ transaction_id: nil
4372
+ )
3992
4373
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}/{column}/increment'
3993
4374
  .gsub('{databaseId}', database_id)
3994
4375
  .gsub('{tableId}', table_id)
@@ -3996,19 +4377,19 @@ module Appwrite
3996
4377
  .gsub('{column}', column)
3997
4378
 
3998
4379
  if database_id.nil?
3999
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
4380
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
4000
4381
  end
4001
4382
 
4002
4383
  if table_id.nil?
4003
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
4384
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
4004
4385
  end
4005
4386
 
4006
4387
  if row_id.nil?
4007
- raise Appwrite::Exception.new('Missing required parameter: "rowId"')
4388
+ raise Appwrite::Exception.new('Missing required parameter: "rowId"')
4008
4389
  end
4009
4390
 
4010
4391
  if column.nil?
4011
- raise Appwrite::Exception.new('Missing required parameter: "column"')
4392
+ raise Appwrite::Exception.new('Missing required parameter: "column"')
4012
4393
  end
4013
4394
 
4014
4395
  api_params = {
@@ -4016,7 +4397,7 @@ module Appwrite
4016
4397
  max: max,
4017
4398
  transactionId: transaction_id,
4018
4399
  }
4019
-
4400
+
4020
4401
  api_headers = {
4021
4402
  "X-Appwrite-Project": @client.get_config('project'),
4022
4403
  "content-type": 'application/json',
@@ -4030,8 +4411,6 @@ module Appwrite
4030
4411
  params: api_params,
4031
4412
  response_type: Models::Row
4032
4413
  )
4033
-
4034
4414
  end
4035
-
4036
- end
4415
+ end
4037
4416
  end