appwrite 28.3.2 → 29.0.0

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 (397) hide show
  1. checksums.yaml +4 -4
  2. data/lib/appwrite/client.rb +36 -20
  3. data/lib/appwrite/enums/billing_plan_group.rb +2 -1
  4. data/lib/appwrite/enums/build_runtime.rb +2 -0
  5. data/lib/appwrite/enums/databases_index_type.rb +1 -0
  6. data/lib/appwrite/enums/domain_registration_type.rb +10 -0
  7. data/lib/appwrite/enums/domain_transfer_status_enum.rb +14 -0
  8. data/lib/appwrite/enums/execution_trigger.rb +1 -0
  9. data/lib/appwrite/enums/framework.rb +1 -0
  10. data/lib/appwrite/enums/id_token_provider.rb +8 -0
  11. data/lib/appwrite/enums/image_gravity.rb +1 -0
  12. data/lib/appwrite/enums/o_auth2_auth0_prompt.rb +9 -0
  13. data/lib/appwrite/enums/o_auth2_discord_prompt.rb +8 -0
  14. data/lib/appwrite/enums/o_auth2_github_prompt.rb +7 -0
  15. data/lib/appwrite/enums/o_auth2_kakao_prompt.rb +10 -0
  16. data/lib/appwrite/enums/o_auth2_microsoft_prompt.rb +10 -0
  17. data/lib/appwrite/enums/o_auth2_okta_prompt.rb +9 -0
  18. data/lib/appwrite/enums/o_auth2_salesforce_prompt.rb +8 -0
  19. data/lib/appwrite/enums/o_auth2_zoho_prompt.rb +7 -0
  20. data/lib/appwrite/enums/o_auth_provider.rb +3 -0
  21. data/lib/appwrite/enums/project_email_template_id.rb +2 -0
  22. data/lib/appwrite/enums/project_key_scopes.rb +4 -0
  23. data/lib/appwrite/enums/project_o_auth2_auth0_prompt.rb +9 -0
  24. data/lib/appwrite/enums/project_o_auth2_discord_prompt.rb +8 -0
  25. data/lib/appwrite/enums/project_o_auth2_git_hub_prompt.rb +7 -0
  26. data/lib/appwrite/enums/project_o_auth2_kakao_prompt.rb +10 -0
  27. data/lib/appwrite/enums/project_o_auth2_microsoft_prompt.rb +10 -0
  28. data/lib/appwrite/enums/project_o_auth2_okta_prompt.rb +9 -0
  29. data/lib/appwrite/enums/project_o_auth2_salesforce_prompt.rb +8 -0
  30. data/lib/appwrite/enums/project_o_auth2_zoho_prompt.rb +7 -0
  31. data/lib/appwrite/enums/project_o_auth_provider_id.rb +3 -0
  32. data/lib/appwrite/enums/project_policy_id.rb +2 -0
  33. data/lib/appwrite/enums/proxy_rule_deployment_resource_type.rb +1 -0
  34. data/lib/appwrite/enums/proxy_rule_protocol.rb +8 -0
  35. data/lib/appwrite/enums/runtime.rb +2 -0
  36. data/lib/appwrite/enums/tables_db_index_type.rb +1 -0
  37. data/lib/appwrite/enums/waf_rule_action.rb +11 -0
  38. data/lib/appwrite/models/account.rb +143 -0
  39. data/lib/appwrite/models/activity_event.rb +1 -0
  40. data/lib/appwrite/models/activity_event_list.rb +1 -0
  41. data/lib/appwrite/models/additional_resource.rb +1 -0
  42. data/lib/appwrite/models/algo_argon2.rb +1 -0
  43. data/lib/appwrite/models/algo_bcrypt.rb +1 -0
  44. data/lib/appwrite/models/algo_md5.rb +1 -0
  45. data/lib/appwrite/models/algo_phpass.rb +1 -0
  46. data/lib/appwrite/models/algo_scrypt.rb +1 -0
  47. data/lib/appwrite/models/algo_scrypt_modified.rb +1 -0
  48. data/lib/appwrite/models/algo_sha.rb +1 -0
  49. data/lib/appwrite/models/app.rb +1 -0
  50. data/lib/appwrite/models/app_installation.rb +2 -1
  51. data/lib/appwrite/models/app_installation_list.rb +1 -0
  52. data/lib/appwrite/models/app_key.rb +2 -1
  53. data/lib/appwrite/models/app_key_list.rb +1 -0
  54. data/lib/appwrite/models/app_scope.rb +1 -0
  55. data/lib/appwrite/models/app_scope_list.rb +1 -0
  56. data/lib/appwrite/models/app_secret.rb +2 -1
  57. data/lib/appwrite/models/app_secret_list.rb +1 -0
  58. data/lib/appwrite/models/app_secret_plaintext.rb +2 -1
  59. data/lib/appwrite/models/apps_list.rb +1 -0
  60. data/lib/appwrite/models/attribute_bigint.rb +5 -4
  61. data/lib/appwrite/models/attribute_boolean.rb +3 -2
  62. data/lib/appwrite/models/attribute_datetime.rb +3 -2
  63. data/lib/appwrite/models/attribute_email.rb +3 -2
  64. data/lib/appwrite/models/attribute_enum.rb +3 -2
  65. data/lib/appwrite/models/attribute_float.rb +5 -4
  66. data/lib/appwrite/models/attribute_integer.rb +5 -4
  67. data/lib/appwrite/models/attribute_ip.rb +3 -2
  68. data/lib/appwrite/models/attribute_line.rb +3 -2
  69. data/lib/appwrite/models/attribute_list.rb +1 -0
  70. data/lib/appwrite/models/attribute_longtext.rb +4 -3
  71. data/lib/appwrite/models/attribute_mediumtext.rb +4 -3
  72. data/lib/appwrite/models/attribute_object.rb +2 -1
  73. data/lib/appwrite/models/attribute_point.rb +3 -2
  74. data/lib/appwrite/models/attribute_polygon.rb +3 -2
  75. data/lib/appwrite/models/attribute_relationship.rb +2 -1
  76. data/lib/appwrite/models/attribute_string.rb +4 -3
  77. data/lib/appwrite/models/attribute_text.rb +4 -3
  78. data/lib/appwrite/models/attribute_url.rb +3 -2
  79. data/lib/appwrite/models/attribute_varchar.rb +4 -3
  80. data/lib/appwrite/models/attribute_vector.rb +2 -1
  81. data/lib/appwrite/models/backup_archive.rb +5 -4
  82. data/lib/appwrite/models/backup_archive_list.rb +1 -0
  83. data/lib/appwrite/models/backup_policy.rb +3 -2
  84. data/lib/appwrite/models/backup_policy_list.rb +1 -0
  85. data/lib/appwrite/models/backup_restoration.rb +2 -1
  86. data/lib/appwrite/models/backup_restoration_list.rb +1 -0
  87. data/lib/appwrite/models/billing_limits.rb +8 -8
  88. data/lib/appwrite/models/billing_plan.rb +25 -13
  89. data/lib/appwrite/models/billing_plan_addon.rb +2 -2
  90. data/lib/appwrite/models/billing_plan_addon_details.rb +2 -1
  91. data/lib/appwrite/models/billing_plan_dedicated_database_limits.rb +19 -19
  92. data/lib/appwrite/models/billing_plan_limits.rb +2 -2
  93. data/lib/appwrite/models/billing_plan_supported_addons.rb +1 -0
  94. data/lib/appwrite/models/block.rb +4 -33
  95. data/lib/appwrite/models/bucket.rb +1 -0
  96. data/lib/appwrite/models/bucket_list.rb +1 -0
  97. data/lib/appwrite/models/collection.rb +1 -0
  98. data/lib/appwrite/models/collection_list.rb +1 -0
  99. data/lib/appwrite/models/column_bigint.rb +5 -4
  100. data/lib/appwrite/models/column_boolean.rb +3 -2
  101. data/lib/appwrite/models/column_datetime.rb +3 -2
  102. data/lib/appwrite/models/column_email.rb +3 -2
  103. data/lib/appwrite/models/column_enum.rb +3 -2
  104. data/lib/appwrite/models/column_float.rb +5 -4
  105. data/lib/appwrite/models/column_index.rb +2 -1
  106. data/lib/appwrite/models/column_index_list.rb +1 -0
  107. data/lib/appwrite/models/column_integer.rb +5 -4
  108. data/lib/appwrite/models/column_ip.rb +3 -2
  109. data/lib/appwrite/models/column_line.rb +3 -2
  110. data/lib/appwrite/models/column_list.rb +1 -0
  111. data/lib/appwrite/models/column_longtext.rb +4 -3
  112. data/lib/appwrite/models/column_mediumtext.rb +4 -3
  113. data/lib/appwrite/models/column_point.rb +3 -2
  114. data/lib/appwrite/models/column_polygon.rb +3 -2
  115. data/lib/appwrite/models/column_relationship.rb +2 -1
  116. data/lib/appwrite/models/column_string.rb +4 -3
  117. data/lib/appwrite/models/column_text.rb +4 -3
  118. data/lib/appwrite/models/column_url.rb +3 -2
  119. data/lib/appwrite/models/column_varchar.rb +4 -3
  120. data/lib/appwrite/models/continent.rb +1 -0
  121. data/lib/appwrite/models/continent_list.rb +1 -0
  122. data/lib/appwrite/models/country.rb +1 -0
  123. data/lib/appwrite/models/country_list.rb +1 -0
  124. data/lib/appwrite/models/currency.rb +1 -0
  125. data/lib/appwrite/models/currency_list.rb +1 -0
  126. data/lib/appwrite/models/database.rb +10 -9
  127. data/lib/appwrite/models/database_list.rb +1 -0
  128. data/lib/appwrite/models/database_migration.rb +1 -0
  129. data/lib/appwrite/models/database_migration_list.rb +1 -0
  130. data/lib/appwrite/models/database_status.rb +6 -5
  131. data/lib/appwrite/models/database_status_connections.rb +1 -0
  132. data/lib/appwrite/models/database_status_replica.rb +3 -2
  133. data/lib/appwrite/models/database_status_volume.rb +1 -0
  134. data/lib/appwrite/models/dedicated_database.rb +22 -6
  135. data/lib/appwrite/models/dedicated_database_backup.rb +6 -5
  136. data/lib/appwrite/models/dedicated_database_backup_list.rb +1 -0
  137. data/lib/appwrite/models/dedicated_database_backup_storage.rb +1 -0
  138. data/lib/appwrite/models/dedicated_database_branch.rb +2 -1
  139. data/lib/appwrite/models/dedicated_database_branch_list.rb +1 -0
  140. data/lib/appwrite/models/dedicated_database_execution.rb +1 -0
  141. data/lib/appwrite/models/dedicated_database_execution_column.rb +1 -0
  142. data/lib/appwrite/models/dedicated_database_extensions.rb +1 -0
  143. data/lib/appwrite/models/dedicated_database_list.rb +1 -0
  144. data/lib/appwrite/models/dedicated_database_member.rb +3 -2
  145. data/lib/appwrite/models/dedicated_database_operation.rb +4 -3
  146. data/lib/appwrite/models/dedicated_database_operation_list.rb +1 -0
  147. data/lib/appwrite/models/dedicated_database_pitr_windows.rb +1 -0
  148. data/lib/appwrite/models/dedicated_database_pooler.rb +1 -0
  149. data/lib/appwrite/models/dedicated_database_replicas.rb +3 -2
  150. data/lib/appwrite/models/dedicated_database_restoration.rb +11 -5
  151. data/lib/appwrite/models/dedicated_database_restoration_list.rb +1 -0
  152. data/lib/appwrite/models/dedicated_database_specification.rb +21 -0
  153. data/lib/appwrite/models/dedicated_database_specification_list.rb +4 -8
  154. data/lib/appwrite/models/deployment.rb +1 -0
  155. data/lib/appwrite/models/deployment_list.rb +1 -0
  156. data/lib/appwrite/models/dns_record.rb +83 -0
  157. data/lib/appwrite/models/dns_records_list.rb +33 -0
  158. data/lib/appwrite/models/document.rb +1 -0
  159. data/lib/appwrite/models/document_list.rb +1 -0
  160. data/lib/appwrite/models/domain.rb +109 -0
  161. data/lib/appwrite/models/domain_price.rb +63 -0
  162. data/lib/appwrite/models/domain_prices_list.rb +33 -0
  163. data/lib/appwrite/models/domain_transfer_status.rb +59 -0
  164. data/lib/appwrite/models/domains_list.rb +33 -0
  165. data/lib/appwrite/models/email_template.rb +1 -0
  166. data/lib/appwrite/models/email_template_list.rb +1 -0
  167. data/lib/appwrite/models/embedding.rb +1 -0
  168. data/lib/appwrite/models/embedding_list.rb +1 -0
  169. data/lib/appwrite/models/ephemeral_key.rb +1 -0
  170. data/lib/appwrite/models/execution.rb +3 -1
  171. data/lib/appwrite/models/execution_list.rb +1 -0
  172. data/lib/appwrite/models/file.rb +1 -0
  173. data/lib/appwrite/models/file_list.rb +1 -0
  174. data/lib/appwrite/models/framework.rb +1 -0
  175. data/lib/appwrite/models/framework_adapter.rb +2 -1
  176. data/lib/appwrite/models/framework_list.rb +1 -0
  177. data/lib/appwrite/models/function.rb +10 -4
  178. data/lib/appwrite/models/function_list.rb +1 -0
  179. data/lib/appwrite/models/headers.rb +1 -0
  180. data/lib/appwrite/models/identity.rb +9 -3
  181. data/lib/appwrite/models/identity_list.rb +1 -0
  182. data/lib/appwrite/models/index.rb +2 -1
  183. data/lib/appwrite/models/index_list.rb +1 -0
  184. data/lib/appwrite/models/insight.rb +4 -3
  185. data/lib/appwrite/models/insight_cta.rb +1 -0
  186. data/lib/appwrite/models/insight_list.rb +1 -0
  187. data/lib/appwrite/models/jwt.rb +1 -0
  188. data/lib/appwrite/models/key.rb +1 -0
  189. data/lib/appwrite/models/key_list.rb +1 -0
  190. data/lib/appwrite/models/language.rb +1 -0
  191. data/lib/appwrite/models/language_list.rb +1 -0
  192. data/lib/appwrite/models/locale.rb +12 -11
  193. data/lib/appwrite/models/locale_code.rb +1 -0
  194. data/lib/appwrite/models/locale_code_list.rb +1 -0
  195. data/lib/appwrite/models/membership.rb +1 -0
  196. data/lib/appwrite/models/membership_list.rb +1 -0
  197. data/lib/appwrite/models/message.rb +4 -3
  198. data/lib/appwrite/models/message_list.rb +1 -0
  199. data/lib/appwrite/models/mfa_challenge.rb +1 -0
  200. data/lib/appwrite/models/mfa_challenge_secret.rb +1 -0
  201. data/lib/appwrite/models/mfa_factors.rb +1 -0
  202. data/lib/appwrite/models/mfa_recovery_codes.rb +1 -0
  203. data/lib/appwrite/models/mfa_type.rb +1 -0
  204. data/lib/appwrite/models/mock_number.rb +1 -0
  205. data/lib/appwrite/models/mock_number_list.rb +1 -0
  206. data/lib/appwrite/models/o_auth2_amazon.rb +1 -0
  207. data/lib/appwrite/models/o_auth2_apple.rb +14 -3
  208. data/lib/appwrite/models/o_auth2_appwrite.rb +1 -0
  209. data/lib/appwrite/models/o_auth2_auth0.rb +24 -0
  210. data/lib/appwrite/models/o_auth2_authentik.rb +1 -0
  211. data/lib/appwrite/models/o_auth2_autodesk.rb +1 -0
  212. data/lib/appwrite/models/o_auth2_bitbucket.rb +1 -0
  213. data/lib/appwrite/models/o_auth2_bitly.rb +1 -0
  214. data/lib/appwrite/models/o_auth2_box.rb +1 -0
  215. data/lib/appwrite/models/o_auth2_cloudflare.rb +1 -0
  216. data/lib/appwrite/models/o_auth2_dailymotion.rb +1 -0
  217. data/lib/appwrite/models/o_auth2_discord.rb +26 -3
  218. data/lib/appwrite/models/o_auth2_disqus.rb +1 -0
  219. data/lib/appwrite/models/o_auth2_dropbox.rb +1 -0
  220. data/lib/appwrite/models/o_auth2_etsy.rb +1 -0
  221. data/lib/appwrite/models/o_auth2_facebook.rb +1 -0
  222. data/lib/appwrite/models/o_auth2_figma.rb +1 -0
  223. data/lib/appwrite/models/o_auth2_fusion_auth.rb +1 -0
  224. data/lib/appwrite/models/o_auth2_github.rb +25 -3
  225. data/lib/appwrite/models/o_auth2_gitlab.rb +1 -0
  226. data/lib/appwrite/models/o_auth2_google.rb +18 -5
  227. data/lib/appwrite/models/o_auth2_hugging_face.rb +1 -0
  228. data/lib/appwrite/models/o_auth2_kakao.rb +67 -0
  229. data/lib/appwrite/models/o_auth2_keycloak.rb +1 -0
  230. data/lib/appwrite/models/o_auth2_kick.rb +1 -0
  231. data/lib/appwrite/models/o_auth2_linkedin.rb +1 -0
  232. data/lib/appwrite/models/o_auth2_microsoft.rb +25 -0
  233. data/lib/appwrite/models/o_auth2_notion.rb +1 -0
  234. data/lib/appwrite/models/o_auth2_oidc.rb +11 -8
  235. data/lib/appwrite/models/o_auth2_okta.rb +24 -0
  236. data/lib/appwrite/models/o_auth2_paypal.rb +1 -0
  237. data/lib/appwrite/models/o_auth2_podio.rb +1 -0
  238. data/lib/appwrite/models/o_auth2_provider_list.rb +1 -0
  239. data/lib/appwrite/models/o_auth2_resend.rb +1 -0
  240. data/lib/appwrite/models/o_auth2_salesforce.rb +26 -3
  241. data/lib/appwrite/models/o_auth2_slack.rb +1 -0
  242. data/lib/appwrite/models/o_auth2_spotify.rb +1 -0
  243. data/lib/appwrite/models/o_auth2_stripe.rb +1 -0
  244. data/lib/appwrite/models/o_auth2_tik_tok.rb +43 -0
  245. data/lib/appwrite/models/o_auth2_tradeshift.rb +1 -0
  246. data/lib/appwrite/models/o_auth2_twitch.rb +1 -0
  247. data/lib/appwrite/models/o_auth2_webflow.rb +43 -0
  248. data/lib/appwrite/models/o_auth2_word_press.rb +1 -0
  249. data/lib/appwrite/models/o_auth2_x.rb +1 -0
  250. data/lib/appwrite/models/o_auth2_yahoo.rb +1 -0
  251. data/lib/appwrite/models/o_auth2_yandex.rb +1 -0
  252. data/lib/appwrite/models/o_auth2_zoho.rb +25 -3
  253. data/lib/appwrite/models/o_auth2_zoom.rb +1 -0
  254. data/lib/appwrite/models/oauth2_approve.rb +1 -0
  255. data/lib/appwrite/models/oauth2_authorize.rb +1 -0
  256. data/lib/appwrite/models/oauth2_consent.rb +1 -0
  257. data/lib/appwrite/models/oauth2_consent_list.rb +1 -0
  258. data/lib/appwrite/models/oauth2_consent_token.rb +1 -0
  259. data/lib/appwrite/models/oauth2_consent_token_list.rb +1 -0
  260. data/lib/appwrite/models/oauth2_device_authorization.rb +1 -0
  261. data/lib/appwrite/models/oauth2_grant.rb +1 -0
  262. data/lib/appwrite/models/oauth2_introspection.rb +83 -0
  263. data/lib/appwrite/models/oauth2_organization.rb +1 -0
  264. data/lib/appwrite/models/oauth2_organization_list.rb +1 -0
  265. data/lib/appwrite/models/oauth2_par.rb +1 -0
  266. data/lib/appwrite/models/oauth2_project.rb +1 -0
  267. data/lib/appwrite/models/oauth2_project_list.rb +1 -0
  268. data/lib/appwrite/models/oauth2_reject.rb +1 -0
  269. data/lib/appwrite/models/oauth2_token.rb +3 -2
  270. data/lib/appwrite/models/organization.rb +21 -20
  271. data/lib/appwrite/models/passkey.rb +1 -0
  272. data/lib/appwrite/models/passkey_challenge.rb +1 -0
  273. data/lib/appwrite/models/passkey_list.rb +1 -0
  274. data/lib/appwrite/models/phone.rb +1 -0
  275. data/lib/appwrite/models/phone_list.rb +1 -0
  276. data/lib/appwrite/models/platform_android.rb +9 -3
  277. data/lib/appwrite/models/platform_apple.rb +1 -0
  278. data/lib/appwrite/models/platform_linux.rb +1 -0
  279. data/lib/appwrite/models/platform_list.rb +1 -0
  280. data/lib/appwrite/models/platform_web.rb +1 -0
  281. data/lib/appwrite/models/platform_windows.rb +1 -0
  282. data/lib/appwrite/models/policy_deny_aliased_email.rb +1 -0
  283. data/lib/appwrite/models/policy_deny_corporate_email.rb +1 -0
  284. data/lib/appwrite/models/policy_deny_disposable_email.rb +1 -0
  285. data/lib/appwrite/models/policy_deny_free_email.rb +1 -0
  286. data/lib/appwrite/models/policy_list.rb +1 -0
  287. data/lib/appwrite/models/policy_membership_privacy.rb +1 -0
  288. data/lib/appwrite/models/policy_mfa_factors.rb +1 -0
  289. data/lib/appwrite/models/policy_passkey.rb +1 -0
  290. data/lib/appwrite/models/policy_password_dictionary.rb +1 -0
  291. data/lib/appwrite/models/policy_password_history.rb +1 -0
  292. data/lib/appwrite/models/policy_password_personal_data.rb +1 -0
  293. data/lib/appwrite/models/policy_password_pwned.rb +43 -0
  294. data/lib/appwrite/models/policy_password_rotation.rb +38 -0
  295. data/lib/appwrite/models/policy_password_strength.rb +1 -0
  296. data/lib/appwrite/models/policy_session_alert.rb +1 -0
  297. data/lib/appwrite/models/policy_session_duration.rb +1 -0
  298. data/lib/appwrite/models/policy_session_invalidation.rb +1 -0
  299. data/lib/appwrite/models/policy_session_limit.rb +1 -0
  300. data/lib/appwrite/models/policy_user_limit.rb +1 -0
  301. data/lib/appwrite/models/postgres_extension.rb +1 -0
  302. data/lib/appwrite/models/presence.rb +4 -3
  303. data/lib/appwrite/models/presence_list.rb +1 -0
  304. data/lib/appwrite/models/program.rb +1 -0
  305. data/lib/appwrite/models/project.rb +35 -24
  306. data/lib/appwrite/models/project_auth_method.rb +1 -0
  307. data/lib/appwrite/models/project_list.rb +1 -0
  308. data/lib/appwrite/models/project_protocol.rb +1 -0
  309. data/lib/appwrite/models/project_service.rb +1 -0
  310. data/lib/appwrite/models/provider.rb +2 -1
  311. data/lib/appwrite/models/provider_list.rb +1 -0
  312. data/lib/appwrite/models/proxy_invalidation.rb +1 -0
  313. data/lib/appwrite/models/proxy_rule.rb +24 -4
  314. data/lib/appwrite/models/proxy_rule_list.rb +1 -0
  315. data/lib/appwrite/models/report.rb +2 -1
  316. data/lib/appwrite/models/report_list.rb +1 -0
  317. data/lib/appwrite/models/resource_token.rb +1 -0
  318. data/lib/appwrite/models/resource_token_list.rb +1 -0
  319. data/lib/appwrite/models/row.rb +1 -0
  320. data/lib/appwrite/models/row_list.rb +1 -0
  321. data/lib/appwrite/models/runtime.rb +1 -0
  322. data/lib/appwrite/models/runtime_list.rb +1 -0
  323. data/lib/appwrite/models/session.rb +1 -0
  324. data/lib/appwrite/models/session_list.rb +1 -0
  325. data/lib/appwrite/models/site.rb +1 -0
  326. data/lib/appwrite/models/site_list.rb +1 -0
  327. data/lib/appwrite/models/specification.rb +1 -0
  328. data/lib/appwrite/models/specification_list.rb +1 -0
  329. data/lib/appwrite/models/subscriber.rb +1 -0
  330. data/lib/appwrite/models/subscriber_list.rb +1 -0
  331. data/lib/appwrite/models/table.rb +1 -0
  332. data/lib/appwrite/models/table_list.rb +1 -0
  333. data/lib/appwrite/models/target.rb +2 -1
  334. data/lib/appwrite/models/target_list.rb +1 -0
  335. data/lib/appwrite/models/team.rb +1 -0
  336. data/lib/appwrite/models/team_list.rb +1 -0
  337. data/lib/appwrite/models/token.rb +1 -0
  338. data/lib/appwrite/models/token_secret.rb +1 -0
  339. data/lib/appwrite/models/topic.rb +14 -3
  340. data/lib/appwrite/models/topic_list.rb +1 -0
  341. data/lib/appwrite/models/transaction.rb +1 -0
  342. data/lib/appwrite/models/transaction_list.rb +1 -0
  343. data/lib/appwrite/models/usage_billing_plan.rb +27 -27
  344. data/lib/appwrite/models/user.rb +16 -10
  345. data/lib/appwrite/models/user_list.rb +1 -0
  346. data/lib/appwrite/models/variable.rb +1 -0
  347. data/lib/appwrite/models/variable_list.rb +1 -0
  348. data/lib/appwrite/models/vectorsdb_collection.rb +1 -0
  349. data/lib/appwrite/models/vectorsdb_collection_list.rb +1 -0
  350. data/lib/appwrite/models/waf_rule_bypass.rb +111 -0
  351. data/lib/appwrite/models/waf_rule_challenge.rb +126 -0
  352. data/lib/appwrite/models/waf_rule_deny.rb +111 -0
  353. data/lib/appwrite/models/{log_list.rb → waf_rule_list.rb} +8 -7
  354. data/lib/appwrite/models/waf_rule_rate_limit.rb +136 -0
  355. data/lib/appwrite/models/waf_rule_redirect.rb +121 -0
  356. data/lib/appwrite/models/webhook.rb +1 -0
  357. data/lib/appwrite/models/webhook_list.rb +1 -0
  358. data/lib/appwrite/query/builder.rb +361 -0
  359. data/lib/appwrite/query.rb +190 -0
  360. data/lib/appwrite/services/account.rb +409 -133
  361. data/lib/appwrite/services/activities.rb +4 -4
  362. data/lib/appwrite/services/advisor.rb +19 -18
  363. data/lib/appwrite/services/apps.rb +89 -89
  364. data/lib/appwrite/services/avatars.rb +92 -21
  365. data/lib/appwrite/services/backups.rb +30 -30
  366. data/lib/appwrite/services/databases.rb +504 -453
  367. data/lib/appwrite/services/documents_db.rb +199 -191
  368. data/lib/appwrite/services/domains.rb +2318 -0
  369. data/lib/appwrite/services/embeddings.rb +2 -2
  370. data/lib/appwrite/services/functions.rb +128 -112
  371. data/lib/appwrite/services/graphql.rb +4 -4
  372. data/lib/appwrite/services/locale.rb +49 -14
  373. data/lib/appwrite/services/messaging.rb +281 -153
  374. data/lib/appwrite/services/mongo.rb +194 -130
  375. data/lib/appwrite/services/mysql.rb +212 -144
  376. data/lib/appwrite/services/oauth2.rb +72 -27
  377. data/lib/appwrite/services/organization.rb +255 -221
  378. data/lib/appwrite/services/postgresql.rb +226 -158
  379. data/lib/appwrite/services/presences.rb +17 -16
  380. data/lib/appwrite/services/project.rb +588 -157
  381. data/lib/appwrite/services/proxy.rb +70 -23
  382. data/lib/appwrite/services/sites.rb +119 -107
  383. data/lib/appwrite/services/storage.rb +62 -59
  384. data/lib/appwrite/services/tables_db.rb +617 -558
  385. data/lib/appwrite/services/teams.rb +87 -82
  386. data/lib/appwrite/services/tokens.rb +25 -24
  387. data/lib/appwrite/services/users.rb +170 -199
  388. data/lib/appwrite/services/vectors_db.rb +185 -177
  389. data/lib/appwrite/services/waf.rb +859 -0
  390. data/lib/appwrite/services/webhooks.rb +23 -22
  391. data/lib/appwrite/topic.rb +53 -0
  392. data/lib/appwrite.rb +48 -9
  393. metadata +47 -7
  394. data/lib/appwrite/enums/organization_key_scopes.rb +0 -22
  395. data/lib/appwrite/models/dedicated_database_specification_pricing.rb +0 -42
  396. data/lib/appwrite/models/dev_key.rb +0 -62
  397. data/lib/appwrite/models/log.rb +0 -132
