google-cloud-bigtable 2.40.0__tar.gz → 2.41.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.
- {google_cloud_bigtable-2.40.0/google_cloud_bigtable.egg-info → google_cloud_bigtable-2.41.0}/PKG-INFO +1 -1
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/__init__.py +4 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/_async/client.py +266 -15
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/_sync_autogen/client.py +194 -13
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/gapic_version.py +1 -1
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin/gapic_version.py +1 -1
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/gapic_version.py +1 -1
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_v2/gapic_version.py +1 -1
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0/google_cloud_bigtable.egg-info}/PKG-INFO +1 -1
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/system/data/test_system_async.py +40 -10
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/system/data/test_system_autogen.py +27 -10
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/_async/test_client.py +244 -16
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/_sync_autogen/test_client.py +216 -23
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/gapic/bigtable_admin_v2/test_bigtable_instance_admin.py +32 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/gapic/bigtable_admin_v2/test_bigtable_table_admin.py +40 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/LICENSE +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/MANIFEST.in +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/README.rst +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/app_profile.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/backup.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/batcher.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/client.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/cluster.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/column_family.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/_async/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/_async/_mutate_rows.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/_async/_read_rows.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/_async/_swappable_channel.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/_async/metrics_interceptor.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/_async/mutations_batcher.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/_cross_sync/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/_cross_sync/_decorators.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/_cross_sync/_mapping_meta.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/_cross_sync/cross_sync.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/_helpers.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/_metrics/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/_metrics/data_model.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/_metrics/handlers/_base.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/_metrics/metrics_controller.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/_metrics/tracked_retry.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/_sync_autogen/_mutate_rows.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/_sync_autogen/_read_rows.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/_sync_autogen/_swappable_channel.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/_sync_autogen/metrics_interceptor.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/_sync_autogen/mutations_batcher.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/exceptions.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/execute_query/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/execute_query/_async/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/execute_query/_async/execute_query_iterator.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/execute_query/_byte_cursor.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/execute_query/_checksum.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/execute_query/_parameters_formatting.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/execute_query/_query_result_parsing_utils.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/execute_query/_reader.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/execute_query/_sync_autogen/execute_query_iterator.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/execute_query/metadata.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/execute_query/values.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/mutations.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/read_modify_write_rules.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/read_rows_query.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/row.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/row_filters.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/encryption_info.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/enums.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/error.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/helpers.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/instance.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/policy.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/py.typed +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/row.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/row_data.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/row_filters.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/row_merger.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/row_set.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/table.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin/py.typed +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/gapic_metadata.json +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/overlay/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/overlay/services/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/overlay/services/bigtable_table_admin/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/overlay/services/bigtable_table_admin/async_client.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/overlay/services/bigtable_table_admin/client.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/overlay/types/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/overlay/types/async_consistency.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/overlay/types/async_restore_table.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/overlay/types/consistency.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/overlay/types/restore_table.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/overlay/types/wait_for_consistency_request.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/py.typed +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/services/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/async_client.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/client.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/pagers.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/transports/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/transports/base.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/transports/grpc.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/transports/grpc_asyncio.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/transports/rest.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/transports/rest_base.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/services/bigtable_table_admin/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/services/bigtable_table_admin/async_client.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/services/bigtable_table_admin/client.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/services/bigtable_table_admin/pagers.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/services/bigtable_table_admin/transports/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/services/bigtable_table_admin/transports/base.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/services/bigtable_table_admin/transports/grpc.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/services/bigtable_table_admin/transports/grpc_asyncio.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/services/bigtable_table_admin/transports/rest.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/services/bigtable_table_admin/transports/rest_base.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/types/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/types/bigtable_instance_admin.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/types/bigtable_table_admin.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/types/common.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/types/instance.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/types/table.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/types/types.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/utils/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_admin_v2/utils/oneof_message.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_v2/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_v2/gapic_metadata.json +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_v2/py.typed +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_v2/services/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_v2/services/bigtable/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_v2/services/bigtable/async_client.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_v2/services/bigtable/client.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_v2/services/bigtable/transports/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_v2/services/bigtable/transports/base.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_v2/services/bigtable/transports/grpc.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_v2/services/bigtable/transports/grpc_asyncio.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_v2/services/bigtable/transports/rest.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_v2/services/bigtable/transports/rest_base.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_v2/types/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_v2/types/bigtable.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_v2/types/data.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_v2/types/feature_flags.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_v2/types/peer_info.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_v2/types/request_stats.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_v2/types/response_params.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_v2/types/session.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable_v2/types/types.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google_cloud_bigtable.egg-info/SOURCES.txt +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google_cloud_bigtable.egg-info/dependency_links.txt +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google_cloud_bigtable.egg-info/not-zip-safe +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google_cloud_bigtable.egg-info/requires.txt +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google_cloud_bigtable.egg-info/top_level.txt +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/setup.cfg +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/setup.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/system/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/system/admin_overlay/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/system/admin_overlay/conftest.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/system/admin_overlay/test_system_async.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/system/admin_overlay/test_system_autogen.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/system/conftest.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/system/cross_sync/test_cases/async_to_sync.yaml +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/system/cross_sync/test_cases/cross_sync_files.yaml +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/system/cross_sync/test_cases/rm_aio.yaml +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/system/cross_sync/test_cases/strip_async_conditional_branches.yaml +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/system/cross_sync/test_cases/symbol_replacer.yaml +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/system/cross_sync/test_cross_sync_e2e.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/system/data/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/system/data/test_metrics_async.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/system/data/test_metrics_autogen.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/system/utils.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/system/v2_client/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/system/v2_client/_helpers.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/system/v2_client/conftest.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/system/v2_client/test_data_api.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/system/v2_client/test_instance_admin.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/system/v2_client/test_table_admin.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/admin_overlay/my_oneof_message.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/admin_overlay/test_admin_packaging.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/admin_overlay/test_async_client.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/admin_overlay/test_async_consistency.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/admin_overlay/test_async_restore_table.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/admin_overlay/test_client.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/admin_overlay/test_consistency.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/admin_overlay/test_oneof_message.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/admin_overlay/test_restore_table.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/conftest.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/_async/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/_async/test__mutate_rows.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/_async/test__read_rows.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/_async/test__swappable_channel.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/_async/test_metrics_interceptor.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/_async/test_mutations_batcher.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/_async/test_read_rows_acceptance.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/_cross_sync/test_cross_sync.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/_cross_sync/test_cross_sync_decorators.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/_metrics/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/_metrics/test_data_model.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/_metrics/test_metrics_controller.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/_metrics/test_tracked_retry.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/_sync_autogen/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/_sync_autogen/test__mutate_rows.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/_sync_autogen/test__read_rows.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/_sync_autogen/test__swappable_channel.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/_sync_autogen/test_metrics_interceptor.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/_sync_autogen/test_mutations_batcher.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/_sync_autogen/test_read_rows_acceptance.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/execute_query/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/execute_query/_async/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/execute_query/_async/test_query_iterator.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/execute_query/_sync_autogen/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/execute_query/_sync_autogen/test_query_iterator.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/execute_query/resources/README.md +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/execute_query/resources/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/execute_query/resources/descriptors.pb +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/execute_query/resources/singer.proto +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/execute_query/resources/singer_pb2.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/execute_query/sql_helpers.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/execute_query/test_byte_cursor.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/execute_query/test_checksum.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/execute_query/test_execute_query_parameters_parsing.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/execute_query/test_metadata.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/execute_query/test_query_result_parsing_utils.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/execute_query/test_query_result_row_reader.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/read-rows-acceptance-test.json +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/test__helpers.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/test_exceptions.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/test_helpers.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/test_mutations.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/test_read_modify_write_rules.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/test_read_rows_query.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/test_row.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/test_row_filters.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/data/test_sync_up_to_date.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/gapic/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/gapic/bigtable_admin_v2/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/gapic/bigtable_v2/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/gapic/bigtable_v2/test_bigtable.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/test_packaging.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/test_sql_routing_parameters.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/v2_client/__init__.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/v2_client/_testing.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/v2_client/read-rows-acceptance-test.json +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/v2_client/test_app_profile.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/v2_client/test_backup.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/v2_client/test_batcher.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/v2_client/test_client.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/v2_client/test_cluster.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/v2_client/test_column_family.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/v2_client/test_encryption_info.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/v2_client/test_error.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/v2_client/test_instance.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/v2_client/test_policy.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/v2_client/test_row.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/v2_client/test_row_data.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/v2_client/test_row_filters.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/v2_client/test_row_merger.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/v2_client/test_row_set.py +0 -0
- {google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/tests/unit/v2_client/test_table.py +0 -0
{google_cloud_bigtable-2.40.0 → google_cloud_bigtable-2.41.0}/google/cloud/bigtable/data/__init__.py
RENAMED
|
@@ -19,6 +19,7 @@ from google.cloud.bigtable.data._async._read_rows import _ReadRowsOperationAsync
|
|
|
19
19
|
from google.cloud.bigtable.data._async.client import (
|
|
20
20
|
AuthorizedViewAsync,
|
|
21
21
|
BigtableDataClientAsync,
|
|
22
|
+
MaterializedViewAsync,
|
|
22
23
|
TableAsync,
|
|
23
24
|
)
|
|
24
25
|
from google.cloud.bigtable.data._async.mutations_batcher import MutationsBatcherAsync
|
|
@@ -33,6 +34,7 @@ from google.cloud.bigtable.data._sync_autogen._read_rows import _ReadRowsOperati
|
|
|
33
34
|
from google.cloud.bigtable.data._sync_autogen.client import (
|
|
34
35
|
AuthorizedView,
|
|
35
36
|
BigtableDataClient,
|
|
37
|
+
MaterializedView,
|
|
36
38
|
Table,
|
|
37
39
|
)
|
|
38
40
|
from google.cloud.bigtable.data._sync_autogen.mutations_batcher import MutationsBatcher
|
|
@@ -80,10 +82,12 @@ __all__ = (
|
|
|
80
82
|
"BigtableDataClientAsync",
|
|
81
83
|
"TableAsync",
|
|
82
84
|
"AuthorizedViewAsync",
|
|
85
|
+
"MaterializedViewAsync",
|
|
83
86
|
"MutationsBatcherAsync",
|
|
84
87
|
"BigtableDataClient",
|
|
85
88
|
"Table",
|
|
86
89
|
"AuthorizedView",
|
|
90
|
+
"MaterializedView",
|
|
87
91
|
"MutationsBatcher",
|
|
88
92
|
"RowKeySamples",
|
|
89
93
|
"ReadRowsQuery",
|
|
@@ -708,6 +708,62 @@ class BigtableDataClientAsync(ClientWithProject):
|
|
|
708
708
|
**kwargs,
|
|
709
709
|
)
|
|
710
710
|
|
|
711
|
+
@CrossSync.convert(
|
|
712
|
+
replace_symbols={"MaterializedViewAsync": "MaterializedView"},
|
|
713
|
+
docstring_format_vars={
|
|
714
|
+
"LOOP_MESSAGE": (
|
|
715
|
+
"Must be created within an async context (running event loop)",
|
|
716
|
+
"",
|
|
717
|
+
),
|
|
718
|
+
"RAISE_NO_LOOP": (
|
|
719
|
+
"RuntimeError: if called outside of an async context (no running event loop)",
|
|
720
|
+
"None",
|
|
721
|
+
),
|
|
722
|
+
},
|
|
723
|
+
)
|
|
724
|
+
def get_materialized_view(
|
|
725
|
+
self, instance_id: str, materialized_view_id: str, *args, **kwargs
|
|
726
|
+
) -> MaterializedViewAsync:
|
|
727
|
+
"""
|
|
728
|
+
Returns a materialized view instance for making read requests. All arguments are passed
|
|
729
|
+
directly to the MaterializedViewAsync constructor.
|
|
730
|
+
|
|
731
|
+
{LOOP_MESSAGE}
|
|
732
|
+
|
|
733
|
+
Args:
|
|
734
|
+
instance_id: The Bigtable instance ID to associate with this client.
|
|
735
|
+
instance_id is combined with the client's project to fully
|
|
736
|
+
specify the instance
|
|
737
|
+
materialized_view_id: The id for the materialized view to use for requests
|
|
738
|
+
app_profile_id: The app profile to associate with requests.
|
|
739
|
+
https://cloud.google.com/bigtable/docs/app-profiles
|
|
740
|
+
default_read_rows_operation_timeout: The default timeout for read rows
|
|
741
|
+
operations, in seconds. If not set, defaults to 600 seconds (10 minutes)
|
|
742
|
+
default_read_rows_attempt_timeout: The default timeout for individual
|
|
743
|
+
read rows rpc requests, in seconds. If not set, defaults to 20 seconds
|
|
744
|
+
default_operation_timeout: The default timeout for all other operations, in
|
|
745
|
+
seconds. If not set, defaults to 60 seconds
|
|
746
|
+
default_attempt_timeout: The default timeout for all other individual rpc
|
|
747
|
+
requests, in seconds. If not set, defaults to 20 seconds
|
|
748
|
+
default_read_rows_retryable_errors: a list of errors that will be retried
|
|
749
|
+
if encountered during read_rows and related operations.
|
|
750
|
+
Defaults to 4 (DeadlineExceeded), 14 (ServiceUnavailable), and 10 (Aborted)
|
|
751
|
+
default_retryable_errors: a list of errors that will be retried if
|
|
752
|
+
encountered during all other operations.
|
|
753
|
+
Defaults to 4 (DeadlineExceeded) and 14 (ServiceUnavailable)
|
|
754
|
+
Returns:
|
|
755
|
+
MaterializedViewAsync: a materialized view instance for making read requests
|
|
756
|
+
Raises:
|
|
757
|
+
{RAISE_NO_LOOP}
|
|
758
|
+
"""
|
|
759
|
+
return CrossSync.MaterializedView(
|
|
760
|
+
self,
|
|
761
|
+
instance_id,
|
|
762
|
+
materialized_view_id,
|
|
763
|
+
*args,
|
|
764
|
+
**kwargs,
|
|
765
|
+
)
|
|
766
|
+
|
|
711
767
|
@CrossSync.convert(
|
|
712
768
|
replace_symbols={"ExecuteQueryIteratorAsync": "ExecuteQueryIterator"}
|
|
713
769
|
)
|
|
@@ -928,7 +984,7 @@ class _DataApiTargetAsync(abc.ABC):
|
|
|
928
984
|
"""
|
|
929
985
|
Abstract class containing API surface for BigtableDataClient. Should not be created directly
|
|
930
986
|
|
|
931
|
-
Can be instantiated as a Table or
|
|
987
|
+
Can be instantiated as a Table, an AuthorizedView, or a MaterializedView
|
|
932
988
|
"""
|
|
933
989
|
|
|
934
990
|
@CrossSync.convert(
|
|
@@ -948,7 +1004,6 @@ class _DataApiTargetAsync(abc.ABC):
|
|
|
948
1004
|
self,
|
|
949
1005
|
client: BigtableDataClientAsync,
|
|
950
1006
|
instance_id: str,
|
|
951
|
-
table_id: str,
|
|
952
1007
|
app_profile_id: str | None = None,
|
|
953
1008
|
*,
|
|
954
1009
|
default_read_rows_operation_timeout: float = 600,
|
|
@@ -973,7 +1028,7 @@ class _DataApiTargetAsync(abc.ABC):
|
|
|
973
1028
|
),
|
|
974
1029
|
):
|
|
975
1030
|
"""
|
|
976
|
-
Initialize a
|
|
1031
|
+
Initialize a data API target instance
|
|
977
1032
|
|
|
978
1033
|
{LOOP_MESSAGE}
|
|
979
1034
|
|
|
@@ -981,8 +1036,6 @@ class _DataApiTargetAsync(abc.ABC):
|
|
|
981
1036
|
instance_id: The Bigtable instance ID to associate with this client.
|
|
982
1037
|
instance_id is combined with the client's project to fully
|
|
983
1038
|
specify the instance
|
|
984
|
-
table_id: The ID of the table. table_id is combined with the
|
|
985
|
-
instance_id and the client's project to fully specify the table
|
|
986
1039
|
app_profile_id: The app profile to associate with requests.
|
|
987
1040
|
https://cloud.google.com/bigtable/docs/app-profiles
|
|
988
1041
|
default_read_rows_operation_timeout: The default timeout for read rows
|
|
@@ -1009,8 +1062,6 @@ class _DataApiTargetAsync(abc.ABC):
|
|
|
1009
1062
|
Raises:
|
|
1010
1063
|
{RAISE_NO_LOOP}
|
|
1011
1064
|
"""
|
|
1012
|
-
# NOTE: any changes to the signature of this method should also be reflected
|
|
1013
|
-
# in client.get_table()
|
|
1014
1065
|
# validate timeouts
|
|
1015
1066
|
_validate_timeouts(
|
|
1016
1067
|
default_operation_timeout, default_attempt_timeout, allow_none=True
|
|
@@ -1031,10 +1082,6 @@ class _DataApiTargetAsync(abc.ABC):
|
|
|
1031
1082
|
self.instance_name = self.client._gapic_client.instance_path(
|
|
1032
1083
|
self.client.project, instance_id
|
|
1033
1084
|
)
|
|
1034
|
-
self.table_id = table_id
|
|
1035
|
-
self.table_name = self.client._gapic_client.table_path(
|
|
1036
|
-
self.client.project, instance_id, table_id
|
|
1037
|
-
)
|
|
1038
1085
|
self.app_profile_id: str | None = app_profile_id
|
|
1039
1086
|
|
|
1040
1087
|
self.default_operation_timeout: float = default_operation_timeout
|
|
@@ -1081,7 +1128,11 @@ class _DataApiTargetAsync(abc.ABC):
|
|
|
1081
1128
|
@abc.abstractmethod
|
|
1082
1129
|
def _request_path(self) -> dict[str, str]:
|
|
1083
1130
|
"""
|
|
1084
|
-
Used to populate table_name
|
|
1131
|
+
Used to populate table_name, authorized_view_name, or materialized_view_name
|
|
1132
|
+
for rpc requests, depending on the subclass
|
|
1133
|
+
|
|
1134
|
+
The returned key must be a valid field on each request proto it is passed to;
|
|
1135
|
+
mutation requests only accept table_name and authorized_view_name
|
|
1085
1136
|
|
|
1086
1137
|
Unimplemented in base class
|
|
1087
1138
|
"""
|
|
@@ -1852,6 +1903,73 @@ class TableAsync(_DataApiTargetAsync):
|
|
|
1852
1903
|
each call
|
|
1853
1904
|
"""
|
|
1854
1905
|
|
|
1906
|
+
@CrossSync.convert(
|
|
1907
|
+
replace_symbols={"BigtableDataClientAsync": "BigtableDataClient"},
|
|
1908
|
+
docstring_format_vars={
|
|
1909
|
+
"LOOP_MESSAGE": (
|
|
1910
|
+
"Must be created within an async context (running event loop)",
|
|
1911
|
+
"",
|
|
1912
|
+
),
|
|
1913
|
+
"RAISE_NO_LOOP": (
|
|
1914
|
+
"RuntimeError: if called outside of an async context (no running event loop)",
|
|
1915
|
+
"None",
|
|
1916
|
+
),
|
|
1917
|
+
},
|
|
1918
|
+
)
|
|
1919
|
+
def __init__(
|
|
1920
|
+
self,
|
|
1921
|
+
client: BigtableDataClientAsync,
|
|
1922
|
+
instance_id: str,
|
|
1923
|
+
table_id: str,
|
|
1924
|
+
app_profile_id: str | None = None,
|
|
1925
|
+
**kwargs,
|
|
1926
|
+
):
|
|
1927
|
+
"""
|
|
1928
|
+
Initialize a Table instance
|
|
1929
|
+
|
|
1930
|
+
{LOOP_MESSAGE}
|
|
1931
|
+
|
|
1932
|
+
Args:
|
|
1933
|
+
instance_id: The Bigtable instance ID to associate with this client.
|
|
1934
|
+
instance_id is combined with the client's project to fully
|
|
1935
|
+
specify the instance
|
|
1936
|
+
table_id: The ID of the table. table_id is combined with the
|
|
1937
|
+
instance_id and the client's project to fully specify the table
|
|
1938
|
+
app_profile_id: The app profile to associate with requests.
|
|
1939
|
+
https://cloud.google.com/bigtable/docs/app-profiles
|
|
1940
|
+
default_read_rows_operation_timeout: The default timeout for read rows
|
|
1941
|
+
operations, in seconds. If not set, defaults to 600 seconds (10 minutes)
|
|
1942
|
+
default_read_rows_attempt_timeout: The default timeout for individual
|
|
1943
|
+
read rows rpc requests, in seconds. If not set, defaults to 20 seconds
|
|
1944
|
+
default_mutate_rows_operation_timeout: The default timeout for mutate rows
|
|
1945
|
+
operations, in seconds. If not set, defaults to 600 seconds (10 minutes)
|
|
1946
|
+
default_mutate_rows_attempt_timeout: The default timeout for individual
|
|
1947
|
+
mutate rows rpc requests, in seconds. If not set, defaults to 60 seconds
|
|
1948
|
+
default_operation_timeout: The default timeout for all other operations, in
|
|
1949
|
+
seconds. If not set, defaults to 60 seconds
|
|
1950
|
+
default_attempt_timeout: The default timeout for all other individual rpc
|
|
1951
|
+
requests, in seconds. If not set, defaults to 20 seconds
|
|
1952
|
+
default_read_rows_retryable_errors: a list of errors that will be retried
|
|
1953
|
+
if encountered during read_rows and related operations.
|
|
1954
|
+
Defaults to 4 (DeadlineExceeded), 14 (ServiceUnavailable), and 10 (Aborted)
|
|
1955
|
+
default_mutate_rows_retryable_errors: a list of errors that will be retried
|
|
1956
|
+
if encountered during mutate_rows and related operations.
|
|
1957
|
+
Defaults to 4 (DeadlineExceeded) and 14 (ServiceUnavailable)
|
|
1958
|
+
default_retryable_errors: a list of errors that will be retried if
|
|
1959
|
+
encountered during all other operations.
|
|
1960
|
+
Defaults to 4 (DeadlineExceeded) and 14 (ServiceUnavailable)
|
|
1961
|
+
Raises:
|
|
1962
|
+
{RAISE_NO_LOOP}
|
|
1963
|
+
"""
|
|
1964
|
+
# NOTE: any changes to the signature of this method should also be reflected
|
|
1965
|
+
# in client.get_table()
|
|
1966
|
+
# build paths before super().__init__, which registers this instance with the client
|
|
1967
|
+
self.table_id = table_id
|
|
1968
|
+
self.table_name = client._gapic_client.table_path(
|
|
1969
|
+
client.project, instance_id, table_id
|
|
1970
|
+
)
|
|
1971
|
+
super().__init__(client, instance_id, app_profile_id, **kwargs)
|
|
1972
|
+
|
|
1855
1973
|
@property
|
|
1856
1974
|
def _request_path(self) -> dict[str, str]:
|
|
1857
1975
|
return {"table_name": self.table_name}
|
|
@@ -1932,12 +2050,145 @@ class AuthorizedViewAsync(_DataApiTargetAsync):
|
|
|
1932
2050
|
Raises:
|
|
1933
2051
|
{RAISE_NO_LOOP}
|
|
1934
2052
|
"""
|
|
1935
|
-
super().__init__
|
|
2053
|
+
# build paths before super().__init__, which registers this instance with the client
|
|
2054
|
+
self.table_id = table_id
|
|
2055
|
+
self.table_name = client._gapic_client.table_path(
|
|
2056
|
+
client.project, instance_id, table_id
|
|
2057
|
+
)
|
|
1936
2058
|
self.authorized_view_id = authorized_view_id
|
|
1937
|
-
self.authorized_view_name: str =
|
|
1938
|
-
|
|
2059
|
+
self.authorized_view_name: str = client._gapic_client.authorized_view_path(
|
|
2060
|
+
client.project, instance_id, table_id, authorized_view_id
|
|
1939
2061
|
)
|
|
2062
|
+
super().__init__(client, instance_id, app_profile_id, **kwargs)
|
|
1940
2063
|
|
|
1941
2064
|
@property
|
|
1942
2065
|
def _request_path(self) -> dict[str, str]:
|
|
1943
2066
|
return {"authorized_view_name": self.authorized_view_name}
|
|
2067
|
+
|
|
2068
|
+
|
|
2069
|
+
@CrossSync.convert_class(
|
|
2070
|
+
sync_name="MaterializedView",
|
|
2071
|
+
add_mapping_for_name="MaterializedView",
|
|
2072
|
+
replace_symbols={"_DataApiTargetAsync": "_DataApiTarget"},
|
|
2073
|
+
)
|
|
2074
|
+
class MaterializedViewAsync(_DataApiTargetAsync):
|
|
2075
|
+
"""
|
|
2076
|
+
Provides read access to a materialized view of a table.
|
|
2077
|
+
|
|
2078
|
+
A materialized view is a pre-computed, read-only view over a table, defined
|
|
2079
|
+
by a SQL query. Materialized views support read operations only; mutation
|
|
2080
|
+
methods raise NotImplementedError.
|
|
2081
|
+
|
|
2082
|
+
MaterializedView object maintains materialized_view_id and app_profile_id context,
|
|
2083
|
+
and passes them with each call
|
|
2084
|
+
"""
|
|
2085
|
+
|
|
2086
|
+
@CrossSync.convert(
|
|
2087
|
+
replace_symbols={"BigtableDataClientAsync": "BigtableDataClient"},
|
|
2088
|
+
docstring_format_vars={
|
|
2089
|
+
"LOOP_MESSAGE": (
|
|
2090
|
+
"Must be created within an async context (running event loop)",
|
|
2091
|
+
"",
|
|
2092
|
+
),
|
|
2093
|
+
"RAISE_NO_LOOP": (
|
|
2094
|
+
"RuntimeError: if called outside of an async context (no running event loop)",
|
|
2095
|
+
"None",
|
|
2096
|
+
),
|
|
2097
|
+
},
|
|
2098
|
+
)
|
|
2099
|
+
def __init__(
|
|
2100
|
+
self,
|
|
2101
|
+
client: BigtableDataClientAsync,
|
|
2102
|
+
instance_id: str,
|
|
2103
|
+
materialized_view_id: str,
|
|
2104
|
+
app_profile_id: str | None = None,
|
|
2105
|
+
**kwargs,
|
|
2106
|
+
):
|
|
2107
|
+
"""
|
|
2108
|
+
Initialize a MaterializedView instance
|
|
2109
|
+
|
|
2110
|
+
{LOOP_MESSAGE}
|
|
2111
|
+
|
|
2112
|
+
Args:
|
|
2113
|
+
instance_id: The Bigtable instance ID to associate with this client.
|
|
2114
|
+
instance_id is combined with the client's project to fully
|
|
2115
|
+
specify the instance
|
|
2116
|
+
materialized_view_id: The id for the materialized view to use for requests
|
|
2117
|
+
app_profile_id: The app profile to associate with requests.
|
|
2118
|
+
https://cloud.google.com/bigtable/docs/app-profiles
|
|
2119
|
+
default_read_rows_operation_timeout: The default timeout for read rows
|
|
2120
|
+
operations, in seconds. If not set, defaults to 600 seconds (10 minutes)
|
|
2121
|
+
default_read_rows_attempt_timeout: The default timeout for individual
|
|
2122
|
+
read rows rpc requests, in seconds. If not set, defaults to 20 seconds
|
|
2123
|
+
default_operation_timeout: The default timeout for all other operations, in
|
|
2124
|
+
seconds. If not set, defaults to 60 seconds
|
|
2125
|
+
default_attempt_timeout: The default timeout for all other individual rpc
|
|
2126
|
+
requests, in seconds. If not set, defaults to 20 seconds
|
|
2127
|
+
default_read_rows_retryable_errors: a list of errors that will be retried
|
|
2128
|
+
if encountered during read_rows and related operations.
|
|
2129
|
+
Defaults to 4 (DeadlineExceeded), 14 (ServiceUnavailable), and 10 (Aborted)
|
|
2130
|
+
default_retryable_errors: a list of errors that will be retried if
|
|
2131
|
+
encountered during all other operations.
|
|
2132
|
+
Defaults to 4 (DeadlineExceeded) and 14 (ServiceUnavailable)
|
|
2133
|
+
Raises:
|
|
2134
|
+
{RAISE_NO_LOOP}
|
|
2135
|
+
"""
|
|
2136
|
+
# build paths before super().__init__, which registers this instance with the client
|
|
2137
|
+
self.materialized_view_id = materialized_view_id
|
|
2138
|
+
self.materialized_view_name: str = client._gapic_client.materialized_view_path(
|
|
2139
|
+
client.project, instance_id, materialized_view_id
|
|
2140
|
+
)
|
|
2141
|
+
super().__init__(client, instance_id, app_profile_id, **kwargs)
|
|
2142
|
+
|
|
2143
|
+
@property
|
|
2144
|
+
def _request_path(self) -> dict[str, str]:
|
|
2145
|
+
return {"materialized_view_name": self.materialized_view_name}
|
|
2146
|
+
|
|
2147
|
+
def mutations_batcher(self, *args, **kwargs):
|
|
2148
|
+
"""
|
|
2149
|
+
Mutations are not supported for materialized views
|
|
2150
|
+
|
|
2151
|
+
Raises:
|
|
2152
|
+
NotImplementedError: always; materialized views are read-only
|
|
2153
|
+
"""
|
|
2154
|
+
raise NotImplementedError("Mutations are not supported for materialized views")
|
|
2155
|
+
|
|
2156
|
+
@CrossSync.convert
|
|
2157
|
+
async def mutate_row(self, *args, **kwargs):
|
|
2158
|
+
"""
|
|
2159
|
+
Mutations are not supported for materialized views
|
|
2160
|
+
|
|
2161
|
+
Raises:
|
|
2162
|
+
NotImplementedError: always; materialized views are read-only
|
|
2163
|
+
"""
|
|
2164
|
+
raise NotImplementedError("Mutations are not supported for materialized views")
|
|
2165
|
+
|
|
2166
|
+
@CrossSync.convert
|
|
2167
|
+
async def bulk_mutate_rows(self, *args, **kwargs):
|
|
2168
|
+
"""
|
|
2169
|
+
Mutations are not supported for materialized views
|
|
2170
|
+
|
|
2171
|
+
Raises:
|
|
2172
|
+
NotImplementedError: always; materialized views are read-only
|
|
2173
|
+
"""
|
|
2174
|
+
raise NotImplementedError("Mutations are not supported for materialized views")
|
|
2175
|
+
|
|
2176
|
+
@CrossSync.convert
|
|
2177
|
+
async def check_and_mutate_row(self, *args, **kwargs):
|
|
2178
|
+
"""
|
|
2179
|
+
Mutations are not supported for materialized views
|
|
2180
|
+
|
|
2181
|
+
Raises:
|
|
2182
|
+
NotImplementedError: always; materialized views are read-only
|
|
2183
|
+
"""
|
|
2184
|
+
raise NotImplementedError("Mutations are not supported for materialized views")
|
|
2185
|
+
|
|
2186
|
+
@CrossSync.convert
|
|
2187
|
+
async def read_modify_write_row(self, *args, **kwargs):
|
|
2188
|
+
"""
|
|
2189
|
+
Mutations are not supported for materialized views
|
|
2190
|
+
|
|
2191
|
+
Raises:
|
|
2192
|
+
NotImplementedError: always; materialized views are read-only
|
|
2193
|
+
"""
|
|
2194
|
+
raise NotImplementedError("Mutations are not supported for materialized views")
|
|
@@ -526,6 +526,43 @@ class BigtableDataClient(ClientWithProject):
|
|
|
526
526
|
self, instance_id, table_id, authorized_view_id, *args, **kwargs
|
|
527
527
|
)
|
|
528
528
|
|
|
529
|
+
def get_materialized_view(
|
|
530
|
+
self, instance_id: str, materialized_view_id: str, *args, **kwargs
|
|
531
|
+
) -> MaterializedView:
|
|
532
|
+
"""Returns a materialized view instance for making read requests. All arguments are passed
|
|
533
|
+
directly to the MaterializedView constructor.
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
Args:
|
|
538
|
+
instance_id: The Bigtable instance ID to associate with this client.
|
|
539
|
+
instance_id is combined with the client's project to fully
|
|
540
|
+
specify the instance
|
|
541
|
+
materialized_view_id: The id for the materialized view to use for requests
|
|
542
|
+
app_profile_id: The app profile to associate with requests.
|
|
543
|
+
https://cloud.google.com/bigtable/docs/app-profiles
|
|
544
|
+
default_read_rows_operation_timeout: The default timeout for read rows
|
|
545
|
+
operations, in seconds. If not set, defaults to 600 seconds (10 minutes)
|
|
546
|
+
default_read_rows_attempt_timeout: The default timeout for individual
|
|
547
|
+
read rows rpc requests, in seconds. If not set, defaults to 20 seconds
|
|
548
|
+
default_operation_timeout: The default timeout for all other operations, in
|
|
549
|
+
seconds. If not set, defaults to 60 seconds
|
|
550
|
+
default_attempt_timeout: The default timeout for all other individual rpc
|
|
551
|
+
requests, in seconds. If not set, defaults to 20 seconds
|
|
552
|
+
default_read_rows_retryable_errors: a list of errors that will be retried
|
|
553
|
+
if encountered during read_rows and related operations.
|
|
554
|
+
Defaults to 4 (DeadlineExceeded), 14 (ServiceUnavailable), and 10 (Aborted)
|
|
555
|
+
default_retryable_errors: a list of errors that will be retried if
|
|
556
|
+
encountered during all other operations.
|
|
557
|
+
Defaults to 4 (DeadlineExceeded) and 14 (ServiceUnavailable)
|
|
558
|
+
Returns:
|
|
559
|
+
MaterializedView: a materialized view instance for making read requests
|
|
560
|
+
Raises:
|
|
561
|
+
None"""
|
|
562
|
+
return CrossSync._Sync_Impl.MaterializedView(
|
|
563
|
+
self, instance_id, materialized_view_id, *args, **kwargs
|
|
564
|
+
)
|
|
565
|
+
|
|
529
566
|
def execute_query(
|
|
530
567
|
self,
|
|
531
568
|
query: str,
|
|
@@ -732,14 +769,13 @@ class _DataApiTarget(abc.ABC):
|
|
|
732
769
|
"""
|
|
733
770
|
Abstract class containing API surface for BigtableDataClient. Should not be created directly
|
|
734
771
|
|
|
735
|
-
Can be instantiated as a Table or
|
|
772
|
+
Can be instantiated as a Table, an AuthorizedView, or a MaterializedView
|
|
736
773
|
"""
|
|
737
774
|
|
|
738
775
|
def __init__(
|
|
739
776
|
self,
|
|
740
777
|
client: BigtableDataClient,
|
|
741
778
|
instance_id: str,
|
|
742
|
-
table_id: str,
|
|
743
779
|
app_profile_id: str | None = None,
|
|
744
780
|
*,
|
|
745
781
|
default_read_rows_operation_timeout: float = 600,
|
|
@@ -763,7 +799,7 @@ class _DataApiTarget(abc.ABC):
|
|
|
763
799
|
ServiceUnavailable,
|
|
764
800
|
),
|
|
765
801
|
):
|
|
766
|
-
"""Initialize a
|
|
802
|
+
"""Initialize a data API target instance
|
|
767
803
|
|
|
768
804
|
|
|
769
805
|
|
|
@@ -771,8 +807,6 @@ class _DataApiTarget(abc.ABC):
|
|
|
771
807
|
instance_id: The Bigtable instance ID to associate with this client.
|
|
772
808
|
instance_id is combined with the client's project to fully
|
|
773
809
|
specify the instance
|
|
774
|
-
table_id: The ID of the table. table_id is combined with the
|
|
775
|
-
instance_id and the client's project to fully specify the table
|
|
776
810
|
app_profile_id: The app profile to associate with requests.
|
|
777
811
|
https://cloud.google.com/bigtable/docs/app-profiles
|
|
778
812
|
default_read_rows_operation_timeout: The default timeout for read rows
|
|
@@ -816,10 +850,6 @@ class _DataApiTarget(abc.ABC):
|
|
|
816
850
|
self.instance_name = self.client._gapic_client.instance_path(
|
|
817
851
|
self.client.project, instance_id
|
|
818
852
|
)
|
|
819
|
-
self.table_id = table_id
|
|
820
|
-
self.table_name = self.client._gapic_client.table_path(
|
|
821
|
-
self.client.project, instance_id, table_id
|
|
822
|
-
)
|
|
823
853
|
self.app_profile_id: str | None = app_profile_id
|
|
824
854
|
self.default_operation_timeout: float = default_operation_timeout
|
|
825
855
|
self.default_attempt_timeout: float | None = default_attempt_timeout
|
|
@@ -861,7 +891,11 @@ class _DataApiTarget(abc.ABC):
|
|
|
861
891
|
@property
|
|
862
892
|
@abc.abstractmethod
|
|
863
893
|
def _request_path(self) -> dict[str, str]:
|
|
864
|
-
"""Used to populate table_name
|
|
894
|
+
"""Used to populate table_name, authorized_view_name, or materialized_view_name
|
|
895
|
+
for rpc requests, depending on the subclass
|
|
896
|
+
|
|
897
|
+
The returned key must be a valid field on each request proto it is passed to;
|
|
898
|
+
mutation requests only accept table_name and authorized_view_name
|
|
865
899
|
|
|
866
900
|
Unimplemented in base class"""
|
|
867
901
|
raise NotImplementedError
|
|
@@ -1557,6 +1591,55 @@ class Table(_DataApiTarget):
|
|
|
1557
1591
|
each call
|
|
1558
1592
|
"""
|
|
1559
1593
|
|
|
1594
|
+
def __init__(
|
|
1595
|
+
self,
|
|
1596
|
+
client: BigtableDataClient,
|
|
1597
|
+
instance_id: str,
|
|
1598
|
+
table_id: str,
|
|
1599
|
+
app_profile_id: str | None = None,
|
|
1600
|
+
**kwargs,
|
|
1601
|
+
):
|
|
1602
|
+
"""Initialize a Table instance
|
|
1603
|
+
|
|
1604
|
+
|
|
1605
|
+
|
|
1606
|
+
Args:
|
|
1607
|
+
instance_id: The Bigtable instance ID to associate with this client.
|
|
1608
|
+
instance_id is combined with the client's project to fully
|
|
1609
|
+
specify the instance
|
|
1610
|
+
table_id: The ID of the table. table_id is combined with the
|
|
1611
|
+
instance_id and the client's project to fully specify the table
|
|
1612
|
+
app_profile_id: The app profile to associate with requests.
|
|
1613
|
+
https://cloud.google.com/bigtable/docs/app-profiles
|
|
1614
|
+
default_read_rows_operation_timeout: The default timeout for read rows
|
|
1615
|
+
operations, in seconds. If not set, defaults to 600 seconds (10 minutes)
|
|
1616
|
+
default_read_rows_attempt_timeout: The default timeout for individual
|
|
1617
|
+
read rows rpc requests, in seconds. If not set, defaults to 20 seconds
|
|
1618
|
+
default_mutate_rows_operation_timeout: The default timeout for mutate rows
|
|
1619
|
+
operations, in seconds. If not set, defaults to 600 seconds (10 minutes)
|
|
1620
|
+
default_mutate_rows_attempt_timeout: The default timeout for individual
|
|
1621
|
+
mutate rows rpc requests, in seconds. If not set, defaults to 60 seconds
|
|
1622
|
+
default_operation_timeout: The default timeout for all other operations, in
|
|
1623
|
+
seconds. If not set, defaults to 60 seconds
|
|
1624
|
+
default_attempt_timeout: The default timeout for all other individual rpc
|
|
1625
|
+
requests, in seconds. If not set, defaults to 20 seconds
|
|
1626
|
+
default_read_rows_retryable_errors: a list of errors that will be retried
|
|
1627
|
+
if encountered during read_rows and related operations.
|
|
1628
|
+
Defaults to 4 (DeadlineExceeded), 14 (ServiceUnavailable), and 10 (Aborted)
|
|
1629
|
+
default_mutate_rows_retryable_errors: a list of errors that will be retried
|
|
1630
|
+
if encountered during mutate_rows and related operations.
|
|
1631
|
+
Defaults to 4 (DeadlineExceeded) and 14 (ServiceUnavailable)
|
|
1632
|
+
default_retryable_errors: a list of errors that will be retried if
|
|
1633
|
+
encountered during all other operations.
|
|
1634
|
+
Defaults to 4 (DeadlineExceeded) and 14 (ServiceUnavailable)
|
|
1635
|
+
Raises:
|
|
1636
|
+
None"""
|
|
1637
|
+
self.table_id = table_id
|
|
1638
|
+
self.table_name = client._gapic_client.table_path(
|
|
1639
|
+
client.project, instance_id, table_id
|
|
1640
|
+
)
|
|
1641
|
+
super().__init__(client, instance_id, app_profile_id, **kwargs)
|
|
1642
|
+
|
|
1560
1643
|
@property
|
|
1561
1644
|
def _request_path(self) -> dict[str, str]:
|
|
1562
1645
|
return {"table_name": self.table_name}
|
|
@@ -1619,12 +1702,110 @@ class AuthorizedView(_DataApiTarget):
|
|
|
1619
1702
|
Defaults to 4 (DeadlineExceeded) and 14 (ServiceUnavailable)
|
|
1620
1703
|
Raises:
|
|
1621
1704
|
None"""
|
|
1622
|
-
|
|
1705
|
+
self.table_id = table_id
|
|
1706
|
+
self.table_name = client._gapic_client.table_path(
|
|
1707
|
+
client.project, instance_id, table_id
|
|
1708
|
+
)
|
|
1623
1709
|
self.authorized_view_id = authorized_view_id
|
|
1624
|
-
self.authorized_view_name: str =
|
|
1625
|
-
|
|
1710
|
+
self.authorized_view_name: str = client._gapic_client.authorized_view_path(
|
|
1711
|
+
client.project, instance_id, table_id, authorized_view_id
|
|
1626
1712
|
)
|
|
1713
|
+
super().__init__(client, instance_id, app_profile_id, **kwargs)
|
|
1627
1714
|
|
|
1628
1715
|
@property
|
|
1629
1716
|
def _request_path(self) -> dict[str, str]:
|
|
1630
1717
|
return {"authorized_view_name": self.authorized_view_name}
|
|
1718
|
+
|
|
1719
|
+
|
|
1720
|
+
@CrossSync._Sync_Impl.add_mapping_decorator("MaterializedView")
|
|
1721
|
+
class MaterializedView(_DataApiTarget):
|
|
1722
|
+
"""
|
|
1723
|
+
Provides read access to a materialized view of a table.
|
|
1724
|
+
|
|
1725
|
+
A materialized view is a pre-computed, read-only view over a table, defined
|
|
1726
|
+
by a SQL query. Materialized views support read operations only; mutation
|
|
1727
|
+
methods raise NotImplementedError.
|
|
1728
|
+
|
|
1729
|
+
MaterializedView object maintains materialized_view_id and app_profile_id context,
|
|
1730
|
+
and passes them with each call
|
|
1731
|
+
"""
|
|
1732
|
+
|
|
1733
|
+
def __init__(
|
|
1734
|
+
self,
|
|
1735
|
+
client: BigtableDataClient,
|
|
1736
|
+
instance_id: str,
|
|
1737
|
+
materialized_view_id: str,
|
|
1738
|
+
app_profile_id: str | None = None,
|
|
1739
|
+
**kwargs,
|
|
1740
|
+
):
|
|
1741
|
+
"""Initialize a MaterializedView instance
|
|
1742
|
+
|
|
1743
|
+
|
|
1744
|
+
|
|
1745
|
+
Args:
|
|
1746
|
+
instance_id: The Bigtable instance ID to associate with this client.
|
|
1747
|
+
instance_id is combined with the client's project to fully
|
|
1748
|
+
specify the instance
|
|
1749
|
+
materialized_view_id: The id for the materialized view to use for requests
|
|
1750
|
+
app_profile_id: The app profile to associate with requests.
|
|
1751
|
+
https://cloud.google.com/bigtable/docs/app-profiles
|
|
1752
|
+
default_read_rows_operation_timeout: The default timeout for read rows
|
|
1753
|
+
operations, in seconds. If not set, defaults to 600 seconds (10 minutes)
|
|
1754
|
+
default_read_rows_attempt_timeout: The default timeout for individual
|
|
1755
|
+
read rows rpc requests, in seconds. If not set, defaults to 20 seconds
|
|
1756
|
+
default_operation_timeout: The default timeout for all other operations, in
|
|
1757
|
+
seconds. If not set, defaults to 60 seconds
|
|
1758
|
+
default_attempt_timeout: The default timeout for all other individual rpc
|
|
1759
|
+
requests, in seconds. If not set, defaults to 20 seconds
|
|
1760
|
+
default_read_rows_retryable_errors: a list of errors that will be retried
|
|
1761
|
+
if encountered during read_rows and related operations.
|
|
1762
|
+
Defaults to 4 (DeadlineExceeded), 14 (ServiceUnavailable), and 10 (Aborted)
|
|
1763
|
+
default_retryable_errors: a list of errors that will be retried if
|
|
1764
|
+
encountered during all other operations.
|
|
1765
|
+
Defaults to 4 (DeadlineExceeded) and 14 (ServiceUnavailable)
|
|
1766
|
+
Raises:
|
|
1767
|
+
None"""
|
|
1768
|
+
self.materialized_view_id = materialized_view_id
|
|
1769
|
+
self.materialized_view_name: str = client._gapic_client.materialized_view_path(
|
|
1770
|
+
client.project, instance_id, materialized_view_id
|
|
1771
|
+
)
|
|
1772
|
+
super().__init__(client, instance_id, app_profile_id, **kwargs)
|
|
1773
|
+
|
|
1774
|
+
@property
|
|
1775
|
+
def _request_path(self) -> dict[str, str]:
|
|
1776
|
+
return {"materialized_view_name": self.materialized_view_name}
|
|
1777
|
+
|
|
1778
|
+
def mutations_batcher(self, *args, **kwargs):
|
|
1779
|
+
"""Mutations are not supported for materialized views
|
|
1780
|
+
|
|
1781
|
+
Raises:
|
|
1782
|
+
NotImplementedError: always; materialized views are read-only"""
|
|
1783
|
+
raise NotImplementedError("Mutations are not supported for materialized views")
|
|
1784
|
+
|
|
1785
|
+
def mutate_row(self, *args, **kwargs):
|
|
1786
|
+
"""Mutations are not supported for materialized views
|
|
1787
|
+
|
|
1788
|
+
Raises:
|
|
1789
|
+
NotImplementedError: always; materialized views are read-only"""
|
|
1790
|
+
raise NotImplementedError("Mutations are not supported for materialized views")
|
|
1791
|
+
|
|
1792
|
+
def bulk_mutate_rows(self, *args, **kwargs):
|
|
1793
|
+
"""Mutations are not supported for materialized views
|
|
1794
|
+
|
|
1795
|
+
Raises:
|
|
1796
|
+
NotImplementedError: always; materialized views are read-only"""
|
|
1797
|
+
raise NotImplementedError("Mutations are not supported for materialized views")
|
|
1798
|
+
|
|
1799
|
+
def check_and_mutate_row(self, *args, **kwargs):
|
|
1800
|
+
"""Mutations are not supported for materialized views
|
|
1801
|
+
|
|
1802
|
+
Raises:
|
|
1803
|
+
NotImplementedError: always; materialized views are read-only"""
|
|
1804
|
+
raise NotImplementedError("Mutations are not supported for materialized views")
|
|
1805
|
+
|
|
1806
|
+
def read_modify_write_row(self, *args, **kwargs):
|
|
1807
|
+
"""Mutations are not supported for materialized views
|
|
1808
|
+
|
|
1809
|
+
Raises:
|
|
1810
|
+
NotImplementedError: always; materialized views are read-only"""
|
|
1811
|
+
raise NotImplementedError("Mutations are not supported for materialized views")
|