google-cloud-bigquery-storage 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_bigquery_storage-2.40.0/google_cloud_bigquery_storage.egg-info → google_cloud_bigquery_storage-2.41.0}/PKG-INFO +5 -3
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage/__init__.py +2 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage/gapic_version.py +1 -1
- {google_cloud_bigquery_storage-2.40.0/google/cloud/bigquery_storage_v1alpha → google_cloud_bigquery_storage-2.41.0/google/cloud/bigquery_storage_v1}/gapic_version.py +1 -1
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1/reader.py +6 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1/services/big_query_write/async_client.py +1 -1
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1/services/big_query_write/client.py +1 -1
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1/types/__init__.py +2 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1/types/storage.py +190 -1
- {google_cloud_bigquery_storage-2.40.0/google/cloud/bigquery_storage_v1beta → google_cloud_bigquery_storage-2.41.0/google/cloud/bigquery_storage_v1alpha}/gapic_version.py +1 -1
- {google_cloud_bigquery_storage-2.40.0/google/cloud/bigquery_storage_v1 → google_cloud_bigquery_storage-2.41.0/google/cloud/bigquery_storage_v1beta}/gapic_version.py +1 -1
- google_cloud_bigquery_storage-2.41.0/google/cloud/bigquery_storage_v1beta2/gapic_version.py +16 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0/google_cloud_bigquery_storage.egg-info}/PKG-INFO +5 -3
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google_cloud_bigquery_storage.egg-info/SOURCES.txt +1 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google_cloud_bigquery_storage.egg-info/requires.txt +4 -2
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/setup.py +7 -3
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/tests/unit/test_read_client_v1.py +8 -17
- google_cloud_bigquery_storage-2.41.0/tests/unit/test_reader_pandas_gbq.py +207 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/tests/unit/test_reader_v1.py +17 -0
- google_cloud_bigquery_storage-2.40.0/google/cloud/bigquery_storage_v1beta2/gapic_version.py +0 -16
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/LICENSE +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/MANIFEST.in +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/README.rst +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage/py.typed +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1/__init__.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1/client.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1/exceptions.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1/gapic_metadata.json +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1/gapic_types.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1/py.typed +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1/services/__init__.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1/services/big_query_read/__init__.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1/services/big_query_read/async_client.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1/services/big_query_read/client.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1/services/big_query_read/transports/__init__.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1/services/big_query_read/transports/base.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1/services/big_query_read/transports/grpc.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1/services/big_query_read/transports/grpc_asyncio.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1/services/big_query_write/__init__.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1/services/big_query_write/transports/__init__.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1/services/big_query_write/transports/base.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1/services/big_query_write/transports/grpc.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1/services/big_query_write/transports/grpc_asyncio.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1/types/annotations.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1/types/arrow.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1/types/avro.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1/types/protobuf.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1/types/stream.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1/types/table.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1/writer.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1alpha/__init__.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1alpha/gapic_metadata.json +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1alpha/py.typed +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1alpha/services/__init__.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1alpha/services/metastore_partition_service/__init__.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1alpha/services/metastore_partition_service/async_client.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1alpha/services/metastore_partition_service/client.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1alpha/services/metastore_partition_service/transports/__init__.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1alpha/services/metastore_partition_service/transports/base.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1alpha/services/metastore_partition_service/transports/grpc.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1alpha/services/metastore_partition_service/transports/grpc_asyncio.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1alpha/types/__init__.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1alpha/types/metastore_partition.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1alpha/types/partition.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta/__init__.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta/gapic_metadata.json +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta/py.typed +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta/services/__init__.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta/services/metastore_partition_service/__init__.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta/services/metastore_partition_service/async_client.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta/services/metastore_partition_service/client.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta/services/metastore_partition_service/transports/__init__.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta/services/metastore_partition_service/transports/base.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta/services/metastore_partition_service/transports/grpc.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta/services/metastore_partition_service/transports/grpc_asyncio.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta/types/__init__.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta/types/metastore_partition.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta/types/partition.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta2/__init__.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta2/client.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta2/exceptions.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta2/gapic_metadata.json +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta2/py.typed +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta2/services/__init__.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta2/services/big_query_read/__init__.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta2/services/big_query_read/async_client.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta2/services/big_query_read/client.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta2/services/big_query_read/transports/__init__.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta2/services/big_query_read/transports/base.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta2/services/big_query_read/transports/grpc.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta2/services/big_query_read/transports/grpc_asyncio.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta2/services/big_query_write/__init__.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta2/services/big_query_write/async_client.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta2/services/big_query_write/client.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta2/services/big_query_write/transports/__init__.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta2/services/big_query_write/transports/base.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta2/services/big_query_write/transports/grpc.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta2/services/big_query_write/transports/grpc_asyncio.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta2/types/__init__.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta2/types/arrow.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta2/types/avro.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta2/types/protobuf.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta2/types/storage.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta2/types/stream.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta2/types/table.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google/cloud/bigquery_storage_v1beta2/writer.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google_cloud_bigquery_storage.egg-info/dependency_links.txt +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google_cloud_bigquery_storage.egg-info/not-zip-safe +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/google_cloud_bigquery_storage.egg-info/top_level.txt +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/setup.cfg +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/tests/__init__.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/tests/system/__init__.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/tests/system/assets/people_data.csv +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/tests/system/assets/public_samples_copy.sql +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/tests/system/conftest.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/tests/system/helpers.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/tests/system/reader/__init__.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/tests/system/reader/conftest.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/tests/system/reader/test_reader.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/tests/system/reader/test_reader_dataframe.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/tests/system/resources/README.md +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/tests/system/resources/person.proto +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/tests/system/resources/person_pb2.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/tests/system/test_writer.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/tests/unit/__init__.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/tests/unit/gapic/__init__.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/tests/unit/gapic/bigquery_storage_v1/__init__.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/tests/unit/gapic/bigquery_storage_v1/test_big_query_read.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/tests/unit/gapic/bigquery_storage_v1/test_big_query_write.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/tests/unit/gapic/bigquery_storage_v1alpha/__init__.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/tests/unit/gapic/bigquery_storage_v1alpha/test_metastore_partition_service.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/tests/unit/gapic/bigquery_storage_v1beta/__init__.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/tests/unit/gapic/bigquery_storage_v1beta/test_metastore_partition_service.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/tests/unit/gapic/bigquery_storage_v1beta2/__init__.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/tests/unit/gapic/bigquery_storage_v1beta2/test_big_query_read.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/tests/unit/gapic/bigquery_storage_v1beta2/test_big_query_write.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/tests/unit/helpers.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/tests/unit/test_packaging.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/tests/unit/test_reader_v1_arrow.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/tests/unit/test_writer_v1.py +0 -0
- {google_cloud_bigquery_storage-2.40.0 → google_cloud_bigquery_storage-2.41.0}/tests/unit/test_writer_v1beta2.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: google-cloud-bigquery-storage
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.41.0
|
|
4
4
|
Summary: Google Cloud Bigquery Storage API client library
|
|
5
5
|
Home-page: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-bigquery-storage
|
|
6
6
|
Author: Google LLC
|
|
@@ -28,9 +28,11 @@ Requires-Dist: grpcio<2.0.0,>=1.75.1; python_version >= "3.14"
|
|
|
28
28
|
Requires-Dist: proto-plus<2.0.0,>=1.26.1
|
|
29
29
|
Requires-Dist: protobuf<8.0.0,>=6.33.5
|
|
30
30
|
Provides-Extra: pandas
|
|
31
|
-
Requires-Dist: pandas
|
|
31
|
+
Requires-Dist: pandas<3.0.0,>=1.1.3; extra == "pandas"
|
|
32
|
+
Requires-Dist: pyarrow>=3.0.0; extra == "pandas"
|
|
33
|
+
Requires-Dist: pandas-gbq<2.0.0,>=0.35.1; extra == "pandas"
|
|
32
34
|
Provides-Extra: fastavro
|
|
33
|
-
Requires-Dist: fastavro
|
|
35
|
+
Requires-Dist: fastavro<2.0.0,>=1.1.0; extra == "fastavro"
|
|
34
36
|
Provides-Extra: pyarrow
|
|
35
37
|
Requires-Dist: pyarrow>=3.0.0; extra == "pyarrow"
|
|
36
38
|
Dynamic: author
|
|
@@ -43,6 +43,7 @@ from google.cloud.bigquery_storage_v1.types.storage import (
|
|
|
43
43
|
AppendRowsResponse,
|
|
44
44
|
BatchCommitWriteStreamsRequest,
|
|
45
45
|
BatchCommitWriteStreamsResponse,
|
|
46
|
+
ClientStats,
|
|
46
47
|
CreateReadSessionRequest,
|
|
47
48
|
CreateWriteStreamRequest,
|
|
48
49
|
FinalizeWriteStreamRequest,
|
|
@@ -87,6 +88,7 @@ __all__ = (
|
|
|
87
88
|
"AppendRowsResponse",
|
|
88
89
|
"BatchCommitWriteStreamsRequest",
|
|
89
90
|
"BatchCommitWriteStreamsResponse",
|
|
91
|
+
"ClientStats",
|
|
90
92
|
"CreateReadSessionRequest",
|
|
91
93
|
"CreateWriteStreamRequest",
|
|
92
94
|
"FinalizeWriteStreamRequest",
|
|
@@ -617,6 +617,12 @@ class ReadRowsPage(object):
|
|
|
617
617
|
pandas.DataFrame:
|
|
618
618
|
A data frame of all rows in the stream.
|
|
619
619
|
"""
|
|
620
|
+
warnings.warn(
|
|
621
|
+
"Retrieving DataFrames directly via google-cloud-bigquery-storage is deprecated. "
|
|
622
|
+
"Please use 'pandas_gbq.read_gbq()' or 'pandas_gbq.pandas.read_bigquery_stream_batches()'.",
|
|
623
|
+
PendingDeprecationWarning,
|
|
624
|
+
stacklevel=2,
|
|
625
|
+
)
|
|
620
626
|
if pandas is None:
|
|
621
627
|
raise ImportError(_PANDAS_REQUIRED)
|
|
622
628
|
|
|
@@ -524,7 +524,7 @@ class BigQueryWriteAsyncClient:
|
|
|
524
524
|
within the same connection for the default stream.
|
|
525
525
|
|
|
526
526
|
The size of a single AppendRowsRequest must be less than
|
|
527
|
-
|
|
527
|
+
20 MB in size. Requests larger than this return an
|
|
528
528
|
error, typically ``INVALID_ARGUMENT``.
|
|
529
529
|
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
530
530
|
should be retried.
|
|
@@ -974,7 +974,7 @@ class BigQueryWriteClient(metaclass=BigQueryWriteClientMeta):
|
|
|
974
974
|
within the same connection for the default stream.
|
|
975
975
|
|
|
976
976
|
The size of a single AppendRowsRequest must be less than
|
|
977
|
-
|
|
977
|
+
20 MB in size. Requests larger than this return an
|
|
978
978
|
error, typically ``INVALID_ARGUMENT``.
|
|
979
979
|
retry (google.api_core.retry.Retry): Designation of what errors, if any,
|
|
980
980
|
should be retried.
|
|
@@ -32,6 +32,7 @@ from .storage import (
|
|
|
32
32
|
AppendRowsResponse,
|
|
33
33
|
BatchCommitWriteStreamsRequest,
|
|
34
34
|
BatchCommitWriteStreamsResponse,
|
|
35
|
+
ClientStats,
|
|
35
36
|
CreateReadSessionRequest,
|
|
36
37
|
CreateWriteStreamRequest,
|
|
37
38
|
FinalizeWriteStreamRequest,
|
|
@@ -73,6 +74,7 @@ __all__ = (
|
|
|
73
74
|
"AppendRowsResponse",
|
|
74
75
|
"BatchCommitWriteStreamsRequest",
|
|
75
76
|
"BatchCommitWriteStreamsResponse",
|
|
77
|
+
"ClientStats",
|
|
76
78
|
"CreateReadSessionRequest",
|
|
77
79
|
"CreateWriteStreamRequest",
|
|
78
80
|
"FinalizeWriteStreamRequest",
|
|
@@ -46,6 +46,7 @@ __protobuf__ = proto.module(
|
|
|
46
46
|
"FlushRowsResponse",
|
|
47
47
|
"StorageError",
|
|
48
48
|
"RowError",
|
|
49
|
+
"ClientStats",
|
|
49
50
|
},
|
|
50
51
|
)
|
|
51
52
|
|
|
@@ -108,6 +109,8 @@ class CreateReadSessionRequest(proto.Message):
|
|
|
108
109
|
class ReadRowsRequest(proto.Message):
|
|
109
110
|
r"""Request message for ``ReadRows``.
|
|
110
111
|
|
|
112
|
+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
|
|
113
|
+
|
|
111
114
|
Attributes:
|
|
112
115
|
read_stream (str):
|
|
113
116
|
Required. Stream to read rows from.
|
|
@@ -116,6 +119,12 @@ class ReadRowsRequest(proto.Message):
|
|
|
116
119
|
last row read from Read. Requesting a larger
|
|
117
120
|
offset is undefined. If not specified, start
|
|
118
121
|
reading from offset zero.
|
|
122
|
+
arrow_serialization_options (google.cloud.bigquery_storage_v1.types.ArrowSerializationOptions):
|
|
123
|
+
Optional. Options specific to the Apache
|
|
124
|
+
Arrow output format.
|
|
125
|
+
This feature is not yet available.
|
|
126
|
+
|
|
127
|
+
This field is a member of `oneof`_ ``output_format_serialization_options``.
|
|
119
128
|
"""
|
|
120
129
|
|
|
121
130
|
read_stream: str = proto.Field(
|
|
@@ -126,6 +135,12 @@ class ReadRowsRequest(proto.Message):
|
|
|
126
135
|
proto.INT64,
|
|
127
136
|
number=2,
|
|
128
137
|
)
|
|
138
|
+
arrow_serialization_options: arrow.ArrowSerializationOptions = proto.Field(
|
|
139
|
+
proto.MESSAGE,
|
|
140
|
+
number=5,
|
|
141
|
+
oneof="output_format_serialization_options",
|
|
142
|
+
message=arrow.ArrowSerializationOptions,
|
|
143
|
+
)
|
|
129
144
|
|
|
130
145
|
|
|
131
146
|
class ThrottleState(proto.Message):
|
|
@@ -249,6 +264,14 @@ class ReadRowsResponse(proto.Message):
|
|
|
249
264
|
client should skip decompression.
|
|
250
265
|
|
|
251
266
|
This field is a member of `oneof`_ ``_uncompressed_byte_size``.
|
|
267
|
+
total_estimated_row_count (int):
|
|
268
|
+
Output only. The total estimated number of
|
|
269
|
+
rows in the query results. Only populated when
|
|
270
|
+
reading data from a BigQuery job.
|
|
271
|
+
|
|
272
|
+
This feature is not yet available.
|
|
273
|
+
|
|
274
|
+
This field is a member of `oneof`_ ``_total_estimated_row_count``.
|
|
252
275
|
"""
|
|
253
276
|
|
|
254
277
|
avro_rows: avro.AvroRows = proto.Field(
|
|
@@ -294,6 +317,11 @@ class ReadRowsResponse(proto.Message):
|
|
|
294
317
|
number=9,
|
|
295
318
|
optional=True,
|
|
296
319
|
)
|
|
320
|
+
total_estimated_row_count: int = proto.Field(
|
|
321
|
+
proto.INT64,
|
|
322
|
+
number=10,
|
|
323
|
+
optional=True,
|
|
324
|
+
)
|
|
297
325
|
|
|
298
326
|
|
|
299
327
|
class SplitReadStreamRequest(proto.Message):
|
|
@@ -385,7 +413,7 @@ class AppendRowsRequest(proto.Message):
|
|
|
385
413
|
table destinations within the same connection for the default
|
|
386
414
|
stream.
|
|
387
415
|
|
|
388
|
-
The size of a single AppendRowsRequest must be less than
|
|
416
|
+
The size of a single AppendRowsRequest must be less than 20 MB in
|
|
389
417
|
size. Requests larger than this return an error, typically
|
|
390
418
|
``INVALID_ARGUMENT``.
|
|
391
419
|
|
|
@@ -481,6 +509,9 @@ class AppendRowsRequest(proto.Message):
|
|
|
481
509
|
``DEFAULT_VALUE`` and at the same time, set
|
|
482
510
|
``missing_value_interpretations`` to ``NULL_VALUE`` on those
|
|
483
511
|
columns.
|
|
512
|
+
client_stats (google.cloud.bigquery_storage_v1.types.ClientStats):
|
|
513
|
+
Optional. Stats and telemetry data gathered
|
|
514
|
+
on the client side.
|
|
484
515
|
"""
|
|
485
516
|
|
|
486
517
|
class MissingValueInterpretation(proto.Enum):
|
|
@@ -599,6 +630,11 @@ class AppendRowsRequest(proto.Message):
|
|
|
599
630
|
number=8,
|
|
600
631
|
enum=MissingValueInterpretation,
|
|
601
632
|
)
|
|
633
|
+
client_stats: "ClientStats" = proto.Field(
|
|
634
|
+
proto.MESSAGE,
|
|
635
|
+
number=9,
|
|
636
|
+
message="ClientStats",
|
|
637
|
+
)
|
|
602
638
|
|
|
603
639
|
|
|
604
640
|
class AppendRowsResponse(proto.Message):
|
|
@@ -981,4 +1017,157 @@ class RowError(proto.Message):
|
|
|
981
1017
|
)
|
|
982
1018
|
|
|
983
1019
|
|
|
1020
|
+
class ClientStats(proto.Message):
|
|
1021
|
+
r"""Stats and telemetry data gathered on the client side about
|
|
1022
|
+
requests being sent to the BigQuery Storage service, for
|
|
1023
|
+
internal use only.
|
|
1024
|
+
|
|
1025
|
+
Attributes:
|
|
1026
|
+
request_stats (google.cloud.bigquery_storage_v1.types.ClientStats.RequestStats):
|
|
1027
|
+
Optional. Per-request stats.
|
|
1028
|
+
window_stats (google.cloud.bigquery_storage_v1.types.ClientStats.WindowStats):
|
|
1029
|
+
Optional. Windowed stats.
|
|
1030
|
+
"""
|
|
1031
|
+
|
|
1032
|
+
class RequestStats(proto.Message):
|
|
1033
|
+
r"""Stats and telemetry data gathered on the client side about a
|
|
1034
|
+
single request.
|
|
1035
|
+
|
|
1036
|
+
|
|
1037
|
+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
|
|
1038
|
+
|
|
1039
|
+
Attributes:
|
|
1040
|
+
send_time_millis (int):
|
|
1041
|
+
Optional. Timestamp indicating when the
|
|
1042
|
+
request was sent over the network, expressed in
|
|
1043
|
+
epoch milliseconds.
|
|
1044
|
+
|
|
1045
|
+
This field is a member of `oneof`_ ``_send_time_millis``.
|
|
1046
|
+
queued_requests_count (int):
|
|
1047
|
+
Optional. Number of pending requests at the
|
|
1048
|
+
moment this request was sent. This includes
|
|
1049
|
+
requests waiting to be sent, and those that are
|
|
1050
|
+
inflight.
|
|
1051
|
+
|
|
1052
|
+
This field is a member of `oneof`_ ``_queued_requests_count``.
|
|
1053
|
+
"""
|
|
1054
|
+
|
|
1055
|
+
send_time_millis: int = proto.Field(
|
|
1056
|
+
proto.INT64,
|
|
1057
|
+
number=1,
|
|
1058
|
+
optional=True,
|
|
1059
|
+
)
|
|
1060
|
+
queued_requests_count: int = proto.Field(
|
|
1061
|
+
proto.INT64,
|
|
1062
|
+
number=2,
|
|
1063
|
+
optional=True,
|
|
1064
|
+
)
|
|
1065
|
+
|
|
1066
|
+
class WindowStats(proto.Message):
|
|
1067
|
+
r"""Aggregate connection metrics over a window interval.
|
|
1068
|
+
|
|
1069
|
+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
|
|
1070
|
+
|
|
1071
|
+
Attributes:
|
|
1072
|
+
max_response_latency_millis (int):
|
|
1073
|
+
Optional. The maximum response latency
|
|
1074
|
+
observed in the window, expressed in
|
|
1075
|
+
milliseconds.
|
|
1076
|
+
|
|
1077
|
+
This field is a member of `oneof`_ ``_max_response_latency_millis``.
|
|
1078
|
+
avg_response_latency_millis (int):
|
|
1079
|
+
Optional. The average response latency
|
|
1080
|
+
observed in the window, expressed in
|
|
1081
|
+
milliseconds.
|
|
1082
|
+
|
|
1083
|
+
This field is a member of `oneof`_ ``_avg_response_latency_millis``.
|
|
1084
|
+
longest_wait_no_response_millis (int):
|
|
1085
|
+
Optional. The longest time spent waiting without receiving a
|
|
1086
|
+
response in the window. This could exceed
|
|
1087
|
+
max_response_latency_millis because the latter is evaluated
|
|
1088
|
+
only when a response is received. Expressed in milliseconds.
|
|
1089
|
+
|
|
1090
|
+
This field is a member of `oneof`_ ``_longest_wait_no_response_millis``.
|
|
1091
|
+
requests_sent_count (int):
|
|
1092
|
+
Optional. How many requests were sent in the
|
|
1093
|
+
window.
|
|
1094
|
+
|
|
1095
|
+
This field is a member of `oneof`_ ``_requests_sent_count``.
|
|
1096
|
+
responses_received_count (int):
|
|
1097
|
+
Optional. How many responses were received in
|
|
1098
|
+
the window.
|
|
1099
|
+
|
|
1100
|
+
This field is a member of `oneof`_ ``_responses_received_count``.
|
|
1101
|
+
bytes_sent_count (int):
|
|
1102
|
+
Optional. How many bytes were sent in the
|
|
1103
|
+
window.
|
|
1104
|
+
|
|
1105
|
+
This field is a member of `oneof`_ ``_bytes_sent_count``.
|
|
1106
|
+
window_start_time_epoch_millis (int):
|
|
1107
|
+
Optional. Start time of the window interval
|
|
1108
|
+
for which these stats are aggregated, expressed
|
|
1109
|
+
in epoch milliseconds.
|
|
1110
|
+
|
|
1111
|
+
This field is a member of `oneof`_ ``_window_start_time_epoch_millis``.
|
|
1112
|
+
window_millis (int):
|
|
1113
|
+
Optional. Duration of the window interval for
|
|
1114
|
+
which these stats are aggregated, expressed in
|
|
1115
|
+
milliseconds.
|
|
1116
|
+
|
|
1117
|
+
This field is a member of `oneof`_ ``_window_millis``.
|
|
1118
|
+
"""
|
|
1119
|
+
|
|
1120
|
+
max_response_latency_millis: int = proto.Field(
|
|
1121
|
+
proto.INT64,
|
|
1122
|
+
number=1,
|
|
1123
|
+
optional=True,
|
|
1124
|
+
)
|
|
1125
|
+
avg_response_latency_millis: int = proto.Field(
|
|
1126
|
+
proto.INT64,
|
|
1127
|
+
number=2,
|
|
1128
|
+
optional=True,
|
|
1129
|
+
)
|
|
1130
|
+
longest_wait_no_response_millis: int = proto.Field(
|
|
1131
|
+
proto.INT64,
|
|
1132
|
+
number=3,
|
|
1133
|
+
optional=True,
|
|
1134
|
+
)
|
|
1135
|
+
requests_sent_count: int = proto.Field(
|
|
1136
|
+
proto.INT64,
|
|
1137
|
+
number=4,
|
|
1138
|
+
optional=True,
|
|
1139
|
+
)
|
|
1140
|
+
responses_received_count: int = proto.Field(
|
|
1141
|
+
proto.INT64,
|
|
1142
|
+
number=5,
|
|
1143
|
+
optional=True,
|
|
1144
|
+
)
|
|
1145
|
+
bytes_sent_count: int = proto.Field(
|
|
1146
|
+
proto.INT64,
|
|
1147
|
+
number=6,
|
|
1148
|
+
optional=True,
|
|
1149
|
+
)
|
|
1150
|
+
window_start_time_epoch_millis: int = proto.Field(
|
|
1151
|
+
proto.INT64,
|
|
1152
|
+
number=7,
|
|
1153
|
+
optional=True,
|
|
1154
|
+
)
|
|
1155
|
+
window_millis: int = proto.Field(
|
|
1156
|
+
proto.INT64,
|
|
1157
|
+
number=8,
|
|
1158
|
+
optional=True,
|
|
1159
|
+
)
|
|
1160
|
+
|
|
1161
|
+
request_stats: RequestStats = proto.Field(
|
|
1162
|
+
proto.MESSAGE,
|
|
1163
|
+
number=1,
|
|
1164
|
+
message=RequestStats,
|
|
1165
|
+
)
|
|
1166
|
+
window_stats: WindowStats = proto.Field(
|
|
1167
|
+
proto.MESSAGE,
|
|
1168
|
+
number=2,
|
|
1169
|
+
message=WindowStats,
|
|
1170
|
+
)
|
|
1171
|
+
|
|
1172
|
+
|
|
984
1173
|
__all__ = tuple(sorted(__protobuf__.manifest))
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Copyright 2026 Google LLC
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
#
|
|
16
|
+
__version__ = "2.41.0" # {x-release-please-version}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: google-cloud-bigquery-storage
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.41.0
|
|
4
4
|
Summary: Google Cloud Bigquery Storage API client library
|
|
5
5
|
Home-page: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-bigquery-storage
|
|
6
6
|
Author: Google LLC
|
|
@@ -28,9 +28,11 @@ Requires-Dist: grpcio<2.0.0,>=1.75.1; python_version >= "3.14"
|
|
|
28
28
|
Requires-Dist: proto-plus<2.0.0,>=1.26.1
|
|
29
29
|
Requires-Dist: protobuf<8.0.0,>=6.33.5
|
|
30
30
|
Provides-Extra: pandas
|
|
31
|
-
Requires-Dist: pandas
|
|
31
|
+
Requires-Dist: pandas<3.0.0,>=1.1.3; extra == "pandas"
|
|
32
|
+
Requires-Dist: pyarrow>=3.0.0; extra == "pandas"
|
|
33
|
+
Requires-Dist: pandas-gbq<2.0.0,>=0.35.1; extra == "pandas"
|
|
32
34
|
Provides-Extra: fastavro
|
|
33
|
-
Requires-Dist: fastavro
|
|
35
|
+
Requires-Dist: fastavro<2.0.0,>=1.1.0; extra == "fastavro"
|
|
34
36
|
Provides-Extra: pyarrow
|
|
35
37
|
Requires-Dist: pyarrow>=3.0.0; extra == "pyarrow"
|
|
36
38
|
Dynamic: author
|
|
@@ -120,6 +120,7 @@ tests/unit/__init__.py
|
|
|
120
120
|
tests/unit/helpers.py
|
|
121
121
|
tests/unit/test_packaging.py
|
|
122
122
|
tests/unit/test_read_client_v1.py
|
|
123
|
+
tests/unit/test_reader_pandas_gbq.py
|
|
123
124
|
tests/unit/test_reader_v1.py
|
|
124
125
|
tests/unit/test_reader_v1_arrow.py
|
|
125
126
|
tests/unit/test_writer_v1.py
|
|
@@ -54,9 +54,13 @@ dependencies = [
|
|
|
54
54
|
"protobuf >= 6.33.5, < 8.0.0",
|
|
55
55
|
]
|
|
56
56
|
extras = {
|
|
57
|
-
"pandas": [
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
"pandas": [
|
|
58
|
+
"pandas >= 1.1.3, < 3.0.0",
|
|
59
|
+
"pyarrow >= 3.0.0",
|
|
60
|
+
"pandas-gbq >= 0.35.1, < 2.0.0",
|
|
61
|
+
],
|
|
62
|
+
"fastavro": ["fastavro >= 1.1.0, < 2.0.0"],
|
|
63
|
+
"pyarrow": ["pyarrow >= 3.0.0"],
|
|
60
64
|
}
|
|
61
65
|
url = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-bigquery-storage"
|
|
62
66
|
|
|
@@ -158,24 +158,15 @@ def test_read_rows(mock_transport, client_under_test):
|
|
|
158
158
|
["google.cloud.bigquery_storage_v1", "google.cloud.bigquery_storage_v1beta2"],
|
|
159
159
|
)
|
|
160
160
|
def test_init_default_client_info(module_under_test):
|
|
161
|
-
from google.api_core.gapic_v1.client_info import METRICS_METADATA_KEY
|
|
162
|
-
|
|
163
161
|
mut = importlib.import_module(module_under_test)
|
|
164
|
-
|
|
165
162
|
creds = mock.Mock(spec=credentials.Credentials)
|
|
166
|
-
|
|
163
|
+
expected_client_info = f"gccl/{mut.__version__}"
|
|
167
164
|
|
|
168
|
-
|
|
169
|
-
|
|
165
|
+
with mock.patch("google.api_core.gapic_v1.method.wrap_method") as mock_wrap:
|
|
166
|
+
mut.BigQueryWriteClient(credentials=creds)
|
|
170
167
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
(
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
if header == METRICS_METADATA_KEY
|
|
177
|
-
),
|
|
178
|
-
None,
|
|
179
|
-
)
|
|
180
|
-
assert user_agent is not None
|
|
181
|
-
assert expected_client_info in user_agent
|
|
168
|
+
assert mock_wrap.call_count > 0
|
|
169
|
+
for call in mock_wrap.call_args_list:
|
|
170
|
+
client_info = call.kwargs.get("client_info")
|
|
171
|
+
assert client_info is not None
|
|
172
|
+
assert expected_client_info in client_info.to_user_agent()
|