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