google-cloud-spanner 3.54.0__tar.gz → 3.55.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_spanner-3.54.0/google_cloud_spanner.egg-info → google_cloud_spanner-3.55.0}/PKG-INFO +8 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/README.rst +7 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_admin_database_v1/__init__.py +1 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_admin_database_v1/gapic_version.py +1 -1
- {google_cloud_spanner-3.54.0/google/cloud/spanner_admin_instance_v1 → google_cloud_spanner-3.55.0/google/cloud/spanner_admin_database_v1}/services/__init__.py +1 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_admin_database_v1/services/database_admin/__init__.py +1 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_admin_database_v1/services/database_admin/async_client.py +109 -27
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_admin_database_v1/services/database_admin/client.py +108 -27
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_admin_database_v1/services/database_admin/pagers.py +1 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_admin_database_v1/services/database_admin/transports/__init__.py +1 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_admin_database_v1/services/database_admin/transports/base.py +5 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_admin_database_v1/services/database_admin/transports/grpc.py +2 -3
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_admin_database_v1/services/database_admin/transports/grpc_asyncio.py +1 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_admin_database_v1/services/database_admin/transports/rest.py +5 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_admin_database_v1/services/database_admin/transports/rest_base.py +1 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_admin_database_v1/types/__init__.py +1 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_admin_database_v1/types/backup.py +1 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_admin_database_v1/types/backup_schedule.py +1 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_admin_database_v1/types/common.py +1 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_admin_database_v1/types/spanner_database_admin.py +9 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_admin_instance_v1/__init__.py +1 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_admin_instance_v1/gapic_version.py +1 -1
- {google_cloud_spanner-3.54.0/google/cloud/spanner_v1 → google_cloud_spanner-3.55.0/google/cloud/spanner_admin_instance_v1}/services/__init__.py +1 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_admin_instance_v1/services/instance_admin/__init__.py +1 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_admin_instance_v1/services/instance_admin/async_client.py +85 -21
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_admin_instance_v1/services/instance_admin/client.py +84 -21
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_admin_instance_v1/services/instance_admin/pagers.py +1 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_admin_instance_v1/services/instance_admin/transports/__init__.py +1 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_admin_instance_v1/services/instance_admin/transports/base.py +5 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_admin_instance_v1/services/instance_admin/transports/grpc.py +2 -3
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_admin_instance_v1/services/instance_admin/transports/grpc_asyncio.py +1 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_admin_instance_v1/services/instance_admin/transports/rest.py +5 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_admin_instance_v1/services/instance_admin/transports/rest_base.py +1 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_admin_instance_v1/types/__init__.py +1 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_admin_instance_v1/types/common.py +1 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_admin_instance_v1/types/spanner_instance_admin.py +1 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_dbapi/connection.py +15 -2
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_dbapi/transaction_helper.py +4 -2
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/_helpers.py +17 -5
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/batch.py +40 -14
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/client.py +12 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/database.py +142 -24
- google_cloud_spanner-3.55.0/google/cloud/spanner_v1/database_sessions_manager.py +249 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/gapic_version.py +1 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/metrics/metrics_exporter.py +3 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/pool.py +13 -2
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/request_id_header.py +24 -2
- {google_cloud_spanner-3.54.0/tests → google_cloud_spanner-3.55.0/google/cloud/spanner_v1/services}/__init__.py +1 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/services/spanner/__init__.py +1 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/services/spanner/async_client.py +40 -11
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/services/spanner/client.py +40 -12
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/services/spanner/pagers.py +1 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/services/spanner/transports/__init__.py +1 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/services/spanner/transports/base.py +5 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/services/spanner/transports/grpc.py +2 -4
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/services/spanner/transports/grpc_asyncio.py +1 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/services/spanner/transports/rest.py +6 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/services/spanner/transports/rest_base.py +3 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/session.py +82 -17
- google_cloud_spanner-3.55.0/google/cloud/spanner_v1/session_options.py +133 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/snapshot.py +114 -41
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/testing/database_test.py +9 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/testing/interceptors.py +53 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/testing/mock_spanner.py +2 -5
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/transaction.py +91 -39
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/types/__init__.py +1 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/types/commit_response.py +1 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/types/keys.py +1 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/types/mutation.py +1 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/types/query_plan.py +1 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/types/result_set.py +41 -29
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/types/spanner.py +1 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/types/transaction.py +1 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/types/type.py +1 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0/google_cloud_spanner.egg-info}/PKG-INFO +8 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google_cloud_spanner.egg-info/SOURCES.txt +3 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/setup.cfg +0 -3
- {google_cloud_spanner-3.54.0/google/cloud/spanner_admin_database_v1/services → google_cloud_spanner-3.55.0/tests}/__init__.py +1 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/mockserver_tests/mock_server_test_base.py +4 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/mockserver_tests/test_aborted_transaction.py +19 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/mockserver_tests/test_basics.py +17 -0
- google_cloud_spanner-3.55.0/tests/mockserver_tests/test_request_id_header.py +325 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/system/_helpers.py +2 -2
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/system/test_dbapi.py +27 -22
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/system/test_observability_options.py +85 -28
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/system/test_session_api.py +373 -63
- google_cloud_spanner-3.55.0/tests/unit/__init__.py +15 -0
- google_cloud_spanner-3.55.0/tests/unit/gapic/__init__.py +15 -0
- google_cloud_spanner-3.55.0/tests/unit/gapic/spanner_admin_database_v1/__init__.py +15 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/gapic/spanner_admin_database_v1/test_database_admin.py +1 -1
- google_cloud_spanner-3.55.0/tests/unit/gapic/spanner_admin_instance_v1/__init__.py +15 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/gapic/spanner_admin_instance_v1/test_instance_admin.py +1 -1
- google_cloud_spanner-3.55.0/tests/unit/gapic/spanner_v1/__init__.py +15 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/gapic/spanner_v1/test_spanner.py +5 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/spanner_dbapi/test_connect.py +33 -5
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/spanner_dbapi/test_connection.py +37 -4
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/spanner_dbapi/test_cursor.py +65 -9
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/spanner_dbapi/test_transaction_helper.py +1 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/test__helpers.py +15 -8
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/test_batch.py +78 -12
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/test_client.py +6 -4
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/test_database.py +488 -55
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/test_instance.py +10 -8
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/test_metrics.py +28 -1
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/test_metrics_exporter.py +24 -11
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/test_pool.py +42 -3
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/test_session.py +414 -43
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/test_snapshot.py +209 -40
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/test_spanner.py +227 -56
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/test_transaction.py +86 -5
- google_cloud_spanner-3.54.0/tests/unit/__init__.py +0 -15
- google_cloud_spanner-3.54.0/tests/unit/gapic/__init__.py +0 -15
- google_cloud_spanner-3.54.0/tests/unit/gapic/spanner_admin_database_v1/__init__.py +0 -15
- google_cloud_spanner-3.54.0/tests/unit/gapic/spanner_admin_instance_v1/__init__.py +0 -15
- google_cloud_spanner-3.54.0/tests/unit/gapic/spanner_v1/__init__.py +0 -15
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/LICENSE +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/MANIFEST.in +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_admin_database_v1/gapic_metadata.json +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_admin_database_v1/py.typed +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_admin_instance_v1/gapic_metadata.json +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_admin_instance_v1/py.typed +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_dbapi/__init__.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_dbapi/_helpers.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_dbapi/batch_dml_executor.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_dbapi/checksum.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_dbapi/client_side_statement_executor.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_dbapi/client_side_statement_parser.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_dbapi/cursor.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_dbapi/exceptions.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_dbapi/parse_utils.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_dbapi/parsed_statement.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_dbapi/parser.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_dbapi/partition_helper.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_dbapi/types.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_dbapi/utils.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_dbapi/version.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/__init__.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/_opentelemetry_tracing.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/backup.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/data_types.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/gapic_metadata.json +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/instance.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/keyset.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/merged_result_set.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/metrics/constants.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/metrics/metrics_capture.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/metrics/metrics_interceptor.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/metrics/metrics_tracer.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/metrics/metrics_tracer_factory.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/metrics/spanner_metrics_tracer_factory.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/param_types.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/py.typed +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/streamed.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/table.py +0 -0
- {google_cloud_spanner-3.54.0/tests/system/utils → google_cloud_spanner-3.55.0/google/cloud/spanner_v1/testing}/__init__.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/testing/mock_database_admin.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/testing/spanner_database_admin_pb2_grpc.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google/cloud/spanner_v1/testing/spanner_pb2_grpc.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google_cloud_spanner.egg-info/dependency_links.txt +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google_cloud_spanner.egg-info/not-zip-safe +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google_cloud_spanner.egg-info/requires.txt +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/google_cloud_spanner.egg-info/top_level.txt +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/setup.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/_fixtures.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/_helpers.py +0 -0
- {google_cloud_spanner-3.54.0/tests/system → google_cloud_spanner-3.55.0/tests/mockserver_tests}/__init__.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/mockserver_tests/test_dbapi_autocommit.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/mockserver_tests/test_dbapi_isolation_level.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/mockserver_tests/test_tags.py +0 -0
- {google_cloud_spanner-3.54.0/tests/mockserver_tests → google_cloud_spanner-3.55.0/tests/system}/__init__.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/system/_sample_data.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/system/conftest.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/system/test_backup_api.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/system/test_database_api.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/system/test_instance_api.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/system/test_streaming_chunking.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/system/test_table_api.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/system/testdata/descriptors.pb +0 -0
- {google_cloud_spanner-3.54.0/tests/unit → google_cloud_spanner-3.55.0/tests/system}/testdata/singer.proto +0 -0
- {google_cloud_spanner-3.54.0/tests/unit → google_cloud_spanner-3.55.0/tests/system}/testdata/singer_pb2.py +0 -0
- {google_cloud_spanner-3.54.0/google/cloud/spanner_v1/testing → google_cloud_spanner-3.55.0/tests/system/utils}/__init__.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/system/utils/clear_streaming.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/system/utils/populate_streaming.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/system/utils/scrub_instances.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/system/utils/streaming_utils.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/spanner_dbapi/__init__.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/spanner_dbapi/test__helpers.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/spanner_dbapi/test_batch_dml_executor.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/spanner_dbapi/test_checksum.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/spanner_dbapi/test_client_side_statement_executor.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/spanner_dbapi/test_globals.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/spanner_dbapi/test_parse_utils.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/spanner_dbapi/test_parser.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/spanner_dbapi/test_types.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/spanner_dbapi/test_utils.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/streaming-read-acceptance-test.json +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/test__opentelemetry_tracing.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/test_atomic_counter.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/test_backup.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/test_datatypes.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/test_keyset.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/test_metrics_capture.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/test_metrics_interceptor.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/test_metrics_tracer.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/test_metrics_tracer_factory.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/test_packaging.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/test_param_types.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/test_spanner_metrics_tracer_factory.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/test_streamed.py +0 -0
- {google_cloud_spanner-3.54.0 → google_cloud_spanner-3.55.0}/tests/unit/test_table.py +0 -0
- {google_cloud_spanner-3.54.0/tests/system → google_cloud_spanner-3.55.0/tests/unit}/testdata/singer.proto +0 -0
- {google_cloud_spanner-3.54.0/tests/system → google_cloud_spanner-3.55.0/tests/unit}/testdata/singer_pb2.py +0 -0
{google_cloud_spanner-3.54.0/google_cloud_spanner.egg-info → google_cloud_spanner-3.55.0}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: google-cloud-spanner
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.55.0
|
|
4
4
|
Summary: Google Cloud Spanner API client library
|
|
5
5
|
Home-page: https://github.com/googleapis/python-spanner
|
|
6
6
|
Author: Google LLC
|
|
@@ -294,6 +294,13 @@ Connection API represents a wrap-around for Python Spanner API, written in accor
|
|
|
294
294
|
result = cursor.fetchall()
|
|
295
295
|
|
|
296
296
|
|
|
297
|
+
If using [fine-grained access controls](https://cloud.google.com/spanner/docs/access-with-fgac) you can pass a ``database_role`` argument to connect as that role:
|
|
298
|
+
|
|
299
|
+
.. code:: python
|
|
300
|
+
|
|
301
|
+
connection = connect("instance-id", "database-id", database_role='your-role')
|
|
302
|
+
|
|
303
|
+
|
|
297
304
|
Aborted Transactions Retry Mechanism
|
|
298
305
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
299
306
|
|
|
@@ -252,6 +252,13 @@ Connection API represents a wrap-around for Python Spanner API, written in accor
|
|
|
252
252
|
result = cursor.fetchall()
|
|
253
253
|
|
|
254
254
|
|
|
255
|
+
If using [fine-grained access controls](https://cloud.google.com/spanner/docs/access-with-fgac) you can pass a ``database_role`` argument to connect as that role:
|
|
256
|
+
|
|
257
|
+
.. code:: python
|
|
258
|
+
|
|
259
|
+
connection = connect("instance-id", "database-id", database_role='your-role')
|
|
260
|
+
|
|
261
|
+
|
|
255
262
|
Aborted Transactions Retry Mechanism
|
|
256
263
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
257
264
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2025 Google LLC
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -37,6 +37,7 @@ from google.api_core import gapic_v1
|
|
|
37
37
|
from google.api_core import retry_async as retries
|
|
38
38
|
from google.auth import credentials as ga_credentials # type: ignore
|
|
39
39
|
from google.oauth2 import service_account # type: ignore
|
|
40
|
+
import google.protobuf
|
|
40
41
|
|
|
41
42
|
|
|
42
43
|
try:
|
|
@@ -405,7 +406,10 @@ class DatabaseAdminAsyncClient:
|
|
|
405
406
|
# Create or coerce a protobuf request object.
|
|
406
407
|
# - Quick check: If we got a request object, we should *not* have
|
|
407
408
|
# gotten any keyword arguments that map to the request.
|
|
408
|
-
|
|
409
|
+
flattened_params = [parent]
|
|
410
|
+
has_flattened_params = (
|
|
411
|
+
len([param for param in flattened_params if param is not None]) > 0
|
|
412
|
+
)
|
|
409
413
|
if request is not None and has_flattened_params:
|
|
410
414
|
raise ValueError(
|
|
411
415
|
"If the `request` argument is set, then none of "
|
|
@@ -557,7 +561,10 @@ class DatabaseAdminAsyncClient:
|
|
|
557
561
|
# Create or coerce a protobuf request object.
|
|
558
562
|
# - Quick check: If we got a request object, we should *not* have
|
|
559
563
|
# gotten any keyword arguments that map to the request.
|
|
560
|
-
|
|
564
|
+
flattened_params = [parent, create_statement]
|
|
565
|
+
has_flattened_params = (
|
|
566
|
+
len([param for param in flattened_params if param is not None]) > 0
|
|
567
|
+
)
|
|
561
568
|
if request is not None and has_flattened_params:
|
|
562
569
|
raise ValueError(
|
|
563
570
|
"If the `request` argument is set, then none of "
|
|
@@ -676,7 +683,10 @@ class DatabaseAdminAsyncClient:
|
|
|
676
683
|
# Create or coerce a protobuf request object.
|
|
677
684
|
# - Quick check: If we got a request object, we should *not* have
|
|
678
685
|
# gotten any keyword arguments that map to the request.
|
|
679
|
-
|
|
686
|
+
flattened_params = [name]
|
|
687
|
+
has_flattened_params = (
|
|
688
|
+
len([param for param in flattened_params if param is not None]) > 0
|
|
689
|
+
)
|
|
680
690
|
if request is not None and has_flattened_params:
|
|
681
691
|
raise ValueError(
|
|
682
692
|
"If the `request` argument is set, then none of "
|
|
@@ -842,7 +852,10 @@ class DatabaseAdminAsyncClient:
|
|
|
842
852
|
# Create or coerce a protobuf request object.
|
|
843
853
|
# - Quick check: If we got a request object, we should *not* have
|
|
844
854
|
# gotten any keyword arguments that map to the request.
|
|
845
|
-
|
|
855
|
+
flattened_params = [database, update_mask]
|
|
856
|
+
has_flattened_params = (
|
|
857
|
+
len([param for param in flattened_params if param is not None]) > 0
|
|
858
|
+
)
|
|
846
859
|
if request is not None and has_flattened_params:
|
|
847
860
|
raise ValueError(
|
|
848
861
|
"If the `request` argument is set, then none of "
|
|
@@ -1010,7 +1023,10 @@ class DatabaseAdminAsyncClient:
|
|
|
1010
1023
|
# Create or coerce a protobuf request object.
|
|
1011
1024
|
# - Quick check: If we got a request object, we should *not* have
|
|
1012
1025
|
# gotten any keyword arguments that map to the request.
|
|
1013
|
-
|
|
1026
|
+
flattened_params = [database, statements]
|
|
1027
|
+
has_flattened_params = (
|
|
1028
|
+
len([param for param in flattened_params if param is not None]) > 0
|
|
1029
|
+
)
|
|
1014
1030
|
if request is not None and has_flattened_params:
|
|
1015
1031
|
raise ValueError(
|
|
1016
1032
|
"If the `request` argument is set, then none of "
|
|
@@ -1122,7 +1138,10 @@ class DatabaseAdminAsyncClient:
|
|
|
1122
1138
|
# Create or coerce a protobuf request object.
|
|
1123
1139
|
# - Quick check: If we got a request object, we should *not* have
|
|
1124
1140
|
# gotten any keyword arguments that map to the request.
|
|
1125
|
-
|
|
1141
|
+
flattened_params = [database]
|
|
1142
|
+
has_flattened_params = (
|
|
1143
|
+
len([param for param in flattened_params if param is not None]) > 0
|
|
1144
|
+
)
|
|
1126
1145
|
if request is not None and has_flattened_params:
|
|
1127
1146
|
raise ValueError(
|
|
1128
1147
|
"If the `request` argument is set, then none of "
|
|
@@ -1233,7 +1252,10 @@ class DatabaseAdminAsyncClient:
|
|
|
1233
1252
|
# Create or coerce a protobuf request object.
|
|
1234
1253
|
# - Quick check: If we got a request object, we should *not* have
|
|
1235
1254
|
# gotten any keyword arguments that map to the request.
|
|
1236
|
-
|
|
1255
|
+
flattened_params = [database]
|
|
1256
|
+
has_flattened_params = (
|
|
1257
|
+
len([param for param in flattened_params if param is not None]) > 0
|
|
1258
|
+
)
|
|
1237
1259
|
if request is not None and has_flattened_params:
|
|
1238
1260
|
raise ValueError(
|
|
1239
1261
|
"If the `request` argument is set, then none of "
|
|
@@ -1379,7 +1401,10 @@ class DatabaseAdminAsyncClient:
|
|
|
1379
1401
|
# Create or coerce a protobuf request object.
|
|
1380
1402
|
# - Quick check: If we got a request object, we should *not* have
|
|
1381
1403
|
# gotten any keyword arguments that map to the request.
|
|
1382
|
-
|
|
1404
|
+
flattened_params = [resource]
|
|
1405
|
+
has_flattened_params = (
|
|
1406
|
+
len([param for param in flattened_params if param is not None]) > 0
|
|
1407
|
+
)
|
|
1383
1408
|
if request is not None and has_flattened_params:
|
|
1384
1409
|
raise ValueError(
|
|
1385
1410
|
"If the `request` argument is set, then none of "
|
|
@@ -1523,7 +1548,10 @@ class DatabaseAdminAsyncClient:
|
|
|
1523
1548
|
# Create or coerce a protobuf request object.
|
|
1524
1549
|
# - Quick check: If we got a request object, we should *not* have
|
|
1525
1550
|
# gotten any keyword arguments that map to the request.
|
|
1526
|
-
|
|
1551
|
+
flattened_params = [resource]
|
|
1552
|
+
has_flattened_params = (
|
|
1553
|
+
len([param for param in flattened_params if param is not None]) > 0
|
|
1554
|
+
)
|
|
1527
1555
|
if request is not None and has_flattened_params:
|
|
1528
1556
|
raise ValueError(
|
|
1529
1557
|
"If the `request` argument is set, then none of "
|
|
@@ -1648,7 +1676,10 @@ class DatabaseAdminAsyncClient:
|
|
|
1648
1676
|
# Create or coerce a protobuf request object.
|
|
1649
1677
|
# - Quick check: If we got a request object, we should *not* have
|
|
1650
1678
|
# gotten any keyword arguments that map to the request.
|
|
1651
|
-
|
|
1679
|
+
flattened_params = [resource, permissions]
|
|
1680
|
+
has_flattened_params = (
|
|
1681
|
+
len([param for param in flattened_params if param is not None]) > 0
|
|
1682
|
+
)
|
|
1652
1683
|
if request is not None and has_flattened_params:
|
|
1653
1684
|
raise ValueError(
|
|
1654
1685
|
"If the `request` argument is set, then none of "
|
|
@@ -1796,7 +1827,10 @@ class DatabaseAdminAsyncClient:
|
|
|
1796
1827
|
# Create or coerce a protobuf request object.
|
|
1797
1828
|
# - Quick check: If we got a request object, we should *not* have
|
|
1798
1829
|
# gotten any keyword arguments that map to the request.
|
|
1799
|
-
|
|
1830
|
+
flattened_params = [parent, backup, backup_id]
|
|
1831
|
+
has_flattened_params = (
|
|
1832
|
+
len([param for param in flattened_params if param is not None]) > 0
|
|
1833
|
+
)
|
|
1800
1834
|
if request is not None and has_flattened_params:
|
|
1801
1835
|
raise ValueError(
|
|
1802
1836
|
"If the `request` argument is set, then none of "
|
|
@@ -1973,7 +2007,10 @@ class DatabaseAdminAsyncClient:
|
|
|
1973
2007
|
# Create or coerce a protobuf request object.
|
|
1974
2008
|
# - Quick check: If we got a request object, we should *not* have
|
|
1975
2009
|
# gotten any keyword arguments that map to the request.
|
|
1976
|
-
|
|
2010
|
+
flattened_params = [parent, backup_id, source_backup, expire_time]
|
|
2011
|
+
has_flattened_params = (
|
|
2012
|
+
len([param for param in flattened_params if param is not None]) > 0
|
|
2013
|
+
)
|
|
1977
2014
|
if request is not None and has_flattened_params:
|
|
1978
2015
|
raise ValueError(
|
|
1979
2016
|
"If the `request` argument is set, then none of "
|
|
@@ -2094,7 +2131,10 @@ class DatabaseAdminAsyncClient:
|
|
|
2094
2131
|
# Create or coerce a protobuf request object.
|
|
2095
2132
|
# - Quick check: If we got a request object, we should *not* have
|
|
2096
2133
|
# gotten any keyword arguments that map to the request.
|
|
2097
|
-
|
|
2134
|
+
flattened_params = [name]
|
|
2135
|
+
has_flattened_params = (
|
|
2136
|
+
len([param for param in flattened_params if param is not None]) > 0
|
|
2137
|
+
)
|
|
2098
2138
|
if request is not None and has_flattened_params:
|
|
2099
2139
|
raise ValueError(
|
|
2100
2140
|
"If the `request` argument is set, then none of "
|
|
@@ -2217,7 +2257,10 @@ class DatabaseAdminAsyncClient:
|
|
|
2217
2257
|
# Create or coerce a protobuf request object.
|
|
2218
2258
|
# - Quick check: If we got a request object, we should *not* have
|
|
2219
2259
|
# gotten any keyword arguments that map to the request.
|
|
2220
|
-
|
|
2260
|
+
flattened_params = [backup, update_mask]
|
|
2261
|
+
has_flattened_params = (
|
|
2262
|
+
len([param for param in flattened_params if param is not None]) > 0
|
|
2263
|
+
)
|
|
2221
2264
|
if request is not None and has_flattened_params:
|
|
2222
2265
|
raise ValueError(
|
|
2223
2266
|
"If the `request` argument is set, then none of "
|
|
@@ -2322,7 +2365,10 @@ class DatabaseAdminAsyncClient:
|
|
|
2322
2365
|
# Create or coerce a protobuf request object.
|
|
2323
2366
|
# - Quick check: If we got a request object, we should *not* have
|
|
2324
2367
|
# gotten any keyword arguments that map to the request.
|
|
2325
|
-
|
|
2368
|
+
flattened_params = [name]
|
|
2369
|
+
has_flattened_params = (
|
|
2370
|
+
len([param for param in flattened_params if param is not None]) > 0
|
|
2371
|
+
)
|
|
2326
2372
|
if request is not None and has_flattened_params:
|
|
2327
2373
|
raise ValueError(
|
|
2328
2374
|
"If the `request` argument is set, then none of "
|
|
@@ -2433,7 +2479,10 @@ class DatabaseAdminAsyncClient:
|
|
|
2433
2479
|
# Create or coerce a protobuf request object.
|
|
2434
2480
|
# - Quick check: If we got a request object, we should *not* have
|
|
2435
2481
|
# gotten any keyword arguments that map to the request.
|
|
2436
|
-
|
|
2482
|
+
flattened_params = [parent]
|
|
2483
|
+
has_flattened_params = (
|
|
2484
|
+
len([param for param in flattened_params if param is not None]) > 0
|
|
2485
|
+
)
|
|
2437
2486
|
if request is not None and has_flattened_params:
|
|
2438
2487
|
raise ValueError(
|
|
2439
2488
|
"If the `request` argument is set, then none of "
|
|
@@ -2604,7 +2653,10 @@ class DatabaseAdminAsyncClient:
|
|
|
2604
2653
|
# Create or coerce a protobuf request object.
|
|
2605
2654
|
# - Quick check: If we got a request object, we should *not* have
|
|
2606
2655
|
# gotten any keyword arguments that map to the request.
|
|
2607
|
-
|
|
2656
|
+
flattened_params = [parent, database_id, backup]
|
|
2657
|
+
has_flattened_params = (
|
|
2658
|
+
len([param for param in flattened_params if param is not None]) > 0
|
|
2659
|
+
)
|
|
2608
2660
|
if request is not None and has_flattened_params:
|
|
2609
2661
|
raise ValueError(
|
|
2610
2662
|
"If the `request` argument is set, then none of "
|
|
@@ -2740,7 +2792,10 @@ class DatabaseAdminAsyncClient:
|
|
|
2740
2792
|
# Create or coerce a protobuf request object.
|
|
2741
2793
|
# - Quick check: If we got a request object, we should *not* have
|
|
2742
2794
|
# gotten any keyword arguments that map to the request.
|
|
2743
|
-
|
|
2795
|
+
flattened_params = [parent]
|
|
2796
|
+
has_flattened_params = (
|
|
2797
|
+
len([param for param in flattened_params if param is not None]) > 0
|
|
2798
|
+
)
|
|
2744
2799
|
if request is not None and has_flattened_params:
|
|
2745
2800
|
raise ValueError(
|
|
2746
2801
|
"If the `request` argument is set, then none of "
|
|
@@ -2877,7 +2932,10 @@ class DatabaseAdminAsyncClient:
|
|
|
2877
2932
|
# Create or coerce a protobuf request object.
|
|
2878
2933
|
# - Quick check: If we got a request object, we should *not* have
|
|
2879
2934
|
# gotten any keyword arguments that map to the request.
|
|
2880
|
-
|
|
2935
|
+
flattened_params = [parent]
|
|
2936
|
+
has_flattened_params = (
|
|
2937
|
+
len([param for param in flattened_params if param is not None]) > 0
|
|
2938
|
+
)
|
|
2881
2939
|
if request is not None and has_flattened_params:
|
|
2882
2940
|
raise ValueError(
|
|
2883
2941
|
"If the `request` argument is set, then none of "
|
|
@@ -3003,7 +3061,10 @@ class DatabaseAdminAsyncClient:
|
|
|
3003
3061
|
# Create or coerce a protobuf request object.
|
|
3004
3062
|
# - Quick check: If we got a request object, we should *not* have
|
|
3005
3063
|
# gotten any keyword arguments that map to the request.
|
|
3006
|
-
|
|
3064
|
+
flattened_params = [parent]
|
|
3065
|
+
has_flattened_params = (
|
|
3066
|
+
len([param for param in flattened_params if param is not None]) > 0
|
|
3067
|
+
)
|
|
3007
3068
|
if request is not None and has_flattened_params:
|
|
3008
3069
|
raise ValueError(
|
|
3009
3070
|
"If the `request` argument is set, then none of "
|
|
@@ -3134,7 +3195,10 @@ class DatabaseAdminAsyncClient:
|
|
|
3134
3195
|
# Create or coerce a protobuf request object.
|
|
3135
3196
|
# - Quick check: If we got a request object, we should *not* have
|
|
3136
3197
|
# gotten any keyword arguments that map to the request.
|
|
3137
|
-
|
|
3198
|
+
flattened_params = [database, split_points]
|
|
3199
|
+
has_flattened_params = (
|
|
3200
|
+
len([param for param in flattened_params if param is not None]) > 0
|
|
3201
|
+
)
|
|
3138
3202
|
if request is not None and has_flattened_params:
|
|
3139
3203
|
raise ValueError(
|
|
3140
3204
|
"If the `request` argument is set, then none of "
|
|
@@ -3266,7 +3330,10 @@ class DatabaseAdminAsyncClient:
|
|
|
3266
3330
|
# Create or coerce a protobuf request object.
|
|
3267
3331
|
# - Quick check: If we got a request object, we should *not* have
|
|
3268
3332
|
# gotten any keyword arguments that map to the request.
|
|
3269
|
-
|
|
3333
|
+
flattened_params = [parent, backup_schedule, backup_schedule_id]
|
|
3334
|
+
has_flattened_params = (
|
|
3335
|
+
len([param for param in flattened_params if param is not None]) > 0
|
|
3336
|
+
)
|
|
3270
3337
|
if request is not None and has_flattened_params:
|
|
3271
3338
|
raise ValueError(
|
|
3272
3339
|
"If the `request` argument is set, then none of "
|
|
@@ -3380,7 +3447,10 @@ class DatabaseAdminAsyncClient:
|
|
|
3380
3447
|
# Create or coerce a protobuf request object.
|
|
3381
3448
|
# - Quick check: If we got a request object, we should *not* have
|
|
3382
3449
|
# gotten any keyword arguments that map to the request.
|
|
3383
|
-
|
|
3450
|
+
flattened_params = [name]
|
|
3451
|
+
has_flattened_params = (
|
|
3452
|
+
len([param for param in flattened_params if param is not None]) > 0
|
|
3453
|
+
)
|
|
3384
3454
|
if request is not None and has_flattened_params:
|
|
3385
3455
|
raise ValueError(
|
|
3386
3456
|
"If the `request` argument is set, then none of "
|
|
@@ -3506,7 +3576,10 @@ class DatabaseAdminAsyncClient:
|
|
|
3506
3576
|
# Create or coerce a protobuf request object.
|
|
3507
3577
|
# - Quick check: If we got a request object, we should *not* have
|
|
3508
3578
|
# gotten any keyword arguments that map to the request.
|
|
3509
|
-
|
|
3579
|
+
flattened_params = [backup_schedule, update_mask]
|
|
3580
|
+
has_flattened_params = (
|
|
3581
|
+
len([param for param in flattened_params if param is not None]) > 0
|
|
3582
|
+
)
|
|
3510
3583
|
if request is not None and has_flattened_params:
|
|
3511
3584
|
raise ValueError(
|
|
3512
3585
|
"If the `request` argument is set, then none of "
|
|
@@ -3612,7 +3685,10 @@ class DatabaseAdminAsyncClient:
|
|
|
3612
3685
|
# Create or coerce a protobuf request object.
|
|
3613
3686
|
# - Quick check: If we got a request object, we should *not* have
|
|
3614
3687
|
# gotten any keyword arguments that map to the request.
|
|
3615
|
-
|
|
3688
|
+
flattened_params = [name]
|
|
3689
|
+
has_flattened_params = (
|
|
3690
|
+
len([param for param in flattened_params if param is not None]) > 0
|
|
3691
|
+
)
|
|
3616
3692
|
if request is not None and has_flattened_params:
|
|
3617
3693
|
raise ValueError(
|
|
3618
3694
|
"If the `request` argument is set, then none of "
|
|
@@ -3725,7 +3801,10 @@ class DatabaseAdminAsyncClient:
|
|
|
3725
3801
|
# Create or coerce a protobuf request object.
|
|
3726
3802
|
# - Quick check: If we got a request object, we should *not* have
|
|
3727
3803
|
# gotten any keyword arguments that map to the request.
|
|
3728
|
-
|
|
3804
|
+
flattened_params = [parent]
|
|
3805
|
+
has_flattened_params = (
|
|
3806
|
+
len([param for param in flattened_params if param is not None]) > 0
|
|
3807
|
+
)
|
|
3729
3808
|
if request is not None and has_flattened_params:
|
|
3730
3809
|
raise ValueError(
|
|
3731
3810
|
"If the `request` argument is set, then none of "
|
|
@@ -4011,5 +4090,8 @@ DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
|
|
|
4011
4090
|
gapic_version=package_version.__version__
|
|
4012
4091
|
)
|
|
4013
4092
|
|
|
4093
|
+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
|
|
4094
|
+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
|
|
4095
|
+
|
|
4014
4096
|
|
|
4015
4097
|
__all__ = ("DatabaseAdminAsyncClient",)
|