From 51ffb496b754ba7785f3611a026230d07897b290 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 28 Apr 2020 14:42:06 -0700 Subject: [PATCH] chore: update templates (via synth) (#12) 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:36,013 synthtool > Executing /tmpfs/src/git/autosynth/working_repo/synth.py. On branch autosynth nothing to commit, working tree clean 2020-04-21 06:23:36,078 synthtool > Ensuring dependencies. 2020-04-21 06:23:36,661 synthtool > Cloning googleapis. 2020-04-21 06:23:37,312 synthtool > Generating code for: //google/cloud/recommender/v1beta1:recommender-v1beta1-py. 2020-04-21 06:23:40,993 synthtool > Generated code into /tmpfs/tmp/tmpbtmrk7dw. 2020-04-21 06:23:41,011 synthtool > Generating code for: //google/cloud/recommender/v1:recommender-v1-py. 2020-04-21 06:23:44,319 synthtool > Generated code into /tmpfs/tmp/tmpt2xn0me9. 2020-04-21 06:23:44,346 synthtool > No replacements made in google/**/recommender_client.py for pattern (/\^.*\$/), maybe replacement is no longer needed? 2020-04-21 06:23:44,348 synthtool > Replaced ':math:`(/)' in google/cloud/recommender_v1beta1/proto/recommender_service_pb2.py. 2020-04-21 06:23:44,348 synthtool > Replaced ':math:`(/)' in google/cloud/recommender_v1/proto/recommender_service_pb2.py. 2020-04-21 06:23:44,350 synthtool > Replaced '`/\\.' in google/cloud/recommender_v1beta1/proto/recommender_service_pb2.py. 2020-04-21 06:23:44,350 synthtool > Replaced '`/\\.' in google/cloud/recommender_v1/proto/recommender_service_pb2.py. 2020-04-21 06:23:44,352 synthtool > Replaced '(regex\\s+)(/.*?/)\\.' in google/cloud/recommender_v1beta1/proto/recommender_service_pb2.py. 2020-04-21 06:23:44,353 synthtool > Replaced '(regex\\s+)(/.*?/)\\.' in google/cloud/recommender_v1/proto/recommender_service_pb2.py. 2020-04-21 06:23:44,354 synthtool > Replaced '( - Example: )(\\{.*?\\})' in google/cloud/recommender_v1beta1/proto/recommendation_pb2.py. 2020-04-21 06:23:44,355 synthtool > Replaced '( - Example: )(\\{.*?\\})' in google/cloud/recommender_v1/proto/recommendation_pb2.py. 2020-04-21 06:23:44,356 synthtool > Replaced 'projects/\\[PROJECT_NUMBER\\]/location\n s/\\[LOCATION\\]/insightTypes/\\[INSIGHT\\_TYPE\\_ID\\]/insights/\\[INSIGHT_\n ID\\]' in google/cloud/recommender_v1beta1/proto/recommendation_pb2.py. 2020-04-21 06:23:44,362 synthtool > No replacements made in **/*_pb2.py for pattern (\# -\*- coding: utf-8 -\*-\n)(\# Generated by the protocol buffer compiler\. DO NOT EDIT!.*?import sys), maybe replacement is no longer needed? 2020-04-21 06:23:44,364 synthtool > Replaced '(\\# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!)\n(import grpc)' in google/cloud/recommender_v1beta1/proto/recommendation_pb2_grpc.py. 2020-04-21 06:23:44,364 synthtool > Replaced '(\\# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!)\n(import grpc)' in google/cloud/recommender_v1beta1/proto/insight_pb2_grpc.py. 2020-04-21 06:23:44,365 synthtool > Replaced '(\\# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!)\n(import grpc)' in google/cloud/recommender_v1beta1/proto/recommender_service_pb2_grpc.py. 2020-04-21 06:23:44,365 synthtool > Replaced '(\\# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!)\n(import grpc)' in google/cloud/recommender_v1/proto/recommendation_pb2_grpc.py. 2020-04-21 06:23:44,365 synthtool > Replaced '(\\# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!)\n(import grpc)' in google/cloud/recommender_v1/proto/recommender_service_pb2_grpc.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:23:44,446 synthtool > Replaced '\\["2\\.7", ' in noxfile.py. 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/__init__.py reformatted /tmpfs/src/git/autosynth/working_repo/google/__init__.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/recommender.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/recommender_v1/__init__.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/recommender_v1/gapic/enums.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/recommender_v1/gapic/recommender_client_config.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/recommender_v1/gapic/transports/recommender_grpc_transport.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/recommender_v1/proto/recommendation_pb2_grpc.py reformatted /tmpfs/src/git/autosynth/working_repo/docs/conf.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/recommender_v1/proto/recommender_service_pb2_grpc.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/recommender_v1/types.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/recommender_v1beta1/__init__.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/recommender_v1beta1/gapic/enums.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/recommender_v1/gapic/recommender_client.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/recommender_v1beta1/gapic/recommender_client_config.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/recommender_v1beta1/gapic/transports/recommender_grpc_transport.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/recommender_v1beta1/gapic/recommender_client.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/recommender_v1beta1/proto/insight_pb2_grpc.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/recommender_v1/proto/recommender_service_pb2.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/recommender_v1beta1/proto/recommendation_pb2_grpc.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/recommender_v1beta1/proto/insight_pb2.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/recommender_v1beta1/proto/recommender_service_pb2_grpc.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/recommender_v1beta1/types.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/recommender_v1/proto/recommendation_pb2.py reformatted /tmpfs/src/git/autosynth/working_repo/noxfile.py reformatted /tmpfs/src/git/autosynth/working_repo/tests/unit/gapic/v1/test_recommender_client_v1.py reformatted /tmpfs/src/git/autosynth/working_repo/tests/unit/gapic/v1beta1/test_recommender_client_v1beta1.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/recommender_v1beta1/proto/recommendation_pb2.py reformatted /tmpfs/src/git/autosynth/working_repo/google/cloud/recommender_v1beta1/proto/recommender_service_pb2.py All done! ✨ 🍰 ✨ 29 files reformatted, 7 files left unchanged. Session blacken was successful. 2020-04-21 06:23:49,850 synthtool > Wrote metadata to synth.metadata. ```
--- .coveragerc | 16 +++++++++++ .flake8 | 16 +++++++++++ .github/ISSUE_TEMPLATE/bug_report.md | 3 +-- CONTRIBUTING.rst | 15 +++-------- MANIFEST.in | 16 +++++++++++ .../proto/recommendation_pb2.py | 18 ++++++++++++- .../proto/recommendation_pb2_grpc.py | 2 +- .../proto/recommender_service_pb2.py | 19 +++++++++++-- .../proto/recommender_service_pb2_grpc.py | 2 +- .../recommender_v1beta1/proto/insight_pb2.py | 19 +++++++++++-- .../proto/insight_pb2_grpc.py | 2 +- .../proto/recommendation_pb2.py | 15 +++++++++++ .../proto/recommendation_pb2_grpc.py | 2 +- .../proto/recommender_service_pb2.py | 27 ++++++++++++++----- .../proto/recommender_service_pb2_grpc.py | 2 +- noxfile.py | 5 ++-- setup.cfg | 16 +++++++++++ synth.metadata | 15 +++++------ 18 files changed, 169 insertions(+), 41 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 0c92775..35f0f31 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-recommender/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 9cee426..49818ed 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-recommender/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/recommender_v1/proto/recommendation_pb2.py b/google/cloud/recommender_v1/proto/recommendation_pb2.py index b5f9bee..ffbee49 100644 --- a/google/cloud/recommender_v1/proto/recommendation_pb2.py +++ b/google/cloud/recommender_v1/proto/recommendation_pb2.py @@ -1,4 +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 +# +# http://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 the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/recommender_v1/proto/recommendation.proto @@ -1243,7 +1258,8 @@ { "DESCRIPTOR": _VALUEMATCHER, "__module__": "google.cloud.recommender_v1.proto.recommendation_pb2", - "__doc__": """Contains various matching options for values for a GCP resource field. + "__doc__": """Contains various matching options for values for a GCP + resource field. Attributes: diff --git a/google/cloud/recommender_v1/proto/recommendation_pb2_grpc.py b/google/cloud/recommender_v1/proto/recommendation_pb2_grpc.py index 7343170..b662812 100644 --- a/google/cloud/recommender_v1/proto/recommendation_pb2_grpc.py +++ b/google/cloud/recommender_v1/proto/recommendation_pb2_grpc.py @@ -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. diff --git a/google/cloud/recommender_v1/proto/recommender_service_pb2.py b/google/cloud/recommender_v1/proto/recommender_service_pb2.py index d518bd7..cdb8149 100644 --- a/google/cloud/recommender_v1/proto/recommender_service_pb2.py +++ b/google/cloud/recommender_v1/proto/recommender_service_pb2.py @@ -1,4 +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 +# +# http://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 the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/recommender_v1/proto/recommender_service.proto @@ -758,7 +773,7 @@ state_metadata: State properties to include with this state. Overwrites any existing ``state_metadata``. Keys must match the regex ``/ - [2]_[a-z0-9_.-]{0,62}/``. Values must match the regex + [1]_[a-z0-9_.-]{0,62}/``. Values must match the regex ``/^[a-zA-Z0-9_./-]{0,255}/``. etag: Required. Fingerprint of the Recommendation. Provides @@ -831,7 +846,7 @@ state_metadata: State properties to include with this state. Overwrites any existing ``state_metadata``. Keys must match the regex ``/ - [1]_[a-z0-9_.-]{0,62}/``. Values must match the regex + [2]_[a-z0-9_.-]{0,62}/``. Values must match the regex ``/^[a-zA-Z0-9_./-]{0,255}/``. etag: Required. Fingerprint of the Recommendation. Provides diff --git a/google/cloud/recommender_v1/proto/recommender_service_pb2_grpc.py b/google/cloud/recommender_v1/proto/recommender_service_pb2_grpc.py index 617b0cb..486a25a 100644 --- a/google/cloud/recommender_v1/proto/recommender_service_pb2_grpc.py +++ b/google/cloud/recommender_v1/proto/recommender_service_pb2_grpc.py @@ -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. diff --git a/google/cloud/recommender_v1beta1/proto/insight_pb2.py b/google/cloud/recommender_v1beta1/proto/insight_pb2.py index 6f51f39..dd91c49 100644 --- a/google/cloud/recommender_v1beta1/proto/insight_pb2.py +++ b/google/cloud/recommender_v1beta1/proto/insight_pb2.py @@ -1,4 +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 +# +# http://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 the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/recommender_v1beta1/proto/insight.proto @@ -516,8 +531,8 @@ ), "DESCRIPTOR": _INSIGHT, "__module__": "google.cloud.recommender_v1beta1.proto.insight_pb2", - "__doc__": """An insight along with the information used to derive the - insight. The insight may have associated recomendations as well. + "__doc__": """An insight along with the information used to derive the insight. The + insight may have associated recomendations as well. Attributes: diff --git a/google/cloud/recommender_v1beta1/proto/insight_pb2_grpc.py b/google/cloud/recommender_v1beta1/proto/insight_pb2_grpc.py index 7343170..b662812 100644 --- a/google/cloud/recommender_v1beta1/proto/insight_pb2_grpc.py +++ b/google/cloud/recommender_v1beta1/proto/insight_pb2_grpc.py @@ -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. diff --git a/google/cloud/recommender_v1beta1/proto/recommendation_pb2.py b/google/cloud/recommender_v1beta1/proto/recommendation_pb2.py index 0954a7e..33b36cf 100644 --- a/google/cloud/recommender_v1beta1/proto/recommendation_pb2.py +++ b/google/cloud/recommender_v1beta1/proto/recommendation_pb2.py @@ -1,4 +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 +# +# http://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 the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/recommender_v1beta1/proto/recommendation.proto diff --git a/google/cloud/recommender_v1beta1/proto/recommendation_pb2_grpc.py b/google/cloud/recommender_v1beta1/proto/recommendation_pb2_grpc.py index 7343170..b662812 100644 --- a/google/cloud/recommender_v1beta1/proto/recommendation_pb2_grpc.py +++ b/google/cloud/recommender_v1beta1/proto/recommendation_pb2_grpc.py @@ -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. diff --git a/google/cloud/recommender_v1beta1/proto/recommender_service_pb2.py b/google/cloud/recommender_v1beta1/proto/recommender_service_pb2.py index ac9a5a0..d27c31e 100644 --- a/google/cloud/recommender_v1beta1/proto/recommender_service_pb2.py +++ b/google/cloud/recommender_v1beta1/proto/recommender_service_pb2.py @@ -1,4 +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 +# +# http://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 the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/recommender_v1beta1/proto/recommender_service.proto @@ -1068,7 +1083,8 @@ Attributes: name: - Required. Name of the insight. + Required. Name of the insight. .. [1] a-z0-9 .. [2] + a-z0-9 .. [3] a-z0-9 """, # @@protoc_insertion_point(class_scope:google.cloud.recommender.v1beta1.GetInsightRequest) }, @@ -1208,12 +1224,11 @@ state_metadata: State properties to include with this state. Overwrites any existing ``state_metadata``. Keys must match the regex ``/ - [3]_[a-z0-9_.-]{0,62}/``. Values must match the regex + [1]_[a-z0-9_.-]{0,62}/``. Values must match the regex ``/^[a-zA-Z0-9_./-]{0,255}/``. etag: Required. Fingerprint of the Recommendation. Provides - optimistic locking. .. [1] a-z0-9 .. [2] a-z0-9 .. - [3] a-z0-9 + optimistic locking. """, # @@protoc_insertion_point(class_scope:google.cloud.recommender.v1beta1.MarkRecommendationClaimedRequest) }, @@ -1245,7 +1260,7 @@ state_metadata: State properties to include with this state. Overwrites any existing ``state_metadata``. Keys must match the regex ``/ - [2]_[a-z0-9_.-]{0,62}/``. Values must match the regex + [3]_[a-z0-9_.-]{0,62}/``. Values must match the regex ``/^[a-zA-Z0-9_./-]{0,255}/``. etag: Required. Fingerprint of the Recommendation. Provides @@ -1281,7 +1296,7 @@ state_metadata: State properties to include with this state. Overwrites any existing ``state_metadata``. Keys must match the regex ``/ - [1]_[a-z0-9_.-]{0,62}/``. Values must match the regex + [2]_[a-z0-9_.-]{0,62}/``. Values must match the regex ``/^[a-zA-Z0-9_./-]{0,255}/``. etag: Required. Fingerprint of the Recommendation. Provides diff --git a/google/cloud/recommender_v1beta1/proto/recommender_service_pb2_grpc.py b/google/cloud/recommender_v1beta1/proto/recommender_service_pb2_grpc.py index 733edaf..3c0221b 100644 --- a/google/cloud/recommender_v1beta1/proto/recommender_service_pb2_grpc.py +++ b/google/cloud/recommender_v1beta1/proto/recommender_service_pb2_grpc.py @@ -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. diff --git a/noxfile.py b/noxfile.py index 00d00a4..bea019e 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 01e407a..f8b8c2a 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,26 +1,25 @@ { - "updateTime": "2020-03-14T00:25:36.917796Z", "sources": [ { "git": { "name": ".", "remote": "git@github.com:googleapis/python-recommender.git", - "sha": "b8f198ecb1d36afa16d9054653ebbb811e7dbd91" + "sha": "b42c8a8b81666c14ae19d8487748788eae27326c" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "8386761d09819b665b6a6e1e6d6ff884bc8ff781", - "internalRef": "300843960" + "sha": "756b174de4a122461993c1c583345533d819936d", + "internalRef": "308824110" } }, { - "template": { - "name": "python_library", - "origin": "synthtool.gcp", - "version": "2020.2.4" + "git": { + "name": "synthtool", + "remote": "https://github.com/googleapis/synthtool.git", + "sha": "01b6f23d24b27878b48667ce597876d66b59780e" } } ],