appwrite 28.4.0 → 30.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 (349) hide show
  1. checksums.yaml +4 -4
  2. data/lib/appwrite/client.rb +19 -19
  3. data/lib/appwrite/enums/billing_plan_group.rb +0 -1
  4. data/lib/appwrite/enums/execution_trigger.rb +1 -0
  5. data/lib/appwrite/enums/proxy_rule_protocol.rb +8 -0
  6. data/lib/appwrite/models/account.rb +8 -8
  7. data/lib/appwrite/models/activity_event.rb +1 -0
  8. data/lib/appwrite/models/activity_event_list.rb +1 -0
  9. data/lib/appwrite/models/additional_resource.rb +1 -0
  10. data/lib/appwrite/models/algo_argon2.rb +1 -0
  11. data/lib/appwrite/models/algo_bcrypt.rb +1 -0
  12. data/lib/appwrite/models/algo_md5.rb +1 -0
  13. data/lib/appwrite/models/algo_phpass.rb +1 -0
  14. data/lib/appwrite/models/algo_scrypt.rb +1 -0
  15. data/lib/appwrite/models/algo_scrypt_modified.rb +1 -0
  16. data/lib/appwrite/models/algo_sha.rb +1 -0
  17. data/lib/appwrite/models/app.rb +1 -0
  18. data/lib/appwrite/models/app_installation.rb +2 -1
  19. data/lib/appwrite/models/app_installation_list.rb +1 -0
  20. data/lib/appwrite/models/app_key.rb +2 -1
  21. data/lib/appwrite/models/app_key_list.rb +1 -0
  22. data/lib/appwrite/models/app_scope.rb +1 -0
  23. data/lib/appwrite/models/app_scope_list.rb +1 -0
  24. data/lib/appwrite/models/app_secret.rb +2 -1
  25. data/lib/appwrite/models/app_secret_list.rb +1 -0
  26. data/lib/appwrite/models/app_secret_plaintext.rb +2 -1
  27. data/lib/appwrite/models/apps_list.rb +1 -0
  28. data/lib/appwrite/models/attribute_bigint.rb +10 -4
  29. data/lib/appwrite/models/attribute_boolean.rb +8 -2
  30. data/lib/appwrite/models/attribute_datetime.rb +8 -2
  31. data/lib/appwrite/models/attribute_email.rb +8 -2
  32. data/lib/appwrite/models/attribute_enum.rb +8 -2
  33. data/lib/appwrite/models/attribute_float.rb +10 -4
  34. data/lib/appwrite/models/attribute_integer.rb +10 -4
  35. data/lib/appwrite/models/attribute_ip.rb +8 -2
  36. data/lib/appwrite/models/attribute_line.rb +8 -2
  37. data/lib/appwrite/models/attribute_list.rb +1 -0
  38. data/lib/appwrite/models/attribute_longtext.rb +9 -3
  39. data/lib/appwrite/models/attribute_mediumtext.rb +9 -3
  40. data/lib/appwrite/models/attribute_object.rb +7 -1
  41. data/lib/appwrite/models/attribute_point.rb +8 -2
  42. data/lib/appwrite/models/attribute_polygon.rb +8 -2
  43. data/lib/appwrite/models/attribute_relationship.rb +7 -1
  44. data/lib/appwrite/models/attribute_string.rb +9 -3
  45. data/lib/appwrite/models/attribute_text.rb +9 -3
  46. data/lib/appwrite/models/attribute_url.rb +8 -2
  47. data/lib/appwrite/models/attribute_varchar.rb +9 -3
  48. data/lib/appwrite/models/attribute_vector.rb +7 -1
  49. data/lib/appwrite/models/backup_archive.rb +5 -4
  50. data/lib/appwrite/models/backup_archive_list.rb +1 -0
  51. data/lib/appwrite/models/backup_policy.rb +3 -2
  52. data/lib/appwrite/models/backup_policy_list.rb +1 -0
  53. data/lib/appwrite/models/backup_restoration.rb +2 -1
  54. data/lib/appwrite/models/backup_restoration_list.rb +1 -0
  55. data/lib/appwrite/models/billing_limits.rb +8 -8
  56. data/lib/appwrite/models/billing_plan.rb +19 -14
  57. data/lib/appwrite/models/billing_plan_addon.rb +2 -2
  58. data/lib/appwrite/models/billing_plan_addon_details.rb +2 -1
  59. data/lib/appwrite/models/billing_plan_dedicated_database_limits.rb +19 -19
  60. data/lib/appwrite/models/billing_plan_limits.rb +2 -2
  61. data/lib/appwrite/models/billing_plan_supported_addons.rb +1 -0
  62. data/lib/appwrite/models/block.rb +4 -33
  63. data/lib/appwrite/models/bucket.rb +11 -0
  64. data/lib/appwrite/models/bucket_list.rb +1 -0
  65. data/lib/appwrite/models/collection.rb +6 -0
  66. data/lib/appwrite/models/collection_list.rb +1 -0
  67. data/lib/appwrite/models/column_bigint.rb +10 -4
  68. data/lib/appwrite/models/column_boolean.rb +8 -2
  69. data/lib/appwrite/models/column_datetime.rb +8 -2
  70. data/lib/appwrite/models/column_email.rb +8 -2
  71. data/lib/appwrite/models/column_enum.rb +8 -2
  72. data/lib/appwrite/models/column_float.rb +10 -4
  73. data/lib/appwrite/models/column_index.rb +7 -1
  74. data/lib/appwrite/models/column_index_list.rb +1 -0
  75. data/lib/appwrite/models/column_integer.rb +10 -4
  76. data/lib/appwrite/models/column_ip.rb +8 -2
  77. data/lib/appwrite/models/column_line.rb +8 -2
  78. data/lib/appwrite/models/column_list.rb +1 -0
  79. data/lib/appwrite/models/column_longtext.rb +9 -3
  80. data/lib/appwrite/models/column_mediumtext.rb +9 -3
  81. data/lib/appwrite/models/column_point.rb +8 -2
  82. data/lib/appwrite/models/column_polygon.rb +8 -2
  83. data/lib/appwrite/models/column_relationship.rb +7 -1
  84. data/lib/appwrite/models/column_string.rb +9 -3
  85. data/lib/appwrite/models/column_text.rb +9 -3
  86. data/lib/appwrite/models/column_url.rb +8 -2
  87. data/lib/appwrite/models/column_varchar.rb +9 -3
  88. data/lib/appwrite/models/continent.rb +1 -0
  89. data/lib/appwrite/models/continent_list.rb +1 -0
  90. data/lib/appwrite/models/country.rb +1 -0
  91. data/lib/appwrite/models/country_list.rb +1 -0
  92. data/lib/appwrite/models/currency.rb +1 -0
  93. data/lib/appwrite/models/currency_list.rb +1 -0
  94. data/lib/appwrite/models/database.rb +15 -9
  95. data/lib/appwrite/models/database_list.rb +1 -0
  96. data/lib/appwrite/models/database_migration.rb +1 -0
  97. data/lib/appwrite/models/database_migration_list.rb +1 -0
  98. data/lib/appwrite/models/database_status.rb +6 -5
  99. data/lib/appwrite/models/database_status_connections.rb +1 -0
  100. data/lib/appwrite/models/database_status_replica.rb +3 -2
  101. data/lib/appwrite/models/database_status_volume.rb +1 -0
  102. data/lib/appwrite/models/dedicated_database.rb +8 -7
  103. data/lib/appwrite/models/dedicated_database_backup.rb +6 -5
  104. data/lib/appwrite/models/dedicated_database_backup_list.rb +1 -0
  105. data/lib/appwrite/models/dedicated_database_backup_storage.rb +1 -0
  106. data/lib/appwrite/models/dedicated_database_branch.rb +2 -1
  107. data/lib/appwrite/models/dedicated_database_branch_list.rb +1 -0
  108. data/lib/appwrite/models/dedicated_database_execution.rb +1 -0
  109. data/lib/appwrite/models/dedicated_database_execution_column.rb +1 -0
  110. data/lib/appwrite/models/dedicated_database_extensions.rb +1 -0
  111. data/lib/appwrite/models/dedicated_database_list.rb +1 -0
  112. data/lib/appwrite/models/dedicated_database_member.rb +3 -2
  113. data/lib/appwrite/models/dedicated_database_operation.rb +4 -3
  114. data/lib/appwrite/models/dedicated_database_operation_list.rb +1 -0
  115. data/lib/appwrite/models/dedicated_database_pitr_windows.rb +1 -0
  116. data/lib/appwrite/models/dedicated_database_pooler.rb +1 -0
  117. data/lib/appwrite/models/dedicated_database_replicas.rb +3 -2
  118. data/lib/appwrite/models/dedicated_database_restoration.rb +11 -5
  119. data/lib/appwrite/models/dedicated_database_restoration_list.rb +1 -0
  120. data/lib/appwrite/models/dedicated_database_specification.rb +1 -0
  121. data/lib/appwrite/models/dedicated_database_specification_list.rb +4 -8
  122. data/lib/appwrite/models/deployment.rb +1 -0
  123. data/lib/appwrite/models/deployment_list.rb +1 -0
  124. data/lib/appwrite/models/document.rb +1 -0
  125. data/lib/appwrite/models/document_list.rb +1 -0
  126. data/lib/appwrite/models/domain.rb +1 -1
  127. data/lib/appwrite/models/domain_price.rb +2 -2
  128. data/lib/appwrite/models/email_template.rb +1 -0
  129. data/lib/appwrite/models/email_template_list.rb +1 -0
  130. data/lib/appwrite/models/embedding.rb +1 -0
  131. data/lib/appwrite/models/embedding_list.rb +1 -0
  132. data/lib/appwrite/models/ephemeral_key.rb +6 -0
  133. data/lib/appwrite/models/execution.rb +3 -1
  134. data/lib/appwrite/models/execution_list.rb +1 -0
  135. data/lib/appwrite/models/file.rb +1 -0
  136. data/lib/appwrite/models/file_list.rb +1 -0
  137. data/lib/appwrite/models/framework.rb +1 -0
  138. data/lib/appwrite/models/framework_adapter.rb +2 -1
  139. data/lib/appwrite/models/framework_list.rb +1 -0
  140. data/lib/appwrite/models/function.rb +15 -4
  141. data/lib/appwrite/models/function_list.rb +1 -0
  142. data/lib/appwrite/models/headers.rb +1 -0
  143. data/lib/appwrite/models/identity.rb +1 -0
  144. data/lib/appwrite/models/identity_list.rb +1 -0
  145. data/lib/appwrite/models/index.rb +7 -1
  146. data/lib/appwrite/models/index_list.rb +1 -0
  147. data/lib/appwrite/models/insight.rb +4 -3
  148. data/lib/appwrite/models/insight_cta.rb +1 -0
  149. data/lib/appwrite/models/insight_list.rb +1 -0
  150. data/lib/appwrite/models/jwt.rb +1 -0
  151. data/lib/appwrite/models/key.rb +6 -0
  152. data/lib/appwrite/models/key_list.rb +1 -0
  153. data/lib/appwrite/models/language.rb +1 -0
  154. data/lib/appwrite/models/language_list.rb +1 -0
  155. data/lib/appwrite/models/locale.rb +12 -11
  156. data/lib/appwrite/models/locale_code.rb +1 -0
  157. data/lib/appwrite/models/locale_code_list.rb +1 -0
  158. data/lib/appwrite/models/membership.rb +1 -0
  159. data/lib/appwrite/models/membership_list.rb +1 -0
  160. data/lib/appwrite/models/message.rb +4 -3
  161. data/lib/appwrite/models/message_list.rb +1 -0
  162. data/lib/appwrite/models/mfa_challenge.rb +1 -0
  163. data/lib/appwrite/models/mfa_challenge_secret.rb +1 -0
  164. data/lib/appwrite/models/mfa_factors.rb +1 -0
  165. data/lib/appwrite/models/mfa_recovery_codes.rb +1 -0
  166. data/lib/appwrite/models/mfa_type.rb +1 -0
  167. data/lib/appwrite/models/mock_number.rb +1 -0
  168. data/lib/appwrite/models/mock_number_list.rb +1 -0
  169. data/lib/appwrite/models/o_auth2_amazon.rb +1 -0
  170. data/lib/appwrite/models/o_auth2_apple.rb +1 -0
  171. data/lib/appwrite/models/o_auth2_appwrite.rb +1 -0
  172. data/lib/appwrite/models/o_auth2_auth0.rb +2 -1
  173. data/lib/appwrite/models/o_auth2_authentik.rb +1 -0
  174. data/lib/appwrite/models/o_auth2_autodesk.rb +1 -0
  175. data/lib/appwrite/models/o_auth2_bitbucket.rb +1 -0
  176. data/lib/appwrite/models/o_auth2_bitly.rb +1 -0
  177. data/lib/appwrite/models/o_auth2_box.rb +1 -0
  178. data/lib/appwrite/models/o_auth2_cloudflare.rb +1 -0
  179. data/lib/appwrite/models/o_auth2_dailymotion.rb +1 -0
  180. data/lib/appwrite/models/o_auth2_discord.rb +2 -1
  181. data/lib/appwrite/models/o_auth2_disqus.rb +1 -0
  182. data/lib/appwrite/models/o_auth2_dropbox.rb +1 -0
  183. data/lib/appwrite/models/o_auth2_etsy.rb +1 -0
  184. data/lib/appwrite/models/o_auth2_facebook.rb +1 -0
  185. data/lib/appwrite/models/o_auth2_figma.rb +1 -0
  186. data/lib/appwrite/models/o_auth2_fusion_auth.rb +1 -0
  187. data/lib/appwrite/models/o_auth2_github.rb +2 -1
  188. data/lib/appwrite/models/o_auth2_gitlab.rb +1 -0
  189. data/lib/appwrite/models/o_auth2_google.rb +1 -0
  190. data/lib/appwrite/models/o_auth2_hugging_face.rb +1 -0
  191. data/lib/appwrite/models/o_auth2_keycloak.rb +1 -0
  192. data/lib/appwrite/models/o_auth2_kick.rb +1 -0
  193. data/lib/appwrite/models/o_auth2_linkedin.rb +1 -0
  194. data/lib/appwrite/models/o_auth2_microsoft.rb +2 -1
  195. data/lib/appwrite/models/o_auth2_notion.rb +1 -0
  196. data/lib/appwrite/models/o_auth2_oidc.rb +7 -6
  197. data/lib/appwrite/models/o_auth2_okta.rb +2 -1
  198. data/lib/appwrite/models/o_auth2_paypal.rb +1 -0
  199. data/lib/appwrite/models/o_auth2_podio.rb +1 -0
  200. data/lib/appwrite/models/o_auth2_provider_list.rb +1 -0
  201. data/lib/appwrite/models/o_auth2_resend.rb +1 -0
  202. data/lib/appwrite/models/o_auth2_salesforce.rb +2 -1
  203. data/lib/appwrite/models/o_auth2_slack.rb +1 -0
  204. data/lib/appwrite/models/o_auth2_spotify.rb +1 -0
  205. data/lib/appwrite/models/o_auth2_stripe.rb +1 -0
  206. data/lib/appwrite/models/o_auth2_tradeshift.rb +1 -0
  207. data/lib/appwrite/models/o_auth2_twitch.rb +1 -0
  208. data/lib/appwrite/models/o_auth2_word_press.rb +1 -0
  209. data/lib/appwrite/models/o_auth2_x.rb +1 -0
  210. data/lib/appwrite/models/o_auth2_yahoo.rb +1 -0
  211. data/lib/appwrite/models/o_auth2_yandex.rb +1 -0
  212. data/lib/appwrite/models/o_auth2_zoho.rb +2 -1
  213. data/lib/appwrite/models/o_auth2_zoom.rb +1 -0
  214. data/lib/appwrite/models/oauth2_approve.rb +1 -0
  215. data/lib/appwrite/models/oauth2_authorize.rb +1 -0
  216. data/lib/appwrite/models/oauth2_consent.rb +1 -0
  217. data/lib/appwrite/models/oauth2_consent_list.rb +1 -0
  218. data/lib/appwrite/models/oauth2_consent_token.rb +1 -0
  219. data/lib/appwrite/models/oauth2_consent_token_list.rb +1 -0
  220. data/lib/appwrite/models/oauth2_device_authorization.rb +1 -0
  221. data/lib/appwrite/models/oauth2_grant.rb +1 -0
  222. data/lib/appwrite/models/oauth2_introspection.rb +11 -11
  223. data/lib/appwrite/models/oauth2_organization.rb +1 -0
  224. data/lib/appwrite/models/oauth2_organization_list.rb +1 -0
  225. data/lib/appwrite/models/oauth2_par.rb +1 -0
  226. data/lib/appwrite/models/oauth2_project.rb +1 -0
  227. data/lib/appwrite/models/oauth2_project_list.rb +1 -0
  228. data/lib/appwrite/models/oauth2_reject.rb +1 -0
  229. data/lib/appwrite/models/oauth2_token.rb +3 -2
  230. data/lib/appwrite/models/organization.rb +21 -20
  231. data/lib/appwrite/models/passkey.rb +1 -0
  232. data/lib/appwrite/models/passkey_challenge.rb +1 -0
  233. data/lib/appwrite/models/passkey_list.rb +1 -0
  234. data/lib/appwrite/models/phone.rb +1 -0
  235. data/lib/appwrite/models/phone_list.rb +1 -0
  236. data/lib/appwrite/models/platform_android.rb +1 -0
  237. data/lib/appwrite/models/platform_apple.rb +1 -0
  238. data/lib/appwrite/models/platform_linux.rb +1 -0
  239. data/lib/appwrite/models/platform_list.rb +1 -0
  240. data/lib/appwrite/models/platform_web.rb +1 -0
  241. data/lib/appwrite/models/platform_windows.rb +1 -0
  242. data/lib/appwrite/models/policy_deny_aliased_email.rb +1 -0
  243. data/lib/appwrite/models/policy_deny_corporate_email.rb +1 -0
  244. data/lib/appwrite/models/policy_deny_disposable_email.rb +1 -0
  245. data/lib/appwrite/models/policy_deny_free_email.rb +1 -0
  246. data/lib/appwrite/models/policy_list.rb +1 -0
  247. data/lib/appwrite/models/policy_membership_privacy.rb +1 -0
  248. data/lib/appwrite/models/policy_mfa_factors.rb +1 -0
  249. data/lib/appwrite/models/policy_passkey.rb +1 -0
  250. data/lib/appwrite/models/policy_password_dictionary.rb +9 -3
  251. data/lib/appwrite/models/policy_password_history.rb +1 -0
  252. data/lib/appwrite/models/policy_password_personal_data.rb +9 -3
  253. data/lib/appwrite/models/policy_password_strength.rb +1 -0
  254. data/lib/appwrite/models/policy_session_alert.rb +1 -0
  255. data/lib/appwrite/models/policy_session_duration.rb +1 -0
  256. data/lib/appwrite/models/policy_session_invalidation.rb +1 -0
  257. data/lib/appwrite/models/policy_session_limit.rb +1 -0
  258. data/lib/appwrite/models/policy_user_limit.rb +1 -0
  259. data/lib/appwrite/models/postgres_extension.rb +1 -0
  260. data/lib/appwrite/models/presence.rb +4 -3
  261. data/lib/appwrite/models/presence_list.rb +1 -0
  262. data/lib/appwrite/models/program.rb +1 -0
  263. data/lib/appwrite/models/project.rb +23 -27
  264. data/lib/appwrite/models/project_auth_method.rb +1 -0
  265. data/lib/appwrite/models/project_list.rb +1 -0
  266. data/lib/appwrite/models/project_protocol.rb +1 -0
  267. data/lib/appwrite/models/project_service.rb +1 -0
  268. data/lib/appwrite/models/provider.rb +2 -1
  269. data/lib/appwrite/models/provider_list.rb +1 -0
  270. data/lib/appwrite/models/proxy_invalidation.rb +1 -0
  271. data/lib/appwrite/models/proxy_rule.rb +23 -4
  272. data/lib/appwrite/models/proxy_rule_list.rb +1 -0
  273. data/lib/appwrite/models/report.rb +2 -1
  274. data/lib/appwrite/models/report_list.rb +1 -0
  275. data/lib/appwrite/models/resource_token.rb +1 -0
  276. data/lib/appwrite/models/resource_token_list.rb +1 -0
  277. data/lib/appwrite/models/row.rb +1 -0
  278. data/lib/appwrite/models/row_list.rb +1 -0
  279. data/lib/appwrite/models/runtime.rb +1 -0
  280. data/lib/appwrite/models/runtime_list.rb +1 -0
  281. data/lib/appwrite/models/session.rb +1 -0
  282. data/lib/appwrite/models/session_list.rb +1 -0
  283. data/lib/appwrite/models/site.rb +6 -0
  284. data/lib/appwrite/models/site_list.rb +1 -0
  285. data/lib/appwrite/models/specification.rb +1 -0
  286. data/lib/appwrite/models/specification_list.rb +1 -0
  287. data/lib/appwrite/models/subscriber.rb +1 -0
  288. data/lib/appwrite/models/subscriber_list.rb +1 -0
  289. data/lib/appwrite/models/table.rb +6 -0
  290. data/lib/appwrite/models/table_list.rb +1 -0
  291. data/lib/appwrite/models/target.rb +2 -1
  292. data/lib/appwrite/models/target_list.rb +1 -0
  293. data/lib/appwrite/models/team.rb +1 -0
  294. data/lib/appwrite/models/team_list.rb +1 -0
  295. data/lib/appwrite/models/token.rb +1 -0
  296. data/lib/appwrite/models/token_secret.rb +1 -0
  297. data/lib/appwrite/models/topic.rb +8 -2
  298. data/lib/appwrite/models/topic_list.rb +1 -0
  299. data/lib/appwrite/models/transaction.rb +1 -0
  300. data/lib/appwrite/models/transaction_list.rb +1 -0
  301. data/lib/appwrite/models/usage_billing_plan.rb +27 -27
  302. data/lib/appwrite/models/user.rb +12 -11
  303. data/lib/appwrite/models/user_list.rb +1 -0
  304. data/lib/appwrite/models/variable.rb +6 -0
  305. data/lib/appwrite/models/variable_list.rb +1 -0
  306. data/lib/appwrite/models/vectorsdb_collection.rb +6 -0
  307. data/lib/appwrite/models/vectorsdb_collection_list.rb +1 -0
  308. data/lib/appwrite/models/webhook.rb +6 -0
  309. data/lib/appwrite/models/webhook_list.rb +1 -0
  310. data/lib/appwrite/query/builder.rb +361 -0
  311. data/lib/appwrite/query.rb +190 -0
  312. data/lib/appwrite/services/account.rb +135 -107
  313. data/lib/appwrite/services/activities.rb +8 -5
  314. data/lib/appwrite/services/advisor.rb +19 -18
  315. data/lib/appwrite/services/apps.rb +89 -89
  316. data/lib/appwrite/services/avatars.rb +21 -21
  317. data/lib/appwrite/services/backups.rb +42 -33
  318. data/lib/appwrite/services/databases.rb +727 -488
  319. data/lib/appwrite/services/documents_db.rb +266 -190
  320. data/lib/appwrite/services/domains.rb +63 -57
  321. data/lib/appwrite/services/embeddings.rb +2 -2
  322. data/lib/appwrite/services/functions.rb +132 -112
  323. data/lib/appwrite/services/graphql.rb +4 -4
  324. data/lib/appwrite/services/messaging.rb +172 -156
  325. data/lib/appwrite/services/mongo.rb +206 -133
  326. data/lib/appwrite/services/mysql.rb +224 -147
  327. data/lib/appwrite/services/oauth2.rb +27 -27
  328. data/lib/appwrite/services/organization.rb +59 -247
  329. data/lib/appwrite/services/postgresql.rb +238 -161
  330. data/lib/appwrite/services/presences.rb +17 -16
  331. data/lib/appwrite/services/project.rb +187 -147
  332. data/lib/appwrite/services/proxy.rb +70 -23
  333. data/lib/appwrite/services/sites.rb +124 -108
  334. data/lib/appwrite/services/storage.rb +77 -62
  335. data/lib/appwrite/services/tables_db.rb +832 -589
  336. data/lib/appwrite/services/teams.rb +83 -81
  337. data/lib/appwrite/services/tokens.rb +25 -24
  338. data/lib/appwrite/services/users.rb +170 -199
  339. data/lib/appwrite/services/vectors_db.rb +199 -179
  340. data/lib/appwrite/services/waf.rb +7 -7
  341. data/lib/appwrite/services/webhooks.rb +31 -24
  342. data/lib/appwrite/topic.rb +53 -0
  343. data/lib/appwrite.rb +6 -9
  344. metadata +6 -8
  345. data/lib/appwrite/enums/organization_key_scopes.rb +0 -22
  346. data/lib/appwrite/models/dedicated_database_specification_pricing.rb +0 -42
  347. data/lib/appwrite/models/dev_key.rb +0 -62
  348. data/lib/appwrite/models/log.rb +0 -132
  349. data/lib/appwrite/models/log_list.rb +0 -32