@@ -60,8 +60,6 @@ module Appwrite
60
60
  replicas: nil,
61
61
  sync_mode: nil
62
62
  )
63
- api_path = '/tablesdb'
64
-
65
63
  if database_id.nil?
66
64
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
67
65
  end
@@ -70,6 +68,8 @@ module Appwrite
70
68
  raise Appwrite::Exception.new('Missing required parameter: "name"')
71
69
  end
72
70
 
71
+ api_path = '/tablesdb'
72
+
73
73
  api_params = {
74
74
  databaseId: database_id,
75
75
  name: name,
@@ -95,8 +95,8 @@ module Appwrite
95
95
  end
96
96
 
97
97
  # List the dedicated database specifications available on the current plan.
98
- # Each specification reports its resource limits, pricing, and whether it is
99
- # enabled for the organization.
98
+ # Each specification reports its resource limits, its own prices and overage
99
+ # rates, and whether it is enabled for the organization.
100
100
  #
101
101
  #
102
102
  # @return [DedicatedDatabaseSpecificationList]
@@ -122,15 +122,18 @@ module Appwrite
122
122
  # List transactions across all databases.
123
123
  #
124
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).
125
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
125
126
  #
126
127
  # @return [TransactionList]
127
128
  def list_transactions(
128
- queries: nil
129
+ queries: nil,
130
+ total: nil
129
131
  )
