From b554bcbf20563ef59e87ffe72b51450bb1c7b5e9 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 19 Feb 2020 15:01:54 -0800 Subject: [PATCH 1/6] chore: change docstring formatting (via synth) (#7) --- .../cloud/redis_v1/proto/cloud_redis_pb2.py | 1 + synth.metadata | 34 +++++++++---------- 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/google/cloud/redis_v1/proto/cloud_redis_pb2.py b/google/cloud/redis_v1/proto/cloud_redis_pb2.py index 411880c..7d40da6 100644 --- a/google/cloud/redis_v1/proto/cloud_redis_pb2.py +++ b/google/cloud/redis_v1/proto/cloud_redis_pb2.py @@ -2220,6 +2220,7 @@ __module__="google.cloud.redis_v1.proto.cloud_redis_pb2", __doc__="""Defines specific information for a particular zone. Currently empty and reserved for future use only. + """, # @@protoc_insertion_point(class_scope:google.cloud.redis.v1.ZoneMetadata) ), diff --git a/synth.metadata b/synth.metadata index d8f9c34..83d5860 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,34 +1,34 @@ { - "updateTime": "2020-02-12T21:01:23.468961Z", + "updateTime": "2020-02-19T02:26:54.748836Z", "sources": [ { - "git": { - "name": ".", - "remote": "git@github.com:googleapis/python-redis.git", - "sha": "53d302baa0e1357d1f3dc9fc9ca74db145ecf78e" + "generator": { + "name": "artman", + "version": "0.45.0", + "dockerImage": "googleapis/artman@sha256:6aec9c34db0e4be221cdaf6faba27bdc07cfea846808b3d3b964dfce3a9a0f9b" } }, { "git": { - "name": "synthtool", - "remote": "git@github.com:GoogleCloudPlatform/synthtool.git", - "sha": "e7660b704f319e2c1ea45d421b86b008d48ae37e" + "name": ".", + "remote": "https://github.com/googleapis/python-redis.git", + "sha": "bcefc59d9c2bc9e1d7f88fb5d8043d6e4aa3769b" } }, { - "generator": { - "name": "artman", - "version": "0.45.0", - "dockerImage": "googleapis/artman@sha256:6aec9c34db0e4be221cdaf6faba27bdc07cfea846808b3d3b964dfce3a9a0f9b" + "git": { + "name": "googleapis", + "remote": "https://github.com/googleapis/googleapis.git", + "sha": "ce4f4c21d9dd2bfab18873a80449b9d9851efde8", + "internalRef": "295861722", + "log": "ce4f4c21d9dd2bfab18873a80449b9d9851efde8\nasset: v1p1beta1 remove SearchResources and SearchIamPolicies\n\nPiperOrigin-RevId: 295861722\n\ncb61d6c2d070b589980c779b68ffca617f789116\nasset: v1p1beta1 remove SearchResources and SearchIamPolicies\n\nPiperOrigin-RevId: 295855449\n\nab2685d8d3a0e191dc8aef83df36773c07cb3d06\nfix: Dataproc v1 - AutoscalingPolicy annotation\n\nThis adds the second resource name pattern to the\nAutoscalingPolicy resource.\n\nCommitter: @lukesneeringer\nPiperOrigin-RevId: 295738415\n\n8a1020bf6828f6e3c84c3014f2c51cb62b739140\nUpdate cloud asset api v1p4beta1.\n\nPiperOrigin-RevId: 295286165\n\n5cfa105206e77670369e4b2225597386aba32985\nAdd service control related proto build rule.\n\nPiperOrigin-RevId: 295262088\n\nee4dddf805072004ab19ac94df2ce669046eec26\nmonitoring v3: Add prefix \"https://cloud.google.com/\" into the link for global access\ncl 295167522, get ride of synth.py hacks\n\nPiperOrigin-RevId: 295238095\n\nd9835e922ea79eed8497db270d2f9f85099a519c\nUpdate some minor docs changes about user event proto\n\nPiperOrigin-RevId: 295185610\n\n5f311e416e69c170243de722023b22f3df89ec1c\nfix: use correct PHP package name in gapic configuration\n\nPiperOrigin-RevId: 295161330\n\n6cdd74dcdb071694da6a6b5a206e3a320b62dd11\npubsub: v1 add client config annotations and retry config\n\nPiperOrigin-RevId: 295158776\n\n5169f46d9f792e2934d9fa25c36d0515b4fd0024\nAdded cloud asset api v1p4beta1.\n\nPiperOrigin-RevId: 295026522\n\n56b55aa8818cd0a532a7d779f6ef337ba809ccbd\nFix: Resource annotations for CreateTimeSeriesRequest and ListTimeSeriesRequest should refer to valid resources. TimeSeries is not a named resource.\n\nPiperOrigin-RevId: 294931650\n\n0646bc775203077226c2c34d3e4d50cc4ec53660\nRemove unnecessary languages from bigquery-related artman configuration files.\n\nPiperOrigin-RevId: 294809380\n\n8b78aa04382e3d4147112ad6d344666771bb1909\nUpdate backend.proto for schemes and protocol\n\nPiperOrigin-RevId: 294788800\n\n80b8f8b3de2359831295e24e5238641a38d8488f\nAdds artman config files for bigquerystorage endpoints v1beta2, v1alpha2, v1\n\nPiperOrigin-RevId: 294763931\n\n" } }, { "git": { - "name": "googleapis", - "remote": "https://github.com/googleapis/googleapis.git", - "sha": "2c17ac33b226194041155bb5340c3f34733f1b3a", - "internalRef": "294734008", - "log": "2c17ac33b226194041155bb5340c3f34733f1b3a\nAdd parameter to sample generated for UpdateInstance. Related to https://github.com/googleapis/python-redis/issues/4\n\nPiperOrigin-RevId: 294734008\n\n" + "name": "synthtool", + "remote": "rpc://devrel/cloud/libraries/tools/autosynth", + "sha": "b4b7af4a16a07b40bfd8dcdda89f9f193ff4e2ed" } }, { From 42bdf453ed1b6c268f468ea45356b33e61b6314d Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 21 Feb 2020 09:47:52 -0800 Subject: [PATCH 2/6] chore: change docstring line break (via synth) (#9) --- google/cloud/redis_v1beta1/proto/cloud_redis_pb2.py | 4 ++-- synth.metadata | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/google/cloud/redis_v1beta1/proto/cloud_redis_pb2.py b/google/cloud/redis_v1beta1/proto/cloud_redis_pb2.py index 96fe440..ebe180a 100644 --- a/google/cloud/redis_v1beta1/proto/cloud_redis_pb2.py +++ b/google/cloud/redis_v1beta1/proto/cloud_redis_pb2.py @@ -2117,8 +2117,8 @@ dict( DESCRIPTOR=_ZONEMETADATA, __module__="google.cloud.redis_v1beta1.proto.cloud_redis_pb2", - __doc__="""Defines specific information for a particular zone. - Currently empty and reserved for future use only. + __doc__="""Defines specific information for a particular zone. Currently empty and + reserved for future use only. """, # @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.ZoneMetadata) diff --git a/synth.metadata b/synth.metadata index 83d5860..9add041 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,5 +1,5 @@ { - "updateTime": "2020-02-19T02:26:54.748836Z", + "updateTime": "2020-02-21T13:22:22.924711Z", "sources": [ { "generator": { @@ -12,23 +12,23 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/python-redis.git", - "sha": "bcefc59d9c2bc9e1d7f88fb5d8043d6e4aa3769b" + "sha": "b554bcbf20563ef59e87ffe72b51450bb1c7b5e9" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "ce4f4c21d9dd2bfab18873a80449b9d9851efde8", - "internalRef": "295861722", - "log": "ce4f4c21d9dd2bfab18873a80449b9d9851efde8\nasset: v1p1beta1 remove SearchResources and SearchIamPolicies\n\nPiperOrigin-RevId: 295861722\n\ncb61d6c2d070b589980c779b68ffca617f789116\nasset: v1p1beta1 remove SearchResources and SearchIamPolicies\n\nPiperOrigin-RevId: 295855449\n\nab2685d8d3a0e191dc8aef83df36773c07cb3d06\nfix: Dataproc v1 - AutoscalingPolicy annotation\n\nThis adds the second resource name pattern to the\nAutoscalingPolicy resource.\n\nCommitter: @lukesneeringer\nPiperOrigin-RevId: 295738415\n\n8a1020bf6828f6e3c84c3014f2c51cb62b739140\nUpdate cloud asset api v1p4beta1.\n\nPiperOrigin-RevId: 295286165\n\n5cfa105206e77670369e4b2225597386aba32985\nAdd service control related proto build rule.\n\nPiperOrigin-RevId: 295262088\n\nee4dddf805072004ab19ac94df2ce669046eec26\nmonitoring v3: Add prefix \"https://cloud.google.com/\" into the link for global access\ncl 295167522, get ride of synth.py hacks\n\nPiperOrigin-RevId: 295238095\n\nd9835e922ea79eed8497db270d2f9f85099a519c\nUpdate some minor docs changes about user event proto\n\nPiperOrigin-RevId: 295185610\n\n5f311e416e69c170243de722023b22f3df89ec1c\nfix: use correct PHP package name in gapic configuration\n\nPiperOrigin-RevId: 295161330\n\n6cdd74dcdb071694da6a6b5a206e3a320b62dd11\npubsub: v1 add client config annotations and retry config\n\nPiperOrigin-RevId: 295158776\n\n5169f46d9f792e2934d9fa25c36d0515b4fd0024\nAdded cloud asset api v1p4beta1.\n\nPiperOrigin-RevId: 295026522\n\n56b55aa8818cd0a532a7d779f6ef337ba809ccbd\nFix: Resource annotations for CreateTimeSeriesRequest and ListTimeSeriesRequest should refer to valid resources. TimeSeries is not a named resource.\n\nPiperOrigin-RevId: 294931650\n\n0646bc775203077226c2c34d3e4d50cc4ec53660\nRemove unnecessary languages from bigquery-related artman configuration files.\n\nPiperOrigin-RevId: 294809380\n\n8b78aa04382e3d4147112ad6d344666771bb1909\nUpdate backend.proto for schemes and protocol\n\nPiperOrigin-RevId: 294788800\n\n80b8f8b3de2359831295e24e5238641a38d8488f\nAdds artman config files for bigquerystorage endpoints v1beta2, v1alpha2, v1\n\nPiperOrigin-RevId: 294763931\n\n" + "sha": "e5bc9566ae057fb4c92f8b7e047f1c8958235b53", + "internalRef": "296357191", + "log": "e5bc9566ae057fb4c92f8b7e047f1c8958235b53\nDeprecate the endpoint_uris field, as it is unused.\n\nPiperOrigin-RevId: 296357191\n\n8c12e2b4dca94e12bff9f538bdac29524ff7ef7a\nUpdate Dataproc v1 client.\n\nPiperOrigin-RevId: 296336662\n\n17567c4a1ef0a9b50faa87024d66f8acbb561089\nRemoving erroneous comment, a la https://github.com/googleapis/java-speech/pull/103\n\nPiperOrigin-RevId: 296332968\n\n3eaaaf8626ce5b0c0bc7eee05e143beffa373b01\nAdd BUILD.bazel for v1 secretmanager.googleapis.com\n\nPiperOrigin-RevId: 296274723\n\ne76149c3d992337f85eeb45643106aacae7ede82\nMove securitycenter v1 to use generate from annotations.\n\nPiperOrigin-RevId: 296266862\n\n203740c78ac69ee07c3bf6be7408048751f618f8\nAdd StackdriverLoggingConfig field to Cloud Tasks v2 API.\n\nPiperOrigin-RevId: 296256388\n\ne4117d5e9ed8bbca28da4a60a94947ca51cb2083\nCreate a Bazel BUILD file for the google.actions.type export.\n\nPiperOrigin-RevId: 296212567\n\na9639a0a9854fd6e1be08bba1ac3897f4f16cb2f\nAdd secretmanager.googleapis.com v1 protos\n\nPiperOrigin-RevId: 295983266\n\n" } }, { "git": { "name": "synthtool", "remote": "rpc://devrel/cloud/libraries/tools/autosynth", - "sha": "b4b7af4a16a07b40bfd8dcdda89f9f193ff4e2ed" + "sha": "706a38c26db42299845396cdae55db635c38794a" } }, { From 32791445502ddb9ff73ed7783150cd406420bc47 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 28 Apr 2020 14:32:09 -0700 Subject: [PATCH 3/6] chore: update templates (via synth) (#13) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2020-04-21 06:23:57,047 synthtool > Executing /tmpfs/src/git/autosynth/working_repo/synth.py. On branch autosynth nothing to commit, working tree clean 2020-04-21 06:23:57,115 synthtool > Ensuring dependencies. 2020-04-21 06:23:57,119 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:23:58,691 synthtool > Cloning googleapis. 2020-04-21 06:23:59,345 synthtool > Running generator for google/cloud/redis/artman_redis_v1beta1.yaml. 2020-04-21 06:24:15,989 synthtool > Generated code into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/redis-v1beta1. 2020-04-21 06:24:15,990 synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/cloud/redis/v1beta1/cloud_redis.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/redis-v1beta1/google/cloud/redis_v1beta1/proto/cloud_redis.proto 2020-04-21 06:24:15,990 synthtool > Placed proto files into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/redis-v1beta1/google/cloud/redis_v1beta1/proto. 2020-04-21 06:24:16,006 synthtool > Running generator for google/cloud/redis/artman_redis_v1.yaml. 2020-04-21 06:24:32,294 synthtool > Generated code into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/redis-v1. 2020-04-21 06:24:32,295 synthtool > Copy: /home/kbuilder/.cache/synthtool/googleapis/google/cloud/redis/v1/cloud_redis.proto to /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/redis-v1/google/cloud/redis_v1/proto/cloud_redis.proto 2020-04-21 06:24:32,295 synthtool > Placed proto files into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/redis-v1/google/cloud/redis_v1/proto. 2020-04-21 06:24:32,315 synthtool > No replacements made in google/cloud/**/cloud_redis_client.py for pattern resources of the form:\n ``, maybe replacement is no longer needed? 2020-04-21 06:24:32,317 synthtool > No replacements made in google/cloud/**/cloud_redis_client.py for pattern parent \(str\): Required. The resource name of the instance location using the form: :: `projects/{project_id}/locations/{location_id}` where ``location_id`` refers to a GCP region, maybe replacement is no longer needed? 2020-04-21 06:24:32,319 synthtool > No replacements made in google/cloud/**/cloud_redis_client.py for pattern with the following restrictions: \* Must contain only lowercase letters, numbers, and hyphens\., maybe replacement is no longer needed? 2020-04-21 06:24:32,321 synthtool > No replacements made in google/cloud/**/cloud_redis_client.py for pattern name \(str\): Required. Redis instance resource name using the form: :: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where ``location_id`` refers to a GCP region, maybe replacement is no longer needed? 2020-04-21 06:24:32,322 synthtool > No replacements made in google/cloud/**/cloud_redis_client.py for pattern fields from ``Instance``: \* ``displayName`` \* ``labels`` \* ``memorySizeGb`` \* ``redisConfig``, maybe replacement is no longer needed? .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 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/__init__.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/__init__.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/redis.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/redis_v1/__init__.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/redis_v1/gapic/enums.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/redis_v1/gapic/cloud_redis_client_config.py reformatted /tmpfs/src/git/autosynth/working_repo/docs/conf.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/redis_v1/gapic/transports/cloud_redis_grpc_transport.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/redis_v1/types.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/redis_v1beta1/__init__.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/redis_v1/proto/cloud_redis_pb2_grpc.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/redis_v1beta1/gapic/cloud_redis_client_config.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/redis_v1beta1/gapic/enums.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/redis_v1beta1/gapic/transports/cloud_redis_grpc_transport.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/redis_v1/gapic/cloud_redis_client.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/redis_v1beta1/proto/cloud_redis_pb2_grpc.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/redis_v1beta1/gapic/cloud_redis_client.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/redis_v1beta1/types.py reformatted /tmpfs/src/git/autosynth/working_repo/noxfile.py reformatted /tmpfs/src/git/autosynth/working_repo/tests/unit/gapic/v1/test_cloud_redis_client_v1.py reformatted /tmpfs/src/git/autosynth/working_repo/tests/unit/gapic/v1beta1/test_cloud_redis_client_v1beta1.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/redis_v1/proto/cloud_redis_pb2.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/redis_v1beta1/proto/cloud_redis_pb2.py All done! ✨ 🍰 ✨ 23 files reformatted, 7 files left unchanged. Session blacken was successful. 2020-04-21 06:24:38,051 synthtool > Wrote metadata to synth.metadata. ```
--- .coveragerc | 16 ++++ .flake8 | 16 ++++ .github/ISSUE_TEMPLATE/bug_report.md | 3 +- CONTRIBUTING.rst | 15 +--- MANIFEST.in | 16 ++++ google/cloud/redis_v1/proto/cloud_redis.proto | 18 +++-- .../cloud/redis_v1/proto/cloud_redis_pb2.py | 64 ++++------------ .../redis_v1beta1/proto/cloud_redis.proto | 18 +++-- .../redis_v1beta1/proto/cloud_redis_pb2.py | 74 ++++++------------- noxfile.py | 5 +- setup.cfg | 16 ++++ synth.metadata | 25 ++----- 12 files changed, 138 insertions(+), 148 deletions(-) diff --git a/.coveragerc b/.coveragerc index b178b09..dd39c85 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,3 +1,19 @@ +# -*- coding: utf-8 -*- +# +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Generated by synthtool. DO NOT EDIT! [run] branch = True diff --git a/.flake8 b/.flake8 index 0268ecc..20fe9bd 100644 --- a/.flake8 +++ b/.flake8 @@ -1,3 +1,19 @@ +# -*- coding: utf-8 -*- +# +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Generated by synthtool. DO NOT EDIT! [flake8] ignore = E203, E266, E501, W503 diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 053db3f..af1a354 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -11,8 +11,7 @@ Thanks for stopping by to let us know something could be better! Please run down the following list and make sure you've tried the usual "quick fixes": - Search the issues already opened: https://github.com/googleapis/python-redis/issues - - Search the issues on our "catch-all" repository: https://github.com/googleapis/google-cloud-python - - Search StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform+python + - Search StackOverflow: https://stackoverflow.com/questions/tagged/google-cloud-platform+python If you are still having issues, please be sure to include as much information as possible: diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 5432b6b..413b921 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -22,7 +22,7 @@ In order to add a feature: documentation. - The feature must work fully on the following CPython versions: 2.7, - 3.5, 3.6, and 3.7 on both UNIX and Windows. + 3.5, 3.6, 3.7 and 3.8 on both UNIX and Windows. - The feature must not add unnecessary dependencies (where "unnecessary" is of course subjective, but new dependencies should @@ -214,26 +214,18 @@ We support: - `Python 3.5`_ - `Python 3.6`_ - `Python 3.7`_ +- `Python 3.8`_ .. _Python 3.5: https://docs.python.org/3.5/ .. _Python 3.6: https://docs.python.org/3.6/ .. _Python 3.7: https://docs.python.org/3.7/ +.. _Python 3.8: https://docs.python.org/3.8/ Supported versions can be found in our ``noxfile.py`` `config`_. .. _config: https://github.com/googleapis/python-redis/blob/master/noxfile.py -We explicitly decided not to support `Python 2.5`_ due to `decreased usage`_ -and lack of continuous integration `support`_. - -.. _Python 2.5: https://docs.python.org/2.5/ -.. _decreased usage: https://caremad.io/2013/10/a-look-at-pypi-downloads/ -.. _support: https://blog.travis-ci.com/2013-11-18-upcoming-build-environment-updates/ - -We have `dropped 2.6`_ as a supported version as well since Python 2.6 is no -longer supported by the core development team. - Python 2.7 support is deprecated. All code changes should maintain Python 2.7 compatibility until January 1, 2020. 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 .. _prominent: https://docs.djangoproject.com/en/1.9/faq/install/#what-python-version-can-i-use-with-django .. _projects: http://flask.pocoo.org/docs/0.10/python3/ .. _Unicode literal support: https://www.python.org/dev/peps/pep-0414/ -.. _dropped 2.6: https://github.com/googleapis/google-cloud-python/issues/995 ********** Versioning diff --git a/MANIFEST.in b/MANIFEST.in index cd011be..68855ab 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,19 @@ +# -*- coding: utf-8 -*- +# +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Generated by synthtool. DO NOT EDIT! include README.rst LICENSE recursive-include google *.json *.proto diff --git a/google/cloud/redis_v1/proto/cloud_redis.proto b/google/cloud/redis_v1/proto/cloud_redis.proto index c16ceb6..1b46694 100644 --- a/google/cloud/redis_v1/proto/cloud_redis.proto +++ b/google/cloud/redis_v1/proto/cloud_redis.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +11,6 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -// syntax = "proto3"; @@ -277,8 +276,9 @@ message Instance { // If not provided, latest supported version will be used. Currently, the // supported values are: // - // * `REDIS_4_0` for Redis 4.0 compatibility (default) // * `REDIS_3_2` for Redis 3.2 compatibility + // * `REDIS_4_0` for Redis 4.0 compatibility (default) + // * `REDIS_5_0` for Redis 5.0 compatibility string redis_version = 7 [(google.api.field_behavior) = OPTIONAL]; // Optional. The CIDR range of internal addresses that are reserved for this @@ -315,16 +315,22 @@ message Instance { // http://redis.io/topics/config. Currently, the only supported parameters // are: // - // Redis 3.2 and above: + // Redis version 3.2 and newer: // // * maxmemory-policy // * notify-keyspace-events // - // Redis 4.0 and above: + // Redis version 4.0 and newer: // // * activedefrag - // * lfu-log-factor // * lfu-decay-time + // * lfu-log-factor + // * maxmemory-gb + // + // Redis version 5.0 and newer: + // + // * stream-node-max-bytes + // * stream-node-max-entries map redis_configs = 16 [(google.api.field_behavior) = OPTIONAL]; // Required. The service tier of the instance. diff --git a/google/cloud/redis_v1/proto/cloud_redis_pb2.py b/google/cloud/redis_v1/proto/cloud_redis_pb2.py index 7d40da6..d7657f3 100644 --- a/google/cloud/redis_v1/proto/cloud_redis_pb2.py +++ b/google/cloud/redis_v1/proto/cloud_redis_pb2.py @@ -1734,8 +1734,6 @@ DESCRIPTOR=_INSTANCE, __module__="google.cloud.redis_v1.proto.cloud_redis_pb2", __doc__="""A Google Cloud Redis instance. - - Attributes: name: Required. Unique name of the resource in this scope including @@ -1769,9 +1767,9 @@ redis_version: Optional. The version of Redis software. If not provided, latest supported version will be used. Currently, the - supported values are: - ``REDIS_4_0`` for Redis 4.0 - compatibility (default) - ``REDIS_3_2`` for Redis 3.2 - compatibility + supported values are: - ``REDIS_3_2`` for Redis 3.2 + compatibility - ``REDIS_4_0`` for Redis 4.0 compatibility + (default) - ``REDIS_5_0`` for Redis 5.0 compatibility reserved_ip_range: Optional. The CIDR range of internal addresses that are reserved for this instance. If not provided, the service will @@ -1803,9 +1801,11 @@ redis_configs: Optional. Redis configuration parameters, according to http://redis.io/topics/config. Currently, the only supported - parameters are: Redis 3.2 and above: - maxmemory-policy - - notify-keyspace-events Redis 4.0 and above: - activedefrag - - lfu-log-factor - lfu-decay-time + parameters are: Redis version 3.2 and newer: - maxmemory- + policy - notify-keyspace-events Redis version 4.0 and newer: + - activedefrag - lfu-decay-time - lfu-log-factor - + maxmemory-gb Redis version 5.0 and newer: - stream-node- + max-bytes - stream-node-max-entries tier: Required. The service tier of the instance. memory_size_gb: @@ -1840,8 +1840,6 @@ __module__="google.cloud.redis_v1.proto.cloud_redis_pb2", __doc__="""Request for [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances]. - - Attributes: parent: Required. The resource name of the instance location using the @@ -1873,8 +1871,6 @@ __module__="google.cloud.redis_v1.proto.cloud_redis_pb2", __doc__="""Response for [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances]. - - Attributes: instances: A list of Redis instances in the project in the specified @@ -1906,8 +1902,6 @@ __module__="google.cloud.redis_v1.proto.cloud_redis_pb2", __doc__="""Request for [GetInstance][google.cloud.redis.v1.CloudRedis.GetInstance]. - - Attributes: name: Required. Redis instance resource name using the form: ``proje @@ -1927,8 +1921,6 @@ __module__="google.cloud.redis_v1.proto.cloud_redis_pb2", __doc__="""Request for [CreateInstance][google.cloud.redis.v1.CloudRedis.CreateInstance]. - - Attributes: parent: Required. The resource name of the instance location using the @@ -1957,8 +1949,6 @@ __module__="google.cloud.redis_v1.proto.cloud_redis_pb2", __doc__="""Request for [UpdateInstance][google.cloud.redis.v1.CloudRedis.UpdateInstance]. - - Attributes: update_mask: Required. Mask of fields to update. At least one path must be @@ -1984,8 +1974,6 @@ __module__="google.cloud.redis_v1.proto.cloud_redis_pb2", __doc__="""Request for [DeleteInstance][google.cloud.redis.v1.CloudRedis.DeleteInstance]. - - Attributes: name: Required. Redis instance resource name using the form: ``proje @@ -2004,8 +1992,6 @@ DESCRIPTOR=_GCSSOURCE, __module__="google.cloud.redis_v1.proto.cloud_redis_pb2", __doc__="""The Cloud Storage location for the input content - - Attributes: uri: Required. Source data URI. (e.g. @@ -2023,8 +2009,6 @@ DESCRIPTOR=_INPUTCONFIG, __module__="google.cloud.redis_v1.proto.cloud_redis_pb2", __doc__="""The input content - - Attributes: source: Required. Specify source location of input data @@ -2042,10 +2026,7 @@ dict( DESCRIPTOR=_IMPORTINSTANCEREQUEST, __module__="google.cloud.redis_v1.proto.cloud_redis_pb2", - __doc__="""Request for - [Import][google.cloud.redis.v1.CloudRedis.ImportInstance]. - - + __doc__="""Request for [Import][google.cloud.redis.v1.CloudRedis.ImportInstance]. Attributes: name: Required. Redis instance resource name using the form: ``proje @@ -2066,8 +2047,6 @@ DESCRIPTOR=_GCSDESTINATION, __module__="google.cloud.redis_v1.proto.cloud_redis_pb2", __doc__="""The Cloud Storage location for the output content - - Attributes: uri: Required. Data destination URI (e.g. @@ -2086,8 +2065,6 @@ DESCRIPTOR=_OUTPUTCONFIG, __module__="google.cloud.redis_v1.proto.cloud_redis_pb2", __doc__="""The output content - - Attributes: destination: Required. Specify destination location of output data @@ -2105,10 +2082,7 @@ dict( DESCRIPTOR=_EXPORTINSTANCEREQUEST, __module__="google.cloud.redis_v1.proto.cloud_redis_pb2", - __doc__="""Request for - [Export][google.cloud.redis.v1.CloudRedis.ExportInstance]. - - + __doc__="""Request for [Export][google.cloud.redis.v1.CloudRedis.ExportInstance]. Attributes: name: Required. Redis instance resource name using the form: ``proje @@ -2130,8 +2104,6 @@ __module__="google.cloud.redis_v1.proto.cloud_redis_pb2", __doc__="""Request for [Failover][google.cloud.redis.v1.CloudRedis.FailoverInstance]. - - Attributes: name: Required. Redis instance resource name using the form: ``proje @@ -2154,8 +2126,6 @@ DESCRIPTOR=_OPERATIONMETADATA, __module__="google.cloud.redis_v1.proto.cloud_redis_pb2", __doc__="""Represents the v1 metadata of the long-running operation. - - Attributes: create_time: Creation timestamp. @@ -2192,12 +2162,10 @@ ), DESCRIPTOR=_LOCATIONMETADATA, __module__="google.cloud.redis_v1.proto.cloud_redis_pb2", - __doc__="""This location metadata represents additional configuration - options for a given location where a Redis instance may be created. All - fields are output only. It is returned as content of the + __doc__="""This location metadata represents additional configuration options for + a given location where a Redis instance may be created. All fields are + output only. It is returned as content of the ``google.cloud.location.Location.metadata`` field. - - Attributes: available_zones: Output only. The set of available zones in the location. The @@ -2218,10 +2186,8 @@ dict( DESCRIPTOR=_ZONEMETADATA, __module__="google.cloud.redis_v1.proto.cloud_redis_pb2", - __doc__="""Defines specific information for a particular zone. - Currently empty and reserved for future use only. - - """, + __doc__="""Defines specific information for a particular zone. Currently empty + and reserved for future use only.""", # @@protoc_insertion_point(class_scope:google.cloud.redis.v1.ZoneMetadata) ), ) diff --git a/google/cloud/redis_v1beta1/proto/cloud_redis.proto b/google/cloud/redis_v1beta1/proto/cloud_redis.proto index 968523f..47d9a6f 100644 --- a/google/cloud/redis_v1beta1/proto/cloud_redis.proto +++ b/google/cloud/redis_v1beta1/proto/cloud_redis.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +11,6 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -// syntax = "proto3"; @@ -291,8 +290,9 @@ message Instance { // If not provided, latest supported version will be used. Currently, the // supported values are: // - // * `REDIS_4_0` for Redis 4.0 compatibility (default) // * `REDIS_3_2` for Redis 3.2 compatibility + // * `REDIS_4_0` for Redis 4.0 compatibility (default) + // * `REDIS_5_0` for Redis 5.0 compatibility string redis_version = 7 [(google.api.field_behavior) = OPTIONAL]; // Optional. The CIDR range of internal addresses that are reserved for this @@ -329,16 +329,22 @@ message Instance { // http://redis.io/topics/config. Currently, the only supported parameters // are: // - // Redis 3.2 and above: + // Redis version 3.2 and newer: // // * maxmemory-policy // * notify-keyspace-events // - // Redis 4.0 and above: + // Redis version 4.0 and newer: // // * activedefrag - // * lfu-log-factor // * lfu-decay-time + // * lfu-log-factor + // * maxmemory-gb + // + // Redis version 5.0 and newer: + // + // * stream-node-max-bytes + // * stream-node-max-entries map redis_configs = 16 [(google.api.field_behavior) = OPTIONAL]; // Required. The service tier of the instance. diff --git a/google/cloud/redis_v1beta1/proto/cloud_redis_pb2.py b/google/cloud/redis_v1beta1/proto/cloud_redis_pb2.py index ebe180a..c3f7861 100644 --- a/google/cloud/redis_v1beta1/proto/cloud_redis_pb2.py +++ b/google/cloud/redis_v1beta1/proto/cloud_redis_pb2.py @@ -1640,8 +1640,6 @@ DESCRIPTOR=_INSTANCE, __module__="google.cloud.redis_v1beta1.proto.cloud_redis_pb2", __doc__="""A Google Cloud Redis instance. - - Attributes: name: Required. Unique name of the resource in this scope including @@ -1675,9 +1673,9 @@ redis_version: Optional. The version of Redis software. If not provided, latest supported version will be used. Currently, the - supported values are: - ``REDIS_4_0`` for Redis 4.0 - compatibility (default) - ``REDIS_3_2`` for Redis 3.2 - compatibility + supported values are: - ``REDIS_3_2`` for Redis 3.2 + compatibility - ``REDIS_4_0`` for Redis 4.0 compatibility + (default) - ``REDIS_5_0`` for Redis 5.0 compatibility reserved_ip_range: Optional. The CIDR range of internal addresses that are reserved for this instance. If not provided, the service will @@ -1708,9 +1706,11 @@ redis_configs: Optional. Redis configuration parameters, according to http://redis.io/topics/config. Currently, the only supported - parameters are: Redis 3.2 and above: - maxmemory-policy - - notify-keyspace-events Redis 4.0 and above: - activedefrag - - lfu-log-factor - lfu-decay-time + parameters are: Redis version 3.2 and newer: - maxmemory- + policy - notify-keyspace-events Redis version 4.0 and newer: + - activedefrag - lfu-decay-time - lfu-log-factor - + maxmemory-gb Redis version 5.0 and newer: - stream-node- + max-bytes - stream-node-max-entries tier: Required. The service tier of the instance. memory_size_gb: @@ -1745,8 +1745,6 @@ __module__="google.cloud.redis_v1beta1.proto.cloud_redis_pb2", __doc__="""Request for [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances]. - - Attributes: parent: Required. The resource name of the instance location using the @@ -1778,8 +1776,6 @@ __module__="google.cloud.redis_v1beta1.proto.cloud_redis_pb2", __doc__="""Response for [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances]. - - Attributes: instances: A list of Redis instances in the project in the specified @@ -1811,8 +1807,6 @@ __module__="google.cloud.redis_v1beta1.proto.cloud_redis_pb2", __doc__="""Request for [GetInstance][google.cloud.redis.v1beta1.CloudRedis.GetInstance]. - - Attributes: name: Required. Redis instance resource name using the form: ``proje @@ -1830,10 +1824,8 @@ dict( DESCRIPTOR=_CREATEINSTANCEREQUEST, __module__="google.cloud.redis_v1beta1.proto.cloud_redis_pb2", - __doc__="""Request for - [CreateInstance][google.cloud.redis.v1beta1.CloudRedis.CreateInstance]. - - + __doc__="""Request for [CreateInstance][google.cloud.redis.v1beta1.CloudRedis.Cre + ateInstance]. Attributes: parent: Required. The resource name of the instance location using the @@ -1860,10 +1852,8 @@ dict( DESCRIPTOR=_UPDATEINSTANCEREQUEST, __module__="google.cloud.redis_v1beta1.proto.cloud_redis_pb2", - __doc__="""Request for - [UpdateInstance][google.cloud.redis.v1beta1.CloudRedis.UpdateInstance]. - - + __doc__="""Request for [UpdateInstance][google.cloud.redis.v1beta1.CloudRedis.Upd + ateInstance]. Attributes: update_mask: Required. Mask of fields to update. At least one path must be @@ -1887,10 +1877,8 @@ dict( DESCRIPTOR=_UPGRADEINSTANCEREQUEST, __module__="google.cloud.redis_v1beta1.proto.cloud_redis_pb2", - __doc__="""Request for - [UpgradeInstance][google.cloud.redis.v1beta1.CloudRedis.UpgradeInstance]. - - + __doc__="""Request for [UpgradeInstance][google.cloud.redis.v1beta1.CloudRedis.Up + gradeInstance]. Attributes: name: Required. Redis instance resource name using the form: ``proje @@ -1911,10 +1899,8 @@ dict( DESCRIPTOR=_DELETEINSTANCEREQUEST, __module__="google.cloud.redis_v1beta1.proto.cloud_redis_pb2", - __doc__="""Request for - [DeleteInstance][google.cloud.redis.v1beta1.CloudRedis.DeleteInstance]. - - + __doc__="""Request for [DeleteInstance][google.cloud.redis.v1beta1.CloudRedis.Del + eteInstance]. Attributes: name: Required. Redis instance resource name using the form: ``proje @@ -1933,8 +1919,6 @@ DESCRIPTOR=_GCSSOURCE, __module__="google.cloud.redis_v1beta1.proto.cloud_redis_pb2", __doc__="""The Cloud Storage location for the input content - - Attributes: uri: Required. Source data URI. (e.g. @@ -1952,8 +1936,6 @@ DESCRIPTOR=_INPUTCONFIG, __module__="google.cloud.redis_v1beta1.proto.cloud_redis_pb2", __doc__="""The input content - - Attributes: source: Required. Specify source location of input data @@ -1973,8 +1955,6 @@ __module__="google.cloud.redis_v1beta1.proto.cloud_redis_pb2", __doc__="""Request for [Import][google.cloud.redis.v1beta1.CloudRedis.ImportInstance]. - - Attributes: name: Required. Redis instance resource name using the form: ``proje @@ -1995,8 +1975,6 @@ DESCRIPTOR=_GCSDESTINATION, __module__="google.cloud.redis_v1beta1.proto.cloud_redis_pb2", __doc__="""The Cloud Storage location for the output content - - Attributes: uri: Required. Data destination URI (e.g. @@ -2015,8 +1993,6 @@ DESCRIPTOR=_OUTPUTCONFIG, __module__="google.cloud.redis_v1beta1.proto.cloud_redis_pb2", __doc__="""The output content - - Attributes: destination: Required. Specify destination location of output data @@ -2036,8 +2012,6 @@ __module__="google.cloud.redis_v1beta1.proto.cloud_redis_pb2", __doc__="""Request for [Export][google.cloud.redis.v1beta1.CloudRedis.ExportInstance]. - - Attributes: name: Required. Redis instance resource name using the form: ``proje @@ -2059,8 +2033,6 @@ __module__="google.cloud.redis_v1beta1.proto.cloud_redis_pb2", __doc__="""Request for [Failover][google.cloud.redis.v1beta1.CloudRedis.FailoverInstance]. - - Attributes: name: Required. Redis instance resource name using the form: ``proje @@ -2091,12 +2063,10 @@ ), DESCRIPTOR=_LOCATIONMETADATA, __module__="google.cloud.redis_v1beta1.proto.cloud_redis_pb2", - __doc__="""This location metadata represents additional configuration - options for a given location where a Redis instance may be created. All - fields are output only. It is returned as content of the + __doc__="""This location metadata represents additional configuration options for + a given location where a Redis instance may be created. All fields are + output only. It is returned as content of the ``google.cloud.location.Location.metadata`` field. - - Attributes: available_zones: Output only. The set of available zones in the location. The @@ -2117,10 +2087,8 @@ dict( DESCRIPTOR=_ZONEMETADATA, __module__="google.cloud.redis_v1beta1.proto.cloud_redis_pb2", - __doc__="""Defines specific information for a particular zone. Currently empty and - reserved for future use only. - - """, + __doc__="""Defines specific information for a particular zone. Currently empty + and reserved for future use only.""", # @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.ZoneMetadata) ), ) diff --git a/noxfile.py b/noxfile.py index 2bfc4d7..c454782 100644 --- a/noxfile.py +++ b/noxfile.py @@ -110,8 +110,7 @@ def system(session): # Install all test dependencies, then install this package into the # virtualenv's dist-packages. - session.install("mock", "pytest") - + session.install("mock", "pytest", "google-cloud-testutils") session.install("-e", ".") # Run py.test against the system tests. @@ -139,7 +138,7 @@ def docs(session): """Build the docs for this library.""" session.install("-e", ".") - session.install("sphinx", "alabaster", "recommonmark") + session.install("sphinx<3.0.0", "alabaster", "recommonmark") shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True) session.run( diff --git a/setup.cfg b/setup.cfg index 3bd5555..c3a2b39 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,3 +1,19 @@ +# -*- coding: utf-8 -*- +# +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Generated by synthtool. DO NOT EDIT! [bdist_wheel] universal = 1 diff --git a/synth.metadata b/synth.metadata index 9add041..2b6877c 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,41 +1,32 @@ { - "updateTime": "2020-02-21T13:22:22.924711Z", "sources": [ { "generator": { "name": "artman", - "version": "0.45.0", - "dockerImage": "googleapis/artman@sha256:6aec9c34db0e4be221cdaf6faba27bdc07cfea846808b3d3b964dfce3a9a0f9b" + "version": "2.0.0", + "dockerImage": "googleapis/artman@sha256:b3b47805231a305d0f40c4bf069df20f6a2635574e6d4259fac651d3f9f6e098" } }, { "git": { "name": ".", - "remote": "https://github.com/googleapis/python-redis.git", - "sha": "b554bcbf20563ef59e87ffe72b51450bb1c7b5e9" + "remote": "git@github.com:googleapis/python-redis", + "sha": "276103ea988bff390f6835843c9665b97e671e11" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "e5bc9566ae057fb4c92f8b7e047f1c8958235b53", - "internalRef": "296357191", - "log": "e5bc9566ae057fb4c92f8b7e047f1c8958235b53\nDeprecate the endpoint_uris field, as it is unused.\n\nPiperOrigin-RevId: 296357191\n\n8c12e2b4dca94e12bff9f538bdac29524ff7ef7a\nUpdate Dataproc v1 client.\n\nPiperOrigin-RevId: 296336662\n\n17567c4a1ef0a9b50faa87024d66f8acbb561089\nRemoving erroneous comment, a la https://github.com/googleapis/java-speech/pull/103\n\nPiperOrigin-RevId: 296332968\n\n3eaaaf8626ce5b0c0bc7eee05e143beffa373b01\nAdd BUILD.bazel for v1 secretmanager.googleapis.com\n\nPiperOrigin-RevId: 296274723\n\ne76149c3d992337f85eeb45643106aacae7ede82\nMove securitycenter v1 to use generate from annotations.\n\nPiperOrigin-RevId: 296266862\n\n203740c78ac69ee07c3bf6be7408048751f618f8\nAdd StackdriverLoggingConfig field to Cloud Tasks v2 API.\n\nPiperOrigin-RevId: 296256388\n\ne4117d5e9ed8bbca28da4a60a94947ca51cb2083\nCreate a Bazel BUILD file for the google.actions.type export.\n\nPiperOrigin-RevId: 296212567\n\na9639a0a9854fd6e1be08bba1ac3897f4f16cb2f\nAdd secretmanager.googleapis.com v1 protos\n\nPiperOrigin-RevId: 295983266\n\n" + "sha": "756b174de4a122461993c1c583345533d819936d", + "internalRef": "308824110" } }, { "git": { "name": "synthtool", - "remote": "rpc://devrel/cloud/libraries/tools/autosynth", - "sha": "706a38c26db42299845396cdae55db635c38794a" - } - }, - { - "template": { - "name": "python_split_library", - "origin": "synthtool.gcp", - "version": "2020.2.4" + "remote": "https://github.com/googleapis/synthtool.git", + "sha": "01b6f23d24b27878b48667ce597876d66b59780e" } } ], From 48b08acb345747766fa8808b77f7e0239cfaf146 Mon Sep 17 00:00:00 2001 From: Vadym Matsishevskyi <25311427+vam-google@users.noreply.github.com> Date: Tue, 28 Apr 2020 14:38:01 -0700 Subject: [PATCH 4/6] chore: Migrate python-redis synth.py from artman to bazel (#12) --- synth.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/synth.py b/synth.py index 51db376..ab8f163 100644 --- a/synth.py +++ b/synth.py @@ -20,7 +20,7 @@ logging.basicConfig(level=logging.DEBUG) -gapic = gcp.GAPICGenerator() +gapic = gcp.GAPICBazel() common = gcp.CommonTemplates() excludes = ["README.rst", "setup.py", "nox*.py", "docs/conf.py", "docs/index.rst"] @@ -29,9 +29,9 @@ # ---------------------------------------------------------------------------- for version in ["v1beta1", "v1"]: library = gapic.py_library( - "redis", - version, - config_path=f"artman_redis_{version}.yaml", + service="redis", + version=version, + bazel_target=f"//google/cloud/redis/{version}:redis-{version}-py", include_protos=True, ) From effc368f6904cb6321ec9a8100460a0df36132ab Mon Sep 17 00:00:00 2001 From: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Date: Mon, 11 May 2020 19:15:58 -0700 Subject: [PATCH 5/6] feat: set release_status to production/stable (#11) Release-As: 1.0.0 Co-authored-by: Dan O'Meara --- .repo-metadata.json | 2 +- README.rst | 6 +++--- setup.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.repo-metadata.json b/.repo-metadata.json index 02f70a4..7262124 100644 --- a/.repo-metadata.json +++ b/.repo-metadata.json @@ -4,7 +4,7 @@ "product_documentation": "https://cloud.google.com/memorystore/docs/redis/", "client_documentation": "https://googleapis.dev/python/redis/latest", "issue_tracker": "https://issuetracker.google.com/savedsearches/5169231", - "release_level": "alpha", + "release_level": "ga", "language": "python", "repo": "googleapis/python-redis", "distribution_name": "google-cloud-redis", diff --git a/README.rst b/README.rst index e66a871..c8f29b7 100644 --- a/README.rst +++ b/README.rst @@ -1,7 +1,7 @@ Python Client for Google Cloud Memorystore for Redis API ======================================================== -|alpha| |pypi| |versions| +|ga| |pypi| |versions| `Google Cloud Memorystore for Redis API`_: The Google Cloud Memorystore for Redis API is used for creating and managing Redis instances on the Google @@ -10,8 +10,8 @@ Cloud Platform. - `Client Library Documentation`_ - `Product Documentation`_ -.. |alpha| image:: https://img.shields.io/badge/support-alpha-orange.svg - :target: https://github.com/googleapis/google-cloud-python/blob/master/README.rst#alpha-support +.. |ga| image:: https://img.shields.io/badge/support-GA-gold.svg + :target: https://github.com/googleapis/google-cloud-python/blob/master/README.rst#general-availability .. |pypi| image:: https://img.shields.io/pypi/v/google-cloud-redis.svg :target: https://pypi.org/project/google-cloud-redis/ .. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-redis.svg diff --git a/setup.py b/setup.py index be6b6c6..4cf4ccb 100644 --- a/setup.py +++ b/setup.py @@ -27,7 +27,7 @@ # 'Development Status :: 3 - Alpha' # 'Development Status :: 4 - Beta' # 'Development Status :: 5 - Production/Stable' -release_status = "Development Status :: 3 - Alpha" +release_status = "Development Status :: 5 - Production/Stable" dependencies = [ "google-api-core[grpc] >= 1.14.0, < 2.0.0dev", 'enum34; python_version < "3.4"', From b07fe7a2df3c2d8ac24eb55d518afc0b7a1bd8fc Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 12 May 2020 18:28:43 -0700 Subject: [PATCH 6/6] chore: release 1.0.0 (#16) --- CHANGELOG.md | 7 +++++++ setup.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2fd622c..f55540a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://pypi.org/project/google-cloud-redis/#history +## [1.0.0](https://www.github.com/googleapis/python-redis/compare/v0.4.0...v1.0.0) (2020-05-12) + + +### Features + +* set release_status to production/stable ([#11](https://www.github.com/googleapis/python-redis/issues/11)) ([effc368](https://www.github.com/googleapis/python-redis/commit/effc368f6904cb6321ec9a8100460a0df36132ab)) + ## [0.4.0](https://www.github.com/googleapis/python-redis/compare/v0.3.0...v0.4.0) (2020-02-12) diff --git a/setup.py b/setup.py index 4cf4ccb..9b93ab1 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ name = "google-cloud-redis" description = "Google Cloud Memorystore for Redis API client library" -version = "0.4.0" +version = "1.0.0" # Should be one of: # 'Development Status :: 3 - Alpha' # 'Development Status :: 4 - Beta'