Skip to content

Commit c8c7723

Browse files
chore: update backup timeout config (via synth) (#65)
This PR was generated using Autosynth. 🌈 <details><summary>Log from Synthtool</summary> ``` 2020-04-21 06:27:51,005 synthtool > Executing /tmpfs/src/git/autosynth/working_repo/synth.py. On branch autosynth nothing to commit, working tree clean 2020-04-21 06:27:51,079 synthtool > Ensuring dependencies. 2020-04-21 06:27:51,084 synthtool > Pulling artman image. latest: Pulling from googleapis/artman Digest: sha256:b3b47805231a305d0f40c4bf069df20f6a2635574e6d4259fac651d3f9f6e098 Status: Image is up to date for googleapis/artman:latest 2020-04-21 06:27:52,770 synthtool > Cloning googleapis. 2020-04-21 06:27:53,424 synthtool > Running generator for google/spanner/artman_spanner.yaml. 2020-04-21 06:28:12,779 synthtool > Generated code into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/spanner-v1. 2020-04-21 06:28:12,780 synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/spanner/v1/mutation.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/spanner-v1/google/cloud/spanner_v1/proto/mutation.proto 2020-04-21 06:28:12,780 synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/spanner/v1/spanner.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/spanner-v1/google/cloud/spanner_v1/proto/spanner.proto 2020-04-21 06:28:12,781 synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/spanner/v1/type.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/spanner-v1/google/cloud/spanner_v1/proto/type.proto 2020-04-21 06:28:12,781 synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/spanner/v1/keys.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/spanner-v1/google/cloud/spanner_v1/proto/keys.proto 2020-04-21 06:28:12,781 synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/spanner/v1/result_set.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/spanner-v1/google/cloud/spanner_v1/proto/result_set.proto 2020-04-21 06:28:12,781 synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/spanner/v1/transaction.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/spanner-v1/google/cloud/spanner_v1/proto/transaction.proto 2020-04-21 06:28:12,782 synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/spanner/v1/query_plan.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/spanner-v1/google/cloud/spanner_v1/proto/query_plan.proto 2020-04-21 06:28:12,782 synthtool > Placed proto files into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/spanner-v1/google/cloud/spanner_v1/proto. 2020-04-21 06:28:12,791 synthtool > Replaced 'import google.api_core.grpc_helpers\n' in google/cloud/spanner_v1/gapic/transports/spanner_grpc_transport.py. 2020-04-21 06:28:12,791 synthtool > Replaced 'from google.cloud.spanner_v1.proto import spanner_pb2_grpc\n' in google/cloud/spanner_v1/gapic/transports/spanner_grpc_transport.py. 2020-04-21 06:28:12,793 synthtool > Replaced "(\\s+)'grpc.max_receive_message_length': -1," in google/cloud/spanner_v1/gapic/transports/spanner_grpc_transport.py. 2020-04-21 06:28:12,795 synthtool > Replaced '(\\s+)return google.api_core.grpc_helpers.create_channel\\(\n' in google/cloud/spanner_v1/gapic/transports/spanner_grpc_transport.py. 2020-04-21 06:28:12,795 synthtool > Replaced 'from google.cloud import spanner_v1' in tests/unit/gapic/v1/test_spanner_client_v1.py. 2020-04-21 06:28:12,796 synthtool > Running generator for google/spanner/admin/instance/artman_spanner_admin_instance.yaml. 2020-04-21 06:28:29,994 synthtool > Generated code into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/spanner-admin-instance-v1. 2020-04-21 06:28:29,995 synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/spanner/admin/instance/v1/spanner_instance_admin.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/spanner-admin-instance-v1/google/cloud/spanner_admin_instance_v1/proto/spanner_instance_admin.proto 2020-04-21 06:28:29,995 synthtool > Placed proto files into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/spanner-admin-instance-v1/google/cloud/spanner_admin_instance_v1/proto. 2020-04-21 06:28:30,000 synthtool > Replaced "'google-cloud-spanner-admin-instance'" in google/cloud/spanner_admin_instance_v1/gapic/instance_admin_client.py. 2020-04-21 06:28:30,004 synthtool > Replaced 'from google\\.cloud\\.spanner\\.admin\\.instance_v1.proto' in google/cloud/spanner_admin_instance_v1/proto/spanner_instance_admin_pb2_grpc.py. 2020-04-21 06:28:30,009 synthtool > Replaced '====*' in google/cloud/spanner_v1/proto/transaction_pb2.py. 2020-04-21 06:28:30,010 synthtool > Replaced '----*' in google/cloud/spanner_v1/proto/transaction_pb2.py. 2020-04-21 06:28:30,010 synthtool > Replaced '~~~~*' in google/cloud/spanner_v1/proto/transaction_pb2.py. 2020-04-21 06:28:30,010 synthtool > Running generator for google/spanner/admin/database/artman_spanner_admin_database.yaml. 2020-04-21 06:28:48,880 synthtool > Generated code into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/spanner-admin-database-v1. 2020-04-21 06:28:48,881 synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/spanner/admin/database/v1/common.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/spanner-admin-database-v1/google/cloud/spanner_admin_database_v1/proto/common.proto 2020-04-21 06:28:48,881 synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/spanner/admin/database/v1/backup.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/spanner-admin-database-v1/google/cloud/spanner_admin_database_v1/proto/backup.proto 2020-04-21 06:28:48,882 synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/spanner/admin/database/v1/spanner_database_admin.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/spanner-admin-database-v1/google/cloud/spanner_admin_database_v1/proto/spanner_database_admin.proto 2020-04-21 06:28:48,882 synthtool > Placed proto files into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/spanner-admin-database-v1/google/cloud/spanner_admin_database_v1/proto. 2020-04-21 06:28:48,890 synthtool > Replaced "'google-cloud-spanner-admin-database'" in google/cloud/spanner_admin_database_v1/gapic/database_admin_client.py. 2020-04-21 06:28:48,892 synthtool > Replaced 'from google\\.cloud\\.spanner\\.admin\\.database_v1.proto' in google/cloud/spanner_admin_database_v1/proto/backup_pb2.py. 2020-04-21 06:28:48,893 synthtool > Replaced 'from google\\.cloud\\.spanner\\.admin\\.database_v1.proto' in google/cloud/spanner_admin_database_v1/proto/spanner_database_admin_pb2_grpc.py. 2020-04-21 06:28:48,893 synthtool > Replaced 'from google\\.cloud\\.spanner\\.admin\\.database_v1.proto' in google/cloud/spanner_admin_database_v1/proto/spanner_database_admin_pb2.py. 2020-04-21 06:28:48,899 synthtool > Replaced '"""Attributes:' in google/cloud/spanner_admin_instance_v1/proto/spanner_instance_admin_pb2.py. 2020-04-21 06:28:48,900 synthtool > Replaced 'cloud.spanner_admin_instance_v1.types._OperationFuture' in google/cloud/spanner_admin_instance_v1/gapic/instance_admin_client.py. 2020-04-21 06:28:48,901 synthtool > Replaced 'cloud.spanner_admin_database_v1.types._OperationFuture' in google/cloud/spanner_admin_database_v1/gapic/database_admin_client.py. .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 .gitignore .kokoro/build.sh .kokoro/continuous/common.cfg .kokoro/continuous/continuous.cfg .kokoro/docs/common.cfg .kokoro/docs/docs.cfg .kokoro/presubmit/common.cfg .kokoro/presubmit/presubmit.cfg .kokoro/publish-docs.sh .kokoro/release.sh .kokoro/release/common.cfg .kokoro/release/release.cfg .kokoro/trampoline.sh CODE_OF_CONDUCT.md CONTRIBUTING.rst LICENSE MANIFEST.in docs/_static/custom.css docs/_templates/layout.html docs/conf.py.j2 noxfile.py.j2 renovate.json setup.cfg 2020-04-21 06:28:48,986 synthtool > Replaced 'include README.rst LICENSE\n' in MANIFEST.in. Running session blacken Creating virtual environment (virtualenv) using python3.6 in .nox/blacken pip install black==19.3b0 black docs google tests noxfile.py setup.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/spanner_admin_database_v1/gapic/enums.py reformatted /tmpfs/src/git/autosynth/working_repo/docs/conf.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/spanner_admin_database_v1/gapic/database_admin_client_config.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/spanner_admin_database_v1/proto/backup_pb2_grpc.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/spanner_admin_database_v1/gapic/transports/database_admin_grpc_transport.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/spanner_admin_database_v1/proto/common_pb2_grpc.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/spanner_admin_database_v1/proto/common_pb2.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/spanner_admin_database_v1/proto/spanner_database_admin_pb2_grpc.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/spanner_admin_instance_v1/gapic/enums.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/spanner_admin_database_v1/gapic/database_admin_client.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/spanner_admin_instance_v1/gapic/instance_admin_client_config.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/spanner_admin_instance_v1/gapic/transports/instance_admin_grpc_transport.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/spanner_admin_database_v1/proto/backup_pb2.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/spanner_admin_instance_v1/gapic/instance_admin_client.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/spanner_admin_instance_v1/proto/spanner_instance_admin_pb2_grpc.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/spanner_v1/gapic/enums.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/spanner_v1/gapic/spanner_client_config.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/spanner_v1/gapic/transports/spanner_grpc_transport.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/spanner_admin_database_v1/proto/spanner_database_admin_pb2.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/spanner_v1/proto/keys_pb2_grpc.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/spanner_v1/proto/keys_pb2.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/spanner_v1/proto/mutation_pb2_grpc.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/spanner_v1/gapic/spanner_client.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/spanner_v1/proto/query_plan_pb2_grpc.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/spanner_v1/proto/mutation_pb2.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/spanner_v1/proto/result_set_pb2_grpc.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/spanner_admin_instance_v1/proto/spanner_instance_admin_pb2.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/spanner_v1/proto/query_plan_pb2.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/spanner_v1/proto/result_set_pb2.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/spanner_v1/proto/transaction_pb2_grpc.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/spanner_v1/proto/spanner_pb2_grpc.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/spanner_v1/proto/type_pb2_grpc.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/spanner_v1/proto/type_pb2.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/spanner_v1/proto/transaction_pb2.py reformatted /tmpfs/src/git/autosynth/working_repo/tests/unit/gapic/v1/test_instance_admin_client_v1.py reformatted /tmpfs/src/git/autosynth/working_repo/tests/unit/gapic/v1/test_database_admin_client_v1.py reformatted /tmpfs/src/git/autosynth/working_repo/tests/unit/gapic/v1/test_spanner_client_v1.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/spanner_v1/proto/spanner_pb2.py All done! ✨ 🍰 ✨ 38 files reformatted, 56 files left unchanged. Session blacken was successful. 2020-04-21 06:29:01,355 synthtool > Wrote metadata to synth.metadata. ``` </details>
1 parent 4d54a5c commit c8c7723

File tree

10 files changed

+112
-50
lines changed

10 files changed

+112
-50
lines changed

.coveragerc

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Copyright 2020 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
117
# Generated by synthtool. DO NOT EDIT!
218
[run]
319
branch = True

.flake8

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Copyright 2020 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
117
# Generated by synthtool. DO NOT EDIT!
218
[flake8]
319
ignore = E203, E266, E501, W503

.github/ISSUE_TEMPLATE/bug_report.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ Thanks for stopping by to let us know something could be better!
1111
Please run down the following list and make sure you've tried the usual "quick fixes":
1212

1313
- Search the issues already opened: https://github.com/googleapis/python-spanner/issues
14-
- Search the issues on our "catch-all" repository: https://github.com/googleapis/google-cloud-python
15-
- Search StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform+python
14+
- Search StackOverflow: https://stackoverflow.com/questions/tagged/google-cloud-platform+python
1615

1716
If you are still having issues, please be sure to include as much information as possible:
1817

CONTRIBUTING.rst

+3-12
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ In order to add a feature:
2222
documentation.
2323

2424
- The feature must work fully on the following CPython versions: 2.7,
25-
3.5, 3.6, and 3.7 on both UNIX and Windows.
25+
3.5, 3.6, 3.7 and 3.8 on both UNIX and Windows.
2626

2727
- The feature must not add unnecessary dependencies (where
2828
"unnecessary" is of course subjective, but new dependencies should
@@ -214,26 +214,18 @@ We support:
214214
- `Python 3.5`_
215215
- `Python 3.6`_
216216
- `Python 3.7`_
217+
- `Python 3.8`_
217218

218219
.. _Python 3.5: https://docs.python.org/3.5/
219220
.. _Python 3.6: https://docs.python.org/3.6/
220221
.. _Python 3.7: https://docs.python.org/3.7/
222+
.. _Python 3.8: https://docs.python.org/3.8/
221223

222224

223225
Supported versions can be found in our ``noxfile.py`` `config`_.
224226

225227
.. _config: https://github.com/googleapis/python-spanner/blob/master/noxfile.py
226228

227-
We explicitly decided not to support `Python 2.5`_ due to `decreased usage`_
228-
and lack of continuous integration `support`_.
229-
230-
.. _Python 2.5: https://docs.python.org/2.5/
231-
.. _decreased usage: https://caremad.io/2013/10/a-look-at-pypi-downloads/
232-
.. _support: https://blog.travis-ci.com/2013-11-18-upcoming-build-environment-updates/
233-
234-
We have `dropped 2.6`_ as a supported version as well since Python 2.6 is no
235-
longer supported by the core development team.
236-
237229
Python 2.7 support is deprecated. All code changes should maintain Python 2.7 compatibility until January 1, 2020.
238230

239231
We also explicitly decided to support Python 3 beginning with version
@@ -247,7 +239,6 @@ We also explicitly decided to support Python 3 beginning with version
247239
.. _prominent: https://docs.djangoproject.com/en/1.9/faq/install/#what-python-version-can-i-use-with-django
248240
.. _projects: http://flask.pocoo.org/docs/0.10/python3/
249241
.. _Unicode literal support: https://www.python.org/dev/peps/pep-0414/
250-
.. _dropped 2.6: https://github.com/googleapis/google-cloud-python/issues/995
251242

252243
**********
253244
Versioning

MANIFEST.in

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Copyright 2020 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
117
# Generated by synthtool. DO NOT EDIT!
218
include README.rst LICENSE
319
include google/cloud/spanner_v1/gapic/transports/spanner.grpc.config

google/cloud/spanner_admin_database_v1/gapic/database_admin_client_config.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"retry_params_name": "default",
5959
},
6060
"CreateBackup": {
61-
"timeout_millis": 30000,
61+
"timeout_millis": 3600000,
6262
"retry_codes_name": "non_idempotent",
6363
"retry_params_name": "default",
6464
},
@@ -73,7 +73,7 @@
7373
"retry_params_name": "default",
7474
},
7575
"DeleteBackup": {
76-
"timeout_millis": 30000,
76+
"timeout_millis": 3600000,
7777
"retry_codes_name": "idempotent",
7878
"retry_params_name": "default",
7979
},
@@ -83,7 +83,7 @@
8383
"retry_params_name": "default",
8484
},
8585
"RestoreDatabase": {
86-
"timeout_millis": 30000,
86+
"timeout_millis": 3600000,
8787
"retry_codes_name": "non_idempotent",
8888
"retry_params_name": "default",
8989
},

google/cloud/spanner_admin_database_v1/proto/backup.proto

+3-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ message Backup {
5656
// created. This needs to be in the same instance as the backup.
5757
// Values are of the form
5858
// `projects/<project>/instances/<instance>/databases/<database>`.
59-
string database = 2;
59+
string database = 2 [(google.api.resource_reference) = {
60+
type: "spanner.googleapis.com/Database"
61+
}];
6062

6163
// Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
6264
// operation. The expiration time of the backup, with microseconds

google/cloud/spanner_admin_database_v1/proto/backup_pb2.py

+26-25
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

setup.cfg

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Copyright 2020 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
117
# Generated by synthtool. DO NOT EDIT!
218
[bdist_wheel]
319
universal = 1

0 commit comments

Comments
 (0)