130
132
  api_path = '/tablesdb/transactions'
131
133
 
132
134
  api_params = {
133
135
  queries: queries,
136
+ total: total,
134
137
  }
135
138
 
136
139
  api_headers = {
@@ -184,13 +187,13 @@ module Appwrite
184
187
  def get_transaction(
185
188
  transaction_id:
186
189
  )
187
- api_path = '/tablesdb/transactions/{transactionId}'
188
- .gsub('{transactionId}', transaction_id)
189
-
190
- if transaction_id.nil?
190
+ if transaction_id.nil? || transaction_id == ''
191
191
  raise Appwrite::Exception.new('Missing required parameter: "transactionId"')
192
192
  end
193
193
 
194
+ api_path = '/tablesdb/transactions/{transactionId}'
195
+ .gsub('{transactionId}', transaction_id)
196
+
194
197
  api_params = {}
195
198
 
196
199
  api_headers = {
@@ -219,13 +222,13 @@ module Appwrite
219
222
  commit: nil,
220
223
  rollback: nil
221
224
  )
222
- api_path = '/tablesdb/transactions/{transactionId}'
223
- .gsub('{transactionId}', transaction_id)
224
-
225
- if transaction_id.nil?
225
+ if transaction_id.nil? || transaction_id == ''
226
226
  raise Appwrite::Exception.new('Missing required parameter: "transactionId"')
227
227
  end
228
228
 
229
+ api_path = '/tablesdb/transactions/{transactionId}'
230
+ .gsub('{transactionId}', transaction_id)
231
+
229
232
  api_params = {
230
233
  commit: commit,
231
234
  rollback: rollback,
@@ -254,18 +257,19 @@ module Appwrite
254
257
  def delete_transaction(
255
258
  transaction_id:
256
259
  )
257
- api_path = '/tablesdb/transactions/{transactionId}'
258
- .gsub('{transactionId}', transaction_id)
259
-
260
- if transaction_id.nil?
260
+ if transaction_id.nil? || transaction_id == ''
261
261
  raise Appwrite::Exception.new('Missing required parameter: "transactionId"')
262
262
  end
263
263
 
264
+ api_path = '/tablesdb/transactions/{transactionId}'
265
+ .gsub('{transactionId}', transaction_id)
266
+
264
267
  api_params = {}
265
268
 
266
269
  api_headers = {
267
270
  "X-Appwrite-Project": @client.get_config('project'),
268
271
  "content-type": 'application/json',
272
+ "accept": 'application/json',
269
273
  }
270
274
 
271
275
  @client.call(
@@ -286,13 +290,13 @@ module Appwrite
286
290
  transaction_id:,
287
291
  operations: nil
288
292
  )
289
- api_path = '/tablesdb/transactions/{transactionId}/operations'
290
- .gsub('{transactionId}', transaction_id)
291
-
292
- if transaction_id.nil?
293
+ if transaction_id.nil? || transaction_id == ''
293
294
  raise Appwrite::Exception.new('Missing required parameter: "transactionId"')
294
295
  end
295
296
 
297
+ api_path = '/tablesdb/transactions/{transactionId}/operations'
298
+ .gsub('{transactionId}', transaction_id)
299
+
296
300
  api_params = {
297
301
  operations: operations,
298
302
  }
@@ -321,13 +325,13 @@ module Appwrite
321
325
  def get(
322
326
  database_id:
323
327
  )
324
- api_path = '/tablesdb/{databaseId}'
325
- .gsub('{databaseId}', database_id)
326
-
327
- if database_id.nil?
328
+ if database_id.nil? || database_id == ''
328
329
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
329
330
  end
330
331
 
332
+ api_path = '/tablesdb/{databaseId}'
333
+ .gsub('{databaseId}', database_id)
334
+
331
335
  api_params = {}
332
336
 
333
337
  api_headers = {
@@ -362,13 +366,13 @@ module Appwrite
362
366
  replicas: nil,
363
367
  sync_mode: nil
364
368
  )
365
- api_path = '/tablesdb/{databaseId}'
366
- .gsub('{databaseId}', database_id)
367
-
368
- if database_id.nil?
369
+ if database_id.nil? || database_id == ''
369
370
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
370
371
  end
371
372
 
373
+ api_path = '/tablesdb/{databaseId}'
374
+ .gsub('{databaseId}', database_id)
375
+
372
376
  api_params = {
373
377
  name: name,
374
378
  enabled: enabled,
@@ -401,18 +405,19 @@ module Appwrite
401
405
  def delete(
402
406
  database_id:
403
407
  )
404
- api_path = '/tablesdb/{databaseId}'
405
- .gsub('{databaseId}', database_id)
406
-
407
- if database_id.nil?
408
+ if database_id.nil? || database_id == ''
408
409
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
409
410
  end
410
411
 
412
+ api_path = '/tablesdb/{databaseId}'
413
+ .gsub('{databaseId}', database_id)
414
+
411
415
  api_params = {}
412
416
 
413
417
  api_headers = {
414
418
  "X-Appwrite-Project": @client.get_config('project'),
415
419
  "content-type": 'application/json',
420
+ "accept": 'application/json',
416
421
  }
417
422
 
418
423
  @client.call(
@@ -441,13 +446,13 @@ module Appwrite
441
446
  database_id:,
442
447
  target_replica_id: nil
443
448
  )
444
- api_path = '/tablesdb/{databaseId}/failovers'
445
- .gsub('{databaseId}', database_id)
446
-
447
- if database_id.nil?
449
+ if database_id.nil? || database_id == ''
448
450
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
449
451
  end
450
452
 
453
+ api_path = '/tablesdb/{databaseId}/failovers'
454
+ .gsub('{databaseId}', database_id)
455
+
451
456
  api_params = {
452
457
  targetReplicaId: target_replica_id,
453
458
  }
@@ -476,13 +481,13 @@ module Appwrite
476
481
  def list_migrations(
477
482
  database_id:
478
483
  )
479
- api_path = '/tablesdb/{databaseId}/migrations'
480
- .gsub('{databaseId}', database_id)
481
-
482
- if database_id.nil?
484
+ if database_id.nil? || database_id == ''
483
485
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
484
486
  end
485
487
 
488
+ api_path = '/tablesdb/{databaseId}/migrations'
489
+ .gsub('{databaseId}', database_id)
490
+
486
491
  api_params = {}
487
492
 
488
493
  api_headers = {
@@ -500,8 +505,13 @@ module Appwrite
500
505
  end
501
506
 
502
507
  # Start migrating a serverless TablesDB database onto a dedicated MySQL
503
- # compute. Data is copied to the target while the source stays live, with a
504
- # brief read-only window during cutover.
508
+ # compute. Data is copied to the target while the source stays live. Reads
509
+ # continue throughout. Row writes are held for up to a few seconds while
510
+ # routing switches to the dedicated compute; a write the switch has not
511
+ # absorbed within that hold is refused with `database_migration_cutover` and
512
+ # can be retried. Schema changes (tables, columns, indexes) are refused from
513
+ # creation until the cutover completes, and resume once the migration is
514
+ # `soaking`.
505
515
  #
506
516
  # @param [String] database_id Database ID.
507
517
  # @param [String] specification Dedicated compute specification to provision as the migration target (e.g. s-2vcpu-4gb). The migration always targets a dedicated compute, so `serverless` is not accepted.
@@ -513,10 +523,7 @@ module Appwrite
513
523
  specification:,
514
524
  auto_cutover: nil
515
525
  )
516
- api_path = '/tablesdb/{databaseId}/migrations'
517
- .gsub('{databaseId}', database_id)
518
-
519
- if database_id.nil?
526
+ if database_id.nil? || database_id == ''
520
527
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
521
528
  end
522
529
 
@@ -524,6 +531,9 @@ module Appwrite
524
531
  raise Appwrite::Exception.new('Missing required parameter: "specification"')
525
532
  end
526
533
 
534
+ api_path = '/tablesdb/{databaseId}/migrations'
535
+ .gsub('{databaseId}', database_id)
536
+
527
537
  api_params = {
528
538
  specification: specification,
529
539
  autoCutover: auto_cutover,
@@ -554,18 +564,18 @@ module Appwrite
554
564
  database_id:,
555
565
  migration_id:
556
566
  )
557
- api_path = '/tablesdb/{databaseId}/migrations/{migrationId}'
558
- .gsub('{databaseId}', database_id)
559
- .gsub('{migrationId}', migration_id)
560
-
561
- if database_id.nil?
567
+ if database_id.nil? || database_id == ''
562
568
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
563
569
  end
564
570
 
565
- if migration_id.nil?
571
+ if migration_id.nil? || migration_id == ''
566
572
  raise Appwrite::Exception.new('Missing required parameter: "migrationId"')
567
573
  end
568
574
 
575
+ api_path = '/tablesdb/{databaseId}/migrations/{migrationId}'
576
+ .gsub('{databaseId}', database_id)
577
+ .gsub('{migrationId}', migration_id)
578
+
569
579
  api_params = {}
570
580
 
571
581
  api_headers = {
@@ -593,18 +603,18 @@ module Appwrite
593
603
  database_id:,
594
604
  migration_id:
595
605
  )
596
- api_path = '/tablesdb/{databaseId}/migrations/{migrationId}'
597
- .gsub('{databaseId}', database_id)
598
- .gsub('{migrationId}', migration_id)
599
-
600
- if database_id.nil?
606
+ if database_id.nil? || database_id == ''
601
607
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
602
608
  end
603
609
 
604
- if migration_id.nil?
610
+ if migration_id.nil? || migration_id == ''
605
611
  raise Appwrite::Exception.new('Missing required parameter: "migrationId"')
606
612
  end
607
613
 
614
+ api_path = '/tablesdb/{databaseId}/migrations/{migrationId}'
615
+ .gsub('{databaseId}', database_id)
616
+ .gsub('{migrationId}', migration_id)
617
+
608
618
  api_params = {}
609
619
 
610
620
  api_headers = {
@@ -624,9 +634,12 @@ module Appwrite
624
634
  # Cut a verified TablesDB migration over to its dedicated compute. Only
625
635
  # applies to a migration created with `autoCutover` disabled, which waits at
626
636
  # `ready_to_cutover` until this is called. The routing flip happens shortly
627
- # after this returns, with a brief read-only window. One call buys one
628
- # attempt: a cutover that fails a check returns the migration to `verifying`
629
- # and parks it again, so call this once more to retry.
637
+ # after this returns. Reads are unaffected; row writes are held for up to a
638
+ # few seconds while it lands, and a write the flip has not absorbed within
639
+ # that hold is refused with `database_migration_cutover` and can be retried.
640
+ # One call buys one attempt: a cutover that fails a check returns the
641
+ # migration to `verifying` and parks it again, so call this once more to
642
+ # retry.
630
643
  #
631
644
  # @param [String] database_id Database ID.
632
645
  # @param [String] migration_id Migration ID.
@@ -636,18 +649,18 @@ module Appwrite
636
649
  database_id:,
637
650
  migration_id:
638
651
  )
639
- api_path = '/tablesdb/{databaseId}/migrations/{migrationId}/cutovers'
640
- .gsub('{databaseId}', database_id)
641
- .gsub('{migrationId}', migration_id)
642
-
643
- if database_id.nil?
652
+ if database_id.nil? || database_id == ''
644
653
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
645
654
  end
646
655
 
647
- if migration_id.nil?
656
+ if migration_id.nil? || migration_id == ''
648
657
  raise Appwrite::Exception.new('Missing required parameter: "migrationId"')
649
658
  end
650
659
 
660
+ api_path = '/tablesdb/{databaseId}/migrations/{migrationId}/cutovers'
661
+ .gsub('{databaseId}', database_id)
662
+ .gsub('{migrationId}', migration_id)
663
+
651
664
  api_params = {}
652
665
 
653
666
  api_headers = {
@@ -682,13 +695,13 @@ module Appwrite
682
695
  limit: nil,
683
696
  offset: nil
684
697
  )
685
- api_path = '/tablesdb/{databaseId}/operations'
686
- .gsub('{databaseId}', database_id)
687
-
688
- if database_id.nil?
698
+ if database_id.nil? || database_id == ''
689
699
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
690
700
  end
691
701
 
702
+ api_path = '/tablesdb/{databaseId}/operations'
703
+ .gsub('{databaseId}', database_id)
704
+
692
705
  api_params = {
693
706
  status: status,
694
707
  limit: limit,
@@ -718,13 +731,13 @@ module Appwrite
718
731
  def get_replicas(
719
732
  database_id:
720
733
  )
721
- api_path = '/tablesdb/{databaseId}/replicas'
722
- .gsub('{databaseId}', database_id)
723
-
724
- if database_id.nil?
734
+ if database_id.nil? || database_id == ''
725
735
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
726
736
  end
727
737
 
738
+ api_path = '/tablesdb/{databaseId}/replicas'
739
+ .gsub('{databaseId}', database_id)
740
+
728
741
  api_params = {}
729
742
 
730
743
  api_headers = {
@@ -751,13 +764,13 @@ module Appwrite
751
764
  def get_status(
752
765
  database_id:
753
766
  )
754
- api_path = '/tablesdb/{databaseId}/status'
755
- .gsub('{databaseId}', database_id)
756
-
757
- if database_id.nil?
767
+ if database_id.nil? || database_id == ''
758
768
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
759
769
  end
760
770
 
771
+ api_path = '/tablesdb/{databaseId}/status'
772
+ .gsub('{databaseId}', database_id)
773
+
761
774
  api_params = {}
762
775
 
763
776
  api_headers = {
@@ -789,13 +802,13 @@ module Appwrite
789
802
  search: nil,
790
803
  total: nil
791
804
  )
792
- api_path = '/tablesdb/{databaseId}/tables'
793
- .gsub('{databaseId}', database_id)
794
-
795
- if database_id.nil?
805
+ if database_id.nil? || database_id == ''
796
806
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
797
807
  end
798
808
 
809
+ api_path = '/tablesdb/{databaseId}/tables'
810
+ .gsub('{databaseId}', database_id)
811
+
799
812
  api_params = {
800
813
  queries: queries,
801
814
  search: search,
@@ -828,7 +841,7 @@ module Appwrite
828
841
  # @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).
829
842
  # @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.
830
843
  # @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.
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).
844
+ # @param [Array] indexes Array of index definitions to create. Each index should contain: key (string), type (string: key, fulltext, unique, spatial, trigram), attributes (array of column keys), orders (array of ASC/DESC, optional), and lengths (array of integers, optional).
832
845
  #
833
846
  # @return [Table]
834
847
  def create_table(
@@ -841,10 +854,7 @@ module Appwrite
841
854
  columns: nil,
842
855
  indexes: nil
843
856
  )
844
- api_path = '/tablesdb/{databaseId}/tables'
845
- .gsub('{databaseId}', database_id)
846
-
847
- if database_id.nil?
857
+ if database_id.nil? || database_id == ''
848
858
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
849
859
  end
850
860
 
@@ -856,6 +866,9 @@ module Appwrite
856
866
  raise Appwrite::Exception.new('Missing required parameter: "name"')
857
867
  end
858
868
 
869
+ api_path = '/tablesdb/{databaseId}/tables'
870
+ .gsub('{databaseId}', database_id)
871
+
859
872
  api_params = {
860
873
  tableId: table_id,
861
874
  name: name,
@@ -892,18 +905,18 @@ module Appwrite
892
905
  database_id:,
893
906
  table_id:
894
907
  )
895
- api_path = '/tablesdb/{databaseId}/tables/{tableId}'
896
- .gsub('{databaseId}', database_id)
897
- .gsub('{tableId}', table_id)
898
-
899
- if database_id.nil?
908
+ if database_id.nil? || database_id == ''
900
909
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
901
910
  end
902
911
 
903
- if table_id.nil?
912
+ if table_id.nil? || table_id == ''
904
913
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
905
914
  end
906
915
 
916
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}'
917
+ .gsub('{databaseId}', database_id)
918
+ .gsub('{tableId}', table_id)
919
+
907
920
  api_params = {}
908
921
 
909
922
  api_headers = {
@@ -940,18 +953,18 @@ module Appwrite
940
953
  enabled: nil,
941
954
  purge: nil
942
955
  )
943
- api_path = '/tablesdb/{databaseId}/tables/{tableId}'
944
- .gsub('{databaseId}', database_id)
945
- .gsub('{tableId}', table_id)
946
-
947
- if database_id.nil?
956
+ if database_id.nil? || database_id == ''
948
957
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
949
958
  end
950
959
 
951
- if table_id.nil?
960
+ if table_id.nil? || table_id == ''
952
961
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
953
962
  end
954
963
 
964
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}'
965
+ .gsub('{databaseId}', database_id)
966
+ .gsub('{tableId}', table_id)
967
+
955
968
  api_params = {
956
969
  name: name,
957
970
  permissions: permissions,
@@ -986,23 +999,24 @@ module Appwrite
986
999
  database_id:,
987
1000
  table_id:
988
1001
  )
989
- api_path = '/tablesdb/{databaseId}/tables/{tableId}'
990
- .gsub('{databaseId}', database_id)
991
- .gsub('{tableId}', table_id)
992
-
993
- if database_id.nil?
1002
+ if database_id.nil? || database_id == ''
994
1003
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
995
1004
  end
996
1005
 
997
- if table_id.nil?
1006
+ if table_id.nil? || table_id == ''
998
1007
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
999
1008
  end
1000
1009
 
1010
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}'
1011
+ .gsub('{databaseId}', database_id)
1012
+ .gsub('{tableId}', table_id)
1013
+
1001
1014
  api_params = {}
1002
1015
 
1003
1016
  api_headers = {
1004
1017
  "X-Appwrite-Project": @client.get_config('project'),
1005
1018
  "content-type": 'application/json',
1019
+ "accept": 'application/json',
1006
1020
  }
1007
1021
 
1008
1022
  @client.call(
@@ -1027,18 +1041,18 @@ module Appwrite
1027
1041
  queries: nil,
1028
1042
  total: nil
1029
1043
  )
1030
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns'
1031
- .gsub('{databaseId}', database_id)
1032
- .gsub('{tableId}', table_id)
1033
-
1034
- if database_id.nil?
1044
+ if database_id.nil? || database_id == ''
1035
1045
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1036
1046
  end
1037
1047
 
1038
- if table_id.nil?
1048
+ if table_id.nil? || table_id == ''
1039
1049
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1040
1050
  end
1041
1051
 
1052
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns'
1053
+ .gsub('{databaseId}', database_id)
1054
+ .gsub('{tableId}', table_id)
1055
+
1042
1056
  api_params = {
1043
1057
  queries: queries,
1044
1058
  total: total,
@@ -1082,15 +1096,11 @@ module Appwrite
1082
1096
  default: nil,
1083
1097
  array: nil
1084
1098
  )
1085
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/bigint'
1086
- .gsub('{databaseId}', database_id)
1087
- .gsub('{tableId}', table_id)
1088
-
1089
- if database_id.nil?
1099
+ if database_id.nil? || database_id == ''
1090
1100
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1091
1101
  end
1092
1102
 
1093
- if table_id.nil?
1103
+ if table_id.nil? || table_id == ''
1094
1104
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1095
1105
  end
1096
1106
 
@@ -1102,6 +1112,10 @@ module Appwrite
1102
1112
  raise Appwrite::Exception.new('Missing required parameter: "required"')
1103
1113
  end
1104
1114
 
1115
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/bigint'
1116
+ .gsub('{databaseId}', database_id)
1117
+ .gsub('{tableId}', table_id)
1118
+
1105
1119
  api_params = {
1106
1120
  key: key,
1107
1121
  required: required,
@@ -1150,20 +1164,15 @@ module Appwrite
1150
1164
  max: nil,
1151
1165
  new_key: nil
1152
1166
  )
1153
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/bigint/{key}'
1154
- .gsub('{databaseId}', database_id)
1155
- .gsub('{tableId}', table_id)
1156
- .gsub('{key}', key)
1157
-
1158
- if database_id.nil?
1167
+ if database_id.nil? || database_id == ''
1159
1168
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1160
1169
  end
1161
1170
 
1162
- if table_id.nil?
1171
+ if table_id.nil? || table_id == ''
1163
1172
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1164
1173
  end
1165
1174
 
1166
- if key.nil?
1175
+ if key.nil? || key == ''
1167
1176
  raise Appwrite::Exception.new('Missing required parameter: "key"')
1168
1177
  end
1169
1178
 
@@ -1175,6 +1184,11 @@ module Appwrite
1175
1184
  raise Appwrite::Exception.new('Missing required parameter: "default"')
1176
1185
  end
1177
1186
 
1187
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/bigint/{key}'
1188
+ .gsub('{databaseId}', database_id)
1189
+ .gsub('{tableId}', table_id)
1190
+ .gsub('{key}', key)
1191
+
1178
1192
  api_params = {
1179
1193
  required: required,
1180
1194
  min: min,
@@ -1217,15 +1231,11 @@ module Appwrite
1217
1231
  default: nil,
1218
1232
  array: nil
1219
1233
  )
1220
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/boolean'
1221
- .gsub('{databaseId}', database_id)
1222
- .gsub('{tableId}', table_id)
1223
-
1224
- if database_id.nil?
1234
+ if database_id.nil? || database_id == ''
1225
1235
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1226
1236
  end
1227
1237
 
1228
- if table_id.nil?
1238
+ if table_id.nil? || table_id == ''
1229
1239
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1230
1240
  end
1231
1241
 
@@ -1237,6 +1247,10 @@ module Appwrite
1237
1247
  raise Appwrite::Exception.new('Missing required parameter: "required"')
1238
1248
  end
1239
1249
 
1250
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/boolean'
1251
+ .gsub('{databaseId}', database_id)
1252
+ .gsub('{tableId}', table_id)
1253
+
1240
1254
  api_params = {
1241
1255
  key: key,
1242
1256
  required: required,
@@ -1278,20 +1292,15 @@ module Appwrite
1278
1292
  default:,
1279
1293
  new_key: nil
1280
1294
  )
1281
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/boolean/{key}'
1282
- .gsub('{databaseId}', database_id)
1283
- .gsub('{tableId}', table_id)
1284
- .gsub('{key}', key)
1285
-
1286
- if database_id.nil?
1295
+ if database_id.nil? || database_id == ''
1287
1296
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1288
1297
  end
1289
1298
 
1290
- if table_id.nil?
1299
+ if table_id.nil? || table_id == ''
1291
1300
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1292
1301
  end
1293
1302
 
1294
- if key.nil?
1303
+ if key.nil? || key == ''
1295
1304
  raise Appwrite::Exception.new('Missing required parameter: "key"')
1296
1305
  end
1297
1306
 
@@ -1303,6 +1312,11 @@ module Appwrite
1303
1312
  raise Appwrite::Exception.new('Missing required parameter: "default"')
1304
1313
  end
1305
1314
 
1315
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/boolean/{key}'
1316
+ .gsub('{databaseId}', database_id)
1317
+ .gsub('{tableId}', table_id)
1318
+ .gsub('{key}', key)
1319
+
1306
1320
  api_params = {
1307
1321
  required: required,
1308
1322
  default: default,
@@ -1342,15 +1356,11 @@ module Appwrite
1342
1356
  default: nil,
1343
1357
  array: nil
1344
1358
  )
1345
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/datetime'
1346
- .gsub('{databaseId}', database_id)
1347
- .gsub('{tableId}', table_id)
1348
-
1349
- if database_id.nil?
1359
+ if database_id.nil? || database_id == ''
1350
1360
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1351
1361
  end
1352
1362
 
1353
- if table_id.nil?
1363
+ if table_id.nil? || table_id == ''
1354
1364
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1355
1365
  end
1356
1366
 
@@ -1362,6 +1372,10 @@ module Appwrite
1362
1372
  raise Appwrite::Exception.new('Missing required parameter: "required"')
1363
1373
  end
1364
1374
 
1375
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/datetime'
1376
+ .gsub('{databaseId}', database_id)
1377
+ .gsub('{tableId}', table_id)
1378
+
1365
1379
  api_params = {
1366
1380
  key: key,
1367
1381
  required: required,
@@ -1403,20 +1417,15 @@ module Appwrite
1403
1417
  default:,
1404
1418
  new_key: nil
1405
1419
  )
1406
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/datetime/{key}'
1407
- .gsub('{databaseId}', database_id)
1408
- .gsub('{tableId}', table_id)
1409
- .gsub('{key}', key)
1410
-
1411
- if database_id.nil?
1420
+ if database_id.nil? || database_id == ''
1412
1421
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1413
1422
  end
1414
1423
 
1415
- if table_id.nil?
1424
+ if table_id.nil? || table_id == ''
1416
1425
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1417
1426
  end
1418
1427
 
1419
- if key.nil?
1428
+ if key.nil? || key == ''
1420
1429
  raise Appwrite::Exception.new('Missing required parameter: "key"')
1421
1430
  end
1422
1431
 
@@ -1428,6 +1437,11 @@ module Appwrite
1428
1437
  raise Appwrite::Exception.new('Missing required parameter: "default"')
1429
1438
  end
1430
1439
 
1440
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/datetime/{key}'
1441
+ .gsub('{databaseId}', database_id)
1442
+ .gsub('{tableId}', table_id)
1443
+ .gsub('{key}', key)
1444
+
1431
1445
  api_params = {
1432
1446
  required: required,
1433
1447
  default: default,
@@ -1468,15 +1482,11 @@ module Appwrite
1468
1482
  default: nil,
1469
1483
  array: nil
1470
1484
  )
1471
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/email'
1472
- .gsub('{databaseId}', database_id)
1473
- .gsub('{tableId}', table_id)
1474
-
1475
- if database_id.nil?
1485
+ if database_id.nil? || database_id == ''
1476
1486
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1477
1487
  end
1478
1488
 
1479
- if table_id.nil?
1489
+ if table_id.nil? || table_id == ''
1480
1490
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1481
1491
  end
1482
1492
 
@@ -1488,8 +1498,12 @@ module Appwrite
1488
1498
  raise Appwrite::Exception.new('Missing required parameter: "required"')
1489
1499
  end
1490
1500
 
1491
- api_params = {
1492
- key: key,
1501
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/email'
1502
+ .gsub('{databaseId}', database_id)
1503
+ .gsub('{tableId}', table_id)
1504
+
1505
+ api_params = {
1506
+ key: key,
1493
1507
  required: required,
1494
1508
  default: default,
1495
1509
  array: array,
@@ -1530,20 +1544,15 @@ module Appwrite
1530
1544
  default:,
1531
1545
  new_key: nil
1532
1546
  )
1533
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/email/{key}'
1534
- .gsub('{databaseId}', database_id)
1535
- .gsub('{tableId}', table_id)
1536
- .gsub('{key}', key)
1537
-
1538
- if database_id.nil?
1547
+ if database_id.nil? || database_id == ''
1539
1548
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1540
1549
  end
1541
1550
 
1542
- if table_id.nil?
1551
+ if table_id.nil? || table_id == ''
1543
1552
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1544
1553
  end
1545
1554
 
1546
- if key.nil?
1555
+ if key.nil? || key == ''
1547
1556
  raise Appwrite::Exception.new('Missing required parameter: "key"')
1548
1557
  end
1549
1558
 
@@ -1555,6 +1564,11 @@ module Appwrite
1555
1564
  raise Appwrite::Exception.new('Missing required parameter: "default"')
1556
1565
  end
1557
1566
 
1567
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/email/{key}'
1568
+ .gsub('{databaseId}', database_id)
1569
+ .gsub('{tableId}', table_id)
1570
+ .gsub('{key}', key)
1571
+
1558
1572
  api_params = {
1559
1573
  required: required,
1560
1574
  default: default,
@@ -1597,15 +1611,11 @@ module Appwrite
1597
1611
  default: nil,
1598
1612
  array: nil
1599
1613
  )
1600
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/enum'
1601
- .gsub('{databaseId}', database_id)
1602
- .gsub('{tableId}', table_id)
1603
-
1604
- if database_id.nil?
1614
+ if database_id.nil? || database_id == ''
1605
1615
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1606
1616
  end
1607
1617
 
1608
- if table_id.nil?
1618
+ if table_id.nil? || table_id == ''
1609
1619
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1610
1620
  end
1611
1621
 
@@ -1621,6 +1631,10 @@ module Appwrite
1621
1631
  raise Appwrite::Exception.new('Missing required parameter: "required"')
1622
1632
  end
1623
1633
 
1634
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/enum'
1635
+ .gsub('{databaseId}', database_id)
1636
+ .gsub('{tableId}', table_id)
1637
+
1624
1638
  api_params = {
1625
1639
  key: key,
1626
1640
  elements: elements,
@@ -1666,20 +1680,15 @@ module Appwrite
1666
1680
  default:,
1667
1681
  new_key: nil
1668
1682
  )
1669
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/enum/{key}'
1670
- .gsub('{databaseId}', database_id)
1671
- .gsub('{tableId}', table_id)
1672
- .gsub('{key}', key)
1673
-
1674
- if database_id.nil?
1683
+ if database_id.nil? || database_id == ''
1675
1684
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1676
1685
  end
1677
1686
 
1678
- if table_id.nil?
1687
+ if table_id.nil? || table_id == ''
1679
1688
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1680
1689
  end
1681
1690
 
1682
- if key.nil?
1691
+ if key.nil? || key == ''
1683
1692
  raise Appwrite::Exception.new('Missing required parameter: "key"')
1684
1693
  end
1685
1694
 
@@ -1695,6 +1704,11 @@ module Appwrite
1695
1704
  raise Appwrite::Exception.new('Missing required parameter: "default"')
1696
1705
  end
1697
1706
 
1707
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/enum/{key}'
1708
+ .gsub('{databaseId}', database_id)
1709
+ .gsub('{tableId}', table_id)
1710
+ .gsub('{key}', key)
1711
+
1698
1712
  api_params = {
1699
1713
  elements: elements,
1700
1714
  required: required,
@@ -1741,15 +1755,11 @@ module Appwrite
1741
1755
  default: nil,
1742
1756
  array: nil
1743
1757
  )
1744
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/float'
1745
- .gsub('{databaseId}', database_id)
1746
- .gsub('{tableId}', table_id)
1747
-
1748
- if database_id.nil?
1758
+ if database_id.nil? || database_id == ''
1749
1759
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1750
1760
  end
1751
1761
 
1752
- if table_id.nil?
1762
+ if table_id.nil? || table_id == ''
1753
1763
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1754
1764
  end
1755
1765
 
@@ -1761,6 +1771,10 @@ module Appwrite
1761
1771
  raise Appwrite::Exception.new('Missing required parameter: "required"')
1762
1772
  end
1763
1773
 
1774
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/float'
1775
+ .gsub('{databaseId}', database_id)
1776
+ .gsub('{tableId}', table_id)
1777
+
1764
1778
  api_params = {
1765
1779
  key: key,
1766
1780
  required: required,
@@ -1809,20 +1823,15 @@ module Appwrite
1809
1823
  max: nil,
1810
1824
  new_key: nil
1811
1825
  )
1812
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/float/{key}'
1813
- .gsub('{databaseId}', database_id)
1814
- .gsub('{tableId}', table_id)
1815
- .gsub('{key}', key)
1816
-
1817
- if database_id.nil?
1826
+ if database_id.nil? || database_id == ''
1818
1827
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1819
1828
  end
1820
1829
 
1821
- if table_id.nil?
1830
+ if table_id.nil? || table_id == ''
1822
1831
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1823
1832
  end
1824
1833
 
1825
- if key.nil?
1834
+ if key.nil? || key == ''
1826
1835
  raise Appwrite::Exception.new('Missing required parameter: "key"')
1827
1836
  end
1828
1837
 
@@ -1834,6 +1843,11 @@ module Appwrite
1834
1843
  raise Appwrite::Exception.new('Missing required parameter: "default"')
1835
1844
  end
1836
1845
 
1846
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/float/{key}'
1847
+ .gsub('{databaseId}', database_id)
1848
+ .gsub('{tableId}', table_id)
1849
+ .gsub('{key}', key)
1850
+
1837
1851
  api_params = {
1838
1852
  required: required,
1839
1853
  min: min,
@@ -1881,15 +1895,11 @@ module Appwrite
1881
1895
  default: nil,
1882
1896
  array: nil
1883
1897
  )
1884
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/integer'
1885
- .gsub('{databaseId}', database_id)
1886
- .gsub('{tableId}', table_id)
1887
-
1888
- if database_id.nil?
1898
+ if database_id.nil? || database_id == ''
1889
1899
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1890
1900
  end
1891
1901
 
1892
- if table_id.nil?
1902
+ if table_id.nil? || table_id == ''
1893
1903
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1894
1904
  end
1895
1905
 
@@ -1901,6 +1911,10 @@ module Appwrite
1901
1911
  raise Appwrite::Exception.new('Missing required parameter: "required"')
1902
1912
  end
1903
1913
 
1914
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/integer'
1915
+ .gsub('{databaseId}', database_id)
1916
+ .gsub('{tableId}', table_id)
1917
+
1904
1918
  api_params = {
1905
1919
  key: key,
1906
1920
  required: required,
@@ -1949,20 +1963,15 @@ module Appwrite
1949
1963
  max: nil,
1950
1964
  new_key: nil
1951
1965
  )
1952
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/integer/{key}'
1953
- .gsub('{databaseId}', database_id)
1954
- .gsub('{tableId}', table_id)
1955
- .gsub('{key}', key)
1956
-
1957
- if database_id.nil?
1966
+ if database_id.nil? || database_id == ''
1958
1967
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1959
1968
  end
1960
1969
 
1961
- if table_id.nil?
1970
+ if table_id.nil? || table_id == ''
1962
1971
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1963
1972
  end
1964
1973
 
1965
- if key.nil?
1974
+ if key.nil? || key == ''
1966
1975
  raise Appwrite::Exception.new('Missing required parameter: "key"')
1967
1976
  end
1968
1977
 
@@ -1974,6 +1983,11 @@ module Appwrite
1974
1983
  raise Appwrite::Exception.new('Missing required parameter: "default"')
1975
1984
  end
1976
1985
 
1986
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/integer/{key}'
1987
+ .gsub('{databaseId}', database_id)
1988
+ .gsub('{tableId}', table_id)
1989
+ .gsub('{key}', key)
1990
+
1977
1991
  api_params = {
1978
1992
  required: required,
1979
1993
  min: min,
@@ -2016,15 +2030,11 @@ module Appwrite
2016
2030
  default: nil,
2017
2031
  array: nil
2018
2032
  )
2019
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/ip'
2020
- .gsub('{databaseId}', database_id)
2021
- .gsub('{tableId}', table_id)
2022
-
2023
- if database_id.nil?
2033
+ if database_id.nil? || database_id == ''
2024
2034
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2025
2035
  end
2026
2036
 
2027
- if table_id.nil?
2037
+ if table_id.nil? || table_id == ''
2028
2038
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2029
2039
  end
2030
2040
 
@@ -2036,6 +2046,10 @@ module Appwrite
2036
2046
  raise Appwrite::Exception.new('Missing required parameter: "required"')
2037
2047
  end
2038
2048
 
2049
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/ip'
2050
+ .gsub('{databaseId}', database_id)
2051
+ .gsub('{tableId}', table_id)
2052
+
2039
2053
  api_params = {
2040
2054
  key: key,
2041
2055
  required: required,
@@ -2078,20 +2092,15 @@ module Appwrite
2078
2092
  default:,
2079
2093
  new_key: nil
2080
2094
  )
2081
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/ip/{key}'
2082
- .gsub('{databaseId}', database_id)
2083
- .gsub('{tableId}', table_id)
2084
- .gsub('{key}', key)
2085
-
2086
- if database_id.nil?
2095
+ if database_id.nil? || database_id == ''
2087
2096
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2088
2097
  end
2089
2098
 
2090
- if table_id.nil?
2099
+ if table_id.nil? || table_id == ''
2091
2100
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2092
2101
  end
2093
2102
 
2094
- if key.nil?
2103
+ if key.nil? || key == ''
2095
2104
  raise Appwrite::Exception.new('Missing required parameter: "key"')
2096
2105
  end
2097
2106
 
@@ -2103,6 +2112,11 @@ module Appwrite
2103
2112
  raise Appwrite::Exception.new('Missing required parameter: "default"')
2104
2113
  end
2105
2114
 
2115
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/ip/{key}'
2116
+ .gsub('{databaseId}', database_id)
2117
+ .gsub('{tableId}', table_id)
2118
+ .gsub('{key}', key)
2119
+
2106
2120
  api_params = {
2107
2121
  required: required,
2108
2122
  default: default,
@@ -2140,15 +2154,11 @@ module Appwrite
2140
2154
  required:,
2141
2155
  default: nil
2142
2156
  )
2143
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/line'
2144
- .gsub('{databaseId}', database_id)
2145
- .gsub('{tableId}', table_id)
2146
-
2147
- if database_id.nil?
2157
+ if database_id.nil? || database_id == ''
2148
2158
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2149
2159
  end
2150
2160
 
2151
- if table_id.nil?
2161
+ if table_id.nil? || table_id == ''
2152
2162
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2153
2163
  end
2154
2164
 
@@ -2160,6 +2170,10 @@ module Appwrite
2160
2170
  raise Appwrite::Exception.new('Missing required parameter: "required"')
2161
2171
  end
2162
2172
 
2173
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/line'
2174
+ .gsub('{databaseId}', database_id)
2175
+ .gsub('{tableId}', table_id)
2176
+
2163
2177
  api_params = {
2164
2178
  key: key,
2165
2179
  required: required,
@@ -2200,20 +2214,15 @@ module Appwrite
2200
2214
  default: nil,
2201
2215
  new_key: nil
2202
2216
  )
2203
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/line/{key}'
2204
- .gsub('{databaseId}', database_id)
2205
- .gsub('{tableId}', table_id)
2206
- .gsub('{key}', key)
2207
-
2208
- if database_id.nil?
2217
+ if database_id.nil? || database_id == ''
2209
2218
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2210
2219
  end
2211
2220
 
2212
- if table_id.nil?
2221
+ if table_id.nil? || table_id == ''
2213
2222
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2214
2223
  end
2215
2224
 
2216
- if key.nil?
2225
+ if key.nil? || key == ''
2217
2226
  raise Appwrite::Exception.new('Missing required parameter: "key"')
2218
2227
  end
2219
2228
 
@@ -2221,6 +2230,11 @@ module Appwrite
2221
2230
  raise Appwrite::Exception.new('Missing required parameter: "required"')
2222
2231
  end
2223
2232
 
2233
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/line/{key}'
2234
+ .gsub('{databaseId}', database_id)
2235
+ .gsub('{tableId}', table_id)
2236
+ .gsub('{key}', key)
2237
+
2224
2238
  api_params = {
2225
2239
  required: required,
2226
2240
  default: default,
@@ -2263,15 +2277,11 @@ module Appwrite
2263
2277
  array: nil,
2264
2278
  encrypt: nil
2265
2279
  )
2266
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/longtext'
2267
- .gsub('{databaseId}', database_id)
2268
- .gsub('{tableId}', table_id)
2269
-
2270
- if database_id.nil?
2280
+ if database_id.nil? || database_id == ''
2271
2281
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2272
2282
  end
2273
2283
 
2274
- if table_id.nil?
2284
+ if table_id.nil? || table_id == ''
2275
2285
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2276
2286
  end
2277
2287
 
@@ -2283,6 +2293,10 @@ module Appwrite
2283
2293
  raise Appwrite::Exception.new('Missing required parameter: "required"')
2284
2294
  end
2285
2295
 
2296
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/longtext'
2297
+ .gsub('{databaseId}', database_id)
2298
+ .gsub('{tableId}', table_id)
2299
+
2286
2300
  api_params = {
2287
2301
  key: key,
2288
2302
  required: required,
@@ -2326,20 +2340,15 @@ module Appwrite
2326
2340
  default:,
2327
2341
  new_key: nil
2328
2342
  )
2329
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/longtext/{key}'
2330
- .gsub('{databaseId}', database_id)
2331
- .gsub('{tableId}', table_id)
2332
- .gsub('{key}', key)
2333
-
2334
- if database_id.nil?
2343
+ if database_id.nil? || database_id == ''
2335
2344
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2336
2345
  end
2337
2346
 
2338
- if table_id.nil?
2347
+ if table_id.nil? || table_id == ''
2339
2348
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2340
2349
  end
2341
2350
 
2342
- if key.nil?
2351
+ if key.nil? || key == ''
2343
2352
  raise Appwrite::Exception.new('Missing required parameter: "key"')
2344
2353
  end
2345
2354
 
@@ -2351,6 +2360,11 @@ module Appwrite
2351
2360
  raise Appwrite::Exception.new('Missing required parameter: "default"')
2352
2361
  end
2353
2362
 
2363
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/longtext/{key}'
2364
+ .gsub('{databaseId}', database_id)
2365
+ .gsub('{tableId}', table_id)
2366
+ .gsub('{key}', key)
2367
+
2354
2368
  api_params = {
2355
2369
  required: required,
2356
2370
  default: default,
@@ -2393,15 +2407,11 @@ module Appwrite
2393
2407
  array: nil,
2394
2408
  encrypt: nil
2395
2409
  )
2396
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/mediumtext'
2397
- .gsub('{databaseId}', database_id)
2398
- .gsub('{tableId}', table_id)
2399
-
2400
- if database_id.nil?
2410
+ if database_id.nil? || database_id == ''
2401
2411
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2402
2412
  end
2403
2413
 
2404
- if table_id.nil?
2414
+ if table_id.nil? || table_id == ''
2405
2415
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2406
2416
  end
2407
2417
 
@@ -2413,6 +2423,10 @@ module Appwrite
2413
2423
  raise Appwrite::Exception.new('Missing required parameter: "required"')
2414
2424
  end
2415
2425
 
2426
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/mediumtext'
2427
+ .gsub('{databaseId}', database_id)
2428
+ .gsub('{tableId}', table_id)
2429
+
2416
2430
  api_params = {
2417
2431
  key: key,
2418
2432
  required: required,
@@ -2456,20 +2470,15 @@ module Appwrite
2456
2470
  default:,
2457
2471
  new_key: nil
2458
2472
  )
2459
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/mediumtext/{key}'
2460
- .gsub('{databaseId}', database_id)
2461
- .gsub('{tableId}', table_id)
2462
- .gsub('{key}', key)
2463
-
2464
- if database_id.nil?
2473
+ if database_id.nil? || database_id == ''
2465
2474
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2466
2475
  end
2467
2476
 
2468
- if table_id.nil?
2477
+ if table_id.nil? || table_id == ''
2469
2478
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2470
2479
  end
2471
2480
 
2472
- if key.nil?
2481
+ if key.nil? || key == ''
2473
2482
  raise Appwrite::Exception.new('Missing required parameter: "key"')
2474
2483
  end
2475
2484
 
@@ -2481,6 +2490,11 @@ module Appwrite
2481
2490
  raise Appwrite::Exception.new('Missing required parameter: "default"')
2482
2491
  end
2483
2492
 
2493
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/mediumtext/{key}'
2494
+ .gsub('{databaseId}', database_id)
2495
+ .gsub('{tableId}', table_id)
2496
+ .gsub('{key}', key)
2497
+
2484
2498
  api_params = {
2485
2499
  required: required,
2486
2500
  default: default,
@@ -2518,15 +2532,11 @@ module Appwrite
2518
2532
  required:,
2519
2533
  default: nil
2520
2534
  )
2521
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/point'
2522
- .gsub('{databaseId}', database_id)
2523
- .gsub('{tableId}', table_id)
2524
-
2525
- if database_id.nil?
2535
+ if database_id.nil? || database_id == ''
2526
2536
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2527
2537
  end
2528
2538
 
2529
- if table_id.nil?
2539
+ if table_id.nil? || table_id == ''
2530
2540
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2531
2541
  end
2532
2542
 
@@ -2538,6 +2548,10 @@ module Appwrite
2538
2548
  raise Appwrite::Exception.new('Missing required parameter: "required"')
2539
2549
  end
2540
2550
 
2551
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/point'
2552
+ .gsub('{databaseId}', database_id)
2553
+ .gsub('{tableId}', table_id)
2554
+
2541
2555
  api_params = {
2542
2556
  key: key,
2543
2557
  required: required,
@@ -2578,20 +2592,15 @@ module Appwrite
2578
2592
  default: nil,
2579
2593
  new_key: nil
2580
2594
  )
2581
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/point/{key}'
2582
- .gsub('{databaseId}', database_id)
2583
- .gsub('{tableId}', table_id)
2584
- .gsub('{key}', key)
2585
-
2586
- if database_id.nil?
2595
+ if database_id.nil? || database_id == ''
2587
2596
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2588
2597
  end
2589
2598
 
2590
- if table_id.nil?
2599
+ if table_id.nil? || table_id == ''
2591
2600
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2592
2601
  end
2593
2602
 
2594
- if key.nil?
2603
+ if key.nil? || key == ''
2595
2604
  raise Appwrite::Exception.new('Missing required parameter: "key"')
2596
2605
  end
2597
2606
 
@@ -2599,6 +2608,11 @@ module Appwrite
2599
2608
  raise Appwrite::Exception.new('Missing required parameter: "required"')
2600
2609
  end
2601
2610
 
2611
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/point/{key}'
2612
+ .gsub('{databaseId}', database_id)
2613
+ .gsub('{tableId}', table_id)
2614
+ .gsub('{key}', key)
2615
+
2602
2616
  api_params = {
2603
2617
  required: required,
2604
2618
  default: default,
@@ -2636,15 +2650,11 @@ module Appwrite
2636
2650
  required:,
2637
2651
  default: nil
2638
2652
  )
2639
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/polygon'
2640
- .gsub('{databaseId}', database_id)
2641
- .gsub('{tableId}', table_id)
2642
-
2643
- if database_id.nil?
2653
+ if database_id.nil? || database_id == ''
2644
2654
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2645
2655
  end
2646
2656
 
2647
- if table_id.nil?
2657
+ if table_id.nil? || table_id == ''
2648
2658
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2649
2659
  end
2650
2660
 
@@ -2656,6 +2666,10 @@ module Appwrite
2656
2666
  raise Appwrite::Exception.new('Missing required parameter: "required"')
2657
2667
  end
2658
2668
 
2669
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/polygon'
2670
+ .gsub('{databaseId}', database_id)
2671
+ .gsub('{tableId}', table_id)
2672
+
2659
2673
  api_params = {
2660
2674
  key: key,
2661
2675
  required: required,
@@ -2696,20 +2710,15 @@ module Appwrite
2696
2710
  default: nil,
2697
2711
  new_key: nil
2698
2712
  )
2699
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/polygon/{key}'
2700
- .gsub('{databaseId}', database_id)
2701
- .gsub('{tableId}', table_id)
2702
- .gsub('{key}', key)
2703
-
2704
- if database_id.nil?
2713
+ if database_id.nil? || database_id == ''
2705
2714
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2706
2715
  end
2707
2716
 
2708
- if table_id.nil?
2717
+ if table_id.nil? || table_id == ''
2709
2718
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2710
2719
  end
2711
2720
 
2712
- if key.nil?
2721
+ if key.nil? || key == ''
2713
2722
  raise Appwrite::Exception.new('Missing required parameter: "key"')
2714
2723
  end
2715
2724
 
@@ -2717,6 +2726,11 @@ module Appwrite
2717
2726
  raise Appwrite::Exception.new('Missing required parameter: "required"')
2718
2727
  end
2719
2728
 
2729
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/polygon/{key}'
2730
+ .gsub('{databaseId}', database_id)
2731
+ .gsub('{tableId}', table_id)
2732
+ .gsub('{key}', key)
2733
+
2720
2734
  api_params = {
2721
2735
  required: required,
2722
2736
  default: default,
@@ -2762,15 +2776,11 @@ module Appwrite
2762
2776
  two_way_key: nil,
2763
2777
  on_delete: nil
2764
2778
  )
2765
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/relationship'
2766
- .gsub('{databaseId}', database_id)
2767
- .gsub('{tableId}', table_id)
2768
-
2769
- if database_id.nil?
2779
+ if database_id.nil? || database_id == ''
2770
2780
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2771
2781
  end
2772
2782
 
2773
- if table_id.nil?
2783
+ if table_id.nil? || table_id == ''
2774
2784
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2775
2785
  end
2776
2786
 
@@ -2782,6 +2792,10 @@ module Appwrite
2782
2792
  raise Appwrite::Exception.new('Missing required parameter: "type"')
2783
2793
  end
2784
2794
 
2795
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/relationship'
2796
+ .gsub('{databaseId}', database_id)
2797
+ .gsub('{tableId}', table_id)
2798
+
2785
2799
  api_params = {
2786
2800
  relatedTableId: related_table_id,
2787
2801
  type: type,
@@ -2806,41 +2820,92 @@ module Appwrite
2806
2820
  )
2807
2821
  end
2808
2822
 
2809
- #
2810
- # @deprecated This API has been deprecated since 1.9.0. Please use `TablesDB.createTextColumn` instead.
2811
- #
2812
- # Create a string column.
2823
+ # Update relationship column. [Learn more about relationship
2824
+ # columns](https://appwrite.io/docs/databases-relationships#relationship-columns).
2813
2825
  #
2814
2826
  #
2815
2827
  # @param [String] database_id Database ID.
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).
2828
+ # @param [String] table_id Table ID.
2817
2829
  # @param [String] key Column Key.
2818
- # @param [Integer] size Column size for text columns, in number of characters.
2819
- # @param [] required Is column required?
2820
- # @param [String] default Default value for column when not provided. Cannot be set when column is required.
2821
- # @param [] array Is column an array?
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.
2830
+ # @param [RelationMutate] on_delete Delete constraint. Possible values are: cascade, restrict, setNull.
2831
+ # @param [String] new_key New Column Key.
2823
2832
  #
2824
- # @return [ColumnString]
2825
- def create_string_column(
2833
+ # @return [ColumnRelationship]
2834
+ def update_relationship_column(
2826
2835
  database_id:,
2827
2836
  table_id:,
2828
2837
  key:,
2829
- size:,
2838
+ on_delete: nil,
2839
+ new_key: nil
2840
+ )
2841
+ if database_id.nil? || database_id == ''
2842
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2843
+ end
2844
+
2845
+ if table_id.nil? || table_id == ''
2846
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2847
+ end
2848
+
2849
+ if key.nil? || key == ''
2850
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
2851
+ end
2852
+
2853
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/relationship/{key}'
2854
+ .gsub('{databaseId}', database_id)
2855
+ .gsub('{tableId}', table_id)
2856
+ .gsub('{key}', key)
2857
+
2858
+ api_params = {
2859
+ onDelete: on_delete,
2860
+ newKey: new_key,
2861
+ }
2862
+
2863
+ api_headers = {
2864
+ "X-Appwrite-Project": @client.get_config('project'),
2865
+ "content-type": 'application/json',
2866
+ "accept": 'application/json',
2867
+ }
2868
+
2869
+ @client.call(
2870
+ method: 'PATCH',
2871
+ path: api_path,
2872
+ headers: api_headers,
2873
+ params: api_params,
2874
+ response_type: Models::ColumnRelationship
2875
+ )
2876
+ end
2877
+
2878
+ #
2879
+ # @deprecated This API has been deprecated since 1.9.0. Please use `TablesDB.createTextColumn` instead.
2880
+ #
2881
+ # Create a string column.
2882
+ #
2883
+ #
2884
+ # @param [String] database_id Database ID.
2885
+ # @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).
2886
+ # @param [String] key Column Key.
2887
+ # @param [Integer] size Column size for text columns, in number of characters.
2888
+ # @param [] required Is column required?
2889
+ # @param [String] default Default value for column when not provided. Cannot be set when column is required.
2890
+ # @param [] array Is column an array?
2891
+ # @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.
2892
+ #
2893
+ # @return [ColumnString]
2894
+ def create_string_column(
2895
+ database_id:,
2896
+ table_id:,
2897
+ key:,
2898
+ size:,
2830
2899
  required:,
2831
2900
  default: nil,
2832
2901
  array: nil,
2833
2902
  encrypt: nil
2834
2903
  )
2835
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/string'
2836
- .gsub('{databaseId}', database_id)
2837
- .gsub('{tableId}', table_id)
2838
-
2839
- if database_id.nil?
2904
+ if database_id.nil? || database_id == ''
2840
2905
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2841
2906
  end
2842
2907
 
2843
- if table_id.nil?
2908
+ if table_id.nil? || table_id == ''
2844
2909
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2845
2910
  end
2846
2911
 
@@ -2856,6 +2921,10 @@ module Appwrite
2856
2921
  raise Appwrite::Exception.new('Missing required parameter: "required"')
2857
2922
  end
2858
2923
 
2924
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/string'
2925
+ .gsub('{databaseId}', database_id)
2926
+ .gsub('{tableId}', table_id)
2927
+
2859
2928
  api_params = {
2860
2929
  key: key,
2861
2930
  size: size,
@@ -2905,20 +2974,15 @@ module Appwrite
2905
2974
  size: nil,
2906
2975
  new_key: nil
2907
2976
  )
2908
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/string/{key}'
2909
- .gsub('{databaseId}', database_id)
2910
- .gsub('{tableId}', table_id)
2911
- .gsub('{key}', key)
2912
-
2913
- if database_id.nil?
2977
+ if database_id.nil? || database_id == ''
2914
2978
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2915
2979
  end
2916
2980
 
2917
- if table_id.nil?
2981
+ if table_id.nil? || table_id == ''
2918
2982
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2919
2983
  end
2920
2984
 
2921
- if key.nil?
2985
+ if key.nil? || key == ''
2922
2986
  raise Appwrite::Exception.new('Missing required parameter: "key"')
2923
2987
  end
2924
2988
 
@@ -2930,6 +2994,11 @@ module Appwrite
2930
2994
  raise Appwrite::Exception.new('Missing required parameter: "default"')
2931
2995
  end
2932
2996
 
2997
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/string/{key}'
2998
+ .gsub('{databaseId}', database_id)
2999
+ .gsub('{tableId}', table_id)
3000
+ .gsub('{key}', key)
3001
+
2933
3002
  api_params = {
2934
3003
  required: required,
2935
3004
  default: default,
@@ -2973,15 +3042,11 @@ module Appwrite
2973
3042
  array: nil,
2974
3043
  encrypt: nil
2975
3044
  )
2976
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/text'
2977
- .gsub('{databaseId}', database_id)
2978
- .gsub('{tableId}', table_id)
2979
-
2980
- if database_id.nil?
3045
+ if database_id.nil? || database_id == ''
2981
3046
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2982
3047
  end
2983
3048
 
2984
- if table_id.nil?
3049
+ if table_id.nil? || table_id == ''
2985
3050
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2986
3051
  end
2987
3052
 
@@ -2993,6 +3058,10 @@ module Appwrite
2993
3058
  raise Appwrite::Exception.new('Missing required parameter: "required"')
2994
3059
  end
2995
3060
 
3061
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/text'
3062
+ .gsub('{databaseId}', database_id)
3063
+ .gsub('{tableId}', table_id)
3064
+
2996
3065
  api_params = {
2997
3066
  key: key,
2998
3067
  required: required,
@@ -3036,20 +3105,15 @@ module Appwrite
3036
3105
  default:,
3037
3106
  new_key: nil
3038
3107
  )
3039
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/text/{key}'
3040
- .gsub('{databaseId}', database_id)
3041
- .gsub('{tableId}', table_id)
3042
- .gsub('{key}', key)
3043
-
3044
- if database_id.nil?
3108
+ if database_id.nil? || database_id == ''
3045
3109
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3046
3110
  end
3047
3111
 
3048
- if table_id.nil?
3112
+ if table_id.nil? || table_id == ''
3049
3113
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3050
3114
  end
3051
3115
 
3052
- if key.nil?
3116
+ if key.nil? || key == ''
3053
3117
  raise Appwrite::Exception.new('Missing required parameter: "key"')
3054
3118
  end
3055
3119
 
@@ -3061,6 +3125,11 @@ module Appwrite
3061
3125
  raise Appwrite::Exception.new('Missing required parameter: "default"')
3062
3126
  end
3063
3127
 
3128
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/text/{key}'
3129
+ .gsub('{databaseId}', database_id)
3130
+ .gsub('{tableId}', table_id)
3131
+ .gsub('{key}', key)
3132
+
3064
3133
  api_params = {
3065
3134
  required: required,
3066
3135
  default: default,
@@ -3101,15 +3170,11 @@ module Appwrite
3101
3170
  default: nil,
3102
3171
  array: nil
3103
3172
  )
3104
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/url'
3105
- .gsub('{databaseId}', database_id)
3106
- .gsub('{tableId}', table_id)
3107
-
3108
- if database_id.nil?
3173
+ if database_id.nil? || database_id == ''
3109
3174
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3110
3175
  end
3111
3176
 
3112
- if table_id.nil?
3177
+ if table_id.nil? || table_id == ''
3113
3178
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3114
3179
  end
3115
3180
 
@@ -3121,6 +3186,10 @@ module Appwrite
3121
3186
  raise Appwrite::Exception.new('Missing required parameter: "required"')
3122
3187
  end
3123
3188
 
3189
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/url'
3190
+ .gsub('{databaseId}', database_id)
3191
+ .gsub('{tableId}', table_id)
3192
+
3124
3193
  api_params = {
3125
3194
  key: key,
3126
3195
  required: required,
@@ -3163,20 +3232,15 @@ module Appwrite
3163
3232
  default:,
3164
3233
  new_key: nil
3165
3234
  )
3166
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/url/{key}'
3167
- .gsub('{databaseId}', database_id)
3168
- .gsub('{tableId}', table_id)
3169
- .gsub('{key}', key)
3170
-
3171
- if database_id.nil?
3235
+ if database_id.nil? || database_id == ''
3172
3236
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3173
3237
  end
3174
3238
 
3175
- if table_id.nil?
3239
+ if table_id.nil? || table_id == ''
3176
3240
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3177
3241
  end
3178
3242
 
3179
- if key.nil?
3243
+ if key.nil? || key == ''
3180
3244
  raise Appwrite::Exception.new('Missing required parameter: "key"')
3181
3245
  end
3182
3246
 
@@ -3188,6 +3252,11 @@ module Appwrite
3188
3252
  raise Appwrite::Exception.new('Missing required parameter: "default"')
3189
3253
  end
3190
3254
 
3255
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/url/{key}'
3256
+ .gsub('{databaseId}', database_id)
3257
+ .gsub('{tableId}', table_id)
3258
+ .gsub('{key}', key)
3259
+
3191
3260
  api_params = {
3192
3261
  required: required,
3193
3262
  default: default,
@@ -3232,15 +3301,11 @@ module Appwrite
3232
3301
  array: nil,
3233
3302
  encrypt: nil
3234
3303
  )
3235
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/varchar'
3236
- .gsub('{databaseId}', database_id)
3237
- .gsub('{tableId}', table_id)
3238
-
3239
- if database_id.nil?
3304
+ if database_id.nil? || database_id == ''
3240
3305
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3241
3306
  end
3242
3307
 
3243
- if table_id.nil?
3308
+ if table_id.nil? || table_id == ''
3244
3309
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3245
3310
  end
3246
3311
 
@@ -3256,6 +3321,10 @@ module Appwrite
3256
3321
  raise Appwrite::Exception.new('Missing required parameter: "required"')
3257
3322
  end
3258
3323
 
3324
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/varchar'
3325
+ .gsub('{databaseId}', database_id)
3326
+ .gsub('{tableId}', table_id)
3327
+
3259
3328
  api_params = {
3260
3329
  key: key,
3261
3330
  size: size,
@@ -3302,20 +3371,15 @@ module Appwrite
3302
3371
  size: nil,
3303
3372
  new_key: nil
3304
3373
  )
3305
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/varchar/{key}'
3306
- .gsub('{databaseId}', database_id)
3307
- .gsub('{tableId}', table_id)
3308
- .gsub('{key}', key)
3309
-
3310
- if database_id.nil?
3374
+ if database_id.nil? || database_id == ''
3311
3375
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3312
3376
  end
3313
3377
 
3314
- if table_id.nil?
3378
+ if table_id.nil? || table_id == ''
3315
3379
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3316
3380
  end
3317
3381
 
3318
- if key.nil?
3382
+ if key.nil? || key == ''
3319
3383
  raise Appwrite::Exception.new('Missing required parameter: "key"')
3320
3384
  end
3321
3385
 
@@ -3327,6 +3391,11 @@ module Appwrite
3327
3391
  raise Appwrite::Exception.new('Missing required parameter: "default"')
3328
3392
  end
3329
3393
 
3394
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/varchar/{key}'
3395
+ .gsub('{databaseId}', database_id)
3396
+ .gsub('{tableId}', table_id)
3397
+ .gsub('{key}', key)
3398
+
3330
3399
  api_params = {
3331
3400
  required: required,
3332
3401
  default: default,
@@ -3355,29 +3424,29 @@ module Appwrite
3355
3424
  # @param [String] table_id Table ID.
3356
3425
  # @param [String] key Column Key.
3357
3426
  #
3358
- # @return [ColumnBoolean, ColumnInteger, ColumnFloat, ColumnEmail, ColumnEnum, ColumnUrl, ColumnIp, ColumnDatetime, ColumnRelationship, ColumnString]
3427
+ # @return [ColumnBoolean, ColumnBigint, ColumnInteger, ColumnFloat, ColumnEmail, ColumnEnum, ColumnUrl, ColumnIp, ColumnDatetime, ColumnRelationship, ColumnPoint, ColumnLine, ColumnPolygon, ColumnVarchar, ColumnText, ColumnMediumtext, ColumnLongtext, ColumnString]
3359
3428
  def get_column(
3360
3429
  database_id:,
3361
3430
  table_id:,
3362
3431
  key:
3363
3432
  )
3364
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/{key}'
3365
- .gsub('{databaseId}', database_id)
3366
- .gsub('{tableId}', table_id)
3367
- .gsub('{key}', key)
3368
-
3369
- if database_id.nil?
3433
+ if database_id.nil? || database_id == ''
3370
3434
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3371
3435
  end
3372
3436
 
3373
- if table_id.nil?
3437
+ if table_id.nil? || table_id == ''
3374
3438
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3375
3439
  end
3376
3440
 
3377
- if key.nil?
3441
+ if key.nil? || key == ''
3378
3442
  raise Appwrite::Exception.new('Missing required parameter: "key"')
3379
3443
  end
3380
3444
 
3445
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/{key}'
3446
+ .gsub('{databaseId}', database_id)
3447
+ .gsub('{tableId}', table_id)
3448
+ .gsub('{key}', key)
3449
+
3381
3450
  api_params = {}
3382
3451
 
3383
3452
  api_headers = {
@@ -3421,6 +3490,11 @@ module Appwrite
3421
3490
  return Models::ColumnBoolean.from(map: response)
3422
3491
  end
3423
3492
 
3493
+ if response['type'] == 'bigint'
3494
+
3495
+ return Models::ColumnBigint.from(map: response)
3496
+ end
3497
+
3424
3498
  if response['type'] == 'integer'
3425
3499
 
3426
3500
  return Models::ColumnInteger.from(map: response)
@@ -3441,6 +3515,41 @@ module Appwrite
3441
3515
  return Models::ColumnRelationship.from(map: response)
3442
3516
  end
3443
3517
 
3518
+ if response['type'] == 'point'
3519
+
3520
+ return Models::ColumnPoint.from(map: response)
3521
+ end
3522
+
3523
+ if response['type'] == 'linestring'
3524
+
3525
+ return Models::ColumnLine.from(map: response)
3526
+ end
3527
+
3528
+ if response['type'] == 'polygon'
3529
+
3530
+ return Models::ColumnPolygon.from(map: response)
3531
+ end
3532
+
3533
+ if response['type'] == 'varchar'
3534
+
3535
+ return Models::ColumnVarchar.from(map: response)
3536
+ end
3537
+
3538
+ if response['type'] == 'text'
3539
+
3540
+ return Models::ColumnText.from(map: response)
3541
+ end
3542
+
3543
+ if response['type'] == 'mediumtext'
3544
+
3545
+ return Models::ColumnMediumtext.from(map: response)
3546
+ end
3547
+
3548
+ if response['type'] == 'longtext'
3549
+
3550
+ return Models::ColumnLongtext.from(map: response)
3551
+ end
3552
+
3444
3553
  if response['type'] == 'string'
3445
3554
 
3446
3555
  return Models::ColumnString.from(map: response)
@@ -3461,77 +3570,24 @@ module Appwrite
3461
3570
  table_id:,
3462
3571
  key:
3463
3572
  )
3464
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/{key}'
3465
- .gsub('{databaseId}', database_id)
3466
- .gsub('{tableId}', table_id)
3467
- .gsub('{key}', key)
3468
-
3469
- if database_id.nil?
3573
+ if database_id.nil? || database_id == ''
3470
3574
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3471
3575
  end
3472
3576
 
3473
- if table_id.nil?
3577
+ if table_id.nil? || table_id == ''
3474
3578
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3475
3579
  end
3476
3580
 
3477
- if key.nil?
3581
+ if key.nil? || key == ''
3478
3582
  raise Appwrite::Exception.new('Missing required parameter: "key"')
3479
3583
  end
3480
3584
 
3481
- api_params = {}
3482
-
3483
- api_headers = {
3484
- "X-Appwrite-Project": @client.get_config('project'),
3485
- "content-type": 'application/json',
3486
- }
3487
-
3488
- @client.call(
3489
- method: 'DELETE',
3490
- path: api_path,
3491
- headers: api_headers,
3492
- params: api_params,
3493
- )
3494
- end
3495
-
3496
- # Update relationship column. [Learn more about relationship
3497
- # columns](https://appwrite.io/docs/databases-relationships#relationship-columns).
3498
- #
3499
- #
3500
- # @param [String] database_id Database ID.
3501
- # @param [String] table_id Table ID.
3502
- # @param [String] key Column Key.
3503
- # @param [RelationMutate] on_delete Delete constraint. Possible values are: cascade, restrict, setNull.
3504
- # @param [String] new_key New Column Key.
3505
- #
3506
- # @return [ColumnRelationship]
3507
- def update_relationship_column(
3508
- database_id:,
3509
- table_id:,
3510
- key:,
3511
- on_delete: nil,
3512
- new_key: nil
3513
- )
3514
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/{key}/relationship'
3585
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/{key}'
3515
3586
  .gsub('{databaseId}', database_id)
3516
3587
  .gsub('{tableId}', table_id)
3517
3588
  .gsub('{key}', key)
3518
3589
 
3519
- if database_id.nil?
3520
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3521
- end
3522
-
3523
- if table_id.nil?
3524
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3525
- end
3526
-
3527
- if key.nil?
3528
- raise Appwrite::Exception.new('Missing required parameter: "key"')
3529
- end
3530
-
3531
- api_params = {
3532
- onDelete: on_delete,
3533
- newKey: new_key,
3534
- }
3590
+ api_params = {}
3535
3591
 
3536
3592
  api_headers = {
3537
3593
  "X-Appwrite-Project": @client.get_config('project'),
@@ -3540,11 +3596,10 @@ module Appwrite
3540
3596
  }
3541
3597
 
3542
3598
  @client.call(
3543
- method: 'PATCH',
3599
+ method: 'DELETE',
3544
3600
  path: api_path,
3545
3601
  headers: api_headers,
3546
3602
  params: api_params,
3547
- response_type: Models::ColumnRelationship
3548
3603
  )
3549
3604
  end
3550
3605
 
@@ -3562,18 +3617,18 @@ module Appwrite
3562
3617
  queries: nil,
3563
3618
  total: nil
3564
3619
  )
3565
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/indexes'
3566
- .gsub('{databaseId}', database_id)
3567
- .gsub('{tableId}', table_id)
3568
-
3569
- if database_id.nil?
3620
+ if database_id.nil? || database_id == ''
3570
3621
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3571
3622
  end
3572
3623
 
3573
- if table_id.nil?
3624
+ if table_id.nil? || table_id == ''
3574
3625
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3575
3626
  end
3576
3627
 
3628
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/indexes'
3629
+ .gsub('{databaseId}', database_id)
3630
+ .gsub('{tableId}', table_id)
3631
+
3577
3632
  api_params = {
3578
3633
  queries: queries,
3579
3634
  total: total,
@@ -3595,7 +3650,9 @@ module Appwrite
3595
3650
 
3596
3651
  # Creates an index on the columns listed. Your index should include all the
3597
3652
  # columns you will query in a single request.
3598
- # Type can be `key`, `fulltext`, or `unique`.
3653
+ # Type can be `key`, `fulltext`, `unique`, `spatial`, or `trigram`. `trigram`
3654
+ # is only available on PostgreSQL and lets `contains`, `startsWith`, and
3655
+ # `endsWith` queries on string columns use an index.
3599
3656
  #
3600
3657
  # @param [String] database_id Database ID.
3601
3658
  # @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).
@@ -3615,15 +3672,11 @@ module Appwrite
3615
3672
  orders: nil,
3616
3673
  lengths: nil
3617
3674
  )
3618
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/indexes'
3619
- .gsub('{databaseId}', database_id)
3620
- .gsub('{tableId}', table_id)
3621
-
3622
- if database_id.nil?
3675
+ if database_id.nil? || database_id == ''
3623
3676
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3624
3677
  end
3625
3678
 
3626
- if table_id.nil?
3679
+ if table_id.nil? || table_id == ''
3627
3680
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3628
3681
  end
3629
3682
 
@@ -3639,6 +3692,10 @@ module Appwrite
3639
3692
  raise Appwrite::Exception.new('Missing required parameter: "columns"')
3640
3693
  end
3641
3694
 
3695
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/indexes'
3696
+ .gsub('{databaseId}', database_id)
3697
+ .gsub('{tableId}', table_id)
3698
+
3642
3699
  api_params = {
3643
3700
  key: key,
3644
3701
  type: type,
@@ -3674,23 +3731,23 @@ module Appwrite
3674
3731
  table_id:,
3675
3732
  key:
3676
3733
  )
3677
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/indexes/{key}'
3678
- .gsub('{databaseId}', database_id)
3679
- .gsub('{tableId}', table_id)
3680
- .gsub('{key}', key)
3681
-
3682
- if database_id.nil?
3734
+ if database_id.nil? || database_id == ''
3683
3735
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3684
3736
  end
3685
3737
 
3686
- if table_id.nil?
3738
+ if table_id.nil? || table_id == ''
3687
3739
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3688
3740
  end
3689
3741
 
3690
- if key.nil?
3742
+ if key.nil? || key == ''
3691
3743
  raise Appwrite::Exception.new('Missing required parameter: "key"')
3692
3744
  end
3693
3745
 
3746
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/indexes/{key}'
3747
+ .gsub('{databaseId}', database_id)
3748
+ .gsub('{tableId}', table_id)
3749
+ .gsub('{key}', key)
3750
+
3694
3751
  api_params = {}
3695
3752
 
3696
3753
  api_headers = {
@@ -3719,28 +3776,29 @@ module Appwrite
3719
3776
  table_id:,
3720
3777
  key:
3721
3778
  )
3722
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/indexes/{key}'
3723
- .gsub('{databaseId}', database_id)
3724
- .gsub('{tableId}', table_id)
3725
- .gsub('{key}', key)
3726
-
3727
- if database_id.nil?
3779
+ if database_id.nil? || database_id == ''
3728
3780
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3729
3781
  end
3730
3782
 
3731
- if table_id.nil?
3783
+ if table_id.nil? || table_id == ''
3732
3784
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3733
3785
  end
3734
3786
 
3735
- if key.nil?
3787
+ if key.nil? || key == ''
3736
3788
  raise Appwrite::Exception.new('Missing required parameter: "key"')
3737
3789
  end
3738
3790
 
3791
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/indexes/{key}'
3792
+ .gsub('{databaseId}', database_id)
3793
+ .gsub('{tableId}', table_id)
3794
+ .gsub('{key}', key)
3795
+
3739
3796
  api_params = {}
3740
3797
 
3741
3798
  api_headers = {
3742
3799
  "X-Appwrite-Project": @client.get_config('project'),
3743
3800
  "content-type": 'application/json',
3801
+ "accept": 'application/json',
3744
3802
  }
3745
3803
 
3746
3804
  @client.call(
@@ -3770,18 +3828,18 @@ module Appwrite
3770
3828
  total: nil,
3771
3829
  ttl: nil
3772
3830
  )
3773
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows'
3774
- .gsub('{databaseId}', database_id)
3775
- .gsub('{tableId}', table_id)
3776
-
3777
- if database_id.nil?
3831
+ if database_id.nil? || database_id == ''
3778
3832
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3779
3833
  end
3780
3834
 
3781
- if table_id.nil?
3835
+ if table_id.nil? || table_id == ''
3782
3836
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3783
3837
  end
3784
3838
 
3839
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows'
3840
+ .gsub('{databaseId}', database_id)
3841
+ .gsub('{tableId}', table_id)
3842
+
3785
3843
  api_params = {
3786
3844
  queries: queries,
3787
3845
  transactionId: transaction_id,
@@ -3824,15 +3882,11 @@ module Appwrite
3824
3882
  permissions: nil,
3825
3883
  transaction_id: nil
3826
3884
  )
3827
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows'
3828
- .gsub('{databaseId}', database_id)
3829
- .gsub('{tableId}', table_id)
3830
-
3831
- if database_id.nil?
3885
+ if database_id.nil? || database_id == ''
3832
3886
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3833
3887
  end
3834
3888
 
3835
- if table_id.nil?
3889
+ if table_id.nil? || table_id == ''
3836
3890
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3837
3891
  end
3838
3892
 
@@ -3844,6 +3898,10 @@ module Appwrite
3844
3898
  raise Appwrite::Exception.new('Missing required parameter: "data"')
3845
3899
  end
3846
3900
 
3901
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows'
3902
+ .gsub('{databaseId}', database_id)
3903
+ .gsub('{tableId}', table_id)
3904
+
3847
3905
  api_params = {
3848
3906
  rowId: row_id,
3849
3907
  data: data,
@@ -3883,15 +3941,11 @@ module Appwrite
3883
3941
  rows:,
3884
3942
  transaction_id: nil
3885
3943
  )
3886
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows'
3887
- .gsub('{databaseId}', database_id)
3888
- .gsub('{tableId}', table_id)
3889
-
3890
- if database_id.nil?
3944
+ if database_id.nil? || database_id == ''
3891
3945
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3892
3946
  end
3893
3947
 
3894
- if table_id.nil?
3948
+ if table_id.nil? || table_id == ''
3895
3949
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3896
3950
  end
3897
3951
 
@@ -3899,6 +3953,10 @@ module Appwrite
3899
3953
  raise Appwrite::Exception.new('Missing required parameter: "rows"')
3900
3954
  end
3901
3955
 
3956
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows'
3957
+ .gsub('{databaseId}', database_id)
3958
+ .gsub('{tableId}', table_id)
3959
+
3902
3960
  api_params = {
3903
3961
  rows: rows,
3904
3962
  transactionId: transaction_id,
@@ -3937,15 +3995,11 @@ module Appwrite
3937
3995
  rows:,
3938
3996
  transaction_id: nil
3939
3997
  )
3940
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows'
3941
- .gsub('{databaseId}', database_id)
3942
- .gsub('{tableId}', table_id)
3943
-
3944
- if database_id.nil?
3998
+ if database_id.nil? || database_id == ''
3945
3999
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3946
4000
  end
3947
4001
 
3948
- if table_id.nil?
4002
+ if table_id.nil? || table_id == ''
3949
4003
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3950
4004
  end
3951
4005
 
@@ -3953,6 +4007,10 @@ module Appwrite
3953
4007
  raise Appwrite::Exception.new('Missing required parameter: "rows"')
3954
4008
  end
3955
4009
 
4010
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows'
4011
+ .gsub('{databaseId}', database_id)
4012
+ .gsub('{tableId}', table_id)
4013
+
3956
4014
  api_params = {
3957
4015
  rows: rows,
3958
4016
  transactionId: transaction_id,
@@ -3990,18 +4048,18 @@ module Appwrite
3990
4048
  queries: nil,
3991
4049
  transaction_id: nil
3992
4050
  )
3993
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows'
3994
- .gsub('{databaseId}', database_id)
3995
- .gsub('{tableId}', table_id)
3996
-
3997
- if database_id.nil?
4051
+ if database_id.nil? || database_id == ''
3998
4052
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3999
4053
  end
4000
4054
 
4001
- if table_id.nil?
4055
+ if table_id.nil? || table_id == ''
4002
4056
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
4003
4057
  end
4004
4058
 
4059
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows'
4060
+ .gsub('{databaseId}', database_id)
4061
+ .gsub('{tableId}', table_id)
4062
+
4005
4063
  api_params = {
4006
4064
  data: data,
4007
4065
  queries: queries,
@@ -4038,18 +4096,18 @@ module Appwrite
4038
4096
  queries: nil,
4039
4097
  transaction_id: nil
4040
4098
  )
4041
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows'
4042
- .gsub('{databaseId}', database_id)
4043
- .gsub('{tableId}', table_id)
4044
-
4045
- if database_id.nil?
4099
+ if database_id.nil? || database_id == ''
4046
4100
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
4047
4101
  end
4048
4102
 
4049
- if table_id.nil?
4103
+ if table_id.nil? || table_id == ''
4050
4104
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
4051
4105
  end
4052
4106
 
4107
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows'
4108
+ .gsub('{databaseId}', database_id)
4109
+ .gsub('{tableId}', table_id)
4110
+
4053
4111
  api_params = {
4054
4112
  queries: queries,
4055
4113
  transactionId: transaction_id,
@@ -4087,23 +4145,23 @@ module Appwrite
4087
4145
  queries: nil,
4088
4146
  transaction_id: nil
4089
4147
  )
4090
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}'
4091
- .gsub('{databaseId}', database_id)
4092
- .gsub('{tableId}', table_id)
4093
- .gsub('{rowId}', row_id)
4094
-
4095
- if database_id.nil?
4148
+ if database_id.nil? || database_id == ''
4096
4149
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
4097
4150
  end
4098
4151
 
4099
- if table_id.nil?
4152
+ if table_id.nil? || table_id == ''
4100
4153
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
4101
4154
  end
4102
4155
 
4103
- if row_id.nil?
4156
+ if row_id.nil? || row_id == ''
4104
4157
  raise Appwrite::Exception.new('Missing required parameter: "rowId"')
4105
4158
  end
4106
4159
 
4160
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}'
4161
+ .gsub('{databaseId}', database_id)
4162
+ .gsub('{tableId}', table_id)
4163
+ .gsub('{rowId}', row_id)
4164
+
4107
4165
  api_params = {
4108
4166
  queries: queries,
4109
4167
  transactionId: transaction_id,
@@ -4144,23 +4202,23 @@ module Appwrite
4144
4202
  permissions: nil,
4145
4203
  transaction_id: nil
4146
4204
  )
4147
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}'
4148
- .gsub('{databaseId}', database_id)
4149
- .gsub('{tableId}', table_id)
4150
- .gsub('{rowId}', row_id)
4151
-
4152
- if database_id.nil?
4205
+ if database_id.nil? || database_id == ''
4153
4206
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
4154
4207
  end