@@ -47,6 +47,7 @@ module Appwrite
47
47
  # @param [String] database_id Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
48
48
  # @param [String] name Database name. Max length: 128 chars.
49
49
  # @param [] enabled Is the database enabled? When set to 'disabled', users cannot access the database but Server SDKs with an API key can still read and write to the database. No data is lost when this is toggled.
50
+ # @param [String] description Optional description for the database.
50
51
  # @param [String] specification Database specification. Defaults to `serverless`, which creates the database on the shared pool. Any other value provisions a dedicated database on that specification.
51
52
  # @param [Integer] replicas Number of high availability replicas (0-5) for the dedicated database backing this database. Requires a dedicated `specification`; must be 0 for a serverless database. High availability is enabled when greater than 0.
52
53
  # @param [String] sync_mode Replication sync mode for the dedicated database backing this database. Requires a dedicated `specification`; the mode is only in force once there is at least one replica. Allowed values: async, sync, quorum.
@@ -56,12 +57,11 @@ module Appwrite
56
57
  database_id:,
57
58
  name:,
58
59
  enabled: nil,
60
+ description: nil,
59
61
  specification: nil,
60
62
  replicas: nil,
61
63
  sync_mode: nil
62
64
  )
63
- api_path = '/tablesdb'
64
-
65
65
  if database_id.nil?
66
66
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
67
67
  end
@@ -70,10 +70,13 @@ module Appwrite
70
70
  raise Appwrite::Exception.new('Missing required parameter: "name"')
71
71
  end
72
72
 
