appwrite 22.0.0__tar.gz → 22.1.0__tar.gz
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.
- {appwrite-22.0.0 → appwrite-22.1.0}/PKG-INFO +2 -2
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/client.py +2 -2
- appwrite-22.1.0/appwrite/enums/database_status.py +17 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/database_type.py +3 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/project_key_scopes.py +3 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/__init__.py +32 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/activity_event.py +33 -0
- appwrite-22.1.0/appwrite/models/app_scope.py +27 -0
- appwrite-22.1.0/appwrite/models/app_scope_list.py +19 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/app_secret.py +1 -1
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/app_secret_plaintext.py +1 -1
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/billing_plan.py +3 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/database.py +8 -5
- appwrite-22.1.0/appwrite/models/database_status.py +39 -0
- appwrite-22.1.0/appwrite/models/database_status_connections.py +18 -0
- appwrite-22.1.0/appwrite/models/database_status_replica.py +24 -0
- appwrite-22.1.0/appwrite/models/database_status_volume.py +24 -0
- appwrite-22.1.0/appwrite/models/dedicated_database.py +159 -0
- appwrite-22.1.0/appwrite/models/dedicated_database_member.py +24 -0
- appwrite-22.1.0/appwrite/models/dedicated_database_replicas.py +22 -0
- appwrite-22.1.0/appwrite/models/dedicated_database_specification.py +39 -0
- appwrite-22.1.0/appwrite/models/dedicated_database_specification_list.py +23 -0
- appwrite-22.1.0/appwrite/models/dedicated_database_specification_pricing.py +27 -0
- appwrite-22.1.0/appwrite/models/oauth2_consent.py +42 -0
- appwrite-22.1.0/appwrite/models/oauth2_consent_list.py +19 -0
- appwrite-22.1.0/appwrite/models/oauth2_consent_token.py +45 -0
- appwrite-22.1.0/appwrite/models/oauth2_consent_token_list.py +19 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/project.py +3 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/services/account.py +267 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/services/apps.py +34 -5
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/services/backups.py +9 -8
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/services/oauth2.py +108 -5
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/services/sites.py +6 -1
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/services/tables_db.py +167 -2
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite.egg-info/PKG-INFO +2 -2
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite.egg-info/SOURCES.txt +16 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/pyproject.toml +1 -1
- {appwrite-22.0.0 → appwrite-22.1.0}/setup.py +2 -2
- appwrite-22.0.0/appwrite/enums/database_status.py +0 -6
- {appwrite-22.0.0 → appwrite-22.1.0}/LICENSE +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/README.md +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/__init__.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/encoders/__init__.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/encoders/value_class_encoder.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/__init__.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/adapter.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/attribute_status.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/authentication_factor.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/authenticator_type.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/backup_services.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/billing_plan_group.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/browser.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/browser_permission.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/browser_theme.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/build_runtime.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/column_status.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/compression.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/credit_card.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/databases_index_type.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/deployment_download_type.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/deployment_status.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/execution_method.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/execution_status.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/execution_trigger.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/flag.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/framework.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/image_format.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/image_gravity.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/index_status.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/message_priority.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/message_status.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/messaging_provider_type.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/o_auth2_google_prompt.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/o_auth2_oidc_prompt.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/o_auth_provider.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/order_by.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/organization_key_scopes.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/password_hash.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/platform_type.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/project_auth_method_id.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/project_email_template_id.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/project_email_template_locale.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/project_o_auth2_google_prompt.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/project_o_auth2_oidc_prompt.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/project_o_auth_provider_id.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/project_policy_id.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/project_protocol_id.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/project_service_id.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/project_smtp_secure.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/proxy_resource_type.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/proxy_rule_deployment_resource_type.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/proxy_rule_status.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/region.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/relation_mutate.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/relationship_type.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/runtime.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/smtp_encryption.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/status_code.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/tables_db_index_type.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/template_reference_type.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/timezone.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/enums/vcs_reference_type.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/exception.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/id.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/input_file.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/activity_event_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/additional_resource.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/algo_argon2.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/algo_bcrypt.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/algo_md5.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/algo_phpass.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/algo_scrypt.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/algo_scrypt_modified.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/algo_sha.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/app.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/app_secret_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/apps_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/attribute_bigint.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/attribute_boolean.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/attribute_datetime.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/attribute_email.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/attribute_enum.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/attribute_float.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/attribute_integer.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/attribute_ip.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/attribute_line.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/attribute_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/attribute_longtext.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/attribute_mediumtext.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/attribute_point.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/attribute_polygon.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/attribute_relationship.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/attribute_string.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/attribute_text.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/attribute_url.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/attribute_varchar.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/backup_archive.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/backup_archive_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/backup_policy.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/backup_policy_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/backup_restoration.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/backup_restoration_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/base_model.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/billing_limits.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/billing_plan_addon.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/billing_plan_addon_details.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/billing_plan_dedicated_database_limits.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/billing_plan_limits.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/billing_plan_supported_addons.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/block.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/bucket.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/bucket_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/collection.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/collection_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/column_bigint.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/column_boolean.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/column_datetime.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/column_email.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/column_enum.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/column_float.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/column_index.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/column_index_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/column_integer.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/column_ip.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/column_line.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/column_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/column_longtext.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/column_mediumtext.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/column_point.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/column_polygon.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/column_relationship.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/column_string.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/column_text.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/column_url.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/column_varchar.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/continent.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/continent_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/country.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/country_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/currency.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/currency_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/database_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/deployment.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/deployment_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/dev_key.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/document.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/document_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/email_template.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/email_template_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/ephemeral_key.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/execution.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/execution_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/file.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/file_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/framework.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/framework_adapter.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/framework_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/function.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/function_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/headers.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/identity.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/identity_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/index.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/index_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/insight.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/insight_cta.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/insight_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/jwt.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/key.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/key_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/language.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/language_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/locale.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/locale_code.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/locale_code_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/log.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/log_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/membership.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/membership_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/message.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/message_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/mfa_challenge.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/mfa_factors.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/mfa_recovery_codes.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/mfa_type.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/mock_number.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/mock_number_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_amazon.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_apple.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_appwrite.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_auth0.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_authentik.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_autodesk.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_bitbucket.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_bitly.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_box.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_dailymotion.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_discord.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_disqus.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_dropbox.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_etsy.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_facebook.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_figma.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_fusion_auth.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_github.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_gitlab.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_google.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_keycloak.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_kick.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_linkedin.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_microsoft.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_notion.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_oidc.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_okta.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_paypal.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_podio.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_provider_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_salesforce.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_slack.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_spotify.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_stripe.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_tradeshift.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_twitch.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_word_press.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_x.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_yahoo.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_yandex.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_zoho.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_zoom.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/oauth2_approve.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/oauth2_authorize.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/oauth2_device_authorization.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/oauth2_grant.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/oauth2_organization.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/oauth2_organization_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/oauth2_par.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/oauth2_project.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/oauth2_project_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/oauth2_reject.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/oauth2_token.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/organization.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/phone.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/phone_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/platform_android.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/platform_apple.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/platform_linux.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/platform_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/platform_web.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/platform_windows.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/policy_deny_aliased_email.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/policy_deny_corporate_email.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/policy_deny_disposable_email.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/policy_deny_free_email.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/policy_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/policy_membership_privacy.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/policy_password_dictionary.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/policy_password_history.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/policy_password_personal_data.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/policy_password_strength.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/policy_session_alert.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/policy_session_duration.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/policy_session_invalidation.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/policy_session_limit.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/policy_user_limit.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/preferences.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/presence.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/presence_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/program.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/project_auth_method.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/project_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/project_protocol.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/project_service.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/provider.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/provider_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/proxy_rule.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/proxy_rule_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/report.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/report_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/resource_token.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/resource_token_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/row.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/row_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/runtime.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/runtime_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/session.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/session_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/site.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/site_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/specification.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/specification_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/subscriber.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/subscriber_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/table.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/table_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/target.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/target_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/team.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/team_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/token.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/topic.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/topic_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/transaction.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/transaction_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/usage_billing_plan.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/user.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/user_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/variable.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/variable_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/webhook.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/models/webhook_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/operator.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/permission.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/query.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/role.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/service.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/services/__init__.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/services/activities.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/services/advisor.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/services/avatars.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/services/databases.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/services/functions.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/services/graphql.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/services/locale.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/services/messaging.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/services/organization.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/services/presences.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/services/project.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/services/proxy.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/services/storage.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/services/teams.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/services/tokens.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/services/users.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/services/webhooks.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/utils/__init__.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite/utils/deprecated.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite.egg-info/dependency_links.txt +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite.egg-info/requires.txt +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/appwrite.egg-info/top_level.txt +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/setup.cfg +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/test/test_id.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/test/test_operator.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/test/test_permission.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/test/test_query.py +0 -0
- {appwrite-22.0.0 → appwrite-22.1.0}/test/test_role.py +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: appwrite
|
|
3
|
-
Version: 22.
|
|
3
|
+
Version: 22.1.0
|
|
4
4
|
Summary: Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API
|
|
5
5
|
Home-page: https://appwrite.io/support
|
|
6
|
-
Download-URL: https://github.com/appwrite/sdk-for-python/archive/22.
|
|
6
|
+
Download-URL: https://github.com/appwrite/sdk-for-python/archive/22.1.0.tar.gz
|
|
7
7
|
Author: Appwrite Team
|
|
8
8
|
Author-email: Appwrite Team <team@appwrite.io>
|
|
9
9
|
Maintainer: Appwrite Team
|
|
@@ -17,11 +17,11 @@ class Client:
|
|
|
17
17
|
self._endpoint = 'https://cloud.appwrite.io/v1'
|
|
18
18
|
self._global_headers = {
|
|
19
19
|
'content-type': '',
|
|
20
|
-
'user-agent' : f'AppwritePythonSDK/22.
|
|
20
|
+
'user-agent' : f'AppwritePythonSDK/22.1.0 ({platform.uname().system}; {platform.uname().version}; {platform.uname().machine})',
|
|
21
21
|
'x-sdk-name': 'Python',
|
|
22
22
|
'x-sdk-platform': 'server',
|
|
23
23
|
'x-sdk-language': 'python',
|
|
24
|
-
'x-sdk-version': '22.
|
|
24
|
+
'x-sdk-version': '22.1.0',
|
|
25
25
|
'X-Appwrite-Response-Format' : '1.9.5',
|
|
26
26
|
}
|
|
27
27
|
self._config = {}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
from enum import Enum
|
|
2
|
+
|
|
3
|
+
class DatabaseStatus(Enum):
|
|
4
|
+
PROVISIONING = "provisioning"
|
|
5
|
+
READY = "ready"
|
|
6
|
+
INACTIVE = "inactive"
|
|
7
|
+
PAUSED = "paused"
|
|
8
|
+
FAILED = "failed"
|
|
9
|
+
DELETING = "deleting"
|
|
10
|
+
DELETED = "deleted"
|
|
11
|
+
RESTORING = "restoring"
|
|
12
|
+
SCALING = "scaling"
|
|
13
|
+
UPGRADING = "upgrading"
|
|
14
|
+
MIGRATING = "migrating"
|
|
15
|
+
PAUSING = "pausing"
|
|
16
|
+
RESUMING = "resuming"
|
|
17
|
+
FAILING_OVER = "failing-over"
|
|
@@ -96,9 +96,12 @@ class ProjectKeyScopes(Enum):
|
|
|
96
96
|
DEDICATEDDATABASES_EXECUTE = "dedicatedDatabases.execute"
|
|
97
97
|
DOMAINS_READ = "domains.read"
|
|
98
98
|
DOMAINS_WRITE = "domains.write"
|
|
99
|
+
WAFRULES_READ = "wafRules.read"
|
|
100
|
+
WAFRULES_WRITE = "wafRules.write"
|
|
99
101
|
EVENTS_READ = "events.read"
|
|
100
102
|
APPS_READ = "apps.read"
|
|
101
103
|
APPS_WRITE = "apps.write"
|
|
102
104
|
OAUTH2_READ = "oauth2.read"
|
|
103
105
|
OAUTH2_WRITE = "oauth2.write"
|
|
106
|
+
OAUTH2_INTROSPECT = "oauth2.introspect"
|
|
104
107
|
USAGE_READ = "usage.read"
|
|
@@ -220,6 +220,10 @@ from .billing_plan_limits import BillingPlanLimits
|
|
|
220
220
|
from .billing_plan_dedicated_database_limits import BillingPlanDedicatedDatabaseLimits
|
|
221
221
|
from .billing_plan_supported_addons import BillingPlanSupportedAddons
|
|
222
222
|
from .block import Block
|
|
223
|
+
from .dedicated_database import DedicatedDatabase
|
|
224
|
+
from .database_status import DatabaseStatus
|
|
225
|
+
from .dedicated_database_member import DedicatedDatabaseMember
|
|
226
|
+
from .dedicated_database_replicas import DedicatedDatabaseReplicas
|
|
223
227
|
from .organization import Organization
|
|
224
228
|
from .backup_policy import BackupPolicy
|
|
225
229
|
from .policy_deny_aliased_email import PolicyDenyAliasedEmail
|
|
@@ -228,10 +232,17 @@ from .policy_deny_free_email import PolicyDenyFreeEmail
|
|
|
228
232
|
from .policy_deny_corporate_email import PolicyDenyCorporateEmail
|
|
229
233
|
from .program import Program
|
|
230
234
|
from .backup_restoration import BackupRestoration
|
|
235
|
+
from .dedicated_database_specification import DedicatedDatabaseSpecification
|
|
236
|
+
from .dedicated_database_specification_list import DedicatedDatabaseSpecificationList
|
|
237
|
+
from .dedicated_database_specification_pricing import DedicatedDatabaseSpecificationPricing
|
|
238
|
+
from .database_status_connections import DatabaseStatusConnections
|
|
239
|
+
from .database_status_replica import DatabaseStatusReplica
|
|
240
|
+
from .database_status_volume import DatabaseStatusVolume
|
|
231
241
|
from .usage_billing_plan import UsageBillingPlan
|
|
232
242
|
from .app import App
|
|
233
243
|
from .app_secret import AppSecret
|
|
234
244
|
from .app_secret_plaintext import AppSecretPlaintext
|
|
245
|
+
from .app_scope import AppScope
|
|
235
246
|
from .oauth2_authorize import Oauth2Authorize
|
|
236
247
|
from .oauth2_approve import Oauth2Approve
|
|
237
248
|
from .oauth2_reject import Oauth2Reject
|
|
@@ -239,16 +250,21 @@ from .oauth2_grant import Oauth2Grant
|
|
|
239
250
|
from .oauth2_device_authorization import Oauth2DeviceAuthorization
|
|
240
251
|
from .oauth2_par import Oauth2PAR
|
|
241
252
|
from .oauth2_token import Oauth2Token
|
|
253
|
+
from .oauth2_consent import Oauth2Consent
|
|
254
|
+
from .oauth2_consent_token import Oauth2ConsentToken
|
|
242
255
|
from .oauth2_project import Oauth2Project
|
|
243
256
|
from .oauth2_organization import Oauth2Organization
|
|
244
257
|
from .oauth2_project_list import Oauth2ProjectList
|
|
245
258
|
from .oauth2_organization_list import Oauth2OrganizationList
|
|
259
|
+
from .oauth2_consent_list import Oauth2ConsentList
|
|
260
|
+
from .oauth2_consent_token_list import Oauth2ConsentTokenList
|
|
246
261
|
from .activity_event_list import ActivityEventList
|
|
247
262
|
from .backup_archive_list import BackupArchiveList
|
|
248
263
|
from .backup_policy_list import BackupPolicyList
|
|
249
264
|
from .backup_restoration_list import BackupRestorationList
|
|
250
265
|
from .apps_list import AppsList
|
|
251
266
|
from .app_secret_list import AppSecretList
|
|
267
|
+
from .app_scope_list import AppScopeList
|
|
252
268
|
|
|
253
269
|
__all__ = [
|
|
254
270
|
'AppwriteModel',
|
|
@@ -473,6 +489,10 @@ __all__ = [
|
|
|
473
489
|
'BillingPlanDedicatedDatabaseLimits',
|
|
474
490
|
'BillingPlanSupportedAddons',
|
|
475
491
|
'Block',
|
|
492
|
+
'DedicatedDatabase',
|
|
493
|
+
'DatabaseStatus',
|
|
494
|
+
'DedicatedDatabaseMember',
|
|
495
|
+
'DedicatedDatabaseReplicas',
|
|
476
496
|
'Organization',
|
|
477
497
|
'BackupPolicy',
|
|
478
498
|
'PolicyDenyAliasedEmail',
|
|
@@ -481,10 +501,17 @@ __all__ = [
|
|
|
481
501
|
'PolicyDenyCorporateEmail',
|
|
482
502
|
'Program',
|
|
483
503
|
'BackupRestoration',
|
|
504
|
+
'DedicatedDatabaseSpecification',
|
|
505
|
+
'DedicatedDatabaseSpecificationList',
|
|
506
|
+
'DedicatedDatabaseSpecificationPricing',
|
|
507
|
+
'DatabaseStatusConnections',
|
|
508
|
+
'DatabaseStatusReplica',
|
|
509
|
+
'DatabaseStatusVolume',
|
|
484
510
|
'UsageBillingPlan',
|
|
485
511
|
'App',
|
|
486
512
|
'AppSecret',
|
|
487
513
|
'AppSecretPlaintext',
|
|
514
|
+
'AppScope',
|
|
488
515
|
'Oauth2Authorize',
|
|
489
516
|
'Oauth2Approve',
|
|
490
517
|
'Oauth2Reject',
|
|
@@ -492,14 +519,19 @@ __all__ = [
|
|
|
492
519
|
'Oauth2DeviceAuthorization',
|
|
493
520
|
'Oauth2PAR',
|
|
494
521
|
'Oauth2Token',
|
|
522
|
+
'Oauth2Consent',
|
|
523
|
+
'Oauth2ConsentToken',
|
|
495
524
|
'Oauth2Project',
|
|
496
525
|
'Oauth2Organization',
|
|
497
526
|
'Oauth2ProjectList',
|
|
498
527
|
'Oauth2OrganizationList',
|
|
528
|
+
'Oauth2ConsentList',
|
|
529
|
+
'Oauth2ConsentTokenList',
|
|
499
530
|
'ActivityEventList',
|
|
500
531
|
'BackupArchiveList',
|
|
501
532
|
'BackupPolicyList',
|
|
502
533
|
'BackupRestorationList',
|
|
503
534
|
'AppsList',
|
|
504
535
|
'AppSecretList',
|
|
536
|
+
'AppScopeList',
|
|
505
537
|
]
|
|
@@ -37,6 +37,24 @@ class ActivityEvent(AppwriteModel):
|
|
|
37
37
|
API mode when event triggered.
|
|
38
38
|
country : str
|
|
39
39
|
Location.
|
|
40
|
+
continentcode : str
|
|
41
|
+
Continent code.
|
|
42
|
+
city : str
|
|
43
|
+
City name.
|
|
44
|
+
subdivisions : str
|
|
45
|
+
Region/state chain.
|
|
46
|
+
isp : str
|
|
47
|
+
Internet service provider.
|
|
48
|
+
autonomoussystemnumber : str
|
|
49
|
+
Autonomous System Number (ASN).
|
|
50
|
+
autonomoussystemorganization : str
|
|
51
|
+
Organization that owns the ASN.
|
|
52
|
+
connectiontype : str
|
|
53
|
+
Connection type (e.g. cable, cellular, corporate).
|
|
54
|
+
connectionusagetype : str
|
|
55
|
+
User type (e.g. residential, business, hosting).
|
|
56
|
+
connectionorganization : str
|
|
57
|
+
Registered organization of the IP.
|
|
40
58
|
time : str
|
|
41
59
|
Log creation date in ISO 8601 format.
|
|
42
60
|
projectid : str
|
|
@@ -45,6 +63,10 @@ class ActivityEvent(AppwriteModel):
|
|
|
45
63
|
Team ID.
|
|
46
64
|
hostname : str
|
|
47
65
|
Hostname.
|
|
66
|
+
sdk : str
|
|
67
|
+
Name of the SDK that triggered the event.
|
|
68
|
+
sdkversion : str
|
|
69
|
+
Version of the SDK that triggered the event.
|
|
48
70
|
"""
|
|
49
71
|
id: str = Field(..., alias='$id')
|
|
50
72
|
actortype: str = Field(..., alias='actorType')
|
|
@@ -60,7 +82,18 @@ class ActivityEvent(AppwriteModel):
|
|
|
60
82
|
ip: str = Field(..., alias='ip')
|
|
61
83
|
mode: str = Field(..., alias='mode')
|
|
62
84
|
country: str = Field(..., alias='country')
|
|
85
|
+
continentcode: str = Field(..., alias='continentCode')
|
|
86
|
+
city: str = Field(..., alias='city')
|
|
87
|
+
subdivisions: str = Field(..., alias='subdivisions')
|
|
88
|
+
isp: str = Field(..., alias='isp')
|
|
89
|
+
autonomoussystemnumber: str = Field(..., alias='autonomousSystemNumber')
|
|
90
|
+
autonomoussystemorganization: str = Field(..., alias='autonomousSystemOrganization')
|
|
91
|
+
connectiontype: str = Field(..., alias='connectionType')
|
|
92
|
+
connectionusagetype: str = Field(..., alias='connectionUsageType')
|
|
93
|
+
connectionorganization: str = Field(..., alias='connectionOrganization')
|
|
63
94
|
time: str = Field(..., alias='time')
|
|
64
95
|
projectid: str = Field(..., alias='projectId')
|
|
65
96
|
teamid: str = Field(..., alias='teamId')
|
|
66
97
|
hostname: str = Field(..., alias='hostname')
|
|
98
|
+
sdk: str = Field(..., alias='sdk')
|
|
99
|
+
sdkversion: str = Field(..., alias='sdkVersion')
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Optional, Union, cast
|
|
2
|
+
from pydantic import Field, PrivateAttr
|
|
3
|
+
|
|
4
|
+
from .base_model import AppwriteModel
|
|
5
|
+
|
|
6
|
+
class AppScope(AppwriteModel):
|
|
7
|
+
"""
|
|
8
|
+
AppScope
|
|
9
|
+
|
|
10
|
+
Attributes
|
|
11
|
+
----------
|
|
12
|
+
value : str
|
|
13
|
+
Scope value as requested by apps.
|
|
14
|
+
description : str
|
|
15
|
+
Human-readable description of what the scope grants.
|
|
16
|
+
type : str
|
|
17
|
+
What the scope grants access to. One of `account`, `project`, or `organization`. Only `project` and `organization` scopes are installable.
|
|
18
|
+
category : str
|
|
19
|
+
Scope category, used to group scopes on consent and installation screens.
|
|
20
|
+
deprecated : bool
|
|
21
|
+
Whether the scope is deprecated. Deprecated scopes can still be requested but should not be offered for new grants.
|
|
22
|
+
"""
|
|
23
|
+
value: str = Field(..., alias='value')
|
|
24
|
+
description: str = Field(..., alias='description')
|
|
25
|
+
type: str = Field(..., alias='type')
|
|
26
|
+
category: str = Field(..., alias='category')
|
|
27
|
+
deprecated: bool = Field(..., alias='deprecated')
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Optional, Union, cast
|
|
2
|
+
from pydantic import Field, PrivateAttr
|
|
3
|
+
|
|
4
|
+
from .base_model import AppwriteModel
|
|
5
|
+
from .app_scope import AppScope
|
|
6
|
+
|
|
7
|
+
class AppScopeList(AppwriteModel):
|
|
8
|
+
"""
|
|
9
|
+
App scopes list
|
|
10
|
+
|
|
11
|
+
Attributes
|
|
12
|
+
----------
|
|
13
|
+
total : float
|
|
14
|
+
Total number of scopes that matched your query.
|
|
15
|
+
scopes : List[AppScope]
|
|
16
|
+
List of scopes.
|
|
17
|
+
"""
|
|
18
|
+
total: float = Field(..., alias='total')
|
|
19
|
+
scopes: List[AppScope] = Field(..., alias='scopes')
|
|
@@ -18,7 +18,7 @@ class AppSecret(AppwriteModel):
|
|
|
18
18
|
appid : str
|
|
19
19
|
Application ID this secret belongs to.
|
|
20
20
|
secret : str
|
|
21
|
-
|
|
21
|
+
Always empty. The application client secret is returned only once, in the response of the createSecret method.
|
|
22
22
|
hint : str
|
|
23
23
|
Last few characters of the client secret, used to help identify it.
|
|
24
24
|
createdbyid : str
|
|
@@ -18,7 +18,7 @@ class AppSecretPlaintext(AppwriteModel):
|
|
|
18
18
|
appid : str
|
|
19
19
|
Application ID this secret belongs to.
|
|
20
20
|
secret : str
|
|
21
|
-
Application client secret. Returned
|
|
21
|
+
Application client secret. Returned only when the secret is created; subsequent reads always return an empty value.
|
|
22
22
|
hint : str
|
|
23
23
|
Last few characters of the client secret, used to help identify it.
|
|
24
24
|
createdbyid : str
|
|
@@ -40,6 +40,8 @@ class BillingPlan(AppwriteModel):
|
|
|
40
40
|
Members
|
|
41
41
|
webhooks : float
|
|
42
42
|
Webhooks
|
|
43
|
+
wafrules : float
|
|
44
|
+
Maximum WAF rules per project
|
|
43
45
|
projects : float
|
|
44
46
|
Projects
|
|
45
47
|
platforms : float
|
|
@@ -165,6 +167,7 @@ class BillingPlan(AppwriteModel):
|
|
|
165
167
|
screenshotsgenerated: float = Field(..., alias='screenshotsGenerated')
|
|
166
168
|
members: float = Field(..., alias='members')
|
|
167
169
|
webhooks: float = Field(..., alias='webhooks')
|
|
170
|
+
wafrules: float = Field(..., alias='wafRules')
|
|
168
171
|
projects: float = Field(..., alias='projects')
|
|
169
172
|
platforms: float = Field(..., alias='platforms')
|
|
170
173
|
users: float = Field(..., alias='users')
|
|
@@ -26,10 +26,12 @@ class Database(AppwriteModel):
|
|
|
26
26
|
type : DatabaseType
|
|
27
27
|
Database type.
|
|
28
28
|
status : Optional[DatabaseStatus]
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
Dedicated database lifecycle status. Null when the database has no valid dedicated backing.
|
|
30
|
+
replicas : Optional[float]
|
|
31
|
+
Number of secondary high availability replicas, excluding the primary. Null when backing configuration is unavailable.
|
|
32
|
+
policies : Optional[List[BackupPolicy]]
|
|
31
33
|
Database backup policies.
|
|
32
|
-
archives : List[BackupArchive]
|
|
34
|
+
archives : Optional[List[BackupArchive]]
|
|
33
35
|
Database backup archives.
|
|
34
36
|
"""
|
|
35
37
|
id: str = Field(..., alias='$id')
|
|
@@ -39,5 +41,6 @@ class Database(AppwriteModel):
|
|
|
39
41
|
enabled: bool = Field(..., alias='enabled')
|
|
40
42
|
type: DatabaseType = Field(..., alias='type')
|
|
41
43
|
status: Optional[DatabaseStatus] = Field(default=None, alias='status')
|
|
42
|
-
|
|
43
|
-
|
|
44
|
+
replicas: Optional[float] = Field(default=None, alias='replicas')
|
|
45
|
+
policies: Optional[List[BackupPolicy]] = Field(default=None, alias='policies')
|
|
46
|
+
archives: Optional[List[BackupArchive]] = Field(default=None, alias='archives')
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Optional, Union, cast
|
|
2
|
+
from pydantic import Field, PrivateAttr
|
|
3
|
+
|
|
4
|
+
from .base_model import AppwriteModel
|
|
5
|
+
from .database_status_connections import DatabaseStatusConnections
|
|
6
|
+
from .database_status_replica import DatabaseStatusReplica
|
|
7
|
+
from .database_status_volume import DatabaseStatusVolume
|
|
8
|
+
|
|
9
|
+
class DatabaseStatus(AppwriteModel):
|
|
10
|
+
"""
|
|
11
|
+
Status
|
|
12
|
+
|
|
13
|
+
Attributes
|
|
14
|
+
----------
|
|
15
|
+
health : str
|
|
16
|
+
Overall health status: healthy, degraded, or unhealthy.
|
|
17
|
+
ready : bool
|
|
18
|
+
Whether the database is ready to accept connections.
|
|
19
|
+
engine : str
|
|
20
|
+
Database engine: postgresql, mysql, mariadb, or mongodb.
|
|
21
|
+
version : str
|
|
22
|
+
Database engine version.
|
|
23
|
+
uptime : float
|
|
24
|
+
Database uptime in seconds.
|
|
25
|
+
connections : DatabaseStatusConnections
|
|
26
|
+
Connection statistics.
|
|
27
|
+
replicas : List[DatabaseStatusReplica]
|
|
28
|
+
List of database replicas and their status.
|
|
29
|
+
volumes : List[DatabaseStatusVolume]
|
|
30
|
+
Storage volume information.
|
|
31
|
+
"""
|
|
32
|
+
health: str = Field(..., alias='health')
|
|
33
|
+
ready: bool = Field(..., alias='ready')
|
|
34
|
+
engine: str = Field(..., alias='engine')
|
|
35
|
+
version: str = Field(..., alias='version')
|
|
36
|
+
uptime: float = Field(..., alias='uptime')
|
|
37
|
+
connections: DatabaseStatusConnections = Field(..., alias='connections')
|
|
38
|
+
replicas: List[DatabaseStatusReplica] = Field(..., alias='replicas')
|
|
39
|
+
volumes: List[DatabaseStatusVolume] = Field(..., alias='volumes')
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Optional, Union, cast
|
|
2
|
+
from pydantic import Field, PrivateAttr
|
|
3
|
+
|
|
4
|
+
from .base_model import AppwriteModel
|
|
5
|
+
|
|
6
|
+
class DatabaseStatusConnections(AppwriteModel):
|
|
7
|
+
"""
|
|
8
|
+
Connections
|
|
9
|
+
|
|
10
|
+
Attributes
|
|
11
|
+
----------
|
|
12
|
+
current : float
|
|
13
|
+
Current number of active connections.
|
|
14
|
+
max : float
|
|
15
|
+
Maximum allowed connections.
|
|
16
|
+
"""
|
|
17
|
+
current: float = Field(..., alias='current')
|
|
18
|
+
max: float = Field(..., alias='max')
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Optional, Union, cast
|
|
2
|
+
from pydantic import Field, PrivateAttr
|
|
3
|
+
|
|
4
|
+
from .base_model import AppwriteModel
|
|
5
|
+
|
|
6
|
+
class DatabaseStatusReplica(AppwriteModel):
|
|
7
|
+
"""
|
|
8
|
+
Replica
|
|
9
|
+
|
|
10
|
+
Attributes
|
|
11
|
+
----------
|
|
12
|
+
index : float
|
|
13
|
+
StatefulSet pod index (0 = primary, 1+ = replicas).
|
|
14
|
+
role : str
|
|
15
|
+
Replica role: primary or replica.
|
|
16
|
+
healthy : bool
|
|
17
|
+
Whether the replica is healthy.
|
|
18
|
+
lagseconds : Optional[float]
|
|
19
|
+
Replication lag in seconds (null for primary).
|
|
20
|
+
"""
|
|
21
|
+
index: float = Field(..., alias='index')
|
|
22
|
+
role: str = Field(..., alias='role')
|
|
23
|
+
healthy: bool = Field(..., alias='healthy')
|
|
24
|
+
lagseconds: Optional[float] = Field(default=None, alias='lagSeconds')
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Optional, Union, cast
|
|
2
|
+
from pydantic import Field, PrivateAttr
|
|
3
|
+
|
|
4
|
+
from .base_model import AppwriteModel
|
|
5
|
+
|
|
6
|
+
class DatabaseStatusVolume(AppwriteModel):
|
|
7
|
+
"""
|
|
8
|
+
Volume
|
|
9
|
+
|
|
10
|
+
Attributes
|
|
11
|
+
----------
|
|
12
|
+
path : str
|
|
13
|
+
Mount path of the volume.
|
|
14
|
+
usedpercent : str
|
|
15
|
+
Percentage of storage used.
|
|
16
|
+
available : str
|
|
17
|
+
Available storage space.
|
|
18
|
+
mounted : bool
|
|
19
|
+
Whether the volume is mounted.
|
|
20
|
+
"""
|
|
21
|
+
path: str = Field(..., alias='path')
|
|
22
|
+
usedpercent: str = Field(..., alias='usedPercent')
|
|
23
|
+
available: str = Field(..., alias='available')
|
|
24
|
+
mounted: bool = Field(..., alias='mounted')
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Optional, Union, cast
|
|
2
|
+
from pydantic import Field, PrivateAttr
|
|
3
|
+
|
|
4
|
+
from .base_model import AppwriteModel
|
|
5
|
+
|
|
6
|
+
class DedicatedDatabase(AppwriteModel):
|
|
7
|
+
"""
|
|
8
|
+
DedicatedDatabase
|
|
9
|
+
|
|
10
|
+
Attributes
|
|
11
|
+
----------
|
|
12
|
+
id : str
|
|
13
|
+
Dedicated database ID.
|
|
14
|
+
createdat : str
|
|
15
|
+
Database creation time in ISO 8601 format.
|
|
16
|
+
updatedat : str
|
|
17
|
+
Database update date in ISO 8601 format.
|
|
18
|
+
projectid : str
|
|
19
|
+
Project ID that owns this database.
|
|
20
|
+
name : str
|
|
21
|
+
Database display name.
|
|
22
|
+
api : str
|
|
23
|
+
Product API that owns this database: tablesdb, documentsdb, vectorsdb, mysql, postgresql, or mongodb.
|
|
24
|
+
engine : str
|
|
25
|
+
Database engine: postgresql, mysql, mariadb, or mongodb.
|
|
26
|
+
version : str
|
|
27
|
+
Database engine version.
|
|
28
|
+
specification : str
|
|
29
|
+
Specification identifier.
|
|
30
|
+
backend : str
|
|
31
|
+
Database backend provider. Possible values: prisma, edge.
|
|
32
|
+
hostname : str
|
|
33
|
+
Database hostname for connections.
|
|
34
|
+
connectionport : float
|
|
35
|
+
Database port for connections.
|
|
36
|
+
connectionuser : str
|
|
37
|
+
Database username for connections.
|
|
38
|
+
connectionpassword : str
|
|
39
|
+
Database password for connections.
|
|
40
|
+
connectionstring : str
|
|
41
|
+
Full database connection string (URI format).
|
|
42
|
+
ssl : bool
|
|
43
|
+
Whether SSL/TLS is required for client connections.
|
|
44
|
+
status : str
|
|
45
|
+
Database status. Possible values: provisioning, ready, inactive, paused, failed, deleted, restoring, scaling.
|
|
46
|
+
containerstatus : str
|
|
47
|
+
Container status for lifecycle-managed database runtimes: active or inactive.
|
|
48
|
+
lastaccessedat : Optional[str]
|
|
49
|
+
Last activity timestamp in ISO 8601 format.
|
|
50
|
+
idleuntil : Optional[str]
|
|
51
|
+
Display-only timestamp when the database is expected to be considered idle (ISO 8601 format). Derived from last activity; lifecycle transitions are driven by lifecycleState.
|
|
52
|
+
lifecyclestate : str
|
|
53
|
+
Idle-lifecycle state of the database. Possible values: active, warm, cold, hibernated.
|
|
54
|
+
idletimeoutminutes : float
|
|
55
|
+
Minutes of inactivity before container scales to zero.
|
|
56
|
+
cpu : float
|
|
57
|
+
CPU allocated in millicores.
|
|
58
|
+
memory : float
|
|
59
|
+
Memory allocated in MB.
|
|
60
|
+
storage : float
|
|
61
|
+
Storage allocated in GB.
|
|
62
|
+
storageclass : str
|
|
63
|
+
Storage class. Currently always 'ssd'; DigitalOcean exposes a single block-storage class.
|
|
64
|
+
storagemaxgb : float
|
|
65
|
+
Maximum storage allowed in GB. 0 means use system default.
|
|
66
|
+
nodepool : str
|
|
67
|
+
Kubernetes node pool where the database is scheduled.
|
|
68
|
+
replicas : float
|
|
69
|
+
Number of high availability replicas. High availability is enabled when greater than 0.
|
|
70
|
+
syncmode : str
|
|
71
|
+
Replication sync mode: async, sync, or quorum.
|
|
72
|
+
crossregionreplicas : float
|
|
73
|
+
Number of cross-region replicas. Cross-region availability is enabled when greater than 0.
|
|
74
|
+
networkmaxconnections : float
|
|
75
|
+
Maximum concurrent connections.
|
|
76
|
+
networkidletimeoutseconds : float
|
|
77
|
+
Connection idle timeout in seconds.
|
|
78
|
+
networkipallowlist : List[Any]
|
|
79
|
+
IP addresses/CIDR ranges allowed to connect.
|
|
80
|
+
backupenabled : bool
|
|
81
|
+
Whether automatic backups are enabled.
|
|
82
|
+
pitr : bool
|
|
83
|
+
Whether point-in-time recovery is enabled.
|
|
84
|
+
pitrretentiondays : float
|
|
85
|
+
Number of days to retain PITR data.
|
|
86
|
+
storageautoscaling : bool
|
|
87
|
+
Whether automatic storage expansion is enabled.
|
|
88
|
+
storageautoscalingthresholdpercent : float
|
|
89
|
+
Storage usage percentage that triggers automatic expansion.
|
|
90
|
+
storageautoscalingmaxgb : float
|
|
91
|
+
Maximum storage size in GB for autoscaling. 0 means no limit.
|
|
92
|
+
maintenancewindowday : str
|
|
93
|
+
Day of the week for the maintenance window. Possible values: sun, mon, tue, wed, thu, fri, sat.
|
|
94
|
+
maintenancewindowhourutc : float
|
|
95
|
+
Hour in UTC (0-23) when the maintenance window starts.
|
|
96
|
+
metricsenabled : bool
|
|
97
|
+
Whether metrics collection is enabled.
|
|
98
|
+
sqlapienabled : bool
|
|
99
|
+
Whether the SQL API sidecar is enabled for this database.
|
|
100
|
+
sqlapiallowedstatements : List[Any]
|
|
101
|
+
Statement types accepted by the SQL API. Defaults to read/write DML only; DDL/DCL types (CREATE, ALTER, DROP, TRUNCATE, GRANT, REVOKE) are opt-in per database. Allowed values: SELECT, INSERT, UPDATE, DELETE, CREATE, ALTER, DROP, TRUNCATE, GRANT, REVOKE.
|
|
102
|
+
sqlapimaxrows : float
|
|
103
|
+
Maximum rows returned per SQL API execution. Results larger than this are truncated.
|
|
104
|
+
sqlapimaxbytes : float
|
|
105
|
+
Maximum serialised SQL API result payload in bytes. Results larger than this are truncated.
|
|
106
|
+
sqlapitimeoutseconds : float
|
|
107
|
+
Maximum server-side SQL API execution time in seconds before the query is cancelled.
|
|
108
|
+
error : str
|
|
109
|
+
Error message if status is failed.
|
|
110
|
+
"""
|
|
111
|
+
id: str = Field(..., alias='$id')
|
|
112
|
+
createdat: str = Field(..., alias='$createdAt')
|
|
113
|
+
updatedat: str = Field(..., alias='$updatedAt')
|
|
114
|
+
projectid: str = Field(..., alias='projectId')
|
|
115
|
+
name: str = Field(..., alias='name')
|
|
116
|
+
api: str = Field(..., alias='api')
|
|
117
|
+
engine: str = Field(..., alias='engine')
|
|
118
|
+
version: str = Field(..., alias='version')
|
|
119
|
+
specification: str = Field(..., alias='specification')
|
|
120
|
+
backend: str = Field(..., alias='backend')
|
|
121
|
+
hostname: str = Field(..., alias='hostname')
|
|
122
|
+
connectionport: float = Field(..., alias='connectionPort')
|
|
123
|
+
connectionuser: str = Field(..., alias='connectionUser')
|
|
124
|
+
connectionpassword: str = Field(..., alias='connectionPassword')
|
|
125
|
+
connectionstring: str = Field(..., alias='connectionString')
|
|
126
|
+
ssl: bool = Field(..., alias='ssl')
|
|
127
|
+
status: str = Field(..., alias='status')
|
|
128
|
+
containerstatus: str = Field(..., alias='containerStatus')
|
|
129
|
+
lastaccessedat: Optional[str] = Field(default=None, alias='lastAccessedAt')
|
|
130
|
+
idleuntil: Optional[str] = Field(default=None, alias='idleUntil')
|
|
131
|
+
lifecyclestate: str = Field(..., alias='lifecycleState')
|
|
132
|
+
idletimeoutminutes: float = Field(..., alias='idleTimeoutMinutes')
|
|
133
|
+
cpu: float = Field(..., alias='cpu')
|
|
134
|
+
memory: float = Field(..., alias='memory')
|
|
135
|
+
storage: float = Field(..., alias='storage')
|
|
136
|
+
storageclass: str = Field(..., alias='storageClass')
|
|
137
|
+
storagemaxgb: float = Field(..., alias='storageMaxGb')
|
|
138
|
+
nodepool: str = Field(..., alias='nodePool')
|
|
139
|
+
replicas: float = Field(..., alias='replicas')
|
|
140
|
+
syncmode: str = Field(..., alias='syncMode')
|
|
141
|
+
crossregionreplicas: float = Field(..., alias='crossRegionReplicas')
|
|
142
|
+
networkmaxconnections: float = Field(..., alias='networkMaxConnections')
|
|
143
|
+
networkidletimeoutseconds: float = Field(..., alias='networkIdleTimeoutSeconds')
|
|
144
|
+
networkipallowlist: List[Any] = Field(..., alias='networkIPAllowlist')
|
|
145
|
+
backupenabled: bool = Field(..., alias='backupEnabled')
|
|
146
|
+
pitr: bool = Field(..., alias='pitr')
|
|
147
|
+
pitrretentiondays: float = Field(..., alias='pitrRetentionDays')
|
|
148
|
+
storageautoscaling: bool = Field(..., alias='storageAutoscaling')
|
|
149
|
+
storageautoscalingthresholdpercent: float = Field(..., alias='storageAutoscalingThresholdPercent')
|
|
150
|
+
storageautoscalingmaxgb: float = Field(..., alias='storageAutoscalingMaxGb')
|
|
151
|
+
maintenancewindowday: str = Field(..., alias='maintenanceWindowDay')
|
|
152
|
+
maintenancewindowhourutc: float = Field(..., alias='maintenanceWindowHourUtc')
|
|
153
|
+
metricsenabled: bool = Field(..., alias='metricsEnabled')
|
|
154
|
+
sqlapienabled: bool = Field(..., alias='sqlApiEnabled')
|
|
155
|
+
sqlapiallowedstatements: List[Any] = Field(..., alias='sqlApiAllowedStatements')
|
|
156
|
+
sqlapimaxrows: float = Field(..., alias='sqlApiMaxRows')
|
|
157
|
+
sqlapimaxbytes: float = Field(..., alias='sqlApiMaxBytes')
|
|
158
|
+
sqlapitimeoutseconds: float = Field(..., alias='sqlApiTimeoutSeconds')
|
|
159
|
+
error: str = Field(..., alias='error')
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Optional, Union, cast
|
|
2
|
+
from pydantic import Field, PrivateAttr
|
|
3
|
+
|
|
4
|
+
from .base_model import AppwriteModel
|
|
5
|
+
|
|
6
|
+
class DedicatedDatabaseMember(AppwriteModel):
|
|
7
|
+
"""
|
|
8
|
+
Member
|
|
9
|
+
|
|
10
|
+
Attributes
|
|
11
|
+
----------
|
|
12
|
+
id : str
|
|
13
|
+
Member identifier.
|
|
14
|
+
role : str
|
|
15
|
+
Member role. Possible values: primary (accepts reads and writes), replica (read-only follower).
|
|
16
|
+
status : str
|
|
17
|
+
Member pod status. Possible values: provisioning (pod missing or Pending), starting (Running but not Ready), active (Running and Ready), failed (Failed phase or CrashLoopBackOff container), or the lowercased pod phase reported by the cluster.
|
|
18
|
+
lagseconds : float
|
|
19
|
+
Replication lag in seconds.
|
|
20
|
+
"""
|
|
21
|
+
id: str = Field(..., alias='$id')
|
|
22
|
+
role: str = Field(..., alias='role')
|
|
23
|
+
status: str = Field(..., alias='status')
|
|
24
|
+
lagseconds: float = Field(..., alias='lagSeconds')
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Optional, Union, cast
|
|
2
|
+
from pydantic import Field, PrivateAttr
|
|
3
|
+
|
|
4
|
+
from .base_model import AppwriteModel
|
|
5
|
+
from .dedicated_database_member import DedicatedDatabaseMember
|
|
6
|
+
|
|
7
|
+
class DedicatedDatabaseReplicas(AppwriteModel):
|
|
8
|
+
"""
|
|
9
|
+
Replicas
|
|
10
|
+
|
|
11
|
+
Attributes
|
|
12
|
+
----------
|
|
13
|
+
replicas : float
|
|
14
|
+
Number of configured replicas. Zero means high availability is disabled.
|
|
15
|
+
syncmode : str
|
|
16
|
+
Replication sync mode. Possible values: async (asynchronous, fastest), sync (synchronous, strong consistency), quorum (quorum-based, majority of replicas must confirm).
|
|
17
|
+
members : List[DedicatedDatabaseMember]
|
|
18
|
+
Per-pod statuses for the primary and every replica.
|
|
19
|
+
"""
|
|
20
|
+
replicas: float = Field(..., alias='replicas')
|
|
21
|
+
syncmode: str = Field(..., alias='syncMode')
|
|
22
|
+
members: List[DedicatedDatabaseMember] = Field(..., alias='members')
|