4155
4208
 
4156
- if table_id.nil?
4209
+ if table_id.nil? || table_id == ''
4157
4210
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
4158
4211
  end
4159
4212
 
4160
- if row_id.nil?
4213
+ if row_id.nil? || row_id == ''
4161
4214
  raise Appwrite::Exception.new('Missing required parameter: "rowId"')
4162
4215
  end
4163
4216
 
4217
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}'
4218
+ .gsub('{databaseId}', database_id)
4219
+ .gsub('{tableId}', table_id)
4220
+ .gsub('{rowId}', row_id)
4221
+
4164
4222
  api_params = {
4165
4223
  data: data,
4166
4224
  permissions: permissions,
@@ -4201,23 +4259,23 @@ module Appwrite
4201
4259
  permissions: nil,
4202
4260
  transaction_id: nil
4203
4261
  )
4204
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}'
4205
- .gsub('{databaseId}', database_id)
4206
- .gsub('{tableId}', table_id)
4207
- .gsub('{rowId}', row_id)
4208
-
4209
- if database_id.nil?
4262
+ if database_id.nil? || database_id == ''
4210
4263
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
4211
4264
  end
4212
4265
 
4213
- if table_id.nil?
4266
+ if table_id.nil? || table_id == ''
4214
4267
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
4215
4268
  end
