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

Commit ea81cb4

Browse files
chore: Update gapic-generator-python to v1.6.1 (#448)
* chore: update to gapic-generator-python 1.5.0 feat: add support for `google.cloud.<api>.__version__` PiperOrigin-RevId: 484665853 Source-Link: googleapis/googleapis@8eb249a Source-Link: https://github.com/googleapis/googleapis-gen/commit/c8aa327b5f478865fc3fd91e3c2768e54e26ad44 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzhhYTMyN2I1ZjQ3ODg2NWZjM2ZkOTFlM2MyNzY4ZTU0ZTI2YWQ0NCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * update version in gapic_version.py * chore: Update to gapic-generator-python 1.6.0 feat(python): Add typing to proto.Message based class attributes feat(python): Snippetgen handling of repeated enum field PiperOrigin-RevId: 487326846 Source-Link: googleapis/googleapis@da380c7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/61ef5762ee6731a0cbbfea22fd0eecee51ab1c8e Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjFlZjU3NjJlZTY3MzFhMGNiYmZlYTIyZmQwZWVjZWU1MWFiMWM4ZSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: new APIs added to reflect updates to the filestore service - Add ENTERPRISE Tier - Add snapshot APIs: RevertInstance, ListSnapshots, CreateSnapshot, DeleteSnapshot, UpdateSnapshot - Add multi-share APIs: ListShares, GetShare, CreateShare, DeleteShare, UpdateShare - Add ConnectMode to NetworkConfig (for Private Service Access support) - New status codes (SUSPENDED/SUSPENDING, REVERTING/RESUMING) - Add SuspensionReason (for KMS related suspension) - Add new fields to Instance information: max_capacity_gb, capacity_step_size_gb, max_share_count, capacity_gb, multi_share_enabled PiperOrigin-RevId: 487492758 Source-Link: googleapis/googleapis@5be5981 Source-Link: https://github.com/googleapis/googleapis-gen/commit/ab0e217f560cc2c1afc11441c2eab6b6950efd2b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWIwZTIxN2Y1NjBjYzJjMWFmYzExNDQxYzJlYWI2YjY5NTBlZmQyYiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: Update gapic-generator-python to v1.6.1 PiperOrigin-RevId: 488036204 Source-Link: googleapis/googleapis@08f275f Source-Link: https://github.com/googleapis/googleapis-gen/commit/555c0945e60649e38739ae64bc45719cdf72178f Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTU1YzA5NDVlNjA2NDllMzg3MzlhZTY0YmM0NTcxOWNkZjcyMTc4ZiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: use templated setup.py and owlbot.py * add release please config files * customize testing/constraints-3.7.txt * set coverage level to 99% Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent 40e73d4 commit ea81cb4

File tree

89 files changed

+1697
-1350
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+1697
-1350
lines changed

.coveragerc

Lines changed: 7 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,17 @@
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-
17-
# Generated by synthtool. DO NOT EDIT!
181
[run]
192
branch = True
20-
omit =
21-
google/__init__.py
22-
google/cloud/__init__.py
233

244
[report]
25-
fail_under = 99
265
show_missing = True
6+
omit =
7+
google/cloud/automl/__init__.py
278
exclude_lines =
289
# Re-enable the standard pragma
2910
pragma: NO COVER
3011
# Ignore debug-only repr
3112
def __repr__
32-
# Ignore abstract methods
33-
raise NotImplementedError
34-
omit =
35-
*/gapic/*.py
36-
*/proto/*.py
37-
*/core/*.py
38-
*/site-packages/*.py
39-
google/cloud/__init__.py
13+
# Ignore pkg_resources exceptions.
14+
# This is added at the module level as a safeguard for if someone
15+
# generates the code and tries to run it without pip installing. This
16+
# makes it virtually impossible to test properly.
17+
except pkg_resources.DistributionNotFound

.github/release-please.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
releaseType: python
22
handleGHRelease: true
3+
manifest: true
34
# NOTE: this section is generated by synthtool.languages.python
45
# See https://github.com/googleapis/synthtool/blob/master/synthtool/languages/python.py
56
branches:

.release-please-manifest.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
".": "2.8.3"
3+
}
4+

docs/automl_v1/types.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ Types for Google Cloud Automl v1 API
33

44
.. automodule:: google.cloud.automl_v1.types
55
:members:
6-
:undoc-members:
76
:show-inheritance:

docs/automl_v1beta1/types.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ Types for Google Cloud Automl v1beta1 API
33

44
.. automodule:: google.cloud.automl_v1beta1.types
55
:members:
6-
:undoc-members:
76
:show-inheritance:

docs/index.rst

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,20 @@
22

33
.. include:: multiprocessing.rst
44

5-
This package includes clients for multiple versions of the Cloud AutoML API.
6-
By default, you will get ``v1``, the latest stable version.
5+
This package includes clients for multiple versions of Cloud AutoML.
6+
By default, you will get version ``automl_v1``.
77

8-
v1 API Reference
9-
------------------------
8+
9+
API Reference
10+
-------------
1011
.. toctree::
1112
:maxdepth: 2
1213

1314
automl_v1/services
1415
automl_v1/types
1516

16-
Previous beta release v1beta1 is provided as well.
17-
18-
An API and type reference is provided for ``v1beta1``:
19-
20-
v1beta1 API Reference
21-
----------------------
17+
API Reference
18+
-------------
2219
.. toctree::
2320
:maxdepth: 2
2421

@@ -29,13 +26,12 @@ v1beta1 API Reference
2926
Migration Guide
3027
---------------
3128

32-
See the guide below for instructions on migrating to the 2.x release of this library.
29+
See the guide below for instructions on migrating to the latest version.
3330

3431
.. toctree::
3532
:maxdepth: 2
3633

37-
UPGRADING
38-
34+
 UPGRADING
3935

4036

4137
Changelog
@@ -44,8 +40,6 @@ Changelog
4440
For a list of all ``google-cloud-automl`` releases:
4541

4642
.. toctree::
47-
:maxdepth: 2
48-
49-
changelog
50-
43+
:maxdepth: 2
5144

45+
changelog

google/cloud/automl/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
from google.cloud.automl import gapic_version as package_version
17+
18+
__version__ = package_version.__version__
19+
1620

1721
from google.cloud.automl_v1.services.auto_ml.client import AutoMlClient
1822
from google.cloud.automl_v1.services.auto_ml.async_client import AutoMlAsyncClient

google/cloud/automl/gapic_version.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2022 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
__version__ = "2.8.3" # {x-release-please-version}

google/cloud/automl_v1/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
from google.cloud.automl import gapic_version as package_version
17+
18+
__version__ = package_version.__version__
19+
1620

1721
from .services.auto_ml import AutoMlClient
1822
from .services.auto_ml import AutoMlAsyncClient

0 commit comments

Comments
 (0)