73
+ api_path = '/tablesdb'
74
+
73
75
  api_params = {
74
76
  databaseId: database_id,
75
77
  name: name,
76
78
  enabled: enabled,
79
+ description: description,
77
80
  specification: specification,
78
81
  replicas: replicas,
79
82
  syncMode: sync_mode,
@@ -95,8 +98,8 @@ module Appwrite
95
98
  end
96
99
 
97
100
  # 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.
101
+ # Each specification reports its resource limits, its own prices and overage
102
+ # rates, and whether it is enabled for the organization.
100
103
  #
101
104
  #
102
105
  # @return [DedicatedDatabaseSpecificationList]
@@ -187,13 +190,13 @@ module Appwrite
187
190
  def get_transaction(
188
191
  transaction_id:
189
192
  )
190
- api_path = '/tablesdb/transactions/{transactionId}'
191
- .gsub('{transactionId}', transaction_id)
192
-
193
- if transaction_id.nil?
193
+ if transaction_id.nil? || transaction_id == ''
194
194
  raise Appwrite::Exception.new('Missing required parameter: "transactionId"')
195
195
  end
196
196
 
197
+ api_path = '/tablesdb/transactions/{transactionId}'
198
+ .gsub('{transactionId}', transaction_id)
199
+
197
200
  api_params = {}
198
201
 
199
202
  api_headers = {
@@ -222,13 +225,13 @@ module Appwrite
222
225
  commit: nil,
223
226
  rollback: nil
224
227
  )
225
- api_path = '/tablesdb/transactions/{transactionId}'
226
- .gsub('{transactionId}', transaction_id)
227
-
228
- if transaction_id.nil?
228
+ if transaction_id.nil? || transaction_id == ''
229
229
  raise Appwrite::Exception.new('Missing required parameter: "transactionId"')
230
230
  end
231
231
 
232
+ api_path = '/tablesdb/transactions/{transactionId}'
233
+ .gsub('{transactionId}', transaction_id)
234
+
232
235
  api_params = {
233
236
  commit: commit,
234
237
  rollback: rollback,
@@ -257,18 +260,19 @@ module Appwrite
257
260
  def delete_transaction(
258
261
  transaction_id:
259
262
  )
260
- api_path = '/tablesdb/transactions/{transactionId}'
261
- .gsub('{transactionId}', transaction_id)
262
-
263
- if transaction_id.nil?
263
+ if transaction_id.nil? || transaction_id == ''
264
264
  raise Appwrite::Exception.new('Missing required parameter: "transactionId"')
265
265
  end
266
266
 
267
+ api_path = '/tablesdb/transactions/{transactionId}'
268
+ .gsub('{transactionId}', transaction_id)
269
+
267
270
  api_params = {}
268
271
 
269
272
  api_headers = {
270
273
  "X-Appwrite-Project": @client.get_config('project'),
271
274
  "content-type": 'application/json',
275
+ "accept": 'application/json',
272
276
  }
273
277
 
274
278
  @client.call(
@@ -289,13 +293,13 @@ module Appwrite
289
293
  transaction_id:,
290
294
  operations: nil
291
295
  )
292
- api_path = '/tablesdb/transactions/{transactionId}/operations'
293
- .gsub('{transactionId}', transaction_id)
294
-
295
- if transaction_id.nil?
296
+ if transaction_id.nil? || transaction_id == ''
296
297
  raise Appwrite::Exception.new('Missing required parameter: "transactionId"')
297
298
  end
298
299
 
300
+ api_path = '/tablesdb/transactions/{transactionId}/operations'
301
+ .gsub('{transactionId}', transaction_id)
302
+
299
303
  api_params = {
300
304
  operations: operations,
301
305
  }
@@ -324,13 +328,13 @@ module Appwrite
324
328
  def get(
325
329
  database_id:
326
330
  )
327
- api_path = '/tablesdb/{databaseId}'
328
- .gsub('{databaseId}', database_id)
329
-
330
- if database_id.nil?
331
+ if database_id.nil? || database_id == ''
331
332
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
332
333
  end
333
334
 
335
+ api_path = '/tablesdb/{databaseId}'
336
+ .gsub('{databaseId}', database_id)
337
+
334
338
  api_params = {}
335
339
 
336
340
  api_headers = {
@@ -352,6 +356,7 @@ module Appwrite
352
356
  # @param [String] database_id Database ID.
353
357
  # @param [String] name Database name. Max length: 128 chars.
354
358
  # @param [] enabled Is database enabled? When set to 'disabled', users cannot access the database but Server SDKs with an API key can still read and write to the database. No data is lost when this is toggled.
359
+ # @param [String] description Optional description for the database.
355
360
  # @param [String] specification Database specification. Resizing between dedicated specifications changes cpu, memory, storage and the connection ceiling via a rolling cutover with zero downtime. Moving a `serverless` database onto a dedicated specification is a data migration, not a resize.
356
361
  # @param [Integer] replicas Number of high availability replicas (0-5) for the dedicated database backing this database. Only valid when the database is backed by a dedicated specification. High availability is enabled when greater than 0.
357
362
  # @param [String] sync_mode Replication sync mode for the dedicated database backing this database. Only valid when the database is backed by a dedicated specification; the mode is only in force once there is at least one replica. Allowed values: async, sync, quorum.
@@ -361,20 +366,22 @@ module Appwrite
361
366
  database_id:,
362
367
  name: nil,
363
368
  enabled: nil,
369
+ description: nil,
364
370
  specification: nil,
365
371
  replicas: nil,
366
372
  sync_mode: nil
367
373
  )
368
- api_path = '/tablesdb/{databaseId}'
369
- .gsub('{databaseId}', database_id)
370
-
371
- if database_id.nil?
374
+ if database_id.nil? || database_id == ''
372
375
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
373
376
  end
374
377
 
378
+ api_path = '/tablesdb/{databaseId}'
379
+ .gsub('{databaseId}', database_id)
380
+
375
381
  api_params = {
376
382
  name: name,
377
383
  enabled: enabled,
384
+ description: description,
378
385
  specification: specification,
379
386
  replicas: replicas,
380
387
  syncMode: sync_mode,
@@ -404,18 +411,19 @@ module Appwrite
404
411
  def delete(
405
412
  database_id:
406
413
  )
407
- api_path = '/tablesdb/{databaseId}'
408
- .gsub('{databaseId}', database_id)
409
-
410
- if database_id.nil?
414
+ if database_id.nil? || database_id == ''
411
415
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
412
416
  end
413
417
 
418
+ api_path = '/tablesdb/{databaseId}'
419
+ .gsub('{databaseId}', database_id)
420
+
414
421
  api_params = {}
415
422
 
416
423
  api_headers = {
417
424
  "X-Appwrite-Project": @client.get_config('project'),
418
425
  "content-type": 'application/json',
426
+ "accept": 'application/json',
419
427
  }
420
428
 
421
429
  @client.call(
@@ -444,13 +452,13 @@ module Appwrite
444
452
  database_id:,
445
453
  target_replica_id: nil
446
454
  )
447
- api_path = '/tablesdb/{databaseId}/failovers'
448
- .gsub('{databaseId}', database_id)
449
-
450
- if database_id.nil?
455
+ if database_id.nil? || database_id == ''
451
456
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
452
457
  end
453
458
 
459
+ api_path = '/tablesdb/{databaseId}/failovers'
460
+ .gsub('{databaseId}', database_id)
461
+
454
462
  api_params = {
455
463
  targetReplicaId: target_replica_id,
456
464
  }
@@ -479,13 +487,13 @@ module Appwrite
479
487
  def list_migrations(
480
488
  database_id:
481
489
  )
482
- api_path = '/tablesdb/{databaseId}/migrations'
483
- .gsub('{databaseId}', database_id)
484
-
485
- if database_id.nil?
490
+ if database_id.nil? || database_id == ''
486
491
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
487
492
  end
488
493
 
494
+ api_path = '/tablesdb/{databaseId}/migrations'
495
+ .gsub('{databaseId}', database_id)
496
+
489
497
  api_params = {}
490
498
 
491
499
  api_headers = {
@@ -503,8 +511,13 @@ module Appwrite
503
511
  end
504
512
 
505
513
  # Start migrating a serverless TablesDB database onto a dedicated MySQL
506
- # compute. Data is copied to the target while the source stays live, with a
507
- # brief read-only window during cutover.
514
+ # compute. Data is copied to the target while the source stays live. Reads
515
+ # continue throughout. Row writes are held for up to a few seconds while
516
+ # routing switches to the dedicated compute; a write the switch has not
517
+ # absorbed within that hold is refused with `database_migration_cutover` and
518
+ # can be retried. Schema changes (tables, columns, indexes) are refused from
519
+ # creation until the cutover completes, and resume once the migration is
520
+ # `soaking`.
508
521
  #
509
522
  # @param [String] database_id Database ID.
510
523
  # @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.
@@ -516,10 +529,7 @@ module Appwrite
516
529
  specification:,
517
530
  auto_cutover: nil
518
531
  )
519
- api_path = '/tablesdb/{databaseId}/migrations'
520
- .gsub('{databaseId}', database_id)
521
-
522
- if database_id.nil?
532
+ if database_id.nil? || database_id == ''
523
533
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
524
534
  end
525
535
 
@@ -527,6 +537,9 @@ module Appwrite
527
537
  raise Appwrite::Exception.new('Missing required parameter: "specification"')
528
538
  end
529
539
 
540
+ api_path = '/tablesdb/{databaseId}/migrations'
541
+ .gsub('{databaseId}', database_id)
542
+
530
543
  api_params = {
531
544
  specification: specification,
532
545
  autoCutover: auto_cutover,
@@ -557,18 +570,18 @@ module Appwrite
557
570
  database_id:,
558
571
  migration_id:
559
572
  )
560
- api_path = '/tablesdb/{databaseId}/migrations/{migrationId}'
561
- .gsub('{databaseId}', database_id)
562
- .gsub('{migrationId}', migration_id)
563
-
564
- if database_id.nil?
573
+ if database_id.nil? || database_id == ''
565
574
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
566
575
  end
567
576
 
568
- if migration_id.nil?
577
+ if migration_id.nil? || migration_id == ''
569
578
  raise Appwrite::Exception.new('Missing required parameter: "migrationId"')
570
579
  end
571
580
 
581
+ api_path = '/tablesdb/{databaseId}/migrations/{migrationId}'
582
+ .gsub('{databaseId}', database_id)
583
+ .gsub('{migrationId}', migration_id)
584
+
572
585
  api_params = {}
573
586
 
574
587
  api_headers = {
@@ -596,18 +609,18 @@ module Appwrite
596
609
  database_id:,
597
610
  migration_id:
598
611
  )
599
- api_path = '/tablesdb/{databaseId}/migrations/{migrationId}'
600
- .gsub('{databaseId}', database_id)
601
- .gsub('{migrationId}', migration_id)
602
-
603
- if database_id.nil?
612
+ if database_id.nil? || database_id == ''
604
613
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
605
614
  end
606
615
 
607
- if migration_id.nil?
616
+ if migration_id.nil? || migration_id == ''
608
617
  raise Appwrite::Exception.new('Missing required parameter: "migrationId"')
609
618
  end
610
619
 
620
+ api_path = '/tablesdb/{databaseId}/migrations/{migrationId}'
621
+ .gsub('{databaseId}', database_id)
622
+ .gsub('{migrationId}', migration_id)
623
+
611
624
  api_params = {}
612
625
 
613
626
  api_headers = {
@@ -627,9 +640,12 @@ module Appwrite
627
640
  # Cut a verified TablesDB migration over to its dedicated compute. Only
628
641
  # applies to a migration created with `autoCutover` disabled, which waits at
629
642
  # `ready_to_cutover` until this is called. The routing flip happens shortly
630
- # after this returns, with a brief read-only window. One call buys one
631
- # attempt: a cutover that fails a check returns the migration to `verifying`
632
- # and parks it again, so call this once more to retry.
643
+ # after this returns. Reads are unaffected; row writes are held for up to a
644
+ # few seconds while it lands, and a write the flip has not absorbed within
645
+ # that hold is refused with `database_migration_cutover` and can be retried.
646
+ # One call buys one attempt: a cutover that fails a check returns the
647
+ # migration to `verifying` and parks it again, so call this once more to
648
+ # retry.
633
649
  #
634
650
  # @param [String] database_id Database ID.
635
651
  # @param [String] migration_id Migration ID.
@@ -639,18 +655,18 @@ module Appwrite
639
655
  database_id:,
640
656
  migration_id:
641
657
  )
642
- api_path = '/tablesdb/{databaseId}/migrations/{migrationId}/cutovers'
643
- .gsub('{databaseId}', database_id)
644
- .gsub('{migrationId}', migration_id)
645
-
646
- if database_id.nil?
658
+ if database_id.nil? || database_id == ''
647
659
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
648
660
  end
649
661
 
650
- if migration_id.nil?
662
+ if migration_id.nil? || migration_id == ''
651
663
  raise Appwrite::Exception.new('Missing required parameter: "migrationId"')
652
664
  end
653
665
 
666
+ api_path = '/tablesdb/{databaseId}/migrations/{migrationId}/cutovers'
667
+ .gsub('{databaseId}', database_id)
668
+ .gsub('{migrationId}', migration_id)
669
+
654
670
  api_params = {}
655
671
 
656
672
  api_headers = {
@@ -685,13 +701,13 @@ module Appwrite
685
701
  limit: nil,
686
702
  offset: nil
687
703
  )
688
- api_path = '/tablesdb/{databaseId}/operations'
689
- .gsub('{databaseId}', database_id)
690
-
691
- if database_id.nil?
704
+ if database_id.nil? || database_id == ''
692
705
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
693
706
  end
694
707
 
708
+ api_path = '/tablesdb/{databaseId}/operations'
709
+ .gsub('{databaseId}', database_id)
710
+
695
711
  api_params = {
696
712
  status: status,
697
713
  limit: limit,
@@ -721,13 +737,13 @@ module Appwrite
721
737
  def get_replicas(
722
738
  database_id:
723
739
  )
724
- api_path = '/tablesdb/{databaseId}/replicas'
725
- .gsub('{databaseId}', database_id)
726
-
727
- if database_id.nil?
740
+ if database_id.nil? || database_id == ''
728
741
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
729
742
  end
730
743
 
744
+ api_path = '/tablesdb/{databaseId}/replicas'
745
+ .gsub('{databaseId}', database_id)
746
+
731
747
  api_params = {}
732
748
 
733
749
  api_headers = {
@@ -754,13 +770,13 @@ module Appwrite
754
770
  def get_status(
755
771
  database_id:
756
772
  )
757
- api_path = '/tablesdb/{databaseId}/status'
758
- .gsub('{databaseId}', database_id)
759
-
760
- if database_id.nil?
773
+ if database_id.nil? || database_id == ''
761
774
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
762
775
  end
763
776
 
777
+ api_path = '/tablesdb/{databaseId}/status'
778
+ .gsub('{databaseId}', database_id)
779
+
764
780
  api_params = {}
765
781
 
766
782
  api_headers = {
@@ -792,13 +808,13 @@ module Appwrite
792
808
  search: nil,
793
809
  total: nil
794
810
  )
795
- api_path = '/tablesdb/{databaseId}/tables'
796
- .gsub('{databaseId}', database_id)
797
-
798
- if database_id.nil?
811
+ if database_id.nil? || database_id == ''
799
812
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
800
813
  end
801
814
 
815
+ api_path = '/tablesdb/{databaseId}/tables'
816
+ .gsub('{databaseId}', database_id)
817
+
802
818
  api_params = {
803
819
  queries: queries,
804
820
  search: search,
@@ -831,7 +847,8 @@ module Appwrite
831
847
  # @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).
832
848
  # @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.
833
849
  # @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.
834
- # @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).
850
+ # @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).
851
+ # @param [String] description Optional description for the table.
835
852
  #
836
853
  # @return [Table]
837
854
  def create_table(
@@ -842,12 +859,10 @@ module Appwrite
842
859
  row_security: nil,
843
860
  enabled: nil,
844
861
  columns: nil,
845
- indexes: nil
862
+ indexes: nil,
863
+ description: nil
846
864
  )
847
- api_path = '/tablesdb/{databaseId}/tables'
848
- .gsub('{databaseId}', database_id)
849
-
850
- if database_id.nil?
865
+ if database_id.nil? || database_id == ''
851
866
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
852
867
  end
853
868
 
@@ -859,6 +874,9 @@ module Appwrite
859
874
  raise Appwrite::Exception.new('Missing required parameter: "name"')
860
875
  end
861
876
 
877
+ api_path = '/tablesdb/{databaseId}/tables'
878
+ .gsub('{databaseId}', database_id)
879
+
862
880
  api_params = {
863
881
  tableId: table_id,
864
882
  name: name,
@@ -867,6 +885,7 @@ module Appwrite
867
885
  enabled: enabled,
868
886
  columns: columns,
869
887
  indexes: indexes,
888
+ description: description,
870
889
  }
871
890
 
872
891
  api_headers = {
@@ -895,18 +914,18 @@ module Appwrite
895
914
  database_id:,
896
915
  table_id:
897
916
  )
898
- api_path = '/tablesdb/{databaseId}/tables/{tableId}'
899
- .gsub('{databaseId}', database_id)
900
- .gsub('{tableId}', table_id)
901
-
902
- if database_id.nil?
917
+ if database_id.nil? || database_id == ''
903
918
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
904
919
  end
905
920
 
906
- if table_id.nil?
921
+ if table_id.nil? || table_id == ''
907
922
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
908
923
  end
909
924
 
925
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}'
926
+ .gsub('{databaseId}', database_id)
927
+ .gsub('{tableId}', table_id)
928
+
910
929
  api_params = {}
911
930
 
912
931
  api_headers = {
@@ -932,6 +951,7 @@ module Appwrite
932
951
  # @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).
933
952
  # @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.
934
953
  # @param [] purge When true, purge all cached list responses for this table as part of the update. Use this to force readers to see fresh data immediately instead of waiting for the cache TTL to expire.
954
+ # @param [String] description Optional description for the table.
935
955
  #
936
956
  # @return [Table]
937
957
  def update_table(
@@ -941,26 +961,28 @@ module Appwrite
941
961
  permissions: nil,
942
962
  row_security: nil,
943
963
  enabled: nil,
944
- purge: nil
964
+ purge: nil,
965
+ description: nil
945
966
  )
946
- api_path = '/tablesdb/{databaseId}/tables/{tableId}'
947
- .gsub('{databaseId}', database_id)
948
- .gsub('{tableId}', table_id)
949
-
950
- if database_id.nil?
967
+ if database_id.nil? || database_id == ''
951
968
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
952
969
  end
953
970
 
954
- if table_id.nil?
971
+ if table_id.nil? || table_id == ''
955
972
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
956
973
  end
957
974
 
975
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}'
976
+ .gsub('{databaseId}', database_id)
977
+ .gsub('{tableId}', table_id)
978
+
958
979
  api_params = {
959
980
  name: name,
960
981
  permissions: permissions,
961
982
  rowSecurity: row_security,
962
983
  enabled: enabled,
963
984
  purge: purge,
985
+ description: description,
964
986
  }
965
987
 
966
988
  api_headers = {
@@ -989,23 +1011,24 @@ module Appwrite
989
1011
  database_id:,
990
1012
  table_id:
991
1013
  )
992
- api_path = '/tablesdb/{databaseId}/tables/{tableId}'
993
- .gsub('{databaseId}', database_id)
994
- .gsub('{tableId}', table_id)
995
-
996
- if database_id.nil?
1014
+ if database_id.nil? || database_id == ''
997
1015
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
998
1016
  end
999
1017
 
1000
- if table_id.nil?
1018
+ if table_id.nil? || table_id == ''
1001
1019
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1002
1020
  end
1003
1021
 
1022
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}'
1023
+ .gsub('{databaseId}', database_id)
1024
+ .gsub('{tableId}', table_id)
1025
+
1004
1026
  api_params = {}
1005
1027
 
1006
1028
  api_headers = {
1007
1029
  "X-Appwrite-Project": @client.get_config('project'),
1008
1030
  "content-type": 'application/json',
1031
+ "accept": 'application/json',
1009
1032
  }
1010
1033
 
1011
1034
  @client.call(
@@ -1030,18 +1053,18 @@ module Appwrite
1030
1053
  queries: nil,
1031
1054
  total: nil
1032
1055
  )
1033
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns'
1034
- .gsub('{databaseId}', database_id)
1035
- .gsub('{tableId}', table_id)
1036
-
1037
- if database_id.nil?
1056
+ if database_id.nil? || database_id == ''
1038
1057
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1039
1058
  end
1040
1059
 
1041
- if table_id.nil?
1060
+ if table_id.nil? || table_id == ''
1042
1061
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1043
1062
  end
1044
1063
 
1064
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns'
1065
+ .gsub('{databaseId}', database_id)
1066
+ .gsub('{tableId}', table_id)
1067
+
1045
1068
  api_params = {
1046
1069
  queries: queries,
1047
1070
  total: total,
@@ -1073,6 +1096,7 @@ module Appwrite
1073
1096
  # @param [Integer] max Maximum value
1074
1097
  # @param [Integer] default Default value. Cannot be set when column is required.
1075
1098
  # @param [] array Is column an array?
1099
+ # @param [String] description Optional description for the column.
1076
1100
  #
1077
1101
  # @return [ColumnBigint]
1078
1102
  def create_big_int_column(
@@ -1083,17 +1107,14 @@ module Appwrite
1083
1107
  min: nil,
1084
1108
  max: nil,
1085
1109
  default: nil,
1086
- array: nil
1110
+ array: nil,
1111
+ description: nil
1087
1112
  )
1088
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/bigint'
1089
- .gsub('{databaseId}', database_id)
1090
- .gsub('{tableId}', table_id)
1091
-
1092
- if database_id.nil?
1113
+ if database_id.nil? || database_id == ''
1093
1114
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1094
1115
  end
1095
1116
 
1096
- if table_id.nil?
1117
+ if table_id.nil? || table_id == ''
1097
1118
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1098
1119
  end
1099
1120
 
@@ -1105,6 +1126,10 @@ module Appwrite
1105
1126
  raise Appwrite::Exception.new('Missing required parameter: "required"')
1106
1127
  end
1107
1128
 
1129
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/bigint'
1130
+ .gsub('{databaseId}', database_id)
1131
+ .gsub('{tableId}', table_id)
1132
+
1108
1133
  api_params = {
1109
1134
  key: key,
1110
1135
  required: required,
@@ -1112,6 +1137,7 @@ module Appwrite
1112
1137
  max: max,
1113
1138
  default: default,
1114
1139
  array: array,
1140
+ description: description,
1115
1141
  }
1116
1142
 
1117
1143
  api_headers = {
@@ -1141,6 +1167,7 @@ module Appwrite
1141
1167
  # @param [Integer] min Minimum value
1142
1168
  # @param [Integer] max Maximum value
1143
1169
  # @param [String] new_key New Column Key.
1170
+ # @param [String] description Optional description for the column.
1144
1171
  #
1145
1172
  # @return [ColumnBigint]
1146
1173
  def update_big_int_column(
@@ -1151,22 +1178,18 @@ module Appwrite
1151
1178
  default:,
1152
1179
  min: nil,
1153
1180
  max: nil,
1154
- new_key: nil
1181
+ new_key: nil,
1182
+ description: nil
1155
1183
  )
1156
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/bigint/{key}'
1157
- .gsub('{databaseId}', database_id)
1158
- .gsub('{tableId}', table_id)
1159
- .gsub('{key}', key)
1160
-
1161
- if database_id.nil?
1184
+ if database_id.nil? || database_id == ''
1162
1185
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1163
1186
  end
1164
1187
 
1165
- if table_id.nil?
1188
+ if table_id.nil? || table_id == ''
1166
1189
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1167
1190
  end
1168
1191
 
1169
- if key.nil?
1192
+ if key.nil? || key == ''
1170
1193
  raise Appwrite::Exception.new('Missing required parameter: "key"')
1171
1194
  end
1172
1195
 
@@ -1178,12 +1201,18 @@ module Appwrite
1178
1201
  raise Appwrite::Exception.new('Missing required parameter: "default"')
1179
1202
  end
1180
1203
 
1204
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/bigint/{key}'
1205
+ .gsub('{databaseId}', database_id)
1206
+ .gsub('{tableId}', table_id)
1207
+ .gsub('{key}', key)
1208
+
1181
1209
  api_params = {
1182
1210
  required: required,
1183
1211
  min: min,
1184
1212
  max: max,
1185
1213
  default: default,
1186
1214
  newKey: new_key,
1215
+ description: description,
1187
1216
  }
1188
1217
 
1189
1218
  api_headers = {
@@ -1210,6 +1239,7 @@ module Appwrite
1210
1239
  # @param [] required Is column required?
1211
1240
  # @param [] default Default value for column when not provided. Cannot be set when column is required.
1212
1241
  # @param [] array Is column an array?
1242
+ # @param [String] description Optional description for the column.
1213
1243
  #
1214
1244
  # @return [ColumnBoolean]
1215
1245
  def create_boolean_column(
@@ -1218,17 +1248,14 @@ module Appwrite
1218
1248
  key:,
1219
1249
  required:,
1220
1250
  default: nil,
1221
- array: nil
1251
+ array: nil,
1252
+ description: nil
1222
1253
  )
1223
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/boolean'
1224
- .gsub('{databaseId}', database_id)
1225
- .gsub('{tableId}', table_id)
1226
-
1227
- if database_id.nil?
1254
+ if database_id.nil? || database_id == ''
1228
1255
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1229
1256
  end
1230
1257
 
1231
- if table_id.nil?
1258
+ if table_id.nil? || table_id == ''
1232
1259
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1233
1260
  end
1234
1261
 
@@ -1240,11 +1267,16 @@ module Appwrite
1240
1267
  raise Appwrite::Exception.new('Missing required parameter: "required"')
1241
1268
  end
1242
1269
 
1270
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/boolean'
1271
+ .gsub('{databaseId}', database_id)
1272
+ .gsub('{tableId}', table_id)
1273
+
1243
1274
  api_params = {
1244
1275
  key: key,
1245
1276
  required: required,
1246
1277
  default: default,
1247
1278
  array: array,
1279
+ description: description,
1248
1280
  }
1249
1281
 
1250
1282
  api_headers = {
@@ -1271,6 +1303,7 @@ module Appwrite
1271
1303
  # @param [] required Is column required?
1272
1304
  # @param [] default Default value for column when not provided. Cannot be set when column is required.
1273
1305
  # @param [String] new_key New Column Key.
1306
+ # @param [String] description Optional description for the column.
1274
1307
  #
1275
1308
  # @return [ColumnBoolean]
1276
1309
  def update_boolean_column(
@@ -1279,22 +1312,18 @@ module Appwrite
1279
1312
  key:,
1280
1313
  required:,
1281
1314
  default:,
1282
- new_key: nil
1315
+ new_key: nil,
1316
+ description: nil
1283
1317
  )
1284
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/boolean/{key}'
1285
- .gsub('{databaseId}', database_id)
1286
- .gsub('{tableId}', table_id)
1287
- .gsub('{key}', key)
1288
-
1289
- if database_id.nil?
1318
+ if database_id.nil? || database_id == ''
1290
1319
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1291
1320
  end
1292
1321
 
1293
- if table_id.nil?
1322
+ if table_id.nil? || table_id == ''
1294
1323
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1295
1324
  end
1296
1325
 
1297
- if key.nil?
1326
+ if key.nil? || key == ''
1298
1327
  raise Appwrite::Exception.new('Missing required parameter: "key"')
1299
1328
  end
1300
1329
 
@@ -1306,10 +1335,16 @@ module Appwrite
1306
1335
  raise Appwrite::Exception.new('Missing required parameter: "default"')
1307
1336
  end
1308
1337
 
1338
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/boolean/{key}'
1339
+ .gsub('{databaseId}', database_id)
1340
+ .gsub('{tableId}', table_id)
1341
+ .gsub('{key}', key)
1342
+
1309
1343
  api_params = {
1310
1344
  required: required,
1311
1345
  default: default,
1312
1346
  newKey: new_key,
1347
+ description: description,
1313
1348
  }
1314
1349
 
1315
1350
  api_headers = {
@@ -1335,6 +1370,7 @@ module Appwrite
1335
1370
  # @param [] required Is column required?
1336
1371
  # @param [String] default Default value for the column in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Cannot be set when column is required.
1337
1372
  # @param [] array Is column an array?
1373
+ # @param [String] description Optional description for the column.
1338
1374
  #
1339
1375
  # @return [ColumnDatetime]
1340
1376
  def create_datetime_column(
@@ -1343,17 +1379,14 @@ module Appwrite
1343
1379
  key:,
1344
1380
  required:,
1345
1381
  default: nil,
1346
- array: nil
1382
+ array: nil,
1383
+ description: nil
1347
1384
  )
1348
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/datetime'
1349
- .gsub('{databaseId}', database_id)
1350
- .gsub('{tableId}', table_id)
1351
-
1352
- if database_id.nil?
1385
+ if database_id.nil? || database_id == ''
1353
1386
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1354
1387
  end
1355
1388
 
1356
- if table_id.nil?
1389
+ if table_id.nil? || table_id == ''
1357
1390
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1358
1391
  end
1359
1392
 
@@ -1365,11 +1398,16 @@ module Appwrite
1365
1398
  raise Appwrite::Exception.new('Missing required parameter: "required"')
1366
1399
  end
1367
1400
 
1401
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/datetime'
1402
+ .gsub('{databaseId}', database_id)
1403
+ .gsub('{tableId}', table_id)
1404
+
1368
1405
  api_params = {
1369
1406
  key: key,
1370
1407
  required: required,
1371
1408
  default: default,
1372
1409
  array: array,
1410
+ description: description,
1373
1411
  }
1374
1412
 
1375
1413
  api_headers = {
@@ -1396,6 +1434,7 @@ module Appwrite
1396
1434
  # @param [] required Is column required?
1397
1435
  # @param [String] default Default value for column when not provided. Cannot be set when column is required.
1398
1436
  # @param [String] new_key New Column Key.
1437
+ # @param [String] description Optional description for the column.
1399
1438
  #
1400
1439
  # @return [ColumnDatetime]
1401
1440
  def update_datetime_column(
@@ -1404,22 +1443,18 @@ module Appwrite
1404
1443
  key:,
1405
1444
  required:,
1406
1445
  default:,
1407
- new_key: nil
1446
+ new_key: nil,
1447
+ description: nil
1408
1448
  )
1409
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/datetime/{key}'
1410
- .gsub('{databaseId}', database_id)
1411
- .gsub('{tableId}', table_id)
1412
- .gsub('{key}', key)
1413
-
1414
- if database_id.nil?
1449
+ if database_id.nil? || database_id == ''
1415
1450
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1416
1451
  end
1417
1452
 
1418
- if table_id.nil?
1453
+ if table_id.nil? || table_id == ''
1419
1454
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1420
1455
  end
1421
1456
 
1422
- if key.nil?
1457
+ if key.nil? || key == ''
1423
1458
  raise Appwrite::Exception.new('Missing required parameter: "key"')
1424
1459
  end
1425
1460
 
@@ -1431,10 +1466,16 @@ module Appwrite
1431
1466
  raise Appwrite::Exception.new('Missing required parameter: "default"')
1432
1467
  end
1433
1468
 
1469
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/datetime/{key}'
1470
+ .gsub('{databaseId}', database_id)
1471
+ .gsub('{tableId}', table_id)
1472
+ .gsub('{key}', key)
1473
+
1434
1474
  api_params = {
1435
1475
  required: required,
1436
1476
  default: default,
1437
1477
  newKey: new_key,
1478
+ description: description,
1438
1479
  }
1439
1480
 
1440
1481
  api_headers = {
@@ -1461,6 +1502,7 @@ module Appwrite
1461
1502
  # @param [] required Is column required?
1462
1503
  # @param [String] default Default value for column when not provided. Cannot be set when column is required.
1463
1504
  # @param [] array Is column an array?
1505
+ # @param [String] description Optional description for the column.
1464
1506
  #
1465
1507
  # @return [ColumnEmail]
1466
1508
  def create_email_column(
@@ -1469,17 +1511,14 @@ module Appwrite
1469
1511
  key:,
1470
1512
  required:,
1471
1513
  default: nil,
1472
- array: nil
1514
+ array: nil,
1515
+ description: nil
1473
1516
  )
1474
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/email'
1475
- .gsub('{databaseId}', database_id)
1476
- .gsub('{tableId}', table_id)
1477
-
1478
- if database_id.nil?
1517
+ if database_id.nil? || database_id == ''
1479
1518
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1480
1519
  end
1481
1520
 
1482
- if table_id.nil?
1521
+ if table_id.nil? || table_id == ''
1483
1522
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1484
1523
  end
1485
1524
 
@@ -1491,11 +1530,16 @@ module Appwrite
1491
1530
  raise Appwrite::Exception.new('Missing required parameter: "required"')
1492
1531
  end
1493
1532
 
1494
- api_params = {
1495
- key: key,
1533
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/email'
1534
+ .gsub('{databaseId}', database_id)
1535
+ .gsub('{tableId}', table_id)
1536
+
1537
+ api_params = {
1538
+ key: key,
1496
1539
  required: required,
1497
1540
  default: default,
1498
1541
  array: array,
1542
+ description: description,
1499
1543
  }
1500
1544
 
1501
1545
  api_headers = {
@@ -1523,6 +1567,7 @@ module Appwrite
1523
1567
  # @param [] required Is column required?
1524
1568
  # @param [String] default Default value for column when not provided. Cannot be set when column is required.
1525
1569
  # @param [String] new_key New Column Key.
1570
+ # @param [String] description Optional description for the column.
1526
1571
  #
1527
1572
  # @return [ColumnEmail]
1528
1573
  def update_email_column(
@@ -1531,22 +1576,18 @@ module Appwrite
1531
1576
  key:,
1532
1577
  required:,
1533
1578
  default:,
1534
- new_key: nil
1579
+ new_key: nil,
1580
+ description: nil
1535
1581
  )
1536
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/email/{key}'
1537
- .gsub('{databaseId}', database_id)
1538
- .gsub('{tableId}', table_id)
1539
- .gsub('{key}', key)
1540
-
1541
- if database_id.nil?
1582
+ if database_id.nil? || database_id == ''
1542
1583
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1543
1584
  end
1544
1585
 
1545
- if table_id.nil?
1586
+ if table_id.nil? || table_id == ''
1546
1587
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1547
1588
  end
1548
1589
 
1549
- if key.nil?
1590
+ if key.nil? || key == ''
1550
1591
  raise Appwrite::Exception.new('Missing required parameter: "key"')
1551
1592
  end
1552
1593
 
@@ -1558,10 +1599,16 @@ module Appwrite
1558
1599
  raise Appwrite::Exception.new('Missing required parameter: "default"')
1559
1600
  end
1560
1601
 
1602
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/email/{key}'
1603
+ .gsub('{databaseId}', database_id)
1604
+ .gsub('{tableId}', table_id)
1605
+ .gsub('{key}', key)
1606
+
1561
1607
  api_params = {
1562
1608
  required: required,
1563
1609
  default: default,
1564
1610
  newKey: new_key,
1611
+ description: description,
1565
1612
  }
1566
1613
 
1567
1614
  api_headers = {
@@ -1589,6 +1636,7 @@ module Appwrite
1589
1636
  # @param [] required Is column required?
1590
1637
  # @param [String] default Default value for column when not provided. Cannot be set when column is required.
1591
1638
  # @param [] array Is column an array?
1639
+ # @param [String] description Optional description for the column.
1592
1640
  #
1593
1641
  # @return [ColumnEnum]
1594
1642
  def create_enum_column(
@@ -1598,17 +1646,14 @@ module Appwrite
1598
1646
  elements:,
1599
1647
  required:,
1600
1648
  default: nil,
1601
- array: nil
1649
+ array: nil,
1650
+ description: nil
1602
1651
  )
1603
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/enum'
1604
- .gsub('{databaseId}', database_id)
1605
- .gsub('{tableId}', table_id)
1606
-
1607
- if database_id.nil?
1652
+ if database_id.nil? || database_id == ''
1608
1653
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1609
1654
  end
1610
1655
 
1611
- if table_id.nil?
1656
+ if table_id.nil? || table_id == ''
1612
1657
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1613
1658
  end
1614
1659
 
@@ -1624,12 +1669,17 @@ module Appwrite
1624
1669
  raise Appwrite::Exception.new('Missing required parameter: "required"')
1625
1670
  end
1626
1671
 
1672
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/enum'
1673
+ .gsub('{databaseId}', database_id)
1674
+ .gsub('{tableId}', table_id)
1675
+
1627
1676
  api_params = {
1628
1677
  key: key,
1629
1678
  elements: elements,
1630
1679
  required: required,
1631
1680
  default: default,
1632
1681
  array: array,
1682
+ description: description,
1633
1683
  }
1634
1684
 
1635
1685
  api_headers = {
@@ -1658,6 +1708,7 @@ module Appwrite
1658
1708
  # @param [] required Is column required?
1659
1709
  # @param [String] default Default value for column when not provided. Cannot be set when column is required.
1660
1710
  # @param [String] new_key New Column Key.
1711
+ # @param [String] description Optional description for the column.
1661
1712
  #
1662
1713
  # @return [ColumnEnum]
1663
1714
  def update_enum_column(
@@ -1667,22 +1718,18 @@ module Appwrite
1667
1718
  elements:,
1668
1719
  required:,
1669
1720
  default:,
1670
- new_key: nil
1721
+ new_key: nil,
1722
+ description: nil
1671
1723
  )
1672
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/enum/{key}'
1673
- .gsub('{databaseId}', database_id)
1674
- .gsub('{tableId}', table_id)
1675
- .gsub('{key}', key)
1676
-
1677
- if database_id.nil?
1724
+ if database_id.nil? || database_id == ''
1678
1725
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1679
1726
  end
1680
1727
 
1681
- if table_id.nil?
1728
+ if table_id.nil? || table_id == ''
1682
1729
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1683
1730
  end
1684
1731
 
1685
- if key.nil?
1732
+ if key.nil? || key == ''
1686
1733
  raise Appwrite::Exception.new('Missing required parameter: "key"')
1687
1734
  end
1688
1735
 
@@ -1698,11 +1745,17 @@ module Appwrite
1698
1745
  raise Appwrite::Exception.new('Missing required parameter: "default"')
1699
1746
  end
1700
1747
 
1748
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/enum/{key}'
1749
+ .gsub('{databaseId}', database_id)
1750
+ .gsub('{tableId}', table_id)
1751
+ .gsub('{key}', key)
1752
+
1701
1753
  api_params = {
1702
1754
  elements: elements,
1703
1755
  required: required,
1704
1756
  default: default,
1705
1757
  newKey: new_key,
1758
+ description: description,
1706
1759
  }
1707
1760
 
1708
1761
  api_headers = {
@@ -1732,6 +1785,7 @@ module Appwrite
1732
1785
  # @param [Float] max Maximum value
1733
1786
  # @param [Float] default Default value. Cannot be set when required.
1734
1787
  # @param [] array Is column an array?
1788
+ # @param [String] description Optional description for the column.
1735
1789
  #
1736
1790
  # @return [ColumnFloat]
1737
1791
  def create_float_column(
@@ -1742,17 +1796,14 @@ module Appwrite
1742
1796
  min: nil,
1743
1797
  max: nil,
1744
1798
  default: nil,
1745
- array: nil
1799
+ array: nil,
1800
+ description: nil
1746
1801
  )
1747
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/float'
1748
- .gsub('{databaseId}', database_id)
1749
- .gsub('{tableId}', table_id)
1750
-
1751
- if database_id.nil?
1802
+ if database_id.nil? || database_id == ''
1752
1803
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1753
1804
  end
1754
1805
 
1755
- if table_id.nil?
1806
+ if table_id.nil? || table_id == ''
1756
1807
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1757
1808
  end
1758
1809
 
@@ -1764,6 +1815,10 @@ module Appwrite
1764
1815
  raise Appwrite::Exception.new('Missing required parameter: "required"')
1765
1816
  end
1766
1817
 
1818
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/float'
1819
+ .gsub('{databaseId}', database_id)
1820
+ .gsub('{tableId}', table_id)
1821
+
1767
1822
  api_params = {
1768
1823
  key: key,
1769
1824
  required: required,
@@ -1771,6 +1826,7 @@ module Appwrite
1771
1826
  max: max,
1772
1827
  default: default,
1773
1828
  array: array,
1829
+ description: description,
1774
1830
  }
1775
1831
 
1776
1832
  api_headers = {
@@ -1800,6 +1856,7 @@ module Appwrite
1800
1856
  # @param [Float] min Minimum value
1801
1857
  # @param [Float] max Maximum value
1802
1858
  # @param [String] new_key New Column Key.
1859
+ # @param [String] description Optional description for the column.
1803
1860
  #
1804
1861
  # @return [ColumnFloat]
1805
1862
  def update_float_column(
@@ -1810,22 +1867,18 @@ module Appwrite
1810
1867
  default:,
1811
1868
  min: nil,
1812
1869
  max: nil,
1813
- new_key: nil
1870
+ new_key: nil,
1871
+ description: nil
1814
1872
  )
1815
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/float/{key}'
1816
- .gsub('{databaseId}', database_id)
1817
- .gsub('{tableId}', table_id)
1818
- .gsub('{key}', key)
1819
-
1820
- if database_id.nil?
1873
+ if database_id.nil? || database_id == ''
1821
1874
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1822
1875
  end
1823
1876
 
1824
- if table_id.nil?
1877
+ if table_id.nil? || table_id == ''
1825
1878
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1826
1879
  end
1827
1880
 
1828
- if key.nil?
1881
+ if key.nil? || key == ''
1829
1882
  raise Appwrite::Exception.new('Missing required parameter: "key"')
1830
1883
  end
1831
1884
 
@@ -1837,12 +1890,18 @@ module Appwrite
1837
1890
  raise Appwrite::Exception.new('Missing required parameter: "default"')
1838
1891
  end
1839
1892
 
1893
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/float/{key}'
1894
+ .gsub('{databaseId}', database_id)
1895
+ .gsub('{tableId}', table_id)
1896
+ .gsub('{key}', key)
1897
+
1840
1898
  api_params = {
1841
1899
  required: required,
1842
1900
  min: min,
1843
1901
  max: max,
1844
1902
  default: default,
1845
1903
  newKey: new_key,
1904
+ description: description,
1846
1905
  }
1847
1906
 
1848
1907
  api_headers = {
@@ -1872,6 +1931,7 @@ module Appwrite
1872
1931
  # @param [Integer] max Maximum value
1873
1932
  # @param [Integer] default Default value. Cannot be set when column is required.
1874
1933
  # @param [] array Is column an array?
1934
+ # @param [String] description Optional description for the column.
1875
1935
  #
1876
1936
  # @return [ColumnInteger]
1877
1937
  def create_integer_column(
@@ -1882,17 +1942,14 @@ module Appwrite
1882
1942
  min: nil,
1883
1943
  max: nil,
1884
1944
  default: nil,
1885
- array: nil
1945
+ array: nil,
1946
+ description: nil
1886
1947
  )
1887
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/integer'
1888
- .gsub('{databaseId}', database_id)
1889
- .gsub('{tableId}', table_id)
1890
-
1891
- if database_id.nil?
1948
+ if database_id.nil? || database_id == ''
1892
1949
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1893
1950
  end
1894
1951
 
1895
- if table_id.nil?
1952
+ if table_id.nil? || table_id == ''
1896
1953
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1897
1954
  end
1898
1955
 
@@ -1904,6 +1961,10 @@ module Appwrite
1904
1961
  raise Appwrite::Exception.new('Missing required parameter: "required"')
1905
1962
  end
1906
1963
 
1964
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/integer'
1965
+ .gsub('{databaseId}', database_id)
1966
+ .gsub('{tableId}', table_id)
1967
+
1907
1968
  api_params = {
1908
1969
  key: key,
1909
1970
  required: required,
@@ -1911,6 +1972,7 @@ module Appwrite
1911
1972
  max: max,
1912
1973
  default: default,
1913
1974
  array: array,
1975
+ description: description,
1914
1976
  }
1915
1977
 
1916
1978
  api_headers = {
@@ -1940,6 +2002,7 @@ module Appwrite
1940
2002
  # @param [Integer] min Minimum value
1941
2003
  # @param [Integer] max Maximum value
1942
2004
  # @param [String] new_key New Column Key.
2005
+ # @param [String] description Optional description for the column.
1943
2006
  #
1944
2007
  # @return [ColumnInteger]
1945
2008
  def update_integer_column(
@@ -1950,22 +2013,18 @@ module Appwrite
1950
2013
  default:,
1951
2014
  min: nil,
1952
2015
  max: nil,
1953
- new_key: nil
2016
+ new_key: nil,
2017
+ description: nil
1954
2018
  )
1955
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/integer/{key}'
1956
- .gsub('{databaseId}', database_id)
1957
- .gsub('{tableId}', table_id)
1958
- .gsub('{key}', key)
1959
-
1960
- if database_id.nil?
2019
+ if database_id.nil? || database_id == ''
1961
2020
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
1962
2021
  end
1963
2022
 
1964
- if table_id.nil?
2023
+ if table_id.nil? || table_id == ''
1965
2024
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
1966
2025
  end
1967
2026
 
1968
- if key.nil?
2027
+ if key.nil? || key == ''
1969
2028
  raise Appwrite::Exception.new('Missing required parameter: "key"')
1970
2029
  end
1971
2030
 
@@ -1977,12 +2036,18 @@ module Appwrite
1977
2036
  raise Appwrite::Exception.new('Missing required parameter: "default"')
1978
2037
  end
1979
2038
 
2039
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/integer/{key}'
2040
+ .gsub('{databaseId}', database_id)
2041
+ .gsub('{tableId}', table_id)
2042
+ .gsub('{key}', key)
2043
+
1980
2044
  api_params = {
1981
2045
  required: required,
1982
2046
  min: min,
1983
2047
  max: max,
1984
2048
  default: default,
1985
2049
  newKey: new_key,
2050
+ description: description,
1986
2051
  }
1987
2052
 
1988
2053
  api_headers = {
@@ -2009,6 +2074,7 @@ module Appwrite
2009
2074
  # @param [] required Is column required?
2010
2075
  # @param [String] default Default value. Cannot be set when column is required.
2011
2076
  # @param [] array Is column an array?
2077
+ # @param [String] description Optional description for the column.
2012
2078
  #
2013
2079
  # @return [ColumnIp]
2014
2080
  def create_ip_column(
@@ -2017,17 +2083,14 @@ module Appwrite
2017
2083
  key:,
2018
2084
  required:,
2019
2085
  default: nil,
2020
- array: nil
2086
+ array: nil,
2087
+ description: nil
2021
2088
  )
2022
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/ip'
2023
- .gsub('{databaseId}', database_id)
2024
- .gsub('{tableId}', table_id)
2025
-
2026
- if database_id.nil?
2089
+ if database_id.nil? || database_id == ''
2027
2090
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2028
2091
  end
2029
2092
 
2030
- if table_id.nil?
2093
+ if table_id.nil? || table_id == ''
2031
2094
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2032
2095
  end
2033
2096
 
@@ -2039,11 +2102,16 @@ module Appwrite
2039
2102
  raise Appwrite::Exception.new('Missing required parameter: "required"')
2040
2103
  end
2041
2104
 
2105
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/ip'
2106
+ .gsub('{databaseId}', database_id)
2107
+ .gsub('{tableId}', table_id)
2108
+
2042
2109
  api_params = {
2043
2110
  key: key,
2044
2111
  required: required,
2045
2112
  default: default,
2046
2113
  array: array,
2114
+ description: description,
2047
2115
  }
2048
2116
 
2049
2117
  api_headers = {
@@ -2071,6 +2139,7 @@ module Appwrite
2071
2139
  # @param [] required Is column required?
2072
2140
  # @param [String] default Default value. Cannot be set when column is required.
2073
2141
  # @param [String] new_key New Column Key.
2142
+ # @param [String] description Optional description for the column.
2074
2143
  #
2075
2144
  # @return [ColumnIp]
2076
2145
  def update_ip_column(
@@ -2079,22 +2148,18 @@ module Appwrite
2079
2148
  key:,
2080
2149
  required:,
2081
2150
  default:,
2082
- new_key: nil
2151
+ new_key: nil,
2152
+ description: nil
2083
2153
  )
2084
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/ip/{key}'
2085
- .gsub('{databaseId}', database_id)
2086
- .gsub('{tableId}', table_id)
2087
- .gsub('{key}', key)
2088
-
2089
- if database_id.nil?
2154
+ if database_id.nil? || database_id == ''
2090
2155
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2091
2156
  end
2092
2157
 
2093
- if table_id.nil?
2158
+ if table_id.nil? || table_id == ''
2094
2159
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2095
2160
  end
2096
2161
 
2097
- if key.nil?
2162
+ if key.nil? || key == ''
2098
2163
  raise Appwrite::Exception.new('Missing required parameter: "key"')
2099
2164
  end
2100
2165
 
@@ -2106,10 +2171,16 @@ module Appwrite
2106
2171
  raise Appwrite::Exception.new('Missing required parameter: "default"')
2107
2172
  end
2108
2173
 
2174
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/ip/{key}'
2175
+ .gsub('{databaseId}', database_id)
2176
+ .gsub('{tableId}', table_id)
2177
+ .gsub('{key}', key)
2178
+
2109
2179
  api_params = {
2110
2180
  required: required,
2111
2181
  default: default,
2112
2182
  newKey: new_key,
2183
+ description: description,
2113
2184
  }
2114
2185
 
2115
2186
  api_headers = {
@@ -2134,6 +2205,7 @@ module Appwrite
2134
2205
  # @param [String] key Column Key.
2135
2206
  # @param [] required Is column required?
2136
2207
  # @param [Array] default Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], …], listing the vertices of the line in order. Cannot be set when column is required.
2208
+ # @param [String] description Optional description for the column.
2137
2209
  #
2138
2210
  # @return [ColumnLine]
2139
2211
  def create_line_column(
@@ -2141,17 +2213,14 @@ module Appwrite
2141
2213
  table_id:,
2142
2214
  key:,
2143
2215
  required:,
2144
- default: nil
2216
+ default: nil,
2217
+ description: nil
2145
2218
  )
2146
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/line'
2147
- .gsub('{databaseId}', database_id)
2148
- .gsub('{tableId}', table_id)
2149
-
2150
- if database_id.nil?
2219
+ if database_id.nil? || database_id == ''
2151
2220
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2152
2221
  end
2153
2222
 
2154
- if table_id.nil?
2223
+ if table_id.nil? || table_id == ''
2155
2224
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2156
2225
  end
2157
2226
 
@@ -2163,10 +2232,15 @@ module Appwrite
2163
2232
  raise Appwrite::Exception.new('Missing required parameter: "required"')
2164
2233
  end
2165
2234
 
2235
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/line'
2236
+ .gsub('{databaseId}', database_id)
2237
+ .gsub('{tableId}', table_id)
2238
+
2166
2239
  api_params = {
2167
2240
  key: key,
2168
2241
  required: required,
2169
2242
  default: default,
2243
+ description: description,
2170
2244
  }
2171
2245
 
2172
2246
  api_headers = {
@@ -2193,6 +2267,7 @@ module Appwrite
2193
2267
  # @param [] required Is column required?
2194
2268
  # @param [Array] default Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], …], listing the vertices of the line in order. Cannot be set when column is required.
2195
2269
  # @param [String] new_key New Column Key.
2270
+ # @param [String] description Optional description for the column.
2196
2271
  #
2197
2272
  # @return [ColumnLine]
2198
2273
  def update_line_column(
@@ -2201,22 +2276,18 @@ module Appwrite
2201
2276
  key:,
2202
2277
  required:,
2203
2278
  default: nil,
2204
- new_key: nil
2279
+ new_key: nil,
2280
+ description: nil
2205
2281
  )
2206
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/line/{key}'
2207
- .gsub('{databaseId}', database_id)
2208
- .gsub('{tableId}', table_id)
2209
- .gsub('{key}', key)
2210
-
2211
- if database_id.nil?
2282
+ if database_id.nil? || database_id == ''
2212
2283
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2213
2284
  end
2214
2285
 
2215
- if table_id.nil?
2286
+ if table_id.nil? || table_id == ''
2216
2287
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2217
2288
  end
2218
2289
 
2219
- if key.nil?
2290
+ if key.nil? || key == ''
2220
2291
  raise Appwrite::Exception.new('Missing required parameter: "key"')
2221
2292
  end
2222
2293
 
@@ -2224,10 +2295,16 @@ module Appwrite
2224
2295
  raise Appwrite::Exception.new('Missing required parameter: "required"')
2225
2296
  end
2226
2297
 
2298
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/line/{key}'
2299
+ .gsub('{databaseId}', database_id)
2300
+ .gsub('{tableId}', table_id)
2301
+ .gsub('{key}', key)
2302
+
2227
2303
  api_params = {
2228
2304
  required: required,
2229
2305
  default: default,
2230
2306
  newKey: new_key,
2307
+ description: description,
2231
2308
  }
2232
2309
 
2233
2310
  api_headers = {
@@ -2255,6 +2332,7 @@ module Appwrite
2255
2332
  # @param [String] default Default value for column when not provided. Cannot be set when column is required.
2256
2333
  # @param [] array Is column an array?
2257
2334
  # @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.
2335
+ # @param [String] description Optional description for the column.
2258
2336
  #
2259
2337
  # @return [ColumnLongtext]
2260
2338
  def create_longtext_column(
@@ -2264,17 +2342,14 @@ module Appwrite
2264
2342
  required:,
2265
2343
  default: nil,
2266
2344
  array: nil,
2267
- encrypt: nil
2345
+ encrypt: nil,
2346
+ description: nil
2268
2347
  )
2269
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/longtext'
2270
- .gsub('{databaseId}', database_id)
2271
- .gsub('{tableId}', table_id)
2272
-
2273
- if database_id.nil?
2348
+ if database_id.nil? || database_id == ''
2274
2349
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2275
2350
  end
2276
2351
 
2277
- if table_id.nil?
2352
+ if table_id.nil? || table_id == ''
2278
2353
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2279
2354
  end
2280
2355
 
@@ -2286,12 +2361,17 @@ module Appwrite
2286
2361
  raise Appwrite::Exception.new('Missing required parameter: "required"')
2287
2362
  end
2288
2363
 
2364
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/longtext'
2365
+ .gsub('{databaseId}', database_id)
2366
+ .gsub('{tableId}', table_id)
2367
+
2289
2368
  api_params = {
2290
2369
  key: key,
2291
2370
  required: required,
2292
2371
  default: default,
2293
2372
  array: array,
2294
2373
  encrypt: encrypt,
2374
+ description: description,
2295
2375
  }
2296
2376
 
2297
2377
  api_headers = {
@@ -2319,6 +2399,7 @@ module Appwrite
2319
2399
  # @param [] required Is column required?
2320
2400
  # @param [String] default Default value for column when not provided. Cannot be set when column is required.
2321
2401
  # @param [String] new_key New Column Key.
2402
+ # @param [String] description Optional description for the column.
2322
2403
  #
2323
2404
  # @return [ColumnLongtext]
2324
2405
  def update_longtext_column(
@@ -2327,22 +2408,18 @@ module Appwrite
2327
2408
  key:,
2328
2409
  required:,
2329
2410
  default:,
2330
- new_key: nil
2411
+ new_key: nil,
2412
+ description: nil
2331
2413
  )
2332
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/longtext/{key}'
2333
- .gsub('{databaseId}', database_id)
2334
- .gsub('{tableId}', table_id)
2335
- .gsub('{key}', key)
2336
-
2337
- if database_id.nil?
2414
+ if database_id.nil? || database_id == ''
2338
2415
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2339
2416
  end
2340
2417
 
2341
- if table_id.nil?
2418
+ if table_id.nil? || table_id == ''
2342
2419
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2343
2420
  end
2344
2421
 
2345
- if key.nil?
2422
+ if key.nil? || key == ''
2346
2423
  raise Appwrite::Exception.new('Missing required parameter: "key"')
2347
2424
  end
2348
2425
 
@@ -2354,10 +2431,16 @@ module Appwrite
2354
2431
  raise Appwrite::Exception.new('Missing required parameter: "default"')
2355
2432
  end
2356
2433
 
2434
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/longtext/{key}'
2435
+ .gsub('{databaseId}', database_id)
2436
+ .gsub('{tableId}', table_id)
2437
+ .gsub('{key}', key)
2438
+
2357
2439
  api_params = {
2358
2440
  required: required,
2359
2441
  default: default,
2360
2442
  newKey: new_key,
2443
+ description: description,
2361
2444
  }
2362
2445
 
2363
2446
  api_headers = {
@@ -2385,6 +2468,7 @@ module Appwrite
2385
2468
  # @param [String] default Default value for column when not provided. Cannot be set when column is required.
2386
2469
  # @param [] array Is column an array?
2387
2470
  # @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.
2471
+ # @param [String] description Optional description for the column.
2388
2472
  #
2389
2473
  # @return [ColumnMediumtext]
2390
2474
  def create_mediumtext_column(
@@ -2394,17 +2478,14 @@ module Appwrite
2394
2478
  required:,
2395
2479
  default: nil,
2396
2480
  array: nil,
2397
- encrypt: nil
2481
+ encrypt: nil,
2482
+ description: nil
2398
2483
  )
2399
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/mediumtext'
2400
- .gsub('{databaseId}', database_id)
2401
- .gsub('{tableId}', table_id)
2402
-
2403
- if database_id.nil?
2484
+ if database_id.nil? || database_id == ''
2404
2485
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2405
2486
  end
2406
2487
 
2407
- if table_id.nil?
2488
+ if table_id.nil? || table_id == ''
2408
2489
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2409
2490
  end
2410
2491
 
@@ -2416,12 +2497,17 @@ module Appwrite
2416
2497
  raise Appwrite::Exception.new('Missing required parameter: "required"')
2417
2498
  end
2418
2499
 
2500
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/mediumtext'
2501
+ .gsub('{databaseId}', database_id)
2502
+ .gsub('{tableId}', table_id)
2503
+
2419
2504
  api_params = {
2420
2505
  key: key,
2421
2506
  required: required,
2422
2507
  default: default,
2423
2508
  array: array,
2424
2509
  encrypt: encrypt,
2510
+ description: description,
2425
2511
  }
2426
2512
 
2427
2513
  api_headers = {
@@ -2449,6 +2535,7 @@ module Appwrite
2449
2535
  # @param [] required Is column required?
2450
2536
  # @param [String] default Default value for column when not provided. Cannot be set when column is required.
2451
2537
  # @param [String] new_key New Column Key.
2538
+ # @param [String] description Optional description for the column.
2452
2539
  #
2453
2540
  # @return [ColumnMediumtext]
2454
2541
  def update_mediumtext_column(
@@ -2457,22 +2544,18 @@ module Appwrite
2457
2544
  key:,
2458
2545
  required:,
2459
2546
  default:,
2460
- new_key: nil
2547
+ new_key: nil,
2548
+ description: nil
2461
2549
  )
2462
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/mediumtext/{key}'
2463
- .gsub('{databaseId}', database_id)
2464
- .gsub('{tableId}', table_id)
2465
- .gsub('{key}', key)
2466
-
2467
- if database_id.nil?
2550
+ if database_id.nil? || database_id == ''
2468
2551
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2469
2552
  end
2470
2553
 
2471
- if table_id.nil?
2554
+ if table_id.nil? || table_id == ''
2472
2555
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2473
2556
  end
2474
2557
 
2475
- if key.nil?
2558
+ if key.nil? || key == ''
2476
2559
  raise Appwrite::Exception.new('Missing required parameter: "key"')
2477
2560
  end
2478
2561
 
@@ -2484,10 +2567,16 @@ module Appwrite
2484
2567
  raise Appwrite::Exception.new('Missing required parameter: "default"')
2485
2568
  end
2486
2569
 
2570
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/mediumtext/{key}'
2571
+ .gsub('{databaseId}', database_id)
2572
+ .gsub('{tableId}', table_id)
2573
+ .gsub('{key}', key)
2574
+
2487
2575
  api_params = {
2488
2576
  required: required,
2489
2577
  default: default,
2490
2578
  newKey: new_key,
2579
+ description: description,
2491
2580
  }
2492
2581
 
2493
2582
  api_headers = {
@@ -2512,6 +2601,7 @@ module Appwrite
2512
2601
  # @param [String] key Column Key.
2513
2602
  # @param [] required Is column required?
2514
2603
  # @param [Array] default Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.
2604
+ # @param [String] description Optional description for the column.
2515
2605
  #
2516
2606
  # @return [ColumnPoint]
2517
2607
  def create_point_column(
@@ -2519,17 +2609,14 @@ module Appwrite
2519
2609
  table_id:,
2520
2610
  key:,
2521
2611
  required:,
2522
- default: nil
2612
+ default: nil,
2613
+ description: nil
2523
2614
  )
2524
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/point'
2525
- .gsub('{databaseId}', database_id)
2526
- .gsub('{tableId}', table_id)
2527
-
2528
- if database_id.nil?
2615
+ if database_id.nil? || database_id == ''
2529
2616
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2530
2617
  end
2531
2618
 
2532
- if table_id.nil?
2619
+ if table_id.nil? || table_id == ''
2533
2620
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2534
2621
  end
2535
2622
 
@@ -2541,10 +2628,15 @@ module Appwrite
2541
2628
  raise Appwrite::Exception.new('Missing required parameter: "required"')
2542
2629
  end
2543
2630
 
2631
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/point'
2632
+ .gsub('{databaseId}', database_id)
2633
+ .gsub('{tableId}', table_id)
2634
+
2544
2635
  api_params = {
2545
2636
  key: key,
2546
2637
  required: required,
2547
2638
  default: default,
2639
+ description: description,
2548
2640
  }
2549
2641
 
2550
2642
  api_headers = {
@@ -2571,6 +2663,7 @@ module Appwrite
2571
2663
  # @param [] required Is column required?
2572
2664
  # @param [Array] default Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.
2573
2665
  # @param [String] new_key New Column Key.
2666
+ # @param [String] description Optional description for the column.
2574
2667
  #
2575
2668
  # @return [ColumnPoint]
2576
2669
  def update_point_column(
@@ -2579,22 +2672,18 @@ module Appwrite
2579
2672
  key:,
2580
2673
  required:,
2581
2674
  default: nil,
2582
- new_key: nil
2675
+ new_key: nil,
2676
+ description: nil
2583
2677
  )
2584
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/point/{key}'
2585
- .gsub('{databaseId}', database_id)
2586
- .gsub('{tableId}', table_id)
2587
- .gsub('{key}', key)
2588
-
2589
- if database_id.nil?
2678
+ if database_id.nil? || database_id == ''
2590
2679
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2591
2680
  end
2592
2681
 
2593
- if table_id.nil?
2682
+ if table_id.nil? || table_id == ''
2594
2683
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2595
2684
  end
2596
2685
 
2597
- if key.nil?
2686
+ if key.nil? || key == ''
2598
2687
  raise Appwrite::Exception.new('Missing required parameter: "key"')
2599
2688
  end
2600
2689
 
@@ -2602,10 +2691,16 @@ module Appwrite
2602
2691
  raise Appwrite::Exception.new('Missing required parameter: "required"')
2603
2692
  end
2604
2693
 
2694
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/point/{key}'
2695
+ .gsub('{databaseId}', database_id)
2696
+ .gsub('{tableId}', table_id)
2697
+ .gsub('{key}', key)
2698
+
2605
2699
  api_params = {
2606
2700
  required: required,
2607
2701
  default: default,
2608
2702
  newKey: new_key,
2703
+ description: description,
2609
2704
  }
2610
2705
 
2611
2706
  api_headers = {
@@ -2630,6 +2725,7 @@ module Appwrite
2630
2725
  # @param [String] key Column Key.
2631
2726
  # @param [] required Is column required?
2632
2727
  # @param [Array] default Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], …], …], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.
2728
+ # @param [String] description Optional description for the column.
2633
2729
  #
2634
2730
  # @return [ColumnPolygon]
2635
2731
  def create_polygon_column(
@@ -2637,17 +2733,14 @@ module Appwrite
2637
2733
  table_id:,
2638
2734
  key:,
2639
2735
  required:,
2640
- default: nil
2736
+ default: nil,
2737
+ description: nil
2641
2738
  )
2642
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/polygon'
2643
- .gsub('{databaseId}', database_id)
2644
- .gsub('{tableId}', table_id)
2645
-
2646
- if database_id.nil?
2739
+ if database_id.nil? || database_id == ''
2647
2740
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2648
2741
  end
2649
2742
 
2650
- if table_id.nil?
2743
+ if table_id.nil? || table_id == ''
2651
2744
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2652
2745
  end
2653
2746
 
@@ -2659,10 +2752,15 @@ module Appwrite
2659
2752
  raise Appwrite::Exception.new('Missing required parameter: "required"')
2660
2753
  end
2661
2754
 
2755
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/polygon'
2756
+ .gsub('{databaseId}', database_id)
2757
+ .gsub('{tableId}', table_id)
2758
+
2662
2759
  api_params = {
2663
2760
  key: key,
2664
2761
  required: required,
2665
2762
  default: default,
2763
+ description: description,
2666
2764
  }
2667
2765
 
2668
2766
  api_headers = {
@@ -2689,6 +2787,7 @@ module Appwrite
2689
2787
  # @param [] required Is column required?
2690
2788
  # @param [Array] default Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], …], …], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.
2691
2789
  # @param [String] new_key New Column Key.
2790
+ # @param [String] description Optional description for the column.
2692
2791
  #
2693
2792
  # @return [ColumnPolygon]
2694
2793
  def update_polygon_column(
@@ -2697,22 +2796,18 @@ module Appwrite
2697
2796
  key:,
2698
2797
  required:,
2699
2798
  default: nil,
2700
- new_key: nil
2799
+ new_key: nil,
2800
+ description: nil
2701
2801
  )
2702
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/polygon/{key}'
2703
- .gsub('{databaseId}', database_id)
2704
- .gsub('{tableId}', table_id)
2705
- .gsub('{key}', key)
2706
-
2707
- if database_id.nil?
2802
+ if database_id.nil? || database_id == ''
2708
2803
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2709
2804
  end
2710
2805
 
2711
- if table_id.nil?
2806
+ if table_id.nil? || table_id == ''
2712
2807
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2713
2808
  end
2714
2809
 
2715
- if key.nil?
2810
+ if key.nil? || key == ''
2716
2811
  raise Appwrite::Exception.new('Missing required parameter: "key"')
2717
2812
  end
2718
2813
 
@@ -2720,10 +2815,16 @@ module Appwrite
2720
2815
  raise Appwrite::Exception.new('Missing required parameter: "required"')
2721
2816
  end
2722
2817
 
2818
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/polygon/{key}'
2819
+ .gsub('{databaseId}', database_id)
2820
+ .gsub('{tableId}', table_id)
2821
+ .gsub('{key}', key)
2822
+
2723
2823
  api_params = {
2724
2824
  required: required,
2725
2825
  default: default,
2726
2826
  newKey: new_key,
2827
+ description: description,
2727
2828
  }
2728
2829
 
2729
2830
  api_headers = {
@@ -2753,6 +2854,7 @@ module Appwrite
2753
2854
  # @param [String] key Column Key.
2754
2855
  # @param [String] two_way_key Two Way Column Key.
2755
2856
  # @param [RelationMutate] on_delete Delete constraint. Possible values are: cascade, restrict, setNull.
2857
+ # @param [String] description Optional description for the column.
2756
2858
  #
2757
2859
  # @return [ColumnRelationship]
2758
2860
  def create_relationship_column(
@@ -2763,17 +2865,14 @@ module Appwrite
2763
2865
  two_way: nil,
2764
2866
  key: nil,
2765
2867
  two_way_key: nil,
2766
- on_delete: nil
2868
+ on_delete: nil,
2869
+ description: nil
2767
2870
  )
2768
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/relationship'
2769
- .gsub('{databaseId}', database_id)
2770
- .gsub('{tableId}', table_id)
2771
-
2772
- if database_id.nil?
2871
+ if database_id.nil? || database_id == ''
2773
2872
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2774
2873
  end
2775
2874
 
2776
- if table_id.nil?
2875
+ if table_id.nil? || table_id == ''
2777
2876
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2778
2877
  end
2779
2878
 
@@ -2785,6 +2884,10 @@ module Appwrite
2785
2884
  raise Appwrite::Exception.new('Missing required parameter: "type"')
2786
2885
  end
2787
2886
 
2887
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/relationship'
2888
+ .gsub('{databaseId}', database_id)
2889
+ .gsub('{tableId}', table_id)
2890
+
2788
2891
  api_params = {
2789
2892
  relatedTableId: related_table_id,
2790
2893
  type: type,
@@ -2792,6 +2895,7 @@ module Appwrite
2792
2895
  key: key,
2793
2896
  twoWayKey: two_way_key,
2794
2897
  onDelete: on_delete,
2898
+ description: description,
2795
2899
  }
2796
2900
 
2797
2901
  api_headers = {
@@ -2809,20 +2913,79 @@ module Appwrite
2809
2913
  )
2810
2914
  end
2811
2915
 
2812
- #
2813
- # @deprecated This API has been deprecated since 1.9.0. Please use `TablesDB.createTextColumn` instead.
2814
- #
2815
- # Create a string column.
2916
+ # Update relationship column. [Learn more about relationship
2917
+ # columns](https://appwrite.io/docs/databases-relationships#relationship-columns).
2816
2918
  #
2817
2919
  #
2818
2920
  # @param [String] database_id Database ID.
2819
- # @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).
2921
+ # @param [String] table_id Table ID.
2820
2922
  # @param [String] key Column Key.
2821
- # @param [Integer] size Column size for text columns, in number of characters.
2822
- # @param [] required Is column required?
2823
- # @param [String] default Default value for column when not provided. Cannot be set when column is required.
2824
- # @param [] array Is column an array?
2923
+ # @param [RelationMutate] on_delete Delete constraint. Possible values are: cascade, restrict, setNull.
2924
+ # @param [String] new_key New Column Key.
2925
+ # @param [String] description Optional description for the column.
2926
+ #
2927
+ # @return [ColumnRelationship]
2928
+ def update_relationship_column(
2929
+ database_id:,
2930
+ table_id:,
2931
+ key:,
2932
+ on_delete: nil,
2933
+ new_key: nil,
2934
+ description: nil
2935
+ )
2936
+ if database_id.nil? || database_id == ''
2937
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2938
+ end
2939
+
2940
+ if table_id.nil? || table_id == ''
2941
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2942
+ end
2943
+
2944
+ if key.nil? || key == ''
2945
+ raise Appwrite::Exception.new('Missing required parameter: "key"')
2946
+ end
2947
+
2948
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/relationship/{key}'
2949
+ .gsub('{databaseId}', database_id)
2950
+ .gsub('{tableId}', table_id)
2951
+ .gsub('{key}', key)
2952
+
2953
+ api_params = {
2954
+ onDelete: on_delete,
2955
+ newKey: new_key,
2956
+ description: description,
2957
+ }
2958
+
2959
+ api_headers = {
2960
+ "X-Appwrite-Project": @client.get_config('project'),
2961
+ "content-type": 'application/json',
2962
+ "accept": 'application/json',
2963
+ }
2964
+
2965
+ @client.call(
2966
+ method: 'PATCH',
2967
+ path: api_path,
2968
+ headers: api_headers,
2969
+ params: api_params,
2970
+ response_type: Models::ColumnRelationship
2971
+ )
2972
+ end
2973
+
2974
+ #
2975
+ # @deprecated This API has been deprecated since 1.9.0. Please use `TablesDB.createTextColumn` instead.
2976
+ #
2977
+ # Create a string column.
2978
+ #
2979
+ #
2980
+ # @param [String] database_id Database ID.
2981
+ # @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).
2982
+ # @param [String] key Column Key.
2983
+ # @param [Integer] size Column size for text columns, in number of characters.
2984
+ # @param [] required Is column required?
2985
+ # @param [String] default Default value for column when not provided. Cannot be set when column is required.
2986
+ # @param [] array Is column an array?
2825
2987
  # @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.
2988
+ # @param [String] description Optional description for the column.
2826
2989
  #
2827
2990
  # @return [ColumnString]
2828
2991
  def create_string_column(
@@ -2833,17 +2996,14 @@ module Appwrite
2833
2996
  required:,
2834
2997
  default: nil,
2835
2998
  array: nil,
2836
- encrypt: nil
2999
+ encrypt: nil,
3000
+ description: nil
2837
3001
  )
2838
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/string'
2839
- .gsub('{databaseId}', database_id)
2840
- .gsub('{tableId}', table_id)
2841
-
2842
- if database_id.nil?
3002
+ if database_id.nil? || database_id == ''
2843
3003
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2844
3004
  end
2845
3005
 
2846
- if table_id.nil?
3006
+ if table_id.nil? || table_id == ''
2847
3007
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2848
3008
  end
2849
3009
 
@@ -2859,6 +3019,10 @@ module Appwrite
2859
3019
  raise Appwrite::Exception.new('Missing required parameter: "required"')
2860
3020
  end
2861
3021
 
3022
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/string'
3023
+ .gsub('{databaseId}', database_id)
3024
+ .gsub('{tableId}', table_id)
3025
+
2862
3026
  api_params = {
2863
3027
  key: key,
2864
3028
  size: size,
@@ -2866,6 +3030,7 @@ module Appwrite
2866
3030
  default: default,
2867
3031
  array: array,
2868
3032
  encrypt: encrypt,
3033
+ description: description,
2869
3034
  }
2870
3035
 
2871
3036
  api_headers = {
@@ -2897,6 +3062,7 @@ module Appwrite
2897
3062
  # @param [String] default Default value for column when not provided. Cannot be set when column is required.
2898
3063
  # @param [Integer] size Maximum size of the string column.
2899
3064
  # @param [String] new_key New Column Key.
3065
+ # @param [String] description Optional description for the column.
2900
3066
  #
2901
3067
  # @return [ColumnString]
2902
3068
  def update_string_column(
@@ -2906,22 +3072,18 @@ module Appwrite
2906
3072
  required:,
2907
3073
  default:,
2908
3074
  size: nil,
2909
- new_key: nil
3075
+ new_key: nil,
3076
+ description: nil
2910
3077
  )
2911
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/string/{key}'
2912
- .gsub('{databaseId}', database_id)
2913
- .gsub('{tableId}', table_id)
2914
- .gsub('{key}', key)
2915
-
2916
- if database_id.nil?
3078
+ if database_id.nil? || database_id == ''
2917
3079
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2918
3080
  end
2919
3081
 
2920
- if table_id.nil?
3082
+ if table_id.nil? || table_id == ''
2921
3083
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2922
3084
  end
2923
3085
 
2924
- if key.nil?
3086
+ if key.nil? || key == ''
2925
3087
  raise Appwrite::Exception.new('Missing required parameter: "key"')
2926
3088
  end
2927
3089
 
@@ -2933,11 +3095,17 @@ module Appwrite
2933
3095
  raise Appwrite::Exception.new('Missing required parameter: "default"')
2934
3096
  end
2935
3097
 
3098
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/string/{key}'
3099
+ .gsub('{databaseId}', database_id)
3100
+ .gsub('{tableId}', table_id)
3101
+ .gsub('{key}', key)
3102
+
2936
3103
  api_params = {
2937
3104
  required: required,
2938
3105
  default: default,
2939
3106
  size: size,
2940
3107
  newKey: new_key,
3108
+ description: description,
2941
3109
  }
2942
3110
 
2943
3111
  api_headers = {
@@ -2965,6 +3133,7 @@ module Appwrite
2965
3133
  # @param [String] default Default value for column when not provided. Cannot be set when column is required.
2966
3134
  # @param [] array Is column an array?
2967
3135
  # @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.
3136
+ # @param [String] description Optional description for the column.
2968
3137
  #
2969
3138
  # @return [ColumnText]
2970
3139
  def create_text_column(
@@ -2974,17 +3143,14 @@ module Appwrite
2974
3143
  required:,
2975
3144
  default: nil,
2976
3145
  array: nil,
2977
- encrypt: nil
3146
+ encrypt: nil,
3147
+ description: nil
2978
3148
  )
2979
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/text'
2980
- .gsub('{databaseId}', database_id)
2981
- .gsub('{tableId}', table_id)
2982
-
2983
- if database_id.nil?
3149
+ if database_id.nil? || database_id == ''
2984
3150
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
2985
3151
  end
2986
3152
 
2987
- if table_id.nil?
3153
+ if table_id.nil? || table_id == ''
2988
3154
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
2989
3155
  end
2990
3156
 
@@ -2996,12 +3162,17 @@ module Appwrite
2996
3162
  raise Appwrite::Exception.new('Missing required parameter: "required"')
2997
3163
  end
2998
3164
 
3165
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/text'
3166
+ .gsub('{databaseId}', database_id)
3167
+ .gsub('{tableId}', table_id)
3168
+
2999
3169
  api_params = {
3000
3170
  key: key,
3001
3171
  required: required,
3002
3172
  default: default,
3003
3173
  array: array,
3004
3174
  encrypt: encrypt,
3175
+ description: description,
3005
3176
  }
3006
3177
 
3007
3178
  api_headers = {
@@ -3029,6 +3200,7 @@ module Appwrite
3029
3200
  # @param [] required Is column required?
3030
3201
  # @param [String] default Default value for column when not provided. Cannot be set when column is required.
3031
3202
  # @param [String] new_key New Column Key.
3203
+ # @param [String] description Optional description for the column.
3032
3204
  #
3033
3205
  # @return [ColumnText]
3034
3206
  def update_text_column(
@@ -3037,22 +3209,18 @@ module Appwrite
3037
3209
  key:,
3038
3210
  required:,
3039
3211
  default:,
3040
- new_key: nil
3212
+ new_key: nil,
3213
+ description: nil
3041
3214
  )
3042
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/text/{key}'
3043
- .gsub('{databaseId}', database_id)
3044
- .gsub('{tableId}', table_id)
3045
- .gsub('{key}', key)
3046
-
3047
- if database_id.nil?
3215
+ if database_id.nil? || database_id == ''
3048
3216
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3049
3217
  end
3050
3218
 
3051
- if table_id.nil?
3219
+ if table_id.nil? || table_id == ''
3052
3220
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3053
3221
  end
3054
3222
 
3055
- if key.nil?
3223
+ if key.nil? || key == ''
3056
3224
  raise Appwrite::Exception.new('Missing required parameter: "key"')
3057
3225
  end
3058
3226
 
@@ -3064,10 +3232,16 @@ module Appwrite
3064
3232
  raise Appwrite::Exception.new('Missing required parameter: "default"')
3065
3233
  end
3066
3234
 
3235
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/text/{key}'
3236
+ .gsub('{databaseId}', database_id)
3237
+ .gsub('{tableId}', table_id)
3238
+ .gsub('{key}', key)
3239
+
3067
3240
  api_params = {
3068
3241
  required: required,
3069
3242
  default: default,
3070
3243
  newKey: new_key,
3244
+ description: description,
3071
3245
  }
3072
3246
 
3073
3247
  api_headers = {
@@ -3094,6 +3268,7 @@ module Appwrite
3094
3268
  # @param [] required Is column required?
3095
3269
  # @param [String] default Default value for column when not provided. Cannot be set when column is required.
3096
3270
  # @param [] array Is column an array?
3271
+ # @param [String] description Optional description for the column.
3097
3272
  #
3098
3273
  # @return [ColumnUrl]
3099
3274
  def create_url_column(
@@ -3102,17 +3277,14 @@ module Appwrite
3102
3277
  key:,
3103
3278
  required:,
3104
3279
  default: nil,
3105
- array: nil
3280
+ array: nil,
3281
+ description: nil
3106
3282
  )
3107
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/url'
3108
- .gsub('{databaseId}', database_id)
3109
- .gsub('{tableId}', table_id)
3110
-
3111
- if database_id.nil?
3283
+ if database_id.nil? || database_id == ''
3112
3284
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3113
3285
  end
3114
3286
 
3115
- if table_id.nil?
3287
+ if table_id.nil? || table_id == ''
3116
3288
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3117
3289
  end
3118
3290
 
@@ -3124,11 +3296,16 @@ module Appwrite
3124
3296
  raise Appwrite::Exception.new('Missing required parameter: "required"')
3125
3297
  end
3126
3298
 
3299
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/url'
3300
+ .gsub('{databaseId}', database_id)
3301
+ .gsub('{tableId}', table_id)
3302
+
3127
3303
  api_params = {
3128
3304
  key: key,
3129
3305
  required: required,
3130
3306
  default: default,
3131
3307
  array: array,
3308
+ description: description,
3132
3309
  }
3133
3310
 
3134
3311
  api_headers = {
@@ -3156,6 +3333,7 @@ module Appwrite
3156
3333
  # @param [] required Is column required?
3157
3334
  # @param [String] default Default value for column when not provided. Cannot be set when column is required.
3158
3335
  # @param [String] new_key New Column Key.
3336
+ # @param [String] description Optional description for the column.
3159
3337
  #
3160
3338
  # @return [ColumnUrl]
3161
3339
  def update_url_column(
@@ -3164,22 +3342,18 @@ module Appwrite
3164
3342
  key:,
3165
3343
  required:,
3166
3344
  default:,
3167
- new_key: nil
3345
+ new_key: nil,
3346
+ description: nil
3168
3347
  )
3169
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/url/{key}'
3170
- .gsub('{databaseId}', database_id)
3171
- .gsub('{tableId}', table_id)
3172
- .gsub('{key}', key)
3173
-
3174
- if database_id.nil?
3348
+ if database_id.nil? || database_id == ''
3175
3349
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3176
3350
  end
3177
3351
 
3178
- if table_id.nil?
3352
+ if table_id.nil? || table_id == ''
3179
3353
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3180
3354
  end
3181
3355
 
3182
- if key.nil?
3356
+ if key.nil? || key == ''
3183
3357
  raise Appwrite::Exception.new('Missing required parameter: "key"')
3184
3358
  end
3185
3359
 
@@ -3191,10 +3365,16 @@ module Appwrite
3191
3365
  raise Appwrite::Exception.new('Missing required parameter: "default"')
3192
3366
  end
3193
3367
 
3368
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/url/{key}'
3369
+ .gsub('{databaseId}', database_id)
3370
+ .gsub('{tableId}', table_id)
3371
+ .gsub('{key}', key)
3372
+
3194
3373
  api_params = {
3195
3374
  required: required,
3196
3375
  default: default,
3197
3376
  newKey: new_key,
3377
+ description: description,
3198
3378
  }
3199
3379
 
3200
3380
  api_headers = {
@@ -3223,6 +3403,7 @@ module Appwrite
3223
3403
  # @param [String] default Default value for column when not provided. Cannot be set when column is required.
3224
3404
  # @param [] array Is column an array?
3225
3405
  # @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.
3406
+ # @param [String] description Optional description for the column.
3226
3407
  #
3227
3408
  # @return [ColumnVarchar]
3228
3409
  def create_varchar_column(
@@ -3233,17 +3414,14 @@ module Appwrite
3233
3414
  required:,
3234
3415
  default: nil,
3235
3416
  array: nil,
3236
- encrypt: nil
3417
+ encrypt: nil,
3418
+ description: nil
3237
3419
  )
3238
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/varchar'
3239
- .gsub('{databaseId}', database_id)
3240
- .gsub('{tableId}', table_id)
3241
-
3242
- if database_id.nil?
3420
+ if database_id.nil? || database_id == ''
3243
3421
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3244
3422
  end
3245
3423
 
3246
- if table_id.nil?
3424
+ if table_id.nil? || table_id == ''
3247
3425
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3248
3426
  end
3249
3427
 
@@ -3259,6 +3437,10 @@ module Appwrite
3259
3437
  raise Appwrite::Exception.new('Missing required parameter: "required"')
3260
3438
  end
3261
3439
 
3440
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/varchar'
3441
+ .gsub('{databaseId}', database_id)
3442
+ .gsub('{tableId}', table_id)
3443
+
3262
3444
  api_params = {
3263
3445
  key: key,
3264
3446
  size: size,
@@ -3266,6 +3448,7 @@ module Appwrite
3266
3448
  default: default,
3267
3449
  array: array,
3268
3450
  encrypt: encrypt,
3451
+ description: description,
3269
3452
  }
3270
3453
 
3271
3454
  api_headers = {
@@ -3294,6 +3477,7 @@ module Appwrite
3294
3477
  # @param [String] default Default value for column when not provided. Cannot be set when column is required.
3295
3478
  # @param [Integer] size Maximum size of the varchar column.
3296
3479
  # @param [String] new_key New Column Key.
3480
+ # @param [String] description Optional description for the column.
3297
3481
  #
3298
3482
  # @return [ColumnVarchar]
3299
3483
  def update_varchar_column(
@@ -3303,22 +3487,18 @@ module Appwrite
3303
3487
  required:,
3304
3488
  default:,
3305
3489
  size: nil,
3306
- new_key: nil
3490
+ new_key: nil,
3491
+ description: nil
3307
3492
  )
3308
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/varchar/{key}'
3309
- .gsub('{databaseId}', database_id)
3310
- .gsub('{tableId}', table_id)
3311
- .gsub('{key}', key)
3312
-
3313
- if database_id.nil?
3493
+ if database_id.nil? || database_id == ''
3314
3494
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3315
3495
  end
3316
3496
 
3317
- if table_id.nil?
3497
+ if table_id.nil? || table_id == ''
3318
3498
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3319
3499
  end
3320
3500
 
3321
- if key.nil?
3501
+ if key.nil? || key == ''
3322
3502
  raise Appwrite::Exception.new('Missing required parameter: "key"')
3323
3503
  end
3324
3504
 
@@ -3330,11 +3510,17 @@ module Appwrite
3330
3510
  raise Appwrite::Exception.new('Missing required parameter: "default"')
3331
3511
  end
3332
3512
 
3513
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/varchar/{key}'
3514
+ .gsub('{databaseId}', database_id)
3515
+ .gsub('{tableId}', table_id)
3516
+ .gsub('{key}', key)
3517
+
3333
3518
  api_params = {
3334
3519
  required: required,
3335
3520
  default: default,
3336
3521
  size: size,
3337
3522
  newKey: new_key,
3523
+ description: description,
3338
3524
  }
3339
3525
 
3340
3526
  api_headers = {
@@ -3358,29 +3544,29 @@ module Appwrite
3358
3544
  # @param [String] table_id Table ID.
3359
3545
  # @param [String] key Column Key.
3360
3546
  #
3361
- # @return [ColumnBoolean, ColumnInteger, ColumnFloat, ColumnEmail, ColumnEnum, ColumnUrl, ColumnIp, ColumnDatetime, ColumnRelationship, ColumnString]
3547
+ # @return [ColumnBoolean, ColumnBigint, ColumnInteger, ColumnFloat, ColumnEmail, ColumnEnum, ColumnUrl, ColumnIp, ColumnDatetime, ColumnRelationship, ColumnPoint, ColumnLine, ColumnPolygon, ColumnVarchar, ColumnText, ColumnMediumtext, ColumnLongtext, ColumnString]
3362
3548
  def get_column(
3363
3549
  database_id:,
3364
3550
  table_id:,
3365
3551
  key:
3366
3552
  )
3367
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/{key}'
3368
- .gsub('{databaseId}', database_id)
3369
- .gsub('{tableId}', table_id)
3370
- .gsub('{key}', key)
3371
-
3372
- if database_id.nil?
3553
+ if database_id.nil? || database_id == ''
3373
3554
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3374
3555
  end
3375
3556
 
3376
- if table_id.nil?
3557
+ if table_id.nil? || table_id == ''
3377
3558
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3378
3559
  end
3379
3560
 
3380
- if key.nil?
3561
+ if key.nil? || key == ''
3381
3562
  raise Appwrite::Exception.new('Missing required parameter: "key"')
3382
3563
  end
3383
3564
 
3565
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/{key}'
3566
+ .gsub('{databaseId}', database_id)
3567
+ .gsub('{tableId}', table_id)
3568
+ .gsub('{key}', key)
3569
+
3384
3570
  api_params = {}
3385
3571
 
3386
3572
  api_headers = {
@@ -3424,6 +3610,11 @@ module Appwrite
3424
3610
  return Models::ColumnBoolean.from(map: response)
3425
3611
  end
3426
3612
 
3613
+ if response['type'] == 'bigint'
3614
+
3615
+ return Models::ColumnBigint.from(map: response)
3616
+ end
3617
+
3427
3618
  if response['type'] == 'integer'
3428
3619
 
3429
3620
  return Models::ColumnInteger.from(map: response)
@@ -3444,6 +3635,41 @@ module Appwrite
3444
3635
  return Models::ColumnRelationship.from(map: response)
3445
3636
  end
3446
3637
 
3638
+ if response['type'] == 'point'
3639
+
3640
+ return Models::ColumnPoint.from(map: response)
3641
+ end
3642
+
3643
+ if response['type'] == 'linestring'
3644
+
3645
+ return Models::ColumnLine.from(map: response)
3646
+ end
3647
+
3648
+ if response['type'] == 'polygon'
3649
+
3650
+ return Models::ColumnPolygon.from(map: response)
3651
+ end
3652
+
3653
+ if response['type'] == 'varchar'
3654
+
3655
+ return Models::ColumnVarchar.from(map: response)
3656
+ end
3657
+
3658
+ if response['type'] == 'text'
3659
+
3660
+ return Models::ColumnText.from(map: response)
3661
+ end
3662
+
3663
+ if response['type'] == 'mediumtext'
3664
+
3665
+ return Models::ColumnMediumtext.from(map: response)
3666
+ end
3667
+
3668
+ if response['type'] == 'longtext'
3669
+
3670
+ return Models::ColumnLongtext.from(map: response)
3671
+ end
3672
+
3447
3673
  if response['type'] == 'string'
3448
3674
 
3449
3675
  return Models::ColumnString.from(map: response)
@@ -3464,77 +3690,24 @@ module Appwrite
3464
3690
  table_id:,
3465
3691
  key:
3466
3692
  )
3467
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/{key}'
3468
- .gsub('{databaseId}', database_id)
3469
- .gsub('{tableId}', table_id)
3470
- .gsub('{key}', key)
3471
-
3472
- if database_id.nil?
3693
+ if database_id.nil? || database_id == ''
3473
3694
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3474
3695
  end
3475
3696
 
3476
- if table_id.nil?
3697
+ if table_id.nil? || table_id == ''
3477
3698
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3478
3699
  end
3479
3700
 
3480
- if key.nil?
3701
+ if key.nil? || key == ''
3481
3702
  raise Appwrite::Exception.new('Missing required parameter: "key"')
3482
3703
  end
3483
3704
 
3484
- api_params = {}
3485
-
3486
- api_headers = {
3487
- "X-Appwrite-Project": @client.get_config('project'),
3488
- "content-type": 'application/json',
3489
- }
3490
-
3491
- @client.call(
3492
- method: 'DELETE',
3493
- path: api_path,
3494
- headers: api_headers,
3495
- params: api_params,
3496
- )
3497
- end
3498
-
3499
- # Update relationship column. [Learn more about relationship
3500
- # columns](https://appwrite.io/docs/databases-relationships#relationship-columns).
3501
- #
3502
- #
3503
- # @param [String] database_id Database ID.
3504
- # @param [String] table_id Table ID.
3505
- # @param [String] key Column Key.
3506
- # @param [RelationMutate] on_delete Delete constraint. Possible values are: cascade, restrict, setNull.
3507
- # @param [String] new_key New Column Key.
3508
- #
3509
- # @return [ColumnRelationship]
3510
- def update_relationship_column(
3511
- database_id:,
3512
- table_id:,
3513
- key:,
3514
- on_delete: nil,
3515
- new_key: nil
3516
- )
3517
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/{key}/relationship'
3705
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/{key}'
3518
3706
  .gsub('{databaseId}', database_id)
3519
3707
  .gsub('{tableId}', table_id)
3520
3708
  .gsub('{key}', key)
3521
3709
 
3522
- if database_id.nil?
3523
- raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3524
- end
3525
-
3526
- if table_id.nil?
3527
- raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3528
- end
3529
-
3530
- if key.nil?
3531
- raise Appwrite::Exception.new('Missing required parameter: "key"')
3532
- end
3533
-
3534
- api_params = {
3535
- onDelete: on_delete,
3536
- newKey: new_key,
3537
- }
3710
+ api_params = {}
3538
3711
 
3539
3712
  api_headers = {
3540
3713
  "X-Appwrite-Project": @client.get_config('project'),
@@ -3543,11 +3716,10 @@ module Appwrite
3543
3716
  }
3544
3717
 
3545
3718
  @client.call(
3546
- method: 'PATCH',
3719
+ method: 'DELETE',
3547
3720
  path: api_path,
3548
3721
  headers: api_headers,
3549
3722
  params: api_params,
3550
- response_type: Models::ColumnRelationship
3551
3723
  )
3552
3724
  end
3553
3725
 
@@ -3565,18 +3737,18 @@ module Appwrite
3565
3737
  queries: nil,
3566
3738
  total: nil
3567
3739
  )
3568
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/indexes'
3569
- .gsub('{databaseId}', database_id)
3570
- .gsub('{tableId}', table_id)
3571
-
3572
- if database_id.nil?
3740
+ if database_id.nil? || database_id == ''
3573
3741
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3574
3742
  end
3575
3743
 
3576
- if table_id.nil?
3744
+ if table_id.nil? || table_id == ''
3577
3745
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3578
3746
  end
3579
3747
 
3748
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/indexes'
3749
+ .gsub('{databaseId}', database_id)
3750
+ .gsub('{tableId}', table_id)
3751
+
3580
3752
  api_params = {
3581
3753
  queries: queries,
3582
3754
  total: total,
@@ -3598,7 +3770,9 @@ module Appwrite
3598
3770
 
3599
3771
  # Creates an index on the columns listed. Your index should include all the
3600
3772
  # columns you will query in a single request.
3601
- # Type can be `key`, `fulltext`, or `unique`.
3773
+ # Type can be `key`, `fulltext`, `unique`, `spatial`, or `trigram`. `trigram`
3774
+ # is only available on PostgreSQL and lets `contains`, `startsWith`, and
3775
+ # `endsWith` queries on string columns use an index.
3602
3776
  #
3603
3777
  # @param [String] database_id Database ID.
3604
3778
  # @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).
@@ -3607,6 +3781,7 @@ module Appwrite
3607
3781
  # @param [Array] columns Array of columns to index. Maximum of 100 columns are allowed, each 32 characters long.
3608
3782
  # @param [Array] orders Array of index orders. Maximum of 100 orders are allowed.
3609
3783
  # @param [Array] lengths Length of index. Maximum of 100
3784
+ # @param [String] description Optional description for the index.
3610
3785
  #
3611
3786
  # @return [ColumnIndex]
3612
3787
  def create_index(
@@ -3616,17 +3791,14 @@ module Appwrite
3616
3791
  type:,
3617
3792
  columns:,
3618
3793
  orders: nil,
3619
- lengths: nil
3794
+ lengths: nil,
3795
+ description: nil
3620
3796
  )
3621
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/indexes'
3622
- .gsub('{databaseId}', database_id)
3623
- .gsub('{tableId}', table_id)
3624
-
3625
- if database_id.nil?
3797
+ if database_id.nil? || database_id == ''
3626
3798
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3627
3799
  end
3628
3800
 
3629
- if table_id.nil?
3801
+ if table_id.nil? || table_id == ''
3630
3802
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3631
3803
  end
3632
3804
 
@@ -3642,12 +3814,17 @@ module Appwrite
3642
3814
  raise Appwrite::Exception.new('Missing required parameter: "columns"')
3643
3815
  end
3644
3816
 
3817
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/indexes'
3818
+ .gsub('{databaseId}', database_id)
3819
+ .gsub('{tableId}', table_id)
3820
+
3645
3821
  api_params = {
3646
3822
  key: key,
3647
3823
  type: type,
3648
3824
  columns: columns,
3649
3825
  orders: orders,
3650
3826
  lengths: lengths,
3827
+ description: description,
3651
3828
  }
3652
3829
 
3653
3830
  api_headers = {
@@ -3677,23 +3854,23 @@ module Appwrite
3677
3854
  table_id:,
3678
3855
  key:
3679
3856
  )
3680
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/indexes/{key}'
3681
- .gsub('{databaseId}', database_id)
3682
- .gsub('{tableId}', table_id)
3683
- .gsub('{key}', key)
3684
-
3685
- if database_id.nil?
3857
+ if database_id.nil? || database_id == ''
3686
3858
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3687
3859
  end
3688
3860
 
3689
- if table_id.nil?
3861
+ if table_id.nil? || table_id == ''
3690
3862
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3691
3863
  end
3692
3864
 
3693
- if key.nil?
3865
+ if key.nil? || key == ''
3694
3866
  raise Appwrite::Exception.new('Missing required parameter: "key"')
3695
3867
  end
3696
3868
 
3869
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/indexes/{key}'
3870
+ .gsub('{databaseId}', database_id)
3871
+ .gsub('{tableId}', table_id)
3872
+ .gsub('{key}', key)
3873
+
3697
3874
  api_params = {}
3698
3875
 
3699
3876
  api_headers = {
@@ -3722,28 +3899,29 @@ module Appwrite
3722
3899
  table_id:,
3723
3900
  key:
3724
3901
  )
3725
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/indexes/{key}'
3726
- .gsub('{databaseId}', database_id)
3727
- .gsub('{tableId}', table_id)
3728
- .gsub('{key}', key)
3729
-
3730
- if database_id.nil?
3902
+ if database_id.nil? || database_id == ''
3731
3903
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3732
3904
  end
3733
3905
 
3734
- if table_id.nil?
3906
+ if table_id.nil? || table_id == ''
3735
3907
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3736
3908
  end
3737
3909
 
3738
- if key.nil?
3910
+ if key.nil? || key == ''
3739
3911
  raise Appwrite::Exception.new('Missing required parameter: "key"')
3740
3912
  end
3741
3913
 
3914
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/indexes/{key}'
3915
+ .gsub('{databaseId}', database_id)
3916
+ .gsub('{tableId}', table_id)
3917
+ .gsub('{key}', key)
3918
+
3742
3919
  api_params = {}
3743
3920
 
3744
3921
  api_headers = {
3745
3922
  "X-Appwrite-Project": @client.get_config('project'),
3746
3923
  "content-type": 'application/json',
3924
+ "accept": 'application/json',
3747
3925
  }
3748
3926
 
3749
3927
  @client.call(
@@ -3757,12 +3935,20 @@ module Appwrite
3757
3935
  # Get a list of all the user's rows in a given table. You can use the query
3758
3936
  # params to filter your results.
3759
3937
  #
3938
+ # Rows returned by aggregate, groupBy or distinct queries hold only the
3939
+ # columns they select, group or aggregate, typed as a row types them, with a
3940
+ # joined column named by its join alias (`alias.column`). The response omits
3941
+ # their `$id`, `$sequence`, `$createdAt`, `$updatedAt`, `$permissions`,
3942
+ # `$databaseId` and `$tableId` unless they select or group it, and those of a
3943
+ # right or full join row that no row of this table matched. SDK row models
3944
+ # fill omitted system columns with empty values.
3945
+ #
3760
3946
  # @param [String] database_id Database ID.
3761
3947
  # @param [String] table_id Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/products/databases/tables#create-table).
3762
3948
  # @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). Maximum of 100 queries are allowed, each 4096 characters long.
3763
3949
  # @param [String] transaction_id Transaction ID to read uncommitted changes within the transaction.
3764
3950
  # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
3765
- # @param [Integer] ttl TTL (seconds) for caching list responses. Responses are stored in an in-memory key-value cache, keyed per project, table, schema version (columns and indexes), caller authorization roles, and the exact query — so users with different permissions never share cached entries. Schema changes invalidate cached entries automatically; row writes do not, so choose a TTL you are comfortable serving as stale data. Set to 0 to disable caching. Must be between 0 and 86400 (24 hours).
3951
+ # @param [Integer] ttl TTL (seconds) for caching list responses. Responses are stored in an in-memory key-value cache, keyed per project, table, schema version (columns and indexes), caller authorization roles, and the exact query — so users with different permissions never share cached entries. Schema changes invalidate cached entries automatically; row writes do not, so choose a TTL you are comfortable serving as stale data. Set to 0 to disable caching. Lists with join queries are not cached. Must be between 0 and 86400 (24 hours).
3766
3952
  #
3767
3953
  # @return [RowList]
3768
3954
  def list_rows(
@@ -3773,18 +3959,18 @@ module Appwrite
3773
3959
  total: nil,
3774
3960
  ttl: nil
3775
3961
  )
3776
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows'
3777
- .gsub('{databaseId}', database_id)
3778
- .gsub('{tableId}', table_id)
3779
-
3780
- if database_id.nil?
3962
+ if database_id.nil? || database_id == ''
3781
3963
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3782
3964
  end
3783
3965
 
3784
- if table_id.nil?
3966
+ if table_id.nil? || table_id == ''
3785
3967
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3786
3968
  end
3787
3969
 
3970
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows'
3971
+ .gsub('{databaseId}', database_id)
3972
+ .gsub('{tableId}', table_id)
3973
+
3788
3974
  api_params = {
3789
3975
  queries: queries,
3790
3976
  transactionId: transaction_id,
@@ -3827,15 +4013,11 @@ module Appwrite
3827
4013
  permissions: nil,
3828
4014
  transaction_id: nil
3829
4015
  )
3830
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows'
3831
- .gsub('{databaseId}', database_id)
3832
- .gsub('{tableId}', table_id)
3833
-
3834
- if database_id.nil?
4016
+ if database_id.nil? || database_id == ''
3835
4017
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3836
4018
  end
3837
4019
 
3838
- if table_id.nil?
4020
+ if table_id.nil? || table_id == ''
3839
4021
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3840
4022
  end
3841
4023
 
@@ -3847,6 +4029,10 @@ module Appwrite
3847
4029
  raise Appwrite::Exception.new('Missing required parameter: "data"')
3848
4030
  end
3849
4031
 
4032
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows'
4033
+ .gsub('{databaseId}', database_id)
4034
+ .gsub('{tableId}', table_id)
4035
+
3850
4036
  api_params = {
3851
4037
  rowId: row_id,
3852
4038
  data: data,
@@ -3886,15 +4072,11 @@ module Appwrite
3886
4072
  rows:,
3887
4073
  transaction_id: nil
3888
4074
  )
3889
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows'
3890
- .gsub('{databaseId}', database_id)
3891
- .gsub('{tableId}', table_id)
3892
-
3893
- if database_id.nil?
4075
+ if database_id.nil? || database_id == ''
3894
4076
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3895
4077
  end
3896
4078
 
3897
- if table_id.nil?
4079
+ if table_id.nil? || table_id == ''
3898
4080
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3899
4081
  end
3900
4082
 
@@ -3902,6 +4084,10 @@ module Appwrite
3902
4084
  raise Appwrite::Exception.new('Missing required parameter: "rows"')
3903
4085
  end
3904
4086
 
4087
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows'
4088
+ .gsub('{databaseId}', database_id)
4089
+ .gsub('{tableId}', table_id)
4090
+
3905
4091
  api_params = {
3906
4092
  rows: rows,
3907
4093
  transactionId: transaction_id,
@@ -3940,15 +4126,11 @@ module Appwrite
3940
4126
  rows:,
3941
4127
  transaction_id: nil
3942
4128
  )
3943
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows'
3944
- .gsub('{databaseId}', database_id)
3945
- .gsub('{tableId}', table_id)
3946
-
3947
- if database_id.nil?
4129
+ if database_id.nil? || database_id == ''
3948
4130
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
3949
4131
  end
3950
4132
 
3951
- if table_id.nil?
4133
+ if table_id.nil? || table_id == ''
3952
4134
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
3953
4135
  end
3954
4136
 
@@ -3956,6 +4138,10 @@ module Appwrite
3956
4138
  raise Appwrite::Exception.new('Missing required parameter: "rows"')
3957
4139
  end
3958
4140
 
4141
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows'
4142
+ .gsub('{databaseId}', database_id)
4143
+ .gsub('{tableId}', table_id)
4144
+
3959
4145
  api_params = {
3960
4146
  rows: rows,
3961
4147
  transactionId: transaction_id,
@@ -3993,18 +4179,18 @@ module Appwrite
3993
4179
  queries: nil,
3994
4180
  transaction_id: nil
3995
4181
  )
3996
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows'
3997
- .gsub('{databaseId}', database_id)
3998
- .gsub('{tableId}', table_id)
3999
-
4000
- if database_id.nil?
4182
+ if database_id.nil? || database_id == ''
4001
4183
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
4002
4184
  end
4003
4185
 
4004
- if table_id.nil?
4186
+ if table_id.nil? || table_id == ''
4005
4187
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
4006
4188
  end
4007
4189
 
4190
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows'
4191
+ .gsub('{databaseId}', database_id)
4192
+ .gsub('{tableId}', table_id)
4193
+
4008
4194
  api_params = {
4009
4195
  data: data,
4010
4196
  queries: queries,
@@ -4041,21 +4227,77 @@ module Appwrite
4041
4227
  queries: nil,
4042
4228
  transaction_id: nil
4043
4229
  )
4230
+ if database_id.nil? || database_id == ''
4231
+ raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
4232
+ end
4233
+
4234
+ if table_id.nil? || table_id == ''
4235
+ raise Appwrite::Exception.new('Missing required parameter: "tableId"')
4236
+ end
4237
+
4044
4238
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows'
4045
4239
  .gsub('{databaseId}', database_id)
4046
4240
  .gsub('{tableId}', table_id)
4047
4241
 
4048
- if database_id.nil?
4242
+ api_params = {
4243
+ queries: queries,
4244
+ transactionId: transaction_id,
4245
+ }
4246
+
4247
+ api_headers = {
4248
+ "X-Appwrite-Project": @client.get_config('project'),
4249
+ "content-type": 'application/json',
4250
+ "accept": 'application/json',
4251
+ }
4252
+
4253
+ @client.call(
4254
+ method: 'DELETE',
4255
+ path: api_path,
4256
+ headers: api_headers,
4257
+ params: api_params,
4258
+ response_type: Models::RowList
4259
+ )
4260
+ end
4261
+
4262
+ # Get a list of all the user's rows in a given table using a POST request.
4263
+ # This behaves identically to the list rows endpoint but accepts the queries
4264
+ # in the request body, allowing much larger `queries` arrays than can fit in
4265
+ # a URL query string.
4266
+ #
4267
+ #
4268
+ # @param [String] database_id Database ID.
4269
+ # @param [String] table_id Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/products/databases/tables#create-table).
4270
+ # @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). Maximum of 100 queries are allowed, each 4096 characters long.
4271
+ # @param [String] transaction_id Transaction ID to read uncommitted changes within the transaction.
4272
+ # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
4273
+ # @param [Integer] ttl TTL (seconds) for caching list responses. Responses are stored in an in-memory key-value cache, keyed per project, table, schema version (columns and indexes), caller authorization roles, and the exact query — so users with different permissions never share cached entries. Schema changes invalidate cached entries automatically; row writes do not, so choose a TTL you are comfortable serving as stale data. Set to 0 to disable caching. Lists with join queries are not cached. Must be between 0 and 86400 (24 hours).
4274
+ #
4275
+ # @return [RowList]
4276
+ def create_query(
4277
+ database_id:,
4278
+ table_id:,
4279
+ queries: nil,
4280
+ transaction_id: nil,
4281
+ total: nil,
4282
+ ttl: nil
4283
+ )
4284
+ if database_id.nil? || database_id == ''
4049
4285
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
4050
4286
  end
4051
4287
 
4052
- if table_id.nil?
4288
+ if table_id.nil? || table_id == ''
4053
4289
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
4054
4290
  end
4055
4291
 
4292
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows/query'
4293
+ .gsub('{databaseId}', database_id)
4294
+ .gsub('{tableId}', table_id)
4295
+
4056
4296
  api_params = {
4057
4297
  queries: queries,
4058
4298
  transactionId: transaction_id,
4299
+ total: total,
4300
+ ttl: ttl,
4059
4301
  }
4060
4302
 
4061
4303
  api_headers = {
@@ -4065,7 +4307,7 @@ module Appwrite
4065
4307
  }
4066
4308
 
4067
4309
  @client.call(
4068
- method: 'DELETE',
4310
+ method: 'POST',
4069
4311
  path: api_path,
4070
4312
  headers: api_headers,
4071
4313
  params: api_params,
@@ -4090,23 +4332,23 @@ module Appwrite
4090
4332
  queries: nil,
4091
4333
  transaction_id: nil
4092
4334
  )
4093
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}'
4094
- .gsub('{databaseId}', database_id)
4095
- .gsub('{tableId}', table_id)
4096
- .gsub('{rowId}', row_id)
4097
-
4098
- if database_id.nil?
4335
+ if database_id.nil? || database_id == ''
4099
4336
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
4100
4337
  end
4101
4338
 
4102
- if table_id.nil?
4339
+ if table_id.nil? || table_id == ''
4103
4340
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
4104
4341
  end
4105
4342
 
4106
- if row_id.nil?
4343
+ if row_id.nil? || row_id == ''
4107
4344
  raise Appwrite::Exception.new('Missing required parameter: "rowId"')
4108
4345
  end
4109
4346
 
4347
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}'
4348
+ .gsub('{databaseId}', database_id)
4349
+ .gsub('{tableId}', table_id)
4350
+ .gsub('{rowId}', row_id)
4351
+
4110
4352
  api_params = {
4111
4353
  queries: queries,
4112
4354
  transactionId: transaction_id,
@@ -4147,23 +4389,23 @@ module Appwrite
4147
4389
  permissions: nil,
4148
4390
  transaction_id: nil
4149
4391
  )
4150
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}'
4151
- .gsub('{databaseId}', database_id)
4152
- .gsub('{tableId}', table_id)
4153
- .gsub('{rowId}', row_id)
4154
-
4155
- if database_id.nil?
4392
+ if database_id.nil? || database_id == ''
4156
4393
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
4157
4394
  end
4158
4395
 
4159
- if table_id.nil?
4396
+ if table_id.nil? || table_id == ''
4160
4397
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
4161
4398
  end
4162
4399
 
4163
- if row_id.nil?
4400
+ if row_id.nil? || row_id == ''
4164
4401
  raise Appwrite::Exception.new('Missing required parameter: "rowId"')
4165
4402
  end
4166
4403
 
4404
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}'
4405
+ .gsub('{databaseId}', database_id)
4406
+ .gsub('{tableId}', table_id)
4407
+ .gsub('{rowId}', row_id)
4408
+
4167
4409
  api_params = {
4168
4410
  data: data,
4169
4411
  permissions: permissions,
@@ -4204,23 +4446,23 @@ module Appwrite
4204
4446
  permissions: nil,
4205
4447
  transaction_id: nil
4206
4448
  )
4207
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}'
4208
- .gsub('{databaseId}', database_id)
4209
- .gsub('{tableId}', table_id)
4210
- .gsub('{rowId}', row_id)
4211
-
4212
- if database_id.nil?
4449
+ if database_id.nil? || database_id == ''
4213
4450
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
4214
4451
  end
4215
4452
 
4216
- if table_id.nil?
4453
+ if table_id.nil? || table_id == ''
4217
4454
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
4218
4455
  end
4219
4456
 
4220
- if row_id.nil?
4457
+ if row_id.nil? || row_id == ''
4221
4458
  raise Appwrite::Exception.new('Missing required parameter: "rowId"')
4222
4459
  end
4223
4460
 
4461
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}'
4462
+ .gsub('{databaseId}', database_id)
4463
+ .gsub('{tableId}', table_id)
4464
+ .gsub('{rowId}', row_id)
4465
+
4224
4466
  api_params = {
4225
4467
  data: data,
4226
4468
  permissions: permissions,
@@ -4256,23 +4498,23 @@ module Appwrite
4256
4498
  row_id:,
4257
4499
  transaction_id: nil
4258
4500
  )
4259
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}'
4260
- .gsub('{databaseId}', database_id)
4261
- .gsub('{tableId}', table_id)
4262
- .gsub('{rowId}', row_id)
4263
-
4264
- if database_id.nil?
4501
+ if database_id.nil? || database_id == ''
4265
4502
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
4266
4503
  end
4267
4504
 
4268
- if table_id.nil?
4505
+ if table_id.nil? || table_id == ''
4269
4506
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
4270
4507
  end
4271
4508
 
4272
- if row_id.nil?
4509
+ if row_id.nil? || row_id == ''
4273
4510
  raise Appwrite::Exception.new('Missing required parameter: "rowId"')
4274
4511
  end
4275
4512
 
4513
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}'
4514
+ .gsub('{databaseId}', database_id)
4515
+ .gsub('{tableId}', table_id)
4516
+ .gsub('{rowId}', row_id)
4517
+
4276
4518
  api_params = {
4277
4519
  transactionId: transaction_id,
4278
4520
  }
@@ -4280,6 +4522,7 @@ module Appwrite
4280
4522
  api_headers = {
4281
4523
  "X-Appwrite-Project": @client.get_config('project'),
4282
4524
  "content-type": 'application/json',
4525
+ "accept": 'application/json',
4283
4526
  }
4284
4527
 
4285
4528
  @client.call(
@@ -4310,28 +4553,28 @@ module Appwrite
4310
4553
  min: nil,
4311
4554
  transaction_id: nil
4312
4555
  )
4313
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}/{column}/decrement'
4314
- .gsub('{databaseId}', database_id)
4315
- .gsub('{tableId}', table_id)
4316
- .gsub('{rowId}', row_id)
4317
- .gsub('{column}', column)
4318
-
4319
- if database_id.nil?
4556
+ if database_id.nil? || database_id == ''
4320
4557
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
4321
4558
  end
4322
4559
 
4323
- if table_id.nil?
4560
+ if table_id.nil? || table_id == ''
4324
4561
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
4325
4562
  end
4326
4563
 
4327
- if row_id.nil?
4564
+ if row_id.nil? || row_id == ''
4328
4565
  raise Appwrite::Exception.new('Missing required parameter: "rowId"')
4329
4566
  end
4330
4567
 
4331
- if column.nil?
4568
+ if column.nil? || column == ''
4332
4569
  raise Appwrite::Exception.new('Missing required parameter: "column"')
4333
4570
  end
4334
4571
 
4572
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}/{column}/decrement'
4573
+ .gsub('{databaseId}', database_id)
4574
+ .gsub('{tableId}', table_id)
4575
+ .gsub('{rowId}', row_id)
4576
+ .gsub('{column}', column)
4577
+
4335
4578
  api_params = {
4336
4579
  value: value,
4337
4580
  min: min,
@@ -4373,28 +4616,28 @@ module Appwrite
4373
4616
  max: nil,
4374
4617
  transaction_id: nil
4375
4618
  )
4376
- api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}/{column}/increment'
4377
- .gsub('{databaseId}', database_id)
4378
- .gsub('{tableId}', table_id)
4379
- .gsub('{rowId}', row_id)
4380
- .gsub('{column}', column)
4381
-
4382
- if database_id.nil?
4619
+ if database_id.nil? || database_id == ''
4383
4620
  raise Appwrite::Exception.new('Missing required parameter: "databaseId"')
4384
4621
  end
4385
4622
 
4386
- if table_id.nil?
4623
+ if table_id.nil? || table_id == ''
4387
4624
  raise Appwrite::Exception.new('Missing required parameter: "tableId"')
4388
4625
  end
4389
4626
 
4390
- if row_id.nil?
4627
+ if row_id.nil? || row_id == ''
4391
4628
  raise Appwrite::Exception.new('Missing required parameter: "rowId"')
4392
4629
  end
4393
4630
 
4394
- if column.nil?
4631
+ if column.nil? || column == ''
4395
4632
  raise Appwrite::Exception.new('Missing required parameter: "column"')
4396
4633
  end
4397
4634
 
4635
+ api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}/{column}/increment'
4636
+ .gsub('{databaseId}', database_id)
4637
+ .gsub('{tableId}', table_id)
4638
+ .gsub('{rowId}', row_id)
4639
+ .gsub('{column}', column)
4640
+
4398
4641
  api_params = {
4399
4642
  value: value,
4400
4643
  max: max,