Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

Commit 51ffb49

Browse files
chore: update templates (via synth) (#12)
This PR was generated using Autosynth. 🌈 <details><summary>Log from Synthtool</summary> ``` 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. ``` </details>
1 parent 90d55dc commit 51ffb49

18 files changed

+169
-41
lines changed

.coveragerc

Lines changed: 16 additions & 0 deletions
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

Lines changed: 16 additions & 0 deletions
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

Lines changed: 1 addition & 2 deletions
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-recommender/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

Lines changed: 3 additions & 12 deletions
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-recommender/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

Lines changed: 16 additions & 0 deletions
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
recursive-include google *.json *.proto

google/cloud/recommender_v1/proto/recommendation_pb2.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
# -*- 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+
# http://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+
217
# Generated by the protocol buffer compiler. DO NOT EDIT!
318
# source: google/cloud/recommender_v1/proto/recommendation.proto
419

@@ -1243,7 +1258,8 @@
12431258
{
12441259
"DESCRIPTOR": _VALUEMATCHER,
12451260
"__module__": "google.cloud.recommender_v1.proto.recommendation_pb2",
1246-
"__doc__": """Contains various matching options for values for a GCP resource field.
1261+
"__doc__": """Contains various matching options for values for a GCP
1262+
resource field.
12471263
12481264
12491265
Attributes:

google/cloud/recommender_v1/proto/recommendation_pb2_grpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019 Google LLC
1+
# Copyright 2020 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

google/cloud/recommender_v1/proto/recommender_service_pb2.py

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
# -*- 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+
# http://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+
217
# Generated by the protocol buffer compiler. DO NOT EDIT!
318
# source: google/cloud/recommender_v1/proto/recommender_service.proto
419

@@ -758,7 +773,7 @@
758773
state_metadata:
759774
State properties to include with this state. Overwrites any
760775
existing ``state_metadata``. Keys must match the regex ``/
761-
[2]_[a-z0-9_.-]{0,62}/``. Values must match the regex
776+
[1]_[a-z0-9_.-]{0,62}/``. Values must match the regex
762777
``/^[a-zA-Z0-9_./-]{0,255}/``.
763778
etag:
764779
Required. Fingerprint of the Recommendation. Provides
@@ -831,7 +846,7 @@
831846
state_metadata:
832847
State properties to include with this state. Overwrites any
833848
existing ``state_metadata``. Keys must match the regex ``/
834-
[1]_[a-z0-9_.-]{0,62}/``. Values must match the regex
849+
[2]_[a-z0-9_.-]{0,62}/``. Values must match the regex
835850
``/^[a-zA-Z0-9_./-]{0,255}/``.
836851
etag:
837852
Required. Fingerprint of the Recommendation. Provides

google/cloud/recommender_v1/proto/recommender_service_pb2_grpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019 Google LLC
1+
# Copyright 2020 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

google/cloud/recommender_v1beta1/proto/insight_pb2.py

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
# -*- 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+
# http://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+
217
# Generated by the protocol buffer compiler. DO NOT EDIT!
318
# source: google/cloud/recommender_v1beta1/proto/insight.proto
419

@@ -516,8 +531,8 @@
516531
),
517532
"DESCRIPTOR": _INSIGHT,
518533
"__module__": "google.cloud.recommender_v1beta1.proto.insight_pb2",
519-
"__doc__": """An insight along with the information used to derive the
520-
insight. The insight may have associated recomendations as well.
534+
"__doc__": """An insight along with the information used to derive the insight. The
535+
insight may have associated recomendations as well.
521536
522537
523538
Attributes:

0 commit comments

Comments
 (0)