4216
4269
 
4217
- if row_id.nil?
4270
+ if row_id.nil? || row_id == ''
4218
4271
  raise Appwrite::Exception.new('Missing required parameter: "rowId"')
4219
4272
  end
4220
4273
 
4274
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}'
4275
+ .gsub('{databaseId}', database_id)
4276
+ .gsub('{tableId}', table_id)
4277
+ .gsub('{rowId}', row_id)
4278
+
4221
4279
  api_params = {
4222
4280
  data: data,
4223
4281
  permissions: permissions,
@@ -4253,23 +4311,23 @@ module Appwrite
4253
4311
  row_id:,
4254
4312
  transaction_id: nil
4255
4313
  )
4256
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}'
4257
- .gsub('{databaseId}', database_id)
4258
- .gsub('{tableId}', table_id)
4259
- .gsub('{rowId}', row_id)
4260
-
4261
- if database_id.nil?
4314
+ if database_id.nil? || database_id == ''
4262
4315
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
4263
4316
  end
4264
4317
 
4265
- if table_id.nil?
4318
+ if table_id.nil? || table_id == ''
4266
4319
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
4267
4320
  end
4268
4321
 
4269
- if row_id.nil?
4322
+ if row_id.nil? || row_id == ''
4270
4323
  raise Appwrite::Exception.new('Missing required parameter: "rowId"')
