diff --git a/google/cloud/firestore_admin_v1/services/firestore_admin/async_client.py b/google/cloud/firestore_admin_v1/services/firestore_admin/async_client.py index 38e6406eb5..492c73e60f 100644 --- a/google/cloud/firestore_admin_v1/services/firestore_admin/async_client.py +++ b/google/cloud/firestore_admin_v1/services/firestore_admin/async_client.py @@ -273,9 +273,9 @@ async def list_indexes( maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - exceptions.DeadlineExceeded, exceptions.InternalServerError, exceptions.ServiceUnavailable, + exceptions.DeadlineExceeded, ), ), default_timeout=60.0, @@ -361,9 +361,9 @@ async def get_index( maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - exceptions.DeadlineExceeded, exceptions.InternalServerError, exceptions.ServiceUnavailable, + exceptions.DeadlineExceeded, ), ), default_timeout=60.0, @@ -436,9 +436,9 @@ async def delete_index( maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - exceptions.DeadlineExceeded, exceptions.InternalServerError, exceptions.ServiceUnavailable, + exceptions.DeadlineExceeded, ), ), default_timeout=60.0, @@ -519,9 +519,9 @@ async def get_field( maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - exceptions.DeadlineExceeded, exceptions.InternalServerError, exceptions.ServiceUnavailable, + exceptions.DeadlineExceeded, ), ), default_timeout=60.0, @@ -712,9 +712,9 @@ async def list_fields( maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - exceptions.DeadlineExceeded, exceptions.InternalServerError, exceptions.ServiceUnavailable, + exceptions.DeadlineExceeded, ), ), default_timeout=60.0, diff --git a/google/cloud/firestore_admin_v1/services/firestore_admin/transports/base.py b/google/cloud/firestore_admin_v1/services/firestore_admin/transports/base.py index ac4c4475f5..fe0dbaed78 100644 --- a/google/cloud/firestore_admin_v1/services/firestore_admin/transports/base.py +++ b/google/cloud/firestore_admin_v1/services/firestore_admin/transports/base.py @@ -124,9 +124,9 @@ def _prep_wrapped_messages(self, client_info): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - exceptions.DeadlineExceeded, exceptions.InternalServerError, exceptions.ServiceUnavailable, + exceptions.DeadlineExceeded, ), ), default_timeout=60.0, @@ -139,9 +139,9 @@ def _prep_wrapped_messages(self, client_info): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - exceptions.DeadlineExceeded, exceptions.InternalServerError, exceptions.ServiceUnavailable, + exceptions.DeadlineExceeded, ), ), default_timeout=60.0, @@ -154,9 +154,9 @@ def _prep_wrapped_messages(self, client_info): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - exceptions.DeadlineExceeded, exceptions.InternalServerError, exceptions.ServiceUnavailable, + exceptions.DeadlineExceeded, ), ), default_timeout=60.0, @@ -169,9 +169,9 @@ def _prep_wrapped_messages(self, client_info): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - exceptions.DeadlineExceeded, exceptions.InternalServerError, exceptions.ServiceUnavailable, + exceptions.DeadlineExceeded, ), ), default_timeout=60.0, @@ -187,9 +187,9 @@ def _prep_wrapped_messages(self, client_info): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - exceptions.DeadlineExceeded, exceptions.InternalServerError, exceptions.ServiceUnavailable, + exceptions.DeadlineExceeded, ), ), default_timeout=60.0, diff --git a/google/cloud/firestore_v1/services/firestore/async_client.py b/google/cloud/firestore_v1/services/firestore/async_client.py index 3c00be1bfb..92b790f4c8 100644 --- a/google/cloud/firestore_v1/services/firestore/async_client.py +++ b/google/cloud/firestore_v1/services/firestore/async_client.py @@ -154,9 +154,9 @@ async def get_document( maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - exceptions.DeadlineExceeded, exceptions.InternalServerError, exceptions.ServiceUnavailable, + exceptions.DeadlineExceeded, ), ), default_timeout=60.0, @@ -218,9 +218,9 @@ async def list_documents( maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - exceptions.DeadlineExceeded, exceptions.InternalServerError, exceptions.ServiceUnavailable, + exceptions.DeadlineExceeded, ), ), default_timeout=60.0, @@ -396,9 +396,9 @@ async def delete_document( maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - exceptions.DeadlineExceeded, exceptions.InternalServerError, exceptions.ServiceUnavailable, + exceptions.DeadlineExceeded, ), ), default_timeout=60.0, @@ -458,9 +458,9 @@ def batch_get_documents( maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - exceptions.DeadlineExceeded, exceptions.InternalServerError, exceptions.ServiceUnavailable, + exceptions.DeadlineExceeded, ), ), default_timeout=300.0, @@ -539,9 +539,9 @@ async def begin_transaction( maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - exceptions.DeadlineExceeded, exceptions.InternalServerError, exceptions.ServiceUnavailable, + exceptions.DeadlineExceeded, ), ), default_timeout=60.0, @@ -710,9 +710,9 @@ async def rollback( maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - exceptions.DeadlineExceeded, exceptions.InternalServerError, exceptions.ServiceUnavailable, + exceptions.DeadlineExceeded, ), ), default_timeout=60.0, @@ -770,9 +770,9 @@ def run_query( maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - exceptions.DeadlineExceeded, exceptions.InternalServerError, exceptions.ServiceUnavailable, + exceptions.DeadlineExceeded, ), ), default_timeout=300.0, @@ -838,9 +838,9 @@ async def partition_query( maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - exceptions.DeadlineExceeded, exceptions.InternalServerError, exceptions.ServiceUnavailable, + exceptions.DeadlineExceeded, ), ), default_timeout=300.0, @@ -957,9 +957,9 @@ def listen( maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - exceptions.DeadlineExceeded, exceptions.InternalServerError, exceptions.ServiceUnavailable, + exceptions.DeadlineExceeded, ), ), default_timeout=86400.0, @@ -1041,9 +1041,9 @@ async def list_collection_ids( maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - exceptions.DeadlineExceeded, exceptions.InternalServerError, exceptions.ServiceUnavailable, + exceptions.DeadlineExceeded, ), ), default_timeout=60.0, diff --git a/google/cloud/firestore_v1/services/firestore/transports/base.py b/google/cloud/firestore_v1/services/firestore/transports/base.py index 6a0e3a7d36..2fb5d01439 100644 --- a/google/cloud/firestore_v1/services/firestore/transports/base.py +++ b/google/cloud/firestore_v1/services/firestore/transports/base.py @@ -117,9 +117,9 @@ def _prep_wrapped_messages(self, client_info): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - exceptions.DeadlineExceeded, exceptions.InternalServerError, exceptions.ServiceUnavailable, + exceptions.DeadlineExceeded, ), ), default_timeout=60.0, @@ -132,9 +132,9 @@ def _prep_wrapped_messages(self, client_info): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - exceptions.DeadlineExceeded, exceptions.InternalServerError, exceptions.ServiceUnavailable, + exceptions.DeadlineExceeded, ), ), default_timeout=60.0, @@ -158,9 +158,9 @@ def _prep_wrapped_messages(self, client_info): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - exceptions.DeadlineExceeded, exceptions.InternalServerError, exceptions.ServiceUnavailable, + exceptions.DeadlineExceeded, ), ), default_timeout=60.0, @@ -173,9 +173,9 @@ def _prep_wrapped_messages(self, client_info): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - exceptions.DeadlineExceeded, exceptions.InternalServerError, exceptions.ServiceUnavailable, + exceptions.DeadlineExceeded, ), ), default_timeout=300.0, @@ -188,9 +188,9 @@ def _prep_wrapped_messages(self, client_info): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - exceptions.DeadlineExceeded, exceptions.InternalServerError, exceptions.ServiceUnavailable, + exceptions.DeadlineExceeded, ), ), default_timeout=60.0, @@ -214,9 +214,9 @@ def _prep_wrapped_messages(self, client_info): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - exceptions.DeadlineExceeded, exceptions.InternalServerError, exceptions.ServiceUnavailable, + exceptions.DeadlineExceeded, ), ), default_timeout=60.0, @@ -229,9 +229,9 @@ def _prep_wrapped_messages(self, client_info): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - exceptions.DeadlineExceeded, exceptions.InternalServerError, exceptions.ServiceUnavailable, + exceptions.DeadlineExceeded, ), ), default_timeout=300.0, @@ -244,9 +244,9 @@ def _prep_wrapped_messages(self, client_info): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - exceptions.DeadlineExceeded, exceptions.InternalServerError, exceptions.ServiceUnavailable, + exceptions.DeadlineExceeded, ), ), default_timeout=300.0, @@ -262,9 +262,9 @@ def _prep_wrapped_messages(self, client_info): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - exceptions.DeadlineExceeded, exceptions.InternalServerError, exceptions.ServiceUnavailable, + exceptions.DeadlineExceeded, ), ), default_timeout=86400.0, @@ -277,9 +277,9 @@ def _prep_wrapped_messages(self, client_info): maximum=60.0, multiplier=1.3, predicate=retries.if_exception_type( - exceptions.DeadlineExceeded, exceptions.InternalServerError, exceptions.ServiceUnavailable, + exceptions.DeadlineExceeded, ), ), default_timeout=60.0, diff --git a/noxfile.py b/noxfile.py index 0f79223646..7157bb61ff 100644 --- a/noxfile.py +++ b/noxfile.py @@ -27,9 +27,10 @@ BLACK_VERSION = "black==19.10b0" BLACK_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"] -DEFAULT_PYTHON_VERSION = "3.9" -SYSTEM_TEST_PYTHON_VERSIONS = ["3.9"] -UNIT_TEST_PYTHON_VERSIONS = ["3.6", "3.7", "3.8", "3.9"] +DEFAULT_PYTHON_VERSION = "3.8" +SYSTEM_TEST_PYTHON_VERSIONS = ["3.7"] +UNIT_TEST_PYTHON_VERSIONS = ["3.6", "3.7", "3.8"] + @nox.session(python=DEFAULT_PYTHON_VERSION) def lint(session): @@ -98,6 +99,7 @@ def default(session): *session.posargs, ) + @nox.session(python=UNIT_TEST_PYTHON_VERSIONS) def unit(session): """Run the unit test suite.""" diff --git a/synth.metadata b/synth.metadata index 3069caf916..5eeda60007 100644 --- a/synth.metadata +++ b/synth.metadata @@ -3,8 +3,8 @@ { "git": { "name": ".", - "remote": "git@github.com:googleapis/python-firestore", - "sha": "db5f286772592460b2bf02df25a121994889585d" + "remote": "https://github.com/googleapis/python-firestore.git", + "sha": "75d0a4821b09c3bed710353cf86082e41c28191f" } }, { @@ -42,5 +42,112 @@ "generator": "bazel" } } + ], + "generatedFiles": [ + ".coveragerc", + ".flake8", + ".github/CONTRIBUTING.md", + ".github/ISSUE_TEMPLATE/bug_report.md", + ".github/ISSUE_TEMPLATE/feature_request.md", + ".github/ISSUE_TEMPLATE/support_request.md", + ".github/PULL_REQUEST_TEMPLATE.md", + ".github/release-please.yml", + ".github/snippet-bot.yml", + ".gitignore", + ".kokoro/build.sh", + ".kokoro/continuous/common.cfg", + ".kokoro/continuous/continuous.cfg", + ".kokoro/docker/docs/Dockerfile", + ".kokoro/docker/docs/fetch_gpg_keys.sh", + ".kokoro/docs/common.cfg", + ".kokoro/docs/docs-presubmit.cfg", + ".kokoro/docs/docs.cfg", + ".kokoro/populate-secrets.sh", + ".kokoro/presubmit/common.cfg", + ".kokoro/presubmit/presubmit.cfg", + ".kokoro/publish-docs.sh", + ".kokoro/release.sh", + ".kokoro/release/common.cfg", + ".kokoro/release/release.cfg", + ".kokoro/samples/lint/common.cfg", + ".kokoro/samples/lint/continuous.cfg", + ".kokoro/samples/lint/periodic.cfg", + ".kokoro/samples/lint/presubmit.cfg", + ".kokoro/samples/python3.6/common.cfg", + ".kokoro/samples/python3.6/continuous.cfg", + ".kokoro/samples/python3.6/periodic.cfg", + ".kokoro/samples/python3.6/presubmit.cfg", + ".kokoro/samples/python3.7/common.cfg", + ".kokoro/samples/python3.7/continuous.cfg", + ".kokoro/samples/python3.7/periodic.cfg", + ".kokoro/samples/python3.7/presubmit.cfg", + ".kokoro/samples/python3.8/common.cfg", + ".kokoro/samples/python3.8/continuous.cfg", + ".kokoro/samples/python3.8/periodic.cfg", + ".kokoro/samples/python3.8/presubmit.cfg", + ".kokoro/test-samples.sh", + ".kokoro/trampoline.sh", + ".kokoro/trampoline_v2.sh", + ".trampolinerc", + "CODE_OF_CONDUCT.md", + "CONTRIBUTING.rst", + "LICENSE", + "MANIFEST.in", + "docs/_static/custom.css", + "docs/_templates/layout.html", + "docs/conf.py", + "docs/multiprocessing.rst", + "google/cloud/firestore_admin_v1/__init__.py", + "google/cloud/firestore_admin_v1/py.typed", + "google/cloud/firestore_admin_v1/services/__init__.py", + "google/cloud/firestore_admin_v1/services/firestore_admin/__init__.py", + "google/cloud/firestore_admin_v1/services/firestore_admin/async_client.py", + "google/cloud/firestore_admin_v1/services/firestore_admin/client.py", + "google/cloud/firestore_admin_v1/services/firestore_admin/pagers.py", + "google/cloud/firestore_admin_v1/services/firestore_admin/transports/__init__.py", + "google/cloud/firestore_admin_v1/services/firestore_admin/transports/base.py", + "google/cloud/firestore_admin_v1/services/firestore_admin/transports/grpc.py", + "google/cloud/firestore_admin_v1/services/firestore_admin/transports/grpc_asyncio.py", + "google/cloud/firestore_admin_v1/types/__init__.py", + "google/cloud/firestore_admin_v1/types/field.py", + "google/cloud/firestore_admin_v1/types/firestore_admin.py", + "google/cloud/firestore_admin_v1/types/index.py", + "google/cloud/firestore_admin_v1/types/location.py", + "google/cloud/firestore_admin_v1/types/operation.py", + "google/cloud/firestore_v1/py.typed", + "google/cloud/firestore_v1/services/__init__.py", + "google/cloud/firestore_v1/services/firestore/__init__.py", + "google/cloud/firestore_v1/services/firestore/async_client.py", + "google/cloud/firestore_v1/services/firestore/client.py", + "google/cloud/firestore_v1/services/firestore/pagers.py", + "google/cloud/firestore_v1/services/firestore/transports/__init__.py", + "google/cloud/firestore_v1/services/firestore/transports/base.py", + "google/cloud/firestore_v1/services/firestore/transports/grpc.py", + "google/cloud/firestore_v1/services/firestore/transports/grpc_asyncio.py", + "google/cloud/firestore_v1/types/__init__.py", + "google/cloud/firestore_v1/types/common.py", + "google/cloud/firestore_v1/types/document.py", + "google/cloud/firestore_v1/types/firestore.py", + "google/cloud/firestore_v1/types/query.py", + "google/cloud/firestore_v1/types/write.py", + "noxfile.py", + "renovate.json", + "samples/AUTHORING_GUIDE.md", + "samples/CONTRIBUTING.md", + "scripts/decrypt-secrets.sh", + "scripts/fixup_firestore_admin_v1_keywords.py", + "scripts/fixup_firestore_v1_keywords.py", + "scripts/readme-gen/readme_gen.py", + "scripts/readme-gen/templates/README.tmpl.rst", + "scripts/readme-gen/templates/auth.tmpl.rst", + "scripts/readme-gen/templates/auth_api_key.tmpl.rst", + "scripts/readme-gen/templates/install_deps.tmpl.rst", + "scripts/readme-gen/templates/install_portaudio.tmpl.rst", + "setup.cfg", + "testing/.gitignore", + "tests/unit/gapic/firestore_admin_v1/__init__.py", + "tests/unit/gapic/firestore_admin_v1/test_firestore_admin.py", + "tests/unit/gapic/firestore_v1/__init__.py", + "tests/unit/gapic/firestore_v1/test_firestore.py" ] } \ No newline at end of file