4271
4324
  end
4272
4325
 
4326
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}'
4327
+ .gsub('{databaseId}', database_id)
4328
+ .gsub('{tableId}', table_id)
4329
+ .gsub('{rowId}', row_id)
4330
+
4273
4331
  api_params = {
4274
4332
  transactionId: transaction_id,
4275
4333
  }
@@ -4277,6 +4335,7 @@ module Appwrite
4277
4335
  api_headers = {
4278
4336
  "X-Appwrite-Project": @client.get_config('project'),
4279
4337
  "content-type": 'application/json',
4338
+ "accept": 'application/json',
4280
4339
  }
4281
4340
 
4282
4341
  @client.call(
@@ -4307,28 +4366,28 @@ module Appwrite
4307
4366
  min: nil,
4308
4367
  transaction_id: nil
4309
4368
  )
4310
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}/{column}/decrement'
4311
- .gsub('{databaseId}', database_id)
4312
- .gsub('{tableId}', table_id)
4313
- .gsub('{rowId}', row_id)
4314
- .gsub('{column}', column)
4315
-
4316
- if database_id.nil?
4369
+ if database_id.nil? || database_id == ''
4317
4370
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
4318
4371
  end
4319
4372
 
4320
- if table_id.nil?
4373
+ if table_id.nil? || table_id == ''
4321
4374
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
4322
4375
  end
4323
4376
 
4324
- if row_id.nil?
4377
+ if row_id.nil? || row_id == ''
4325
4378
  raise Appwrite::Exception.new('Missing required parameter: "rowId"')
4326
4379
  end
4327
4380
 
4328
- if column.nil?
4381
+ if column.nil? || column == ''
4329
4382
  raise Appwrite::Exception.new('Missing required parameter: "column"')
4330
4383
  end
4331
4384
 
4385
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}/{column}/decrement'
4386
+ .gsub('{databaseId}', database_id)
4387
+ .gsub('{tableId}', table_id)
4388
+ .gsub('{rowId}', row_id)
4389
+ .gsub('{column}', column)
4390
+
4332
4391
  api_params = {
4333
4392
  value: value,
4334
4393
  min: min,
@@ -4370,28 +4429,28 @@ module Appwrite
4370
4429
  max: nil,
4371
4430
  transaction_id: nil
4372
4431
  )
4373
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}/{column}/increment'
4374
- .gsub('{databaseId}', database_id)
4375
- .gsub('{tableId}', table_id)
4376
- .gsub('{rowId}', row_id)
4377
- .gsub('{column}', column)
4378
-
4379
- if database_id.nil?
4432
+ if database_id.nil? || database_id == ''
4380
4433
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
4381
4434
  end
4382
4435
 
4383
- if table_id.nil?
4436
+ if table_id.nil? || table_id == ''
4384
4437
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
4385
4438
  end
4386
4439
 
4387
- if row_id.nil?
4440
+ if row_id.nil? || row_id == ''
4388
4441
  raise Appwrite::Exception.new('Missing required parameter: "rowId"')
4389
4442
  end
4390
4443
 
4391
- if column.nil?
4444
+ if column.nil? || column == ''
4392
4445
  raise Appwrite::Exception.new('Missing required parameter: "column"')
4393
4446
  end
4394
4447
 
4448
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}/{column}/increment'
4449
+ .gsub('{databaseId}', database_id)
4450
+ .gsub('{tableId}', table_id)
4451
+ .gsub('{rowId}', row_id)
4452
+ .gsub('{column}', column)
4453
+
4395
4454
  api_params = {
4396
4455
  value: value,
4397
4456
  max: max,